当前位置: 首页>>代码示例>>PHP>>正文


PHP imic_excerpt函数代码示例

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


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

示例1: the_post_thumbnail

" class="media-box">
                                        <?php 
            the_post_thumbnail('600x400', array('class' => "img-thumbnail"));
            ?>
                                    </a>
                                </div>
                                <?php 
        }
        ?>
                                <div class="<?php 
        echo $class;
        ?>
">
                                	<div class="page-content">
                                    <?php 
        echo imic_excerpt(100);
        ?>
                                    </div>
                                    <p><a href="<?php 
        the_permalink();
        ?>
" class="btn btn-primary"><?php 
        _e('Continue reading ', 'framework');
        ?>
 <i class="fa fa-long-arrow-right"></i></a></p>
                                </div>
                            </div>
                        </div>
                    </article>
          <?php 
    }
开发者ID:jesusmarket,项目名称:jesusmarket,代码行数:31,代码来源:template-sermons.php

示例2: esc_url

</a>
                                    </div>
                                    <div class="col-md-7">
                                    	<h3><a href="<?php 
        echo esc_url(get_permalink(get_the_ID()));
        ?>
"><?php 
        the_title();
        ?>
</a></h3>
                                        <span class="meta-data"><i class="fa fa-calendar"></i> <?php 
        echo esc_html(get_the_date(get_option('date_format'), get_the_ID()));
        ?>
</span>
                                        <?php 
        echo imic_excerpt(15);
        ?>
                                    </div>
                                </div>
                            </li>
                        <?php 
    }
}
?>
                        </ul>
                        <?php 
imic_pagination();
?>
                    </div>
                    <?php 
if (is_active_sidebar($pageSidebar)) {
开发者ID:sammyboy45467,项目名称:wp-theme,代码行数:31,代码来源:taxonomy-sermon-category.php

示例3: get_permalink

 if (has_post_thumbnail()) {
     echo '<div class="media-box"><a href="' . get_permalink(get_the_ID()) . '">';
     echo get_the_post_thumbnail(get_the_ID(), '600x400');
     echo '</a></div>';
 }
 $job_title = get_post_meta(get_the_ID(), 'imic_staff_job_title', true);
 $job = '';
 if (!empty($job_title)) {
     $job = '<div class="meta-data">' . $job_title . '</div>';
 }
 echo '<div class="grid-content">
                            <h3> <a href="' . get_permalink(get_the_ID()) . '">' . get_the_title() . '</a></h3>';
 echo $job;
 $staff_icons = get_post_meta(get_the_ID(), 'imic_social_icon_list', false);
 echo imic_social_staff_icon();
 $description = imic_excerpt($excerpt_length);
 if ($excerpt_length != 0) {
     echo '<div class="page-content">';
     if (!empty($description)) {
         echo $description;
     }
     echo '</div>';
 }
 if ($excerpt_length != 0) {
     $staff_read_more_text = $imic_options['staff_read_more_text'];
     if ($imic_options['switch_staff_read_more'] == 1 && $imic_options['staff_read_more'] == '0') {
         echo '<p><a href="' . get_permalink() . '" class="btn btn-default">' . $staff_read_more_text . '</a></p>';
     } elseif ($imic_options['switch_staff_read_more'] == 1 && $imic_options['staff_read_more'] == '1') {
         echo '<p><a href="' . get_permalink() . '">' . $staff_read_more_text . '</a></p>';
     }
 }
开发者ID:jesusmarket,项目名称:jesusmarket,代码行数:31,代码来源:template-staff.php

示例4: imic_testimonial

function imic_testimonial($atts, $content = null)
{
    extract(shortcode_atts(array("title" => "", "number" => "", "type" => ""), $atts));
    global $imic_options;
    $output = '';
    if (is_plugin_active("imithemes-listing/listing.php")) {
        if ($type == 1) {
            $class = "carousel-wrapper";
            $item = 2;
        } else {
            $class = "carousel-wrapper testimonials-wbg accent-bg sm-margint";
            $item = 1;
        }
        $args_testimonial = array('post_type' => 'testimonial', 'posts_per_page' => $number);
        if (isset($imic_options['enable_rtl']) && $imic_options['enable_rtl'] == 1) {
            $DIR = 'data-rtl="rtl"';
        } else {
            $DIR = 'data-rtl="ltr"';
        }
        if ($type == 1) {
            $output .= '<header>
                        	<h3>' . $title . '</h3>
                        </header><div class="spacer-40"></div>';
        }
        $output .= '<div class="' . $class . '">
                            <div class="row">
                                <ul class="owl-carousel carousel-fw" id="testimonials-slider" data-columns="' . $item . '" data-pagination="yes" data-arrows="no" data-single-item="no" data-items-desktop="' . $item . '" data-items-desktop-small="' . $item . '" data-items-tablet="' . $item . '" data-items-mobile="1" ' . $DIR . '>';
        $testimonial_listing = new WP_Query($args_testimonial);
        if ($testimonial_listing->have_posts()) {
            while ($testimonial_listing->have_posts()) {
                $testimonial_listing->the_post();
                $company = get_post_meta(get_the_ID(), 'imic_company_name', true);
                $company_url = get_post_meta(get_the_ID(), 'imic_company_url', true);
                $output .= '<li class="item">
                                        <div class="testimonial-block">
                                            <blockquote>
                                                ' . imic_excerpt(15) . '
                                            </blockquote>';
                if (has_post_thumbnail()) {
                    $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), '100x100');
                    $output .= '<div class="testimonial-avatar"><img src="' . $thumb[0] . '" width="60" height="60"></div>';
                }
                $output .= '<div class="testimonial-info">
                                                <div class="testimonial-info-in">
                                                    <strong>' . get_the_title() . '</strong>';
                if ($company_url != '') {
                    $output .= '<span><a href="' . $company_url . '">' . $company . '</a></span>';
                } else {
                    $output .= '<span>' . $company . '</span>';
                }
                $output .= '</div>
                                            </div>
                                        </div>
                                    </li>';
            }
        }
        $output .= '</ul></div></div>';
        wp_reset_postdata();
    }
    return $output;
}
开发者ID:zruiz,项目名称:NG,代码行数:61,代码来源:shortcodes.php

