Exemple #1
0
 /** Future Contextual Help. */
 function future_options_page_contextual_help()
 {
     /** Get the parent theme data. */
     $theme = future_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' => 'future-theme', 'title' => __('Theme Support', 'future'), 'content' => implode('', file(FUTURE_ADMIN_DIR . 'help/support.html'))));
     /** Add license reference help screen tab. */
     $screen->add_help_tab(array('id' => 'future-license', 'title' => __('License', 'future'), 'content' => implode('', file(FUTURE_ADMIN_DIR . 'help/license.html'))));
     /** Add changelog reference help screen tab. */
     $screen->add_help_tab(array('id' => 'future-changelog', 'title' => __('Changelog', 'future'), 'content' => implode('', file(FUTURE_ADMIN_DIR . 'help/changelog.html'))));
     /** Help Sidebar */
     $sidebar = '<p><strong>' . __('For more information:', 'future') . '</strong></p>';
     if (!empty($AuthorURI)) {
         $sidebar .= '<p><a href="' . esc_url($AuthorURI) . '" target="_blank">' . __('Future Project', 'future') . '</a></p>';
     }
     if (!empty($ThemeURI)) {
         $sidebar .= '<p><a href="' . esc_url($ThemeURI) . '" target="_blank">' . __('Future Official Page', 'future') . '</a></p>';
     }
     $screen->set_help_sidebar($sidebar);
 }
Exemple #2
0
function future_footer_tail()
{
    /** Theme Data & Settings */
    $future_theme_data = future_theme_data();
    $future_options = future_get_settings();
    /** Footer Copyright Logic */
    $future_copyright_code = __('&copy; Copyright', 'future') . date(' Y ') . ' - <a href="' . esc_url(home_url('/')) . '">' . get_bloginfo('name') . '</a>';
    ?>

<div class="footer-tail-sidebars widget-inverse">
  <div class="container">  
    <div class="row">    
    
      <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
        <?php 
    if (!dynamic_sidebar('future-footer-tail-sidebar')) {
        ?>

	    <section class="widget widget_text">
	      <div class="widget-inside">	        
	        <div class="textwidget"><?php 
        echo $future_copyright_code;
        ?>
</div>
	      </div>
	    </section>
	    <?php 
    }
    ?>

      </div>

      <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
	    <section class="widget widget_text">
	      <div class="widget-inside">	        
	        <div class="textwidget theme-info">
	          <a href="<?php 
    echo $future_theme_data['ThemeURI'];
    ?>
" title="Future Theme">Future Theme</a> &sdot; <?php 
    _e('Powered by', 'future');
    ?>
 <a href="http://wordpress.org/" title="WordPress">WordPress</a>
	        </div>
	      </div>
	    </section>
      </div>   
  
    </div>
  </div>
</div>
<?php 
}
<div class="wrap future-settings">
  
  <?php 
/** Get the parent theme data. */
$future_theme_data = future_theme_data();
screen_icon();
?>
  
  <h2><?php 
echo sprintf(__('%1$s Theme Settings', 'future'), $future_theme_data['Name']);
?>
</h2>    
  
  <?php 
settings_errors();
?>
  
  <form action="options.php" method="post" id="future-form-wrapper">
    
    <div id="future-form-header" class="future-clearfix">
      <input type="submit" name="" id="" class="button button-primary" value="<?php 
_e('Save Changes', 'future');
?>
">
    </div>
	
	<?php 
settings_fields('future_options_group');
?>
    
    <div id="future-sidebar">