$link_on_thumb = $affiliate_link != '' ? rehub_create_affiliate_link() : get_the_permalink();
            ?>
                                    <?php 
            $link_on_thumb_target = $affiliate_link != '' ? ' class="btn_offer_block" target="_blank" rel="nofollow"' : '';
            ?>
                                    <a href="<?php 
            echo $link_on_thumb;
            ?>
"<?php 
            echo $link_on_thumb_target;
            ?>
>
                                    <?php 
            $img = get_post_thumb();
            $nothumb = get_template_directory_uri() . '/images/default/noimage_100_70.png';
            if (rehub_option('aq_resize_crop') == '1') {
                $params = array('width' => 100);
            } else {
                $params = array('width' => 100, 'height' => 100, 'crop' => true);
            }
            ?>
                                    <?php 
            if (!empty($img)) {
                ?>
                                        <img src="<?php 
                echo bfi_thumb($img, $params);
                ?>
" alt="<?php 
                the_title_attribute();
                ?>
" />
Example #2
0
<div><a href="<?php 
the_permalink();
?>
" class="read_full" target="_blank"><?php 
if (rehub_option('rehub_review_text') != '') {
    echo rehub_option('rehub_review_text');
} else {
    _e('Read review', 'rehub_framework');
}
?>
</a></div>
 function attach_comment_criteria_raitings($text = '')
 {
     $userCriteria = get_comment_meta(get_comment_ID(), 'user_criteria', true);
     $pros_review = get_comment_meta(get_comment_ID(), 'pros_review', true);
     $cons_review = get_comment_meta(get_comment_ID(), 'cons_review', true);
     $userAverage = get_comment_meta(get_comment_ID(), 'user_average', true);
     if (is_array($userCriteria) && !empty($userCriteria)) {
         if (rehub_option('color_type_review') == 'simple') {
             $color_type = ' simple_color';
         } else {
             $color_type = ' multi_color';
         }
         if (is_singular('post') && rehub_option('rehub_replace_color') == '1' && rehub_option('color_type_review') == 'simple') {
             $category = get_the_category($post->ID);
             $first_cat = $category[0]->term_id;
             $cat_sustom = ' category-' . $first_cat . '';
         } else {
             $cat_sustom = '';
         }
         $text = '<div class="user_reviews_view' . $color_type . '' . $cat_sustom . '"><div class="user_reviews_view_left">';
         if (isset($userAverage) && $userAverage != '') {
             $userAverages = $userAverage * 10;
             $userstartitle = $userAverage / 2;
             $text .= '<div class="user_reviews_view_score"><div class="userstar-rating" title="' . __('Rated', 'rehub_framework') . ' ' . $userstartitle . ' ' . __('out of', 'rehub_framework') . ' 5"><span style="width:' . $userAverages . '%"><strong class="rating">' . $userstartitle . '</strong></span></div></div>';
         }
         for ($i = 0; $i < count($userCriteria); $i++) {
             $value_criteria = $userCriteria[$i]['value'] * 10;
             $text .= '<div class="user_reviews_view_criteria_line"><span class="user_reviews_view_criteria_name">' . $userCriteria[$i]['name'] . '</span><div class="userstar-rating"><span style="width:' . $value_criteria . '%"><strong class="rating">' . $value_criteria . '</strong></span></div></div>';
         }
         $text .= '</div>';
         $text .= '<div class="user_reviews_view_proscons"><div class="comm_text_from_review">' . get_comment_text() . '</div>';
         if (isset($pros_review) && $pros_review != '') {
             $text .= '<div class="user_reviews_view_pros"><span class="user_reviews_view_pc_title">' . __('+ PROS:', 'rehub_framework') . ' </span><span> ' . $pros_review . '</span></div>';
         }
         if (isset($cons_review) && $cons_review != '') {
             $text .= '<div class="user_reviews_view_cons"><span class="user_reviews_view_pc_title">' . __('- CONS:', 'rehub_framework') . '</span><span> ' . $cons_review . '</span></div>';
         }
         $text .= '</div></div>';
     }
     echo $text;
 }
Example #4
0
    </div>
    <?php 
if (rehub_option('rehub_header_style') == 'header_first') {
    ?>
<div class="search head_search"><?php 
    get_search_form();
    ?>
</div><?php 
}
?>
    <?php 
if (rehub_option('rehub_header_style') != 'header_third') {
    if (rehub_option('rehub_ads_top')) {
        ?>
<div class="mediad"><?php 
        echo do_shortcode(rehub_option('rehub_ads_top'));
        ?>
</div><?php 
    }
}
?>
  </div>
  <!-- /Logo section -->  
  <!-- Main Navigation -->
  <div class="main-nav">
    <?php 
wp_nav_menu(array('container_class' => 'top_menu', 'container' => 'nav', 'theme_location' => 'primary-menu', 'fallback_cb' => 'add_menu_for_blank'));
?>
    <div class="responsive_nav_wrap"></div>
  </div>
  <!-- /Main Navigation -->
Example #5
0
    ?>
						<?php 
    the_content();
    ?>
					<?php 
}
?>

			</div>	
            <!-- /Main Side -->   
        </div>
    </div>
    <!-- /CONTENT -->     
