本文整理汇总了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();
示例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');
?>
示例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));
}
示例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');
示例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>';
}
示例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);
}
示例7: omega_wrap_close
function omega_wrap_close()
{
echo omega_apply_atomic('wrap_close', '</div>');
}
示例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