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


PHP _eti函数代码示例

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


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

示例1: widget

    function widget($args, $instance)
    {
        global $is_IE;
        ?>
		<div class="search-block-large widget">
			<form method="get" action="<?php 
        echo home_url();
        ?>
/">
				<button class="search-button" type="submit" value="<?php 
        if (!$is_IE) {
            _eti('Search', 'tie');
        }
        ?>
"><i class="fa fa-search"></i></button>	
				<input type="text" id="s" name="s" value="<?php 
        _eti('Search');
        ?>
" onfocus="if (this.value == '<?php 
        _eti('Search');
        ?>
') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php 
        _eti('Search');
        ?>
';}"  />
			</form>
		</div><!-- .search-block /-->		
<?php 
    }
开发者ID:dracudakid,项目名称:WP_TrungTamTinHoc,代码行数:29,代码来源:widget-search.php

示例2: widget

    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        if (function_exists('icl_t')) {
            $text_code = icl_t(THEME_NAME, 'widget_content_' . $this->id, $instance['text_code']);
        } else {
            $text_code = $instance['text_code'];
        }
        $feedburner = $instance['feedburner'];
        echo $before_widget;
        echo $before_title;
        echo $title;
        echo $after_title;
        echo '<div class="widget-feedburner-counter">
		<p>' . do_shortcode($text_code) . '</p>';
        ?>
		<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=<?php 
        echo $feedburner;
        ?>
', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
			<input class="feedburner-email" type="text" name="email" value="<?php 
        _eti('Enter your e-mail address');
        ?>
" onfocus="if (this.value == '<?php 
        _eti('Enter your e-mail address');
        ?>
') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php 
        _eti('Enter your e-mail address');
        ?>
';}">
			<input type="hidden" value="<?php 
        echo $feedburner;
        ?>
" name="uri">
			<input type="hidden" name="loc" value="en_US">			
			<input class="feedburner-subscribe" type="submit" name="submit" value="<?php 
        _eti('Subscribe');
        ?>
"> 
		</form>
		</div>
		<?php 
        echo $after_widget;
    }
开发者ID:NguyenHiep,项目名称:learn-wp,代码行数:45,代码来源:widget-feedburner.php

示例3: wp_get_post_tags

		$tags = wp_get_post_tags($post->ID);
		$tags_ids = array();
		foreach($tags as $individual_tag) $tags_ids[] = $individual_tag->term_id;
		$args=array('post__not_in' => array($post->ID),'posts_per_page'=> $related_no , 'tag__in'=> $tags_ids, 'no_found_rows' => 1  );
	}
	else{
		$categories = get_the_category($post->ID);
		$category_ids = array();
		foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
		$args=array('post__not_in' => array($post->ID),'posts_per_page'=> $related_no , 'category__in'=> $category_ids, 'no_found_rows' => 1 );
	}		
	$related_query = new wp_query( $args );
	if( $related_query->have_posts() ) : $count=0;?>
	<section id="related_posts">
		<div class="block-head">
			<h3><?php _eti( 'Related Articles' , 'tie' ); ?></h3><div class="stripe-line"></div>
		</div>
		<div class="post-listing">
			<?php while ( $related_query->have_posts() ) : $related_query->the_post(); $do_not_duplicate[] = get_the_ID(); ?>
			<div <?php tie_post_class('related-item'); ?>>
				<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?>			
				<div class="post-thumbnail">
					<a href="<?php the_permalink(); ?>">
						<?php the_post_thumbnail( 'tie-medium' ); ?>
						<span class="fa overlay-icon"></span>
					</a>
				</div><!-- post-thumbnail /-->
				<?php endif; ?>			
				<h3><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
				<p class="post-meta"><?php tie_get_time() ?></p>
			</div>
开发者ID:rebeccayshen,项目名称:kitlist,代码行数:31,代码来源:related-posts.php