<!-- FOOTER -->
<?php 
if ($footer_disable == '1') {
    if (rehub_option('rehub_analytics')) {
        echo rehub_option('rehub_analytics');
    }
    if (rehub_option('rehub_disable_totop') != '1') {
        ?>
<a href="#top_ankor" class="rehub_scroll" id="topcontrol"><i class="fa fa-chevron-up"></i></a><?php 
    }
    wp_footer();
    ?>
</body>
</html>
<?php 
} else {
    get_footer();
}
<?php

$module_cat = $module_formats = $module_fetch = '';
extract(shortcode_atts(array('module_cat' => '', 'module_formats' => '', 'module_fetch' => '6'), $atts));
if ($module_formats == 'all') {
    $module_formats = '';
}
$module_exclude = rehub_option('rehub_exclude_posts');
if ($module_exclude == 1) {
    $exclude_posts = rehub_exclude_feature_posts();
} else {
    $exclude_posts = '';
}
if (!is_paged()) {
    wp_enqueue_script('carouFredSel');
    ?>
<div class="def-carousel sec_style_carousel loading">
<section class="clearfix">
    <ul class="gallery-pics clearfix">
        <?php 
    $gal_post_block = new WP_Query(array('cat' => $module_cat, 'post_type' => 'post', 'showposts' => $module_fetch, 'post__not_in' => $exclude_posts, 'meta_key' => 'rehub_framework_post_type', 'meta_value' => $module_formats, 'ignore_sticky_posts' => 1));
    if ($gal_post_block->have_posts()) {
        while ($gal_post_block->have_posts()) {
            $gal_post_block->the_post();
            ?>
            <li> 
                <a href="<?php 
            the_permalink();
            ?>
" class="gal_post_image"><?php 
            rehub_formats_icons();
Example #7
0
  <?php 
    if ($branded_banner_url != '') {
        ?>
</a><?php 
    }
    ?>
  </div> 
  <style>.top_theme { display: none } .content.landing_page{ margin-top: 0 !important}</style>
<?php 
} elseif (rehub_option('rehub_branded_banner_image')) {
    ?>
  <?php 
    $branded_banner_url = rehub_option('rehub_branded_banner_url');
    ?>
  <?php 
    $branded_banner_image = rehub_option('rehub_branded_banner_image');
    ?>
  <div id="branded_img">
  <?php 
    if ($branded_banner_url != '') {
        ?>
<a href="<?php 
        echo $branded_banner_url;
        ?>
" target="_blank"><?php 
    }
    ?>
    <img alt="" src="<?php 
    echo esc_url($branded_banner_image);
    ?>
">
Example #8
0
 function set_content_end($content)
 {
     global $post;
     if (is_feed()) {
         return $content;
     }
     $output = '';
     ob_start();
     wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'rehub_child'), 'after' => '</div>'));
     $output .= ob_get_clean();
     $offer_url_exist = get_post_meta($post->ID, 'rehub_offer_product_url', true);
     if (!empty($offer_url_exist)) {
         $offer_shortcode = get_post_meta($post->ID, 'rehub_offer_shortcode', true);
         if (empty($offer_shortcode)) {
             ob_start();
             echo '<div class="lined_r_title">' . __('Where to buy', 'rehub_child') . '</div>';
             rehub_quick_offer();
             $output .= ob_get_clean();
         }
     } elseif (vp_metabox('rehub_post.rehub_framework_post_type') == 'review') {
         if (vp_metabox('rehub_post.review_post.0.review_post_product.0.review_post_offer_shortcode') != '1' && vp_metabox('rehub_post.review_post.0.review_post_schema_type') == 'review_post_review_product') {
             ob_start();
             echo '<div class="lined_r_title">' . __('Where to buy', 'rehub_child') . '</div>';
             rehub_get_offer();
             $output .= ob_get_clean();
         }
         if (vp_metabox('rehub_post.review_post.0.review_aff_product.0.review_aff_offer_shortcode') != '1' && vp_metabox('rehub_post.review_post.0.review_post_schema_type') == 'review_aff_product') {
             ob_start();
             echo '<div class="lined_r_title">' . __('Where to buy', 'rehub_child') . '</div>';
             rehub_get_aff_offer();
             $output .= ob_get_clean();
         }
         if (vp_metabox('rehub_post.review_post.0.review_woo_product.0.review_woo_offer_shortcode') != '1' && vp_metabox('rehub_post.review_post.0.review_post_schema_type') == 'review_woo_product') {
             $review_woo_link = vp_metabox('rehub_post.review_post.0.review_woo_product.0.review_woo_link');
             ob_start();
             echo '<div class="lined_r_title">' . __('Where to buy', 'rehub_child') . '</div>';
             rehub_get_woo_offer($review_woo_link);
             $output .= ob_get_clean();
         }
         if (vp_metabox('rehub_post.review_post.0.review_woo_list.0.review_woo_list_shortcode') != '1' && vp_metabox('rehub_post.review_post.0.review_post_schema_type') == 'review_woo_list') {
             $review_woo_list_links = vp_metabox('rehub_post.review_post.0.review_woo_list.0.review_woo_list_links');
             if (is_array($review_woo_list_links)) {
                 $review_woo_list_links = implode(',', $review_woo_list_links);
             }
             ob_start();
             echo '<div class="lined_r_title">' . __('Where to buy', 'rehub_child') . '</div>';
             rehub_get_woo_list($data_source = 'ids', $type = '', $cat = '', $tag = '', $ids = $review_woo_list_links);
             $output .= ob_get_clean();
         }
     }
     if (vp_metabox('rehub_post.rehub_framework_post_type') == 'review' && vp_metabox('rehub_post.review_post.0.review_post_product_shortcode') == '0') {
         $overal_score = rehub_get_overall_score();
         $postAverage = get_post_meta(get_the_ID(), 'post_user_average', true);
         ob_start();
         if (rehub_option('type_user_review') == 'full_review' && ($postAverage != '0' && $postAverage != '')) {
             echo '<div class="lined_r_title">' . __('Review Score', 'rehub_child') . '</div>';
         } elseif ($overal_score != '0' && $overal_score != '') {
             echo '<div class="lined_r_title">' . __('Review Score', 'rehub_child') . '</div>';
         }
         rehub_get_review();
         $output .= ob_get_clean();
     }
     return $content . $output;
 }
