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


PHP imic_get_template_url函数代码示例

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


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

示例1: _e

"><?php 
        _e('Logout', 'framework');
        ?>
</a></li>
                </ul>
                <?php 
    } else {
        ?>
					<ul class="dropdown-menu">
                  <?php 
        $agent_favourite_properties = imic_get_template_url('template-favorite-properties.php');
        echo '<li><a href="' . $agent_favourite_properties . '" title="' . __('Favorite Properties', 'framework') . '">' . __('Favorite Properties', 'framework') . '</a></li>';
        $agent_favourite_searches = imic_get_template_url('template-favorite-search.php');
        echo '<li><a href="' . $agent_favourite_searches . '" title="' . __('Saved Searches', 'framework') . '">' . __('Saved Searches', 'framework') . '</a></li>';
        //Agent Profile page link
        $agent_profile = imic_get_template_url('template-agent-profile.php');
        echo '<li class="register"><a href="' . $agent_profile . '" title="' . __('My Profile', 'framework') . '">' . __('My Profile', 'framework') . '</a></li>';
        ?>
                  <li class="login"><a href="<?php 
        echo wp_logout_url(home_url());
        ?>
" title="<?php 
        _e('Logout', 'framework');
        ?>
"><?php 
        _e('Logout', 'framework');
        ?>
</a></li>
                </ul>
					<?php 
    }
开发者ID:sadpiglet20,项目名称:ninesouthestates,代码行数:31,代码来源:header.php