示例5: imic_event


//.........这里部分代码省略.........
                $eventEndDate = strtotime(get_post_meta($value, 'imic_event_end_dt', true));
                $event_dt_out = imic_get_event_timeformate($eventStartTime . '|' . $eventEndTime, $eventStartDate . '|' . $eventEndDate, $value, $key);
                $event_dt_out = explode('BR', $event_dt_out);
                $registration_status = get_post_meta($value, 'imic_event_registration_status', true);
                /** Event Details Manage **/
                if ($registration_status == 1 && function_exists('imic_get_currency_symbol')) {
                    $eventDetailIcons = array('fa-calendar', 'fa-clock-o', 'fa-map-marker', 'fa-money');
                } else {
                    $eventDetailIcons = array('fa-calendar', 'fa-clock-o', 'fa-map-marker');
                }
                $stime = "";
                $etime = "";
                if ($eventStartTime != '') {
                    $stime = ' | ' . date_i18n(get_option('time_format'), $eventStartTime);
                }
                if ($eventEndTime != '') {
                    $etime = ' - ' . date_i18n(get_option('time_format'), $eventEndTime);
                }
                if ($registration_status == 1 && function_exists('imic_get_currency_symbol')) {
                    $event_registration_fee = get_post_meta($value, 'imic_event_registration_fee', true);
                    $registration_charge = $event_registration_fee == '' ? 'Free' : imic_get_currency_symbol(get_option('paypal_currency_options')) . get_post_meta($value, 'imic_event_registration_fee', true);
                    $eventDetailsData = array($event_dt_out[1], $event_dt_out[0], get_post_meta($value, 'imic_event_address', true), $registration_charge);
                    /*
                    $eventDetailsData = array(date_i18n('j M, ',$key).date_i18n('l',$key). $stime .  $etime, get_post_meta($value,'imic_event_address',true),$registration_charge);
                    */
                } else {
                    /*$eventDetailsData = array(date_i18n('j M, ',$key).date_i18n('l',$key). $stime .  $etime, get_post_meta($value,'imic_event_address',true));*/
                    $eventDetailsData = array($event_dt_out[1], $event_dt_out[0], get_post_meta($value, 'imic_event_address', true));
                }
                $eventValues = array_filter($eventDetailsData, 'strlen');
            }
            if ($count == $paginate && $grid_item <= $perPage) {
                $paginate++;
                $grid_item++;
                if ($google_flag == 1) {
                    $frequency = get_post_meta($value, 'imic_event_frequency', true);
                }
                //if ('' != get_the_post_thumbnail($value)) {
                $output .= '<li class="grid-item format-standard">';
                if ($google_flag == 1) {
                    $date_converted = date('Y-m-d', $key);
                    $custom_event_url = imic_query_arg($date_converted, $value);
                }
                if ($google_flag == 2) {
                    $google_data = explode('!', $value);
                    $event_title = $google_data[0];
                    $custom_event_url = $google_data[1];
                    $stime = "";
                    $etime = "";
                    $etime = $google_data[2];
                    if ($key != '') {
                        $stime = ' | ' . date_i18n(get_option('time_format'), $key);
                    }
                    if ($etime != '') {
                        $etime = ' - ' . date_i18n(get_option('time_format'), strtotime($etime));
                    }
                    $eventAddress = $google_data[3];
                    /* $eventDetailsData = array(date_i18n('j M, ',$key).date_i18n('l',$key). $stime .  $etime,$eventAddress);*/
                    $event_dt_out = imic_get_event_timeformate($key . '|' . $google_data[2], $key . '|' . $key, $value, $key);
                    $event_dt_out = explode('BR', $event_dt_out);
                    $eventDetailsData = array($event_dt_out[1], $event_dt_out[0], $eventAddress);
                    $eventValues = array_filter($eventDetailsData, 'strlen');
                    $eventDetailIcons = array('fa-calendar', 'fa-clock-o', 'fa-map-marker');
                }
                $output .= '<div class="grid-item-inner">';
                if ($google_flag == 1) {
                    $output .= '<a href="' . $custom_event_url . '" class="media-box">';
                    $output .= get_the_post_thumbnail($value, 'full');
                    $output .= '</a>';
                    $event_title = get_the_title($value);
                }
                $output .= '<div class="grid-content">';
                $output .= '<h3><a href="' . $custom_event_url . '">' . $event_title . '</a>' . imicRecurrenceIcon($value) . '</h3>';
                if ($google_flag == 1) {
                    $output .= '<div class="page-content">';
                    $output .= imic_excerpt(25);
                    $output .= '</div>';
                }
                $output .= '</div>';
                if (!empty($eventValues)) {
                    $output .= '<ul class="info-table">';
                    $flag = 0;
                    foreach ($eventDetailsData as $edata) {
                        if (!empty($edata)) {
                            $output .= '<li><i class="fa ' . $eventDetailIcons[$flag] . '"></i> ' . $edata . ' </li>';
                        }
                        $flag++;
                    }
                    $output .= '</ul>';
                    //}
                    $output .= '</div>
		</li>';
                }
            }
            $count++;
        }
        $output .= '</ul></div></div>';
    }
    return $output;
}
开发者ID:jesusmarket,项目名称:jesusmarket,代码行数:101,代码来源:shortcodes.php