Example #9
0
html#ecwid_html body#ecwid_body div.ecwid-ContinueShoppingButton-up-hovering, html#ecwid_html body#ecwid_body div.ecwid-ContinueShoppingButton-ie6-up-hovering, html#ecwid_html body#ecwid_body div.ecwid-AddToBagButton-up-hovering, html#ecwid_html body#ecwid_body div.ecwid-AddToBagButton-ie6-up-hovering, html#ecwid_html body#ecwid_body div.ecwid-productBrowser-cart-checkoutButton-up-hovering, html#ecwid_html body#ecwid_body div.ecwid-productBrowser-cart-checkoutButton-ie6-up-hovering, html#ecwid_html body#ecwid_body div.ecwid-Checkout-placeOrderButton-up-hovering, html#ecwid_html body#ecwid_body div.ecwid-Checkout-placeOrderButton-ie6-up-hovering, html#ecwid_html body#ecwid_body button.ecwid-AccentedButton:hover { background-color: #111111 !important; background-position: left bottom !important }


<?php 
if (rehub_option('rehub_review_color')) {
    ?>
	.rate-line .filled, .rate_bar_wrap .review-top .overall-score, .rate-bar-bar, .top_rating_item .score.square_score, .rate_bar_wrap_two_reviews .user-review-criteria .rate-bar-bar{background-color: <?php 
    echo rehub_option('rehub_review_color');
    ?>
 ;}
	.meter-wrapper .meter{border-color: <?php 
    echo rehub_option('rehub_review_color');
    ?>
;}
	.userstar-rating span:before{color: <?php 
    echo rehub_option('rehub_review_color');
    ?>
;}
	.rate_bar_wrap .review-top .overall-score span.overall-text{border: 1px solid <?php 
    echo rehub_option('rehub_review_color');
    ?>
;}
	.rate_bar_wrap_two_reviews .score_val, .rate_bar_wrap_two_reviews .user-review-criteria .score_val{border-bottom: 3px solid <?php 
    echo rehub_option('rehub_review_color');
    ?>
}
<?php 
}
?>

</style>
Example #10
0
</div>                               
            <?php 
} else {
    ?>
                <div class="pagination"><?php 
    rehub_pagination();
    ?>
</div>
            <?php 
}
?>
  	
        </div>	
        <!-- /Main Side -->
        <?php 
if (rehub_option('rehub_framework_category_layout') == 'two_column_with' || rehub_option('rehub_framework_category_layout') == 'blog_with' || rehub_option('rehub_framework_category_layout') == 'list_with') {
    ?>
            <!-- Sidebar -->
            <?php 
    get_sidebar();
    ?>
            <!-- /Sidebar --> 
        <?php 
}
?>
    </div>
</div>
<!-- /CONTENT -->     
<!-- FOOTER -->
<?php 
get_footer();
Example #11
0
</div>                               
            <?php 
} else {
    ?>
                <div class="pagination"><?php 
    rehub_pagination();
    ?>
</div>
            <?php 
}
?>
 
        </div>	
        <!-- /Main Side -->
        <?php 
if (rehub_option('rehub_framework_archive_layout') == 'two_column_with' || rehub_option('rehub_framework_archive_layout') == 'blog_with' || rehub_option('rehub_framework_archive_layout') == 'list_with') {
    ?>
            <!-- Sidebar -->
            <?php 
    get_sidebar();
    ?>
            <!-- /Sidebar --> 
        <?php 
}
?>
    </div>
</div>
<!-- /CONTENT -->     
<!-- FOOTER -->
<?php 
get_footer();
Example #12
0
<?php

