• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP kama_excerpt函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中kama_excerpt函数的典型用法代码示例。如果您正苦于以下问题:PHP kama_excerpt函数的具体用法?PHP kama_excerpt怎么用?PHP kama_excerpt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了kama_excerpt函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: widget

    /**
     * How to display the widget on the screen.
     */
    function widget($args, $instance)
    {
        extract($args);
        /* Our variables from the widget settings. */
        $title = apply_filters('widget_title', $instance['title']);
        $tags = $instance['tags'];
        $number = $instance['number'];
        $post_type = $instance['post_type'];
        global $post;
        if ($post_type == 'tags') {
            $query = array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'tag' => $tags);
        } elseif ($post_type == 'featured') {
            $query = array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'meta_key' => 'is_featured', 'meta_value' => '1');
        } else {
            $query = array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'meta_key' => 'is_featured', 'meta_value' => '1');
        }
        $loop = new WP_Query($query);
        /* Before widget (defined by themes). */
        echo $before_widget;
        if ($loop->have_posts()) {
            /* Display the widget title if one was input (before and after defined by themes). */
            if ($title) {
                echo $before_title . $title . $after_title;
            }
            ?>
		<?php 
            wp_enqueue_script('flexslider');
            ?>
		<div class="slides">		
		<?php 
            while ($loop->have_posts()) {
                $loop->the_post();
                ?>
	
			<div class="slide">
				<div class="wrap">
					<a href="<?php 
                the_permalink();
                ?>
" class="view-link">
						<span class="pattern"></span>
						<div class="image"><?php 
                wpsm_thumb('grid_news');
                ?>
</div>
						<?php 
                if (vp_metabox('rehub_post.rehub_framework_post_type') == 'review') {
                    ?>
<span class="score"><i><?php 
                    echo rehub_get_overall_score();
                    ?>
</i><?php 
                    _e('SCORE', 'rehub_framework');
                    ?>
</span><?php 
                }
                ?>
						<?php 
                $category = get_the_category($post->ID);
                $first_cat = $category[0]->term_id;
                $cat_name = get_cat_name($first_cat);
                ?>
						<span class="reviews"><?php 
                echo $cat_name;
                ?>
</span>
					</a>
					<h3><a class="link" href="<?php 
                the_permalink();
                ?>
"><?php 
                the_title();
                ?>
</a></h3>
					<p><?php 
                kama_excerpt('maxchar=100');
                ?>
</p>
				</div>
            </div>	
		<?php 
            }
            ?>
		</div>
		<?php 
            wp_reset_query();
            ?>
		<?php 
        } else {
            _e('No posts for this criteria.', 'rehub_framework');
            ?>
		<?php 
        }
        ?>
			
	<?php 
        /* After widget (defined by themes). */
//.........这里部分代码省略.........
开发者ID:rhondamoananui,项目名称:rehub,代码行数:101,代码来源:featured_sidebar.php


示例2: get_the_category

$category = get_the_category();
if ($category) {
    $first_cat = $category[0]->term_id;
}
?>
	    <div class="post-meta"> <?php 
if ($category) {
    meta_all(true, $first_cat, true);
}
?>
 </div>
	    <?php 
rehub_format_score('small');
?>
	    <p><?php 
kama_excerpt('maxchar=180');
?>
</p>
        <?php 
