</div><!-- /meta-box-sortables --> </div><!-- /post-body-content --> <div class="postbox-container" id="postbox-container-1"> <div class="meta-box-sortables"> <div class="postbox"> <h3><?php esc_html_e('Documentation', 'portfolio-slideshow'); ?> </h3> <div class="inside"> <ul> <?php foreach (Portfolio_Slideshow_Settings::get_documentation_sections() as $slug => $title) { printf('<li><a href="%s" target="_blank">%s</a></li>', admin_url(sprintf('options-general.php?page=portfolio_slideshow&tab=documentation#%s', $slug)), esc_html($title)); } ?> </ul> </div> </div> <div class="postbox"> <h3><?php esc_html_e('Support', 'portfolio-slideshow'); ?> </h3> <div class="inside"> <p><?php
/** * Sets and gets the $documentation sections array. * * @return array */ static function get_documentation_sections() { self::$documentation = array('general-usage' => esc_html__('General Usage', 'portfolio-slideshow'), 'shortcode-attributes' => esc_html__('Shortcode Attributes', 'portfolio-slideshow'), 'slideheight' => esc_html__('Slideheight', 'portfolio-slideshow'), 'transitions' => esc_html__('Transitions', 'portfolio-slideshow'), 'slideshow-meta' => esc_html__('Titles, Captions, and Descriptions', 'portfolio-slideshow'), 'slideshow-behaviors' => esc_html__('Slideshow Behaviors', 'portfolio-slideshow'), 'navigation-and-pager' => esc_html__('Navigation and Pager', 'portfolio-slideshow'), 'include-exclude' => esc_html__('Include or Exclude Slides', 'portfolio-slideshow')); return self::$documentation; }