Exemplo n.º 1
0
function wpo_cst_customize_register($wp_customize)
{
    $readmore = wpo_theme_options('post_readmore');
    $wp_customize->get_setting('blogname')->transport = 'postMessage';
    $wp_customize->get_setting('blogdescription')->transport = 'postMessage';
    $wp_customize->get_setting('header_textcolor')->transport = 'postMessage';
}
 /**
  * __construct function.
  *
  * @access public
  * @return void
  */
 public function __construct($id = 0)
 {
     add_filter('nav_menu_css_class', array($this, 'special_nav_class'), 10, 2);
     $this->_editStringCol = ' data-colwidth="%s" data-class="%s" ';
     $this->isLiveEdit = is_admin();
     if ($this->isLiveEdit && isset($_GET['group']) && $_GET['group']) {
         $menugroup = (int) $_GET['group'];
     } else {
         $menugroup = wpo_theme_options('verticalmenu', 2);
     }
     $a = get_option("WPO_MEGAMENU_VERTICAL_DATA-" . ($id ? $id : $menugroup));
     if ($a) {
         $this->megaConfig = unserialize($a);
     }
 }
Exemplo n.º 3
0
*Template Name: 404 Page
*/
?>

<?php 
get_header($wpoEngine->getHeaderLayout());
?>

<section class="wpo-mainbody clearfix 404-page">
	<section class="container">
		<div class="page_not_found text-center clearfix">
			<h1 class="skin_color error-title">404</h1>
			<div class="col-sm-6 col-sm-offset-3">
				<header class="h1 error-content text-none">
					<?php 
echo wpo_theme_options('404', 'Oops 404 again! That page can\'t be found.');
?>
				</header>
				<footer class="page-footer">
					<p>It looks like nothing was found at this location. Maybe try one of the links below?</p>
					<?php 
get_search_form();
?>
				</footer>
			</div>
		</div>
	</section>
</section>

<?php 
get_footer();
<?php

$campaign = new ATCF_Campaign(get_the_ID());
$uid = wpo_makeid();
$color = "#FED857";
switch (wpo_theme_options('skin', 'default')) {
    case 'blue':
        $color = "#41A4DC";
        break;
    case 'brown':
        $color = "#887161";
        break;
    default:
        $color = "#FED857";
        break;
}
if ($campaign === false) {
    return;
}
?>

	<div class="item-content item-campaign-wrapper style-2">	
		<div class="entry-thumbnail text-center">
			<?php 
the_post_thumbnail('thumbnails-crowdfunding');
?>
			<div class="donate-now">
				<button type="button" class="btn btn-slide" data-toggle="modal" data-target="#campaign-donate-<?php 