if (vp_metabox('rehub_post_side.disable_top_offer') != '1') {
    ?>
            <?php 
    rehub_create_btn('yes');
    ?>
        <?php 
} else {
    ?>
            <?php 
    if (vp_metabox('rehub_post_side.read_more_custom')) {
        ?>
                <a href="<?php 
开发者ID:rhondamoananui,项目名称:rehub,代码行数:31,代码来源:query_type1.php


示例3: rehub_create_column

    function rehub_create_column($size = 'middle')
    {
        ?>
<article class="rething_item small_post inf_scr_item">
    <?php 
        if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {
            ?>
        <figure>
            <?php 
            rehub_formats_icons('full');
            ?>
            <span class="pattern"></span>
            <?php 
            echo getPostLikeLink(get_the_ID());
            ?>
            <?php 
            rehub_permalink();
            ?>
                <?php 
            $img = get_post_thumb();
            $nothumb = get_stylesheet_directory_uri() . '/images/noim.png';
            if ($size == 'middle') {
                $params = array('width' => 381, 'height' => 255, 'crop' => true);
            } elseif ($size == 'small') {
                $params = array('width' => 280, 'height' => 186, 'crop' => true);
            } elseif ($size == 'big') {
                $params = array('width' => 579, 'height' => 386, 'crop' => true);
            } else {
                $params = array('width' => 381, 'height' => 255, '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>                                     
    <?php 
        }
        ?>
    <div class="wrap_thing">
        <div class="top">
            <?php 
        $category = get_the_category(get_the_ID());
        ?>
            <?php 
        if ($category) {
            $first_cat = $category[0]->term_id;
            meta_small(false, $first_cat, false, false);
        }
        ?>
        </div>
        <div class="hover_anons">
            <h2><?php 
        rehub_permalink();
        the_title();
        ?>
</a></h2>
            <div class="post-meta"> <?php 
        meta_small(true, false, true, false);
        ?>
 </div>
            <?php 
        rehub_format_score('small');
        ?>
            <p><?php 
        kama_excerpt('maxchar=320');
        ?>
</p>
        </div>
        <?php 
        rehub_create_btn('yes');
        ?>
    </div>
</article>

<?php 
    }
开发者ID:rhondamoananui,项目名称:rehub,代码行数:98,代码来源:functions.php


示例4: rehub_get_woo_list


//.........这里部分代码省略.........
<div class="vip_corner"><span class="vip_badge sale_badge">Sale!</span></div><?php 
                }
                ?>
    <div class="block_with_coupon">
        <div class="offer_thumb">
        <a href="<?php 
                echo $woolink;
                ?>
" target="_blank"<?php 
                if ($product->product_type == 'external') {
                    echo ' rel="nofollow"';
                }
                ?>
><?php 
                wpsm_thumb('med_thumbs');
                ?>
</a>
        </div>
        <div class="desc_col">
            <div class="offer_title"><a href="<?php 
                echo $woolink;
                ?>
" target="_blank"<?php 
                if ($product->product_type == 'external') {
                    echo ' rel="nofollow"';
                }
                ?>
><?php 
                the_title();
                ?>
</a></div>
            <p>
            	<?php 
                kama_excerpt('maxchar=150');
                ?>
            	<?php 
                $rehub_woo_review_related = get_post_meta(get_the_ID(), "review_woo_id", true);
                if (!empty($rehub_woo_review_related)) {
                    ?>
                	<a href="<?php 
                    echo get_permalink($rehub_woo_review_related);
                    ?>
" target="_blank" class="color_link"><?php 
                    _e("Read review", "rehub_framework");
                    ?>
</a>
                	<div class="clearfix"></div>
            	<?php 
                }
                ?>
            </p>
            <p>
                <?php 
                if (in_array('yith-woocommerce-compare/init.php', apply_filters('active_plugins', get_option('active_plugins')))) {
                    ?>
                    <?php 
                    echo do_shortcode('[yith_compare_button]');
                    ?>
                <?php 
                }
                ?>
                <?php 
                if (in_array('yith-woocommerce-wishlist/init.php', apply_filters('active_plugins', get_option('active_plugins')))) {
                    ?>
                    <?php 
                    echo do_shortcode('[yith_wcwl_add_to_wishlist]');
开发者ID:rhondamoananui,项目名称:rehub,代码行数:67,代码来源:review_functions.php


示例5: rehub_formats_icons

    if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {
        ?>
                <figure>
                    <div class="pattern"></div>
                    <?php 
        rehub_formats_icons('full');
        ?>
                    <a href="<?php 
        the_permalink();
        ?>
"><?php 
        wpsm_thumb('grid_news');
        ?>
</a>
                </figure>                                     
        <?php 
    }
    ?>
   
    <?php 
}
?>
    <p><?php 
kama_excerpt('maxchar=320');
?>
</p>
	  <?php 
rehub_create_btn('yes');
?>
    
</article>
开发者ID:rhondamoananui,项目名称:rehub,代码行数:31,代码来源:query_type3.php


示例6: wpsm_thumb

"><?php 
        wpsm_thumb('news_big');
        ?>
</a>
        </figure>
        <div class="content_constructor">
            <h2><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h2>
            <div class="rehub_catalog_desc">                                 
                <?php 
        kama_excerpt('maxchar=' . $exerpt_count . '');
        ?>
                       
            </div> 
            <?php 
        if ($enable_btn) {
            ?>
                <?php 
            rehub_create_btn('yes');
            ?>
            <?php 
        }
        ?>
        </div>                           
    </article>
<?php 
开发者ID:rhondamoananui,项目名称:rehub,代码行数:31,代码来源:columngrid_loop.php


示例7: wpsm_thumb

" target="_blank"><?php 
    wpsm_thumb('med_thumbs');
    ?>
</a>    
        </div>
        <div class="desc_col">
            <div class="offer_title"><a href="<?php 
    echo $woolink;
    ?>
" target="_blank"><?php 
    the_title();
    ?>
</a></div>
            <p>
                <?php 
    kama_excerpt('maxchar=150');
    ?>
                <?php 
    $rehub_woo_review_related = get_post_meta(get_the_ID(), "review_woo_id", true);
    if (!empty($rehub_woo_review_related)) {
        ?>
                    <a href="<?php 
        echo get_permalink($rehub_woo_review_related);
        ?>
" target="_blank" class="color_link"><?php 
        _e("Read review", "rehub_framework");
        ?>
</a>
                    <div class="clearfix"></div>    
                <?php 
    }
开发者ID:rhondamoananui,项目名称:rehub,代码行数:31,代码来源:index.php


示例8: wpsm_toprating_shortcode


//.........这里部分代码省略.........
                        the_title_attribute();
                        ?>
" />
		                            <?php 
                    } else {
                        ?>
    
		                                <img src="<?php 
                        echo $nothumb;
                        ?>
" alt="<?php 
                        the_title_attribute();
                        ?>
" />
		                            <?php 
                    }
                    ?>
                            	</a>
                            </figure>
                        </div>                            
                    <div class="desc_col">
                        <h2><a href="<?php 
                    the_permalink();
                    ?>
"><?php 
                    the_title();
                    ?>
</a></h2>
                        <p>
                        	<?php 
                    if ($module_desc == 'post') {
                        ?>
                        		<?php 
                        kama_excerpt('maxchar=120');
                        ?>
                        	<?php 
                    } elseif ($module_desc == 'review') {
                        ?>
                        		<?php 
                        echo wp_kses_post(vp_metabox('rehub_post.review_post.0.review_post_summary_text'));
                        ?>
                            <?php 
                    } elseif ($module_desc == 'field') {
                        ?>
                                <?php 
                        if (get_post_meta(get_the_ID(), $module_desc_fields, true)) {
                            ?>
                                    <?php 
                            echo get_post_meta(get_the_ID(), $module_desc_fields, true);
                            ?>
                                <?php 
                        }
                        ?>
                        		
                        	<?php 
                    } elseif ($module_desc == 'none') {
                        ?>
                        	<?php 
                    } else {
                        ?>
	
                        		<?php 
                        kama_excerpt('maxchar=120');
                        ?>
                    		<?php 
                    }
开发者ID:rhondamoananui,项目名称:rehub,代码行数:67,代码来源:shortcodes.php


示例9: get_post_meta

                                                <?php 
    $views = get_post_meta(get_the_ID(), 'views', true);
    echo empty($views) ? '0' : $views;
    ?>
                                            </span>
                                        </div>
                                        <h2 class="post_title"><?php 
    echo the_title();
    ?>
</h2>
                                        <a href="<?php 
    the_permalink();
    ?>
" title="" class="post-shot-content">
                                            <?php 
    kama_excerpt("maxchar=80");
    ?>
                                        </a>
                                    </li>
                                <?php 
}
wp_reset_postdata();
?>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="orgs-paginate">
                    <?php 
global $wp_query;
$total = wp_count_posts('ads')->publish;
开发者ID:TimurMG,项目名称:mg-red,代码行数:31,代码来源:page-ads.php


示例10: woo_dealslinks_rehub


//.........这里部分代码省略.........
                        the_title_attribute();
                        ?>
" />
	            		<?php 
                    } else {
                        ?>
	            			<img src="<?php 
                        echo get_template_directory_uri();
                        ?>
/images/default/noimage_100_70.png" alt="<?php 
                        the_title_attribute();
                        ?>
" />
	            		<?php 
                    }
                    ?>
	            	</a>				
				</div>
				<div class="product-details">
					<div class="product-name">
						<div class="aff_name"><a href="<?php 
                    echo $woolink;
                    ?>