示例2: get_post_meta

    $plan_price = get_post_meta($plan_id, 'imic_plan_price', true);
    $plan_price = floor($plan_price);
    $plan_listings_count = get_post_meta($plan_id, 'imic_plan_validity_listings', true);
    $plan_listings_count = esc_attr($plan_listings_count);
}
$transaction_id = isset($_REQUEST['tx']) ? esc_attr($_REQUEST['tx']) : '';
if ($transaction_id != '') {
    $paypal_details = imic_validate_payment($transaction_id);
    if (!empty($paypal_details)) {
        $st = $paypal_details['payment_status'];
        $payment_gross = $paypal_details['payment_gross'];
        $payment = floor($payment_gross);
    }
}
$ad_listing = imic_get_template_url('template-add-listing.php');
$listings = imic_get_template_url('template-listing.php');
global $current_user;
get_currentuserinfo();
$user_id = get_current_user_id();
$current_user = wp_get_current_user();
$user_info_id = get_user_meta($user_id, 'imic_user_info_id', true);
$confirm = $plan_price == $payment ? 1 : '';
$st = $confirm == 1 ? $st : __('Not Verified', 'framework');
$data = array();
if ($confirm == 1) {
    $all_plans_user = get_post_meta($user_info_id, 'imic_user_plan_' . $plan_id, true);
    if (!empty($all_plans_user)) {
        foreach ($all_plans_user as $key => $value) {
            $data[date('U')] = $value;
        }
    } else {
开发者ID:zruiz,项目名称:NG,代码行数:31,代码来源:template-thanks.php

示例3: imi_causes_template_choose

function imi_causes_template_choose($template)
{
    $listing_id = imic_get_template_url('template-causes-list.php');
    $grid_id = imic_get_template_url('template-causes-grid.php');
    $listing = get_option('causes_list_id') != '' ? get_option('causes_list_id') : $listing_id;
    $grid = get_option('causes_grid_id') != '' ? get_option('causes_grid_id') : $grid_id;
    if ($listing != '') {
        if (is_page($listing)) {
            return imic_causes_template_selector('template-causes-list');
        }
    }
    if ($grid != '') {
        if (is_page($grid)) {
            return imic_causes_template_selector('template-causes-grid');
        }
    }
    if (is_tax('causes-category')) {
        return imic_causes_template_selector('taxonomy-causes-category');
    }
    if (is_singular('causes')) {
        return imic_causes_template_selector('single-causes');
    } else {
        return $template;
    }
}
开发者ID:jesusmarket,项目名称:jesusmarket,代码行数:25,代码来源:cause_functions.php

示例4: get_header

<?php

/* Template Name:Saved Searches */
get_header();
include_once ABSPATH . 'wp-admin/includes/plugin.php';
if (is_plugin_active('favorite_property/favorite_property.php')) {
    if (is_user_logged_in()) {
        /* Site Showcase */
        imic_page_banner($pageID = get_the_ID());
        /* End Site Showcase */
        $paged = get_query_var('paged') ? get_query_var('paged') : 1;
        global $imic_options, $current_user;
        $currency_symbol = imic_get_currency_symbol($imic_options['currency-select']);
        get_currentuserinfo();
        $edit_url = imic_get_template_url('template-submit-property.php');
        $sidebar = get_post_meta(get_the_ID(), 'imic_select_sidebar_from_list', false);
        $class = empty($sidebar) || !is_active_sidebar($sidebar[0]) ? 12 : 9;
        ?>
<!-- Start Content -->
<div class="main" role="main">
<div id="content" class="content full">
<div class="container">
<div class="page">
<div class="row">
<div class="col-md-<?php 
        echo $class;
        ?>
">
<div class="block-heading" id="details">
<h4><span class="heading-icon"><i class="fa fa-search"></i></span><?php 
        _e('Saved Searches', 'framework');
开发者ID:AbleLincoln,项目名称:Avaant_Real-Spaces_wp_theme,代码行数:31,代码来源:template-favorite-search.php

示例5: get_user_meta

 $this_user = get_user_meta($post_author_id, 'imic_user_info_id', true);
 $add = get_post_meta($this_user, 'imic_user_zip_code', true);
 $highlighted_specs = isset($imic_options['highlighted_specs']) ? $imic_options['highlighted_specs'] : '';
 $new_highlighted_specs = imic_filter_lang_specs_admin($highlighted_specs, get_the_ID());
 $highlighted_specs = $new_highlighted_specs;
 $unique_specs = $imic_options['unique_specs'];
 $specifications = get_post_meta(get_the_ID(), 'feat_data', true);
 $unique_value = imic_vehicle_price(get_the_ID(), $unique_specs, $specifications);
 $highlight_value = imic_vehicle_title(get_the_ID(), $highlighted_specs, $specifications);
 $video = get_post_meta(get_the_ID(), 'imic_plugin_video_url', true);
 $featured_specifications = isset($imic_options['side_specifications']) ? $imic_options['side_specifications'] : array();
 $normal_specifications = isset($imic_options['normal_specifications']) ? $imic_options['normal_specifications'] : array();
 $normal_specification = array();
 $related_specifications = isset($imic_options['related_specifications']) ? $imic_options['related_specifications'] : array();
 $browse_specification_switch = get_post_meta(get_the_ID(), 'imic_browse_by_specification_switch', true);
 $browse_listing = imic_get_template_url("template-listing.php");
 $download_pdf = get_post_meta(get_the_ID(), 'imic_plugin_car_manual', true);
 $plan = get_post_meta(get_the_ID(), 'imic_plugin_car_plan', true);
 $plan_premium = get_post_meta($plan, 'imic_pricing_premium_badge', true);
 $userFirstName = get_the_author_meta('first_name', $post_author_id);
 $userLastName = get_the_author_meta('last_name', $post_author_id);
 $user_data = get_userdata(intval($post_author_id));
 $userName = $user_data->display_name;
 if (!empty($userFirstName) || !empty($userLastName)) {
     $userName = $userFirstName . ' ' . $userLastName;
 }
 if ($browse_specification_switch == 1) {
     get_template_part('bar', 'one');
 } elseif ($browse_specification_switch == 2) {
     get_template_part('bar', 'two');
 } elseif ($browse_specification_switch == 3) {
开发者ID:zruiz,项目名称:NG,代码行数:31,代码来源:single-cars.php

示例6: single_term_title

                  <div class="col-md-12">
                      <h1><?php 
    echo single_term_title("", false);
    ?>
</h1>
                  </div>
             </div>
         </div>
    </div>
    <!-- End Page Header -->
  </div>
<?php 
}
global $imic_options;
$currency_symbol = imic_get_currency_symbol($imic_options['currency-select']);
$listing_url = imic_get_template_url('template-property-listing.php');
?>
 <!-- Start Content -->
  <div class="main" role="main">
      <div id="content" class="content full">
          <div class="container">
              <div class="row">
              <?php 
if (is_active_sidebar('')) {
    ?>
                  <div class="col-md-9"><?php 
} else {
    ?>
                  <div class="col-md-12"><?php 
}
?>
开发者ID:AbleLincoln,项目名称:Avaant_Real-Spaces_wp_theme,代码行数:31,代码来源:taxonomy.php

示例7: imic_get_template_url

<?php

global $imic_options;
$listing_url = imic_get_template_url("template-listing.php");
$listing_id = imic_get_template_id('template-listing.php');
$container = $imic_options['search_position'] == 1 ? "container" : "";
$search_type = isset($imic_options['search_form_type']) ? $imic_options['search_form_type'] : 0;
$numeric_specs_type = isset($imic_options['integer_specs_type']) ? $imic_options['integer_specs_type'] : 0;
?>
<div class="search-form">
                    <div class="search-form-inner">
                        <form class="<?php 
echo esc_attr($container);
?>
 searchoneform" method="get" action="<?php 
echo esc_url($listing_url);
?>
">
                        <input type="hidden" value="<?php 
echo esc_attr($listing_id);
?>
" name="page_id">
                            <h3><?php 
echo esc_attr_e('Find a Yacht with our Quick Search', 'framework');
?>
</h3>
                            <div class="row parent-category-row">
                        	<?php 
if ($search_type == 0) {
    $search_fields = isset($imic_options['search_form']) ? $imic_options['search_form'] : array();
    $count = 1;
开发者ID:zruiz,项目名称:NG,代码行数:31,代码来源:search-one.php

示例8: widget

 function widget($args, $instance)
 {
     $cache = array();
     if (!$this->is_preview()) {
         $cache = wp_cache_get('sermon_speakers', 'widget');
     }
     if (!is_array($cache)) {
         $cache = array();
     }
     if (!isset($args['widget_id'])) {
         $args['widget_id'] = $this->id;
     }
     if (isset($cache[$args['widget_id']])) {
         echo $cache[$args['widget_id']];
         return;
     }
     ob_start();
     extract($args);
     // these are the widget options
     $post_title = apply_filters('widget_title', $instance['title']);
     $number = apply_filters('widget_number', $instance['number']);
     $numberEvent = !empty($number) ? $number : 4;
     $category = apply_filters('widget-category', empty($instance['category']) ? '' : $instance['category'], $instance, $this->id_base);
     $EventHeading = !empty($post_title) ? $post_title : __('Sermon Speakers', 'imic-framework-admin');
     echo $args['before_widget'];
     if (!empty($instance['title'])) {
         echo $args['before_title'];
         echo apply_filters('widget_title', $EventHeading, $instance, $this->id_base);
         echo $args['after_title'];
     }
     $url = imic_get_template_url('template-speakers-sermon.php');
     query_posts(array('post_type' => 'speaker', 'posts_per_page' => $numberEvent, 'speaker-category' => $category));
     if (have_posts()) {
         echo '<ul>';
         while (have_posts()) {
             the_post();
             $position = get_post_meta(get_the_ID(), 'imic_staff_position', true);
             echo '<li>';
             if ('' != get_the_post_thumbnail()) {
                 echo get_the_post_thumbnail(get_the_ID(), '100x100');
             }
             echo '<div class="people-info">
                                 	<h5 class="people-name"><a data-toggle="modal" data-target="#team-modal-' . (get_the_ID() + 2648) . '" href="#" class="">' . get_the_title() . '</a></h5>
                                 	<span class="meta-data">' . $position . '</span>
                                	</div>
                            	';
             echo '</li><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);
             echo $content;
             if (get_post_meta(get_the_ID(), 'imic_display_sermon_url', true) == 1) {
                 if ($url != '') {
                     echo '<a class="btn btn-primary" href="' . esc_url(add_query_arg('speakers', get_the_ID(), $url)) . '">' . __('View all Sermons', 'framework') . '</a>';
                 }
             }
             echo '</div>
                             </div>
                         </div>
                         </div>
                     </div>
                   </div>
                 </div>';
         }
         echo '</ul>';
         wp_reset_query();
     } else {
         _e('No Team Member Found', 'imic-framework-admin');
     }
     echo $args['after_widget'];
     if (!$this->is_preview()) {
         $cache[$args['widget_id']] = ob_get_flush();
         wp_cache_set('sermon_speakers', $cache, 'widget');
     } else {
         ob_end_flush();
     }
 }
开发者ID:sammyboy45467,项目名称:wp-theme,代码行数:93,代码来源:speaker_widget.php

示例9: _e

                                        <div class="input-group">
                                            <span class="input-group-addon"><i class="fa fa-user"></i></span>
                                            <input class="form-control input1" id="loginname" type="text" name="loginname">
                                        </div>
                                        <br>
                                        <div class="input-group">
                                            <span class="input-group-addon"><i class="fa fa-lock"></i></span>
                                            <input class="form-control input1" id="password" type="password" name="password">
                                        </div>
                                        <div class="checkbox">
                                            <input type="checkbox" checked="checked" value="true" name="rememberme" id="rememberme" class="checkbox">
                                            <?php 
    _e('Remember Me!', 'framework');
    ?>
                                                <?php 
    echo '<a href="' . imic_get_template_url('template-reset_password.php') . '" title="' . __('Forget Password', 'framework') . '">' . __('Forget Password', 'framework') . '</a>';
    ?>
                                        </div>
                                        <input class="submit_button btn btn-primary button2" type="submit" value="<?php 
    _e('Login Now', 'framework');
    ?>
" name="submit">
                                        <?php 
    wp_nonce_field('ajax-login-nonce', 'security');
    ?>
                                            <p class="status"></p>
                                </form>
                            </div>
                            <?php 
}
/* Manage Register For
开发者ID:AbleLincoln,项目名称:Avaant_Real-Spaces_wp_theme,代码行数:31,代码来源:template-register.php

示例10: imic_get_cats_list

    function imic_get_cats_list($id, $type = "list")
    {
        global $imic_options;
        $listing_page_url = imic_get_template_url('template-listing.php');
        $list = '';
        $separator = " &gt; ";
        $start = 1;
        $args = array('orderby' => 'name', 'fields' => 'all', 'hierarchical' => true, 'child_of' => 0);
        $terms = wp_get_object_terms($id, 'listing-category');
        if ($type == "list") {
            $list .= '<div class="category-rail">';
            foreach ($terms as $term) {
                $list .= '<a href="' . esc_url(add_query_arg('list-cat', $term->slug, $listing_page_url)) . '">' . $term->name . '</a>';
                if ($start < count($terms)) {
                    $list .= $separator;
                }
                $start++;
            }
            $list .= '</div>';
        }
        if ($type == "dropdown") {
            if (count($terms) > 1) {
                $list .= '<div class="btn-group pull-right category-rail">
				<button type="button" class="btn btn-default listing-sort-btn">' . __('Categories', 'framework') . '</button>
				<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
				<span class="caret"></span>
				<span class="sr-only">' . __('Toggle Dropdown', 'framework') . '</span>
				</button>
				<ul class="dropdown-menu sorter">';
                foreach ($terms as $term) {
                    $list .= '<li><a href="' . esc_url(add_query_arg('list-cat', $term->slug, $listing_page_url)) . '">' . $term->name . '</a></li>';
                }
                $list .= '</ul>
				</div>';
            } else {
                $list .= '<div class="category-rail">';
                foreach ($terms as $term) {
                    $list .= '<a href="' . esc_url(add_query_arg('list-cat', $term->slug, $listing_page_url)) . '">' . $term->name . '</a>';
                }
                $list .= '</div>';
            }
        }
        $list .= '';
        return $list;
    }
开发者ID:zruiz,项目名称:NG,代码行数:45,代码来源:imi-functions.php

示例11: 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

示例12: esc_attr

        ?>
</a>
                                                <span class="price"><?php 
        echo esc_attr($unique_value);
        ?>
</span>
                                            </div>
                                            <div id="nine" class="delete session-save-car"><a href="#"><i class="icon-delete"></i></a></div>
                                        </li><?php 
    }
    ?>
                                    </ul>
                                </div>
                                <div class="tool-box-foot">
                                    <a href="<?php 
    echo imic_get_template_url("template-compare.php");
    ?>
" class="btn btn-xs btn-info compare-viewed-box" disabled><?php 
    _e('Compare', 'framework');
    ?>
()</a>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="col-md-9 col-sm-9">
                    <div class="btn-group pull-right results-sorter">
                        <button type="button" class="btn btn-default listing-sort-btn"><?php 
    _e('Sort by', 'framework');
    ?>
开发者ID:zruiz,项目名称:NG,代码行数:31,代码来源:template-listing.php

示例13: imic_enqueue_child_scripts

 function imic_enqueue_child_scripts()
 {
     wp_register_script('imic_jquery_child_init', get_stylesheet_directory_uri() . '/js/init.js', array(), '', true);
     wp_enqueue_script('imic_jquery_child_init');
     wp_localize_script('imic_jquery_child_init', 'urlajax', array('url' => admin_url('admin-ajax.php'), 'tmpurl' => get_template_directory_uri(), 'is_property' => is_singular('property'), 'sticky' => $sticky_menu, 'is_contact' => is_page_template('template-contact.php'), 'home_url' => site_url(), 'is_payment' => is_page_template('template-payment.php'), 'register_url' => imic_get_template_url('template-register.php'), 'is_register' => is_page_template('template-register.php'), 'is_login' => is_user_logged_in(), 'is_submit_property' => is_page_template('template-submit-property.php'), 'basic' => $basic, 'advanced' => $advanced));
 }
开发者ID:AbleLincoln,项目名称:Avaant_Real-Spaces_wp_theme,代码行数:6,代码来源:functions.php

示例14: get_the_post_thumbnail

                 <div class="modal-body">
                     <div class="staff-item">
                     <div class="row">
                         <div class="col-md-5 col-sm-6">
                         	' . get_the_post_thumbnail($speaker, '600x400', array('class' => 'img-thumbnail')) . '
                         </div>
                         <div class="col-md-7 col-sm-6">
                         	<h3>' . get_the_title($speaker) . '</h3>
                         	<span class="meta-data">' . get_post_meta($speaker, 'imic_staff_position', true) . '</span>';
     $post_id = get_post($speaker);
     $content = $post_id->post_content;
     $content = apply_filters('the_content', $content);
     $content = str_replace(']]>', ']]>', $content);
     echo $content;
     if (get_post_meta($speaker, 'imic_display_sermon_url', true) == 1) {
         $url = imic_get_template_url('template-speakers-sermon.php');
         if ($url != '') {
             echo '<a class="btn btn-primary" href="' . esc_url(add_query_arg('speakers', $speaker, $url)) . '">' . __('View all Sermons', 'framework') . '</a>';
         }
     }
     echo '</div>
                     </div>
                 </div>
                 </div>
             </div>
           </div>
         </div>';
 }
 ?>
   				</ul>
         </div><?php 
开发者ID:sammyboy45467,项目名称:wp-theme,代码行数:31,代码来源:single-sermon.php

示例15: imic_get_template_url

<?php

$listing_page_url = imic_get_template_url('template-listing.php');
$output = '';
$output .= '<div class="search-form">
                    <div class="search-form-inner">
					<div class="row parent-category-row">
					<div class="container">
					<div class="listing-header">
                    	<h3>' . __('Browse our categories', 'framework') . '</h3>
                    </div><div class="categorty-browse-cols">';
$list_cats = get_terms('listing-category', array('parent' => 0, 'number' => 10, 'hide_empty' => false));
foreach ($list_cats as $cat) {
    $listing_sub_cats = array();
    $output .= '<div class="categorty-browse-col"><ul>';
    $output .= '<li><a href="' . esc_url(add_query_arg('list-cat', $cat->slug, $listing_page_url)) . '">' . $cat->name . '</a></li>';
    $listing_sub_cats = get_terms('listing-category', array('parent' => $cat->term_id));
    if (!empty($listing_sub_cats)) {
        $output .= '<ul>';
        foreach ($listing_sub_cats as $cats) {
            $listing_sub_cats_third = array();
            $output .= '<li><a href="' . esc_url(add_query_arg('list-cat', $cats->slug, $listing_page_url)) . '">' . $cats->name . '</a></li>';
            $listing_sub_cats_third = get_terms('listing-category', array('parent' => $cats->term_id));
            if (!empty($listing_sub_cats_third)) {
                $output .= '<ul>';
                foreach ($listing_sub_cats_third as $cats_t) {
                    $output .= '<li><a href="' . esc_url(add_query_arg('list-cat', $cats_t->slug, $listing_page_url)) . '">' . $cats_t->name . '</a></li>';
                }
                $output .= '</ul>';
            }
        }
开发者ID:zruiz,项目名称:NG,代码行数:31,代码来源:bar-category.php


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