Ejemplo n.º 1
0
/**
 * Display the default page edit link
 */
function omega_page_entry_meta()
{
    echo omega_apply_atomic_shortcode('entry_meta', '<div class="entry-meta">[post_edit]</div>');
}
Ejemplo n.º 2
0
/**
 * Loads footer content
 */
function omega_footer_insert()
{
    echo '<div class="footer-content footer-insert">';
    if ($footer_insert = get_theme_mod('custom_footer')) {
        echo omega_apply_atomic_shortcode('footer_content', $footer_insert);
    } else {
        echo omega_apply_atomic_shortcode('footer_content', apply_filters('omega_footer_insert', ''));
    }
    echo '</div>';
}
Ejemplo n.º 3
0
/**
 * @since      0.7.0
 * @deprecated 0.9.0
 */
function apply_atomic_shortcode($tag = '', $value = '')
{
    _deprecated_function(__FUNCTION__, '0.9.0', 'omega_apply_atomic_shortcode');
    return omega_apply_atomic_shortcode($tag, $value);
}
Ejemplo n.º 4
0
<div class="entry-meta">
	<?php 
if (is_multi_author()) {
    echo omega_apply_atomic_shortcode('entry_author', __('Posted by [post_author_posts_link] ', 'omega'));
} else {
    echo omega_apply_atomic_shortcode('entry_author', __('Posted ', 'omega'));
}
?>
	<?php 
if (omega_get_setting('trackbacks_posts') || omega_get_setting('comments_posts')) {
    echo omega_apply_atomic_shortcode('entry_byline', __('on [post_date] [post_comments] [post_edit before=" | "]', 'omega'));
} else {
    echo omega_apply_atomic_shortcode('entry_byline', __('on [post_date]  [post_edit before=" | "]', 'omega'));
}
?>
</div><!-- .entry-meta -->
Ejemplo n.º 5
0
/**
 * Display the default entry footer.
 */
function omega_entry_footer()
{
    if ('post' == get_post_type()) {
        get_template_part('partials/entry', 'footer');
    }
    if (is_singular()) {
        echo omega_apply_atomic_shortcode('entry_meta', '<div class="entry-meta">[post_edit]</div>');
    }
}