" target="_blank"<?php 
                    if ($product->product_type == 'external') {
                        echo ' rel="nofollow"';
                    }
                    ?>
><?php 
                    the_title();
                    ?>
</a></div>
						<p><?php 
                    kama_excerpt('maxchar=150');
                    ?>
</p>
					</div>
					<div class="left_data_aff">
						<div class="wooprice_count">
						<?php 
                    if ($product->get_price() != '') {
                        ?>
							<?php 
                        echo $product->get_price_html();
                        ?>
						<?php 
                    }
                    ?>
	
						</div>					
						<div class="wooaff_tag">
				            <?php 
                    if (!empty($term_brand_image['brand_image'])) {
                        ?>
				            	<img src="<?php 
                        $params = array('width' => 100, 'height' => 100);
                        echo bfi_thumb($term_brand_image['brand_image'], $params);
                        ?>
" alt="<?php 
                        the_title_attribute();
                        ?>
" />
				            <?php 
                    } elseif (!empty($term_list[0])) {
                        ?>
 
开发者ID:rhondamoananui,项目名称:rehub,代码行数:66,代码来源:woo_functions.php


示例11: get_the_category

        $category = get_the_category(get_the_ID());
        $first_cat = $category[0]->term_id;
        meta_small(false, $first_cat, false, false);
        ?>
</div>
	            		</div>
	            		<h2><?php 
        rehub_permalink();
        the_title();
        ?>
</a></h2>
	            		<div class="hero-description"><?php 
        if ($dis_exerpt != '1') {
            ?>
<p><?php 
            kama_excerpt('maxchar=100');
            ?>
</p><?php 
        }
        ?>
</div>
	            		<?php 
        rehub_create_btn('yes');
        ?>
            		</div>
            	</div>
        	</li>
      	<?php 
    }
}
wp_reset_query();
开发者ID:rhondamoananui,项目名称:rehub,代码行数:31,代码来源:wpsm_featured.php