if (vp_metabox('rehub_framework_brand.rehub_branded_bg_url_single') && (is_single() || is_page())) {
    ?>
  <?php 
    $branded_bg_url = vp_metabox('rehub_framework_brand.rehub_branded_bg_url_single');
    ?>
  <a id="branded_bg" href="<?php 
    echo $branded_bg_url;
    ?>
" target="_blank" rel="nofollow"></a>
<?php 
} elseif (rehub_option('rehub_branded_bg_url')) {
    ?>
  <?php 
    $branded_bg_url = rehub_option('rehub_branded_bg_url');
    ?>
  <a id="branded_bg" href="<?php 
    echo $branded_bg_url;
    ?>
" target="_blank" rel="nofollow"></a>
<?php 
}
Example #13
0
 function ajax_action_picker_home()
 {
     $nonce = $_POST['nonce'];
     if (!wp_verify_nonce($nonce, 'ajax-nonce')) {
         die('Nope!');
     }
     $data = $_POST;
     $query_args = array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 12, 'ignore_sticky_posts' => 1);
     if ($data['sorttype'] == 'hot') {
         $query_args['meta_key'] = 'post_hot_count';
         $query_args['orderby'] = 'meta_value_num';
     } elseif ($data['sorttype'] == 'popular') {
         $query_args['meta_key'] = 'rehub_views';
         $query_args['orderby'] = 'meta_value_num';
     } elseif ($data['sorttype'] == 'bestprice') {
         $query_args['meta_key'] = rehub_option('rehub_home_price');
         $query_args['orderby'] = 'meta_value_num';
         $query_args['order'] = 'ASC';
     } elseif ($data['sorttype'] == 'mostprice') {
         $query_args['meta_key'] = rehub_option('rehub_home_price');
         $query_args['orderby'] = 'meta_value_num';
         $query_args['order'] = 'DESC';
     } elseif ($data['sorttype'] == 'random') {
         $query_args['orderby'] = 'rand';
     }
     if (isset($data['offset']) && !empty($data['offset'])) {
         $query_args['offset'] = $data['offset'];
     }
     $offset = isset($data['offset']) && !empty($data['offset']) ? $data['offset'] + 12 : 12;
     $wp_query = new WP_Query($query_args);
     $count = 0;
     if ($wp_query->have_posts()) {
         $response = '<div class="masonry_grid_fullwidth three-col-gridhub">';
         while ($wp_query->have_posts()) {
             $wp_query->the_post();
             ob_start();
             $count++;
             include locate_template('inc/parts/query_type3.php');
             $response .= ob_get_clean();
         }
         $response .= '</div><div class="clearfix"></div>';
         $response .= '<div class="more_post onclick home_picker_next"><span data-sorttype="' . $data['sorttype'] . '" data-offset="' . $offset . '">' . __('Next posts', 'rehub_child') . '</span></div>';
     } else {
         $response = '<div><span class="no_more_posts">' . __('No more posts!', 'rehub_child') . '<span></div><div class="clearfix"></div>';
     }
     wp_reset_postdata();
     echo $response;
     exit;
 }