示例6: imic_staff

function imic_staff($atts, $content = null)
{
    extract(shortcode_atts(array("number" => "", "order" => ""), $atts));
    $output = '';
    if ($order == "no") {
        $orderby = "ID";
        $sort_order = "DESC";
    } else {
        $orderby = "menu_order";
        $sort_order = "ASC";
    }
    query_posts(array('post_type' => 'staff', 'posts_per_page' => $number, 'orderby' => $orderby, 'order' => $sort_order));
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $custom = get_post_custom(get_the_ID());
            $output .= '<div class="col-md-4 col-sm-4">
                    <div class="grid-item staff-item"> 
                        <div class="grid-item-inner">';
            if (has_post_thumbnail()) {
                $output .= '<div class="media-box"><a href="' . get_permalink(get_the_ID()) . '">';
                $output .= get_the_post_thumbnail(get_the_ID(), 'full');
                $output .= '</a></div>';
            }
            $job_title = get_post_meta(get_the_ID(), 'imic_staff_job_title', true);
            $job = '';
            if (!empty($job_title)) {
                $job = '<div class="meta-data">' . $job_title . '</div>';
            }
            $output .= '<div class="grid-content">
                                <h3> <a href="' . get_permalink(get_the_ID()) . '">' . get_the_title() . '</a></h3>';
            $output .= $job;
            if (!empty($custom['imic_staff_member_facebook'][0]) || !empty($custom['imic_staff_member_twitter'][0]) || !empty($custom['imic_staff_member_google_plus'][0]) || !empty($custom['imic_staff_member_pinterest'][0]) || !empty($custom['imic_staff_member_email'][0])) {
                $output .= '<nav class="social-icons">';
                if (get_post_meta(get_the_ID(), 'imic_staff_member_facebook', true) != '') {
                    $output .= '<a href="' . get_post_meta(get_the_ID(), 'imic_staff_member_facebook', true) . '" target ="_blank"><i class="fa fa-facebook"></i></a>';
                }
                if (get_post_meta(get_the_ID(), 'imic_staff_member_twitter', true) != '') {
                    $output .= '<a href="' . get_post_meta(get_the_ID(), 'imic_staff_member_twitter', true) . '" target ="_blank"><i class="fa fa-twitter"></i></a>';
                }
                if (get_post_meta(get_the_ID(), 'imic_staff_member_google_plus', true) != '') {
                    $output .= '<a href="' . get_post_meta(get_the_ID(), 'imic_staff_member_google_plus', true) . '" target ="_blank"><i class="fa fa-google-plus"></i></a>';
                }
                if (get_post_meta(get_the_ID(), 'imic_staff_member_pinterest', true) != '') {
                    $output .= '<a href="' . get_post_meta(get_the_ID(), 'imic_staff_member_pinterest', true) . '" target ="_blank"><i class="fa fa-pinterest"></i></a>';
                }
                if (get_post_meta(get_the_ID(), 'imic_staff_member_email', true) != '') {
                    $output .= '<a href="mailto:' . get_post_meta(get_the_ID(), 'imic_staff_member_email', true) . '"><i class="fa fa-envelope"></i></a>';
                }
                $output .= '</nav>';
            }
            $description = imic_excerpt();
            if (!empty($description)) {
                $output .= $description;
            }
            $output .= '</div></div>
                    </div>
                </div>';
        }
    }
    wp_reset_query();
    return $output;
}
开发者ID:rossojames,项目名称:wp-production,代码行数:63,代码来源:shortcodes.php

