Example #1
0
 public function __construct()
 {
     parent::__construct();
     // Add default Sidebar
     $this->setSidebarDefault();
     // Require Plugin
     $this->initRequirePlugin();
     /* This theme uses post thumbnails */
     $this->addThemeSupport('post-thumbnails');
     // Add default posts and comments RSS feed links to head*/
     $this->addThemeSupport('automatic-feed-links');
     $this->addImagesSize('blog-thumbnails', 377, 172, true);
     $this->addImagesSize('brand-logo', 160, 80, true);
     $this->addImagesSize('category-image', 873, 294, true);
     $this->addImagesSize('image-blog', 1110, 468, true);
     // Register Post type support
     $this->addPostTypeSuport(array('brands', 'testimonials'));
     /**
      * Register  Metabox
      */
     $this->initMetaBox();
     /**
      * Register  list of widgets supported inside framework
      */
     $this->addWidgetsSuport(array('recent_post', 'tabs', 'menu_vertical'));
     // Wishlist
     add_filter('yith_wcwl_button_label', array($this, 'iconWishlist'));
     add_filter('yith-wcwl-browse-wishlist-label', array($this, 'iconWishlistAdd'));
     add_filter('add_to_cart_fragments', array($this, 'woocommerce_header_add_to_cart_fragment'));
     add_filter('woocommerce_breadcrumb_defaults', array($this, 'wpo_woocommerce_breadcrumbs'));
     add_filter('woocommerce_breadcrumb_defaults', array($this, 'wpo_change_breadcrumb_delimiter'));
     add_filter('WPO_Enable_Vertical_Megamenu', array($this, 'enable_vertical_menu'));
     add_action('wp_enqueue_scripts', array($this, 'fix_VC_frontend_editor'), 999);
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     // Add default Sidebar
     $this->setSidebarDefault();
     // Require Plugin
     $this->initRequirePlugin();
     /* This theme uses post thumbnails */
     $this->addThemeSupport('post-thumbnails');
     // Add default posts and comments RSS feed links to head*/
     $this->addThemeSupport('automatic-feed-links');
     // Register Post type support
     $this->addPostTypeSuport(array('brands', 'testimonials'));
     /**
      * Register  Metabox
      */
     $this->initMetaBox();
     /**
      * Register  list of widgets supported inside framework
      */
     $this->addWidgetsSuport(array('twitter', 'menu_vertical', 'facebook_like', 'recent_post', 'tabs', 'flickr'));
     // Wishlist
     add_filter('yith_wcwl_button_label', array($this, 'iconWishlist'));
     add_filter('yith-wcwl-browse-wishlist-label', array($this, 'iconWishlistAdd'));
     add_filter('add_to_cart_fragments', array($this, 'woocommerce_header_add_to_cart_fragment'));
     add_filter('woocommerce_breadcrumb_defaults', array($this, 'wpo_woocommerce_breadcrumbs'));
     add_filter('woocommerce_breadcrumb_defaults', array($this, 'wpo_change_breadcrumb_delimiter'));
     add_filter('WPO_Enable_Vertical_Megamenu', array($this, 'enable_vertical_menu'));
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     // Add default Sidebar
     $this->setSidebarDefault();
     // Require Plugin
     $this->initRequirePlugin();
     /* This theme uses post thumbnails */
     $this->addThemeSupport('post-thumbnails');
     set_post_thumbnail_size(600, 353, true);
     // Add default posts and comments RSS feed links to head*/
     $this->addThemeSupport('automatic-feed-links');
     $this->addImagesSize('fullwidth', 1038, 576, true);
     add_filter('body_class', array($this, 'enable_sticky_menu'));
     add_filter('body_class', array($this, 'wpo_body_class_page'));
     /**
      * Register  list of widgets supported inside framework
      */
     $this->addWidgetsSuport(array('twitter', 'posts', 'featured_post', 'top_rate', 'sliders', 'recent_comment', 'recent_post', 'tabs', 'flickr', 'video', 'socials', 'menu_vertical', 'socials_siderbar'));
     /* Post types supported */
     $this->addPostTypeSuport(array('brands', 'testimonials', 'portfolio', 'faq', 'offer', 'footer'));
     /* add  post types support as default */
     $this->addThemeSupport('post-formats', array('audio', 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video'));
     $this->loadFrontEndMedia();
     $this->setRTLMode();
     add_action('wp_footer', array($this, 'wpo_skins_css'));
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     // Add default Sidebar
     $this->setSidebarDefault();
     // Require Plugin
     $this->initRequirePlugin();
     /* This theme uses post thumbnails */
     $this->addThemeSupport('post-thumbnails');
     // Add default posts and comments RSS feed links to head*/
     $this->addThemeSupport('automatic-feed-links');
     $this->addImagesSize('blog-thumbnails', 190, 190, true);
     $this->addImagesSize('brand-logo', 160, 80, true);
     $this->addImagesSize('category-image', 873, 220, true);
     $this->addImagesSize('image-blog', 753, 310, true);
     // Register Post type support
     $this->addPostTypeSuport(array('brands', 'testimonials'));
     global $wp_query;
     $this->layout = get_post_meta($wp_query->get_queried_object_id(), 'wpo_template', true);
     // $this->layout = wp_parse_args( $this->layout, array(
     // 	'header_skin'	=> '1',
     // 	'footer_skin' 	=> '1'
     // ) );
     /**
      * Register  Metabox
      */
     $this->initMetaBox();
     /**
      * Register  list of widgets supported inside framework
      */
     $this->addWidgetsSuport(array('twitter', 'sliders', 'recent_post', 'tabs', 'flickr', 'menu_vertical'));
     // Wishlist
     add_filter('yith_wcwl_button_label', array($this, 'iconWishlist'));
     add_filter('yith-wcwl-browse-wishlist-label', array($this, 'iconWishlistAdd'));
     add_filter('add_to_cart_fragments', array($this, 'woocommerce_header_add_to_cart_fragment'));
     add_filter('woocommerce_breadcrumb_defaults', array($this, 'wpo_woocommerce_breadcrumbs'));
     add_filter('woocommerce_breadcrumb_defaults', array($this, 'wpo_change_breadcrumb_delimiter'));
     add_filter('WPO_Enable_Vertical_Megamenu', array($this, 'enable_vertical_menu'));
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     // Add default Sidebar
     $this->setSidebarDefault();
     // Require Plugin
     $this->initRequirePlugin();
     /* This theme uses post thumbnails */
     $this->addThemeSupport('post-thumbnails');
     set_post_thumbnail_size(600, 353, true);
     // Add default posts and comments RSS feed links to head*/
     $this->addThemeSupport('automatic-feed-links');
     $this->addImagesSize('fullwidth', 1024, 590, true);
     $this->addImagesSize('thumbnails-crowdfunding', 700, 384, true);
     $this->addImagesSize('thumbnails-gallery', 600, 600, true);
     $this->addImagesSize('thumbnails-gallery-category', 500, 250, true);
     // Register Post type support
     add_filter('body_class', array($this, 'enable_sticky_menu'));
     $args = array('width' => 1920, 'height' => 200, 'flex-height' => false, 'flex-width' => false, 'uploads' => true, 'random-default' => false, 'header-text' => false);
     add_theme_support('custom-header', $args);
     /**
      * Register  list of widgets supported inside framework
      */
     //	$this->addWidgetsSuport( array( 'twitter','sliders','recent_post','facebook_like','tabs','flickr' ) );
     $widget_suport = array('twitter', 'posts', 'featured_post', 'top_rate', 'recent_comment', 'recent_post', 'tabs', 'flickr', 'video', 'socials', 'menu_vertical', 'socials_siderbar');
     if (WPO_CROWDFUNDING_ACTIVED) {
         $widget_suport[] = 'campaign_backers';
         $widget_suport[] = 'campaign_author';
     }
     $this->addWidgetsSuport($widget_suport);
     /* Post types supported */
     $this->addPostTypeSuport(array('brands', 'testimonials', 'gallery', 'portfolio', 'faq', 'offer', 'footer'));
     /* add  post types support as default */
     $this->addThemeSupport('post-formats', array('audio', 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video'));
     $this->loadFrontEndMedia();
     $this->setRTLMode();
     add_action('wp_footer', array($this, 'wpo_skins_css'));
 }