/** * 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>'); }
/** * 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>'; }
/** * @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); }
<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 -->
/** * 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>'); } }