Example #14
0
    function wpsm_toptable_shortcode($atts, $content = null)
    {
        extract(shortcode_atts(array('id' => '', 'full_width' => '0'), $atts));
        if (isset($atts['id']) && $atts['id']) {
            $toppost = get_post($atts['id']);
            $module_cats = get_post_meta($toppost->ID, 'top_review_cat', true);
            $module_tag = get_post_meta($toppost->ID, 'top_review_tag', true);
            $module_fetch = intval(get_post_meta($toppost->ID, 'top_review_fetch', true));
            $module_ids = get_post_meta($toppost->ID, 'manual_ids', true);
            $order_choose = get_post_meta($toppost->ID, 'top_review_choose', true);
            $module_field_sorting = get_post_meta($toppost->ID, 'top_review_field_sort', true);
            $module_order = get_post_meta($toppost->ID, 'top_review_order', true);
            $first_column_enable = get_post_meta($toppost->ID, 'first_column_enable', true);
            $first_column_rank = get_post_meta($toppost->ID, 'first_column_rank', true);
            $last_column_enable = get_post_meta($toppost->ID, 'last_column_enable', true);
            $first_column_name = get_post_meta($toppost->ID, 'first_column_name', true) != '' ? esc_html(get_post_meta($toppost->ID, 'first_column_name', true)) : __('Product', 'rehub_framework');
            $last_column_name = get_post_meta($toppost->ID, 'last_column_name', true) != '' ? esc_html(get_post_meta($toppost->ID, 'last_column_name', true)) : '';
            $affiliate_link = get_post_meta($toppost->ID, 'first_column_link', true);
            $rows = get_post_meta($toppost->ID, 'columncontents', true);
            //Get the rows
            if ($module_fetch == '') {
                $module_fetch = '10';
            }
            ob_start();
            ?>
        <div class="clearfix"></div>
        <?php 
            if ($order_choose == 'cat_choose') {
                ?>
            <?php 
                $query = array('cat' => $module_cats, 'tag' => $module_tag, 'posts_per_page' => $module_fetch, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => 1);
                ?>
 
            <?php 
                if (!empty($module_field_sorting)) {
                    $query['meta_key'] = $module_field_sorting;
                    $query['orderby'] = 'meta_value_num';
                }
                ?>
            <?php 
                if ($module_order == 'asc') {
                    $query['order'] = 'ASC';
                }
                ?>
	                
    	<?php 
            } elseif ($order_choose == 'manual_choose' && $module_ids != '') {
                ?>
            <?php 
                $query = array('post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => -1, 'orderby' => 'post__in', 'post__in' => $module_ids);
                ?>
    	<?php 
            } else {
                ?>
            <?php 
                $query = array('posts_per_page' => $module_fetch, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => 1);
                ?>
            <?php 
                if (!empty($module_field_sorting)) {
                    $query['meta_key'] = $module_field_sorting;
                    $query['orderby'] = 'meta_value_num';
                }
                ?>
            <?php 
                if ($module_order == 'asc') {
                    $query['order'] = 'ASC';
                }
                ?>
	                             		
    	<?php 
            }
            ?>
	


        <?php 
            $loop = new WP_Query($query);
            $i = 0;
            if ($loop->have_posts()) {
                ?>
        <?php 
                wp_enqueue_script('tablesorter');
                wp_enqueue_style('tabletoggle');
                ?>
        <div class="scrollable_table">
        <table data-tablesaw-mode="columntoggle" data-tablesaw-minimap class="tablesaw top_table_block<?php 
                if ($full_width == '1') {
                    ?>
 full_width_rating<?php 
                } else {
                    ?>
 with_sidebar_rating<?php 
                }
                ?>
 tablesorter" cellspacing="0">
            <thead> 
            <tr class="top_rating_heading">
                <?php 
                if ($first_column_enable) {
                    ?>
<th class="product_col_name" data-tablesaw-sortable-col data-tablesaw-priority="persist"><?php 
                    echo $first_column_name;
                    ?>
</th><?php 
                }
                ?>
                <?php 
                if (!empty($rows)) {
                    $nameid = 0;
                    foreach ($rows as $row) {
                        $col_name = $row['column_name'];
                        echo '<th class="col_name" data-tablesaw-sortable-col data-tablesaw-priority="1">' . esc_html($col_name) . '</th>';
                        $nameid++;
                    }
                }
                ?>
                <?php 
                if ($last_column_enable) {
                    ?>
<th class="buttons_col_name" data-tablesaw-sortable-col data-tablesaw-priority="1"><?php 
                    echo $last_column_name;
                    ?>
</th><?php 
                }
                ?>
                      
            </tr>
            </thead>
            <tbody>
        <?php 
                while ($loop->have_posts()) {
                    $loop->the_post();
                    $i++;
                    ?>
     
            <tr class="top_rating_item" id='rank_<?php 
                    echo $i;
                    ?>
'>
                <?php 
                    if ($first_column_enable) {
                        ?>
                    <td class="product_image_col">
                    	<?php 
                        if (vp_metabox('rehub_post_side.is_editor_choice') == '1') {
                            ?>
<div class="ed_choice_label"><img src="<?php 
                            echo get_template_directory_uri();
                            ?>
/images/editor_hor_badge.png" width="115" height="36" alt=""></div><?php 
                        }
                        ?>
                        <figure>
                            <?php 
                        if (!is_paged() && $first_column_rank) {
                            ?>
<span class="rank_count"><?php 
                            if ($i == '1') {
                                ?>
<i class="fa fa-trophy"></i><?php 
                            } else {
                                echo $i;
                            }
                            ?>
</span><?php 
                        }
                        ?>
                            <?php 
                        $link_on_thumb = $affiliate_link != '' ? rehub_create_affiliate_link() : get_the_permalink();
                        ?>
                            <?php 
                        $link_on_thumb_target = $affiliate_link != '' ? ' class="btn_offer_block"' : '';
                        ?>
                            <a href="<?php 
                        echo $link_on_thumb;
                        ?>
" target="_blank"<?php 
                        echo $link_on_thumb_target;
                        ?>
>
                            <?php 
                        $img = get_post_thumb();
                        $nothumb = get_template_directory_uri() . '/images/default/noimage_100_70.png';
                        if (rehub_option('aq_resize_crop') == '1') {
                            $params = array('width' => 100);
                        } else {
                            $params = array('width' => 100, 'height' => 100, 'crop' => true);
                        }
                        ?>
                            <?php 
                        if (!empty($img)) {
                            ?>
                                <img src="<?php 
                            echo bfi_thumb($img, $params);
                            ?>
" alt="<?php 
                            the_title_attribute();
                            ?>
" />
                            <?php 
                        } else {
                            ?>
    
                                <img src="<?php 
                            echo $nothumb;
                            ?>
" alt="<?php 
                            the_title_attribute();
                            ?>
" />
                            <?php 
                        }
                        ?>
                            </a>
                        </figure>
                    </td>
                <?php 
                    }
                    ?>
                <?php 
                    if (!empty($rows)) {
                        $pbid = 0;
                        foreach ($rows as $row) {
                            $centered = $row['column_center'] == '1' ? ' centered_content' : '';
                            echo '<td class="column_' . $pbid . ' column_content' . $centered . '">';
                            echo do_shortcode(wp_kses_post($row['column_html']));
                            $element = $row['column_type'];
                            if ($element == 'meta_value') {
                                include locate_template('inc/top/metacolumn.php');
                            } else {
                                if ($element == 'review_function') {
                                    include locate_template('inc/top/reviewcolumn.php');
                                } else {
                                    if ($element == 'user_review_function') {
                                        include locate_template('inc/top/userreviewcolumn.php');
                                    } else {
                                    }
                                }
                            }
                            echo '</td>';
                            $pbid++;
                        }
                    }
                    ?>
                <?php 
                    if ($last_column_enable) {
                        ?>
                    <td class="buttons_col">
                    	<?php 
                        rehub_create_btn('');
                        ?>
                                
                    </td>
                <?php 
                    }
                    ?>
            </tr>
        <?php 
                }
                ?>
	        </tbody>
	    </table>
	    </div>
        <?php 
            } else {
                _e('No posts for this criteria.', 'rehub_framework');
                ?>
        <?php 
            }
            ?>
        <?php 
            wp_reset_query();
            ?>

    	<?php 
            $output = ob_get_contents();
            ob_end_clean();
            return $output;
        }
    }
Example #15
0
    ?>
            <?php 
    _e('By', 'rehub_framework');
    ?>
<a class="admin" href="<?php 
    echo get_author_posts_url(get_the_author_meta('ID', $author_id));
    ?>
"><?php 
    echo get_the_author_meta('user_nicename', $author_id);
    ?>
</a>
        <?php 
}
?>
        <?php 
