Example #1
0
    ?>
</div>
        <div class="value"><a href="<?php 
    echo esc_url(penguin_get_post_meta_key('portfolio-link'));
    ?>
"><?php 
    _e('Open Link', 'ROEN');
    ?>
</a></div>
        </article>
    </li>
    <?php 
}
?>

    
    <li class="single-portfolio-share">
    	<?php 
if (penguin_get_options_key('portfolio-enable-share') == "on" && penguin_get_options_key('portfolio-share-code') != '') {
    ?>

            <?php 
    echo penguin_get_options_key('portfolio-share-code');
    ?>

        <?php 
}
?>

    </li>
</ul>
Example #2
0
</head>
<body <?php 
body_class($global_layout);
?>
>
	<div class="wrapper">
    	<?php 
get_template_part('template/header/banner');
?>

        <?php 
get_template_part('template/header/topbar');
?>

		<div id="header-wrap" class="<?php 
echo penguin_get_options_key('header-sticky-enable') == "on" ? "header-sticky-enabled" : "";
?>
 <?php 
echo roen_get_page_sticky_style();
?>
">
            <?php 
get_template_part('template/header/content');
?>

    	</div><!-- end header-wrap -->
        <?php 
get_template_part('template/page/header-slider');
if (class_exists('woocommerce') && (is_tax() && taxonomy_exists('product_cat') && $current_tax == "product_cat" || is_tax() && taxonomy_exists('product_tag') && $current_tax == "product_tag" || is_singular('product') || is_shop())) {
    // woocommerce will use woocommerce title
} else {
        
        <?php 
if (class_exists('woocommerce')) {
    if (penguin_get_options_key('footer-minitools-cart') == 'on') {
        get_template_part('woocommerce/mini-tools-cart');
    }
    if (penguin_get_options_key('footer-minitools-wishlist') == 'on' && class_exists('YITH_WCWL_UI')) {
        get_template_part('woocommerce/mini-tools-wishlist');
    }
}
?>

        <?php 
if (penguin_get_options_key('footer-minitools-custom') == 'on' && penguin_get_options_key('footer-minitools-custom-icon') != '' && penguin_get_options_key('footer-minitools-custom-link') != '') {
    ?>

        <li class="mini-tools-custom"><a href="<?php 
    echo esc_url(penguin_get_options_key('footer-minitools-custom-link'));
    ?>
"><i class="fa <?php 
    echo penguin_get_options_key('footer-minitools-custom-icon');
    ?>
"></i></a></li>
        <?php 
}
?>

        <li class="mini-tools-backtop"><a id="back-top" href="#"><i class="fa fa-arrow-up"></i></a></li>
    </ul>
</div>
} elseif (is_tax() && (taxonomy_exists('portfolio-cats') && $current_tax == "portfolio-cats") || taxonomy_exists('member-cats') && $current_tax == "member-cats" || is_category() || is_tag() || is_404() || is_search() || is_date() || is_author()) {
    ?>

	<div id="page-header">
        <div  class="container">
        	<div class="page-header-content">
                <div id="page-header-title">
                	<h1 class="title"><?php 
    echo roen_page_title();
    ?>
</h1>
                </div>
                <div id="page-breadcrumb">
                	<div class="page-breadcrumb-content">
						<?php 
    if (penguin_get_options_key('global-breakcrumbs-enable') == 'on' && function_exists('yoast_breadcrumb')) {
        yoast_breadcrumb('<p class="yoast_breadcrumbs">', '</p>');
    } else {
        ?>

                        <?php 
        echo roen_page_links();
        ?>

                        <?php 
    }
    ?>

                    </div>
                </div>
            </div>
    $theme_customize_list['header_mobile_menu_btn_color'] = $current_colors['header-mobile-btn-color'];
    $theme_customize_list['header_mobile_menu_btn_background_color'] = $current_colors['header-mobile-btn-bg-color'];
    $theme_customize_list['header_mobile_menu_links_color'] = $current_colors['header-mobile-links-color'];
    $theme_customize_list['header_mobile_menu_links_color_hover'] = $current_colors['header-mobile-links-hover-color'];
    $theme_customize_list['header_mobile_menu_links_background_color_hover'] = $current_colors['header-mobile-links-hover-bg-color'];
    if (penguin_get_options_key('sticky-header-enable-color') == "on") {
        $theme_customize_list['header_stickly_background_color'] = $current_colors['sticky-header-background-color'];
        $theme_customize_list['header_stickly_links_color_dark'] = $current_colors['sticky-header-links-color'];
        $theme_customize_list['header_stickly_links_color_hover'] = $current_colors['sticky-header-links-hover-color'];
    }
    $theme_customize_list['footer_color'] = $current_colors['footer-text-color'];
    $theme_customize_list['footer_title_color'] = $current_colors['footer-h-color'];
    $theme_customize_list['footer_links_color'] = $current_colors['footer-links-color'];
    $theme_customize_list['footer_links_color_hover'] = $current_colors['footer-links-hover-color'];
    $theme_customize_list['footer_bottom_color'] = $current_colors['footer-bottom-text-color'];
    $theme_customize_list['footer_bottom_links_color'] = $current_colors['footer-bottom-links-color'];
    $theme_customize_list['footer_bottom_links_color_hover'] = $current_colors['footer-bottom-links-hover-color'];
    $theme_rgb = penguin_hex2RGB($current_colors['theme-color']);
    $theme_customize_list['onepagenav_background_color'] = 'rgba(' . $theme_rgb['r'] . ', ' . $theme_rgb['g'] . ', ' . $theme_rgb['b'] . ', 0.45)';
}
//WooCommerce
if (class_exists('woocommerce')) {
    $woocommerce_customize_list['wc_url'] = '"' . get_template_directory_uri() . '/woocommerce/assets/"';
    if (penguin_get_options_key('global-border-radius-enable') == "on") {
        $woocommerce_customize_list['border_radius'] = '4px';
    }
    // custom color
    if (penguin_get_options_key('custom-enable-color') == "on") {
        $woocommerce_customize_list['woocommerce'] = $current_colors['theme-color'];
    }
}
/**
 * The config for woocommerce
 *
 * @version    2.2.11
 */