示例7: comments_popup_link

                                        <div class="comment-count"><?php 
            if (comments_open()) {
                echo comments_popup_link('<i class="fa fa-comment"></i>' . __('No comments yet', 'framework'), '<i class="fa fa-comment"></i>1', '<i class="fa fa-comment"></i>%', 'pull-right meta-data', 'comments-link', __('Comments are off for this post', 'framework'));
            }
            ?>
</div>
                                    </div>
                        			<h3 class="post-title"><a href="<?php 
            echo esc_url(get_permalink());
            ?>
"><?php 
            the_title();
            ?>
</a></h3>
                        			<?php 
            echo imic_excerpt(35);
            ?>
                                    <a href="<?php 
            echo esc_url(get_permalink());
            ?>
" class="continue-reading"><?php 
            echo esc_attr_e('Continue reading', 'framework');
            ?>
 <i class="fa fa-long-arrow-right"></i></a></p>
                                   	<div class="post-meta"><?php 
            echo esc_attr_e('Posted in:', 'framework');
            ?>
 <?php 
            the_category(', ');
            ?>
</div>
开发者ID:zruiz,项目名称:NG,代码行数:31,代码来源:template-blog.php

示例8: widget

 function widget($args, $instance)
 {
     extract($args);
     // these are the widget options
     $post_title = apply_filters('widget_title', $instance['title']);
     $testimonial = $instance['testimonial'];
     echo $args['before_widget'];
     if (!empty($instance['title'])) {
         echo '';
         echo $args['before_title'];
         echo apply_filters('widget_title', $post_title, $instance, $this->id_base);
         echo $args['after_title'];
         echo '';
     }
     echo '<ul class="testimonials">';
     query_posts(array('post_type' => 'testimonials', 'posts_per_page' => $testimonial));
     if (have_posts()) {
         while (have_posts()) {
             the_post();
             $company = get_post_meta(get_the_ID(), 'imic_client_company', true);
             $Client_Url = get_post_meta(get_the_ID(), 'imic_client_co_url', true);
             $domain_url = $url_html = '';
             if (filter_var($Client_Url, FILTER_VALIDATE_URL)) {
                 $domain_url = parse_url($Client_Url);
                 $domain_url = $domain_url['host'];
                 $url_html = '<br><a href="' . $Client_Url . '">' . $domain_url . '</a>';
             }
             echo '<li>
                           ' . imic_excerpt(50) . get_the_post_thumbnail(get_the_ID(), '80-80-size', array('class' => 'testimonial-sender')) . '
                           <cite>' . get_the_title() . ' - <strong>' . $company . '</strong>' . $url_html . '
                        </cite>
                     </li>';
         }
     }
     wp_reset_query();
     echo '</ul>';
     echo $args['after_widget'];
 }