示例12: the_permalink

                            <?php 
        }
        ?>
                            <h2><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h2>
                            <?php 
        if ($catalog_desc != '') {
            ?>
                                <div class="rehub_catalog_desc">                                 
                                    <?php 
            kama_excerpt('maxchar=' . $catalog_desc . '');
            ?>
                       
                                </div>
                            <?php 
        }
        ?>
                        
                            <?php 
        if ($catalog_fields[0]['catalog_fields_name'] != '') {
            ?>
                                <div class="rehub_catalog_fields">                                 
                                    <?php 
            $count = 1;
            foreach ($catalog_fields as $catalog_field) {
                ?>
开发者ID:rhondamoananui,项目名称:rehub,代码行数:31,代码来源:catalogue_constructor.php


示例13: the_title_shorten

        ?>
                                </a>
                            </div>
                        <?php 
    }
    ?>
                        <h2><?php 
    the_title_shorten(50);
    ?>
</h2>
                        <a href="<?php 
    the_permalink();
    ?>
" title=""
                           class="post-shot-content"><?php 
    kama_excerpt("maxchar=200");
    ?>
</a>

                        <div class="post-time-view">
                            <?php 
    echo get_date_formatted(get_the_date('d.m.Y.H.i'), 'v');
    ?>
                            <span class="comments"><i class="comment-ico"></i>
                                <?php 
    comments_number('0', '1', '%');
    ?>
                                            </span>
                    <span class="view"><i class="view-ico"></i>
                        <?php 
    $views = get_post_meta(get_the_ID(), 'views', true);
开发者ID:TimurMG,项目名称:mg-red,代码行数:31,代码来源:pmedical.php


示例14: rehub_get_review

    function rehub_get_review()
    {
        ?>

    <?php 
        $postAverage = get_post_meta(get_the_ID(), 'post_user_average', true);
        ?>

    <?php 
        $user_rates = get_post_meta(get_the_ID(), 'post_user_raitings', true);
        if (!empty($user_rates)) {
            $usercriterias = $user_rates['criteria'];
        }
        ?>

    <?php 
        if ($postAverage != '0' && $postAverage != '') {
            ?>
	

	<div class="rate_bar_wrap only_user_reviews<?php 
            if (rehub_option('color_type_review') == 'multicolor') {
                echo ' colored_rate_bar';
            }
            ?>
">

		<meta itemprop="description" content="<?php 
            kama_excerpt('maxchar=200');
            ?>
">

		<meta itemprop="url" content="<?php 
            the_permalink();
            ?>
">		

		<span class="user-reviews-title"><?php 
            the_title();
            ?>
</span>

		<div class="total-score-users-head">		

			<div class="review-top" itemprop="aggregateRating" itemscope="" itemtype="http://schema.org/AggregateRating">		

				<div class="overall-score">

					<span>	

						<span class="overall r_score_<?php 
            echo round($postAverage);
            ?>
" itemprop="ratingValue"><?php 
            echo round($postAverage, 1);
            ?>
</span>

						<span class="overall-text"><?php 
            _e('Total Score', 'rehub_framework');
            ?>
</span>

						<meta itemprop="bestRating" content="10"/>

						<meta itemprop="worstRating" content="1"/>

					</span>

				</div>

				<div class="overall-votes"><span itemprop="ratingCount"><?php 
            echo $user_rates['criteria'][0]['count'];
            ?>
</span> <?php 
            _e('reviews', 'rehub_framework');
            ?>
</div>	

				<a href="#respond" class="rehub_scroll add_user_review_link"><?php 
            _e("Add your review", "rehub_framework");
            ?>
</a>					

			</div>

		</div>	

		<div class="review-criteria user-review-criteria">

			<div class="r_criteria">

				<?php 
            foreach ($usercriterias as $usercriteria) {
                ?>

				<?php 
                $perc_criteria = $usercriteria['average'] * 10;
                ?>

//.........这里部分代码省略.........
开发者ID:rhondamoananui,项目名称:rehub,代码行数:101,代码来源:user_review_no_editor.php


示例15: get_more_posts

function get_more_posts()
{
    $nonce = $_POST['nonce'];
    $qObjId = $_POST['term'];
    $tax = $_POST['tax'];
    $pType = $_POST['pType'];
    $offset = intval($_POST['offset']);
    $limit = intval($_POST['limit']);
    if (!wp_verify_nonce($nonce, 'ajax-nonce') || $offset == 0 || ($limit == 0 || $limit > 50) || is_array($offset)) {
        wp_die();
    }
    $types = get_post_types(array('public' => true), 'names');
    if (!in_array($pType, $types)) {
        wp_die();
    }
    $params = array('post_type' => $pType, 'posts_per_page' => $limit, 'offset' => $offset);
    $taxes = array('ncategory', 'ntag', 'adscategory', 'catcategory');
    if (!empty($tax) && in_array($tax, $taxes)) {
        if ($qObjId == 0 || is_array($qObjId)) {
            wp_die();
        }
        $params['tax_query'][] = array('taxonomy' => $tax, 'field' => 'id', 'terms' => $qObjId);
    }
    $posts = get_posts($params);
    $output = array();
    foreach ($posts as $post) {
        $row = array();
        $row['title'] = htmlspecialchars($post->post_title);
        $row['date'] = get_date_formatted(date_format(new DateTime($post->post_date), 'd.m.Y.H.i'));
        $row['link'] = get_permalink($post->ID);
        if ($post->post_type == 'news' || $post->post_type == 'ads') {
            $views = get_post_meta($post->ID, 'views', true);
            $row['views'] = empty($views) ? '0' : $views;
            if (has_post_thumbnail($post->ID)) {
                $img_url = wp_get_attachment_url(get_post_thumbnail_id($post->ID), 'full');
                $sizes = $post->post_type == 'news' ? array(60, 60) : array(96, 75);
                $row['src'] = aq_resize($img_url, $sizes[0], $sizes[1], true);
            } else {
                $row['src'] = $post->post_type == 'news' ? null : get_template_directory_uri() . '/images/blank_image.png';
            }
            if ($post->post_type == 'news') {
                $row['comments'] = get_comments_number($post->ID);
            }
            if ($post->post_type == 'ads') {
                $row['short'] = htmlspecialchars(kama_excerpt("maxchar=80&echo", $post));
            }
        }
        if ($post->post_type == 'catalog' || $post->post_type == 'ads') {
            $location = get_the_terms($post->ID, 'nlocation');
            if ($location) {
                $location = array_shift($location);
                $row['location'] = $location->name;
            } else {
                $row['location'] = "Уральск";
            }
            if ($post->post_type == 'catalog') {
                $contact = get_post_meta($post->ID, 'catalog_contacts', true);
                preg_match('#\\d+-\\d+-\\d+|\\d+ \\d+ \\d+|\\d+#ui', $contact, $phone_arr);
                $row['contact'] = count($phone_arr) > 0 ? $phone_arr[0] : ' - ';
            }
        }
        $output[] = $row;
    }
    exit(json_encode($output));
}
开发者ID:TimurMG,项目名称:mg-red,代码行数:65,代码来源:functions.php


示例16: meta_all

                ?>
	        </figure>
	        <article>
				<div class="post-meta"> <?php 
                meta_all(false, $module_cats_second, false);
                ?>
 </div>	        
	            <h3><a href="<?php 
                the_permalink();
                ?>
"><?php 
                the_title();
                ?>
</a></h3> 
	            <p><?php 
                kama_excerpt('maxchar=160');
                ?>
</p>           
	        </article>
	     	<?php 
            } else {
                ?>
	     	<div class="f-post clearfix">
	            <figure> <a href="<?php 
                the_permalink();
                ?>
"><?php 
                wpsm_thumb('med_thumbs');
                ?>
</a><?php 
                rehub_formats_icons('small');
开发者ID:rhondamoananui,项目名称:rehub,代码行数:31,代码来源:two_col_news.php


示例17: the_permalink

                    <div class="col-md-10">
                        <p class="zag"><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></p>
                        <p class="date"><?php 
        the_time('d.m.Y');
        ?>
</p>
                        <?php 
        $rrr = get_the_content();
        ?>
                        <p class="desc"><?php 
        kama_excerpt("text={$rrr}&maxchar=200");
        ?>
</p>
                    </div>
                </div>
            <?php 
    }
    ?>
            <?php 
}
?>
        </div>
    </main>
<?php 
get_footer();
开发者ID:olegverstka,项目名称:kortes-bp.ru,代码行数:31,代码来源:category.php


示例18: setup_postdata

        setup_postdata($post);
        ?>
           	<div class="col-md-6 col-xs-12 news_about" >
           		<div class="img" style="background-image: url('<?php 
        echo wp_get_attachment_url(get_post_thumbnail_id($post->ID));
        ?>
')">
           			
           		</div>
           		<div class="block">
           			<h3><?php 
        the_title();
        ?>
</h3>
           			<p><?php 
        kama_excerpt();
        ?>
<p>
           			<div class="upper">
           				<span class="time"> <?php 
        the_time('j.m.Y');
        ?>
</span>
           				<a href="" title="Подробнее">Подробнее</a>
           			</div>
           		</div>
           		
           
           	</div>
             <?php 
    }
开发者ID:shmakovdima,项目名称:ergon,代码行数:31,代码来源:index.php


示例19: rehub_get_user_resultsedd

                rehub_get_user_resultsedd('small');
            }
            ?>
                        
                        </div>
                        <div class="edd_download_text">
                            <h3 class="edd_download_title" itemprop="name"><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title_attribute();
            ?>
