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


PHP avia_title函数代码示例

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


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

示例1: get_header

<?php

global $avia_config;
/*
 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
 */
get_header();
echo avia_title(array('title' => avia_which_archive()));
do_action('ava_after_main_title');
?>

		<div class='container_wrap container_wrap_first main_color <?php 
avia_layout_class('main');
?>
'>

			<div class='container'>

				<main class='template-page template-portfolio content  <?php 
avia_layout_class('content');
?>
 units' <?php 
avia_markup_helper(array('context' => 'content', 'post_type' => 'portfolio'));
?>
>

                    <div class="entry-content-wrapper clearfix">

                        <div class="category-term-description">
                            <?php 
echo term_description();
开发者ID:gbaumgart,项目名称:enfold-wordpress-theme,代码行数:31,代码来源:taxonomy-portfolio_entries.php

示例2: avia_woocommerce_before_main_content

function avia_woocommerce_before_main_content()
{
    global $avia_config;
    if (!isset($avia_config['shop_overview_column'])) {
        $avia_config['shop_overview_column'] = "auto";
    }
    $id = get_option('woocommerce_shop_page_id');
    $layout = get_post_meta($id, 'layout', true);
    if (!empty($layout)) {
        $avia_config['layout']['current'] = $avia_config['layout'][$layout];
        $avia_config['layout']['current']['main'] = $layout;
    }
    $avia_config['layout'] = apply_filters('avia_layout_filter', $avia_config['layout'], $id);
    $title_args = array();
    if (is_woocommerce()) {
        $t_link = "";
        if (is_shop()) {
            $title = get_option('woocommerce_shop_page_title');
        }
        $shop_id = woocommerce_get_page_id('shop');
        if ($shop_id && $shop_id != -1) {
            if (empty($title)) {
                $title = get_the_title($shop_id);
            }
            $t_link = get_permalink($shop_id);
        }
        if (!$title) {
            $title = __("Shop", 'avia_framework');
        }
        if (is_product_category() || is_product_tag()) {
            global $wp_query;
            $tax = $wp_query->get_queried_object();
            $title = $tax->name;
            $t_link = '';
        }
        $title_args = array('title' => $title, 'link' => $t_link);
    }
    if (get_post_meta(get_the_ID(), 'header', true) != 'no') {
        echo avia_title($title_args);
    }
    echo "<div class='container_wrap container_wrap_first main_color " . avia_layout_class('main', false) . " template-shop shop_columns_" . $avia_config['shop_overview_column'] . "'>";
    echo "<div class='container'>";
    if (!is_singular()) {
        $avia_config['overview'] = true;
    }
}
开发者ID:Jiersone,项目名称:mac,代码行数:46,代码来源:config.php

示例3: get_header

<?php

global $avia_config;
/*
 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
 */
get_header();
if (get_post_meta(get_the_ID(), 'header', true) != 'no') {
    echo avia_title();
}
?>

		<div class='container_wrap main_color <?php 
avia_layout_class('main');
?>
'>

			<div class='container'>

				<div class='template-page template-portfolio content  <?php 
avia_layout_class('content');
?>
 units'>

				<?php 
/* Run the loop to output the posts.
 * If you want to overload this in a child theme then include a file
 * called loop-page.php and that will be used instead.
 */
$avia_config['size'] = avia_layout_class('main', false) == 'entry_without_sidebar' ? '' : 'entry_with_sidebar';
get_template_part('includes/loop', 'portfolio-single');
开发者ID:bluedrone,项目名称:plugins,代码行数:31,代码来源:single-portfolio.php

示例4: __

if (!is_singular()) {
    $title = __('Forums', "avia_framework");
}
if (function_exists('bbp_is_single_user_edit') && (bbp_is_single_user_edit() || bbp_is_single_user())) {
    $user_info = get_userdata(bbp_get_displayed_user_id());
    $title = __("Profile for User:", "avia_framework") . " " . $user_info->display_name;
    if (bbp_is_single_user_edit()) {
        $title = __("Edit profile for User:", "avia_framework") . " " . $user_info->display_name;
    }
}
$args = array();
if (!empty($title)) {
    $args['title'] = $title;
}
if (get_post_meta(get_the_ID(), 'header', true) != 'no') {
    echo avia_title($args);
}
?>
		
		<div class='container_wrap main_color <?php 
avia_layout_class('main');
?>
'>
		
			<div class='container'>

				<div class='template-page content  <?php 
avia_layout_class('content');
?>
 units'>
开发者ID:bluedrone,项目名称:plugins,代码行数:30,代码来源:forum.php

示例5: get_header

/*
 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
 */