开发者ID:sadpiglet20,项目名称:ninesouthestates,代码行数:38,代码来源:testimonial.php

示例9: _e

                    _e(' on ', 'framework');
                    echo esc_attr(get_the_date(get_option('date_format')));
                    _e(' in ', 'framework');
                    the_category(', ');
                } elseif ($recent_post_type == 'product') {
                    echo '<span class="price">' . $product->get_price_html() . ' </span> ';
                    do_action('woocommerce_after_shop_loop_item');
                } else {
                    echo '<span class="meta-data">' . get_post_meta(get_the_ID(), 'imic_staff_position', true) . ' ' . imic_social_staff_icon() . '</span>';
                }
                ?>
</div>
                                                    <?php 
                if (in_array('text', $post_options)) {
                    if ($post_content == 'excerpt') {
                        echo imic_excerpt($post_excerpt_length);
                    } else {
                        the_content();
                    }
                }
                if (in_array('more', $post_options)) {
                    ?>
                                    <p><a href="<?php 
                    the_permalink();
                    ?>
" class="basic-link"><?php 
                    _e('Continue reading ', 'framework');
                    ?>
<i class="fa fa-angle-right"></i></a></p>
                                    <?php 
                }
开发者ID:sammyboy45467,项目名称:wp-theme,代码行数:31,代码来源:template-home.php

示例10: imic_staff

function imic_staff($atts, $content = null)
{
    extract(shortcode_atts(array("title" => "", "type" => 1, "order" => "", "number" => "", "column" => 4, "cat" => ""), $atts));
    $output = '';
    if ($order == "no") {
        $orderby = "ID";
        $sort_order = "DESC";
    } else {
        $orderby = "menu_order";
        $sort_order = "ASC";
    }
    $url = imic_get_template_url('template-speakers-sermon.php');
    query_posts(array('post_type' => 'speaker', 'speaker-category' => $cat, 'posts_per_page' => $number, 'orderby' => $orderby, 'order' => $sort_order));
    $output .= '<h3>' . $title . '</h3>
              	<hr class="sm">';
    if ($type == 1) {
        $output .= '<div class="row">';
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                $staff_position = get_post_meta(get_the_ID(), 'imic_staff_position', true);
                $social = imic_social_staff_icon();
                $output .= '<div class="col-md-' . $column . ' col-sm-6">
                      	<div class="grid-item staff-item format-standard">
                        	<div class="grid-item-inner">
                                ' . get_the_post_thumbnail(get_the_ID(), '600x400') . '
                          		<div class="grid-content">
                                	<div class="staff-item-name">
                            			<h5><a data-toggle="modal" data-target="#team-modal-' . (get_the_ID() + 2648) . '" href="#" class="">' . get_the_title() . '</a></h5>
                                        <span class="meta-data">' . $staff_position . '</span>
                                    </div>
                                    ' . $social . imic_excerpt(10) . '
                          		</div></div>
                        	</div>
                      	</div>';
                $output .= '<div class="modal fade team-modal" id="team-modal-' . (get_the_ID() + 2648) . '" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                      <div class="modal-dialog modal-lg">
                        <div class="modal-content">
                          <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                            <h4 class="modal-title" id="myModalLabel">' . __('Team Members', 'framework') . '</h4>
                          </div>
                            <div class="modal-body">
                                <div class="staff-item">
                                <div class="row">
                                    <div class="col-md-5 col-sm-6">
                                    	' . get_the_post_thumbnail(get_the_ID(), '600x400', array('class' => 'img-thumbnail')) . '
                                    </div>
                                    <div class="col-md-7 col-sm-6">
                                    	<h3>' . get_the_title() . '</h3>
                                    	<span class="meta-data">' . get_post_meta(get_the_ID(), 'imic_staff_position', true) . '</span>';
                $post_id = get_post(get_the_ID());
                $content = $post_id->post_content;
                $content = apply_filters('the_content', $content);
                $content = str_replace(']]>', ']]>', $content);
                $output .= $content;
                if (get_post_meta(get_the_ID(), 'imic_display_sermon_url', true) == 1) {
                    if ($url != '') {
                        $output .= '<a class="btn btn-primary" href="' . add_query_arg('speakers', get_the_ID(), $url) . '">' . __('View all Sermons', 'framework') . '</a>';
                    }
                }
                $output .= '</div>
                                </div>
                            </div>
                            </div>
                        </div>
                      </div>
                    </div>';
            }
        }
        $output .= '</div>';
    } else {
        $output .= '<ul class="members-list row">';
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                $staff_position = get_post_meta(get_the_ID(), 'imic_staff_position', true);
                $social = imic_social_staff_icon();
                $output .= '<li class="col-md-' . $column . ' col-sm-4 col-xs-6">
                        ' . get_the_post_thumbnail(get_the_ID(), '100x100') . '
                        <h5>' . get_the_title() . '</h5>
                        <span class="meta-data">' . $staff_position . '</span>
                        ' . $social . '
                    </li>';
            }
        }
        $output .= '</ul>';
    }
    wp_reset_query();
    return $output;
}
开发者ID:sammyboy45467,项目名称:wp-theme,代码行数:91,代码来源:shortcodes.php

