Beispiel #1
0
 * @package WordPress
 * @subpackage WPbase
 * @since WPbase 1.0
 */
// Init Framework
require_once 'framework/loader.php';
require_once 'sub/theme.php';
require_once 'sub/pagebuilder.php';
require_once 'sub/pagebuilder.php';
require_once 'shortcode.php';
// Make theme available for translation
load_theme_textdomain('woocommerce', get_template_directory() . '/languages');
load_theme_textdomain('woothemes', get_template_directory() . '/languages');
define('THEME_OPTION_ACTIVED', class_exists('Options_Framework'));
add_theme_support('woocommerce');
$wpo = new WPO_SubTheme();
$protocol = is_ssl() ? 'https:' : 'http:';
if (!defined("WPB_VC_VERSION")) {
    define("WPB_VC_VERSION", '4.3.3');
}
/* add  post types support as default */
$wpo->addThemeSupport('post-formats', array('link', 'gallery', 'image', 'video', 'audio'));
// Add size image
$wpo->addImagesSize('blog-thumbnail', 190, 190, true);
// Add Menus
$wpo->addMenu('mainmenu', 'Main Menu');
$wpo->addMenu('topmenu', 'Top Header Menu');
//$wpo->addThemeSupport( 'post-formats',  array( 'aside', 'link' , 'quote', 'image' ) );
// AddScript
$wpo->addScript('scroll_animate', get_template_directory_uri() . '/js/smooth-scrollbar.js', array(), false, true);
$wpo->addScript('parallax', get_template_directory_uri() . '/js/jquery.stellar.js', array(), false, true);
Beispiel #2
0
<?php

$wpo = new WPO_SubTheme();
$protocol = is_ssl() ? 'https:' : 'http:';
/* add  post types support as default */
$wpo->addThemeSupport('post-formats', array('link', 'gallery', 'image', 'video', 'audio'));
// Add size image
$wpo->addImagesSize('blog-thumbnail', 190, 190, true);
$wpo->addImagesSize('brand-logo', 160, 80, true);
$wpo->addImagesSize('category-image', 873, 220, true);
$wpo->addImagesSize('image-blog', 753, 310, true);
// Add Menus
$wpo->addMenu('mainmenu', 'Main Menu');
$wpo->addMenu('topmenu', 'Top Header Menu');
//$wpo->addThemeSupport( 'post-formats',  array( 'aside', 'link' , 'quote', 'image' ) );
// AddScript
//add_filter( 'woocommerce_enqueue_styles', '__return_false' );
$wpo->addScript('countdown_js', WPO_THEME_URI . '/js/countdown.js', array(), false, true);
$wpo->addScript('main_js', get_template_directory_uri() . '/js/main.js', array(), false, true);
// Add Google Font
$wpo->addStyle('theme-montserrat-font', $protocol . '//fonts.googleapis.com/css?family=Montserrat:400,700');
$wpo->addStyle('theme-lato-font', $protocol . '//fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic');
$wpo->init();
Beispiel #3
0
<?php

/**
 * @package WordPress
 * @subpackage WPbase
 * @since WPbase 1.0
 */
// Init Framework
require_once 'framework/loader.php';
require_once 'sub/theme.php';
require_once 'sub/pagebuilder.php';
require_once 'sub/pagebuilder.php';
require_once 'shortcode.php';
$wpo = new WPO_SubTheme();
$protocol = is_ssl() ? 'https:' : 'http:';
/* add  post types support as default */
$wpo->addThemeSupport('post-formats', array('link', 'gallery', 'image', 'video', 'audio'));
// Add size image
$wpo->addImagesSize('blog-thumbnail', 190, 190, true);
// Add Menus
$wpo->addMenu('mainmenu', 'Main Menu');
$wpo->addMenu('topmenu', 'Top Header Menu');
//$wpo->addThemeSupport( 'post-formats',  array( 'aside', 'link' , 'quote', 'image' ) );
// AddScript
$wpo->addScript('main_js', get_template_directory_uri() . '/js/main.js', array(), false, true);
// Add Google Font
$wpo->addStyle('theme-montserrat-font', $protocol . '//fonts.googleapis.com/css?family=Montserrat:400,700');
$wpo->init();
if (!function_exists('bigshop_pagination')) {
    function bigshop_pagination($per_page, $total, $max_num_pages = '')
    {