'.__( 'Here are the shortcodes to use for your current Slidesets:' ).'

'; foreach ($sldsets as $sldset){ echo '
'.$sldset->name.': [slides slideset='.$sldset->slug.']
'; } echo '
'; return ob_get_clean(); } else { ob_start(); echo '

'.__( 'You currently have no Slidesets. You can create one by clicking on Slidesets in the Slides menu (or here) or by adding a Slide to a Slideset when editing it.' ).'

'; return ob_get_clean(); } } $screen = get_current_screen(); $screen->add_help_tab( array( 'id' => 'aFSHelpTab', 'title' => __('Slideshows'), 'content' => '

'.__( 'You can display all* of your Slides by adding [slides] to any Page, Post or anywhere else your theme and plugins let you add a shortcode. To display a specific Slideset, use [slides slideset=my-slideset] (replacing "my-slideset" with your Slideset\'s slug*).' ).'

' .aFSHTShortcodes().'

'.__( 'There are more parameters (settings) you can add to your shortcode to change it\'s end result (e.g. [slides slideset=my-slideset prevnext=false] will remove the slideshow\'s "Previous" and "Next" buttons). No parameters are required unless customization is necessary. Here is a list of all parameters (in the convention: parameter "default value" — Description; optional values):' ).'

'.__( '*WARNING: Depending on the number of Slides this website has, adding all of them to a single slideshow can drastically slow down the website\'s load time when outputting the slideshow.' ).'

'.__( '*Slugs: You can obtain the slug of any of your slidesets by visiting the Slidesets page. To learn more about slugs in general, go here.' ).'

'.__( ' = Opens in a new tab/window.' ).'

'.__( ' = Links to an external website.' ).'

' )); }