示例11: esc_url

        echo esc_url(get_permalink());
        ?>
"><?php 
        echo esc_attr($highlight_value);
        ?>
</a>
                           		<?php 
        if ($category_rail == "1" && is_plugin_active("imi-classifieds/imi-classified.php")) {
            echo imic_get_cats_list(get_the_ID(), "dropdown");
        }
        ?>
                                </h4>               
                         	<div class="result-item-cont">
                          		<div class="result-item-block col1">
                              	<?php 
        echo imic_excerpt(20);
        ?>
                           		</div>
                          		<div class="result-item-block col2">
                                	<div class="result-item-pricing">
                                   		<div class="price"><?php 
        echo esc_attr($unique_value);
        ?>
</div>
                                 	</div>
                                   	<div class="result-item-action-buttons">
                                   	<a <?php 
        echo esc_attr($save_icon_disable);
        ?>
 href="#" class="btn btn-default btn-sm save-car"><div class="vehicle-details-access" style="display:none;"><span class="vehicle-id"><?php 
        echo esc_attr(get_the_ID());
开发者ID:zruiz,项目名称:NG,代码行数:31,代码来源:taxonomy.php

示例12: get_permalink

                        <div class="grid-item-inner">';
        if (has_post_thumbnail()) {
            echo '<div class="media-box"><a href="' . get_permalink(get_the_ID()) . '">';
            echo get_the_post_thumbnail(get_the_ID(), '600x400');
            echo '</a></div>';
        }
        $job_title = get_post_meta(get_the_ID(), 'imic_staff_job_title', true);
        $job = '';
        if (!empty($job_title)) {
            $job = '<div class="meta-data">' . $job_title . '</div>';
        }
        echo '<div class="grid-content">
                                <h3> <a href="' . get_permalink(get_the_ID()) . '">' . get_the_title() . '</a></h3>';
        echo $job;
        echo imic_social_staff_icon();
        $description = imic_excerpt();
        if (!empty($description)) {
            echo '<div class="page-content">';
            echo $description;
            echo '</div>';
        }
        echo '</div></div>
                    </div>
                </div>';
    }
    echo '<div class="clear"></div>';
    if (function_exists("pagination")) {
        pagination();
    }
}
?>
开发者ID:jesusmarket,项目名称:jesusmarket,代码行数:31,代码来源:taxonomy-staff-category.php