if (class_exists('woocommerce')) {
    // Change number or products per row to 4
    add_filter('loop_shop_columns', 'wc_loop_shop_columns', 1, 10);
    function wc_loop_shop_columns($number_columns)
    {
        return 4;
    }
    if (intval(penguin_get_options_key('woo-page-num')) > 0) {
        // Display 20 products per page. Goes in functions.php
        $default_page_num = intval(penguin_get_options_key('woo-page-num'));
        if (isset($_GET['woo-per-page-num'])) {
            $return_page_num = $default_page_num * (intval($_GET['woo-per-page-num']) + 1);
        } else {
            $return_page_num = $default_page_num;
        }
        add_filter('loop_shop_per_page', create_function('$cols', 'return ' . $return_page_num . ';'), 20);
    }
    // Setting shop page image use fancybox lightbox
    if (get_option('woocommerce_enable_lightbox') == 'yes') {
        update_option('woocommerce_enable_lightbox', 'no');
    }
    // Ensure cart contents update when products are added to the cart via AJAX (place the following in functions.php)
    add_filter('add_to_cart_fragments', 'woocommerce_header_add_to_cart_fragment');
    function woocommerce_header_add_to_cart_fragment($fragments)
    {
/**
 * Redesign login page
 */
function roen_login_logo()
{
    ?>


    <style type="text/css">

        body.login div#login h1 a {

			width:<?php 
    echo penguin_get_options_key('logo-image-width');
    ?>
px;

			height:<?php 
    echo penguin_get_options_key('logo-image-height');
    ?>
px;

			background-image:url(<?php 
    echo penguin_get_options_key('logo-image') == "" ? get_template_directory_uri() . "/img/logo.png" : penguin_get_options_key('logo-image');
    ?>
);

    		background-size: <?php 
    echo penguin_get_options_key('logo-image-width');
    ?>
px <?php 
    echo penguin_get_options_key('logo-image-height');
    ?>
px;

        }

		@media only screen and (-Webkit-min-device-pixel-ratio: 1.5),

		only screen and (-moz-min-device-pixel-ratio: 1.5),

		only screen and (-o-min-device-pixel-ratio: 3/2),

		only screen and (min-device-pixel-ratio: 1.5) {

			body.login div#login h1 a {

				background-image: url(<?php 
    echo penguin_get_options_key('logo-retina-image') == "" ? get_template_directory_uri() . "/img/logo@2x.png" : penguin_get_options_key('logo-retina-image');
    ?>
);

			}

		}

    </style>

<?php 
}
Example #8
0
 * Portfolio Single Page Related Items
 *
 * @since roen 1.0
 */
