????

Your IP : 216.73.216.174


Current Path : /home2/morganrand/www/wp-content/plugins/pinwheel-slider/includes/
Upload File :
Current File : /home2/morganrand/www/wp-content/plugins/pinwheel-slider/includes/help.php

<?php
//Pinwheel Slider - Contexual Help for Pinwheel Slider Admin Pages
add_filter('contextual_help', 'pinwheelslider_help', 10, 3);
function pinwheelslider_help($contextual_help, $screen_id, $screen) {
	if ( isset($_GET['page']) && ('pinwheel-slider-admin' == $_GET['page'] or 'pinwheel-slider-settings' == $_GET['page'] or 'pinwheel-slider-easy-builder' == $_GET['page'] or 'manage-pinwheel-slider' == $_GET['page'] || 'pinwheel-slider-global-settings' == $_GET['page'])  ) {
		$pages = array(
			array('title' => 'Overview'),
			array('title' => 'Documentation'),
			array('title' => 'Support')
		);
		// Add pages
		if(!empty($pages) && is_array($pages)){
			$root_path = WP_PLUGIN_DIR.'/pinwheel-slider/';
			foreach($pages as $item) {
				$screen->add_help_tab(array(
					'id' => sanitize_title($item['title']),
					'title' => $item['title'],
					'callback' => 'prepare_pinwheel_help_'.sanitize_title($item['title'])
				));
			}
		}
	}
}
/* Functions for Language Translation and show contents as per current page */
function prepare_pinwheel_help_overview() {
	$screen = get_current_screen();
	// License
	if(strpos($screen->base, 'pinwheel-slider-license-key') !== false) {
		echo '<p>'.__('Paste your License key in this input box to receive future updates for Pinwheel Slider.','pinwheel-slider').'</p>';
	} 
	// Manage Editor
	elseif(strpos($screen->base, 'manage-pinwheel-slider') !== false) {
		echo '<p>'.__('You can perform following actions on already created sliders using this screen:','pinwheel-slider').'</p>
		<ul>
			<li>'.__('Delete Slider','pinwheel-slider').'</li>
			<li>'.__('Rename Slider','pinwheel-slider').'</li>
			<li>'.__('Get Slider Embed Code','pinwheel-slider').'</li>
			<li>'.__('Live Preview the Slider (Click on "Edit" Slider)','pinwheel-slider').'</li>
			<li>'.__('Add Slides (Click on "Edit" Slider)','pinwheel-slider').'</li>
			<li>'.__('Remove Slides (Click on "Edit" Slider)','pinwheel-slider').'</li>
			<li>'.__('Reorder Slides (Click on "Edit" Slider)','pinwheel-slider').'</li>
			<li>'.__('Change Slider Settings (Click on "Edit" Slider)','pinwheel-slider').'</li>
			<li>'.__('Change Slider Type (Click on "Edit" Slider)','pinwheel-slider').'</li>
		</ul>';
	}
	// Create slider
	elseif(strpos($screen->base, 'pinwheel-slider-admin') !== false) {
		echo '<p>'.__('You can create a slider using this panel. Select one of','pinwheel-slider').'<strong>'.__('19 Slider Types','pinwheel-slider').'</strong>'.__(' Pinwheel offers and follow the step by step procedure to create your slider. You can select the layout, name the slider and specify different slider parameters depending upon the type of slider you wish to create.','pinwheel-slider').'</p>
		<p>'.__('For example, if you want to create Custom Slider, just follow the steps and finally you will be directed to a panel where you can add different type of slides (i.e. Posts/Pages/Media Images/Blank Slides etc) to your custom slider.','pinwheel-slider').'</p>';
	} 
	// Settings page
	elseif(strpos($screen->base, 'pinwheel-slider-settings') !== false) {
		echo '<p>'.__('You can edit each Setting Set create individually thru this panel. You can select to preview any type of slider using the selected setting set. This panel will generate type specific shortcode which will not be dependent on whether that slider is being created or not using \'Create New\' panel.','pinwheel-slider').'</p>
<p>'.__('This is an advanced panel for those who wish to use one settings set for multiple type of sliders or show one type of slider content using different settings sets.','pinwheel-slider').'</p>';
	}
	//Global settings
	elseif(strpos($screen->base, 'pinwheel-slider-global-settings') !== false) {
		echo '<p>'.__('These Settings will be applied to all the Sliders Created. You can set who can add slides to the slider, you can disable Pinwheel Slider metabox on Edit Posts or Pages etc. Also, if you wish to embed social slider or fetch social slides in Custom Slider, you will have to enter the repective API keys on this panel.','pinwheel-slider').'</p>';
	}
	//Easy builder
	elseif(strpos($screen->base, 'pinwheel-slider-easy-builder') !== false) {
		echo '<p>'.__('This panel is a all-in-one super panel to manage your created Slider. You can','pinwheel-slider').'</p>
		<ul>
			<li>'.__('Live Preview the Slider','pinwheel-slider').'</li>
			<li>'.__('Get Slider Embed Code','pinwheel-slider').'</li>
			<li>'.__('Change Slider Settings like auto sliding, transitions, fonts, colors etc.','pinwheel-slider').'</li>
			<li>'.__('Change Slider Type','pinwheel-slider').'</li>
			<li>'.__('Change Slider Parameters','pinwheel-slider').'</li>
			<li>'.__('Add Slides (for Custom/Image Slider)','pinwheel-slider').'</li>
			<li>'.__('Remove Slides (for Custom/Image Slider)','pinwheel-slider').'</li>
			<li>'.__('Reorder Slides (for Custom/Image Slider)','pinwheel-slider').'</li>
		</ul>';
	}
}
function prepare_pinwheel_help_Documentation() {
	echo '<p>'.__('Thank you for using SliderVilla Slider. Please find the detailed and updated documentation for this section and overall Pinwheel Slider on the below guide page:','pinwheel-slider').'</p>
<p><a href="http://guides.slidervilla.com/pinwheel-slider/" class="button button-primary" target="_blank">'.__('Pinwheel Slider Documentation','pinwheel-slider').'</a></p>';
}
function prepare_pinwheel_help_Support() {
	echo '<p>'.__('In case of any issues, you can post your support query on SliderVilla\'s dedicated support forum:','pinwheel-slider').'</p>
<p><a href="http://support.slidervilla.com/" class="button" target="_blank">'.__('SliderVilla Support Forum','pinwheel-slider').'</a></p>';
}
/* END - for Language Translation and show contents as per current page */