示例13: the_permalink

            ?>
                                <div class="post-excerpt">
                                    <h3><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a></h3>
                                    <?php 
            foreach ($post_author_id as $speaker) {
                $sep = $count < count($post_author_id) ? ', ' : '';
                echo '<span class="meta-data"><i class="fa fa-user"></i> ' . get_the_title($speaker) . $sep . '</span>';
            }
            echo '<div class="page-content">';
            echo imic_excerpt($sermons_desc);
            echo '</div>';
            ?>
                                        <?php 
            echo '
                                            <ul class="action-buttons">
                                                <li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="top" data-original-title="' . __('Watch Video', 'framework') . '"><i class="icon-video-cam"></i></a></li>
                                                <li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="top" data-original-title="' . __('Listen Audio', 'framework') . '"><i class="icon-headphones"></i></a></li>
                                                <li><a href="' . IMIC_THEME_PATH . '/download/download.php?file=' . $download_pdf . '" data-toggle="tooltip" data-placement="top" data-original-title="' . __('Download PDF', 'framework') . '"><i class="icon-download-folder"></i></a></li>
                                            </ul>
                                        <br>';
            echo '<a href="' . get_permalink() . '" class="btn btn-primary btn-sm">' . $sermons_button . ' <i class="fa fa-long-arrow-right"></i></a>';
            ?>
                                </div>
                            </div>
                        </div>
开发者ID:sammyboy45467,项目名称:wp-theme,代码行数:31,代码来源:template-sermon-two.php

示例14: imic_excerpt

                    echo $cause_date_msg;
                    ?>
</label>
                                </div>
                                <div class="progress">
                                    <div class="progress-bar <?php 
                    echo $class;
                    ?>
" data-appear-progress-animation="<?php 
                    echo $cause_percentage;
                    ?>
%" data-appear-animation-delay="200"></div><!-- Upto 30% use class progress-bar-danger , upto 70% use class progress-bar-warning , afterwards use class progress-bar-success -->
                                </div>
                             <?php 
                }
                echo imic_excerpt();
                ?>
                            </div>
                        </div>
                    </article>
                    <?php 
            }
        }
    } else {
        ?>
                    <article class="post cause-item">
                        <div class="row">
                            <div class="col-md-12 col-sm-12">
                                <?php 
        _e('There is no any causes yet. ', 'framework');
        ?>
开发者ID:jesusmarket,项目名称:jesusmarket,代码行数:31,代码来源:template-causes-list.php

示例15: imic_testimonial

function imic_testimonial($atts, $content = null)
{
    extract(shortcode_atts(array("number" => "", "slider" => "no", "pagination" => "yes", "scroll" => "yes"), $atts));
    $output = '';
    $owl = $slider == "yes" ? 'owl-carousel' : '';
    $pagination = $pagination == "yes" ? 'data-pagination="yes"' : '';
    $auto_scroll = $scroll == "yes" ? 'data-autoplay="5000"' : '';
    $output .= '<ul class="testimonials ' . $owl . '" ' . $pagination . ' ' . $auto_scroll . '>';
    query_posts(array('post_type' => 'testimonials', 'posts_per_page' => $number));
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $company = get_post_meta(get_the_ID(), 'imic_client_company', true);
            $Client_Url = get_post_meta(get_the_ID(), 'imic_client_co_url', true);
            $domain_url = $url_html = '';
            if (filter_var($Client_Url, FILTER_VALIDATE_URL)) {
                $domain_url = parse_url($Client_Url);
                $domain_url = $domain_url['host'];
                $url_html = '<br><a href="' . $Client_Url . '">' . $domain_url . '</a>';
            }
            $output .= '<li>
                              ' . imic_excerpt(50) . get_the_post_thumbnail(get_the_ID(), 'full', array('class' => 'testimonial-sender')) . '
                              <cite>' . get_the_title() . ' - <strong>' . $company . '</strong>' . $url_html . '
                           </cite>
                        </li>';
        }
    }
    wp_reset_query();
    $output .= '</ul>';
    return $output;
}
开发者ID:AbleLincoln,项目名称:Avaant_Real-Spaces_wp_theme,代码行数:31,代码来源:shortcodes.php


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