if (rehub_option('exclude_date_meta') == 0) {
    ?>
            <?php 
    _e('on', 'rehub_framework');
    ?>
 <span class="date"><?php 
    the_time('F j, Y');
    ?>
</span>
        <?php 
}
?>
    
    </div>
    <meta itemprop="datePublished" content="<?php 
the_time('Y-m-d');
Example #16
0
?>

    <!-- CONTENT -->
    <div class="content">

        <?php 
if (rehub_option('rehub_featured_toggle') && is_front_page() && !is_paged()) {
    ?>
            <?php 
    get_template_part('inc/parts/featured');
    ?>
        <?php 
}
?>
	    <?php 
if (rehub_option('rehub_homecarousel_toggle') && is_front_page() && !is_paged()) {
    ?>
	        <?php 
    get_template_part('inc/parts/home_carousel');
    ?>
	    <?php 
}
?>
        

		<div class="clearfix">
		      <!-- Main Side -->
              <div class="main-side page page_builder clearfix">
					
				<!-- CONTENT -->
					<?php 
Example #17
0
<div id="comments" class="clearfix">
<?php 
if (rehub_option('rehub_widget_comments') && comments_open()) {
    echo htmlspecialchars_decode(stripslashes(rehub_kses(rehub_option('rehub_widget_comments'))));
    ?>
<div style="margin-bottom:15px; clear:both"></div><?php 
}
if (rehub_option('rehub_disable_comments') != '1') {
    ?>
    <div class="post-comments">
        <?php 
    if (comments_open()) {
        echo "<div class='title_comments'>";
        comments_number(__('No Comments', 'rehub_framework'), __('1 Comment', 'rehub_framework'), '% ' . __('Comments', 'rehub_framework'));
        echo "</div>";
    }
    echo "<ol class='commentlist'>";
    wp_list_comments(array('avatar_size' => 50, 'max_depth' => 4, 'style' => 'ul', 'callback' => 'rehub_framework_comments', 'type' => 'all'));
    echo "</ol>";
    echo "<div id='comments_pagination'>";
    paginate_comments_links(array('prev_text' => '&laquo;', 'next_text' => '&raquo;'));
    echo "</div>";
    $custom_comment_field = '<textarea id="comment" name="comment" cols="30" rows="10" aria-required="true"></textarea>';
    $commenter = wp_get_current_commenter();
    comment_form(array('comment_field' => $custom_comment_field, 'comment_notes_after' => '', 'logged_in_as' => '', 'comment_notes_before' => '', 'title_reply' => __('Leave a reply', 'rehub_framework'), 'cancel_reply_link' => __('Cancel reply', 'rehub_framework'), 'label_submit' => __('Post comment', 'rehub_framework'), 'fields' => apply_filters('comment_form_default_fields', array('author' => '<div class="usr_re"><input id="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" name="author" placeholder="' . __('Name', 'rehub_framework') . '"></div>', 'email' => '<div class="email_re"><input id="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" name="email" placeholder="' . __('E-mail', 'rehub_framework') . '"></div>', 'url' => '<div class="site_re end"><input id="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" name="url" placeholder="' . __('Website', 'rehub_framework') . '"></div><div class="clearfix"></div>'))));
    ?>
    </div> <!-- end comments div -->
<?php 
}
?>
    
            <?php 
    $afflink = $item['url'];
    ?>
            <?php 
    $aff_thumb = $item['img'];
    ?>
            <?php 
    $offer_title = wp_trim_words($item['title'], 10, '...');
    ?>
            <?php 
    $i++;
    ?>
  
            <?php 
    if (rehub_option('rehub_btn_text') != '') {
        $btn_txt = rehub_option('rehub_btn_text');
    } else {
        $btn_txt = __('See deal', 'rehub_framework');
    }
    ?>
     
            <div class="woorow_aff">
                <div class="product-pic-wrapper">
                    <a rel="nofollow" target="_blank" href="<?php 
    echo esc_url($afflink);
    ?>
"<?php 
    echo $item['ga_event'];
    ?>
>
                        <?php 
