示例#1
0
/**
 * srp_admin_menu_options()
 *
 * This function builds the plugin admin page.
 *
 * @author Luca Grandicelli <lgrandicelli@gmail.com>
 * @copyright (C) 2011-2014 Luca Grandicelli
 * @package special-recent-posts-free
 * @version 2.0.4
 * @return boolean true
 */
function srp_admin_menu_options()
{
    // Checking if we have the user has the 'install_plugins' permission enabled.
    if (!current_user_can('install_plugins')) {
        // Abort script with message.
        wp_die(__('You do not have sufficient permissions to access this page.', SRP_TRANSLATION_ID));
    }
    // Updating and validating data/POST Check.
    srp_update_data($_POST);
    // Importing global default options array.
    $srp_current_options = get_option('srp_plugin_options');
    ?>

<!-- BEGIN SRP admin page -->
<div class="wrap">

	<!-- BEGIN WP Hack: fake H2 for WP notifications -->
	<h2></h2>
	<!-- END WP Hack: fake H2 for WP notifications -->

	<!-- BEGIN SRP admin container -->
	<div id="srp-admin-container">

		<!-- BEGIN SRP PRO Promo -->
		<div class="srp-notify-upgrade">

			<!-- BEGIN SRP PRO Logo -->
			<img src="<?php 
    echo SRP_PLUGIN_URL . SRP_IMAGES_FOLDER;
    ?>
srp-pro-logo-notify-upgrade.png" alt="<?php 
    esc_attr_e('The Special Recent Posts PRO logo', SRP_TRANSLATION_ID);
    ?>
" />
			<!-- END SRP PRO Logo -->

			<!-- BEGIN SRP PRO Promo Description -->
			<div>
				<h3>
				<?php 
    _e('Special Recent Posts PRO Edition v3 has been released!', SRP_TRANSLATION_ID);
    ?>
 <a href='http://codecanyon.net/item/special-recent-posts-pro-edition/552356?ref=lucagrandicelli' target="_blank" title="<?php 
    echo esc_attr(__('Upgrade now to Special Recent Posts PRO Edition v3', SRP_TRANSLATION_ID));
    ?>
">Upgrade Now!</a>
				</h3>
				<p>
				<?php 
    printf(__('Now finally with %1$sPagination Support%2$s, %1$sResponsive Multi Layouts%2$s, %1$sCustom Post Types & Taxonomy Management%2$s, %1$sAuto Update Notifications%2$s<br />and much more up to %1$s120 customization options available%2$s. Now translated in multiple languages. %3$sDiscover all the new features%4$s</a>', SRP_TRANSLATION_ID), '<strong>', '</strong>', '<a href="http://codecanyon.net/item/special-recent-posts-pro-edition/552356?ref=lucagrandicelli" target="_blank" title="' . esc_attr(__('Discover all the new features of Special Recent Posts PRO Edition v3', SRP_TRANSLATION_ID)) . '">', '</a>');
    ?>
				</p>
			</div>
			<!-- END SRP PRO Promo Description -->

		</div>
		<!-- END SRP PRO Promo -->
		
		<!-- BEGIN SRP admin page header -->
		<div class="srp-admin-panel-header">

			<!-- BEGIN SRP admin page header logo -->
			<img src="<?php 
    echo SRP_PLUGIN_URL . SRP_IMAGES_FOLDER;
    ?>
widget-header-logo.png" alt="<?php 
    esc_attr_e('The Special Recent Posts FREE logo', SRP_TRANSLATION_ID);
    ?>
" />
			<!-- END SRP admin page header logo -->

			<!-- BEGIN SRP admin page header title -->
			<h2>
				<?php 
    _e('Special Recent Posts FREE - General Settings', SRP_TRANSLATION_ID);
    ?>
			</h2>
			<!-- END SRP admin page header title -->

		</div>
		<!-- END SRP admin page header -->
		
		<!-- BEGIN SRP admin page header description -->
		<div class="srp-settings-description">
			<?php 
    printf(__('%1$sWelcome to the SRP FREE General Settings Page.%2$s%3$sIn this area you can configure all the main settings for the Special Recent Posts FREE plugin. Please keep in mind that these are basic options; further special customization options apply for each widget instance, shortcode or PHP code to ensure an high level of customization. Go to your Wordpress widgets page and drag the Special Recent Posts FREE widget onto one of your draggable areas to see all the additional options available.', SRP_TRANSLATION_ID), '<strong>', '</strong>', '<br />');
    ?>
		</div>
		<!-- END SRP admin page header description -->
			
		<!-- BEGIN menu tabs container -->
		<div id="srp-tabs-container">

			<!-- BEGIN menu tabs -->
			<ul class="srp-tabs-menu">

				<!-- BEGIN 'General Settings' menu tab -->
				<li class="srp-settings-tab current">
					<a href="#srp-tab-1" title="<?php 
    esc_attr_e('General Settings', SRP_TRANSLATION_ID);
    ?>
">
						<?php 
    _e('General Settings', SRP_TRANSLATION_ID);
    ?>
					</a>
				</li>
				<!-- END 'General Settings' menu tab -->

				<!-- BEGIN 'Custom CSS Editor' menu tab -->
				<li class="srp-settings-tab">
					<a href="#srp-tab-2" title="<?php 
    esc_attr_e('Custom CSS Editor', SRP_TRANSLATION_ID);
    ?>
">
						<?php 
    _e('Custom Css Editor', SRP_TRANSLATION_ID);
    ?>
					</a>
				</li>
				<!-- END 'Custom CSS Editor' menu tab -->

				<!-- BEGIN 'Cache Settings' menu tab -->
				<li class="srp-settings-tab">
					<a href="#srp-tab-3" title="<?php 
    esc_attr_e('Cache Settings', SRP_TRANSLATION_ID);
    ?>
">
						<?php 
    _e('Cache Settings', SRP_TRANSLATION_ID);
    ?>
					</a>
				</li>
				<!-- END 'Cache Settings' menu tab -->

				<!-- BEGIN 'Plugin Notes' menu tab -->
				<li class="srp-settings-tab">
					<a href="#srp-tab-4" title="<?php 
    esc_attr_e('Plugin Notes', SRP_TRANSLATION_ID);
    ?>
">
						<?php 
    _e('Plugin Notes', SRP_TRANSLATION_ID);
    ?>
					</a>
				</li>
				<!-- END 'Plugin Notes' menu tab -->

			</ul>
			<!-- EOF admin Tabs -->

			<!-- BEGIN tab element -->
			<div class="srp-tab">

				<!-- BEGIN 'General Settings' tab content -->
				<div id="srp-tab-1" class="metabox-holder srp-tab-content">

					<!-- BEGIN options form -->
					<form id="srp_admin_form" name="srp_admin_form" action="" method="POST">

						<!-- BEGIN options form hidden values-->
						<input type="hidden" value="yes" name="srp_dataform">
						<input type="hidden" value="<?php 
    echo $srp_current_options['srp_version'];
    ?>
" name="srp_version">
						<!-- END options form hidden values-->

						<?php 
    settings_fields('srp_admin_form');
    ?>

						<!-- BEGIN options form entries -->
						<ul class="srp-settings-list">

							<!-- BEGIN 'Compatibility Mode' -->
							<li>

								<!-- BEGIN 'Compatibility Mode' label -->
								<label for="srp_compatibility_mode">
									<?php 
    _e('Compatibility Mode', SRP_TRANSLATION_ID);
    ?>
								</label>
								<!--END  'Compatibility Mode' label -->

								<!-- BEGIN 'Compatibility Mode' description -->
								<div class="srp-label-description">
									<?php 
    _e('This option enables some compatibility features in order to work seamlessly with other plugins. If you are experiencing conflict problems, you might want to disable this option switching it to no.', SRP_TRANSLATION_ID);
    ?>
								</div>
								<!-- END 'Compatibility Mode' description -->

								<!-- BEGIN 'Compatibility Mode' value -->
								<select id="srp_compatibility_mode" name="srp_compatibility_mode">

									<option value="yes" <?php 
    selected($srp_current_options['srp_compatibility_mode'], 'yes');
    ?>
>
										<?php 
    _e('Enabled', SRP_TRANSLATION_ID);
    ?>
									</option>

									<option value="no" <?php 
    selected($srp_current_options['srp_compatibility_mode'], 'no');
    ?>
>
										<?php 
    _e('Disabled', SRP_TRANSLATION_ID);
    ?>
									</option>

								</select>
								<!-- END 'Compatibility Mode' value -->

							</li>
							<!-- END 'Compatibility Mode' -->

							<!-- BEGIN 'Log Errors On Screen' -->
							<li>

								<!-- BEGIN 'Log Errors On Screen' label -->
								<label for="srp_log_errors_screen">
									<?php 
    _e('Log Errors On Screen', SRP_TRANSLATION_ID);
    ?>
								</label>
								<!-- BEGIN 'Log Errors On Screen' label -->

								<!-- BEGIN 'Log Errors On Screen' description -->
								<div class="srp-label-description">
									<?php 
    _e('This option enables the SRP error logging system. Switch this to yes if you want to log potential errors or warnings on screen.', SRP_TRANSLATION_ID);
    ?>
								</div>
								<!-- END 'Log Errors On Screen' description -->

								<!-- BEGIN 'Log Errors On Screen' value -->
								<select id="srp_log_errors_screen" name="srp_log_errors_screen">

									<option value="yes" <?php 
    selected($srp_current_options['srp_log_errors_screen'], 'yes');
    ?>
>
										<?php 
    _e('Yes', SRP_TRANSLATION_ID);
    ?>
									</option>

									<option value="no" <?php 
    selected($srp_current_options['srp_log_errors_screen'], 'no');
    ?>
>
										<?php 
    _e('No', SRP_TRANSLATION_ID);
    ?>
									</option>

								</select>
								<!-- END 'Log Errors On Screen' value -->

							</li>
							<!-- END 'Log Errors On Screen' -->
							
							<!-- BEGIN 'No-Posts Image Placeholder' -->
							<li>

								<!-- BEGIN 'No-Posts Image Placeholder' label -->
								<label for="srp_noimage_url">
									<?php 
    _e('No-Posts Image Placeholder', SRP_TRANSLATION_ID);
    ?>
								</label>
								<!-- END 'No-Posts Image Placeholder' label -->

								<!-- BEGIN 'No-Posts Image Placeholder' description -->
								<div class="srp-label-description">
									<?php 
    _e('This is the default image that appears when no other images are available inside a post. You can use the one you prefer by simply typing in the full URL of the image. If you leave this field empty, the default no-image placeholder will be loaded instead.', SRP_TRANSLATION_ID);
    ?>
								</div>
								<!-- END 'No-Posts Image Placeholder' description -->

								<!-- BEGIN 'No-Posts Image Placeholder' value -->
								<input type="text" id="srp_noimage_url" name="srp_noimage_url" value="<?php 
    echo esc_url($srp_current_options['srp_noimage_url']);
    ?>
" size="90" /><br />
								<small><?php 
    _e('Default size: 200px x 200px.', SRP_TRANSLATION_ID);
    ?>
</small>
								<!-- END 'No-Posts Image Placeholder' value -->

							</li>
							<!-- BEGIN 'No-Posts Image Placeholder' -->

							<!-- BEGIN 'Thumbnail Image Quality Ratio' -->
							<li>

								<!-- BEGIN 'Thumbnail Image Quality Ratio' label -->
								<label for="srp_thumbnail_jpeg_quality">
									<?php 
    _e('JPEG Image Quality Ratio', SRP_TRANSLATION_ID);
    ?>
								</label>
								<!-- END 'Thumbnail Image Quality Ratio' label -->

								<!-- BEGIN 'Thumbnail Image Quality Ratio' description -->
								<div class="srp-label-description">
									<?php 
    _e("This options sets the JPEG quaility ratio when the 'Custom Thumbnails Option' is enabled. Numerical values are accepted only. 100 is the maximum quality, but 80 is an acceptable compromise between file size and image quality. Range: 0 to 100.", SRP_TRANSLATION_ID);
    ?>
								</div>
								<!-- END 'Thumbnail Image Quality Ratio' description -->

								<!-- BEGIN 'Thumbnail Image Quality Ratio' value -->
								<input type="text" id="srp_thumbnail_jpeg_quality" name="srp_thumbnail_jpeg_quality" value="<?php 
    echo stripslashes($srp_current_options['srp_thumbnail_jpeg_quality']);
    ?>
" size="2" maxlength="3" />
								<!-- END 'Thumbnail Image Quality Ratio' value -->

							</li>
							<!-- END 'Thumbnail Image Quality Ratio' -->

							<!-- BEGIN 'Disable Plugin CSS' -->
							<li>

								<!-- BEGIN 'Disable Plugin CSS' label -->
								<label for="srp_disable_theme_css">
									<?php 
    _e('Disable Plugin CSS', SRP_TRANSLATION_ID);
    ?>
								</label>
								<!-- END 'Disable Plugin CSS' label -->

								<!-- BEGIN 'Disable Plugin CSS' description -->
								<div class="srp-label-description">
									<?php 
    _e("This option enables/disables the built-in widget stylesheet. Set this option to 'yes' if you wish to use your own CSS.", SRP_TRANSLATION_ID);
    ?>
								</div>
								<!-- END 'Disable Plugin CSS' description -->

								<!-- BEGIN 'Disable Plugin CSS' value -->
								<select id="srp_disable_theme_css" name="srp_disable_theme_css">

									<option value="yes" <?php 
    selected($srp_current_options['srp_disable_theme_css'], 'yes');
    ?>
><?php 
    _e('Yes', SRP_TRANSLATION_ID);
    ?>
									</option>

									<option value="no" <?php 
    selected($srp_current_options['srp_disable_theme_css'], 'no');
    ?>
><?php 
    _e('No', SRP_TRANSLATION_ID);
    ?>
									</option>

								</select>
								<!-- END 'Disable Plugin CSS' value -->

							</li>
							<!-- END 'Disable Plugin CSS' -->

						</ul>
						<!-- END options form entries -->

						<!-- BEGIN form submit button -->
						<input type="submit" name="submit" class="button-primary" value="<?php 
    _e('Save Options', SRP_TRANSLATION_ID);
    ?>
" />
						<!-- END form submit button -->

				</div>
				<!-- END 'General Settings' tab content -->

				<!-- BEGIN 'Custom CSS Editor' tab content -->
				<div id="srp-tab-2" class="metabox-holder srp-tab-content">

					<!-- BEGIN 'Custom CSS Editor' container -->
				    <div class="wrap">

				        <div id="icon-themes" class="icon32"></div>

				        <!-- BEGIN 'Custom CSS Editor' title -->
				        <h2>
				        	<?php 
    _e('Custom CSS Editor', SRP_TRANSLATION_ID);
    ?>
				        </h2>
				        <!-- END 'Custom CSS Editor' title -->

				        <!-- BEGIN 'Custom CSS Editor' ACE plugin placeholder -->
			            <div id="custom_css_container">
			                <div name="srp_custom_css" id="srp_custom_css" style="border: 1px solid #DFDFDF; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; width: 100%; height: 400px; position: relative;"></div>
			            </div>
			            <!-- END 'Custom CSS Editor' ACE plugin placeholder -->

			            <!-- BEGIN code textarea -->
			            <?php 
    $csseditor_introtext = '/*' . PHP_EOL . __('Welcome to the Special Recent Posts Custom CSS editor!', SRP_TRANSLATION_ID) . PHP_EOL . __("Please add all your custom CSS here and avoid modifying the core plugin files, since that'll make upgrading the plugin problematic. Your custom CSS will be loaded in your <head> section of your wordpress theme, which means that your rules will take precedence. Just add your CSS here for what you want to change, you don't need to copy all the plugin's stylesheet content.", SRP_TRANSLATION_ID) . PHP_EOL . '*/';
    ?>
			            <textarea id="srp_custom_css_textarea" name="srp_custom_css" style="display: none;"><?php 
    echo $srp_current_options['srp_custom_css'] == 'Default CSS Comment' ? $csseditor_introtext : $srp_current_options['srp_custom_css'];
    ?>
</textarea>
			            <!-- END code textarea -->

			            <!-- BEGIN form submit button -->
			            <p>
			            	<input type="submit" class="button-primary" value="<?php 
    _e('Save Changes', SRP_TRANSLATION_ID);
    ?>
" />
			            </p>
			            <!-- END form submit button -->

				        </form>
				        <!-- END options form -->

				    </div>
				    <!-- END 'Custom CSS Editor' container -->

				</div>
				<!-- END 'Custom CSS Editor' tab content -->

				<!-- BEGIN 'Empty Cache Folder' tab content -->
				<div id="srp-tab-3" class="metabox-holder srp-tab-content">

					<!-- BEGIN options form -->
					<form id="srp-cache-flush-form" action="" method="POST">

						<!-- BEGIN options form entries -->
						<ul class="srp-settings-list">

							<!-- BEGIN 'Empty Cache Folder' -->
							<li>

								<!-- BEGIN 'Empty Cache Folder' label -->
								<label for="srp_cache_flush">
									<?php 
    _e('Empty Cache Folder', SRP_TRANSLATION_ID);
    ?>
								</label>
								<!-- END 'Empty Cache Folder' label -->

								<!-- BEGIN 'Empty Cache Folder' description -->
								<div class="srp-label-description">
									<?php 
    _e('Click this button to empty the custom thumbnails cache folder.', SRP_TRANSLATION_ID);
    ?>
								</div>
								<!-- END 'Empty Cache Folder' description -->

								<!-- BEGIN 'Empty Cache Folder' submit button -->
								<input type="hidden" value="yes" name="srp_cache_flush">
								<input type="submit" value="<?php 
    _e('Empty Cache Folder', SRP_TRANSLATION_ID);
    ?>
" class="button-primary srp-empty-cache-btn">
								<!-- END 'Empty Cache Folder' submit button -->

							</li>
							<!-- BEGIN 'Empty Cache Folder' -->

						</ul>
						<!-- END options form entries -->

					</form>
					<!-- END options form -->
					
				</div>
				<!-- END 'Empty Cache Folder' tab content -->

				<!-- BEGIN 'Plugin Notes' tab content -->
				<div id="srp-tab-4" class="metabox-holder srp-tab-content srp-tab-plugin-info">

					<!-- BEGIN 'Plugin Notes' title -->
					<h3>
						<?php 
    _e('Special Recent Posts FREE Edition', SRP_TRANSLATION_ID);
    ?>
					</h3>
					<!-- END 'Plugin Notes' title -->

					<!-- BEGIN 'Plugin Notes' notes -->
					<dl>
						
						<!-- BEGIN Plugin Version -->
						<dt>
							<?php 
    _e('Plugin Version:', SRP_TRANSLATION_ID);
    ?>
						</dt>
						<dd>
							<?php 
    echo SRP_PLUGIN_VERSION;
    ?>
						</dd>
						<!-- END Plugin Version -->

						<!-- BEGIN Latest update -->
						<dt>
							<?php 
    _e('Latest update:', SRP_TRANSLATION_ID);
    ?>
						</dt>
						<dd>
							<?php 
    _e('September 27, 2014', SRP_TRANSLATION_ID);
    ?>
						</dd>
						<!-- BEGIN Latest update -->

						<!-- BEGIN Website -->
						<dt>
							<?php 
    _e('Website:', SRP_TRANSLATION_ID);
    ?>
						</dt>
						<dd>
							<?php 
    printf('<a href="%1$s" title="%2$s" target="_blank">http://www.specialrecentposts.com/</a>', esc_url('http://www.specialrecentposts.com/?ref=uri_ps'), __('The Special Recent Posts Official Website.', SRP_TRANSLATION_ID));
    ?>
						</dd>
						<!-- BEGIN Website -->

						<!-- BEGIN Customer Support -->
						<dt>
							<?php 
    _e('Customer Support & F.A.Q:', SRP_TRANSLATION_ID);
    ?>
						</dt>
						<dd>
							<?php 
    printf('<a href="%1$s" title="%2$s" target="_blank">http://wordpress.org/support/plugin/special-recent-posts/</a>', esc_url('http://wordpress.org/support/plugin/special-recent-posts/'), __('Visit the online Wordpress.org forum to get instant support.', SRP_TRANSLATION_ID));
    ?>
						</dd>
						<!-- BEGIN Customer Support -->

						<!-- BEGIN Online Documentation & F.A.Q -->
						<dt>
							<?php 
    _e('Online Documentation:', SRP_TRANSLATION_ID);
    ?>
						</dt>
						<dd>
						<?php 
    printf('<a href="%1$s" title="%2$s" target="_blank">http://www.specialrecentposts.com/docs/</a>', esc_url('http://www.specialrecentposts.com/docs/?ref=docs_ps'), __('Learn how to use SRP. View the online documentation.', SRP_TRANSLATION_ID));
    ?>
						</dd>
						<!-- BEGIN Online Documentation & F.A.Q -->

						<!-- BEGIN Social Menu -->
						<dt>
							<?php 
    _e('Follow Special Recent Posts on:', SRP_TRANSLATION_ID);
    ?>
						</dt>
						<dd>
							<ul class="srp-social-list">

								<li>
									<a class="srp-social-icon-facebook" href="https://www.facebook.com/SpecialRecentPosts/" title="<?php 
    echo esc_attr(__('Follow SRP on Facebook', SRP_TRANSLATION_ID));
    ?>
" target="_blank"></a>
								</li>

								<li>
									<a class="srp-social-icon-twitter" href="https://twitter.com/lucagrandicelli" title="<?php 
    echo esc_attr(__('Follow Luca Grandicelli on Twitter', SRP_TRANSLATION_ID));
    ?>
" target="_blank"></a>
								</li>

								<li>
									<a class="srp-social-icon-googlep" href="https://google.com/+Specialrecentposts" title="<?php 
    echo esc_attr(__('Follow SRP on Google+', SRP_TRANSLATION_ID));
    ?>
" target="_blank"></a>
								</li>

								<li>
									<a class="srp-social-icon-envato" href="http://codecanyon.net/user/lucagrandicelli" title="<?php 
    echo esc_attr(__('Follow Luca Grandicelli on Envato', SRP_TRANSLATION_ID));
    ?>
" target="_blank"></a>
								</li>
								
							</ul>
						</dd>
						<!-- END Social Menu -->

					</dl>
					<!-- BEGIN 'Plugin Notes' notes -->

					<!-- BEGIN 'Plugin Notes' credits note -->
					<p>
						<?php 
    printf(__('The Special Recent Posts plugin is created, developed and supported by %1$sLuca Grandicelli%2$s', SRP_TRANSLATION_ID), '<a href="http://www.lucagrandicelli.co.uk/?ref=author_ps" title="Luca Grandicelli | Official Website" target="_blank">', '</a>');
    ?>
					</p>
					<!-- END 'Plugin Notes' credits note -->
					
				</div>
				<!-- END 'Plugin Notes' tab content -->

			</div>
			<!-- END rab element -->

		</div>
		<!-- END menu tabs container -->

	</div>
	<!-- END SRP admin container -->

</div>
<!-- END SRP admin page -->

<?php 
    // Returning true.
    return true;
}
示例#2
0
function srp_admin_menu_options()
{
    // Checking if we have the manage option permission enabled.
    if (!current_user_can('manage_options')) {
        wp_die(__('You do not have sufficient permissions to access this page.', SRP_TRANSLATION_ID));
    }
    // For first, let's check if there is some kind of compatibility error.
    check_plugin_compatibility();
    ?>
	<!-- Generating Option Page HTML. -->
	<div class="wrap">
		<div id="srp-admin-container">
			<?php 
    // Updating and validating data/POST Check.
    srp_update_data($_POST, get_option('srp_plugin_options'));
    // Importing global default options array.
    $srp_current_options = get_option('srp_plugin_options');
    ?>
			
			<!-- BOF Title and Description section. -->
			<h2 class="srp_admin_headertitle"><?php 
    _e('Special Recent Posts FREE Edition (version ' . SRP_PLUGIN_VERSION . ') - Settings Page', SRP_TRANSLATION_ID);
    ?>
</h2>
			<div class="srp_option_header_l1">
				<?php 
    _e('<strong>Welcome to the Special Recent Posts FREE Edition Admin Panel.</strong><br /> In this page you can configure the main settings for the Special Recent Posts FREE Edition plugin. Keep in mind that these are basic options. 
				Special options apply for each widget instance, shortcode or PHP code to ensure an high level of customization. Go to Widget Page and drag the Special Recent Posts FREE Edition widget to see additional options available.', SRP_TRANSLATION_ID);
    ?>
				<div class="error">
					<h3>Want to go PRO? Special Recent Posts PRO Edition is now available. <a href="http://codecanyon.net/item/special-recent-posts-pro/552356" title="Upgrade now to Special Recent Posts PRO Edition" target="_blank">Upgrade Now!</a></h3>
				</div>
			</div>
			<!-- EOF Title and Description section. -->
				
			<!-- BOF Admin Tabs -->
			<ul id="srp_widget_tabs">
				<li>
					<a onClick="javascript:srpTabsSwitcher(1);" class="srp_tab_1 active" title="<?php 
    _e('General Settings', SRP_TRANSLATION_ID);
    ?>
" href="#"><?php 
    _e('General Settings', SRP_TRANSLATION_ID);
    ?>
</a>
				</li>
				
				<li>
					<a onClick="javascript:srpTabsSwitcher(2);" class="srp_tab_2" title="<?php 
    _e('Cache Settings', SRP_TRANSLATION_ID);
    ?>
" href="#"><?php 
    _e('Cache Settings', SRP_TRANSLATION_ID);
    ?>
</a>
				</li>
			</ul>
			<!-- EOF Admin Tabs -->
				
			
			<div class="metabox-holder" id="srp_tab1">
				<!--  Open Form. -->
				<form id="srp_admin_form" name="srp_admin_form" action="" method="POST">
					<input type="hidden" value="yes" name="srp_dataform">
					<input type="hidden" value="<?php 
    echo $srp_current_options["srp_version"];
    ?>
" name="srp_version">
					<input type="hidden" value="<?php 
    echo $srp_current_options["srp_global_post_limit"];
    ?>
" name="srp_global_post_limit">
					<div class="postbox">
						
						<h3><?php 
    _e('General Settings', SRP_TRANSLATION_ID);
    ?>
</h3>

						<!-- BOF Left Box. -->
						<div id="srp-admin-leftcontent">
							<p>
							<?php 
    _e('This is the General Settings page. Here you can customize all of the settings that globally apply to the plugin.', SRP_TRANSLATION_ID);
    ?>
							</p>
							
							<dl>
								<dt>
									<strong><?php 
    _e('Enable Compatibility Mode', SRP_TRANSLATION_ID);
    ?>
</strong>
								</dt>
								<dd>
									<?php 
    _e('This option enables some compatibility features that change the behaviour of the SRP plugin, in order to work seamlessly with other plugins.
									If you are experiencing problems with Special Recent Posts PRO and other plugins, you might want to disable this option.', SRP_TRANSLATION_ID);
    ?>
								</dd>
								
								<dt>
									<strong><?php 
    _e('Log Errors on Screen', SRP_TRANSLATION_ID);
    ?>
</strong>
								</dt>
								<dd>
									<?php 
    _e('This option enables the error logging on screen. It\'s useful to understand where something has gone wrong during the image generation process.', SRP_TRANSLATION_ID);
    ?>
								</dd>
								
								<dt>
									<strong><?php 
    _e('No-Posts Image Placeholder', SRP_TRANSLATION_ID);
    ?>
</strong>
								</dt>
								<dd>
									<?php 
    _e('This is the default image that appears when no other images are available inside a post. 
									You can use the one you prefer, by simply typing in the full URL of the image. 
									If you leave this field empty, the default no-image placeholder will be loaded.', SRP_TRANSLATION_ID);
    ?>
								</dd>
								
								<dt>
									<strong><?php 
    _e('Disable Plugin CSS?', SRP_TRANSLATION_ID);
    ?>
</strong>
								</dt>
								<dd>
									<?php 
    _e('This option enables/disables the built-in widget stylesheet. Set this option to "Yes" if you wish to use your own style.', SRP_TRANSLATION_ID);
    ?>
								</dd>
								
								<dt>
									<strong><?php 
    _e('Theme CSS', SRP_TRANSLATION_ID);
    ?>
</strong>
								</dt>
								<dd>
									<?php 
    _e('This is the global Stylesheet. All layout changements must be done here. 
									Consider that in some cases, your custom theme CSS might override these settings. 
									In this case, edit this stylesheet using the <i>"<strong>!important"</strong></i> attribute beside each rule to override your theme css rules.', SRP_TRANSLATION_ID);
    ?>
								</dd>
							</dl>
						</div>
						<!-- EOF Left Box. -->
						
						<!-- BOF Right Box. -->
						<div id="srp-admin-rightcontent">
							<ul>
								<li>
									<!--BOF Compatibility Mode -->
									<label for="srp_compatibility_mode"><?php 
    _e('Enable Compatibility Mode', SRP_TRANSLATION_ID);
    ?>
</label>
									<span class="srp-smalltext"><?php 
    _e('Switch this to No if you\'re experiencing visualization problems or other kind of incompatibility with other plugins.', SRP_TRANSLATION_ID);
    ?>
</span><br />
									<select id="srp_compatibility_mode" name="srp_compatibility_mode">
										<option value="yes" <?php 
    selected($srp_current_options["srp_compatibility_mode"], 'yes');
    ?>
><?php 
    _e('Yes', SRP_TRANSLATION_ID);
    ?>
</option>
										<option value="no" <?php 
    selected($srp_current_options["srp_compatibility_mode"], 'no');
    ?>
><?php 
    _e('No', SRP_TRANSLATION_ID);
    ?>
</option>
									</select>
									<!--EOF Compatibility Mode -->
								</li>
								
								<li>
									<!--BOF Log Errors on Screen -->
									<label for="srp_log_errors_screen"><?php 
    _e('Log Errors on Screen?', SRP_TRANSLATION_ID);
    ?>
</label>
									<span class="srp-smalltext"><?php 
    _e('Switch this to Yes if you want to log potential errors or warnings on screen.', SRP_TRANSLATION_ID);
    ?>
</span><br />
									<select id="srp_log_errors_screen" name="srp_log_errors_screen">
										<option value="yes" <?php 
    selected($srp_current_options["srp_log_errors_screen"], 'yes');
    ?>
><?php 
    _e('Yes', SRP_TRANSLATION_ID);
    ?>
</option>
										<option value="no" <?php 
    selected($srp_current_options["srp_log_errors_screen"], 'no');
    ?>
><?php 
    _e('No', SRP_TRANSLATION_ID);
    ?>
</option>
									</select>
									<!--EOF Log Errors on Screen -->
								</li>
								
								
								<!--BOF Thumbnail Custom URL -->
								<li>
									<label for="srp_noimage_url"><?php 
    _e('No-Posts Image Placeholder', SRP_TRANSLATION_ID);
    ?>
</label>
									<input type="text" id="srp_noimage_url" name="srp_noimage_url" value="<?php 
    echo stripslashes($srp_current_options['srp_noimage_url']);
    ?>
" size="90" /><br />
									<span class="srp-smalltext"><?php 
    _e('Enter the absolute url of the image placeholder. Default size: 100px x 100px.', SRP_TRANSLATION_ID);
    ?>
</span>
								</li>
								<!--EOF Thumbnail Custom URL -->
								
								<!--BOF Disable Theme CSS -->
								<li>
									<label for="srp_disable_theme_css"><?php 
    _e('Disable Plugin CSS?', SRP_TRANSLATION_ID);
    ?>
</label>
									<select id="srp_disable_theme_css" name="srp_disable_theme_css">
										<option value="yes" <?php 
    selected($srp_current_options["srp_disable_theme_css"], 'yes');
    ?>
><?php 
    _e('Yes', SRP_TRANSLATION_ID);
    ?>
</option>
										<option value="no" <?php 
    selected($srp_current_options["srp_disable_theme_css"], 'no');
    ?>
><?php 
    _e('No', SRP_TRANSLATION_ID);
    ?>
</option>
									</select>
								</li>
								<!--EOF Disable Theme CSS -->								
							</ul>
						</div>
						<!-- EOF Right Box. -->
						
						<div class="clearer"></div>
						
					</div><!-- EOF postbox. -->
					<input type="submit" name="submit" class="button-primary" value="<?php 
    _e('Save Options', SRP_TRANSLATION_ID);
    ?>
" />
				</form> <!--EOF Form. -->
			</div><!-- EOF metabox-holder. -->
		
			<div class="metabox-holder" id="srp_tab2">
				<form id="srp-cache-flush-form" action="" method="POST">
					<div class="postbox">
						
						<h3><?php 
    _e('Cache Settings', SRP_TRANSLATION_ID);
    ?>
</h3>
						<!-- BOF Left Box. -->
						<div id="srp-admin-leftcontent">
							<dl>
								<dt>
									<strong><?php 
    _e('Empty Cache Folder', SRP_TRANSLATION_ID);
    ?>
</strong>
								</dt>
								<dd>
									<?php 
    _e('Click this button to empty the thumbnails cache folder.', SRP_TRANSLATION_ID);
    ?>
								</dd>
						</div>
						<!-- EOF Left Box. -->
						
						<!-- BOF Right Box. -->
						<div id="srp-admin-rightcontent">
							
							<input type="hidden" value="yes" name="cache_flush">
							<input type="submit" value="<?php 
    _e('Empty Cache Folder', SRP_TRANSLATION_ID);
    ?>
" class="button-primary">
							
							<!-- EOF Cache Flush Section -->
						</div>

						<div class="clearer"></div>		
					</div><!-- EOF postbox. -->
				</form>
			</div><!-- EOF metabox-holder. -->
		</div> <!-- EOF srp_adm_container -->
	</div> <!-- EOF Wrap. -->
<?php 
}