PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/seoshop.live/wp-content/themes/seo_reseller_v1/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/seoshop.live/wp-content/themes/seo_reseller_v1/functions.php |
<?php /* ---------------------------------------------------------- Navigation Menu ------------------------------------------------------------- */ function register_my_menus() { register_nav_menus( array( 'header-menu' => __( 'Header Menu' ), 'footer-menu' => __( 'Footer Menu' ) ) ); } add_action( 'init', 'register_my_menus' ); /* ---------------------------------------------------------- Add Custom Types ------------------------------------------------------------- */ add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'services', array( 'labels' => array( 'name' => __( 'SEO Services' ), 'singular_name' => __( 'Service' ), 'add_new_item' => __('Add New Service'), 'add_new' => _x('Add New', 'Service'), 'edit_item' => __('Edit Service'), 'new_item' => __('New Service'), 'all_items' => __('All Services'), 'view_item' => __('View Service'), 'search_items' => __('Search Services'), 'not_found' => __('No Services found'), 'not_found_in_trash' => __('No Services found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'SEO Services', ), 'public' => true, 'has_archive' => false, 'rewrite' => array('slug' => 'services','with_front' => true), 'taxonomies' => array( 'post_tag', 'category_services'), 'supports' => array( 'title', 'editor', 'thumbnail', 'comments') ) ); } /* ---------------------------------------------------------- Add Custom Cats ------------------------------------------------------------- */ function services_init() { register_taxonomy('category_services',array('services'), array( 'hierarchical' => true, 'labels' => array( 'name' => _x( 'Categories', 'taxonomy general name' ), 'singular_name' => _x( 'Category', 'taxonomy singular name' ), 'search_items' => __( 'Search Categories' ), 'all_items' => __( 'All Categories' ), 'parent_item' => __( 'Parent Category' ), 'parent_item_colon' => __( 'Parent Category:' ), 'edit_item' => __( 'Edit Category' ), 'update_item' => __( 'Update Category' ), 'add_new_item' => __( 'Add New Category' ), 'new_item_name' => __( 'New Category Name' ), 'menu_name' => __( 'Categories' ), ), 'show_ui' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'category-services' ), )); } add_action( 'init', 'services_init' ); /* ---------------------------------------------------------- Cart66 Custom Type ------------------------------------------------------------- */ function cart66_popup_screens() { return array('services'); } add_filter('cart66_add_popup_screens', 'cart66_popup_screens'); /* ---------------------------------------------------------- Cart66 Disable Update ------------------------------------------------------------- */ function filter_plugin_updates( $value ) { unset( $value->response['cart66/cart66.php'] ); return $value; } add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); /* ---------------------------------------------------------- Thumb ------------------------------------------------------------- */ add_theme_support('post-thumbnails'); /* ---------------------------------------------------------- Sidebar ------------------------------------------------------------- */ if(function_exists('register_sidebars')) register_sidebar(array( 'name' =>'Home', 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<div class="widget_title">', 'after_title' => '</div>') ); function unregister_problem_widgets() { unregister_sidebar_widget('search'); } /* ---------------------------------------------------------- Widgets ------------------------------------------------------------- */ include(TEMPLATEPATH.'/widgets/seomall-aweber.php'); include(TEMPLATEPATH.'/widgets/seomall-payments.php'); include(TEMPLATEPATH.'/widgets/seomall-share-fb.php'); include(TEMPLATEPATH.'/widgets/seomall-share-tw.php'); include(TEMPLATEPATH.'/widgets/seomall-share-go.php'); include(TEMPLATEPATH.'/widgets/seomall-blog.php'); /* ---------------------------------------------------------- Excerpt ------------------------------------------------------------- */ function new_excerpt_length($length) { return 100; } add_filter('excerpt_length', 'new_excerpt_length'); function limit_words($string, $word_limit) { $words = explode(' ', $string); return implode(' ', array_slice($words, 0, $word_limit, ' ...' )); } /* ---------------------------------------------------------- * Helper function to return the theme option value. If no value has been saved, it returns $default. * Needed because options are saved as serialized strings. * * This code allows the theme to work without errors if the Options Framework plugin has been disabled. ------------------------------------------------------------- */ if ( !function_exists( 'of_get_option' ) ) { function of_get_option($name, $default = false) { $optionsframework_settings = get_option('optionsframework'); // Gets the unique option id $option_name = $optionsframework_settings['id']; if ( get_option($option_name) ) { $options = get_option($option_name); } if ( isset($options[$name]) ) { return $options[$name]; } else { return $default; } } } ?>