Parallax Scroll by adamrob.co.uk"; $text.="

What's New?

"; $text.="

"; $text.="

"; $text.="Please visit adamrob.co.uk for more information and support."; $text.="

"; return $text; } function parallaxscroll_help_get_creating(){ //Returns whats new help text $text=''; $text.="

Parallax Scroll by adamrob.co.uk

"; $text.="

Creating a new Parallax

"; $text.="

"; $text.="Parallax scroll use's the information in the post screen to build a parallax element for your site. This element can then be used in any page/post on your site by using a shortcode."; $text.="
Follow the steps to get started:"; $text.="

"; $text.="Note: The parallax is always full width. It will size to the full width of your post. If this doesnt give you the effect required, selecting the full width option will resize the parallax to the content area of the page/post. If this still does not give the required effect, its because your theme's content area is not full width. This is not a fault of the plugin, but your theme."; $text.="

"; return $text; } /*** ** Help Tabs ***/ function parallaxscroll_help_add_tabs() { $screen = get_current_screen(); // Return early if we're not on the book post type. if ( PARALLAX_POSTTYPE != $screen->post_type ) return; // Setup help tab args. $maintab = array( 'id' => 'parallaxscroll_help_main', //unique id for the tab 'title' => "What's New", //unique visible title for the tab 'content' => parallaxscroll_help_get_whatsnew(), //actual help text ); $createtab = array( 'id' => 'parallaxscroll_help_create', //unique id for the tab 'title' => "Create", //unique visible title for the tab 'content' => parallaxscroll_help_get_creating(), //actual help text ); // Add the help tab. $screen->add_help_tab( $maintab ); $screen->add_help_tab( $createtab ); } add_action('admin_head', 'parallaxscroll_help_add_tabs'); ?>