if (penguin_get_options_key('portfolio-related-enable') == "on") {
    ?>

<div class="post-related wide-background">
	<div class="roen-title">
		<h3><?php 
    _e('You may also like', 'roen');
    ?>
</h3>
		<div class="line"></div>
	</div>
	<?php 
    $cat_slugs = penguin_get_custom_post_categories(get_the_ID(), 'portfolio-cats', true, ",", 'slug');
    $related_style = intval(penguin_get_post_meta_key('related-items-style'));
    $show_number = intval(penguin_get_options_key('portfolio-related-num'));
    if ($related_style == 0) {
        $related_style = intval(penguin_get_options_key('portfolio-related-style')) + 1;
    }
    if ($show_number == 0) {
        $show_number = 4;
    }
    echo do_shortcode('[portfolio_scroll_list columns="4" number="' . esc_attr($show_number) . '" style="' . esc_attr($related_style) . '" type="related" cat__in="' . esc_attr($cat_slugs) . '" post__not_in="' . get_the_ID() . '"]');
    ?>

</div>
<?php 
}
    /* content */
    roen_add_background_style('global-content', '#page-content-wrap');
    /* footer */
    roen_add_background_style('global-footer', '#footer-wrap');
    ?>

/* 	----------------------------------------------------------------------------------------------	
										RETINA																												
	----------------------------------------------------------------------------------------------	*/
