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


PHP omega_attr函数代码示例

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


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

示例1: omega_attr

<?php

/**
 * Secondary Menu Template
 */
?>
	
<nav class="nav-secondary" <?php 
omega_attr('menu');
?>
>
	
	<?php 
do_action('omega_before_secondary_menu');
?>

	<?php 
wp_nav_menu(array('theme_location' => 'secondary', 'container' => '', 'menu_class' => 'menu omega-nav-menu menu-secondary'));
?>

	<?php 
do_action('omega_after_secondary_menu');
?>

	
</nav><!-- .nav-secondary -->
开发者ID:traviswright,项目名称:matterandspirit,代码行数:26,代码来源:menu-secondary.php

示例2: get_header

<?php

/**
 * The template for displaying Archive pages.
 *
 * @package Omega
 */
get_header();
?>

	<main  class="<?php 
echo apply_atomic('main_class', 'content');
?>
" <?php 
omega_attr('content');
?>
>

		<?php 
do_atomic('before_content');
// omega_before_content
?>

		<?php 
if (have_posts()) {
    ?>

			<header class="page-header">
				<h1 class="archive-title">
					<?php 
    if (is_category()) {
开发者ID:ninthlink,项目名称:edtech,代码行数:31,代码来源:archive.php

示例3: omega_apply_atomic

<?php

/**
 * The Sidebar containing the main widget areas.
 *
 * @package Omega
 */
if (is_active_sidebar('primary')) {
    ?>
	

	<aside class="<?php 
    echo omega_apply_atomic('sidebar_class', 'sidebar sidebar-primary widget-area');
    ?>
" <?php 
    omega_attr('sidebar');
    ?>
>
		
		<?php 
    do_action('before_primary');
    ?>

		<?php 
    dynamic_sidebar('primary');
    ?>

		<?php 
    do_action('after_primary');
    ?>
开发者ID:ninthlink,项目名称:edtech,代码行数:30,代码来源:sidebar.php

示例4: omega_attr

<article <?php 
omega_attr('post');
?>
><div class="entry-wrap">
	<?php 
do_action('omega_before_entry');
do_action('omega_entry');
do_action('omega_after_entry');
?>
</div></article>
开发者ID:davidgilman,项目名称:Live2Give,代码行数:10,代码来源:content.php

示例5: omega_entry

/**
 * Display the default entry metadata.
 */
function omega_entry()
{
    if (is_home() || is_archive() || is_search()) {
        ?>
	
		<div <?php 
        omega_attr('entry-summary');
        ?>
>
	<?php 
        if (get_theme_mod('post_thumbnail', 1) && has_post_thumbnail()) {
            if (!class_exists('Get_The_Image')) {
                apply_filters('omega_featured_image', printf('<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute('echo=0'), get_the_post_thumbnail(get_the_ID(), get_theme_mod('image_size'), array('class' => get_theme_mod('image_size')))));
            } else {
                get_the_image(array('size' => get_theme_mod('image_size')));
            }
        }
        if ('excerpts' === get_theme_mod('post_excerpt', 'excerpts')) {
            if (get_theme_mod('excerpt_chars_limit', 0)) {
                the_content_limit((int) get_theme_mod('excerpt_chars_limit'), get_theme_mod('more_text', '[Read more...]'));
            } else {
                the_excerpt();
            }
        } else {
            the_content(get_theme_mod('more_text'));
        }
        ?>
	
		</div>
	<?php 
    } else {
        ?>
	
		<div <?php 
        omega_attr('entry-content');
        ?>
>
	<?php 
        the_content();
        wp_link_pages(array('before' => '<p class="page-links">' . '<span class="before">' . __('Pages:', 'omega') . '</span>', 'after' => '</p>'));
        ?>
	
		</div>
	<?php 
    }
}
开发者ID:davidgilman,项目名称:Live2Give,代码行数:49,代码来源:hooks.php

示例6: wp_title

?>
">
<title><?php 
wp_title('|', true, 'right');
?>
</title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php 
wp_head();
?>
</head>
<body <?php 
body_class();
?>
 <?php 
omega_attr('body');
?>
>
<?php 
do_action('omega_before');
?>
<div class="<?php 
echo omega_apply_atomic('site_container_class', 'site-container');
?>
">
	<?php 
do_action('omega_before_header');
do_action('omega_header');
do_action('omega_after_header');
?>
	<div class="site-inner">
开发者ID:narabikke,项目名称:wordpress,代码行数:31,代码来源:header.php

示例7: omega_attr

<div class="entry-meta">
	<time <?php 
omega_attr('entry-published');
?>
><?php 
echo get_the_date();
?>
</time>
	<span <?php 
omega_attr('entry-author');
?>
><?php 
echo __('by ', 'omega');
the_author_posts_link();
?>
</span>	
	<?php 
echo omega_post_comments();
?>
	<?php 
edit_post_link(__('Edit', 'omega'), ' | ');
?>
</div><!-- .entry-meta -->
开发者ID:davnopora,项目名称:first,代码行数:23,代码来源:entry-byline.php

示例8: composer_banner

function composer_banner()
{
    ?>
	<div class="banner" style="background-image:url(<?php 
    if (is_front_page()) {
        echo "http://zolotastruna.esy.es/wp-content/uploads/2015/10/Back_min.png";
    } else {
        composer_get_header_image();
    }
    ?>
)">

		<div class="filter">
			<div class="wrap">
				<?php 
    $id = get_option('page_for_posts');
    // get title
    if (is_front_page() || is_home() && $id == '0') {
        $the_title = "<h1 class='banner-title site-description'>" . get_bloginfo('description') . "</h1>";
    } elseif (is_day() || is_month() || is_year() || is_tag() || is_category() || is_home()) {
        $id = get_option('page_for_posts');
        if ('posts' == get_option('show_on_front')) {
            $the_title = get_bloginfo('description');
        } else {
            $the_title = get_the_title($id);
        }
        $the_title = "<h2 class='banner-title'>{$the_title}</h2>";
    } else {
        $the_title = "<h1 class='banner-title'>" . get_the_title() . "</h1>";
    }
    echo $the_title;
    if (is_singular('post')) {
        global $post;
        ?>
					<div class="entry-meta">
						<time <?php 
        omega_attr('entry-published');
        ?>
><?php 
        echo get_the_date();
        ?>
</time>
						<span <?php 
        omega_attr('entry-author');
        ?>
><?php 
        echo __('by ', 'composer');
        the_author_posts_link();
        ?>
 <a href="<?php 
        echo get_author_posts_url($post->post_author);
        ?>
"><?php 
        echo get_the_author_meta('nickname', $post->post_author);
        ?>
</a></span>	
						<?php 
        echo omega_post_comments();
        ?>
						<?php 
        edit_post_link(__('Edit', 'composer'), ' | ');
        ?>
					</div><!-- .entry-meta -->
					<?php 
    } elseif (is_archive() || is_search()) {
        composer_archive_title();
    }
    ?>
			</div><!-- .wrap -->
		</div>
  	</div><!-- .banner -->
  	<?php 
}
开发者ID:davnopora,项目名称:first,代码行数:73,代码来源:functions.php

示例9: hybrid_comment_class

/**
 * @since      0.2.0
 * @deprecated 0.9.0
 */
function hybrid_comment_class($class = '')
{
    _deprecated_function(__FUNCTION__, '0.9.0', "omega_attr( 'comment' )");
    omega_attr('comment');
}
开发者ID:traviswright,项目名称:matterandspirit,代码行数:9,代码来源:deprecated.php

示例10: omega_attr

?>
>
		<p <?php 
omega_attr('comment-author');
?>
>
			<?php 
echo get_avatar($comment, 48);
?>
			<?php 
printf(__('<cite class="fn">%s</cite>', 'omega'), get_comment_author_link());
?>
		</p>
		<p class="comment-meta"> 
			<time <?php 
omega_attr('comment-published');
?>
><a href="<?php 
echo esc_url(get_comment_link($comment->comment_ID));
?>
"><?php 
printf(__('%1$s at %2$s', 'omega'), get_comment_date(), get_comment_time());
?>
</a></time>
				<?php 
edit_comment_link(__('(Edit)', 'omega'), '');
?>
		</p>
		<div class="comment-content">
			<?php 
comment_text();
开发者ID:traviswright,项目名称:matterandspirit,代码行数:31,代码来源:comment.php

示例11: omega_entry

/**
 * Display the default entry metadata.
 */
function omega_entry()
{
    if (is_home() || is_archive() || is_search()) {
        ?>
	
		<div <?php 
        omega_attr('entry-summary');
        ?>
>
	<?php 
        if (get_theme_mod('post_thumbnail')) {
            get_the_image(array('attachment' => false, 'meta_key' => 'Thumbnail', 'default_size' => get_theme_mod('image_size')));
        }
        if ('excerpts' === get_theme_mod('post_excerpt')) {
            if (get_theme_mod('excerpt_chars_limit')) {
                the_content_limit((int) get_theme_mod('excerpt_chars_limit'), get_theme_mod('more_text'));
            } else {
                the_excerpt();
            }
        } else {
            the_content(get_theme_mod('more_text'));
        }
        ?>
	
		</div>
	<?php 
    } else {
        ?>
	
		<div <?php 
        omega_attr('entry-content');
        ?>
>
	<?php 
        the_content();
        wp_link_pages(array('before' => '<p class="page-links">' . '<span class="before">' . __('Pages:', 'omega') . '</span>', 'after' => '</p>'));
        ?>
	
		</div>
	<?php 
    }
}
开发者ID:javipaur,项目名称:TiendaVirtual,代码行数:45,代码来源:hooks.php

示例12: omega_entry_class

        omega_entry_class();
        ?>
"  <?php 
        omega_attr('post');
        ?>
>

					<header class="entry-header">
						<h1 class="entry-title"><?php 
        single_post_title();
        ?>
</h1>
					</header><!-- .entry-header -->

					<div <?php 
        omega_attr('entry-content');
        ?>
>

						<?php 
        if (has_excerpt()) {
            $src = wp_get_attachment_image_src(get_the_ID(), 'full');
            echo do_shortcode(sprintf('[caption align="aligncenter" width="%1$s"]%3$s %2$s[/caption]', esc_attr($src[1]), get_the_excerpt(), wp_get_attachment_image(get_the_ID(), 'full', false)));
        } else {
            echo wp_get_attachment_image(get_the_ID(), 'full', false, array('class' => 'aligncenter'));
        }
        ?>

						<?php 
        the_content();
        ?>
开发者ID:javipaur,项目名称:TiendaVirtual,代码行数:31,代码来源:attachment-image.php

示例13: comment_class

 */
?>
<li <?php 
comment_class();
?>
 id="comment-<?php 
comment_ID();
?>
">

	<article <?php 
omega_attr('comment');
?>
>
		<p <?php 
omega_attr('comment-author');
?>
>
			<?php 
echo get_avatar($comment, 48);
?>
			<?php 
printf(__('<cite class="fn">%s</cite> <span class="says">%s:</span>', 'omega'), get_comment_author_link(), apply_filters('comment_author_says_text', __('says', 'omega')));
?>
		</p>
		<p class="comment-meta"> 
			<a href="<?php 
echo esc_url(get_comment_link($comment->comment_ID));
?>
"><?php 
printf(__('%1$s at %2$s', 'omega'), get_comment_date(), get_comment_time());
开发者ID:ninthlink,项目名称:edtech,代码行数:31,代码来源:comment.php


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