Example #19
0
    if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {
        ?>
              <figure class="slider_post">
                  <div class="pattern"></div>
                  <div class="caption"><a href="<?php 
        the_permalink();
        ?>
">+<?php 
        echo $gallery_i;
        ?>
</a><i class="fa fa-camera"></i></div>
                  <?php 
        rehub_formats_icons();
        ?>
                  <?php 
        if (rehub_option('aq_resize') == 1) {
            ?>
                      <?php 
            $img = get_post_thumb();
            ?>
 
                      <a href="<?php 
            the_permalink();
            ?>
"><img src="<?php 
            $params = array('width' => 300, 'height' => 200, 'crop' => true);
            echo bfi_thumb($img, $params);
            ?>
" alt="<?php 
            the_title();
            ?>
Example #20
0
<div class="masonry_grid_fullwidth three-col-gridhub"> 
<?php 
}
?>
 
<?php 
$count = 0;
$count_ad_descs = explode("\n", rehub_option('rehub_grid_ads_desc'));
if ($wp_query->have_posts()) {
    while ($wp_query->have_posts()) {
        $wp_query->the_post();
        ?>
    <?php 
        $count++;
        $count_ad = rehub_option('rehub_grid_ad_count');
        $count_ad_code = rehub_option('rehub_grid_ads_code');
        ?>
    <?php 
        include locate_template('inc/parts/query_type3.php');
    }
}
?>
</div>
<div class="clearfix"></div>
<?php 
if ($module_pagination == '1') {
    ?>
    <div class="pagination"><?php 
    rehub_pagination();
    ?>
</div>
Example #21
0
        ?>
                <a href="<?php 
        the_permalink();
        ?>
" class="btn_more btn_more_custom"><?php 
        echo strip_tags(vp_metabox('rehub_post_side.read_more_custom'));
        ?>
</a>
            <?php 
    } elseif (rehub_option('rehub_readmore_text') != '') {
        ?>
                <a href="<?php 
        the_permalink();
        ?>
" class="btn_more"><?php 
        echo strip_tags(rehub_option('rehub_readmore_text'));
        ?>
</a>                                                   
            <?php 
    } else {
        ?>
                <a href="<?php 
        the_permalink();
        ?>
" class="btn_more"><?php 
        _e('READ MORE  +', 'rehub_framework');
        ?>
</a>
            <?php 
    }
    ?>
Example #22
0
                ?>
<p><?php 
                the_author_meta('description');
                ?>
</p><?php 
            }
            ?>
                        </div>
                    </div>
                <?php 
        }
        ?>
               

                <?php 
        if (rehub_option('rehub_disable_relative') == '1' || vp_metabox('rehub_post_side.disable_parts') == '1') {
            ?>
                <?php 
        } else {
            ?>
                    <?php 
            get_template_part('inc/parts/related_posts');
            ?>
                <?php 
        }
        ?>
                               

            <?php 
    }
}
Example #23
0
    ?>
" alt="<?php 
    bloginfo('name');
    ?>
" /><?php 
}
?>
</div>
  </div>
</footer>
<!-- FOOTER --> 
<?php 
if (rehub_option('rehub_analytics')) {
    echo rehub_option('rehub_analytics');
}
if (rehub_option('rehub_disable_totop') != '1') {
    ?>
<a href="#top_ankor" class="rehub_scroll" id="topcontrol"><i class="fa fa-chevron-up"></i></a><?php 
}
if (rehub_option('rehub_adblock_enable') == '1') {
    wp_enqueue_script('adblock_init');
    ?>
<div id="noblockdiv" style="display:none"><div class="noadb"><span class="noadb-span"><?php 
    echo rehub_kses(rehub_option('rehub_adblock_notice'));
    ?>
</span></div></div><?php 
}
wp_footer();
?>
</body>
</html>
            <?php 
} else {
    ?>
		
                <div class="heading"><h5><?php 
    _e('Sorry. No posts in this category yet', 'rehub_framework');
    ?>
</h5></div>				   
            <?php 
}
?>
            </div>	
        </div>
        <!-- /Main Side -->
        <?php 
if (rehub_option('rehub_framework_edd_layout') != 'rehub_framework_edd_gridfull') {
    ?>
        <!-- Sidebar -->
            <?php 
    get_sidebar();
    ?>
        <!-- /Sidebar --> 
        <?php 
}
?>
    </div>
</div>
<!-- /CONTENT -->     
<!-- FOOTER -->
<?php 
get_footer();
Example #25
0
            $coupon_text = __('Coupon is Expired', 'rehub_framework');
            $coupon_style = 'expired_coupon';
        }
        ?>
            <?php 
    }
    ?>
                            
                <div><a class="btn_offer_block" href="<?php 
    the_permalink();
    ?>
"><?php 
    if ($offer_btn_text != '') {
        echo $offer_btn_text;
    } elseif (rehub_option('rehub_btn_text') != '') {
        echo rehub_option('rehub_btn_text');
    } else {
        _e('Buy this item', 'rehub_framework');
    }
    ?>