@media only screen and (-Webkit-min-device-pixel-ratio: 1.5),
only screen and (-moz-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio: 1.5) {
<?php 
    /* body */
    if (intval(penguin_get_options_key('global-layout')) != 1) {
        roen_add_background_style('global', 'body.boxed-layout', 0, true);
    }
    /* header */
    roen_add_background_style('global-header', '#roen-header', 0, true);
    /* title */
    roen_add_background_style('global-title', '#page-header-wrap', 0, true);
    /* content */
    roen_add_background_style('global-content', '#page-content-wrap', 0, true);
    /* footer */
    roen_add_background_style('global-footer', '#footer-wrap', 0, true);
    ?>

}
<?php 
}
Example #10
0
                roen_get_topbar_content(0);
                ?>

                    </div>
                </div>
                 <div class="col-md-4 col-sm-4">
                    <div id="header-topbar-right-content">
                    <?php 
                roen_get_topbar_content(1);
                ?>

                    </div>
                </div>
                <?php 
            } else {
                if (intval(penguin_get_options_key('topbar-layout')) == 4) {
                    ?>

                <div class="col-md-4 col-sm-4">
                    <div id="header-topbar-left-content">
                    <?php 
                    roen_get_topbar_content(0);
                    ?>

                    </div>
                </div>
                <div class="col-md-4 col-sm-4">
                    <div id="header-topbar-center-content">
                    <?php 
                    roen_get_topbar_content(2);
                    ?>
Example #11
0
<?php

/**
 * Header Banner
 * 
 * @since roen 1.0
 */
if (penguin_get_options_key('header-banner-enable') == "on") {
    ?>

    <div id="header-banner" data-id="<?php 
    echo penguin_get_options_key('header-banner-id');
    ?>
">
        <div class="container">
            <div class="header-banner-content">
            <p>
			<?php 
    echo do_shortcode(penguin_get_options_key('header-banner-content'));
    ?>

            </p>
            <a href="#" class="close-btn"><i class="fa fa-times"></i></a>
            </div>
        </div>
    </div>
<?php 
}
Example #12
0
                        </form>
                    </div>
                </div>
                <?php 
}
?>

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

     <!-- mobile show drop select menu -->
    <div id="roen-drop-nav" class="navbar">
        <div id="roen-nav-menu-select" class="navbar-inverse">
        	<?php 
if (penguin_get_options_key('mobile-search-enable') == "on") {
    ?>

            <div class="roen-nav-form">
                <form role="search" class="searchform" method="get" action="<?php 
    echo esc_url(home_url('/'));
    ?>
">
                   <div>
                        <input class="sf-s" name="s" type="text" placeholder="<?php 
    _e('Search', 'roen');
    ?>
" />
                        <button class="btn sf-searchsubmit" type="submit"><i class="fa fa-search"></i></button>
                   </div>
                </form>
Example #13
0
 * @since roen 1.0
 */
global $blog_post_style;
get_header();
if ((is_home() && !is_front_page() || is_category() || is_tag() || is_date()) && intval(get_option('page_for_posts')) > 0) {
    //when you use custom page for blog will use the page layout
    $layout = roen_get_page_layout(get_option('page_for_posts'));
    $layout_class = roen_get_page_layout_class(get_option('page_for_posts'));
    $sidebar_name = get_post_meta(get_option('page_for_posts'), 'sidebar-type', true);
} else {
    // index default will use global layout
    $layout = roen_get_page_layout('global');
    $layout_class = roen_get_page_layout_class('global');
    $sidebar_name = '0';
}
$blog_post_style = penguin_get_options_key('blog-post-show-style');
?>

	<div id="main" class="container">
    	<div class="row">
        	<section class="<?php 
echo $layout == 1 ? 'col-md-12 col-sm-12' : 'roen-col col-lg-9 col-md-8 col-sm-8 roen-' . $layout_class;
?>
">
				<?php 
// blog posts
if (have_posts()) {
    while (have_posts()) {
        the_post();
        get_template_part('template/blog/content', get_post_format());
    }
Example #14
0
if (penguin_get_options_key('blog-related-enable') == "on") {
    ?>

<div class="post-related wide-background">
	<div class="roen-title">
		<h3><?php 
    _e('You may also like', 'roen');
    ?>
</h3>
		<div class="line"></div>
	</div>
	<?php 
    $related_style = intval(penguin_get_post_meta_key('related-items-style'));
    $show_number = intval(penguin_get_options_key('blog-related-num'));
    if ($related_style == 0) {
        $related_style = intval(penguin_get_options_key('blog-related-style')) + 1;
    }
    if ($show_number == 0) {
        $show_number = 4;
    }
    $categories = get_the_category();
    $slugs = '';
    if ($categories) {
        foreach ($categories as $category) {
            if ($slugs != '') {
                $slugs .= ',';
            }
            $slugs .= $category->slug;
        }
    }
    echo do_shortcode('[blog_scroll_list columns="4" number="' . esc_attr($show_number) . '" style="' . esc_attr($related_style) . '" type="related" cat__in="' . esc_attr($slugs) . '" post__not_in="' . get_the_ID() . '"]');
    /**
     * show background css
     *
     * @since roen 1.0
     */
    function roen_add_background_style($key, $target, $type_key = 0, $retina = false, $options = '')
    {
        if (!$retina) {
            if (intval(penguin_get_options_key($key . '-bg-type', $options, false, '', true)) == $type_key && intval(penguin_get_options_key($key . '-bg-pattern-width', $options, false, '', true)) != 0 && intval(penguin_get_options_key($key . '-bg-pattern-width', $options, false, '', true)) != 0 && penguin_get_options_key($key . '-bg-pattern-image', $options, false, '', true) != "") {
                ?>

<?php 
                echo $target;
                ?>
 {
	background-size:<?php 
                echo penguin_get_options_key($key . '-bg-pattern-width', $options, false, '', true);
                ?>
px <?php 
                echo penguin_get_options_key($key . '-bg-pattern-height', $options, false, '', true);
                ?>
px;
	background-repeat: repeat;
	background-image:url(<?php 
                echo penguin_get_options_key($key . '-bg-pattern-image', $options, false, '', true);
                ?>
);
}
		<?php 
            } else {
                if (intval(penguin_get_options_key($key . '-bg-type', $options, false, '', true)) == $type_key + 1 && penguin_get_options_key($key . '-bg-image', $options, false, '', true) != "") {
                    ?>

<?php 
                    echo $target;
                    ?>
 { 
	background: url(<?php 
                    echo penguin_get_options_key($key . '-bg-image', $options, false, '', true);
                    ?>
) no-repeat center center fixed; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}
		<?php 
                } else {
                    if (intval(penguin_get_options_key($key . '-bg-type', $options, false, '', true)) == $type_key + 2 && penguin_get_options_key($key . '-bg-color', $options, false, '', true) != "") {
                        ?>

<?php 
                        echo $target;
                        ?>
{
	background:#<?php 
                        echo penguin_get_options_key($key . '-bg-color', $options, false, '', true);
                        ?>
;
}
		<?php 
                    }
                }
            }
            if (intval(penguin_get_options_key($key . '-bg-type', $options, false, '', true)) >= $type_key) {
                //footer copyright area color
                if (($key == "global-footer" || $key == "page-footer") && penguin_get_options_key($key . '-bottom-bg-color', $options, false, '', true) != "") {
                    ?>

.footer-bottom-content {background: #<?php 
                    echo penguin_get_options_key($key . '-bottom-bg-color', $options, false, '', true);
                    ?>
;}
			<?php 
                }
            }
        } else {
            if (intval(penguin_get_options_key($key . '-bg-type', $options, false, '', true)) == $type_key && penguin_get_options_key($key . '-bg-pattern-retina', $options, false, '', true) != "") {
                ?>

<?php 
                echo $target;
                ?>
 {
	background-image:url(<?php 
                echo penguin_get_options_key($key . '-bg-pattern-retina', $options, false, '', true);
                ?>
);
}
    <?php 
            }
        }
    }
function roen_custom_option_posts_per_page($value)
{
    if (is_search()) {
        if (penguin_get_options_key('search-show-num') != '') {
            return intval(penguin_get_options_key('search-show-num'));
        }
    } else {
        if (is_tax("portfolio-cats")) {
            $portfolio_default_page_id = roen_get_default_portfolio_page();
            if (intval($portfolio_default_page_id) > 0) {
                $portfolio_per_page_numbers = penguin_get_post_meta_key('page-posts-num', $portfolio_default_page_id);
                if ($portfolio_per_page_numbers != '') {
                    return intval($portfolio_per_page_numbers);
                }
            }
        }
    }
    return $value;
}
<?php

/**
 * Page Header For Search Page
 * 
 * @since roen 1.0
 */
?>

<div id="search-form-wrap" class="<?php 
if (intval(penguin_get_options_key('search-title-skin')) > 0) {
    switch (intval(penguin_get_options_key('search-title-skin'))) {
        case 1:
            echo 'light';
            break;
        case 2:
            echo 'dark';
            break;
    }
}
?>
">
	<header class="search-form-heading">
		<h1><?php 
_e('Search', 'ROEN');
?>
</h1>
		<h4><?php 
_e('We make everything as easy as possible, so you easier to find what you need.', 'ROEN');
?>
</h4>
Example #18
0
" itemprop="interactionCount"><i class="fa fa-comments"></i><?php 
comments_number(__('0', 'ROEN'), __('1', 'ROEN'), __('%', 'ROEN'));
?>
</a>
            <?php 
edit_post_link('<i class="fa fa-edit"></i>' . __('Edit', 'ROEN'), '<div class="post-edit btn btn-theme btn-sm no-margin ">', '</div>');
?>

            
            <?php 
if (penguin_get_options_key('blog-enable-share') == "on" && penguin_get_options_key('blog-share-code') != '') {
    ?>

            <div class="share-content">
                <?php 
    echo penguin_get_options_key('blog-share-code');
    ?>

            </div>
            <?php 
}
?>

        </aside>
        <section class="entry-right-side">
            <?php 
get_template_part('template/blog/single/header-element', get_post_format());
?>

            <header class="entry-header">
                <?php 
Example #19
0
    ?>
</span></span>

	<?php 
}
?>

	<?php 
echo $product->get_categories(', ', '<span class="posted_in">' . _n('Category:', 'Categories:', $cat_count, 'woocommerce') . ' ', '</span>');
?>

	<?php 
echo $product->get_tags(', ', '<span class="tagged_as">' . _n('Tag:', 'Tags:', $tag_count, 'woocommerce') . ' ', '</span>');
?>

	<?php 
do_action('woocommerce_product_meta_end');
?>

</div>

<?php 
if (penguin_get_options_key('woo-enable-share') == "on" && penguin_get_options_key('woo-share-code') != '') {
    ?>
<div class="share-content">
    <?php 
    echo penguin_get_options_key('woo-share-code');
    ?>
</div>
<?php 
}
<?php

/**
 * Footer Copyright & Link Custom Content
 * 
 * @since roen 1.0
 */
?>

<div class="footer-bottom-content">
    <div class="container <?php 
if (intval(penguin_get_options_key('footer-bottom-style')) == 1) {
    echo 'footer-custom-align-center';
} else {
    echo 'footer-custom-align-default';
}
?>
">
        <div class="footer-custom-area-left"><?php 
echo do_shortcode(penguin_get_options_key('footer-custom-content-left'));
?>
</div>
        <div class="footer-custom-area-right"><?php 
echo do_shortcode(penguin_get_options_key('footer-custom-content-right'));
?>
</div>
    </div>
</div>