get_header();
$title = __('Blog - Latest News', 'avia_framework');
//default blog title
$t_link = home_url('/');
$t_sub = "";
if (avia_get_option('frontpage') && ($new = avia_get_option('blogpage'))) {
    $title = get_the_title($new);
    //if the blog is attached to a page use this title
    $t_link = get_permalink($new);
    $t_sub = avia_post_meta($new, 'subtitle');
}
if (get_post_meta(get_the_ID(), 'header', true) != 'no') {
    echo avia_title(array('heading' => 'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));
}
?>

		<div class='container_wrap container_wrap_first main_color <?php 
avia_layout_class('main');
?>
'>

			<div class='container template-blog template-single-blog '>

				<main class='content units <?php 
avia_layout_class('content');
?>
 <?php 
echo avia_blog_class_string();
开发者ID:DylanPeti,项目名称:socialize,代码行数:31,代码来源:single.php

示例6: get_header

/*
 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
 */
get_header();
?>
		
		<!-- ####### MAIN CONTAINER ####### -->
		<div class='container_wrap <?php 
echo $avia_config['layout'];
?>
' id='main'>
						
			<div class='container'>
			
				<?php 
echo avia_title(false, false, __('Error 404', 'avia_framework'));
?>

				<div class='template-page content'>
				
					<div class="entry entry-content" id='search-fail'>
					<?php 
get_template_part('includes/error404');
?>
				</div>
				
				
				<!--end content-->
				</div>
				
				<?php 
开发者ID:eddiewilson,项目名称:new-ke,代码行数:31,代码来源:404.php

示例7: get_header

<?php

global $avia_config;
/*
 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
 */
get_header();
//	allows to customize the layout
do_action('ava_search_after_get_header');
$results = avia_which_archive();
echo avia_title(array('title' => $results));
do_action('ava_after_main_title');
?>

		<div class='container_wrap container_wrap_first main_color <?php 
avia_layout_class('main');
?>
'>

			<div class='container'>

				<main class='content template-search <?php 
avia_layout_class('content');
?>
 units' <?php 
avia_markup_helper(array('context' => 'content'));
?>
>

                    <div class='page-heading-container clearfix'>
                        <section class="search_form_field">
开发者ID:erikdukker,项目名称:medisom,代码行数:31,代码来源:search.php

示例8: avia_woocommerce_before_main_content

function avia_woocommerce_before_main_content()
{
    global $avia_config;
    if (!isset($avia_config['shop_overview_column'])) {
        $avia_config['shop_overview_column'] = "auto";
    }
    if ($new = avia_post_meta(get_option('woocommerce_shop_page_id'), 'layout')) {
        //split up result
        $results = explode(' : ', $new);
        foreach ($results as $result) {
            $result = explode('|', $result);
            $avia_config[$result[0]] = $result[1];
        }
        $avia_config['layout'] = apply_filters('avia_layout_filter', $avia_config['layout']);
    }
    $title_args = array();
    if (is_woocommerce()) {
        $t_link = "";
        if (is_shop()) {
            $title = get_option('woocommerce_shop_page_title');
        }
        $shop_id = woocommerce_get_page_id('shop');
        if ($shop_id && $shop_id != -1) {
            if (empty($title)) {
                $title = get_the_title($shop_id);
            }
            $t_link = get_permalink($shop_id);
        }
        if (!$title) {
            $title = __("Shop", 'avia_framework');
        }
        if (is_product_category() || is_product_tag()) {
            global $wp_query;
            $tax = $wp_query->get_queried_object();
            $title = $tax->name;
            $t_link = '';
        }
        $title_args = array('title' => $title, 'link' => $t_link);
    }
    if (get_post_meta(get_the_ID(), 'header', true) != 'no') {
        echo avia_title($title_args);
    }
    echo "<div class='container_wrap main_color " . avia_layout_class('main', false) . " template-shop shop_columns_" . $avia_config['shop_overview_column'] . "'>";
    echo "<div class='container'>";
    if (!is_singular()) {
        $avia_config['overview'] = true;
    }
}
开发者ID:bluedrone,项目名称:plugins,代码行数:48,代码来源:config.php

示例9: get_header

/*
 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
 */
get_header();
?>

		<!-- ####### MAIN CONTAINER ####### -->
		<div class='container_wrap <?php 
echo $avia_config['layout'];
?>
' id='main'>
		
			<div class='container'>
				
				<?php 
avia_title();
?>
				<div class='template-blog template-single-blog content'>
				
				<?php 
/* Run the loop to output the posts.
 * If you want to overload this in a child theme then include a file
 * called loop-index.php and that will be used instead.
 *
 */
get_template_part('includes/loop', 'index');
//show related posts based on tags if there are any
get_template_part('includes/related-posts');
//wordpress function that loads the comments template "comments.php"
comments_template('/includes/comments.php');
?>
开发者ID:eddiewilson,项目名称:new-ke,代码行数:31,代码来源:single.php

示例10: get_header

<?php

global $avia_config, $more;
/*
 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
 */
get_header();
$description = is_tag() ? tag_description() : category_description();
echo avia_title(array('title' => avia_which_archive(), 'subtitle' => $description, 'link' => false));
$author_id = get_query_var('author');
$name = apply_filters('avf_author_name', get_the_author_meta('display_name', $author_id), $author_id);
$heading_s = __("Entries by", 'avia_framework') . " " . $name;
do_action('ava_after_main_title');
?>

		<div id="page_slider_title_content" class="av-layout-grid-container entry-content-wrapper main_color av-flex-cells  avia-builder-el-0  el_before_av_codeblock  avia-builder-el-first  container_wrap sidebar_left">
			<div class="flex_cell no_margin av_one_fourth  avia-builder-el-1  el_before_av_cell_three_fourth  avia-builder-el-first   av-zero-padding " style="vertical-align:top; padding:0px; ">
				<div class="flex_cell_inner">
					<div id="page-slider-title">
						<?php 
echo do_shortcode('[pageslidertitle]');
?>
					</div> 
				</div>
			</div>
			<div class="flex_cell no_margin av_three_fourth  avia-builder-el-3  el_after_av_cell_one_fourth  avia-builder-el-last   av-zero-padding " style="vertical-align:top; padding:0px; ">
				<div class="flex_cell_inner">
					<section class="avia_codeblock_section avia_code_block_1" itemscope="itemscope" itemtype="https://schema.org/CreativeWork">
						<div class="avia_codeblock " itemprop="text">
							<?php 
echo do_shortcode('[rev_slider alias="page_slider"]');
开发者ID:fredpaw,项目名称:chuguo,代码行数:31,代码来源:author.php

示例11: enfold_detail_title

/**
 * page title & breadcrumb functions.
 *
 * @since 1.0.0
 * @package GeoDirectory
 * @global object $wp WordPress object.
 * @param string $page The page type.
 * @param string $class The class of the HTML element.
 */
function enfold_detail_title($page, $class)
{
    //echo '###'.$page;
    global $wp;
    if (isset($wp->query_vars['page_id']) && $wp->query_vars['page_id'] == geodir_location_page_id() && !isset($_GET['geodir_signup'])) {
        add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2);
        echo avia_title();
    } elseif ($page == 'details-page') {
        add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2);
        echo avia_title();
    } elseif ($page == 'listings-page' || $page == 'search-page') {
        add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2);
        ob_start();
        // Start buffering;
        geodir_action_listings_title();
        $gd_title = ob_get_clean();
        $title_p = explode('">', $gd_title);
        $title = str_replace('</h1></header>', "", $title_p[2]);
        //print_r($title_p);
        echo avia_title(array('title' => $title));
    } elseif ($page == 'author-page') {
        add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2);
        ob_start();
        // Start buffering;
        geodir_action_author_page_title();
        $gd_title = ob_get_clean();
        $gd_title = str_replace('<h1>', "", $gd_title);
        $gd_title = str_replace('</h1>', "", $gd_title);
        echo avia_title(array('title' => $gd_title));
    } elseif ($page == 'add-listing-page') {
        add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2);
        echo avia_title();
    } elseif ($page == 'add-listing-page') {
        add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2);
        echo avia_title();
    }
}
开发者ID:jefferose,项目名称:geodirectory,代码行数:46,代码来源:Enfold.php