</a></div>
            </div>
        </div>
        <?php 
    if (!empty($offer_coupon)) {
        ?>
 
            <div class="aff_grid_bottom">
                <div class="rehub_offer_coupon <?php 
        if (!empty($offer_coupon_date)) {
            echo $coupon_style;
Example #26
0
                        <?php 
                }
                ?>
 						                                                
					<?php 
            }
            ?>
				<?php 
        }
        ?>
			</ul>
		</div>
	<?php 
    } else {
        ?>
		<?php 
        if (function_exists('has_post_thumbnail') && has_post_thumbnail() && rehub_option('rehub_disable_feature_thumb') != '1') {
            ?>
			<figure class="top_featured_image"><?php 
            the_post_thumbnail('full');
            ?>
</figure>                                    
		<?php 
        }
        ?>
	<?php 
    }
    ?>
                    
<?php 
}
Example #27
0
<?php

if (rehub_option('rehub_enable_newstick') && (!rehub_option('rehub_enable_newstick_home') || rehub_option('rehub_enable_newstick_home') && is_front_page())) {
    $label_ticker = rehub_option('rehub_newstick_label');
    $cats_ticker = rehub_option('rehub_newstick_cat');
    $tags_ticker = rehub_option('rehub_newstick_tag');
    $fetch_ticker = rehub_option('rehub_newstick_fetch');
    wp_enqueue_script('totemticker');
    ?>
<!-- NEWS SLIDER -->
<div class="top_theme">
	<h5><strong><?php 
    echo $label_ticker;
    ?>
</strong></h5>
	<div class="scrollers"> <a href="/" class="scroller down"></a> <a href="/" class="scroller up"></a> </div>
	<ul id="vertical-ticker">
	<?php 
    $pq = new WP_Query(array('category__in' => $cats_ticker, 'tag__in' => $tags_ticker, 'post_type' => 'post', 'showposts' => $fetch_ticker));
    if ($pq->have_posts()) {
        while ($pq->have_posts()) {
            $pq->the_post();
            ?>
		<li><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a></li>
	<?php 
Example #28
0
    function rehub_framework_comments($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        ?>
	<li <?php 
        comment_class();
        ?>
 id="comment-<?php 
        comment_ID();
        ?>
">
		<div class="commbox">
			<div class="comment-author vcard clearfix">
            	<?php 
        edit_comment_link(__('Edit', 'rehub_framework'));
        ?>
				<?php 
        comment_reply_link(array_merge($args, array('reply_text' => __(' Reply', 'rehub_framework'), 'depth' => $depth, 'max_depth' => $args['max_depth'])), $comment->comment_ID);
        ?>
                    
				<?php 
        echo get_avatar($comment, $args['avatar_size']);
        ?>
				<span class="fn"><?php 
        echo get_comment_author_link();
        ?>
</span>
				<span class="time"><?php 
        printf(__('%1$s at %2$s', 'rehub_framework'), get_comment_date(), get_comment_time());
        ?>
</span>
                <?php 
        if ($comment->comment_approved == '0') {
            ?>
<div class="ap_waiting"><em><?php 
            _e('Comment awaiting for approval', 'rehub_framework');
            ?>
</em></div><?php 
        }
        ?>
					
			</div>
			<?php 
        if (rehub_option('type_user_review') == 'full_review') {
            ?>
               
	          	<?php 
            $userCriteria = get_comment_meta(get_comment_ID(), 'user_criteria', true);
            if (is_array($userCriteria) && !empty($userCriteria)) {
                ?>
 
	              <div class="comment-content-withreview">
	                   <?php 
                attach_comment_criteria_raitings();
                ?>
	              </div>   
	     		<?php 
            } else {
                ?>
	               <div class="comment-content"><?php 
                comment_text();
                ?>
</div>
				<?php 
            }
            ?>
	     	<?php 
        } else {
            ?>
	            <div class="comment-content"><?php 
            comment_text();
            ?>
</div>
			<?php 
        }
        ?>
			 
		</div>
	<?php 
    }
            ?>
" data-clipboard-text="<?php 
            echo $item['extra']['coupon']['code'];
            ?>
" data-codetext="<?php 
            echo $item['extra']['coupon']['code'];
            ?>
" data-dest="<?php 
            echo esc_url($item['url']);
            ?>
"<?php 
            echo $item['ga_event'];
            ?>
><?php 
            if (rehub_option('rehub_mask_text') != '') {
                echo rehub_option('rehub_mask_text');
            } else {
                _e('Reveal coupon', 'rehub_framework');
            }
            ?>
<i class="fa fa-external-link-square"></i></div>   
	                            <?php 
        }
        ?>
	                            <?php 
        if (!empty($item['extra']['coupon']['code_date'])) {
            echo '<div class="time_offer">' . $coupon_text . '</div>';
        }
        ?>
    
	                        <?php 
Example #30
-1
        $loop->the_post();
        ?>
        	<div class="columns<?php 
        if ($i == '0') {
            ?>
 col-1<?php 
        }
        ?>
">
        		<figure><?php 
        wpsm_thumb('grid_news');
        ?>
<span class="pattern"></span>
	          		<div class="sidecol-overlay">
	          			<?php 
        if (rehub_option('exclude_comments_meta') == 0) {
            comments_popup_link(0, 1, '%', 'comment', '');
        }
        ?>
	            		<h3><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h3>
	          		</div>
        		</figure>
      		</div>
      	<?php 
        $i++;