Parallax Scroll by adamrob.co.uk";
$text.="
What's New?
";
$text.="";
$text.="
";
$text.="- New help menus! To help improve the look and feel of the plugin-in, help text has now been moved to the help menus
";
$text.="- New image size property for users who want more control on the size of their parallax image
";
$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.="- Enter a post title
This will be the main title which is displayed over the parallax background. The title can also be hidden. See header style point below. ";
$text.="- Enter some content optional
Add some content if required, just like any other post/page. ";
$text.="- Add Feature Image
The feature image is your parallax background ";
$text.="- Parallax Heightoptional
Enter a height in pixels you would like the parallax to be. Setting this option will aut-size the parallax based on the content entered. Minimum height is always 100px ";
$text.="- Parallax Image Sizeoptional
The parallax image will be scaled based on this value. Specify the width in pixels. Set to 0 to auto set the size of the image (recommended) ";
$text.="- Horizontal Position
The horizontal position of the header on the parallax background. ";
$text.="- Vertical Position
The vertical position of the header on the parallax background. This setting is ignored if post content is specified. ";
$text.="- Header Styleoptional
Enter the inline CSS style required for the header eg. font-weight: bold; font-size: large;
If you would like to hide the header, type: display: none; ";
$text.="- Full Widthoptional
Display the parallax across the full width of the page. This is a work around to get a full width parallax if its not already. This may not work on some themes. Please see the note below for more information. ";
$text.="- Disable Image On Mobileoptional
Parallax Scroll can only render the background image on mobile devices with no animation. Select this option if you would rather the background image not display at all on mobile devices. ";
$text.="- Disable Parallax On Mobileoptional
Parallax Scroll can only render the background image on mobile devices with no animation. Select this option if you would rather not show the entire parallax (including content) when on a mobile device. ";
$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');
?>