示例12: get_header

<?php

global $avia_config;
/*
 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
 */
get_header();
echo avia_title(array('title' => __('Error 404 - page not found', 'avia_framework')));
?>
		
		
		<div class='container_wrap main_color <?php 
avia_layout_class('main');
?>
'>
						
			<div class='container'>
			
				<div class='template-page content <?php 
avia_layout_class('content');
?>
 units'>
				
					<div class="entry entry-content clearfix" id='search-fail'>
					<?php 
get_template_part('includes/error404');
?>
				</div>
				
				
				<!--end content-->
开发者ID:bluedrone,项目名称:plugins,代码行数:31,代码来源:404.php

示例13: get_header

/*
 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
 */
get_header();
$title = __('Blog - Latest News', 'avia_framework');
//default blog title
$t_link = home_url('/');
$t_sub = "";
if (avia_get_option('frontpage') && ($new = avia_get_option('blogpage'))) {
    $title = get_the_title($new);
    //if the blog is attached to a page use this title
    $t_link = get_permalink($new);
    $t_sub = avia_post_meta($new, 'subtitle');
}
if (get_post_meta(get_the_ID(), 'header', true) != 'no') {
    echo avia_title(array('title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));
}
?>

		<div class='container_wrap main_color <?php 
avia_layout_class('main');
?>
'>

			<div class='container template-blog template-single-blog '>

				<div class='content units <?php 
avia_layout_class('content');
?>
'>
开发者ID:bluedrone,项目名称:plugins,代码行数:30,代码来源:single.php

示例14: get_header

 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
 */
get_header();
?>


		<!-- ####### MAIN CONTAINER ####### -->
		<div class='container_wrap <?php 
echo $avia_config['layout'];
?>
' id='main'>
		
			<div class='container'>	
				
				<?php 
echo avia_title(false, false, avia_which_archive());
?>
				
				<div class='template-blog content'>
				<?php 
/* Run the loop to output the posts.
 * If you want to overload this in a child theme then include a file
 * called loop-index.php and that will be used instead.
 */
$more = 0;
get_template_part('includes/loop', 'index');
?>
				
				
				<!--end content-->
				</div>
开发者ID:eddiewilson,项目名称:new-ke,代码行数:31,代码来源:archive.php


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