//Pinwheel Slider - Contexual Help on WordPress core admin pages (Add/Edit Posts/Pages/Media)
add_action( 'admin_head-post-new.php', 'pinwheel_help_post' );
add_action( 'admin_head-media-new.php', 'pinwheel_help_post' );
add_action( 'admin_head-post.php', 'pinwheel_help_post' );
function pinwheel_help_post() {
	$gpinwheel_slider = get_option('pinwheel_slider_global_options');
	$root_path = WP_PLUGIN_DIR.'/pinwheel-slider/';
	if( function_exists( 'add_meta_box' ) ) {
	    $post_types=get_post_types(); 
		$remove_post_type_arr=( isset($gpinwheel_slider['remove_metabox']) ? $gpinwheel_slider['remove_metabox'] : '' );
		if(!isset($remove_post_type_arr) or !is_array($remove_post_type_arr) ) $remove_post_type_arr=array();
		foreach($post_types as $post_type) {
				$screen = get_current_screen();
				$screen->add_help_tab( array(
				'id'      => 'pinwheel-edtposthelp',
				'title'   => __('Pinwheel Slider', 'sfc'),
				'callback' => 'prepare_pinwheel_help_Post'
				));
		}
	}
}
/* Function for Language Translation and show contents on admin pages (Add/Edit Posts/Pages/Media) */
function prepare_pinwheel_help_Post() {
	echo '<p><strong>'.__('Overview:','pinwheel-slider').' </strong>'.__('You can add the current post/page/media image etc to the Slider using Pinwheel Slider metabox. You can customize each slide properties using this metabox like should this slide link to permalink or custom url or should not link to any page, what should be transitions for wach of the slide elements and set different navigation title, navigation thumb etc.','pinwheel-slider').'</p>
<p>'.__('Thank you for using SliderVilla Slider. Please find the detailed and updated documentation for Pinwheel Slider on the below guide page:','pinwheel-slider').'</p>
<p><a href="http://guides.slidervilla.com/pinwheel-slider/" class="button button-primary" target="_blank">'.__('Pinwheel Slider Documentation','pinwheel-slider').'</a></p>
<p>'.__('In case of any issues, you can post your support query on the forum:','pinwheel-slider').'</p>
<p><a href="http://support.slidervilla.com/" class="button" target="_blank">'.__('SliderVilla Support Forum','pinwheel-slider').'</a></p>';
}
?>