Esempio n. 1
0
 function test_the_taxonomies()
 {
     $post_id = $this->factory->post->create();
     ob_start();
     the_taxonomies(array('post' => $post_id));
     $output = ob_get_clean();
     $link = get_category_link(1);
     $expected = 'Categories: <a href="' . $link . '">Uncategorized</a>.';
     $this->assertEquals($expected, $output);
 }
Esempio n. 2
0
				<div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>

				<?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;', 'xpress') . '</p>'); ?>

				<?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'xpress') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

				<div class="navigation">
					<div class="alignleft"><?php previous_image_link() ?></div>
					<div class="alignright"><?php next_image_link() ?></div>
				</div>
				<br class="clear" />

				<p class="postmetadata alt">
					<small>
						<?php printf(__('This entry was posted on %1$s at %2$s and is filed under %3$s.', 'xpress'),  get_the_time(__('l, F jS, Y', 'xpress')), get_the_time(), get_the_category_list(', ')); ?>
						<?php the_taxonomies(); ?>
						<?php printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "xpress"), get_post_comments_feed_link()); ?> 

						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Both Comments and Pings are open ?>
							<?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'xpress'), trackback_url(false)); ?>

						<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Only Pings are Open ?>
							<?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'xpress'), trackback_url(false)); ?>

						<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// Comments are open, Pings are not ?>
							<?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'xpress'); ?>

						<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
<div class="post-meta the-icons pmeta-alt">
<span class="post-author"><i class="fa fa-user"></i><?php 
the_author_posts_link();
?>
</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span class="post-time"><i class="fa fa-clock-o"></i><?php 
echo the_time(get_option('date_format'));
?>
</span>
&nbsp;&nbsp;&nbsp;&nbsp;
<?php 
if (is_tax()) {
    echo the_taxonomies('before=<span class="post-category"><i class="fa fa-file"></i>&after=</span>');
} else {
    ?>
<span class="post-category"><i class="fa fa-file"></i><?php 
    echo dez_get_singular_cat();
    ?>
</span>&nbsp;&nbsp;&nbsp;&nbsp;
<?php 
}
if (comments_open()) {
    if (!is_tax()) {
        ?>
<span class="post-comment"><i class="fa fa-comment"></i><?php 
        comments_popup_link(__('No Comment', TEMPLATE_DOMAIN), __('1 Comment', TEMPLATE_DOMAIN), __('% Comments', TEMPLATE_DOMAIN));
        ?>
</span>
<?php 
    }
Esempio n. 4
0
    the_post_thumbnail('medium');
    ?>

                </div>
                <div class="col-md-8" >
                    <h2 class="text-left titlePost"><?php 
    the_title();
    ?>
</h2>
                    
                    <div class="movieInfo"><br/>



                        <p> <?php 
    the_taxonomies();
    ?>
</p>

                    </div>
                    <?php 
    the_content();
    ?>

                </div>

            </div>
        </div>
        <div class="col-md-2">
            <div class="row sidebar">
                <?php 
Esempio n. 5
0
" name="sellsqlinfo1" id="sellsqlinfo1"/>
          <input type="hidden" value="<?php 
                    echo $no_of_coupon;
                    ?>
" name="noofcoupon1" id="noofcoupon1"/>
          <?php 
                }
                ?>
        </li>
      </ul>
      <?php 
                if (templ_is_show_post_category()) {
                    ?>
      <div id="post_category">
        <?php 
                    the_taxonomies(array('before' => '<span class="categories">', 'sep' => '</span><span class="tags">', 'after' => '</span>'));
                    ?>
      </div>
      <?php 
                }
                ?>
      <div id="content" class="text_content">
       <?php 
                echo "" . $post->post_excerpt . "";
                ?>
        <a href="<?php 
                the_permalink();
                ?>
" class="readmore_link">
        <?php 
                _e(get_option('ptthemes_content_excerpt_readmore'));