echo esc_attr(get_the_ID() . "-{$uid}");
?>
">
Exemplo n.º 5
0
if (!wpo_theme_options('wc_show_upsells', false)) {
    if (!defined('ABSPATH')) {
        exit;
    }
    // Exit if accessed directly
    global $product, $woocommerce_loop;
    $upsells = $product->get_upsells();
    $posts_per_page = wpo_theme_options('woo-number-product-single', 6);
    if (sizeof($upsells) == 0) {
        return;
    }
    $meta_query = WC()->query->get_meta_query();
    $args = array('post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => $posts_per_page, 'orderby' => $orderby, 'post__in' => $upsells, 'post__not_in' => array($product->id), 'meta_query' => $meta_query);
    $_count = 1;
    $products = new WP_Query($args);
    $columns_count = wpo_theme_options('product-number-columns', 3);
    $class_column = 'col-sm-' . floor(12 / $columns_count);
    $woocommerce_loop['columns'] = $columns;
    if ($products->have_posts()) {
        ?>

		<div class="widget widget-products upsells products product-single">
			<div class="background"></div>
			<h3 class="widget-title visual-title">
		        <span><span><?php 
        _e('You may also like&hellip;', 'woocommerce');
        ?>
</span></span>
			</h3>
			<div class="woocommerce">
				<div class="widget-content <?php 
Exemplo n.º 6
0
<?php

/**
 * Single Product Image
 *
 * @author 		YIThemes
 * @package 	YITH_Magnifier/Templates
 * @version     1.1.2
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
$skin = wpo_theme_options('skin', 'fashion');
if (empty($skin) || $skin == 'default') {
    $skin = 'fashion';
}
$enable_slider = get_option('yith_wcmg_enableslider') == 'yes' ? true : false;
wc_get_template_part('skin/' . $skin . '/product', 'image-magnifier');
?>
   
<script type="text/javascript" charset="utf-8">
    var yith_magnifier_options = {
        enableSlider: <?php 
echo $enable_slider ? 'true' : 'false';
?>
,

        <?php 
if ($enable_slider) {
    ?>
Exemplo n.º 7
0
        break;
    case 'download':
        $wpopconfig = $wpoEngine->getCampaignConfig();
        $_breadcrumb = wpo_theme_options('campaign_show-breadcrumb', true);
        $_showtitle = wpo_theme_options('campaign_show-title', true);
        break;
    default:
        $wpopconfig = $wpoEngine->getBlogConfig();
        $_breadcrumb = wpo_theme_options('blog_show-breadcrumb', true);
        $_showtitle = wpo_theme_options('blog_show-title', true);
        break;
}
?>

<?php 
get_header(wpo_theme_options('headerlayout'));
?>

<section id="wpo-mainbody" class="wpo-mainbody clearfix main-page">
    <?php 
if ($_breadcrumb) {
    ?>
      <?php 
    wpo_breadcrumb($_showtitle);
    ?>
  <?php 
}
?>

     <div class="wrapper-content"> 
        <div class="container"><div class="container-inner">
Exemplo n.º 8
0
 *
 * @package TribeEventsCalendar
 * @since  3.0
 * @author Modern Tribe Inc.
 *
 */
if (!defined('ABSPATH')) {
    die('-1');
}
?>

<?php 
$GLOBALS['more'] = false;
$GLOBALS['wpv_pretty_tribe_date_headers'] = true;
$GLOBALS['wpv_pretty_tribe_date_headers_first'] = true;
$column = wpo_theme_options('event-archive-column', 2);
$class = "col-lg-4 col-md-4 col-sm-12 col-xs-12";
switch ($column) {
    case '2':
        $class = "col-lg-6 col-md-6 col-sm-6 col-xs-12";
        break;
    case '3':
        $class = "col-lg-4 col-md-4 col-sm-12 col-xs-12";
        break;
    case '4':
        $class = "col-lg-3 col-md-3 col-sm-6 col-xs-12";
        break;
    case '6':
        $class = "col-lg-2 col-md-2 col-sm-6 col-xs-12";
        break;
    default:
Exemplo n.º 9
0
<?php

global $wpopconfig;
$pos = esc_attr(wpo_theme_options('woocommerce-archive-left-sidebar'));
?>
 
<?php 
if ($wpopconfig['left-sidebar']['show']) {
    ?>
	<div class="<?php 
    echo $wpopconfig['left-sidebar']['class'];
    ?>
">
		<div class="wpo-sidebar wpo-sidebar-left">
			<div class="sidebar-inner">
				<?php 
    dynamic_sidebar($pos);
    ?>
			</div>
 
		</div>
	</div>
<?php 
}
?>
 
Exemplo n.º 10
0
<?php

global $wpopconfig;
$pos = wpo_theme_options('woocommerce-archive-right-sidebar');
?>

<?php 
if ($wpopconfig['right-sidebar']['show']) {
    ?>
	<div class="<?php 
    echo $wpopconfig['right-sidebar']['class'];
    ?>
">
		<div class="wpo-sidebar wpo-sidebar-right">
			<div class="sidebar-inner">
				<?php 
    dynamic_sidebar($pos);
    ?>
			</div>
		</div>
	</div>
<?php 
}
Exemplo n.º 11
0
 public function wc_loop_shop_columns()
 {
     return wpo_theme_options('wc_itemsrow', 3);
 }
Exemplo n.º 12
0
</h6>
		                                        </div>
		                                        <div class="col-sm-8">
		                                            <?php 
        wpo_share_box();
        ?>
		                                        </div>
		                                    </div>
		                                </div>
	                                <?php 
    }
    ?>

	                                <?php 
    if (wpo_theme_options('show-related-portfolio')) {
        $relate_count = wpo_theme_options('portfolio-items-show', 4);
        wpo_related_post($relate_count, 'portfolio', 'Categories');
    }
    ?>
								</div>
							</article>
						</div>
					<?php 
}
?>
				</div>
			</div>
				<!-- //MAIN CONTENT -->
				<?php 
get_sidebar('right');
?>
Exemplo n.º 13
0
" />
                                    </a>
                                </div>
                            <?php 
}
?>
                        </div>
                        <div class="col-lg-9 col-md-10 col-sm-12 col-xs-12">
                            <div class="wpo-mainmenu-wrap">
                                <div class="mainmenu-content-wapper">
                                    <div class="mainmenu-content">
                                        <nav id="wpo-mainnav" data-duration="<?php 
echo wpo_theme_options('megamenu-duration', 400);
?>
" class="wpo-megamenu <?php 
echo wpo_theme_options('magemenu-animation', 'slide');
?>
 animate navbar navbar-mega" role="navigation">
                                            <div class="navbar-header">
                                                <?php 
wpo_renderButtonToggle();
?>
                                            </div><!-- //END #navbar-header -->
                                            <?php 
$args = array('theme_location' => 'mainmenu', 'container_class' => 'collapse navbar-collapse navbar-ex1-collapse', 'menu_class' => 'nav navbar-nav megamenu', 'fallback_cb' => '', 'menu_id' => 'main-menu', 'walker' => new Wpo_Megamenu());
wp_nav_menu($args);
?>
                                        </nav>
                                    </div> 
                                </div>    
                            </div>   
Exemplo n.º 14
0
<?php

global $wpopconfig;
$sidebar_left = empty($wpopconfig['left-sidebar']) ? wpo_theme_options('left-sidebar') : $wpopconfig['left-sidebar']['widget'];
?>
 
<?php 
if ($wpopconfig['left-sidebar']['show']) {
    ?>
	<div class="<?php 
    echo esc_attr($wpopconfig['left-sidebar']['class']);
    ?>
">
	<?php 
    if (is_active_sidebar($sidebar_left)) {
        ?>
		<div class="wpo-sidebar wpo-sidebar-left">
			<div class="sidebar-inner">
				<?php 
        dynamic_sidebar($sidebar_left);
        ?>
			</div>
		</div>
	<?php 
    }
    ?>
	</div>
<?php 
}
?>
 
Exemplo n.º 15
0
		</div>

		<div class="author-about">
			<?php 
get_template_part('templates/author-bio');
?>
		</div>

		<?php 
comments_template();
?>

		<!-- Related Posts -->

		<?php 
if (wpo_theme_options('show_related')) {
    ?>
			<div class="wpo-related-post">
				<?php 
    $post_number = wpo_theme_options('limit-post', 4);
    //$post_number = 4;
    wpo_related_post($post_number, 'post', 'category');
    ?>
			</div>
		<?php 
}
?>

	</div><!--  End .post-container -->

</article>
<?php

global $wpopconfig;
if (is_product()) {
    $sidebar_right = wpo_theme_options('woocommerce-single-right-sidebar', 'sidebar-right');
} else {
    $sidebar_right = wpo_theme_options('woocommerce-archive-right-sidebar', 'sidebar-right');
}
?>

<?php 
if ($wpopconfig['right-sidebar']['show']) {
    ?>
	<div class="<?php 
    echo esc_attr($wpopconfig['right-sidebar']['class']);
    ?>
">
		<?php 
    if (is_active_sidebar($sidebar_right)) {
        ?>
			<div class="wpo-sidebar wpo-sidebar-right">
				<div class="sidebar-inner">
					<?php 
        dynamic_sidebar($sidebar_right);
        ?>
				</div>
			</div>
		<?php 
    }
    ?>
	</div>
<?php

if ($relates->have_posts()) {
    ?>
		<div class="widget">
            <h4 class="related-post-title margin-bottom-30 widget-title">
                <span><?php 
    echo __('Related post', TEXTDOMAIN);
    ?>
</span>
            </h4>

            <div class="related-posts-content">
                <div class="row">
        		<?php 
    $column = wpo_theme_options('post-number-columns', 4);
    $class_column = floor(12 / $column);
    while ($relates->have_posts()) {
        $relates->the_post();
        ?>
            			<div class="col-sm-<?php 
        echo esc_attr($class_column);
        ?>
 col-md-<?php 
        echo esc_attr($class_column);
        ?>
 col-lg-<?php 
        echo esc_attr($class_column);
        ?>
">
                            <div class="element-item">
Exemplo n.º 18
0
$args = array('theme_location' => 'mainmenu', 'container_class' => 'collapse navbar-collapse navbar-ex1-collapse', 'menu_class' => 'nav navbar-nav megamenu', 'fallback_cb' => '', 'menu_id' => 'main-menu', 'walker' => new Wpo_Megamenu());
wp_nav_menu($args);
?>
                            </nav>

                            <div class="search hidden-sm hidden-xs">
                                 <?php 
get_search_form();
?>
                            </div>

                            <?php 
if (WPO_WOOCOMMERCE_ACTIVED) {
    ?>
                                <?php 
    if (wpo_theme_options('woo-show-minicart', true)) {
        ?>
                                    <div class="top-cart hidden-sm hidden-xs">
                                        <?php 
        wpo_cartdropdown();
        ?>
                                    </div>
                                <?php 
    }
    ?>
                            <?php 
}
?>

                        </div>  
                    </div>
Exemplo n.º 19
0
/**
 * woocommerce_single_product_summary hook
 *
 * @hooked woocommerce_template_single_title - 5
 * @hooked woocommerce_template_single_rating - 10
 * @hooked woocommerce_template_single_price - 10
 * @hooked woocommerce_template_single_excerpt - 20
 * @hooked woocommerce_template_single_add_to_cart - 30
 * @hooked woocommerce_template_single_meta - 40
 * @hooked woocommerce_template_single_sharing - 50
 */
do_action('woocommerce_single_product_summary');
?>

							<?php 
if (wpo_theme_options('wc_show_share_social', true)) {
    ?>
							<div class="addthis">
								<!-- AddThis Button BEGIN -->
								<div class="addthis_toolbox addthis_default_style">
									<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
									<a class="addthis_button_tweet"></a>
									<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
									<a class="addthis_counter addthis_pill_style"></a>
								</div>
								<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-533e342d186e8c37"></script>
								<!-- AddThis Button END -->
							</div>
						<?php 
}
?>
Exemplo n.º 20
0
 * @version    $Id$
 * @package    wpbase
 * @author     WPOpal  Team <wpopal@gmail.com, support@wpopal.com>
 * @copyright  Copyright (C) 2014 wpopal.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * @website  http://www.wpopal.com
 * @support  http://www.wpopal.com/support/forum.html
 */
?>

 
	<div class="post-container">
		<header class="header-title clearfix">
			<?php 
if (wpo_theme_options('post-title')) {
    ?>
				<h2 class="entry-title pull-left">
					<?php 
    the_title();
    ?>
				</h2>
			<?php 
}
?>

			<div class="pull-right">
			    <?php 
if (get_previous_post_link() != '') {
    ?>
			    <div class="btn btn-link">
Exemplo n.º 21
0
require_once WPO_THEME_SUB_DIR . 'customizer/theme.php';
require_once WPO_THEME_SUB_DIR . 'customizer/blog.php';
require_once WPO_THEME_SUB_DIR . 'customizer/portfolio.php';
require_once WPO_THEME_SUB_DIR . 'customizer/function.php';
require_once WPO_THEME_DIR . '/sample/import.php';
//}
/// WooCommerce specified functions
if (WPO_WOOCOMMERCE_ACTIVED) {
    require_once WPO_THEME_SUB_DIR . 'woocommerce/woocommerce.php';
    require_once WPO_THEME_SUB_DIR . 'functions/woocommerce.php';
    //if( is_admin() ) {
    require_once WPO_THEME_SUB_DIR . 'customizer/woocommerce.php';
    //}
}
/**
 * Startup theme application
 *  
 */
$wpoEngine = new WPO_Frontend();
$protocol = is_ssl() ? 'https:' : 'http:';
// Add List of Menu Group
$wpoEngine->addMenu('mainmenu', 'Main Menu');
$wpoEngine->addMenu('topmenu', 'Top Header Menu');
//$wpoEngine->addThemeSupport( 'post-formats',  array( 'aside', 'link' , 'quote', 'image' ) );
$wpoEngine->init();
/**
 *
 */
global $wpopconfig;
$wpoconfig = is_single() ? $wpoEngine->configLayout(wpo_theme_options('single-layout', '0-1-0')) : $wpoEngine->getPageConfig();
Exemplo n.º 22
0
    ?>
&amp;description=<?php 
    echo urlencode($post->post_title);
    ?>
&amp;media=<?php 
    echo urlencode($full_image[0]);
    ?>
" target="_blank">
			<i class="fa fa-pinterest"></i>
		</a>
	</li>
	<?php 
}
?>
	<?php 
if ((bool) wpo_theme_options('sharing-email', true)) {
    ?>
	<li class="email">
		<a data-toggle="tooltip" data-placement="<?php 
    echo $args['position'];
    ?>
" data-animation="<?php 
    echo $args['animation'];
    ?>
"  data-original-title="Email" href="mailto:?subject=<?php 
    the_title();
    ?>
&amp;body=<?php 
    the_permalink();
    ?>
">
Exemplo n.º 23
0
<?php

if (is_front_page()) {
    $paged = get_query_var('page') ? get_query_var('page') : 1;
} else {
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
}
$column = (int) wpo_theme_options('gallery-items-show', 3);
$post_per_page = (int) wpo_theme_options('gallery-archive-items', 9);
$args = array('post_type' => 'gallery', 'paged' => $paged, 'posts_per_page' => $post_per_page);
$gallerys = new WP_Query($args);
$col = floor(12 / $column);
$smcol = $col > 4 ? 6 : $col;
$class_column = 'col-lg-' . $col . ' col-md-' . $col . ' col-sm-' . $smcol;
if (have_posts()) {
    while (have_posts()) {
        the_post();
        echo '<div class="' . esc_attr($class_column) . '">';
        get_template_part('templates/gallery/item');
        echo '</div>';
    }
    wpo_pagination_nav($post_per_page, $gallerys->found_posts, $gallerys->max_num_pages);
} else {
    get_template_part('templates/none');
}
Exemplo n.º 24
0
					    <span class="sr-only">60% Complete</span>
					  </div>
					</div>


				<div id="megamenu-content" >
					<div id="wpo-mainnav" class="wpo-megamenu navbar navbar-default" role="navigation">
						<div class="navbar-header">
							<a href="javascript:;" data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
						        <span class="icon-bar"></span>
						        <span class="icon-bar"></span>
						        <span class="icon-bar"></span>
						    </a>
						</div><!-- //END #navbar-header -->
							<?php 
$nav_menu = wpo_theme_options('magemenu-menu', '') != '' ? wp_get_nav_menu_object(wpo_theme_options('magemenu-menu', '')) : false;
$args = array('menu' => $selectenav, 'container_class' => 'collapse navbar-collapse navbar-ex1-collapse', 'menu_class' => 'nav navbar-nav megamenu', 'fallback_cb' => '', 'menu_id' => 'mainmenutop', 'walker' => new Wpo_Megamenu());
wp_nav_menu($args);
?>
					</div>
				</div>
				</div></div>
	</div></div>

<script type="text/javascript">

	jQuery( function($) {
		var _action 	   = '<?php 
echo $liveedit_action;
?>
';
Exemplo n.º 25
0
?>

            <div class="action-bottom">
                <div class="action-bottom-wrap">
                    <div class="button-groups add-button clearfix">
                        <?php 
do_action('woocommerce_after_shop_loop_item');
?>
                        <?php 
$action_add = 'yith-woocompare-add-product';
$url_args = array('action' => $action_add, 'id' => $product->id);
?>
                    </div>

                    <?php 
if (wpo_theme_options('is-quickview', true)) {
    ?>
                        <div class="quick-view">
                            <a href="#" class="quickview btn-action btn-outline-inverse" data-productslug="<?php 
    echo $product->post->post_name;
    ?>
" data-toggle="modal" data-target="#wpo_modal_quickview">
                               <span class="hidden-xs hidden-sm hidden-md"> <?php 
    echo _e('Quick View', TEXTDOMAIN);
    ?>
</span>
                               <span class="hidden-lg"><i class="fa fa-search-plus"> </i></span>
                            </a>
                        </div>
                    <?php 
}
Exemplo n.º 26
0
 public function getHeaderLayout()
 {
     global $wp_query;
     $layout = get_post_meta($wp_query->get_queried_object_id(), 'wpo_pageconfig', true);
     if (!isset($layout['header_skin']) || isset($layout['header_skin']) && $layout['header_skin'] == 'global') {
         return wpo_theme_options('headerlayout', '');
     } else {
         return $layout['header_skin'];
     }
 }
Exemplo n.º 27
0
 function WPO_jsWoocommerce()
 {
     wp_dequeue_script('wc-add-to-cart');
     wp_register_script('wc-add-to-cart', WPO_THEME_URI . '/js/add-to-cart.js', array('jquery'));
     wp_localize_script('wc-add-to-cart', 'woocommerce_localize', array('cart_success' => __(wpo_theme_options('wc_cartnotice_text', 'Success: Your item has been added to cart!'))));
     wp_enqueue_script('wc-add-to-cart');
     wp_register_script('noty_js', WPO_THEME_URI . '/js/jquery.noty.packaged.min.js', array('jquery'));
     wp_enqueue_script('noty_js');
 }
							<?php 
/**
 * woocommerce_single_product_summary hook
 *
 * @hooked woocommerce_template_single_title - 5
 * @hooked woocommerce_template_single_rating - 10
 * @hooked woocommerce_template_single_price - 10
 * @hooked woocommerce_template_single_excerpt - 20
 * @hooked woocommerce_template_single_add_to_cart - 30
 * @hooked woocommerce_template_single_meta - 40
 * @hooked woocommerce_template_single_sharing - 50
 */
do_action('woocommerce_single_product_summary');
?>
						<?php 
if (wpo_theme_options('wc_show_share_social', false)) {
    ?>
							<div class="addthis">
								<!-- AddThis Button BEGIN -->
								<div class="addthis_toolbox addthis_default_style">
									<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
									<a class="addthis_button_tweet"></a>
									<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
									<a class="addthis_counter addthis_pill_style"></a>
								</div>
								<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-533e342d186e8c37"></script>
								<!-- AddThis Button END -->
							</div>
						<?php 
}
?>
Exemplo n.º 29
0
	<section class="wpo-copyright">
		<div class="container">
			<div class="copyright">
				<address>
					<?php 
echo wpo_theme_options('copyright_text', 'Copyright &copy; ' . date('Y') . ' - HACKson.');
?>
				</address>

				<?php 
if (wpo_theme_options('image-payment', '')) {
    ?>
					<div class="payment">
						<img src="<?php 
    echo esc_url(wpo_theme_options('image-payment', ''));
    ?>
" />
					</div>
				<?php 
}
?>

			</div>
		</div>
	</section>

</section>
<!-- END Wrapper -->
<?php 
wp_footer();
Exemplo n.º 30
0
<?php

if ($relates->have_posts()) {
    ?>

	    <h4 class="related-post-title margin-bottom-30">
            <span><?php 
    echo __('Other Projects', TEXTDOMAIN);
    ?>
</span>
        </h4>

        <div class="related-posts-content">
            <div class="row">
    		    <?php 
    $column = wpo_theme_options('portfolio-items-show', 4);
    $class_column = 12 / $column;
    while ($relates->have_posts()) {
        $relates->the_post();
        ?>
        			<div class="col-sm-<?php 
        echo $class_column;
        ?>
 col-md-<?php 
        echo $class_column;
        ?>
 col-lg-<?php 
        echo $class_column;
        ?>
">
                        <div class="element-item">