示例4: _eti

    }
    if (!$effect) {
        $effect = 'fade';
    }
    if (!$speed || $speed == ' ' || !is_numeric($speed)) {
        $speed = 750;
    }
    if (!$timeout || $timeout == ' ' || !is_numeric($timeout)) {
        $timeout = 3500;
    }
    ?>
	
	<div class="clear"></div>
	<div id="breaking-news" class="breaking-news">
		<span class="breaking-news-title"><i class="fa fa-bolt"></i> <span><?php 
    _eti('Breaking News', 'tie');
    ?>
</span></span>
		
		<?php 
    if ($query != 'custom') {
        if ($query == 'tag') {
            $tags = explode(',', $tag);
            foreach ($tags as $tag) {
                $theTagId = get_term_by('name', $tag, 'post_tag');
                if ($fea_tags) {
                    $sep = ' , ';
                }
                $fea_tags .= $sep . $theTagId->slug;
            }
            $args = array('tag' => $fea_tags, 'posts_per_page' => $number, 'no_found_rows' => 1);
开发者ID:hongtien510,项目名称:gia_su,代码行数:31,代码来源:breaking-news.php

示例5: htmlspecialchars_decode

echo htmlspecialchars_decode($footer_one);
?>
			</div>
		</div>
		<div class="clear"></div>
	</div><!-- .Container -->
</div><!-- .Footer bottom -->

</div><!-- .inner-Wrapper -->
</div><!-- #Wrapper -->
</div><!-- .Wrapper-outer -->
<?php 
if (tie_get_option('footer_top')) {
    ?>
	<div id="topcontrol" class="fa fa-angle-up" title="<?php 
    _eti('Scroll To Top');
    ?>
"></div>
<?php 
}
?>
<div id="fb-root"></div>
<?php 
wp_footer();
?>

<script lang="javascript">
(function() {var _h1= document.getElementsByTagName('title')[0] || false;
var product_name = ''; if(_h1){product_name= _h1.textContent || _h1.innerText;}var ga = document.createElement('script'); ga.type = 'text/javascript';
ga.src = '//live.vnpgroup.net/js/web_client_box.php?hash=68e5dbd05248df2548bc8b6b1fffc03e&data=eyJzc29faWQiOjQ0MDY2MiwiaGFzaCI6IjUzZjhlM2UzZTBmZTBhYmQ3YjRhZGI1NDhjMmJmZjBiIn0-&pname='+product_name;
var s = document.getElementsByTagName('script');s[0].parentNode.insertBefore(ga, s[0]);})();
开发者ID:hongtien510,项目名称:gia_su,代码行数:31,代码来源:footer.php

示例6: _eti

	<div class="entry">
		<p><?php 
_eti('Apologies, but the page you requested could not be found. Perhaps searching will help.');
?>
</p>

		<div class="search-block-large">
			<form method="get" action="<?php 
echo home_url();
?>
/">
				<button class="search-button" type="submit" value="<?php 
if (!$is_IE) {
    _eti('Search', 'tie');
}
?>
"><i class="fa fa-search"></i></button>	
				<input type="text" id="s" name="s" value="<?php 
_eti('Search');
?>
" onfocus="if (this.value == '<?php 
_eti('Search');
?>
') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php 
_eti('Search');
?>
';}"  />
			</form>
		</div><!-- .search-block /-->
	</div>
</div>
开发者ID:dracudakid,项目名称:WP_TrungTamTinHoc,代码行数:31,代码来源:not-found.php

示例7: array

						</form>
					</div><!-- .search-block /-->	
				</div><!-- .entry /-->	
	
				<?php 
$original_post = $post;
$args = array('posts_per_page' => 4, 'no_found_rows' => 1);
$related_query = new wp_query($args);
if ($related_query->have_posts()) {
    $count = 0;
    ?>
	
				<section id="related_posts">
					<div class="block-head">
						<h3><?php 
    _eti('Check Also');
    ?>
</h3><div class="stripe-line"></div>
					</div>
					<div class="post-listing">
						<?php 
    while ($related_query->have_posts()) {
        $related_query->the_post();
        ?>
						<div <?php 
        tie_post_class('related-item');
        ?>
>
							<?php 
        if (function_exists("has_post_thumbnail") && has_post_thumbnail()) {
            ?>
开发者ID:dracudakid,项目名称:WP_TrungTamTinHoc,代码行数:31,代码来源:404.php

示例8: tie_custom_pings

function tie_custom_pings($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li class="comment pingback">
		<p><?php 
    _eti('Pingback:');
    ?>
 <?php 
    comment_author_link();
    edit_comment_link(__ti('Edit'), ' ');
    ?>
</p>
<?php 
}
开发者ID:khanhhoang288,项目名称:anc_shf,代码行数:15,代码来源:theme-functions.php

示例9: the_title

    }
    ?>
            <?php 
    if (tie_get_option('share_pinterest')) {
        ?>
                <li><a href="http://pinterest.com/pin/create/button/?url=<?php 
        echo $post_link;
        ?>
&amp;description=<?php 
        the_title();
        ?>
&amp;media=<?php 
        echo tie_thumb_src('slider');
        ?>
" class="social-pinterest" rel="external" target="_blank"><i class="fa fa-pinterest"></i> <span><?php 
        _eti('Pinterest');
        ?>
</span></a></li>
            <?php 
    }
    ?>
        </ul>
        <?php 
} else {
    ?>
        <script>
            window.___gcfg = {lang: 'en-US'};
            (function (w, d, s) {
                function go() {
                    var js, fjs = d.getElementsByTagName(s)[0], load = function (url, id) {
                        if (d.getElementById(id)) {
开发者ID:sondang86,项目名称:mySite,代码行数:31,代码来源:share.php

示例10: get_the_category

    } else {
        $categories = get_the_category($post->ID);
        $category_ids = array();
        foreach ($categories as $individual_category) {
            $category_ids[] = $individual_category->term_id;
        }
        $args = array('post__not_in' => array($post->ID), 'posts_per_page' => $related_no, 'category__in' => $category_ids, 'no_found_rows' => 1);
    }
    $related_query = new wp_query($args);
    if ($related_query->have_posts()) {
        $count = 0;
        ?>
	<section id="related_posts">
		<div class="block-head">
			<h3><?php 
        _eti('Related Articles', 'tie');
        ?>
</h3><div class="stripe-line"></div>
		</div>
		<div class="post-listing">
			<?php 
        while ($related_query->have_posts()) {
            $related_query->the_post();
            $do_not_duplicate[] = get_the_ID();
            ?>
			<div <?php 
            tie_post_class('related-item');
            ?>
>
				<?php 
            if (function_exists("has_post_thumbnail") && has_post_thumbnail()) {
开发者ID:dracudakid,项目名称:WP_TrungTamTinHoc,代码行数:31,代码来源:related-posts.php

示例11: tie_breadcrumbs

function tie_breadcrumbs()
{
    if (tie_get_option('breadcrumbs')) {
        $delimiter = '<span class="delimiter">';
        $delimiter .= tie_get_option('breadcrumbs_delimiter') ? tie_get_option('breadcrumbs_delimiter') : '&raquo;';
        $delimiter .= '</span>';
        $before = '<span class="current">';
        $after = '</span>';
        if (!is_home() && !is_front_page() || is_paged()) {
            echo '<div xmlns:v="http://rdf.data-vocabulary.org/#"  id="crumbs">';
            global $post;
            $homeLink = home_url();
            echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" class="crumbs-home" href="' . $homeLink . '">' . __ti('Home') . '</a></span> ' . $delimiter . ' ';
            if (is_category()) {
                global $wp_query;
                $cat_obj = $wp_query->get_queried_object();
                $thisCat = $cat_obj->term_id;
                $thisCat = get_category($thisCat);
                $parentCat = get_category($thisCat->parent);
                if ($thisCat->parent != 0) {
                    if (!is_wp_error($cat_code = get_category_parents($parentCat, TRUE, ' ' . $delimiter . ' '))) {
                        $cat_code = str_replace('<a', '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title"', $cat_code);
                        echo $cat_code = str_replace('</a>', '</a></span>', $cat_code);
                    }
                }
                echo $before . '' . single_cat_title('', false) . '' . $after;
            } elseif (is_day()) {
                echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a></span> ' . $delimiter . ' ';
                echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_month_link(get_the_time('Y'), get_the_time('m')) . '">' . get_the_time('F') . '</a></span> ' . $delimiter . ' ';
                echo $before . get_the_time('d') . $after;
            } elseif (is_month()) {
                echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a></span> ' . $delimiter . ' ';
                echo $before . get_the_time('F') . $after;
            } elseif (is_year()) {
                echo $before . get_the_time('Y') . $after;
            } elseif (is_single() && !is_attachment()) {
                if (get_post_type() != 'post') {
                    $post_type = get_post_type_object(get_post_type());
                    $slug = $post_type->rewrite;
                    echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a></span> ' . $delimiter . ' ';
                    echo $before . get_the_title() . $after;
                } else {
                    $cat = get_the_category();
                    $cat = $cat[0];
                    if (!empty($cat)) {
                        if (!is_wp_error($cat_code = get_category_parents($cat, TRUE, ' ' . $delimiter . ' '))) {
                            $cat_code = str_replace('<a', '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title"', $cat_code);
                            echo $cat_code = str_replace('</a>', '</a></span>', $cat_code);
                        }
                    }
                    echo $before . get_the_title() . $after;
                }
            } elseif (is_page() && !$post->post_parent || function_exists('bp_current_component') && bp_current_component()) {
                echo $before . get_the_title() . $after;
            } elseif (is_search()) {
                echo $before;
                printf(__ti('Search Results for: %s'), get_search_query());
                echo $after;
            } elseif (!is_single() && !is_page() && get_post_type() != 'post') {
                $post_type = get_post_type_object(get_post_type());
                echo $before . $post_type->labels->singular_name . $after;
            } elseif (is_attachment()) {
                $parent = get_post($post->post_parent);
                $cat = get_the_category($parent->ID);
                $cat = $cat[0];
                echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_permalink($parent) . '">' . $parent->post_title . '</a></span> ' . $delimiter . ' ';
                echo $before . get_the_title() . $after;
            } elseif (is_page() && $post->post_parent) {
                $parent_id = $post->post_parent;
                $breadcrumbs = array();
                while ($parent_id) {
                    $page = get_page($parent_id);
                    $breadcrumbs[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a></span>';
                    $parent_id = $page->post_parent;
                }
                $breadcrumbs = array_reverse($breadcrumbs);
                foreach ($breadcrumbs as $crumb) {
                    echo $crumb . ' ' . $delimiter . ' ';
                }
                echo $before . get_the_title() . $after;
            } elseif (is_tag()) {
                echo $before;
                printf(__ti('Tag Archives: %s'), single_tag_title('', false));
                echo $after;
            } elseif (is_author()) {
                global $author;
                $userdata = get_userdata($author);
                echo $before;
                echo $userdata->display_name;
                echo $after;
            } elseif (is_404()) {
                echo $before;
                _eti('Not Found');
                echo $after;
            }
            if (get_query_var('paged')) {
                if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) {
                    echo ' (';
                }
                echo __ti('page') . ' ' . get_query_var('paged');
//.........这里部分代码省略.........
开发者ID:dracudakid,项目名称:WP_TrungTamTinHoc,代码行数:101,代码来源:breadcrumbs.php

示例12: get_tags

        $tags = get_tags();
        if ($tags) {
            foreach ($tags as $tag) {
                echo '<li><a href="' . get_tag_link($tag->term_id) . '">' . $tag->name . '</a></li> ';
            }
        }
        ?>
							</ul>
						</div> <!-- end .sitemap-col -->
														
						<div class="sitemap-col<?php 
        echo ' last';
        ?>
">
							<h2><?php 
        _eti('Authors');
        ?>
</h2>
							<ul id="sitemap-authors" ><?php 
        wp_list_authors('optioncount=1&exclude_admin=0');
        ?>
</ul>
						</div> <!-- end .sitemap-col -->
					
					</div> <!-- end #sitemap -->
						
					<?php 
        edit_post_link(__ti('Edit'), '<span class="edit-link">', '</span>');
        ?>
				</div><!-- .entry /-->	
			
开发者ID:dracudakid,项目名称:WP_TrungTamTinHoc,代码行数:30,代码来源:template-sitemap.php

示例13: tie_get_option

    $loop_layout = tie_get_option('search_layout');
    ?>

			<?php 
    get_template_part('loop');
    ?>
			
			<?php 
    if ($wp_query->max_num_pages > 1) {
        tie_pagenavi();
    }
    ?>
			
		<?php 
} else {
    ?>
			<div id="post-0" class="post not-found post-listing">
				<div class="entry">
					<p><?php 
    _eti('Sorry, but nothing matched your search criteria. Please try again with some different keywords.');
    ?>
</p>
				</div>
			</div>
		<?php 
}
?>
	</div>
	<?php 
get_sidebar();
get_footer();
开发者ID:dracudakid,项目名称:WP_TrungTamTinHoc,代码行数:31,代码来源:search.php

示例14: _eti

<div id="post-0" class="post not-found post-listing">
	<h1 class="post-title"><?php _eti( 'Not Found' ); ?></h1>
	<div class="entry">
		<p><?php _eti( 'Apologies, but the page you requested could not be found. Perhaps searching will help.' ); ?></p>

		<div class="search-block-large">
			<form method="get" action="<?php echo home_url(); ?>/">
				<button class="search-button" type="submit" value="<?php if( !$is_IE ) _eti( 'Search' , 'tie' ) ?>"><i class="fa fa-search"></i></button>	
				<input type="text" id="s" name="s" value="<?php _eti( 'Search' ) ?>" onfocus="if (this.value == '<?php _eti( 'Search' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _eti( 'Search' ) ?>';}"  />
			</form>
		</div><!-- .search-block /-->
	</div>
</div>
开发者ID:rebeccayshen,项目名称:kitlist,代码行数:13,代码来源:not-found.php

示例15: if

				<div class="container">
				
				<?php if( tie_get_option( 'nav_logo' ) ): ?>
					<a class="main-nav-logo" title="<?php bloginfo('name'); ?>" href="<?php echo home_url(); ?>/">
						<img src="<?php echo tie_get_option( 'nav_logo' ) ?>" width="195" height="54" alt="<?php bloginfo('name'); ?>">
					</a>
				<?php endif ?>

					<?php wp_nav_menu( array( 'container_class' => 'main-menu', 'theme_location' => 'primary', 'walker' => new tie_mega_menu_walker(), 'fallback_cb'=> false) ); ?>
					<?php if(tie_get_option( 'random_article' )): ?>
					<a href="<?php echo home_url(); ?>/?tierand=1" class="random-article ttip" title="<?php _eti( 'Random Article' ) ?>"><i class="fa fa-random"></i></a>
					<?php endif ?>

					<?php if( tie_get_option( 'shopping_cart' ) && function_exists( 'is_woocommerce' ) ):
						global $woocommerce; ?>
						<a class="tie-cart ttip" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _eti( 'View your shopping cart' ); ?>"><span class="shooping-count-outer"><?php if( isset( $woocommerce->cart->cart_contents_count ) && ( $woocommerce->cart->cart_contents_count != 0 ) ){ ?><span class="shooping-count"><?php echo $woocommerce->cart->cart_contents_count ?></span><?php } ?><i class="fa fa-shopping-cart"></i></span></a>
					<?php endif ?>

				</div>
			</nav><!-- .main-nav /-->
			<?php endif; ?>
		</header><!-- #header /-->
	
	<?php get_template_part( 'framework/parts/breaking-news' ); // Get Breaking News template ?>	
	
	<?php tie_banner('banner_below_header' , '<div class="e3lan e3lan-below_header">' , '</div>' ); ?>

<?php 
$sidebar = '';
if( tie_get_option( 'sidebar_pos' ) == 'left' ) $sidebar = ' sidebar-left';
if( is_singular() || ( function_exists( 'is_woocommerce' ) && is_woocommerce() ) ){
开发者ID:rebeccayshen,项目名称:kitlist,代码行数:31,代码来源:header.php


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