</a></h3>
                            <div class="edd_download_excerpt" itemprop="description">
                                <p><?php 
            kama_excerpt('maxchar=120');
            ?>
</p>
                            </div>
                        </div>
                        <div class="edd_download_buy_button">
                            <?php 
            echo edd_get_purchase_link(array('download_id' => get_the_ID()));
            ?>
                        </div>
                    </div> 
                </div> 
                <div class="clearfix"></div>              
                
            <?php 
        }
开发者ID:rhondamoananui,项目名称:rehub,代码行数:31,代码来源:taxonomy-download_category.php


示例20: get_image_thumb

								<?php 
        get_image_thumb(get_the_ID(), array(238, 160));
        ?>
</td>
<td valign="top" style="padding: 0 20px !important; background-color:#FFF5E1;   vertical-align: -webkit-baseline-middle;">
								<a href="<?php 
        the_permalink();
        ?>
" style="font-size:24px !important; display:block; margin-bottom:10px; padding:10px 0; border-bottom:1px #CCC dashed; color:#333; text-decoration:none;" >
								<?php 
        the_title_shorten(50);
        ?>
                                </a>
                                
                                <?php 
        echo htmlspecialchars(kama_excerpt('maxchar=200&echo'));
        ?>
</td>
</tr>
</table>
                            </div>

                        <?php 
    }
    wp_reset_postdata();
    ?>

                   

                </div>
开发者ID:TimurMG,项目名称:mg-red,代码行数:30,代码来源:parhiv.php



注:本文中的kama_excerpt函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP kboard_htmlclear函数代码示例发布时间:2022-05-15
下一篇:
PHP kama_breadcrumbs函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap