diff options
Diffstat (limited to 'themes/mantra/admin')
-rw-r--r-- | themes/mantra/admin/defaults.php | 5 | ||||
-rw-r--r-- | themes/mantra/admin/js/admin.js | 8 | ||||
-rw-r--r-- | themes/mantra/admin/main.php | 1 | ||||
-rw-r--r-- | themes/mantra/admin/settings.php | 18 |
4 files changed, 28 insertions, 4 deletions
diff --git a/themes/mantra/admin/defaults.php b/themes/mantra/admin/defaults.php index 8acc4c21..0668296f 100644 --- a/themes/mantra/admin/defaults.php +++ b/themes/mantra/admin/defaults.php @@ -176,7 +176,7 @@ $mantra_defaults = array( "mantra_excerptarchive" => "Excerpt", "mantra_excerptwords" => "50", "mantra_magazinelayout" => "Disable", - "mantra_excerptdots" => "…", + "mantra_excerptdots" => "...", "mantra_excerptcont" => " Continue reading", "mantra_excerpttags" => "Disable", @@ -206,7 +206,8 @@ $mantra_defaults = array( "mantra_copyright" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla massa diam, tempus a finibus et, euismod nec arcu. Praesent ultrices massa at molestie facilisis.", "mantra_customcss" => "/* Mantra Custom CSS */ ", - "mantra_customjs" => "" + "mantra_customjs" => "", + "mantra_editorstyle" => 1, ); diff --git a/themes/mantra/admin/js/admin.js b/themes/mantra/admin/js/admin.js index d518ed2b..d026e51f 100644 --- a/themes/mantra/admin/js/admin.js +++ b/themes/mantra/admin/js/admin.js @@ -68,34 +68,42 @@ jQuery(document).ready(function() { case "Slider Shortcode" : jQuery('#sliderShortcode').show("normal"); + jQuery('#sliderParameters').hide("normal"); break; case "Custom Slides" : jQuery('#sliderCustomSlides').show("normal"); + jQuery('#sliderParameters').show("normal"); break; case "Latest Posts" : jQuery('#sliderLatestPosts').show("normal"); + jQuery('#sliderParameters').show("normal"); break; case "Random Posts" : jQuery('#sliderRandomPosts').show("normal"); + jQuery('#sliderParameters').show("normal"); break; case "Sticky Posts" : jQuery('#sliderStickyPosts').show("normal"); + jQuery('#sliderParameters').show("normal"); break; case "Latest Posts from Category" : jQuery('#sliderLatestCateg').show("normal"); + jQuery('#sliderParameters').show("normal"); break; case "Random Posts from Category" : jQuery('#sliderRandomCateg').show("normal"); + jQuery('#sliderParameters').show("normal"); break; case "Specific Posts" : jQuery('#sliderSpecificPosts').show("normal"); + jQuery('#sliderParameters').show("normal"); break; }//switch diff --git a/themes/mantra/admin/main.php b/themes/mantra/admin/main.php index 35500898..d769a9e6 100644 --- a/themes/mantra/admin/main.php +++ b/themes/mantra/admin/main.php @@ -215,6 +215,7 @@ function mantra_init_fn(){ add_settings_field('mantra_copyright', __('Custom Footer Text','mantra') , 'cryout_setting_copyright_fn', 'mantra-page', 'misc_section'); add_settings_field('mantra_customcss', __('Custom CSS','mantra') , 'cryout_setting_customcss_fn', 'mantra-page', 'misc_section'); add_settings_field('mantra_customjs', __('Custom JavaScript','mantra') , 'cryout_setting_customjs_fn', 'mantra-page', 'misc_section'); + add_settings_field('mantra_editorstyle', __('Editor Styling','mantra') , 'cryout_setting_editorstyle_fn', 'mantra-page', 'misc_section'); } // Display the admin options page diff --git a/themes/mantra/admin/settings.php b/themes/mantra/admin/settings.php index 7f21ab3c..553b2d6f 100644 --- a/themes/mantra/admin/settings.php +++ b/themes/mantra/admin/settings.php @@ -182,7 +182,7 @@ function cryout_setting_frontslider_fn() { echo "<input id='mantra_fpsliderheight' name='ma_options[mantra_fpsliderheight]' size='4' type='text' value='".esc_attr( $mantra_options['mantra_fpsliderheight'] )."' /> px (".__("height","mantra").")"; echo "<small>".__("The dimensions of your slider. Make sure your images are of the same size.","mantra")."</small></div>"; - echo "<div class='slmini'><b>".__("Animation:","mantra")."</b> "; + echo "<div id='sliderParameters'><div class='slmini'><b>".__("Animation:","mantra")."</b> "; $options = array ("random" , "fold", "fade", "slideInRight", "slideInLeft", "sliceDown", "sliceDownLeft", "sliceUp", "sliceUpLeft", "sliceUpDown" , "sliceUpDownLeft", "boxRandom", "boxRain", "boxRainReverse", "boxRainGrow" , "boxRainGrowReverse"); $labels = array( __("Random","mantra"), __("Fold","mantra"), __("Fade","mantra"), __("SlideInRight","mantra"), __("SlideInLeft","mantra"), __("SliceDown","mantra"), __("SliceDownLeft","mantra"), __("SliceUp","mantra"), __("SliceUpLeft","mantra"), __("SliceUpDown","mantra"), __("SliceUpDownLeft","mantra"), __("BoxRandom","mantra"), __("BoxRain","mantra"), __("BoxRainReverse","mantra"), __("BoxRainGrow","mantra"), __("BoxRainGrowReverse","mantra")); echo "<select id='mantra_fpslideranim' name='ma_options[mantra_fpslideranim]'>"; @@ -231,7 +231,7 @@ function cryout_setting_frontslider_fn() { echo ">$labels[$id]</option>"; } echo "</select>"; - echo "<small>".__("The Left and Right arrows on your slider","mantra")."</small></div>"; + echo "<small>".__("The Left and Right arrows on your slider","mantra")."</small></div><div><!--#sliderParameters-->"; ?> <script> @@ -1664,4 +1664,18 @@ function cryout_setting_customjs_fn() { echo "<div><small>".__("Insert your custom Javascript code here. (Google Analytics and any other forms of Analytic software).<br> The <script> tags are not needed.","mantra")."</small></div>"; } +function cryout_setting_editorstyle_fn() { + global $mantra_options; + $items = array (1, 0); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo "<select id='mantra_editorstyle' name='ma_options[mantra_editorstyle]'>"; + foreach($items as $id=>$item) { + echo "<option value='$item'"; + selected($mantra_options['mantra_editorstyle'],$item); + echo ">$itemsare[$id]</option>"; + } + echo "</select>"; + echo "<div><small>".__("Disable to turn off the theme's styling in the Visual Editor.","mantra")."</small></div>"; +} + // FIN
\ No newline at end of file |