/** Text for the contextual help for the theme settings page in the admin. */ function settings_page_contextual_help() { /** Get the parent theme data. */ $theme = contango_theme_data(); $AuthorURI = $theme['AuthorURI']; $ThemeURI = $theme['ThemeURI']; /** Get the current screen */ $screen = get_current_screen(); /** Add theme reference help screen tab. */ $screen->add_help_tab(array('id' => 'contango-theme', 'title' => __('Theme Support', 'contango'), 'content' => implode('', file(CONTANGO_ADMIN_DIR . 'help/support.html')))); /** Add license reference help screen tab. */ $screen->add_help_tab(array('id' => 'contango-license', 'title' => __('License', 'contango'), 'content' => implode('', file(CONTANGO_ADMIN_DIR . 'help/license.html')))); /** Add changelog reference help screen tab. */ $screen->add_help_tab(array('id' => 'contango-changelog', 'title' => __('Changelog', 'contango'), 'content' => implode('', file(CONTANGO_ADMIN_DIR . 'help/changelog.html')))); /** Help Sidebar */ $sidebar = '<p><strong>' . __('For more information:', 'contango') . '</strong></p>'; if (!empty($AuthorURI)) { $sidebar .= '<p><a href="' . esc_url($AuthorURI) . '" target="_blank">' . __('Contango Project', 'contango') . '</a></p>'; } if (!empty($ThemeURI)) { $sidebar .= '<p><a href="' . esc_url($ThemeURI) . '" target="_blank">' . __('Contango Official Page', 'contango') . '</a></p>'; } $screen->set_help_sidebar($sidebar); }
function contango_footer_init() { /** Theme Data & Settings */ $contango_theme_data = contango_theme_data(); $contango_options = contango_get_settings(); /** Footer Copyright Logic */ $contango_copyright_code = '© Copyright ' . date('Y') . ' - <a href="' . esc_url(home_url('/')) . '">' . get_bloginfo('name') . '</a>'; if ($contango_options['contango_copyright_control'] == 1) { $contango_copyright_code = ' '; if (!empty($contango_options['contango_copyright'])) { $contango_copyright_code = wp_specialchars_decode($contango_options['contango_copyright'], ENT_QUOTES); } } ?> <div class="copyright clearfix"> <div class="copyright_inside"> <?php echo $contango_copyright_code; ?> </div> </div> <div class="credit clearfix"> <div class="credit_inside"> <a href="<?php echo $contango_theme_data['ThemeURI']; ?> " title="Contango Theme">Contango Theme</a> ⋅ <?php _e('Powered by', 'contango'); ?> <a href="http://wordpress.org/" title="WordPress">WordPress</a> </div> </div> <?php }
<div class="wrap contango-settings"> <?php /** Get the parent theme data. */ $contango_theme_data = contango_theme_data(); ?> <h2><?php echo sprintf(__('%1$s Theme Settings', 'contango'), $contango_theme_data['Name']); ?> </h2> <?php settings_errors(); ?> <div id="contango-pro-wrapper"> <a href="http://designorbital.com/contango-pro/?utm_source=wporg-contango&utm_medium=button&utm_campaign=contango-pro" class="button button-primary button-hero" target="_blank"><?php _e('Contango Pro Features', 'contango'); ?> </a> <a href="http://designorbital.com/free-wordpress-themes/?utm_source=wporg-contango&utm_medium=button&utm_campaign=free-wp-themes" class="button button-hero" target="_blank"><?php _e('Our Free Themes', 'contango'); ?> </a> <a href="https://www.facebook.com/designorbital" class="button button-hero" target="_blank"><?php _e('Like Us On Facebook', 'contango'); ?> </a> <a href="https://twitter.com/designorbital" class="button button-hero" target="_blank"><?php _e('Follow On Twitter', 'contango');
function contango_footer_init() { /** Theme Data & Settings */ $contango_theme_data = contango_theme_data(); $contango_options = contango_get_settings(); /** Footer Copyright Logic */ $contango_copyright_code = '© Copyright ' . date('Y') . ' - <a href="' . esc_url(home_url('/')) . '">' . get_bloginfo('name') . '</a>'; if ($contango_options['contango_copyright_control'] == 1) { $contango_copyright_code = ' '; if (!empty($contango_options['contango_copyright'])) { $contango_copyright_code = wp_specialchars_decode($contango_options['contango_copyright'], ENT_QUOTES); } } ?> <div class="copyright clearfix"> <div class="copyright_inside"> <?php echo $contango_copyright_code; ?> </div> </div> <?php }