Example #1
0
/**
 * Displays a link to the child theme URI.
 *
 * @since  0.9.0
 * @access public
 * @return void
 */
function omega_child_theme_link()
{
    echo omega_get_child_theme_link();
}
Example #2
0
/**
 * Shortcode to display a link to the child theme's page.
 *
 * @since 0.6.0
 * @access public
 * @uses get_theme_data() Gets theme (child theme) information.
 * @return string
 */
function omega_child_link_shortcode()
{
    return omega_get_child_theme_link();
}
Example #3
0
/**
 * default footer insert filter
 */
function omega_default_footer_insert($settings)
{
    /* If there is a child theme active, use [child-link] shortcode to the $footer_insert. */
    if (!is_child_theme()) {
        return '<p class="copyright">' . __('Copyright &#169; ', 'omega') . date_i18n('Y') . ' ' . get_bloginfo('name') . '.</p>' . "\n\n" . '<p class="credit">' . omega_get_theme_name() . __(' WordPress Theme by ', 'omega') . omega_get_author_uri() . '</p>';
    } else {
        return '<p class="copyright">' . __('Copyright &#169; ', 'omega') . date_i18n('Y') . ' ' . get_bloginfo('name') . '.</p>' . "\n\n" . '<p class="credit">' . omega_get_child_theme_link() . __(' WordPress Theme by ', 'omega') . omega_get_author_uri() . '</p>';
    }
}