Esempio n. 6
0
    function widget($args, $instance)
    {
        // prints the widget
        extract($args, EXTR_SKIP);
        $title = empty($instance['title']) ? '&nbsp;' : apply_filters('widget_title', $instance['title']);
        $category = empty($instance['category']) ? '' : apply_filters('widget_category', $instance['category']);
        $post_number = empty($instance['post_number']) ? '5' : apply_filters('widget_post_number', $instance['post_number']);
        $user_db_table_name = get_user_table();
        $status_deal = empty($instance['status_deal']) ? '' : apply_filters('widget_status_deal', $instance['status_deal']);
        ?>
		<h3 class="deal_widget_title"><?php 
        _e($title, 'templatic');
        ?>
 <small> ( <a href="<?php 
        echo site_url();
        ?>
/?ptype=taxonomy_all_deal_tab" class="b_viewalldeal"><?php 
        _e(VIEW_ALL_DEAL, 'templatic');
        ?>
</a> ) </small> </h3>
		<span class="flip_postion"></span>
		<div class="deals_widget">
  <!-- BOF Loop -->
			<?php 
        templ_page_title_above();
        //page title above action hook
        ?>
			<?php 
        $destination_path = site_url() . '/wp-content/uploads/';
        ?>
			<script type="text/javascript" src="<?php 
        bloginfo('template_directory');
        ?>
/js/timer.js"></script>
 <?php 
        global $wp_query, $post, $wpdb;
        $current_term = $wp_query->get_queried_object();
        if ($current_term->name) {
            $ptitle = $current_term->name;
        }
        ?>
			<div id="loop" class="<?php 
        if (get_option('ptttheme_view_opt') == 'Grid View') {
            echo 'grid';
        } else {
            echo 'list clear';
        }
        ?>
 ">
    <!-- BOF All Deal -->
<?php 
        global $wpdb, $transection_db_table_name;
        $targetpage = site_url("?ptype=deals");
        $postmeta_db_table_name = $wpdb->prefix . "postmeta";
        $post_db_table_name = $wpdb->prefix . "posts";
        $total_deals = mysql_query("select p.* from {$post_db_table_name} p where p.post_type = 'seller' and p.post_status = 'publish' ");
        $total_pages = mysql_num_rows($total_deals);
        $recordsperpage = $post_number;
        $pagination = $_REQUEST['pagination'];
        if ($pagination == '') {
            $pagination = 1;
        }
        $strtlimit = ($pagination - 1) * $recordsperpage;
        $endlimit = $strtlimit + $recordsperpage;
        if ($category) {
            $category = "'" . str_replace(",", "','", $category) . "'";
            $sqlsql = " and p.ID in (select tr.object_id from {$wpdb->term_relationships} tr join {$wpdb->term_taxonomy} t on t.term_taxonomy_id=tr.term_taxonomy_id where t.term_id in ({$category})  )";
        }
        $dealcnt_sql = $wpdb->get_results("select p.* from {$post_db_table_name} p where p.post_type = 'seller' and p.post_status = 'publish' {$sqlsql} ORDER BY ID DESC  limit {$strtlimit},{$recordsperpage} ");
        if (count($dealcnt_sql) > 0) {
            $pcount = 0;
            foreach ($dealcnt_sql as $post) {
                if ($status_deal == 'all') {
                    $expired = get_post_meta($post->ID, 'is_expired', true) == '1' || get_post_meta($post->ID, 'is_expired', true) == '0';
                } else {
                    $expired = get_post_meta($post->ID, 'is_expired', true) == '0';
                }
                if ($status_deal == 'all') {
                    $pcount++;
                    if (get_post_meta($post->ID, 'enddate', true) != '0') {
                        deal_expire_process($post->ID);
                    }
                    $coupon_website = get_post_meta($post->ID, 'coupon_website', true);
                    $owner_name = get_post_meta($post->ID, 'owner_name', true);
                    $our_price = get_post_meta($post->ID, 'our_price', true);
                    $current_price = get_post_meta($post->ID, 'current_price', true);
                    $sellsql = "select count(*) from {$transection_db_table_name} where post_id=" . $post->ID . " and status=1";
                    $totdiff = $current_price - $our_price;
                    $percent = $totdiff * 100;
                    $percentsave = $percent / $current_price;
                    $sellsqlinfo = $wpdb->get_var($sellsql);
                    if (get_post_meta($post->ID, 'enddate', true) != '0') {
                        if (get_post_meta($post->ID, 'coupon_end_date_time', true) != "") {
                            $date = get_post_meta($post->ID, 'coupon_end_date_time', true);
                            $tardate = date("F d, Y H:i:s", get_post_meta($post->ID, 'coupon_end_date_time', true));
                            $targatedate = date("d-m-y H:i:s", get_post_meta($post->ID, 'coupon_end_date_time', true));
                            $tardate1 = date("F d, Y", get_post_meta($post->ID, 'coupon_end_date_time', true));
                            $enddate1 = date("Y-m-d H:i:s", get_post_meta($post->ID, 'coupon_end_date_time', true));
                            if (date("Y-m-d H:i:s") >= $enddate1 && get_post_meta($post->ID, 'enddate', true) != '0') {
                                if (get_post_meta($post->ID, 'is_expired', true) == '0' || get_post_meta($post->ID, 'is_expired', true) == '') {
                                    update_post_meta($post->ID, 'is_expired', '1');
                                }
                            }
                        } else {
                            if (get_post_meta($post->ID, 'enddate', true) != '0' && get_post_meta($post->ID, 'no_of_coupon', true) == $sellsqlinfo) {
                                if (get_post_meta($post->ID, 'is_expired', true) == '0' || get_post_meta($post->ID, 'is_expired', true) == '') {
                                    update_post_meta($post->ID, 'is_expired', '1');
                                }
                            }
                        }
                    }
                    $stdate = date("F d, Y H:i:s", get_post_meta($post->ID, 'coupon_start_date_time', true));
                    $no_of_coupon = get_post_meta($post->ID, 'no_of_coupon', true);
                    ?>
					<div <?php 
                    post_class('post posts_deals');
                    ?>
 id="post_<?php 
                    the_ID();
                    ?>
" >
						<div class="product_image "> <a href="<?php 
                    the_permalink();
                    ?>
">
<?php 
                    if (get_post_meta($post->ID, 'file_name', true) != "") {
                        ?>
								<img src="<?php 
                        echo templ_thumbimage_filter(get_post_meta($post->ID, 'file_name', true), 260, 180);
                        ?>
" alt="" />
<?php 
                    } else {
                        ?>
								<img src="<?php 
                        echo get_template_directory_uri() . "/images/no-image.png";
                        ?>
" width="260" height="180" alt="" />
<?php 
                    }
                    ?>
						</a></div>
						<div class="product_image grid_img"> <a href="<?php 
                    the_permalink();
                    ?>
">
<?php 
                    if (get_post_meta($post->ID, 'file_name', true) != "") {
                        ?>
								<img src="<?php 
                        echo templ_thumbimage_filter(get_post_meta($post->ID, 'file_name', true), 280, 180);
                        ?>
" alt="" />
<?php 
                    } else {
                        ?>
									<div class="noimg"><?php 
                        _e('Image <br />not available', 'templatic');
                        ?>
</div>
<?php 
                    }
                    ?>
						</a> </div>
						<div class="content_right content_right_inner"><span class="title_grey"><?php 
                    _e(PROVIDE_BY, 'templatic');
                    ?>
</span>
<?php 
                    $user_db_table_name = get_user_table();
                    $user_data = $wpdb->get_row("select * from {$user_db_table_name} where ID = '" . $post->post_author . "'");
                    ?>
							<a href="<?php 
                    echo get_author_posts_url($post->post_author);
                    ?>
" class="top_lnk" title="<?php 
                    echo $user_data->display_name;
                    ?>
"><?php 
                    echo get_post_meta($post->ID, 'owner_name', true);
                    ?>
</a>
							<h3><a href="<?php 
                    the_permalink();
                    ?>
"><?php 
                    echo $post->post_title;
                    ?>
</a></h3>
							<div class="grid_price"><span class="strike_rate"><?php 
                    _e('Our Price :', 'templatic');
                    ?>
 <s><?php 
                    echo get_currency_sym();
                    echo $current_price;
                    ?>
</s></span> <span class="rate"><?php 
                    _e('Offer Price :', 'templatic');
                    ?>
 <?php 
                    echo get_currency_sym();
                    echo $our_price;
                    ?>
</span> </div>
							<?php 
                    if (date("Y-m-d H:i:s") >= $enddate1 || strtotime($stdate) >= strtotime($tardate) || get_post_meta($post->ID, 'no_of_coupon', true) == $sellsqlinfo) {
                        if (get_post_meta($post->ID, 'is_expired', true) == '1') {
                            ?>
									<div class="i_expire"><?php 
                            echo THIS_DEAL;
                            ?>
<span><?php 
                            echo EXPIRED;
                            ?>
</span> <?php 
                            echo ON;
                            ?>
 <span><?php 
                            echo $tardate1;
                            ?>
</span></div>
<?php 
                        }
                        if (get_post_meta($post->ID, 'no_of_coupon', true) == $sellsqlinfo && get_post_meta($post->ID, 'is_expired', true) != '1') {
                            ?>
					<div class="i_start"><span><?php 
                            echo "Is Sold Out";
                            ?>
</span></div>
					<?php 
                        }
                    } else {
                        if (get_post_meta($post->ID, 'coupon_end_date_time', true)) {
                            ?>
									<div class="deal_time_box">
										<div class="time_line"> </div>
											<div id="countdowncontainer_<?php 
                            _e($post->ID, 'templatic');
                            ?>
"></div>
											<div class="fr" id="fr_<?php 
                            echo $post->ID;
                            ?>
">
												<div class="price_main"> <span class="strike_rate"><?php 
                            echo get_currency_sym();
                            echo $current_price;
                            ?>
</span> <span class="rate"><?php 
                            echo get_currency_sym();
                            echo $our_price;
                            ?>
</span> </div>
												<?php 
                            if (get_post_meta($post->ID, 'coupon_type', true) == 1) {
                                ?>
												<a href="<?php 
                                echo get_post_meta($post->ID, 'coupon_link', true);
                                ?>
" title="<?php 
                                echo BUY_NOW;
                                ?>
" class="btn_buy" target="_blank"><?php 
                                echo BUY_NOW;
                                ?>
</a>
												<?php 
                            } else {
                                ?>
												<a href="<?php 
                                echo get_option('siteurl');
                                ?>
/?ptype=buydeal&amp;did=<?php 
                                _e($post->ID, 'templatic');
                                ?>
" title="<?php 
                                echo BUY_NOW;
                                ?>
" class="btn_buy"><?php 
                                echo BUY_NOW;
                                ?>
</a>
												<?php 
                            }
                            ?>
											</div>
											<?php 
                            $targatedate = explode(' ', $targatedate);
                            $tar_date = explode('-', $targatedate[0]);
                            $tar_time = explode(':', $targatedate[1]);
                            $timezone = get_option('ptthemes_time_offset');
                            $exp_year = explode(',', $tardate1);
                            ?>
											<script>
											displayTZCountDown(setTZCountDown('<?php 
                            echo $tar_date[1];
                            ?>
','<?php 
                            echo $tar_date[0];
                            ?>
','<?php 
                            echo $tar_time[0];
                            ?>
','<?php 
                            echo $timezone;
                            ?>
','<?php 
                            echo $exp_year[1];
                            ?>
'),'countdowncontainer_<?php 
                            _e($post->ID, 'templatic');
                            ?>
','fr_<?php 
                            echo $post->ID;
                            ?>
','<?php 
                            echo $tardate1;
                            ?>
');
											</script>
									</div>
<?php 
                        }
                    }
                    ?>
							<ul class="rate_summery">
								<li class="rate_current_price"><span><?php 
                    echo CURRENT_PRICE;
                    ?>
</span> <strong><small><?php 
                    echo get_currency_sym();
                    ?>
</small><?php 
                    echo $current_price;
                    ?>
</strong></li>
								<li class="rate_our_price"><span><?php 
                    echo OUR_PRICE;
                    ?>
</span> <strong><small><?php 
                    echo get_currency_sym();
                    ?>
</small><?php 
                    echo $our_price;
                    ?>
</strong></li>
								<li class="rate_percentage"><span><?php 
                    echo YOU_SAVE;
                    ?>
</span> <strong><?php 
                    echo @number_format($percentsave, 2);
                    ?>
%</strong></li>
								<li class="bdr_none rate_item_sold"><span><?php 
                    echo ITEMS_SOLD;
                    ?>
</span> <strong><?php 
                    echo $sellsqlinfo;
                    ?>
</strong>
							</ul>
<?php 
                    $post_categories = wp_get_post_terms($post->ID, 'seller_category');
                    if ($post_categories[1] != "") {
                        ?>
								<div class="post_cats clearfix">
<?php 
                        the_taxonomies(array('before' => '<span class="categories">', 'sep' => '</span><span class="tags">', 'after' => '</span>'));
                        ?>
								</div>
<?php 
                    }
                    if (get_post_meta($post->ID, 'enddate', true) == '0' && get_option('ptttheme_view_opt') != 'Grid View' && get_post_meta($post->ID, 'status', true) == '1') {
                        ?>
		<?php 
                        if (get_post_meta($post->ID, 'coupon_type', true) == 1) {
                            ?>
						<a href="<?php 
                            echo get_post_meta($post->ID, 'coupon_link', true);
                            ?>
" title="<?php 
                            echo BUY_NOW;
                            ?>
" class="btn_buy_deal" target="_blank"><?php 
                            echo BUY_NOW;
                            ?>
</a>
		<?php 
                        } else {
                            ?>
						<a href="<?php 
                            echo get_option('siteurl');
                            ?>
/?ptype=buydeal&amp;did=<?php 
                            _e($post->ID, 'templatic');
                            ?>
" title="<?php 
                            echo BUY_NOW;
                            ?>
" class="btn_buy_deal"><?php 
                            echo BUY_NOW;
                            ?>
</a>
		<?php 
                        }
                    }
                    if (get_post_meta($post->ID, 'is_expired', true) != 1 && get_option('ptttheme_view_opt') == 'Grid View') {
                        if (get_post_meta($post->ID, 'coupon_type', true) == 1) {
                            ?>
								 <a href="<?php 
                            echo get_post_meta($post->ID, 'coupon_link', true);
                            ?>
" title="<?php 
                            echo BUY_NOW;
                            ?>
" class="btn_buy_grid"><?php 
                            echo BUY_NOW;
                            ?>
</a>
								
<?php 
                        } else {
                            ?>
								<a href="<?php 
                            echo get_option('siteurl');
                            ?>
/?ptype=buydeal&amp;did=<?php 
                            _e($post->ID, 'templatic');
                            ?>
" title="<?php 
                            echo BUY_NOW;
                            ?>
" class="btn_buy_grid"><?php 
                            echo BUY_NOW;
                            ?>
</a>
<?php 
                        }
                    }
                    ?>
							<div class="text_content"  id="content_<?php 
                    _e($post->ID, 'templatic');
                    ?>
"><?php 
                    echo "" . $post->post_excerpt . "";
                    ?>
<a href="<?php 
                    the_permalink();
                    ?>
" class="readmore_link"><?php 
                    _e(get_option('ptthemes_content_excerpt_readmore'));
                    ?>
</a></div>
						</div>
					</div>
<?php 
                    $page_layout = templ_get_page_layout();
                    if ($pcount == 3) {
                        $pcount = 0;
                        ?>
						<div class="hr clear"></div>
<?php 
                    }
                } else {
                    if (get_post_meta($post->ID, 'is_expired', true) != 1) {
                        $pcount++;
                        if (get_post_meta($post->ID, 'enddate', true) != '0') {
                            deal_expire_process($post->ID);
                        }
                        $coupon_website = get_post_meta($post->ID, 'coupon_website', true);
                        $owner_name = get_post_meta($post->ID, 'owner_name', true);
                        $our_price = get_post_meta($post->ID, 'our_price', true);
                        $current_price = get_post_meta($post->ID, 'current_price', true);
                        $sellsql = "select count(*) from {$transection_db_table_name} where post_id=" . $post->ID . " and status=1";
                        $totdiff = $current_price - $our_price;
                        $percent = $totdiff * 100;
                        $recordsperpage = $post_number;
                        $percentsave = $percent / $current_price;
                        $sellsqlinfo = $wpdb->get_var($sellsql);
                        if (get_post_meta($post->ID, 'enddate', true) != '0') {
                            if (get_post_meta($post->ID, 'coupon_end_date_time', true) != "") {
                                $date = get_post_meta($post->ID, 'coupon_end_date_time', true);
                                $tardate = date("F d, Y H:i:s", get_post_meta($post->ID, 'coupon_end_date_time', true));
                                $targatedate = date("d-m-y H:i:s", get_post_meta($post->ID, 'coupon_end_date_time', true));
                                $tardate1 = date("F d, Y", get_post_meta($post->ID, 'coupon_end_date_time', true));
                                $enddate1 = date("Y-m-d H:i:s", get_post_meta($post->ID, 'coupon_end_date_time', true));
                                if (date("Y-m-d H:i:s") >= $enddate1 && get_post_meta($post->ID, 'enddate', true) != '0') {
                                    if (get_post_meta($post->ID, 'is_expired', true) == '0' || get_post_meta($post->ID, 'is_expired', true) == '') {
                                        update_post_meta($post->ID, 'is_expired', '1');
                                    }
                                }
                            } else {
                                if (get_post_meta($post->ID, 'enddate', true) != '0' && get_post_meta($post->ID, 'no_of_coupon', true) == $sellsqlinfo) {
                                    if (get_post_meta($post->ID, 'is_expired', true) == '0' || get_post_meta($post->ID, 'is_expired', true) == '') {
                                        update_post_meta($post->ID, 'is_expired', '1');
                                    }
                                }
                            }
                        }
                        $stdate = date("F d, Y H:i:s", get_post_meta($post->ID, 'coupon_start_date_time', true));
                        $no_of_coupon = get_post_meta($post->ID, 'no_of_coupon', true);
                        ?>
						<div <?php 
                        post_class('post posts_deals');
                        ?>
 id="post_<?php 
                        the_ID();
                        ?>
" >
							<div class="product_image "> <a href="<?php 
                        the_permalink();
                        ?>
">
<?php 
                        if (get_post_meta($post->ID, 'file_name', true) != "") {
                            ?>
									<img src="<?php 
                            echo templ_thumbimage_filter(get_post_meta($post->ID, 'file_name', true), 260, 180);
                            ?>
" alt="" />
<?php 
                        } else {
                            ?>
									<img src="<?php 
                            echo get_template_directory_uri() . "/images/no-image.png";
                            ?>
" width="260" height="180" alt="" />
<?php 
                        }
                        ?>
							</a> </div>
							<div class="product_image grid_img"> <a href="<?php 
                        the_permalink();
                        ?>
">
<?php 
                        if (get_post_meta($post->ID, 'file_name', true) != "") {
                            ?>
									<img src="<?php 
                            echo templ_thumbimage_filter(get_post_meta($post->ID, 'file_name', true), 280, 180);
                            ?>
" alt="" />
<?php 
                        } else {
                            ?>
									<div class="noimg"> <?php 
                            _e('Image <br /> not available', 'templatic');
                            ?>
</div>
<?php 
                        }
                        ?>
							</a> </div>
							<div class="content_right content_right_inner"><?php 
                        if (get_option('ptthemes_listing_author') != 'No') {
                            ?>
        
                   <span class="title_grey"><?php 
                            echo PROVIDE_BY;
                            ?>
 </span>
					<?php 
                            $user_db_table_name = get_user_table();
                            $user_data = $wpdb->get_row("select * from {$user_db_table_name} where ID = '" . $post->post_author . "'");
                            ?>
					
					<a href="<?php 
                            echo get_author_posts_url($post->post_author);
                            ?>
" class="top_lnk" title="<?php 
                            echo $user_data->display_name;
                            ?>
"><?php 
                            echo get_post_meta($post->ID, 'owner_name', true);
                            ?>
</a>
					<?php 
                        }
                        ?>
								<h3><a href="<?php 
                        the_permalink();
                        ?>
"><?php 
                        echo $post->post_title;
                        ?>
</a></h3>
								<div class="grid_price"><span class="strike_rate"><?php 
                        _e(OUR_PRICES, 'templatic');
                        ?>
<s><?php 
                        echo get_currency_sym();
                        echo $current_price;
                        ?>
</s></span> <span class="rate"><?php 
                        _e(OFFER_PRICE, 'templatic');
                        ?>
 <?php 
                        echo get_currency_sym();
                        echo $our_price;
                        ?>
</span>
							</div>
<?php 
                        if (get_post_meta($post->ID, 'enddate', true) != '0' || get_post_meta($post->ID, 'no_of_coupon', true) == $sellsqlinfo) {
                            if (date("Y-m-d H:i:s") >= $enddate1 || get_post_meta($post->ID, 'no_of_coupon', true) == $sellsqlinfo) {
                                if (get_post_meta($post->ID, 'is_expired', true) == '1') {
                                    if (get_post_meta($post->ID, 'is_expired', true) == '0') {
                                        update_post_meta($post->ID, 'is_expired', '1');
                                    }
                                    ?>
									<div class="i_expire"><?php 
                                    echo THIS_DEAL;
                                    ?>
<span><?php 
                                    echo EXPIRED;
                                    ?>
</span> <?php 
                                    echo ON;
                                    ?>
 <span><?php 
                                    echo $tardate1;
                                    ?>
</span></div>
<?php 
                                }
                                if (get_post_meta($post->ID, 'no_of_coupon', true) == $sellsqlinfo && get_post_meta($post->ID, 'is_expired', true) != '1') {
                                    ?>
					<div class="i_start"><span><?php 
                                    echo "Is Sold Out";
                                    ?>
</span></div>
					<?php 
                                }
                            } else {
                                if (get_post_meta($post->ID, 'coupon_end_date_time', true)) {
                                    ?>
									<div class="deal_time_box">
										<div class="time_line"> </div>
										<div id="countdowncontainer_<?php 
                                    _e($post->ID, 'templatic');
                                    ?>
"></div>
										
										<div class="fr" id="fr_<?php 
                                    echo $post->ID;
                                    ?>
">
											<div class="price_main"> <span class="strike_rate"><?php 
                                    echo get_currency_sym();
                                    echo $current_price;
                                    ?>
</span> <span class="rate"><?php 
                                    echo get_currency_sym();
                                    echo $our_price;
                                    ?>
</span> </div>
<?php 
                                    if (get_post_meta($post->ID, 'coupon_type', true) == 1) {
                                        ?>
												<a href="<?php 
                                        echo get_post_meta($post->ID, 'coupon_link', true);
                                        ?>
" title="<?php 
                                        _e(BUY_NOW, 'templatic');
                                        ?>
" class="btn_buy" target="_blank"><?php 
                                        _e(BUY_NOW, 'templatic');
                                        ?>
</a>
<?php 
                                    } else {
                                        ?>
												<a href="<?php 
                                        echo get_option('siteurl');
                                        ?>
/?ptype=buydeal&amp;did=<?php 
                                        _e($post->ID, 'templatic');
                                        ?>
" title="<?php 
                                        _e(BUY_NOW, 'templatic');
                                        ?>
" class="btn_buy"><?php 
                                        _e(BUY_NOW, 'templatic');
                                        ?>
</a>
<?php 
                                    }
                                    ?>
										</div>
										 <?php 
                                    $targatedate = explode(' ', $targatedate);
                                    $tar_date = explode('-', $targatedate[0]);
                                    $tar_time = explode(':', $targatedate[1]);
                                    $timezone = get_option('ptthemes_time_offset');
                                    $exp_year = explode(',', $tardate1);
                                    ?>
											<script>
											displayTZCountDown(setTZCountDown('<?php 
                                    echo $tar_date[1];
                                    ?>
','<?php 
                                    echo $tar_date[0];
                                    ?>
','<?php 
                                    echo $tar_time[0];
                                    ?>
','<?php 
                                    echo $timezone;
                                    ?>
','<?php 
                                    echo $exp_year[1];
                                    ?>
'),'countdowncontainer_<?php 
                                    _e($post->ID, 'templatic');
                                    ?>
','fr_<?php 
                                    echo $post->ID;
                                    ?>
','<?php 
                                    echo $tardate1;
                                    ?>
');
											</script>
									</div>
<?php 
                                }
                            }
                        }
                        ?>
        <ul class="rate_summery">
          <li class="rate_current_price"><span>
            <?php 
                        echo CURRENT_PRICE;
                        ?>
            </span> <strong><small><?php 
                        echo get_currency_sym();
                        ?>
</small><?php 
                        echo $current_price;
                        ?>
</strong></li>
          <li class="rate_our_price"><span>
            <?php 
                        echo OUR_PRICE;
                        ?>
            </span> <strong><small><?php 
                        echo get_currency_sym();
                        ?>
</small><?php 
                        echo $our_price;
                        ?>
</strong></li>
          <li class="rate_percentage"><span>
            <?php 
                        echo YOU_SAVE;
                        ?>
            </span> <strong><?php 
                        echo @number_format($percentsave, 2);
                        ?>
%</strong></li>
          <li class="bdr_none rate_item_sold"><span>
            <?php 
                        echo ITEMS_SOLD;
                        ?>
            </span> <strong><?php 
                        echo $sellsqlinfo;
                        ?>
</strong> </li>
        </ul>
        <?php 
                        if (templ_is_show_post_category()) {
                            ?>
        <div class="post_cats clearfix">
          <?php 
                            the_taxonomies(array('before' => '<span class="categories">', 'sep' => '</span><span class="tags">', 'after' => '</span>'));
                            ?>
        </div>
        <?php 
                        }
                        ?>
		<?php 
                        if (get_post_meta($post->ID, 'enddate', true) == '0' && get_option('ptttheme_view_opt') != 'Grid View' && get_post_meta($post->ID, 'status', true) == '1' && get_post_meta($post->ID, 'is_expired', true) == '0') {
                            ?>
		<?php 
                            if (get_post_meta($post->ID, 'coupon_type', true) == 1) {
                                ?>
						<a href="<?php 
                                echo get_post_meta($post->ID, 'coupon_link', true);
                                ?>
" title="<?php 
                                echo BUY_NOW;
                                ?>
" class="btn_buy_deal" target="_blank"><?php 
                                echo BUY_NOW;
                                ?>
</a>
		<?php 
                            } else {
                                ?>
						<a href="<?php 
                                echo get_option('siteurl');
                                ?>
/?ptype=buydeal&amp;did=<?php 
                                _e($post->ID, 'templatic');
                                ?>
" title="<?php 
                                echo BUY_NOW;
                                ?>
" class="btn_buy_deal"><?php 
                                echo BUY_NOW;
                                ?>
</a>
		<?php 
                            }
                        }
                        ?>
        <?php 
                        if (get_post_meta($post->ID, 'is_expired', true) != 1) {
                            if (get_post_meta($post->ID, 'coupon_type', true) == 1) {
                                ?>
        <a href="<?php 
                                echo get_post_meta($post->ID, 'coupon_link', true);
                                ?>
" onclick="" title="<?php 
                                echo BUY_NOW;
                                ?>
" class="btn_buy_grid"><?php 
                                echo BUY_NOW;
                                ?>
</a>
        <?php 
                            } else {
                                ?>
				 <a href="<?php 
                                echo get_option('siteurl');
                                ?>
/?ptype=buydeal&amp;did=<?php 
                                _e($post->ID, 'templatic');
                                ?>
" title="<?php 
                                echo BUY_NOW;
                                ?>
" class="btn_buy_grid"><?php 
                                echo BUY_NOW;
                                ?>
</a>
		<?php 
                            }
                        }
                        ?>
        <div class="text_content"  id="content_<?php 
                        _e($post->ID, 'templatic');
                        ?>
">
          <?php 
                        echo "" . $post->post_excerpt . "";
                        ?>
          <a href="<?php 
                        the_permalink();
                        ?>
" class="readmore_link">
          <?php 
                        _e(get_option('ptthemes_content_excerpt_readmore'));
                        ?>
          </a> </div>
      </div>
    </div>
    <?php 
                        $page_layout = templ_get_page_layout();
                        if ($pcount == 3) {
                            $pcount = 0;
                            ?>
    <div class="hr clear"></div>
 <?php 
                        }
                    }
                }
            }
        }
        ?>
    <!-- EOF All Deal -->
  </div>
</div>
<!--  CONTENT AREA END -->
<?php 
    }
" rel="bookmark" title="Permanent Link to <?php 
        the_title();
        ?>
"><?php 
        the_title();
        ?>
</a></h2>

			<div class="entry">
				<?php 
        the_excerpt();
        ?>
			</div>
			<p class="postmetadata">
				<?php 
        the_taxonomies('before=<p class="tags">&after=</p>&template=%s: %l.');
        ?>
 | <?php 
        edit_post_link('Edit', '', ' | ');
        ?>
				<?php 
        comments_popup_link('No Comments »', '1 Comment »', '% Comments »');
        ?>
			</p>
		</div>

		<div style="clear:both;"></div>

	<?php 
    }
    ?>
Esempio n. 8
0
<a href="<?php 
the_permalink();
?>
">
  <h2> <?php 
the_title();
?>
</h2>
</a>

<?php 
the_content();
?>

<p> 
  <?php 
the_author_posts_link();
echo "  ";
the_time("Y-M-D H:i");
?>
</p> 
 
<br>

<?php 
the_taxonomies(['before' => '<div class="taxonomies">', 'sep' => '<br>', 'after' => '</div>']);
?>
 
Esempio n. 9
0
<div class="entry-metadata">
  <time class="updated" datetime="<?php 
echo get_post_time('c', true);
?>
"><?php 
echo get_the_date();
?>
</time>
  <div class="byline author vcard">
    <?php 
echo __('By', 'sage');
?>
 
    <a href="<?php 
echo get_author_posts_url(get_the_author_meta('ID'));
?>
" rel="author" class="fn"><?php 
echo get_the_author();
?>
</a>
  </div>
  <div class="taxonomy"><?php 
the_taxonomies(['template' => '<span class="tax-label">%s:</span> %l']);
?>
</div>
  <div class="tags"><?php 
the_tags(' ');
?>
</div>
</div>
Esempio n. 10
0
echo the_time(get_option('date_format'));
?>
</abbr></span>
<span class="meta-no-display"><a href="<?php 
echo esc_url(get_permalink());
?>
" rel="bookmark"><?php 
echo the_title_attribute();
?>
</a></span><?php 
echo $modtime;
?>

<?php 
if (get_post_type() != 'post' && get_post_type() != 'page') {
    echo the_taxonomies(array('template' => '% %l', 'before' => '<span class="post-category"><i class="fa fa-file"></i>', 'after' => '</span>'));
} else {
    if (get_post_type() != 'page') {
        if (!in_category('1')) {
            ?>
<span class="post-category"><i class="fa fa-file"></i><?php 
            if (is_singular()) {
                echo the_category(', ');
            } else {
                echo dez_get_singular_cat();
            }
            ?>
</span>
<?php 
        }
    }
Esempio n. 11
0
		<?php 
the_excerpt();
?>

	</div><!-- .entry-content -->

	<footer class="entry-footer">

		<?php 
if (get_post_type() == 'publicacoes') {
    ?>
			<?php 
    $args = array('before' => '<p class="entry-meta">', 'after' => '</p>', 'template' => '%1$s: %2$l');
    ?>
			<?php 
    the_taxonomies($args);
    ?>

			<?php 
    echo get_pdf_link();
    ?>
			<?php 
    echo "-";
    ?>
			<?php 
    echo get_fonte_link();
    ?>
			
		<?php 
}
?>
Esempio n. 12
0
        <a href="javascript:fbShare('<?php 
echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
?>
', '<?php 
echo the_title();
?>
', 'Trouver vos ensembles', 'http://goo.gl/dS52U', 520, 350)" class="color-facebook"><i class="fa fa-facebook"></i><span>-</span></a>
      </div>
      <div class="look-content-text"><?php 
echo $post->post_content;
?>
</div>
      <div class="look-content-tags">
        <span class="tags-title">Tags :</span>
        <?php 
the_taxonomies(array('before' => '<span>', 'sep' => ' ', 'after' => '</span>', 'template' => '<a href="%s">#%l</a>'));
?>
       
      </div>
    </div>

    <!-- SIMILARS -->
    <div class="look-similars col-md-12">
      <div class="row">
      <?php 
$posts = get_field('premier');
if ($posts) {
    foreach ($posts as $post) {
        ?>
          <?php 
        setup_postdata($post);
Esempio n. 13
0
<?php 
        $get_ads_single_bottom = get_theme_option('ads_single_bottom');
        if ($get_ads_single_bottom != '') {
            ?>
<div class="adsense-single"><?php 
            echo stripcslashes(do_shortcode($get_ads_single_bottom));
            ?>
</div>
<?php 
        }
        ?>

<?php 
        if (get_post_type() != 'post' && get_post_type() != 'page') {
            echo the_taxonomies('before=<span class="post-category">&after=</span>');
        }
        ?>

</div>

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

<?php 
        get_template_part('lib/templates/post-meta', 'bottom');
        ?>

<?php 
        $get_related = get_theme_option('related_on');
Esempio n. 14
0
																
																<header class="clearfix">

																		<div class="post-head">
																				<h2 class="post-title">                                                                          
																						<a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>                                                                      
																				</h2>
																				<small>
                                                                                        <?php 
        the_taxonomies(array('post' => $post->ID, 'before' => '', 'sep' => ', ', 'after' => '', 'template' => '<span>%s:</span>  %l'));
        ?>
																				</small>
																		</div>
                                                                        <div class="price"><span><?php 
        echo get_post_meta($post->ID, 'menu_price', true);
        ?>
</span></div>
																</header>																																
																
																<?php 
        if (has_post_thumbnail()) {
            ?>
																		<div class="post-thumb clearfix">													
																				<?php 
            $image_id = get_post_thumbnail_id();
function get_cpt_wc_talks($atts)
{
    $args = array('post_type' => 'wordcamp-talks');
    $wcloop = new WP_Query($args);
    while ($wcloop->have_posts()) {
        $wcloop->the_post();
        //get post meta info
        $wc_talks_url = get_post_meta(get_the_id(), '_wc_talks_url_meta_value_key', true);
        $wc_talks_pres_notes = get_post_meta(get_the_id(), '_wc_presentation_url_meta_value_key', true);
        $wc_talks_video_url = get_post_meta(get_the_id(), '_wc_video_url_meta_value_key', true);
        //echo some stuff out
        echo '<p>';
        echo '<a href="';
        echo the_permalink();
        echo '" title="';
        echo the_title();
        echo '">';
        echo the_post_thumbnail();
        echo '</a>';
        echo '<p><h3>';
        echo the_title();
        echo '</h3>';
        echo the_content();
        echo '</p>';
        echo '</p><hr/>' . '<p>Session Links: ' . '<a href="' . $wc_talks_url . '">Visit WordCamp Site</a> | <a href="' . $wc_talks_pres_notes . '">Sessions Details</a> | <a href="' . $wc_talks_video_url . '">Watch Session</a></p>' . the_taxonomies($args);
    }
    wp_reset_query();
}
</a></h2>
        <?php 
        if (has_post_thumbnail()) {
            ?>
        <div class="image"><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_post_thumbnail('regional-thumb');
            ?>
</a></div>
        <?php 
        }
        ?>
        <div class="category"><?php 
        the_taxonomies(array('sep' => ', ', 'template' => '%2$l'));
        ?>
</div>
        <?php 
        if ('event' == get_post_type()) {
            ?>
        <?php 
            $date = get_post_meta(get_the_ID(), '__event_date', true);
            $time = get_post_meta(get_the_ID(), '__event_time', true);
            $place = get_post_meta(get_the_ID(), '__event_place', true);
            ?>
        <p class="date <?php 
            if (has_post_thumbnail()) {
                echo 'has-image';
            }
            ?>