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


PHP omega_apply_atomic函数代码示例

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


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

示例1: get_header

<?php

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

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

		<?php 
do_action('omega_before_content');
do_action('omega_content');
do_action('omega_after_content');
?>
		
	</main><!-- .content -->

<?php 
get_footer();
开发者ID:traviswright,项目名称:matterandspirit,代码行数:28,代码来源:archive.php

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

示例3: omega_apply_atomic_shortcode

/**
 * Wraps the output of omega_apply_atomic() in a call to do_shortcode(). This allows developers to use 
 * context-aware functionality alongside shortcodes. Rather than adding a lot of code to the 
 * function itself, developers can create individual functions to handle shortcodes.
 *
 * @since  0.9.0
 * @access public
 * @param  string $tag   Usually the location of the hook but defines what the base hook is.
 * @param  mixed  $value The value to be filtered.
 * @return mixed  $value The value after it has been filtered.
 */
function omega_apply_atomic_shortcode($tag = '', $value = '')
{
    return do_shortcode(omega_apply_atomic($tag, $value));
}
开发者ID:javipaur,项目名称:TiendaVirtual,代码行数:15,代码来源:core.php

示例4: 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">
		<?php 
do_action('omega_before_main');
开发者ID:narabikke,项目名称:wordpress,代码行数:31,代码来源:header.php

示例5: omega_branding

/**
 * Dynamic element to wrap the site title and site description.
 */
function omega_branding()
{
    echo '<div class="' . omega_apply_atomic('title_area_class', 'title-area') . '">';
    /* Get the site title.  If it's not empty, wrap it with the appropriate HTML. */
    if ($title = get_bloginfo('name')) {
        if ($logo = get_theme_mod('custom_logo')) {
            $title = sprintf('<h1 class="site-title"><a href="%1$s" title="%2$s" rel="home"><span><img src="%3$s"/></span></a></h1>', home_url(), esc_attr($title), $logo);
        } else {
            $title = sprintf('<h1 class="site-title"><a href="%1$s" title="%2$s" rel="home"><span>%3$s</span></a></h1>', home_url(), esc_attr($title), $title);
        }
    }
    /* Display the site title and apply filters for developers to overwrite. */
    echo omega_apply_atomic('site_title', $title);
    /* Get the site description.  If it's not empty, wrap it with the appropriate HTML. */
    if ($desc = get_bloginfo('description')) {
        $desc = sprintf('<h2 class="site-description"><span>%1$s</span></h2>', $desc);
    }
    /* Display the site description and apply filters for developers to overwrite. */
    echo omega_apply_atomic('site_description', $desc);
    echo '</div>';
}
开发者ID:ninthlink,项目名称:edtech,代码行数:24,代码来源:functions.php

示例6: apply_atomic

/**
 * @since      0.7.0
 * @deprecated 0.9.0
 */
function apply_atomic($tag = '', $value = '')
{
    _deprecated_function(__FUNCTION__, '0.9.0', 'omega_apply_atomic');
    return omega_apply_atomic($tag, $value);
}
开发者ID:traviswright,项目名称:matterandspirit,代码行数:9,代码来源:deprecated.php

示例7: omega_wrap_close

function omega_wrap_close()
{
    echo omega_apply_atomic('wrap_close', '</div>');
}
开发者ID:javipaur,项目名称:TiendaVirtual,代码行数:4,代码来源:wraps.php

示例8: get_header

/**
Template Name: Fixed Height Content Page
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package Omega
*/
get_header();
?>

	<main  class="<?php 
echo omega_apply_atomic('main_class', 'content-fixed-height');
?>
" <?php 
omega_attr('content');
?>
>

		<?php 
do_action('omega_before_content');
do_action('omega_content');
do_action('omega_after_content');
?>

	</main><!-- .content -->

<?php 
开发者ID:CodeNoEvil,项目名称:mbp_web_infrastructure,代码行数:31,代码来源:page-fixed_height_content.php


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