From e04e494fa17cd2b010185b7f30a032857406316d Mon Sep 17 00:00:00 2001
From: "Anthony G. Basile"
Date: Tue, 23 Aug 2016 20:11:24 -0400
Subject: Update theme mantra to 2.6.0
---
themes/mantra/404.php | 62 +-
themes/mantra/admin/admin-functions.php | 450 +-
themes/mantra/admin/css/admin.css | 1296 +--
themes/mantra/admin/custom-styles.php | 598 +-
themes/mantra/admin/defaults.php | 424 +-
themes/mantra/admin/js/accordion-slider.js | 190 +-
themes/mantra/admin/js/admin.js | 434 +-
themes/mantra/admin/main.php | 958 +--
themes/mantra/admin/sanitize.php | 478 +-
themes/mantra/admin/settings.php | 4112 ++++-----
themes/mantra/archive.php | 150 +-
themes/mantra/attachment.php | 238 +-
themes/mantra/author.php | 182 +-
themes/mantra/category.php | 134 +-
themes/mantra/comments.php | 106 +-
themes/mantra/content-aside.php | 100 +-
themes/mantra/content-chat.php | 102 +-
themes/mantra/content-frontpage.php | 72 +-
themes/mantra/content-gallery.php | 154 +-
themes/mantra/content-image.php | 88 +-
themes/mantra/content-link.php | 102 +-
themes/mantra/content-page.php | 60 +-
themes/mantra/content-quote.php | 96 +-
themes/mantra/content-status.php | 100 +-
themes/mantra/content.php | 166 +-
themes/mantra/editor-style-rtl.css | 110 +-
themes/mantra/editor-style.css | 572 +-
themes/mantra/footer.php | 76 +-
themes/mantra/functions.php | 52 +-
themes/mantra/header.php | 116 +-
themes/mantra/includes/tgm.php | 7342 ++++++++--------
themes/mantra/includes/theme-comments.php | 284 +-
themes/mantra/includes/theme-frontpage.php | 474 +-
themes/mantra/includes/theme-functions.php | 960 +--
themes/mantra/includes/theme-hooks.php | 318 +-
themes/mantra/includes/theme-loop.php | 608 +-
themes/mantra/includes/theme-setup.php | 862 +-
themes/mantra/includes/theme-styles.php | 264 +-
themes/mantra/index.php | 112 +-
themes/mantra/js/PIE/PIE.js | 174 +-
themes/mantra/js/PIE/PIE.php | 36 +-
themes/mantra/js/PIE/PIE_uncompressed.js | 8946 ++++++++++----------
themes/mantra/js/frontend.js | 510 +-
.../css/ui-lightness/jquery-ui-1.8.16.custom.css | 1134 +--
themes/mantra/js/nivo-slider.js | 18 +-
themes/mantra/languages/_mantra.po | 4644 +++++-----
themes/mantra/languages/cs_CZ.po | 5222 ++++++------
themes/mantra/languages/da_DK.po | 4850 +++++------
themes/mantra/languages/de_DE.mo | Bin 41890 -> 0 bytes
themes/mantra/languages/de_DE.po | 2461 ------
themes/mantra/languages/el.po | 4336 +++++-----
themes/mantra/languages/es_ES.mo | Bin 50716 -> 0 bytes
themes/mantra/languages/es_ES.po | 2219 -----
themes/mantra/languages/fa_IR.po | 3840 ++++-----
themes/mantra/languages/fr_FR.mo | Bin 58536 -> 0 bytes
themes/mantra/languages/fr_FR.po | 2617 ------
themes/mantra/languages/he_IL.po | 3778 ++++-----
themes/mantra/languages/hu_HU.po | 4596 +++++-----
themes/mantra/languages/it_IT.mo | Bin 51078 -> 0 bytes
themes/mantra/languages/it_IT.po | 2331 -----
themes/mantra/languages/ja.po | 4176 ++++-----
themes/mantra/languages/ja_JP.po | 4176 ++++-----
themes/mantra/languages/nb_NO.po | 3638 ++++----
themes/mantra/languages/nl_NL.mo | Bin 40887 -> 0 bytes
themes/mantra/languages/nl_NL.po | 2456 ------
themes/mantra/languages/pl_PL.po | 4246 +++++-----
themes/mantra/languages/pt_BR.po | 4270 +++++-----
themes/mantra/languages/ru_RU.mo | Bin 64420 -> 0 bytes
themes/mantra/languages/ru_RU.po | 2313 -----
themes/mantra/languages/tr_TR.po | 4194 ++++-----
themes/mantra/languages/zh_CN.po | 3690 ++++----
themes/mantra/license.txt | 562 +-
themes/mantra/page.php | 68 +-
themes/mantra/readme.txt | 627 +-
themes/mantra/rtl.css | 804 +-
themes/mantra/search.php | 106 +-
themes/mantra/searchform.php | 20 +-
themes/mantra/sidebar-footer.php | 118 +-
themes/mantra/sidebar.php | 290 +-
themes/mantra/single.php | 146 +-
themes/mantra/style-mobile.css | 388 +-
themes/mantra/style.css | 5333 ++++++------
themes/mantra/tag.php | 136 +-
themes/mantra/template-blog.php | 108 +-
themes/mantra/template-onecolumn.php | 78 +-
themes/mantra/template-page-with-intro.php | 108 +-
themes/mantra/template-threecolumns-center.php | 50 +-
themes/mantra/template-threecolumns-left.php | 50 +-
themes/mantra/template-threecolumns-right.php | 50 +-
themes/mantra/template-twocolumns-left.php | 50 +-
themes/mantra/template-twocolumns-right.php | 50 +-
91 files changed, 51300 insertions(+), 65715 deletions(-)
delete mode 100644 themes/mantra/languages/de_DE.mo
delete mode 100644 themes/mantra/languages/de_DE.po
delete mode 100644 themes/mantra/languages/es_ES.mo
delete mode 100644 themes/mantra/languages/es_ES.po
delete mode 100644 themes/mantra/languages/fr_FR.mo
delete mode 100644 themes/mantra/languages/fr_FR.po
delete mode 100644 themes/mantra/languages/it_IT.mo
delete mode 100644 themes/mantra/languages/it_IT.po
delete mode 100644 themes/mantra/languages/nl_NL.mo
delete mode 100644 themes/mantra/languages/nl_NL.po
delete mode 100644 themes/mantra/languages/ru_RU.mo
delete mode 100644 themes/mantra/languages/ru_RU.po
(limited to 'themes')
diff --git a/themes/mantra/404.php b/themes/mantra/404.php
index cd47c44f..150ee244 100644
--- a/themes/mantra/404.php
+++ b/themes/mantra/404.php
@@ -1,32 +1,32 @@
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/themes/mantra/admin/admin-functions.php b/themes/mantra/admin/admin-functions.php
index 22e77a6c..a7d8b83e 100644
--- a/themes/mantra/admin/admin-functions.php
+++ b/themes/mantra/admin/admin-functions.php
@@ -1,226 +1,226 @@
-
-
-
Where are the theme settings?
-
Following the Wordpress Theme Review Guidelines , starting with Mantra v2.5 we had to remove the settings page from the theme and transfer all the settings to the Customizer interface.
-
However, we feel that the Customizer interface does not provide the right medium (in space of terms and usability) for our existing theme options. We've created our settings with a certain layout that is not yet compatible with the Customizer interface.
-
As an alternative solution that allows us to keep updating and improving our theme we have moved the settings functionality to the separate Cryout Serious Theme Settings plugin. To restore the theme settings page to previous functionality, all you need to do is install this free plugin with a couple of clicks.
-
How do I restore the settings?
-
Navigate to this page to install and activate the Cryout Serious Theme Settings plugin, then return here to find the settings page in all its past glory.
-
The plugin is compatible with all our themes that are affected by this change and only needs to be installed once.
-
If you already have the plugin installed make sure you have it updated to the latest available version.
-
-
-
-
-
- 0) ) ) {
-
- $form_fields = array('import');
- $method = '';
-
- $url = wp_nonce_url('themes.php?page=mantra-page', 'mantra-import');
-
- // Get file writing credentials
- if (false === ($creds = request_filesystem_credentials($url, $method, false, false, $form_fields) ) ) {
- return true;
- }
-
- if ( ! WP_Filesystem($creds) ) {
- // our credentials were no good, ask the user for them again
- request_filesystem_credentials($url, $method, true, false, $form_fields);
- return true;
- }
-
- // Write the file if credentials are good
- $upload_dir = wp_upload_dir();
- $filename = trailingslashit($upload_dir['path']).'mantra_options.txt';
-
- // by this point, the $wp_filesystem global should be working, so let's use it to create a file
- global $wp_filesystem;
- if ( ! $wp_filesystem->move($_FILES['import']['tmp_name'], $filename, true) ) {
- echo 'Error saving file!';
- return;
- }
-
- $file = $_FILES['import'];
-
- if ($file['type'] == 'text/plain') {
- $data = $wp_filesystem->get_contents($filename);
- // try to read the file
- if ($data !== FALSE){
- $settings = json_decode($data, true);
- // try to read the settings array
- if (isset($settings['mantra_db'])){ ?>
- ';
- }
- else { // else: try to read the settings array
- echo ''.__('Oops, there\'s a small problem.', 'mantra').' ';
- echo __('The uploaded file does not contain valid Mantra options. Make sure the file is exported from the Mantra Options page.', 'mantra').'
';
- mantra_import_form();
- }
- }
- else { // else: try to read the file
- echo ''.__('Oops, there\'s a small problem.', 'mantra').' ';
- echo __('The uploaded file could not be read.', 'mantra').'
';
- mantra_import_form();
- }
- }
- else { // else: make sure the file uploaded was a plain text file
- echo ''.__('Oops, there\'s a small problem.', 'mantra').' ';
- echo __('The uploaded file is not supported. Make sure the file was exported from the Mantra page and that it is a text file.', 'mantra').'
';
- mantra_import_form();
- }
-
- // Delete the file after we're done
- $wp_filesystem->delete($filename);
-
- }
- else { // else: make sure there is an import file uploaded
- echo ''.__( 'Oops! The file is empty or there was no file. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.', 'mantra' ).'
';
- mantra_import_form();
- }
- echo ' ';
- }
- else {
- wp_die(__('ERROR: You are not authorised to perform that operation', 'mantra'));
- }
-} // Closes the mantra_import_file() function definition
-
-// Truncate function for use in the Admin RSS feed
-function mantra_truncate_words($string,$words=20, $ellipsis=' ...') {
- $new = preg_replace('/((\w+\W+\'*){'.($words-1).'}(\w+))(.*)/', '${1}', $string);
- return $new.$ellipsis;
-}
-
-// Synchronizing the tinymce width with the content width
-add_filter('tiny_mce_before_init', 'mantra_dynamic_editor_styles', 10);
-function mantra_dynamic_editor_styles($settings){
- $settings['content_css'] .= ",".admin_url('admin-ajax.php') ."/?action=dynamic_styles";
- return $settings;
-}
-
-// add wp_ajax callback
-add_action('wp_ajax_dynamic_styles', 'mantra_dynamic_styles_callback');
-function mantra_dynamic_styles_callback(){
- global $mantra_options;
- echo "html .mceContentBody , .mceContentBody img {max-width:".$mantra_options['mantra_sidewidth']."px;}";
-}
+
+
+
Where are the theme settings?
+
Following the Wordpress Theme Review Guidelines , starting with Mantra v2.5 we had to remove the settings page from the theme and transfer all the settings to the Customizer interface.
+
However, we feel that the Customizer interface does not provide the right medium (in space of terms and usability) for our existing theme options. We've created our settings with a certain layout that is not yet compatible with the Customizer interface.
+
As an alternative solution that allows us to keep updating and improving our theme we have moved the settings functionality to the separate Cryout Serious Theme Settings plugin. To restore the theme settings page to previous functionality, all you need to do is install this free plugin with a couple of clicks.
+
How do I restore the settings?
+
Navigate to this page to install and activate the Cryout Serious Theme Settings plugin, then return here to find the settings page in all its past glory.
+
The plugin is compatible with all our themes that are affected by this change and only needs to be installed once.
+
If you already have the plugin installed make sure you have it updated to the latest available version.
+
+
+
+
+
+ 0) ) ) {
+
+ $form_fields = array('import');
+ $method = '';
+
+ $url = wp_nonce_url('themes.php?page=mantra-page', 'mantra-import');
+
+ // Get file writing credentials
+ if (false === ($creds = request_filesystem_credentials($url, $method, false, false, $form_fields) ) ) {
+ return true;
+ }
+
+ if ( ! WP_Filesystem($creds) ) {
+ // our credentials were no good, ask the user for them again
+ request_filesystem_credentials($url, $method, true, false, $form_fields);
+ return true;
+ }
+
+ // Write the file if credentials are good
+ $upload_dir = wp_upload_dir();
+ $filename = trailingslashit($upload_dir['path']).'mantra_options.txt';
+
+ // by this point, the $wp_filesystem global should be working, so let's use it to create a file
+ global $wp_filesystem;
+ if ( ! $wp_filesystem->move($_FILES['import']['tmp_name'], $filename, true) ) {
+ echo 'Error saving file!';
+ return;
+ }
+
+ $file = $_FILES['import'];
+
+ if ($file['type'] == 'text/plain') {
+ $data = $wp_filesystem->get_contents($filename);
+ // try to read the file
+ if ($data !== FALSE){
+ $settings = json_decode($data, true);
+ // try to read the settings array
+ if (isset($settings['mantra_db'])){ ?>
+ ';
+ }
+ else { // else: try to read the settings array
+ echo ''.__('Oops, there\'s a small problem.', 'mantra').' ';
+ echo __('The uploaded file does not contain valid Mantra options. Make sure the file is exported from the Mantra Options page.', 'mantra').'
';
+ mantra_import_form();
+ }
+ }
+ else { // else: try to read the file
+ echo ''.__('Oops, there\'s a small problem.', 'mantra').' ';
+ echo __('The uploaded file could not be read.', 'mantra').'
';
+ mantra_import_form();
+ }
+ }
+ else { // else: make sure the file uploaded was a plain text file
+ echo ''.__('Oops, there\'s a small problem.', 'mantra').' ';
+ echo __('The uploaded file is not supported. Make sure the file was exported from the Mantra page and that it is a text file.', 'mantra').'
';
+ mantra_import_form();
+ }
+
+ // Delete the file after we're done
+ $wp_filesystem->delete($filename);
+
+ }
+ else { // else: make sure there is an import file uploaded
+ echo ''.__( 'Oops! The file is empty or there was no file. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.', 'mantra' ).'
';
+ mantra_import_form();
+ }
+ echo ' ';
+ }
+ else {
+ wp_die(__('ERROR: You are not authorised to perform that operation', 'mantra'));
+ }
+} // Closes the mantra_import_file() function definition
+
+// Truncate function for use in the Admin RSS feed
+function mantra_truncate_words($string,$words=20, $ellipsis=' ...') {
+ $new = preg_replace('/((\w+\W+\'*){'.($words-1).'}(\w+))(.*)/', '${1}', $string);
+ return $new.$ellipsis;
+}
+
+// Synchronizing the tinymce width with the content width
+add_filter('tiny_mce_before_init', 'mantra_dynamic_editor_styles', 10);
+function mantra_dynamic_editor_styles($settings){
+ $settings['content_css'] .= ",".admin_url('admin-ajax.php') ."/?action=dynamic_styles";
+ return $settings;
+}
+
+// add wp_ajax callback
+add_action('wp_ajax_dynamic_styles', 'mantra_dynamic_styles_callback');
+function mantra_dynamic_styles_callback(){
+ global $mantra_options;
+ echo "html .mceContentBody , .mceContentBody img {max-width:".$mantra_options['mantra_sidewidth']."px;}";
+}
?>
\ No newline at end of file
diff --git a/themes/mantra/admin/css/admin.css b/themes/mantra/admin/css/admin.css
index 7f20e131..7da46631 100644
--- a/themes/mantra/admin/css/admin.css
+++ b/themes/mantra/admin/css/admin.css
@@ -1,648 +1,648 @@
- /* Farbtastic overwrites */
-
-.farbtastic {
- position: absolute !important;
- z-index:2;
-margin-left:50px;
-margin-top:-110px;
-background-color:#F7F7F7;
-border:1px solid #CCC;
-}
-.farbtastic * {
- position: absolute;
- cursor: crosshair;
-}
-.farbtastic, .farbtastic .wheel {
- width: 195px;
- height: 195px;
-}
-.farbtastic .color, .farbtastic .overlay {
- top: 47px;
- left: 47px;
- width: 101px;
- height: 101px;
-}
-
-
-/* end of Farbtastic overwrites */
-
-.form-table, .form-table td, .form-table th, .form-table td p, .form-wrap label {
-font-size:13px;
-}
-
-
-#lefty {
-clear:left;
-float:left;
-width:60%;
-min-width:500px;
-max-width:820px;
-margin-right:1%;
-}
-
-#main-options {
-width:100%;
-display:block;
-clear:left;
-/*border:1px solid #DFDFDF;
-background:#F5F5F5;
-border-radius:5px;
--moz-border-radius:5px;
--webkit-border-radius:5px;
-*/
-padding-top:10px;
-font-family: Segoe UI !important;
-font-size: 12px;
-margin-bottom:10px;
-
-}
-
- #righty {
-float:left;
-width:39%;
-margin-top:10px;
-}
-#righty p, #righty span, .form-table small, #righty ul li, #righty h3 {
-font-size: 12px;
-color:#444;
-font-family:Segoe UI;
-}
-
-.form-table small {
-font-style:italic;
-display:block;
-float:none;
-clear:both;
-}
-
- .donate, .support {
-width:100%;
-}
-
-.postbox .hndle {
- cursor: auto;
- font-size: 13px;
- margin: 0;
- padding: 6px 10px 7px;
-}
-
-
-.wrap h2 {
-font-family: Calibri, Arial !important;
-margin-bottom:5px;
-}
-
-#accordion {
-margin:0px auto;
-font-family:Segoe UI,Calibri, Arial !important;
-display:block;
-float:none;
-border:10px solid #FFF;
--moz-box-sizing:border-box;
--webkit-box-sizing:border-box;
-box-sizing:border-box;
-}
-
-#submitDiv {
-display:block;
-float:none;
-height:30px;
-margin:10px 40px;
-font-family:Segoe UI,Calibri, Arial !important;
-}
-
-#version {
-display:block;
-float:none;
-clear:both;
-padding-top:10px;
-margin-left:20px;
-color:#666;
-}
-
-#accordion h3, #accordion h2 {
-border:none;
-background-image:none;
-background:#F5F5F5;
-margin:0;
-padding:8px;
-clear:both;
-display:block;
-float:none;
-font-size: 17px ;
-padding-left:30px ;
-font-weight:normal;
-text-transform:uppercase;
-color:#555;
-border-top:1px solid #FFF;
-border-bottom:1px solid #E5E5E5;
-line-height: 1.3;
--moz-border-radius:0;
--webkit-border-radius:0;
-border-radius:0;
-transition:background ease .3s;
-}
-
-#accordion h3:hover, #accordion h2:hover {
-background:#FFF;
-}
-
-#accordion select option {
-font-size:1.1em;
-}
-
-.form-table th, .form-wrap label {
- color: #444 !important;
-font-size: 15px;
-font-weight:normal;
-text-transform:uppercase;
-background:#F7F7F7;
-border-bottom:1px solid #FFF;
-padding:10px;
-}
-
-.form-table tr {
-border-bottom:1px solid #F7F7F7;
-}
-
-.form-table tr:last-child {
-border-bottom:none;
-}
-
-.form-table td {
-vertical-align:middle;
-}
-
-input[type="text"] , select {
-border:1px solid #AAA !important;
-border-radius:2px;
--moz-border-radius:2px;
--webkit-border-radius:2px;
-}
-
-.submit {
-text-align:right;
-margin-right:20px;
-}
-
- #accordion select {
-min-width:120px;
-max-width:200px;
-padding:3px 5px;
-}
-
- #accordion textarea, #mantra_favicon {
-max-width:90%;
-}
-
-.googlefonts {
-width:200px;
-}
-
-/* Images */
-
-
-.images {
-display:inline-block;
-}
-
-#imageOne {
-border:1px solid #DDD !important;
-padding:3px;
- height: auto;
-}
-
-#imageTwo{
- background-color: #FFFFFF;
- border: 1px solid #EEE;
- -moz-border-radius: 3px;
- -webkit-border-radius: 3px;
- border-radius: 3px;
- padding: 3px;
- -moz-box-shadow:0px 0px 4px #CCC;
- -webkit-box-shadow:0px 0px 4px #CCC;
- box-shadow:0px 0px 4px #CCC;
-}
-
-#imageThree{
- background-color: #FFFFFF;
- border: 6px solid #EEEEEE;
- -moz-border-radius: 5px 5px 5px 5px;
- -webkit-border-radius: 5px 5px 5px 5px;
- border-radius: 5px 5px 5px 5px;
- padding: 3px;
-}
-
-
-
-#imageFour{
-border:1px solid #666 !important;
- -moz-box-shadow:0px 0px 4px #666;
- -webkit-box-shadow:0px 0px 4px #666;
- box-shadow:0px 3px 4px #999;
-}
-
-#imageFive{
-border:3px solid #DDD !important;
-}
-
-#imageSix{
-border:8px solid #BBB !important;
- -moz-box-shadow:0px 0px 5px #333;
- -webkit-box-shadow:0px 0px 5px #333;
- box-shadow: 0px 0px 5px #333;
-}
-
-#imageSeven{
- background-color: #FFFFFF;
- border: 1px solid #CCC;
- padding: 7px;
- -moz-box-shadow:2px 2px 2px #CCC;
- -webkit-box-shadow:2px 2px 2px #CCC;
- box-shadow:inset 0px 0px 7px #CCC;
-}
-
-/* Labels */
-
-label {
-display:inline-block;
-width:auto;
-border:2px solid #FFF;
-text-align:center;
-background-color:#FFF;
-padding:5px 2px;
--ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
-filter: alpha(opacity=80);
-opacity:0.8;
-}
-
-label.hideareas {
-display:block;
-float:none;
-text-align:left;
-
-}
-
-label:hover {
- -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
- filter: alpha(opacity=100);
- opacity:1;
-background-color:#EEE;
-}
-
-
-label input[type=radio] {
-display:none;
-}
-
-label.layouts {
-display:block;
-float:left;
-padding:3px;
-height:55px;
-}
-
-label.layouts:hover {
-background:none;
-border:2px solid #CCC;
-}
-
-
-.layouts img {
-width:60px;
-}
-
-.layouts img, .images img {
-pointer-events: none;
-}
-
-
-.borderful {
-border-color:#F6A828 ;
- -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
- filter: alpha(opacity=100);
- opacity:1;
-}
-
- label.layouts.checkedClass, label.images.checkedClass, label.pins.checkedClass, label.sidebullets.checkedClass {
-border-color:#F6A828;
--ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
-filter: alpha(opacity=100);
-opacity:1;
-}
-
-
-#accordion input[type="text"] {
-font-family:"Lucida Console", Monaco, monospace !important;
-font-size:12px;
-padding:6px;
-}
-
-#accordion > * {
-display:none;
-}
-
-#accordion > h3, #accordion > h2 {
-display:block;
-}
-
-.ui-accordion-content {
-background:#FFF !important;
-margin-bottom:10px !important;
-border:none !important;
-overflow: hidden;
-padding:1em !important;
-}
-.ui-accordion .ui-accordion-content { overflow: hidden !important;padding:0 !important; }
-.ui-accordion .ui-accordion-content-overflow { overflow: visible !important; }
-
-.ui-state-active {
- background:#444 !important;
- color:#FFF !important;
- border:none !important;
-}
-
-.darkbg{
- background:#ddd !important;
-}
-#status{
- font-family:Arial; padding:5px;
-}
-ul#files{ list-style:none; padding:0; margin:0; }
-ul#files li{ padding:10px; margin-bottom:2px; width:400px; float:left; margin-right:10px;}
-ul#files li img{ max-width:180px; max-height:150px; }
-.success{ background:#99f099; border:1px solid #339933; }
-.error{ background:#f0c6c3; border:1px solid #cc6622; }
-
-#uploadpreview {
-max-width:64px;
-display:block;float:left;
-border:1px solid #DDD;
-padding:2px;
-}
-
-#filename {
-display:block;
-width:auto;
-float:left;
-margin-left:10px;
-font-weight:bold;
-}
-
-#uploadarea {
-margin-top:10px;
-}
-
-#absolutedim, #relativedim {
-margin-top:30px;
-position:relative;
-}
-#absolutedim small, #relativedim small{
-margin-top:20px;}
-
-.slmini, #cdimensions {
-display:block;
-float:none;
-}
-
-.slmini {
-background:#F9F9F9;
-border-bottom:1px solid #E7E7E7;
-padding:15px 5px 15px 10px;
-}
-
-.slmini b {
-width:130px;
-display:inline-block;
-float:left;
-text-transform:uppercase;
-font-weight:normal;
-font-style:italic;
-}
-
-.slidebox {
-background:#F7F7F7;
-border-bottom:2px solid #eaeaea;
-transition:border-color .3s ease-in-out;
-}
-
-.slidebox:hover {
-border-color:#8CB3B3;
-}
-
-.slidercontent{
-display:none;
-padding:0 10px 10px;
-}
-
-
-.slidetitle{
-color:#777;
-background:#F7F7F7;
-padding: 2px 10px;
-margin:3px;
-cursor:pointer;
-}
-
-.slidetitle:after {
-content:"\25BC";
-float:right;
-margin-right:5px;
-color:#AAA;
-font-size:10px;
-}
-
-.slidetitle:hover{
-background:#F6F6F6;
-}
-
-.slidetitle:hover:after {
-color:#6C9393;
-}
-
-.slidebox h5 {
-display:inline-block;
-float:none;
-font-size:12px;
-background:#FFF;
-color:#777;
-padding:0 10px;
-margin:10px 0px 0 10px;
-position:relative;
-top:2px;
-border:1px solid #DFDFDF;
-border-bottom:none;
--moz-border-radius:4px;
--webkit-border-radius:4px;
-border-radius:4px;
-}
-
-.slidebox .description {
-display:block;
-float:none;
-}
-
-.slidebox input[type="text"], .slidebox textarea {
-width:100%;
-border-color:#DFDFDF !important;
-color:#444;
-}
-
-#sliderCustomSlides {margin-top:10px;}
-
-a.upload_image_button {
-text-decoration:none;
-clear:both;
-padding:2px 4px;
-display:block;
-float:none;
-}
-
-
-.wp-core-ui .button, .wp-core-ui .button-secondary {
-background:#FFF;
-text-transform:uppercase;
--moz-border-radius:0;
--webkit-border-radius:0;
-border-radius:0;
-border-bottom:1px solid #555;
-}
-
-.wp-core-ui .button:hover, .wp-core-ui .button-secondary:hover {
-border-bottom:1px solid #000;
-}
-
-#submitDiv input.button {
-font-size:13px !important;
-padding:4px 10px !important;
-height:auto;
-text-transform:uppercase;
-border-bottom:3px solid #555;
-}
-
-.header_upload_inputs {
-width:300px;
-}
-
-/* NEWS LISTS */
-
-#righty .news-list li {
-background:#FFF;
-padding:7px;
-border:1px solid #EEE;
-}
-
-#righty span.news-item-date {
-color:#999;
-font-size:11px;
-}
-
-a.news-header {
-text-decoration:none;
-color:#4C7373;
-font-size:14px;
-font-weight:bold;
-text-transform:uppercase;
-}
-
-a.news-header:hover, a.news-read:hover {
-color:#C47D09 !important;
-}
-
-/*Tooltip */
-
-.tooltip_div{
-display:inline-block;
-clear:none;
-height:22px;
-line-height:22px;
-}
-
-a.tooltip{
-display:inline-block;
-clear:none;
-height:22px;
-line-height:22px;
-margin-left:7px;
-}
-
-a.tooltip img {
-vertical-align:bottom;
-}
-
-.ui-tooltip {
-display:block;
-max-width:300px;
-padding:5px;
-z-index:3;
-}
-
-/* ADMIN HEADER AND LINKS */
-
-#admin_header {
- padding-top:10px;
- padding-left:20px;
- display:block;
- float:left;
- }
-#admin_links {
- display:block;
- float:left;
- clear:both;
- text-align:left;
- margin-left:97px;
- margin-top:-17px;
- }
-
-#admin_links a {
-display:block;
-float:left;
-margin-left:3px;
-margin-right:9px;
-text-decoration:none;
-font-family:Segoe UI, Arial;
-font-size:11px;
-color:#000000;
-text-transform:uppercase;
-}
-
-#admin_links a:hover {
-color:#C47D09;
-}
-
-.wrap div.updated, .wrap div.error {
-margin-left: 15px; margin-right: 15px;
-margin-top: 20px; }
-
-#jsAlert {
-margin: 0 15px 10px;
-background-color: #F4F8FA;
-border-color: #BCE8F1; border-style: solid; border-radius: 0; border-width: 0 0 0 3px;
-padding:5px 10px;
-}
-
-/* FB button fix */
-
-.fb-like.fb_iframe_widget > span {
- vertical-align: baseline !important;
-}
-.twitter-follow-button.twitter-follow-button {
- margin:0 8px;
-}
-
-#mantra-settings-placeholder {
- background: #fff;
- padding: 0 10px 10px 10px; }
-
-#mantra-settings-placeholder h3 {
- background: #444;
- color: #fff;
- text-transform: uppercase;
- font-weight: 400;
- padding: 10px;
- margin: 0 -10px;
- font-size: 14px; }
-
-#mantra-settings-placeholder a {
- color: #24C1BB; }
-
+ /* Farbtastic overwrites */
+
+.farbtastic {
+ position: absolute !important;
+ z-index:2;
+margin-left:50px;
+margin-top:-110px;
+background-color:#F7F7F7;
+border:1px solid #CCC;
+}
+.farbtastic * {
+ position: absolute;
+ cursor: crosshair;
+}
+.farbtastic, .farbtastic .wheel {
+ width: 195px;
+ height: 195px;
+}
+.farbtastic .color, .farbtastic .overlay {
+ top: 47px;
+ left: 47px;
+ width: 101px;
+ height: 101px;
+}
+
+
+/* end of Farbtastic overwrites */
+
+.form-table, .form-table td, .form-table th, .form-table td p, .form-wrap label {
+font-size:13px;
+}
+
+
+#lefty {
+clear:left;
+float:left;
+width:60%;
+min-width:500px;
+max-width:820px;
+margin-right:1%;
+}
+
+#main-options {
+width:100%;
+display:block;
+clear:left;
+/*border:1px solid #DFDFDF;
+background:#F5F5F5;
+border-radius:5px;
+-moz-border-radius:5px;
+-webkit-border-radius:5px;
+*/
+padding-top:10px;
+font-family: Segoe UI !important;
+font-size: 12px;
+margin-bottom:10px;
+
+}
+
+ #righty {
+float:left;
+width:39%;
+margin-top:10px;
+}
+#righty p, #righty span, .form-table small, #righty ul li, #righty h3 {
+font-size: 12px;
+color:#444;
+font-family:Segoe UI;
+}
+
+.form-table small {
+font-style:italic;
+display:block;
+float:none;
+clear:both;
+}
+
+ .donate, .support {
+width:100%;
+}
+
+.postbox .hndle {
+ cursor: auto;
+ font-size: 13px;
+ margin: 0;
+ padding: 6px 10px 7px;
+}
+
+
+.wrap h2 {
+font-family: Calibri, Arial !important;
+margin-bottom:5px;
+}
+
+#accordion {
+margin:0px auto;
+font-family:Segoe UI,Calibri, Arial !important;
+display:block;
+float:none;
+border:10px solid #FFF;
+-moz-box-sizing:border-box;
+-webkit-box-sizing:border-box;
+box-sizing:border-box;
+}
+
+#submitDiv {
+display:block;
+float:none;
+height:30px;
+margin:10px 40px;
+font-family:Segoe UI,Calibri, Arial !important;
+}
+
+#version {
+display:block;
+float:none;
+clear:both;
+padding-top:10px;
+margin-left:20px;
+color:#666;
+}
+
+#accordion h3, #accordion h2 {
+border:none;
+background-image:none;
+background:#F5F5F5;
+margin:0;
+padding:8px;
+clear:both;
+display:block;
+float:none;
+font-size: 17px ;
+padding-left:30px ;
+font-weight:normal;
+text-transform:uppercase;
+color:#555;
+border-top:1px solid #FFF;
+border-bottom:1px solid #E5E5E5;
+line-height: 1.3;
+-moz-border-radius:0;
+-webkit-border-radius:0;
+border-radius:0;
+transition:background ease .3s;
+}
+
+#accordion h3:hover, #accordion h2:hover {
+background:#FFF;
+}
+
+#accordion select option {
+font-size:1.1em;
+}
+
+.form-table th, .form-wrap label {
+ color: #444 !important;
+font-size: 15px;
+font-weight:normal;
+text-transform:uppercase;
+background:#F7F7F7;
+border-bottom:1px solid #FFF;
+padding:10px;
+}
+
+.form-table tr {
+border-bottom:1px solid #F7F7F7;
+}
+
+.form-table tr:last-child {
+border-bottom:none;
+}
+
+.form-table td {
+vertical-align:middle;
+}
+
+input[type="text"] , select {
+border:1px solid #AAA !important;
+border-radius:2px;
+-moz-border-radius:2px;
+-webkit-border-radius:2px;
+}
+
+.submit {
+text-align:right;
+margin-right:20px;
+}
+
+ #accordion select {
+min-width:120px;
+max-width:200px;
+padding:3px 5px;
+}
+
+ #accordion textarea, #mantra_favicon {
+max-width:90%;
+}
+
+.googlefonts {
+width:200px;
+}
+
+/* Images */
+
+
+.images {
+display:inline-block;
+}
+
+#imageOne {
+border:1px solid #DDD !important;
+padding:3px;
+ height: auto;
+}
+
+#imageTwo{
+ background-color: #FFFFFF;
+ border: 1px solid #EEE;
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+ border-radius: 3px;
+ padding: 3px;
+ -moz-box-shadow:0px 0px 4px #CCC;
+ -webkit-box-shadow:0px 0px 4px #CCC;
+ box-shadow:0px 0px 4px #CCC;
+}
+
+#imageThree{
+ background-color: #FFFFFF;
+ border: 6px solid #EEEEEE;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+ padding: 3px;
+}
+
+
+
+#imageFour{
+border:1px solid #666 !important;
+ -moz-box-shadow:0px 0px 4px #666;
+ -webkit-box-shadow:0px 0px 4px #666;
+ box-shadow:0px 3px 4px #999;
+}
+
+#imageFive{
+border:3px solid #DDD !important;
+}
+
+#imageSix{
+border:8px solid #BBB !important;
+ -moz-box-shadow:0px 0px 5px #333;
+ -webkit-box-shadow:0px 0px 5px #333;
+ box-shadow: 0px 0px 5px #333;
+}
+
+#imageSeven{
+ background-color: #FFFFFF;
+ border: 1px solid #CCC;
+ padding: 7px;
+ -moz-box-shadow:2px 2px 2px #CCC;
+ -webkit-box-shadow:2px 2px 2px #CCC;
+ box-shadow:inset 0px 0px 7px #CCC;
+}
+
+/* Labels */
+
+label {
+display:inline-block;
+width:auto;
+border:2px solid #FFF;
+text-align:center;
+background-color:#FFF;
+padding:5px 2px;
+-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
+filter: alpha(opacity=80);
+opacity:0.8;
+}
+
+label.hideareas {
+display:block;
+float:none;
+text-align:left;
+
+}
+
+label:hover {
+ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
+ filter: alpha(opacity=100);
+ opacity:1;
+background-color:#EEE;
+}
+
+
+label input[type=radio] {
+display:none;
+}
+
+label.layouts {
+display:block;
+float:left;
+padding:3px;
+height:55px;
+}
+
+label.layouts:hover {
+background:none;
+border:2px solid #CCC;
+}
+
+
+.layouts img {
+width:60px;
+}
+
+.layouts img, .images img {
+pointer-events: none;
+}
+
+
+.borderful {
+border-color:#F6A828 ;
+ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
+ filter: alpha(opacity=100);
+ opacity:1;
+}
+
+ label.layouts.checkedClass, label.images.checkedClass, label.pins.checkedClass, label.sidebullets.checkedClass {
+border-color:#F6A828;
+-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
+filter: alpha(opacity=100);
+opacity:1;
+}
+
+
+#accordion input[type="text"] {
+font-family:"Lucida Console", Monaco, monospace !important;
+font-size:12px;
+padding:6px;
+}
+
+#accordion > * {
+display:none;
+}
+
+#accordion > h3, #accordion > h2 {
+display:block;
+}
+
+.ui-accordion-content {
+background:#FFF !important;
+margin-bottom:10px !important;
+border:none !important;
+overflow: hidden;
+padding:1em !important;
+}
+.ui-accordion .ui-accordion-content { overflow: hidden !important;padding:0 !important; }
+.ui-accordion .ui-accordion-content-overflow { overflow: visible !important; }
+
+.ui-state-active {
+ background:#444 !important;
+ color:#FFF !important;
+ border:none !important;
+}
+
+.darkbg{
+ background:#ddd !important;
+}
+#status{
+ font-family:Arial; padding:5px;
+}
+ul#files{ list-style:none; padding:0; margin:0; }
+ul#files li{ padding:10px; margin-bottom:2px; width:400px; float:left; margin-right:10px;}
+ul#files li img{ max-width:180px; max-height:150px; }
+.success{ background:#99f099; border:1px solid #339933; }
+.error{ background:#f0c6c3; border:1px solid #cc6622; }
+
+#uploadpreview {
+max-width:64px;
+display:block;float:left;
+border:1px solid #DDD;
+padding:2px;
+}
+
+#filename {
+display:block;
+width:auto;
+float:left;
+margin-left:10px;
+font-weight:bold;
+}
+
+#uploadarea {
+margin-top:10px;
+}
+
+#absolutedim, #relativedim {
+margin-top:30px;
+position:relative;
+}
+#absolutedim small, #relativedim small{
+margin-top:20px;}
+
+.slmini, #cdimensions {
+display:block;
+float:none;
+}
+
+.slmini {
+background:#F9F9F9;
+border-bottom:1px solid #E7E7E7;
+padding:15px 5px 15px 10px;
+}
+
+.slmini b {
+width:130px;
+display:inline-block;
+float:left;
+text-transform:uppercase;
+font-weight:normal;
+font-style:italic;
+}
+
+.slidebox {
+background:#F7F7F7;
+border-bottom:2px solid #eaeaea;
+transition:border-color .3s ease-in-out;
+}
+
+.slidebox:hover {
+border-color:#8CB3B3;
+}
+
+.slidercontent{
+display:none;
+padding:0 10px 10px;
+}
+
+
+.slidetitle{
+color:#777;
+background:#F7F7F7;
+padding: 2px 10px;
+margin:3px;
+cursor:pointer;
+}
+
+.slidetitle:after {
+content:"\25BC";
+float:right;
+margin-right:5px;
+color:#AAA;
+font-size:10px;
+}
+
+.slidetitle:hover{
+background:#F6F6F6;
+}
+
+.slidetitle:hover:after {
+color:#6C9393;
+}
+
+.slidebox h5 {
+display:inline-block;
+float:none;
+font-size:12px;
+background:#FFF;
+color:#777;
+padding:0 10px;
+margin:10px 0px 0 10px;
+position:relative;
+top:2px;
+border:1px solid #DFDFDF;
+border-bottom:none;
+-moz-border-radius:4px;
+-webkit-border-radius:4px;
+border-radius:4px;
+}
+
+.slidebox .description {
+display:block;
+float:none;
+}
+
+.slidebox input[type="text"], .slidebox textarea {
+width:100%;
+border-color:#DFDFDF !important;
+color:#444;
+}
+
+#sliderCustomSlides {margin-top:10px;}
+
+a.upload_image_button {
+text-decoration:none;
+clear:both;
+padding:2px 4px;
+display:block;
+float:none;
+}
+
+
+.wp-core-ui .button, .wp-core-ui .button-secondary {
+background:#FFF;
+text-transform:uppercase;
+-moz-border-radius:0;
+-webkit-border-radius:0;
+border-radius:0;
+border-bottom:1px solid #555;
+}
+
+.wp-core-ui .button:hover, .wp-core-ui .button-secondary:hover {
+border-bottom:1px solid #000;
+}
+
+#submitDiv input.button {
+font-size:13px !important;
+padding:4px 10px !important;
+height:auto;
+text-transform:uppercase;
+border-bottom:3px solid #555;
+}
+
+.header_upload_inputs {
+width:300px;
+}
+
+/* NEWS LISTS */
+
+#righty .news-list li {
+background:#FFF;
+padding:7px;
+border:1px solid #EEE;
+}
+
+#righty span.news-item-date {
+color:#999;
+font-size:11px;
+}
+
+a.news-header {
+text-decoration:none;
+color:#4C7373;
+font-size:14px;
+font-weight:bold;
+text-transform:uppercase;
+}
+
+a.news-header:hover, a.news-read:hover {
+color:#C47D09 !important;
+}
+
+/*Tooltip */
+
+.tooltip_div{
+display:inline-block;
+clear:none;
+height:22px;
+line-height:22px;
+}
+
+a.tooltip{
+display:inline-block;
+clear:none;
+height:22px;
+line-height:22px;
+margin-left:7px;
+}
+
+a.tooltip img {
+vertical-align:bottom;
+}
+
+.ui-tooltip {
+display:block;
+max-width:300px;
+padding:5px;
+z-index:3;
+}
+
+/* ADMIN HEADER AND LINKS */
+
+#admin_header {
+ padding-top:10px;
+ padding-left:20px;
+ display:block;
+ float:left;
+ }
+#admin_links {
+ display:block;
+ float:left;
+ clear:both;
+ text-align:left;
+ margin-left:97px;
+ margin-top:-17px;
+ }
+
+#admin_links a {
+display:block;
+float:left;
+margin-left:3px;
+margin-right:9px;
+text-decoration:none;
+font-family:Segoe UI, Arial;
+font-size:11px;
+color:#000000;
+text-transform:uppercase;
+}
+
+#admin_links a:hover {
+color:#C47D09;
+}
+
+.wrap div.updated, .wrap div.error {
+margin-left: 15px; margin-right: 15px;
+margin-top: 20px; }
+
+#jsAlert {
+margin: 0 15px 10px;
+background-color: #F4F8FA;
+border-color: #BCE8F1; border-style: solid; border-radius: 0; border-width: 0 0 0 3px;
+padding:5px 10px;
+}
+
+/* FB button fix */
+
+.fb-like.fb_iframe_widget > span {
+ vertical-align: baseline !important;
+}
+.twitter-follow-button.twitter-follow-button {
+ margin:0 8px;
+}
+
+#mantra-settings-placeholder {
+ background: #fff;
+ padding: 0 10px 10px 10px; }
+
+#mantra-settings-placeholder h3 {
+ background: #444;
+ color: #fff;
+ text-transform: uppercase;
+ font-weight: 400;
+ padding: 10px;
+ margin: 0 -10px;
+ font-size: 14px; }
+
+#mantra-settings-placeholder a {
+ color: #24C1BB; }
+
diff --git a/themes/mantra/admin/custom-styles.php b/themes/mantra/admin/custom-styles.php
index 0e59bd8b..5851283a 100644
--- a/themes/mantra/admin/custom-styles.php
+++ b/themes/mantra/admin/custom-styles.php
@@ -1,299 +1,299 @@
- $value) {
- ${"$key"} = esc_attr($value) ;
-}
-if ($mantra_dimselect=="Absolute") {
-$totalwidth = $mantra_sidewidth+$mantra_sidebar+50;
-$contentSize = $mantra_sidewidth;
-$sidebarSize = $mantra_sidebar;
-}
-else if ($mantra_dimselect=="Relative") {
-$totalwidth = $mantra_sidewidthRel+$mantra_sidebarRel;
-$contentSize = intval(($mantra_sidewidthRel/$totalwidth*100)-2);
-$sidebarSize = intval(($mantra_sidebarRel/$totalwidth*100)-2);
-}
-ob_start(); ?>
-
-
-
- $value) {
- ${"$key"} = esc_attr($value) ; }
-
-if ($mantra_customcss != "") {
- return '';
- }
-}
-
-function mantra_customjs() {
-$mantra_options= mantra_get_theme_options();
-foreach ($mantra_options as $key => $value) {
- ${"$key"} = esc_attr($value) ; }
-
-if ($mantra_customjs != "") {
- echo '';
- }
-}
-?>
\ No newline at end of file
+ $value) {
+ ${"$key"} = esc_attr($value) ;
+}
+if ($mantra_dimselect=="Absolute") {
+$totalwidth = $mantra_sidewidth+$mantra_sidebar+50;
+$contentSize = $mantra_sidewidth;
+$sidebarSize = $mantra_sidebar;
+}
+else if ($mantra_dimselect=="Relative") {
+$totalwidth = $mantra_sidewidthRel+$mantra_sidebarRel;
+$contentSize = intval(($mantra_sidewidthRel/$totalwidth*100)-2);
+$sidebarSize = intval(($mantra_sidebarRel/$totalwidth*100)-2);
+}
+ob_start(); ?>
+
+
+
+ $value) {
+ ${"$key"} = esc_attr($value) ; }
+
+if ($mantra_customcss != "") {
+ return '';
+ }
+}
+
+function mantra_customjs() {
+$mantra_options= mantra_get_theme_options();
+foreach ($mantra_options as $key => $value) {
+ ${"$key"} = esc_attr($value) ; }
+
+if ($mantra_customjs != "") {
+ echo '';
+ }
+}
+?>
diff --git a/themes/mantra/admin/defaults.php b/themes/mantra/admin/defaults.php
index 3ba7d711..7164994e 100644
--- a/themes/mantra/admin/defaults.php
+++ b/themes/mantra/admin/defaults.php
@@ -1,213 +1,213 @@
- "1.0",
-
-"mantra_side" => "2cSr",
-"mantra_dimselect" => 'Absolute',
-"mantra_sidewidth" => 800,
-"mantra_sidebar" => 250,
-"mantra_sidewidthRel" => 60,
-"mantra_sidebarRel" => 20,
-"mantra_mobile" => "Enable",
-"mantra_zoom" => 0,
-"mantra_hcontain" => "",
-
-
-"mantra_frontpage" => "Disable",
-"mantra_frontposts" => "Disable",
-"mantra_frontpostscount" => 5,
-"mantra_menualign" => "left",
-"mantra_fpsliderwidth" => "800",
-"mantra_fpsliderheight" => "250",
-"mantra_fpslideranim" => "random",
-"mantra_fpsliderborderwidth" => "10",
-"mantra_fpsliderbordercolor" => "#EEEEEE",
-"mantra_fpslidertime" => "750",
-"mantra_fpsliderpause" => "5000",
-"mantra_fpslidernav" => "Bullets",
-"mantra_fpsliderarrows" => "Visible on Hover",
-
-"mantra_slideType" => "Custom Slides",
-"mantra_slideCateg" => "",
-"mantra_slideNumber" => "5",
-"mantra_slideSpecific" => "",
-
-"mantra_sliderimg1" => get_template_directory_uri()."/images/slider/mantra-slide1.jpg",
-"mantra_slidertitle1" => "This is the caption title",
-"mantra_slidertext1" => "And this is the text that could accompany it. It is all optional so if you delete it in the Mantra Settings there will be no more caption with the black background.",
-"mantra_sliderlink1" => "",
-"mantra_sliderimg2" => get_template_directory_uri()."/images/slider/mantra-slide2.jpg",
-"mantra_slidertitle2" => "This is yet another caption title",
-"mantra_slidertext2" => 'And some more text to give you as an example. You can use links and other type of HTML formats .',
-"mantra_sliderlink2" => "",
-"mantra_sliderimg3" => "",
-"mantra_slidertitle3" => "",
-"mantra_slidertext3" => "",
-"mantra_sliderlink3" => "",
-"mantra_sliderimg4" => "",
-"mantra_slidertitle4" => "",
-"mantra_slidertext4" => "",
-"mantra_sliderlink4" => "",
-"mantra_sliderimg5" => "",
-"mantra_slidertitle5" => "",
-"mantra_slidertext5" => "",
-"mantra_sliderlink5" => "",
-
-"mantra_nrcolumns" => "4",
-"mantra_colimageheight" => "120",
-"mantra_columnreadmore" => "Read more",
-
-"mantra_columnimg1" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
-"mantra_columntitle1" => "Hi there!",
-"mantra_columntext1" => "You can also have some text here. Just like with the slider, it is all optional (including the title and the link inputs). All you need is an image, unless you want the Mantra image above to follow you everywhere.",
-"mantra_columnlink1" => "",
-"mantra_columnimg2" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
-"mantra_columntitle2" => " HTML tags",
-"mantra_columntext2" => 'You can also have links here as well as some HTML tags .',
-"mantra_columnlink2" => "",
-"mantra_columnimg3" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
-"mantra_columntitle3" => "",
-"mantra_columntext3" => "",
-"mantra_columnlink3" => "",
-"mantra_columnimg4" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
-"mantra_columntitle4" => "",
-"mantra_columntext4" => "",
-"mantra_columnlink4" => "",
-
-"mantra_fronttext1" => "This could be a title",
-"mantra_fronttext2" => "And this is a second title",
-"mantra_fronttitlecolor" => "#333333",
-"mantra_fronttext3" => "And here you could have a whole lot of text. Or not. It is all up to you. Deleting all text inside the appropriate input in the Mantra Settings will remove this whole text zone. It can also contain some HTML tags. Just try everything out and see what suits you. Have fun and good luck! ",
-"mantra_fronttext4" => "",
-
-"mantra_fronthideheader" => "",
-"mantra_fronthidemenu" => "",
-"mantra_fronthidewidget" => "",
-"mantra_fronthidefooter" => "",
-"mantra_fronthideback" => "",
-
-
-"mantra_hheight" => "75",
-"mantra_hcenter" => "",
-"mantra_hratio" => "",
-"mantra_menurounded" => "Enable",
-"mantra_logoupload" => "",
-"mantra_favicon" => "",
-"mantra_siteheader" => "Site Title and Description",
-"mantra_headermargintop" => "20",
-"mantra_headermarginleft" => "40",
-
-"mantra_fontfamily" => 'Segoe UI, Arial, sans-serif',
-"mantra_googlefont" => '',
-"mantra_googlefont2" => '',
-"mantra_fontsize" => "14px",
-"mantra_fonttitle" => 'Georgia, Times New Roman, Times, serif',
-"mantra_googlefonttitle" => '',
-"mantra_googlefonttitle2" => '',
-"mantra_headfontsize" => "Default",
-"mantra_fontside" => 'Helvetica, sans-serif',
-"mantra_googlefontside" => '',
-"mantra_googlefontside2" => '',
-"mantra_sidefontsize" => "Default",
-"mantra_fontsubheader" => 'Georgia, Times New Roman, Times, serif',
-"mantra_googlefontsubheader" => '',
-"mantra_googlefontsubheader2" => '',
-"mantra_textalign" => "Default",
-"mantra_parmargin" => "1.5em",
-"mantra_parindent" => "0px",
-"mantra_headerindent" => "Disable",
-"mantra_lineheight" => "Default",
-"mantra_wordspace" => "Default",
-"mantra_letterspace" => "Default",
-"mantra_textshadow" => "Enable",
-
-"mantra_contentbg" => "#FFFFFF",
-"mantra_menubg" => "#FAFAFA",
-"mantra_s1bg" => "",
-"mantra_s2bg" => "",
-"mantra_backcolor" => "#444444",
-"mantra_headercolor" => "#333333",
-"mantra_prefootercolor" => "#222222",
-"mantra_footercolor" => "#171717",
-"mantra_titlecolor" => "#0D85CC",
-"mantra_descriptioncolor" => "#999999",
-"mantra_contentcolor" => "#333333",
-"mantra_linkscolor" => "#0D85CC",
-"mantra_hovercolor" => "#12a7ff",
-"mantra_headtextcolor" => "#444444",
-"mantra_headtexthover" => "#000000",
-"mantra_sideheadbackcolor" => "#444444",
-"mantra_sideheadtextcolor" => "#2EA5FD",
-
-"mantra_footerheader" => "#0C85CD",
-"mantra_footertext" => "#666666",
-"mantra_footerhover" => "#888888",
-
-"mantra_breadcrumbs" => "Disable",
-"mantra_pagination" => "Enable",
-"mantra_caption" => "Light",
-"mantra_image" => "Seven",
-"mantra_pin" => "Pin2",
-"mantra_sidebullet" => "arrow_white",
-"mantra_metaback" => "Gray",
-"mantra_postseparator" => "Hide",
-"mantra_contentlist" => "Show",
-"mantra_pagetitle" => "Show",
-"mantra_categtitle" => "Show",
-"mantra_tables" => "Disable",
-"mantra_backtop" => "Enable",
-"mantra_comtext" => "Show",
-"mantra_comclosed" => "Hide everywhere",
-"mantra_comoff" => "Show",
-
-"mantra_postcomlink" => "Show",
-"mantra_postdate" => "Show",
-"mantra_posttime" => "Hide",
-"mantra_postauthor" => "Show",
-"mantra_postcateg" => "Show",
-"mantra_posttag" => "Show",
-"mantra_postbook" => "Show",
-"mantra_postmetas" => "Show",
-
-"mantra_excerpthome" => "Full Post",
-"mantra_excerptsticky" => "Full Post",
-"mantra_excerptarchive" => "Full Post",
-"mantra_excerptwords" => "50",
-"mantra_magazinelayout" => "Disable",
-"mantra_excerptdots" => " …",
-"mantra_excerptcont" => " Continue reading",
-"mantra_excerpttags" => "Disable",
-
-"mantra_fpost" => "Disable",
-"mantra_fpostlink" => "1",
-"mantra_fauto" => "Disable",
-"mantra_falign" => "Left",
-"mantra_fwidth" => "250",
-"mantra_fheight" => "150",
-"mantra_fcrop" => "",
-"mantra_fheader" => "Disable",
-
-"mantra_social1" => "Facebook",
-"mantra_social2" => "#",
-"mantra_social3" => "Twitter",
-"mantra_social4" => "#",
-"mantra_social5" => "RSS",
-"mantra_social6" => "#",
-"mantra_social7" => "",
-"mantra_social8" => "",
-"mantra_social9" => "",
-"mantra_social10" => "",
-"mantra_socialsdisplay0" => "1",
-"mantra_socialsdisplay1" => "",
-"mantra_socialsdisplay2" => "",
-"mantra_socialsdisplay3" => "1",
-
-"mantra_copyright" => "",
-"mantra_customcss" => "/* Mantra Custom CSS */ ",
-"mantra_customjs" => "");
-
+ "1.0",
+
+"mantra_side" => "2cSr",
+"mantra_dimselect" => 'Absolute',
+"mantra_sidewidth" => 800,
+"mantra_sidebar" => 250,
+"mantra_sidewidthRel" => 60,
+"mantra_sidebarRel" => 20,
+"mantra_mobile" => "Enable",
+"mantra_zoom" => 0,
+"mantra_hcontain" => "",
+
+
+"mantra_frontpage" => "Disable",
+"mantra_frontposts" => "Disable",
+"mantra_frontpostscount" => 5,
+"mantra_menualign" => "left",
+"mantra_fpsliderwidth" => "800",
+"mantra_fpsliderheight" => "250",
+"mantra_fpslideranim" => "random",
+"mantra_fpsliderborderwidth" => "10",
+"mantra_fpsliderbordercolor" => "#EEEEEE",
+"mantra_fpslidertime" => "750",
+"mantra_fpsliderpause" => "5000",
+"mantra_fpslidernav" => "Bullets",
+"mantra_fpsliderarrows" => "Visible on Hover",
+
+"mantra_slideType" => "Custom Slides",
+"mantra_slideCateg" => "",
+"mantra_slideNumber" => "5",
+"mantra_slideSpecific" => "",
+
+"mantra_sliderimg1" => get_template_directory_uri()."/images/slider/mantra-slide1.jpg",
+"mantra_slidertitle1" => "This is the caption title",
+"mantra_slidertext1" => "And this is the text that could accompany it. It is all optional so if you delete it in the Mantra Settings there will be no more caption with the black background.",
+"mantra_sliderlink1" => "",
+"mantra_sliderimg2" => get_template_directory_uri()."/images/slider/mantra-slide2.jpg",
+"mantra_slidertitle2" => "This is yet another caption title",
+"mantra_slidertext2" => 'And some more text to give you as an example. You can use links and other type of HTML formats .',
+"mantra_sliderlink2" => "",
+"mantra_sliderimg3" => "",
+"mantra_slidertitle3" => "",
+"mantra_slidertext3" => "",
+"mantra_sliderlink3" => "",
+"mantra_sliderimg4" => "",
+"mantra_slidertitle4" => "",
+"mantra_slidertext4" => "",
+"mantra_sliderlink4" => "",
+"mantra_sliderimg5" => "",
+"mantra_slidertitle5" => "",
+"mantra_slidertext5" => "",
+"mantra_sliderlink5" => "",
+
+"mantra_nrcolumns" => "4",
+"mantra_colimageheight" => "120",
+"mantra_columnreadmore" => "Read more",
+
+"mantra_columnimg1" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
+"mantra_columntitle1" => "Hi there!",
+"mantra_columntext1" => "You can also have some text here. Just like with the slider, it is all optional (including the title and the link inputs). All you need is an image, unless you want the Mantra image above to follow you everywhere.",
+"mantra_columnlink1" => "",
+"mantra_columnimg2" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
+"mantra_columntitle2" => " HTML tags",
+"mantra_columntext2" => 'You can also have links here as well as some HTML tags .',
+"mantra_columnlink2" => "",
+"mantra_columnimg3" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
+"mantra_columntitle3" => "",
+"mantra_columntext3" => "",
+"mantra_columnlink3" => "",
+"mantra_columnimg4" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
+"mantra_columntitle4" => "",
+"mantra_columntext4" => "",
+"mantra_columnlink4" => "",
+
+"mantra_fronttext1" => "This could be a title",
+"mantra_fronttext2" => "And this is a second title",
+"mantra_fronttitlecolor" => "#333333",
+"mantra_fronttext3" => "And here you could have a whole lot of text. Or not. It is all up to you. Deleting all text inside the appropriate input in the Mantra Settings will remove this whole text zone. It can also contain some HTML tags. Just try everything out and see what suits you. Have fun and good luck! ",
+"mantra_fronttext4" => "",
+
+"mantra_fronthideheader" => "",
+"mantra_fronthidemenu" => "",
+"mantra_fronthidewidget" => "",
+"mantra_fronthidefooter" => "",
+"mantra_fronthideback" => "",
+
+
+"mantra_hheight" => "75",
+"mantra_hcenter" => "",
+"mantra_hratio" => "",
+"mantra_menurounded" => "Enable",
+"mantra_logoupload" => "",
+"mantra_favicon" => "",
+"mantra_siteheader" => "Site Title and Description",
+"mantra_headermargintop" => "20",
+"mantra_headermarginleft" => "40",
+
+"mantra_fontfamily" => 'Segoe UI, Arial, sans-serif',
+"mantra_googlefont" => '',
+"mantra_googlefont2" => '',
+"mantra_fontsize" => "14px",
+"mantra_fonttitle" => 'Georgia, Times New Roman, Times, serif',
+"mantra_googlefonttitle" => '',
+"mantra_googlefonttitle2" => '',
+"mantra_headfontsize" => "Default",
+"mantra_fontside" => 'Helvetica, sans-serif',
+"mantra_googlefontside" => '',
+"mantra_googlefontside2" => '',
+"mantra_sidefontsize" => "Default",
+"mantra_fontsubheader" => 'Georgia, Times New Roman, Times, serif',
+"mantra_googlefontsubheader" => '',
+"mantra_googlefontsubheader2" => '',
+"mantra_textalign" => "Default",
+"mantra_parmargin" => "1.5em",
+"mantra_parindent" => "0px",
+"mantra_headerindent" => "Disable",
+"mantra_lineheight" => "Default",
+"mantra_wordspace" => "Default",
+"mantra_letterspace" => "Default",
+"mantra_textshadow" => "Enable",
+
+"mantra_contentbg" => "#FFFFFF",
+"mantra_menubg" => "#FAFAFA",
+"mantra_s1bg" => "",
+"mantra_s2bg" => "",
+"mantra_backcolor" => "#444444",
+"mantra_headercolor" => "#333333",
+"mantra_prefootercolor" => "#222222",
+"mantra_footercolor" => "#171717",
+"mantra_titlecolor" => "#0D85CC",
+"mantra_descriptioncolor" => "#999999",
+"mantra_contentcolor" => "#333333",
+"mantra_linkscolor" => "#0D85CC",
+"mantra_hovercolor" => "#12a7ff",
+"mantra_headtextcolor" => "#444444",
+"mantra_headtexthover" => "#000000",
+"mantra_sideheadbackcolor" => "#444444",
+"mantra_sideheadtextcolor" => "#2EA5FD",
+
+"mantra_footerheader" => "#0C85CD",
+"mantra_footertext" => "#666666",
+"mantra_footerhover" => "#888888",
+
+"mantra_breadcrumbs" => "Disable",
+"mantra_pagination" => "Enable",
+"mantra_caption" => "Light",
+"mantra_image" => "Seven",
+"mantra_pin" => "Pin2",
+"mantra_sidebullet" => "arrow_white",
+"mantra_metaback" => "Gray",
+"mantra_postseparator" => "Hide",
+"mantra_contentlist" => "Show",
+"mantra_pagetitle" => "Show",
+"mantra_categtitle" => "Show",
+"mantra_tables" => "Disable",
+"mantra_backtop" => "Enable",
+"mantra_comtext" => "Show",
+"mantra_comclosed" => "Hide everywhere",
+"mantra_comoff" => "Show",
+
+"mantra_postcomlink" => "Show",
+"mantra_postdate" => "Show",
+"mantra_posttime" => "Hide",
+"mantra_postauthor" => "Show",
+"mantra_postcateg" => "Show",
+"mantra_posttag" => "Show",
+"mantra_postbook" => "Show",
+"mantra_postmetas" => "Show",
+
+"mantra_excerpthome" => "Full Post",
+"mantra_excerptsticky" => "Full Post",
+"mantra_excerptarchive" => "Full Post",
+"mantra_excerptwords" => "50",
+"mantra_magazinelayout" => "Disable",
+"mantra_excerptdots" => " …",
+"mantra_excerptcont" => " Continue reading",
+"mantra_excerpttags" => "Disable",
+
+"mantra_fpost" => "Disable",
+"mantra_fpostlink" => "1",
+"mantra_fauto" => "Disable",
+"mantra_falign" => "Left",
+"mantra_fwidth" => "250",
+"mantra_fheight" => "150",
+"mantra_fcrop" => "",
+"mantra_fheader" => "Disable",
+
+"mantra_social1" => "Facebook",
+"mantra_social2" => "#",
+"mantra_social3" => "Twitter",
+"mantra_social4" => "#",
+"mantra_social5" => "RSS",
+"mantra_social6" => "#",
+"mantra_social7" => "",
+"mantra_social8" => "",
+"mantra_social9" => "",
+"mantra_social10" => "",
+"mantra_socialsdisplay0" => "1",
+"mantra_socialsdisplay1" => "",
+"mantra_socialsdisplay2" => "",
+"mantra_socialsdisplay3" => "1",
+
+"mantra_copyright" => "",
+"mantra_customcss" => "/* Mantra Custom CSS */ ",
+"mantra_customjs" => "");
+
?>
\ No newline at end of file
diff --git a/themes/mantra/admin/js/accordion-slider.js b/themes/mantra/admin/js/accordion-slider.js
index e43b28a8..7ef838ca 100644
--- a/themes/mantra/admin/js/accordion-slider.js
+++ b/themes/mantra/admin/js/accordion-slider.js
@@ -1,96 +1,96 @@
-/*!
- * jQuery UI Widget 1.8.16
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Widget
- */
-(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)try{b(d).triggerHandler("remove")}catch(e){}k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(d){}});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=
-function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):
-d;if(e&&d.charAt(0)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=
-b.extend(true,{},this.options,this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+
-"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
-c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
-;/*!
- * jQuery UI Mouse 1.8.16
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Mouse
- *
- * Depends:
- * jquery.ui.widget.js
- */
-(function(b){var d=false;b(document).mouseup(function(){d=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(true===b.data(c.target,a.widgetName+".preventClickEvent")){b.removeData(c.target,a.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+
-this.widgetName)},_mouseDown:function(a){if(!d){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,f=a.which==1,g=typeof this.options.cancel=="string"&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:false;if(!f||g||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=
-this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}true===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return d=true}},_mouseMove:function(a){if(b.browser.msie&&
-!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
-false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
-;/*
- * jQuery UI Accordion 1.8.16
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Accordion
- *
- * Depends:
- * jquery.ui.core.js
- * jquery.ui.widget.js
- */
-(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
-a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
-if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var h=d.closest(".ui-accordion-header");a.active=h.length?h:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion",
-function(f){return a._keydown(f)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(f){a._clickHandler.call(a,f,this);f.preventDefault()})},_createIcons:function(){var a=
-this.options;if(a.icons){c(" ").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");
-this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons();
-b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,h=this.headers.index(a.target),f=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(h+1)%d];break;case b.LEFT:case b.UP:f=this.headers[(h-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target);
-a.preventDefault()}if(f){c(a.target).attr("tabIndex",-1);c(f).attr("tabIndex",0);f.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+
-c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options;
-if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){var h=this.active;j=a.next();g=this.active.next();e={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):j,oldContent:g};var f=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(j,g,e,b,f);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
-if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);a.next().addClass("ui-accordion-content-active")}}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(),
-e={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:g},j=this.active=c([]);this._toggle(j,g,e)}},_toggle:function(a,b,d,h,f){var g=this,e=g.options;g.toShow=a;g.toHide=b;g.data=d;var j=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&h?{toShow:c([]),toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:f,autoHeight:e.autoHeight||
-e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;h=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!h[k]&&!c.easing[k])k="slide";h[k]||(h[k]=function(l){this.slide(l,{easing:k,duration:i||700})});h[k](d)}else{if(e.collapsible&&h)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",
-"aria-selected":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.16",
-animations:{slide:function(a,b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),h=0,f={},g={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){g[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/);
-f[i]={value:j[1],unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,i){if(i.prop=="height")h=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=h*f[i.prop].value+f[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide",
-paddingTop:"hide",paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);
-;/*
- * jQuery UI Slider 1.8.16
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Slider
- *
- * Depends:
- * jquery.ui.core.js
- * jquery.ui.mouse.js
- * jquery.ui.widget.js
- */
-(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,b=this.options,c=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=b.values&&b.values.length||1,e=[];this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+
-this.orientation+" ui-widget ui-widget-content ui-corner-all"+(b.disabled?" ui-slider-disabled ui-disabled":""));this.range=d([]);if(b.range){if(b.range===true){if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}this.range=d("
").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(b.range==="min"||b.range==="max"?" ui-slider-range-"+b.range:""))}for(var j=c.length;j");
-this.handles=c.add(d(e.join("")).appendTo(a.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(g){g.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(g){d(this).data("index.ui-slider-handle",
-g)});this.handles.keydown(function(g){var k=true,l=d(this).data("index.ui-slider-handle"),i,h,m;if(!a.options.disabled){switch(g.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:k=false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");i=a._start(g,l);if(i===false)return}break}m=a.options.step;i=a.options.values&&a.options.values.length?
-(h=a.values(l)):(h=a.value());switch(g.keyCode){case d.ui.keyCode.HOME:h=a._valueMin();break;case d.ui.keyCode.END:h=a._valueMax();break;case d.ui.keyCode.PAGE_UP:h=a._trimAlignValue(i+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:h=a._trimAlignValue(i-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(i===a._valueMax())return;h=a._trimAlignValue(i+m);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(i===a._valueMin())return;h=a._trimAlignValue(i-
-m);break}a._slide(g,l,h);return k}}).keyup(function(g){var k=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(g,k);a._change(g,k);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();
-return this},_mouseCapture:function(a){var b=this.options,c,f,e,j,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});f=this._valueMax()-this._valueMin()+1;j=this;this.handles.each(function(k){var l=Math.abs(c-j.values(k));if(f>l){f=l;e=d(this);g=k}});if(b.range===true&&this.values(1)===b.min){g+=1;e=d(this.handles[g])}if(this._start(a,g)===false)return false;
-this._mouseSliding=true;j._handleIndex=g;e.addClass("ui-state-active").focus();b=e.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-e.width()/2,top:a.pageY-b.top-e.height()/2-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"),10)||0)+(parseInt(e.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b=
-this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b=
-this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);
-c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var f;if(this.options.values&&this.options.values.length){f=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>f||b===1&&c1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}else if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;f=arguments[0];for(e=0;e=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a=
-this.options.range,b=this.options,c=this,f=!this._animateOff?b.animate:false,e,j={},g,k,l,i;if(this.options.values&&this.options.values.length)this.handles.each(function(h){e=(c.values(h)-c._valueMin())/(c._valueMax()-c._valueMin())*100;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";d(this).stop(1,1)[f?"animate":"css"](j,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(h===0)c.range.stop(1,1)[f?"animate":"css"]({left:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({width:e-
-g+"%"},{queue:false,duration:b.animate})}else{if(h===0)c.range.stop(1,1)[f?"animate":"css"]({bottom:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({height:e-g+"%"},{queue:false,duration:b.animate})}g=e});else{k=this.value();l=this._valueMin();i=this._valueMax();e=i!==l?(k-l)/(i-l)*100:0;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[f?"animate":"css"](j,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:e+"%"},
-b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-e+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:e+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-e+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.16"})})(jQuery);
+/*!
+ * jQuery UI Widget 1.8.16
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Widget
+ */
+(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)try{b(d).triggerHandler("remove")}catch(e){}k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(d){}});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=
+function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):
+d;if(e&&d.charAt(0)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=
+b.extend(true,{},this.options,this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+
+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
+c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
+;/*!
+ * jQuery UI Mouse 1.8.16
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Mouse
+ *
+ * Depends:
+ * jquery.ui.widget.js
+ */
+(function(b){var d=false;b(document).mouseup(function(){d=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(true===b.data(c.target,a.widgetName+".preventClickEvent")){b.removeData(c.target,a.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+
+this.widgetName)},_mouseDown:function(a){if(!d){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,f=a.which==1,g=typeof this.options.cancel=="string"&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:false;if(!f||g||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=
+this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}true===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return d=true}},_mouseMove:function(a){if(b.browser.msie&&
+!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
+false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
+;/*
+ * jQuery UI Accordion 1.8.16
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Accordion
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.widget.js
+ */
+(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
+a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
+if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var h=d.closest(".ui-accordion-header");a.active=h.length?h:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion",
+function(f){return a._keydown(f)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(f){a._clickHandler.call(a,f,this);f.preventDefault()})},_createIcons:function(){var a=
+this.options;if(a.icons){c(" ").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");
+this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons();
+b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,h=this.headers.index(a.target),f=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(h+1)%d];break;case b.LEFT:case b.UP:f=this.headers[(h-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target);
+a.preventDefault()}if(f){c(a.target).attr("tabIndex",-1);c(f).attr("tabIndex",0);f.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+
+c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options;
+if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){var h=this.active;j=a.next();g=this.active.next();e={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):j,oldContent:g};var f=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(j,g,e,b,f);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
+if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);a.next().addClass("ui-accordion-content-active")}}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(),
+e={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:g},j=this.active=c([]);this._toggle(j,g,e)}},_toggle:function(a,b,d,h,f){var g=this,e=g.options;g.toShow=a;g.toHide=b;g.data=d;var j=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&h?{toShow:c([]),toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:f,autoHeight:e.autoHeight||
+e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;h=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!h[k]&&!c.easing[k])k="slide";h[k]||(h[k]=function(l){this.slide(l,{easing:k,duration:i||700})});h[k](d)}else{if(e.collapsible&&h)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",
+"aria-selected":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.16",
+animations:{slide:function(a,b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),h=0,f={},g={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){g[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/);
+f[i]={value:j[1],unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,i){if(i.prop=="height")h=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=h*f[i.prop].value+f[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide",
+paddingTop:"hide",paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);
+;/*
+ * jQuery UI Slider 1.8.16
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Slider
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.mouse.js
+ * jquery.ui.widget.js
+ */
+(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,b=this.options,c=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=b.values&&b.values.length||1,e=[];this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+
+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(b.disabled?" ui-slider-disabled ui-disabled":""));this.range=d([]);if(b.range){if(b.range===true){if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}this.range=d("
").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(b.range==="min"||b.range==="max"?" ui-slider-range-"+b.range:""))}for(var j=c.length;j");
+this.handles=c.add(d(e.join("")).appendTo(a.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(g){g.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(g){d(this).data("index.ui-slider-handle",
+g)});this.handles.keydown(function(g){var k=true,l=d(this).data("index.ui-slider-handle"),i,h,m;if(!a.options.disabled){switch(g.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:k=false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");i=a._start(g,l);if(i===false)return}break}m=a.options.step;i=a.options.values&&a.options.values.length?
+(h=a.values(l)):(h=a.value());switch(g.keyCode){case d.ui.keyCode.HOME:h=a._valueMin();break;case d.ui.keyCode.END:h=a._valueMax();break;case d.ui.keyCode.PAGE_UP:h=a._trimAlignValue(i+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:h=a._trimAlignValue(i-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(i===a._valueMax())return;h=a._trimAlignValue(i+m);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(i===a._valueMin())return;h=a._trimAlignValue(i-
+m);break}a._slide(g,l,h);return k}}).keyup(function(g){var k=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(g,k);a._change(g,k);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();
+return this},_mouseCapture:function(a){var b=this.options,c,f,e,j,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});f=this._valueMax()-this._valueMin()+1;j=this;this.handles.each(function(k){var l=Math.abs(c-j.values(k));if(f>l){f=l;e=d(this);g=k}});if(b.range===true&&this.values(1)===b.min){g+=1;e=d(this.handles[g])}if(this._start(a,g)===false)return false;
+this._mouseSliding=true;j._handleIndex=g;e.addClass("ui-state-active").focus();b=e.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-e.width()/2,top:a.pageY-b.top-e.height()/2-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"),10)||0)+(parseInt(e.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b=
+this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b=
+this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);
+c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var f;if(this.options.values&&this.options.values.length){f=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>f||b===1&&c1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}else if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;f=arguments[0];for(e=0;e=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a=
+this.options.range,b=this.options,c=this,f=!this._animateOff?b.animate:false,e,j={},g,k,l,i;if(this.options.values&&this.options.values.length)this.handles.each(function(h){e=(c.values(h)-c._valueMin())/(c._valueMax()-c._valueMin())*100;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";d(this).stop(1,1)[f?"animate":"css"](j,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(h===0)c.range.stop(1,1)[f?"animate":"css"]({left:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({width:e-
+g+"%"},{queue:false,duration:b.animate})}else{if(h===0)c.range.stop(1,1)[f?"animate":"css"]({bottom:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({height:e-g+"%"},{queue:false,duration:b.animate})}g=e});else{k=this.value();l=this._valueMin();i=this._valueMax();e=i!==l?(k-l)/(i-l)*100:0;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[f?"animate":"css"](j,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:e+"%"},
+b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-e+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:e+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-e+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.16"})})(jQuery);
;
\ No newline at end of file
diff --git a/themes/mantra/admin/js/admin.js b/themes/mantra/admin/js/admin.js
index c3002104..884bd820 100644
--- a/themes/mantra/admin/js/admin.js
+++ b/themes/mantra/admin/js/admin.js
@@ -1,218 +1,218 @@
-/*!
- * Admin js
- */
-
-function media_upload( button_class) {
- if (!window.wp || !window.wp.media || !window.wp.media.editor || !window.wp.media.editor.send || !window.wp.media.editor.send.attachment) return;
- var _custom_media = true,
- _orig_send_attachment = wp.media.editor.send.attachment;
- jQuery('body').on('click',button_class, function(e) {
- uploadparent = jQuery(this).closest('div');
- var button_id ='#'+jQuery(this).attr('id');
- /* console.log(button_id); */
- var self = jQuery(button_id);
- var send_attachment_bkp = wp.media.editor.send.attachment;
- var button = jQuery(button_id);
- /* var id = button.attr('id').replace('_button', ''); */
- _custom_media = true;
- wp.media.editor.send.attachment = function(props, attachment){
- if ( _custom_media ) {
- /* jQuery('.custom_media_id').val(attachment.id); */
- uploadparent.find('.slideimages').val(attachment.url);
- uploadparent.find('.imagebox').attr('src',attachment.url);
- /* jQuery('.custom_media_image').attr('src',attachment.url).css('display','block'); */
- } else {
- return _orig_send_attachment.apply( button_id, [props, attachment] );
- }
- }
- wp.media.editor.open(button);
- return false;
- });
-}
-
-jQuery(document).ready(function() {
-
-var uploadparent = 0;
- media_upload( '.upload_image_button' );
-
-// Show/hide slides
- jQuery('.slidetitle').click(function() {
- jQuery(this).next().toggle("fast");
- });
-
-
-// Jquery confim window on reset to defaults
-jQuery('#mantra_defaults').click (function() {
- if (!confirm('Reset Mantra Settings to Defaults?')) { return false;}
- });
-
-// Hide or show dimmensions
-jQuery('#mantra_dimselect').change(function() {
- if (jQuery('#mantra_dimselect option:selected').val()=="Absolute") {
- jQuery('#relativedim').hide("normal");jQuery('#absolutedim').show("normal");
- }
- else {
- jQuery('#relativedim').show("normal");jQuery('#absolutedim').hide("normal");
- }
- });
-
-if (jQuery('#mantra_dimselect option:selected').val()=="Absolute") {
- jQuery('#relativedim').hide("normal");jQuery('#absolutedim').show("normal");}
-else {
- jQuery('#relativedim').show("normal");jQuery('#absolutedim').hide("normal");
- }
-
-
-// Hide or show slider settings
-jQuery('#mantra_slideType').change(function() {
- jQuery('.slideDivs').hide("normal");
- switch (jQuery('#mantra_slideType option:selected').val()) {
-
- case "Custom Slides" :
- jQuery('#sliderCustomSlides').show("normal");
- break;
-
- case "Latest Posts" :
- jQuery('#sliderLatestPosts').show("normal");
- break;
-
- case "Random Posts" :
- jQuery('#sliderRandomPosts').show("normal");
- break;
-
- case "Sticky Posts" :
- jQuery('#sliderStickyPosts').show("normal");
- break;
-
- case "Latest Posts from Category" :
- jQuery('#sliderLatestCateg').show("normal");
- break;
-
- case "Random Posts from Category" :
- jQuery('#sliderRandomCateg').show("normal");
- break;
-
- case "Specific Posts" :
- jQuery('#sliderSpecificPosts').show("normal");
- break;
-
- }//switch
-
-});//function
-
-jQuery('.slideDivs').hide("normal");
- switch (jQuery('#mantra_slideType option:selected').val()) {
-
- case "Custom Slides" :
- jQuery('#sliderCustomSlides').show("normal");
- break;
-
- case "Latest Posts" :
- jQuery('#sliderLatestPosts').show("normal");
- break;
-
- case "Random Posts" :
- jQuery('#sliderRandomPosts').show("normal");
- break;
-
- case "Sticky Posts" :
- jQuery('#sliderStickyPosts').show("normal");
- break;
-
- case "Latest Posts from Category" :
- jQuery('#sliderLatestCateg').show("normal");
- break;
-
- case "Random Posts from Category" :
- jQuery('#sliderRandomCateg').show("normal");
- break;
-
- case "Specific Posts" :
- jQuery('#sliderSpecificPosts').show("normal");
- break;
-};//switch
-
-//Slide type value
-$sliderNr=jQuery('#mantra_slideType').val();
-
-//Show category if a category type is selected
-if ($sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" )
- jQuery('#slider-category').show();
-else jQuery('#slider-category').hide();
-
-//Show number of slides if that's the case
-if ($sliderNr=="Latest Posts" || $sliderNr =="Random Posts" || $sliderNr =="Sticky Posts" || $sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" )
- jQuery('#slider-post-number').show();
-else jQuery('#slider-post-number').hide();
-
-//On change
-jQuery('#mantra_slideType').change(function(){
- $sliderNr=jQuery('#mantra_slideType').val();
-//Show category if a category type is selected
- if ($sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" )
- jQuery('#slider-category').show();
- else jQuery('#slider-category').hide();
-//Show number of slides if that's the case
- if ($sliderNr=="Latest Posts" || $sliderNr =="Random Posts" || $sliderNr =="Sticky Posts" || $sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" )
- jQuery('#slider-post-number').show();
-else jQuery('#slider-post-number').hide();
- });//onchange funciton
-
-
-
-// Create accordion from existing settings table
- jQuery('.form-table').wrap('');
- jQuery(function() {
- if (jQuery( "#accordion h2" ).length > 0) {
- // wordpress 4.4+ changed headings to h2
- jQuery( "#accordion" ).accordion({
- header: 'h2',
- heightStyle: "content",
- collapsible: true,
- navigation: true,
- active: false
- });
- } else {
- jQuery( "#accordion" ).accordion({
- header: 'h3',
- autoHeight: false, // for jQueryUI <1.10
- heightStyle: "content", // required in jQueryUI 1.10
- collapsible: true,
- navigation: true,
- active: false
- });
- }
- });
-
-
-});// ready
-
- // Change border for selecte inputs
-function changeBorder (idName, className) {
- jQuery('.'+className).removeClass( 'checkedClass' );
- jQuery('.'+className).removeClass( 'borderful' );
- jQuery('#'+idName).addClass( 'borderful' );
-
-return 0;
-}
-
-/* FB like button */
-(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
- fjs.parentNode.insertBefore(js, fjs);
-}(document, 'script', 'facebook-jssdk'));
-
-/* Twitter follow button */
-window.twttr = (function (d, s, id) {
- var t, js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src= "https://platform.twitter.com/widgets.js";
- fjs.parentNode.insertBefore(js, fjs);
- return window.twttr || (t = { _e: [], ready: function (f) { t._e.push(f) } });
-}(document, "script", "twitter-wjs"));
-
+/*!
+ * Admin js
+ */
+
+function media_upload( button_class) {
+ if (!window.wp || !window.wp.media || !window.wp.media.editor || !window.wp.media.editor.send || !window.wp.media.editor.send.attachment) return;
+ var _custom_media = true,
+ _orig_send_attachment = wp.media.editor.send.attachment;
+ jQuery('body').on('click',button_class, function(e) {
+ uploadparent = jQuery(this).closest('div');
+ var button_id ='#'+jQuery(this).attr('id');
+ /* console.log(button_id); */
+ var self = jQuery(button_id);
+ var send_attachment_bkp = wp.media.editor.send.attachment;
+ var button = jQuery(button_id);
+ /* var id = button.attr('id').replace('_button', ''); */
+ _custom_media = true;
+ wp.media.editor.send.attachment = function(props, attachment){
+ if ( _custom_media ) {
+ /* jQuery('.custom_media_id').val(attachment.id); */
+ uploadparent.find('.slideimages').val(attachment.url);
+ uploadparent.find('.imagebox').attr('src',attachment.url);
+ /* jQuery('.custom_media_image').attr('src',attachment.url).css('display','block'); */
+ } else {
+ return _orig_send_attachment.apply( button_id, [props, attachment] );
+ }
+ }
+ wp.media.editor.open(button);
+ return false;
+ });
+}
+
+jQuery(document).ready(function() {
+
+var uploadparent = 0;
+ media_upload( '.upload_image_button' );
+
+// Show/hide slides
+ jQuery('.slidetitle').click(function() {
+ jQuery(this).next().toggle("fast");
+ });
+
+
+// Jquery confim window on reset to defaults
+jQuery('#mantra_defaults').click (function() {
+ if (!confirm('Reset Mantra Settings to Defaults?')) { return false;}
+ });
+
+// Hide or show dimmensions
+jQuery('#mantra_dimselect').change(function() {
+ if (jQuery('#mantra_dimselect option:selected').val()=="Absolute") {
+ jQuery('#relativedim').hide("normal");jQuery('#absolutedim').show("normal");
+ }
+ else {
+ jQuery('#relativedim').show("normal");jQuery('#absolutedim').hide("normal");
+ }
+ });
+
+if (jQuery('#mantra_dimselect option:selected').val()=="Absolute") {
+ jQuery('#relativedim').hide("normal");jQuery('#absolutedim').show("normal");}
+else {
+ jQuery('#relativedim').show("normal");jQuery('#absolutedim').hide("normal");
+ }
+
+
+// Hide or show slider settings
+jQuery('#mantra_slideType').change(function() {
+ jQuery('.slideDivs').hide("normal");
+ switch (jQuery('#mantra_slideType option:selected').val()) {
+
+ case "Custom Slides" :
+ jQuery('#sliderCustomSlides').show("normal");
+ break;
+
+ case "Latest Posts" :
+ jQuery('#sliderLatestPosts').show("normal");
+ break;
+
+ case "Random Posts" :
+ jQuery('#sliderRandomPosts').show("normal");
+ break;
+
+ case "Sticky Posts" :
+ jQuery('#sliderStickyPosts').show("normal");
+ break;
+
+ case "Latest Posts from Category" :
+ jQuery('#sliderLatestCateg').show("normal");
+ break;
+
+ case "Random Posts from Category" :
+ jQuery('#sliderRandomCateg').show("normal");
+ break;
+
+ case "Specific Posts" :
+ jQuery('#sliderSpecificPosts').show("normal");
+ break;
+
+ }//switch
+
+});//function
+
+jQuery('.slideDivs').hide("normal");
+ switch (jQuery('#mantra_slideType option:selected').val()) {
+
+ case "Custom Slides" :
+ jQuery('#sliderCustomSlides').show("normal");
+ break;
+
+ case "Latest Posts" :
+ jQuery('#sliderLatestPosts').show("normal");
+ break;
+
+ case "Random Posts" :
+ jQuery('#sliderRandomPosts').show("normal");
+ break;
+
+ case "Sticky Posts" :
+ jQuery('#sliderStickyPosts').show("normal");
+ break;
+
+ case "Latest Posts from Category" :
+ jQuery('#sliderLatestCateg').show("normal");
+ break;
+
+ case "Random Posts from Category" :
+ jQuery('#sliderRandomCateg').show("normal");
+ break;
+
+ case "Specific Posts" :
+ jQuery('#sliderSpecificPosts').show("normal");
+ break;
+};//switch
+
+//Slide type value
+$sliderNr=jQuery('#mantra_slideType').val();
+
+//Show category if a category type is selected
+if ($sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" )
+ jQuery('#slider-category').show();
+else jQuery('#slider-category').hide();
+
+//Show number of slides if that's the case
+if ($sliderNr=="Latest Posts" || $sliderNr =="Random Posts" || $sliderNr =="Sticky Posts" || $sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" )
+ jQuery('#slider-post-number').show();
+else jQuery('#slider-post-number').hide();
+
+//On change
+jQuery('#mantra_slideType').change(function(){
+ $sliderNr=jQuery('#mantra_slideType').val();
+//Show category if a category type is selected
+ if ($sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" )
+ jQuery('#slider-category').show();
+ else jQuery('#slider-category').hide();
+//Show number of slides if that's the case
+ if ($sliderNr=="Latest Posts" || $sliderNr =="Random Posts" || $sliderNr =="Sticky Posts" || $sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" )
+ jQuery('#slider-post-number').show();
+else jQuery('#slider-post-number').hide();
+ });//onchange funciton
+
+
+
+// Create accordion from existing settings table
+ jQuery('.form-table').wrap('
');
+ jQuery(function() {
+ if (jQuery( "#accordion h2" ).length > 0) {
+ // wordpress 4.4+ changed headings to h2
+ jQuery( "#accordion" ).accordion({
+ header: 'h2',
+ heightStyle: "content",
+ collapsible: true,
+ navigation: true,
+ active: false
+ });
+ } else {
+ jQuery( "#accordion" ).accordion({
+ header: 'h3',
+ autoHeight: false, // for jQueryUI <1.10
+ heightStyle: "content", // required in jQueryUI 1.10
+ collapsible: true,
+ navigation: true,
+ active: false
+ });
+ }
+ });
+
+
+});// ready
+
+ // Change border for selecte inputs
+function changeBorder (idName, className) {
+ jQuery('.'+className).removeClass( 'checkedClass' );
+ jQuery('.'+className).removeClass( 'borderful' );
+ jQuery('#'+idName).addClass( 'borderful' );
+
+return 0;
+}
+
+/* FB like button */
+(function(d, s, id) {
+ var js, fjs = d.getElementsByTagName(s)[0];
+ if (d.getElementById(id)) return;
+ js = d.createElement(s); js.id = id;
+ js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
+ fjs.parentNode.insertBefore(js, fjs);
+}(document, 'script', 'facebook-jssdk'));
+
+/* Twitter follow button */
+window.twttr = (function (d, s, id) {
+ var t, js, fjs = d.getElementsByTagName(s)[0];
+ if (d.getElementById(id)) return;
+ js = d.createElement(s); js.id = id;
+ js.src= "https://platform.twitter.com/widgets.js";
+ fjs.parentNode.insertBefore(js, fjs);
+ return window.twttr || (t = { _e: [], ready: function (f) { t._e.push(f) } });
+}(document, "script", "twitter-wjs"));
+
/* FIN */
\ No newline at end of file
diff --git a/themes/mantra/admin/main.php b/themes/mantra/admin/main.php
index fe8e7ff6..978afbd5 100644
--- a/themes/mantra/admin/main.php
+++ b/themes/mantra/admin/main.php
@@ -1,479 +1,479 @@
- $value) {
- ${"$key"} = $value ;
-}
-
-
-// Hooks/Filters
-// add_action('admin_init', 'mantra_init_fn' ); // hooked by the settings plugin
-add_action('admin_menu', 'mantra_add_page_fn');
-add_action('init', 'mantra_init');
-
-
-$mantra_options= mantra_get_theme_options();
-
-// Registering and enqueuing all scripts and styles for the init hook
-function mantra_init() {
- //Loading Mantra text domain into the admin section
- load_theme_textdomain( 'mantra', get_template_directory_uri() . '/languages' );
-}
-
-// Creating the mantra subpage
-function mantra_add_page_fn() {
- $page = add_theme_page('Mantra Settings', 'Mantra Settings', 'edit_theme_options', 'mantra-page', 'mantra_page_fn');
- add_action( 'admin_print_styles-'.$page, 'mantra_admin_styles' );
- add_action('admin_print_scripts-'.$page, 'mantra_admin_scripts');
-
-}
-
-// Adding the styles for the Mantra admin page used when mantra_add_page_fn() is launched
-function mantra_admin_styles() {
- wp_register_style( 'mantra-admin-style',get_template_directory_uri() . '/admin/css/admin.css', NULL, _CRYOUT_THEME_VERSION );
- wp_register_style( 'jquery-ui-style',get_template_directory_uri() . '/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css', NULL, _CRYOUT_THEME_VERSION );
- wp_enqueue_style( 'mantra-admin-style' );
- wp_enqueue_style( 'jquery-ui-style' );
-}
-
-// Adding the styles for the Mantra admin page used when mantra_add_page_fn() is launched
-function mantra_admin_scripts() {
- // The farbtastic color selector already included in WP
- wp_enqueue_script("farbtastic");
- wp_enqueue_style( 'farbtastic' );
-
- //jQuery accordion and slider libraries already included in WP
- wp_enqueue_script('jquery-ui-accordion');
- wp_enqueue_script('jquery-ui-slider');
- wp_enqueue_script('jquery-ui-tooltip');
-
- // For backwards compatibility where Mantra is installed on older versions of WP where the ui accordion and slider are not included
- if (!wp_script_is('jquery-ui-accordion',$list='registered')) {
- wp_register_script('cryout_accordion',get_template_directory_uri() . '/admin/js/accordion-slider.js', array('jquery'), _CRYOUT_THEME_VERSION );
- wp_enqueue_script('cryout_accordion');
- }
-
- // For the WP uploader
- if(function_exists('wp_enqueue_media')) {
- wp_enqueue_media();
- } else {
- wp_enqueue_script('media-upload');
- wp_enqueue_script('thickbox');
- wp_enqueue_style('thickbox');
- }
-
- // The JS used in the admin
- wp_register_script('cryout-admin-js',get_template_directory_uri() . '/admin/js/admin.js', NULL, _CRYOUT_THEME_VERSION );
- wp_enqueue_script('cryout-admin-js');
-}
-
-// The settings sections. All the referenced functions are found in admin-functions.php
-function mantra_init_fn(){
-
-
- register_setting('ma_options', 'ma_options', 'ma_options_validate' );
-
-/**************
- sections
-**************/
-
- add_settings_section('layout_section', __('Layout Settings','mantra'), 'cryout_section_layout_fn', 'mantra-page');
- add_settings_section('header_section', __('Header Settings','mantra'), 'cryout_section_header_fn', 'mantra-page');
- add_settings_section('presentation_section', __('Presentation Page','mantra'), 'cryout_section_presentation_fn', 'mantra-page');
- add_settings_section('text_section', __('Text Settings','mantra'), 'cryout_section_text_fn', 'mantra-page');
- add_settings_section('appereance_section',__('Color Settings','mantra') , 'cryout_section_appereance_fn', 'mantra-page');
- add_settings_section('graphics_section', __('Graphics Settings','mantra') , 'cryout_section_graphics_fn', 'mantra-page');
- add_settings_section('post_section', __('Post Information Settings','mantra') , 'cryout_section_post_fn', 'mantra-page');
- add_settings_section('excerpt_section', __('Post Excerpt Settings','mantra') , 'cryout_section_excerpt_fn', 'mantra-page');
- add_settings_section('featured_section', __('Featured Image Settings','mantra') , 'cryout_section_featured_fn', 'mantra-page');
- add_settings_section('socials_section', __('Social Media Settings','mantra') , 'cryout_section_social_fn', 'mantra-page');
- add_settings_section('misc_section', __('Miscellaneous Settings','mantra') , 'cryout_section_misc_fn', 'mantra-page');
-
-/*** layout ***/
- add_settings_field('mantra_side', __('Main Layout','mantra') , 'cryout_setting_side_fn', 'mantra-page', 'layout_section');
- add_settings_field('mantra_sidewidth', __('Content / Sidebar Width','mantra') , 'cryout_setting_sidewidth_fn', 'mantra-page', 'layout_section');
- add_settings_field('mantra_mobile', __('Responsiveness','mantra') , 'cryout_setting_mobile_fn', 'mantra-page', 'layout_section');
-/*** presentation ***/
-
- add_settings_field('mantra_frontpage', __('Enable Presentation Page','mantra') , 'cryout_setting_frontpage_fn', 'mantra-page', 'presentation_section');
- add_settings_field('mantra_frontposts', __('Show Posts on Presentation Page','mantra') , 'cryout_setting_frontposts_fn', 'mantra-page', 'presentation_section');
- add_settings_field('mantra_frontslider', __('Slider Settings','mantra') , 'cryout_setting_frontslider_fn', 'mantra-page', 'presentation_section');
- add_settings_field('mantra_frontslider2', __('Slides','mantra') , 'cryout_setting_frontslider2_fn', 'mantra-page', 'presentation_section');
- add_settings_field('mantra_frontcolumns', __('Presentation Page Columns','mantra') , 'cryout_setting_frontcolumns_fn', 'mantra-page', 'presentation_section');
- add_settings_field('mantra_fronttext', __('Extras','mantra') , 'cryout_setting_fronttext_fn', 'mantra-page', 'presentation_section');
-
-/*** header ***/
- add_settings_field('mantra_hheight', __('Header Height','mantra') , 'cryout_setting_hheight_fn', 'mantra-page', 'header_section');
- add_settings_field('mantra_himage', __('Header Image','mantra') , 'cryout_setting_himage_fn', 'mantra-page', 'header_section');
- add_settings_field('mantra_siteheader', __('Site Header','mantra') , 'cryout_setting_siteheader_fn', 'mantra-page', 'header_section');
- add_settings_field('mantra_logoupload', __('Custom Logo Upload','mantra') , 'cryout_setting_logoupload_fn', 'mantra-page', 'header_section');
- add_settings_field('mantra_headermargin', __('Header Spacing','mantra') , 'cryout_setting_headermargin_fn', 'mantra-page', 'header_section');
- add_settings_field('mantra_menurounded', __('Rounded Menu Corners','mantra') , 'cryout_setting_menurounded_fn', 'mantra-page', 'header_section');
- add_settings_field('mantra_favicon', __('FavIcon Upload','mantra') , 'cryout_setting_favicon_fn', 'mantra-page', 'header_section');
-/*** text ***/
- add_settings_field('mantra_fontfamily', __('General Font','mantra') , 'cryout_setting_fontfamily_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_fontsize', __('General Font Size','mantra') , 'cryout_setting_fontsize_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_fonttitle', __('Post Title Font ','mantra') , 'cryout_setting_fonttitle_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_headfontsize', __('Post Title Font Size','mantra') , 'cryout_setting_headfontsize_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_fontside', __('Sidebar Font','mantra') , 'cryout_setting_fontside_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_sidefontsize', __('SideBar Font Size','mantra') , 'cryout_setting_sidefontsize_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_fontsubheader', __('Headings Font','mantra') , 'cryout_setting_fontsubheader_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_textalign', __('Force Text Align','mantra') , 'cryout_setting_textalign_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_parmargin', __('Paragraph spacing','mantra') , 'cryout_setting_parmargin_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_parindent', __('Paragraph indent','mantra') , 'cryout_setting_parindent_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_headerindent', __('Header indent','mantra') , 'cryout_setting_headerindent_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_lineheight', __('Line Height','mantra') , 'cryout_setting_lineheight_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_wordspace', __('Word spacing','mantra') , 'cryout_setting_wordspace_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_letterspace', __('Letter spacing','mantra') , 'cryout_setting_letterspace_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_textshadow', __('Text shadow','mantra') , 'cryout_setting_textshadow_fn', 'mantra-page', 'text_section');
-/*** appereance ***/
- add_settings_field('mantra_sitebackground', __('Background Image','mantra') , 'cryout_setting_sitebackground_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_backcolor', __('Background Color','mantra') , 'cryout_setting_backcolor_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_headercolor', __('Header (Banner and Menu) Background Color','mantra') , 'cryout_setting_headercolor_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_contentbg', __('Content Background Color','mantra') , 'cryout_setting_contentbg_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_menubg', __('Menu Items Background Color','mantra') , 'cryout_setting_menubg_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_s1bg', __('First Sidebar Background Color','mantra') , 'cryout_setting_first_sidebar_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_s2bg', __('Second Sidebar Background Color','mantra') , 'cryout_setting_second_sidebar_fn', 'mantra-page', 'appereance_section');
-
- add_settings_field('mantra_titlecolor', __('Site Title Color','mantra') , 'cryout_setting_titlecolor_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_descriptioncolor', __('Site Description Color','mantra') , 'cryout_setting_descriptioncolor_fn', 'mantra-page', 'appereance_section');
-
- add_settings_field('mantra_contentcolor', __('Content Text Color','mantra') , 'cryout_setting_contentcolor_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_linkscolor', __('Links Color','mantra') , 'cryout_setting_linkscolor_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_hovercolor', __('Links Hover Color','mantra') , 'cryout_setting_hovercolor_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_headtextcolor',__( 'Post Title Color','mantra') , 'cryout_setting_headtextcolor_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_headtexthover', __('Post Title Hover Color','mantra') , 'cryout_setting_headtexthover_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_sideheadbackcolor', __('Sidebar Header Background Color','mantra') , 'cryout_setting_sideheadbackcolor_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_sideheadtextcolor', __('Sidebar Header Text Color','mantra') , 'cryout_setting_sideheadtextcolor_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_prefootercolor', __('Footer Widget Background Color','mantra') , 'cryout_setting_prefootercolor_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_footercolor', __('Footer Background Color','mantra') , 'cryout_setting_footercolor_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_footerheader', __('Footer Widget Header Text Color','mantra') , 'cryout_setting_footerheader_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_footertext', __('Footer Widget Link Color','mantra') , 'cryout_setting_footertext_fn', 'mantra-page', 'appereance_section');
- add_settings_field('mantra_footerhover', __('Footer Widget Hover Color','mantra') , 'cryout_setting_footerhover_fn', 'mantra-page', 'appereance_section');
-/*** graphics ***/
- add_settings_field('mantra_breadcrumbs', __('Breadcrumbs','mantra') , 'cryout_setting_breadcrumbs_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_pagination', __('Pagination','mantra') , 'cryout_setting_pagination_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_menualign', __('Main Menu Alignment','mantra') , 'cryout_setting_menualign_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_image', __('Post Images Border','mantra') , 'cryout_setting_image_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_caption', __('Caption Border','mantra') , 'cryout_setting_caption_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_pin', __('Caption Pin','mantra') , 'cryout_setting_pin_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_sidebullet', __('Sidebar Menu Bullets','mantra') , 'cryout_setting_sidebullet_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_metaback', __('Meta Area Background','mantra') , 'cryout_setting_metaback_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_postseparator', __('Post Separator','mantra') , 'cryout_setting_postseparator_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_contentlist', __('Content List Bullets','mantra') , 'cryout_setting_contentlist_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_pagetitle', __('Page Titles','mantra') , 'cryout_setting_pagetitle_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_categetitle', __('Category Page Titles','mantra') , 'cryout_setting_categtitle_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_tables', __('Hide Tables','mantra') , 'cryout_setting_tables_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_backtop', __('Back to Top button','mantra') , 'cryout_setting_backtop_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_comtext', __('Text Under Comments','mantra') , 'cryout_setting_comtext_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_comclosed', __('Comments are closed text','mantra') , 'cryout_setting_comclosed_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_comoff', __('Comments off','mantra') , 'cryout_setting_comoff_fn', 'mantra-page', 'graphics_section');
-/*** post metas***/
- add_settings_field('mantra_postcomlink', __('Post Comments Link','mantra') , 'cryout_setting_postcomlink_fn', 'mantra-page', 'post_section');
- add_settings_field('mantra_postdate', __('Post Date','mantra') , 'cryout_setting_postdate_fn', 'mantra-page', 'post_section');
- add_settings_field('mantra_posttime', __('Post Time','mantra') , 'cryout_setting_posttime_fn', 'mantra-page', 'post_section');
- add_settings_field('mantra_postauthor', __('Post Author','mantra') , 'cryout_setting_postauthor_fn', 'mantra-page', 'post_section');
- add_settings_field('mantra_postcateg', __('Post Category','mantra') , 'cryout_setting_postcateg_fn', 'mantra-page', 'post_section');
- add_settings_field('mantra_postmetas', __('Meta Bar','mantra') , 'cryout_setting_postmetas_fn', 'mantra-page', 'post_section');
- add_settings_field('mantra_posttag', __('Post Tags','mantra') , 'cryout_setting_posttag_fn', 'mantra-page', 'post_section');
- add_settings_field('mantra_postbook', __('Post Permalink','mantra') , 'cryout_setting_postbook_fn', 'mantra-page', 'post_section');
-/*** post exceprts***/
- add_settings_field('mantra_excerpthome', __('Post Excerpts on Home Page','mantra') , 'cryout_setting_excerpthome_fn', 'mantra-page', 'excerpt_section');
- add_settings_field('mantra_excerptsticky', __('Affect Sticky Posts','mantra') , 'cryout_setting_excerptsticky_fn', 'mantra-page', 'excerpt_section');
- add_settings_field('mantra_excerptarchive', __('Post Excerpts on Archive and Category Pages','mantra') , 'cryout_setting_excerptarchive_fn', 'mantra-page', 'excerpt_section');
- add_settings_field('mantra_excerptwords', __('Number of Words for Post Excerpts ','mantra') , 'cryout_setting_excerptwords_fn', 'mantra-page', 'excerpt_section');
- add_settings_field('mantra_magazinelayout', __('Magazine Layout','mantra') , 'cryout_setting_magazinelayout_fn', 'mantra-page', 'excerpt_section');
- add_settings_field('mantra_excerptdots', __('Excerpt suffix','mantra') , 'cryout_setting_excerptdots_fn', 'mantra-page', 'excerpt_section');
- add_settings_field('mantra_excerptcont', __('Continue reading link text ','mantra') , 'cryout_setting_excerptcont_fn', 'mantra-page', 'excerpt_section');
- add_settings_field('mantra_excerpttags', __('HTML tags in Excerpts','mantra') , 'cryout_setting_excerpttags_fn', 'mantra-page', 'excerpt_section');
-/*** featured ***/
- add_settings_field('mantra_fpost', __('Featured Images as POST Thumbnails ','mantra') , 'cryout_setting_fpost_fn', 'mantra-page', 'featured_section');
- add_settings_field('mantra_fauto', __('Auto Select Images From Posts ','mantra') , 'cryout_setting_fauto_fn', 'mantra-page', 'featured_section');
- add_settings_field('mantra_falign', __('Thumbnails Alignment ','mantra') , 'cryout_setting_falign_fn', 'mantra-page', 'featured_section');
- add_settings_field('mantra_fsize', __('Thumbnails Size ','mantra') , 'cryout_setting_fsize_fn', 'mantra-page', 'featured_section');
- add_settings_field('mantra_fheader', __('Featured Images as HEADER Images ','mantra') , 'cryout_setting_fheader_fn', 'mantra-page', 'featured_section');
-/*** socials ***/
- add_settings_field('mantra_socials1', __('Link nr. 1','mantra') , 'cryout_setting_socials1_fn', 'mantra-page', 'socials_section');
- add_settings_field('mantra_socials2', __('Link nr. 2','mantra') , 'cryout_setting_socials2_fn', 'mantra-page', 'socials_section');
- add_settings_field('mantra_socials3', __('Link nr. 3','mantra') , 'cryout_setting_socials3_fn', 'mantra-page', 'socials_section');
- add_settings_field('mantra_socials4', __('Link nr. 4','mantra') , 'cryout_setting_socials4_fn', 'mantra-page', 'socials_section');
- add_settings_field('mantra_socials5', __('Link nr. 5','mantra') , 'cryout_setting_socials5_fn', 'mantra-page', 'socials_section');
- add_settings_field('mantra_socialshow', __('Socials display','mantra') , 'cryout_setting_socialsdisplay_fn', 'mantra-page', 'socials_section');
-/*** misc ***/
- 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');
-}
-
-// Display the admin options page
-function mantra_page_fn() {
- // Load the import form page if the import button has been pressed
- if (isset($_POST['mantra_import'])) {
- mantra_import_form();
- return;
- }
- // Load the import form page after upload button has been pressed
- if (isset($_POST['mantra_import_confirmed'])) {
- mantra_import_file();
- return;
- }
-
- if (!current_user_can('edit_theme_options')) {
- wp_die( __('Sorry, but you do not have sufficient permissions to access this page.','mantra') );
- } ?>
-
-
-
-
-
-
-
-
-
";
- echo _e('Mantra settings updated successfully.','mantra');
- echo "
";
-} ?>
-
-
Checking jQuery functionality... If this message remains visible after the page has loaded then there is a problem with your WordPress jQuery library. This can have several causes, including incompatible plugins.
-The Parabola Settings page cannot function without jQuery.
-
-
-
-
- Mantra v by Cryout Creations
-
-
-
-
-
-
-
-
Coffee Break
-
Here at Cryout Creations (the developers of yours truly Mantra Theme), we spend night after night improving the Mantra Theme. We fix a lot of bugs (that we previously created); we add more and more customization options while also trying to keep things as simple as possible; then... we might play a game or two but rest assured that we return to read and (in most cases) reply to your late night emails and comments, take notes and draw dashboards of things to implement in future versions.
-
So you might ask yourselves: How do they do it? How can they keep so fresh after all that hard labor for that darned theme? Well folks, it's simple. We drink coffee. Industrial quantities of hot boiling coffee. We love it! So if you want to help with the further development of the Mantra Theme...
"; ?>
-
-
Or socially smother, caress and embrace us:
-
-
-
-
-
-
-
-
-
-
-
-
- get_item_quantity( 10 );
- $news_items = $mantra_news->get_items( 0, (int)$maxitems );
- }
- ?>
-
- ' . __( 'No news items.', 'mantra' ) . ''; else :
- foreach( $news_items as $news_item ) : ?>
-
-
- get_date(' j F Y'); ?>
- Read more »
-
-
-
-
-
-
-
-
-
-
-
-
-
+ $value) {
+ ${"$key"} = $value ;
+}
+
+
+// Hooks/Filters
+// add_action('admin_init', 'mantra_init_fn' ); // hooked by the settings plugin
+add_action('admin_menu', 'mantra_add_page_fn');
+add_action('init', 'mantra_init');
+
+
+$mantra_options= mantra_get_theme_options();
+
+// Registering and enqueuing all scripts and styles for the init hook
+function mantra_init() {
+ //Loading Mantra text domain into the admin section
+ load_theme_textdomain( 'mantra', get_template_directory_uri() . '/languages' );
+}
+
+// Creating the mantra subpage
+function mantra_add_page_fn() {
+ $page = add_theme_page('Mantra Settings', 'Mantra Settings', 'edit_theme_options', 'mantra-page', 'mantra_page_fn');
+ add_action( 'admin_print_styles-'.$page, 'mantra_admin_styles' );
+ add_action('admin_print_scripts-'.$page, 'mantra_admin_scripts');
+
+}
+
+// Adding the styles for the Mantra admin page used when mantra_add_page_fn() is launched
+function mantra_admin_styles() {
+ wp_register_style( 'mantra-admin-style',get_template_directory_uri() . '/admin/css/admin.css', NULL, _CRYOUT_THEME_VERSION );
+ wp_register_style( 'jquery-ui-style',get_template_directory_uri() . '/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css', NULL, _CRYOUT_THEME_VERSION );
+ wp_enqueue_style( 'mantra-admin-style' );
+ wp_enqueue_style( 'jquery-ui-style' );
+}
+
+// Adding the styles for the Mantra admin page used when mantra_add_page_fn() is launched
+function mantra_admin_scripts() {
+ // The farbtastic color selector already included in WP
+ wp_enqueue_script("farbtastic");
+ wp_enqueue_style( 'farbtastic' );
+
+ //jQuery accordion and slider libraries already included in WP
+ wp_enqueue_script('jquery-ui-accordion');
+ wp_enqueue_script('jquery-ui-slider');
+ wp_enqueue_script('jquery-ui-tooltip');
+
+ // For backwards compatibility where Mantra is installed on older versions of WP where the ui accordion and slider are not included
+ if (!wp_script_is('jquery-ui-accordion',$list='registered')) {
+ wp_register_script('cryout_accordion',get_template_directory_uri() . '/admin/js/accordion-slider.js', array('jquery'), _CRYOUT_THEME_VERSION );
+ wp_enqueue_script('cryout_accordion');
+ }
+
+ // For the WP uploader
+ if(function_exists('wp_enqueue_media')) {
+ wp_enqueue_media();
+ } else {
+ wp_enqueue_script('media-upload');
+ wp_enqueue_script('thickbox');
+ wp_enqueue_style('thickbox');
+ }
+
+ // The JS used in the admin
+ wp_register_script('cryout-admin-js',get_template_directory_uri() . '/admin/js/admin.js', NULL, _CRYOUT_THEME_VERSION );
+ wp_enqueue_script('cryout-admin-js');
+}
+
+// The settings sections. All the referenced functions are found in admin-functions.php
+function mantra_init_fn(){
+
+
+ register_setting('ma_options', 'ma_options', 'ma_options_validate' );
+
+/**************
+ sections
+**************/
+
+ add_settings_section('layout_section', __('Layout Settings','mantra'), 'cryout_section_layout_fn', 'mantra-page');
+ add_settings_section('header_section', __('Header Settings','mantra'), 'cryout_section_header_fn', 'mantra-page');
+ add_settings_section('presentation_section', __('Presentation Page','mantra'), 'cryout_section_presentation_fn', 'mantra-page');
+ add_settings_section('text_section', __('Text Settings','mantra'), 'cryout_section_text_fn', 'mantra-page');
+ add_settings_section('appereance_section',__('Color Settings','mantra') , 'cryout_section_appereance_fn', 'mantra-page');
+ add_settings_section('graphics_section', __('Graphics Settings','mantra') , 'cryout_section_graphics_fn', 'mantra-page');
+ add_settings_section('post_section', __('Post Information Settings','mantra') , 'cryout_section_post_fn', 'mantra-page');
+ add_settings_section('excerpt_section', __('Post Excerpt Settings','mantra') , 'cryout_section_excerpt_fn', 'mantra-page');
+ add_settings_section('featured_section', __('Featured Image Settings','mantra') , 'cryout_section_featured_fn', 'mantra-page');
+ add_settings_section('socials_section', __('Social Media Settings','mantra') , 'cryout_section_social_fn', 'mantra-page');
+ add_settings_section('misc_section', __('Miscellaneous Settings','mantra') , 'cryout_section_misc_fn', 'mantra-page');
+
+/*** layout ***/
+ add_settings_field('mantra_side', __('Main Layout','mantra') , 'cryout_setting_side_fn', 'mantra-page', 'layout_section');
+ add_settings_field('mantra_sidewidth', __('Content / Sidebar Width','mantra') , 'cryout_setting_sidewidth_fn', 'mantra-page', 'layout_section');
+ add_settings_field('mantra_mobile', __('Responsiveness','mantra') , 'cryout_setting_mobile_fn', 'mantra-page', 'layout_section');
+/*** presentation ***/
+
+ add_settings_field('mantra_frontpage', __('Enable Presentation Page','mantra') , 'cryout_setting_frontpage_fn', 'mantra-page', 'presentation_section');
+ add_settings_field('mantra_frontposts', __('Show Posts on Presentation Page','mantra') , 'cryout_setting_frontposts_fn', 'mantra-page', 'presentation_section');
+ add_settings_field('mantra_frontslider', __('Slider Settings','mantra') , 'cryout_setting_frontslider_fn', 'mantra-page', 'presentation_section');
+ add_settings_field('mantra_frontslider2', __('Slides','mantra') , 'cryout_setting_frontslider2_fn', 'mantra-page', 'presentation_section');
+ add_settings_field('mantra_frontcolumns', __('Presentation Page Columns','mantra') , 'cryout_setting_frontcolumns_fn', 'mantra-page', 'presentation_section');
+ add_settings_field('mantra_fronttext', __('Extras','mantra') , 'cryout_setting_fronttext_fn', 'mantra-page', 'presentation_section');
+
+/*** header ***/
+ add_settings_field('mantra_hheight', __('Header Height','mantra') , 'cryout_setting_hheight_fn', 'mantra-page', 'header_section');
+ add_settings_field('mantra_himage', __('Header Image','mantra') , 'cryout_setting_himage_fn', 'mantra-page', 'header_section');
+ add_settings_field('mantra_siteheader', __('Site Header','mantra') , 'cryout_setting_siteheader_fn', 'mantra-page', 'header_section');
+ add_settings_field('mantra_logoupload', __('Custom Logo Upload','mantra') , 'cryout_setting_logoupload_fn', 'mantra-page', 'header_section');
+ add_settings_field('mantra_headermargin', __('Header Spacing','mantra') , 'cryout_setting_headermargin_fn', 'mantra-page', 'header_section');
+ add_settings_field('mantra_menurounded', __('Rounded Menu Corners','mantra') , 'cryout_setting_menurounded_fn', 'mantra-page', 'header_section');
+ add_settings_field('mantra_favicon', __('FavIcon Upload','mantra') , 'cryout_setting_favicon_fn', 'mantra-page', 'header_section');
+/*** text ***/
+ add_settings_field('mantra_fontfamily', __('General Font','mantra') , 'cryout_setting_fontfamily_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_fontsize', __('General Font Size','mantra') , 'cryout_setting_fontsize_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_fonttitle', __('Post Title Font ','mantra') , 'cryout_setting_fonttitle_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_headfontsize', __('Post Title Font Size','mantra') , 'cryout_setting_headfontsize_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_fontside', __('Sidebar Font','mantra') , 'cryout_setting_fontside_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_sidefontsize', __('SideBar Font Size','mantra') , 'cryout_setting_sidefontsize_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_fontsubheader', __('Headings Font','mantra') , 'cryout_setting_fontsubheader_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_textalign', __('Force Text Align','mantra') , 'cryout_setting_textalign_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_parmargin', __('Paragraph spacing','mantra') , 'cryout_setting_parmargin_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_parindent', __('Paragraph indent','mantra') , 'cryout_setting_parindent_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_headerindent', __('Header indent','mantra') , 'cryout_setting_headerindent_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_lineheight', __('Line Height','mantra') , 'cryout_setting_lineheight_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_wordspace', __('Word spacing','mantra') , 'cryout_setting_wordspace_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_letterspace', __('Letter spacing','mantra') , 'cryout_setting_letterspace_fn', 'mantra-page', 'text_section');
+ add_settings_field('mantra_textshadow', __('Text shadow','mantra') , 'cryout_setting_textshadow_fn', 'mantra-page', 'text_section');
+/*** appereance ***/
+ add_settings_field('mantra_sitebackground', __('Background Image','mantra') , 'cryout_setting_sitebackground_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_backcolor', __('Background Color','mantra') , 'cryout_setting_backcolor_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_headercolor', __('Header (Banner and Menu) Background Color','mantra') , 'cryout_setting_headercolor_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_contentbg', __('Content Background Color','mantra') , 'cryout_setting_contentbg_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_menubg', __('Menu Items Background Color','mantra') , 'cryout_setting_menubg_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_s1bg', __('First Sidebar Background Color','mantra') , 'cryout_setting_first_sidebar_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_s2bg', __('Second Sidebar Background Color','mantra') , 'cryout_setting_second_sidebar_fn', 'mantra-page', 'appereance_section');
+
+ add_settings_field('mantra_titlecolor', __('Site Title Color','mantra') , 'cryout_setting_titlecolor_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_descriptioncolor', __('Site Description Color','mantra') , 'cryout_setting_descriptioncolor_fn', 'mantra-page', 'appereance_section');
+
+ add_settings_field('mantra_contentcolor', __('Content Text Color','mantra') , 'cryout_setting_contentcolor_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_linkscolor', __('Links Color','mantra') , 'cryout_setting_linkscolor_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_hovercolor', __('Links Hover Color','mantra') , 'cryout_setting_hovercolor_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_headtextcolor',__( 'Post Title Color','mantra') , 'cryout_setting_headtextcolor_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_headtexthover', __('Post Title Hover Color','mantra') , 'cryout_setting_headtexthover_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_sideheadbackcolor', __('Sidebar Header Background Color','mantra') , 'cryout_setting_sideheadbackcolor_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_sideheadtextcolor', __('Sidebar Header Text Color','mantra') , 'cryout_setting_sideheadtextcolor_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_prefootercolor', __('Footer Widget Background Color','mantra') , 'cryout_setting_prefootercolor_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_footercolor', __('Footer Background Color','mantra') , 'cryout_setting_footercolor_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_footerheader', __('Footer Widget Header Text Color','mantra') , 'cryout_setting_footerheader_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_footertext', __('Footer Widget Link Color','mantra') , 'cryout_setting_footertext_fn', 'mantra-page', 'appereance_section');
+ add_settings_field('mantra_footerhover', __('Footer Widget Hover Color','mantra') , 'cryout_setting_footerhover_fn', 'mantra-page', 'appereance_section');
+/*** graphics ***/
+ add_settings_field('mantra_breadcrumbs', __('Breadcrumbs','mantra') , 'cryout_setting_breadcrumbs_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_pagination', __('Pagination','mantra') , 'cryout_setting_pagination_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_menualign', __('Main Menu Alignment','mantra') , 'cryout_setting_menualign_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_image', __('Post Images Border','mantra') , 'cryout_setting_image_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_caption', __('Caption Border','mantra') , 'cryout_setting_caption_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_pin', __('Caption Pin','mantra') , 'cryout_setting_pin_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_sidebullet', __('Sidebar Menu Bullets','mantra') , 'cryout_setting_sidebullet_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_metaback', __('Meta Area Background','mantra') , 'cryout_setting_metaback_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_postseparator', __('Post Separator','mantra') , 'cryout_setting_postseparator_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_contentlist', __('Content List Bullets','mantra') , 'cryout_setting_contentlist_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_pagetitle', __('Page Titles','mantra') , 'cryout_setting_pagetitle_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_categetitle', __('Category Page Titles','mantra') , 'cryout_setting_categtitle_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_tables', __('Hide Tables','mantra') , 'cryout_setting_tables_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_backtop', __('Back to Top button','mantra') , 'cryout_setting_backtop_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_comtext', __('Text Under Comments','mantra') , 'cryout_setting_comtext_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_comclosed', __('Comments are closed text','mantra') , 'cryout_setting_comclosed_fn', 'mantra-page', 'graphics_section');
+ add_settings_field('mantra_comoff', __('Comments off','mantra') , 'cryout_setting_comoff_fn', 'mantra-page', 'graphics_section');
+/*** post metas***/
+ add_settings_field('mantra_postcomlink', __('Post Comments Link','mantra') , 'cryout_setting_postcomlink_fn', 'mantra-page', 'post_section');
+ add_settings_field('mantra_postdate', __('Post Date','mantra') , 'cryout_setting_postdate_fn', 'mantra-page', 'post_section');
+ add_settings_field('mantra_posttime', __('Post Time','mantra') , 'cryout_setting_posttime_fn', 'mantra-page', 'post_section');
+ add_settings_field('mantra_postauthor', __('Post Author','mantra') , 'cryout_setting_postauthor_fn', 'mantra-page', 'post_section');
+ add_settings_field('mantra_postcateg', __('Post Category','mantra') , 'cryout_setting_postcateg_fn', 'mantra-page', 'post_section');
+ add_settings_field('mantra_postmetas', __('Meta Bar','mantra') , 'cryout_setting_postmetas_fn', 'mantra-page', 'post_section');
+ add_settings_field('mantra_posttag', __('Post Tags','mantra') , 'cryout_setting_posttag_fn', 'mantra-page', 'post_section');
+ add_settings_field('mantra_postbook', __('Post Permalink','mantra') , 'cryout_setting_postbook_fn', 'mantra-page', 'post_section');
+/*** post exceprts***/
+ add_settings_field('mantra_excerpthome', __('Post Excerpts on Home Page','mantra') , 'cryout_setting_excerpthome_fn', 'mantra-page', 'excerpt_section');
+ add_settings_field('mantra_excerptsticky', __('Affect Sticky Posts','mantra') , 'cryout_setting_excerptsticky_fn', 'mantra-page', 'excerpt_section');
+ add_settings_field('mantra_excerptarchive', __('Post Excerpts on Archive and Category Pages','mantra') , 'cryout_setting_excerptarchive_fn', 'mantra-page', 'excerpt_section');
+ add_settings_field('mantra_excerptwords', __('Number of Words for Post Excerpts ','mantra') , 'cryout_setting_excerptwords_fn', 'mantra-page', 'excerpt_section');
+ add_settings_field('mantra_magazinelayout', __('Magazine Layout','mantra') , 'cryout_setting_magazinelayout_fn', 'mantra-page', 'excerpt_section');
+ add_settings_field('mantra_excerptdots', __('Excerpt suffix','mantra') , 'cryout_setting_excerptdots_fn', 'mantra-page', 'excerpt_section');
+ add_settings_field('mantra_excerptcont', __('Continue reading link text ','mantra') , 'cryout_setting_excerptcont_fn', 'mantra-page', 'excerpt_section');
+ add_settings_field('mantra_excerpttags', __('HTML tags in Excerpts','mantra') , 'cryout_setting_excerpttags_fn', 'mantra-page', 'excerpt_section');
+/*** featured ***/
+ add_settings_field('mantra_fpost', __('Featured Images as POST Thumbnails ','mantra') , 'cryout_setting_fpost_fn', 'mantra-page', 'featured_section');
+ add_settings_field('mantra_fauto', __('Auto Select Images From Posts ','mantra') , 'cryout_setting_fauto_fn', 'mantra-page', 'featured_section');
+ add_settings_field('mantra_falign', __('Thumbnails Alignment ','mantra') , 'cryout_setting_falign_fn', 'mantra-page', 'featured_section');
+ add_settings_field('mantra_fsize', __('Thumbnails Size ','mantra') , 'cryout_setting_fsize_fn', 'mantra-page', 'featured_section');
+ add_settings_field('mantra_fheader', __('Featured Images as HEADER Images ','mantra') , 'cryout_setting_fheader_fn', 'mantra-page', 'featured_section');
+/*** socials ***/
+ add_settings_field('mantra_socials1', __('Link nr. 1','mantra') , 'cryout_setting_socials1_fn', 'mantra-page', 'socials_section');
+ add_settings_field('mantra_socials2', __('Link nr. 2','mantra') , 'cryout_setting_socials2_fn', 'mantra-page', 'socials_section');
+ add_settings_field('mantra_socials3', __('Link nr. 3','mantra') , 'cryout_setting_socials3_fn', 'mantra-page', 'socials_section');
+ add_settings_field('mantra_socials4', __('Link nr. 4','mantra') , 'cryout_setting_socials4_fn', 'mantra-page', 'socials_section');
+ add_settings_field('mantra_socials5', __('Link nr. 5','mantra') , 'cryout_setting_socials5_fn', 'mantra-page', 'socials_section');
+ add_settings_field('mantra_socialshow', __('Socials display','mantra') , 'cryout_setting_socialsdisplay_fn', 'mantra-page', 'socials_section');
+/*** misc ***/
+ 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');
+}
+
+// Display the admin options page
+function mantra_page_fn() {
+ // Load the import form page if the import button has been pressed
+ if (isset($_POST['mantra_import'])) {
+ mantra_import_form();
+ return;
+ }
+ // Load the import form page after upload button has been pressed
+ if (isset($_POST['mantra_import_confirmed'])) {
+ mantra_import_file();
+ return;
+ }
+
+ if (!current_user_can('edit_theme_options')) {
+ wp_die( __('Sorry, but you do not have sufficient permissions to access this page.','mantra') );
+ } ?>
+
+
+
+
+
+
+
+
+
";
+ echo _e('Mantra settings updated successfully.','mantra');
+ echo "
";
+} ?>
+
+
Checking jQuery functionality... If this message remains visible after the page has loaded then there is a problem with your WordPress jQuery library. This can have several causes, including incompatible plugins.
+The Parabola Settings page cannot function without jQuery.
+
+
+
+
+ Mantra v by Cryout Creations
+
+
+
+
+
+
+
+
Coffee Break
+
Here at Cryout Creations (the developers of yours truly Mantra Theme), we spend night after night improving the Mantra Theme. We fix a lot of bugs (that we previously created); we add more and more customization options while also trying to keep things as simple as possible; then... we might play a game or two but rest assured that we return to read and (in most cases) reply to your late night emails and comments, take notes and draw dashboards of things to implement in future versions.
+
So you might ask yourselves: How do they do it? How can they keep so fresh after all that hard labor for that darned theme? Well folks, it's simple. We drink coffee. Industrial quantities of hot boiling coffee. We love it! So if you want to help with the further development of the Mantra Theme...
"; ?>
+
+
Or socially smother, caress and embrace us:
+
+
+
+
+
+
+
+
+
+
+
+
+ get_item_quantity( 10 );
+ $news_items = $mantra_news->get_items( 0, (int)$maxitems );
+ }
+ ?>
+
+ ' . __( 'No news items.', 'mantra' ) . ''; else :
+ foreach( $news_items as $news_item ) : ?>
+
+
+ get_date(' j F Y'); ?>
+ Read more »
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/mantra/admin/sanitize.php b/themes/mantra/admin/sanitize.php
index a95a7c9e..f41f3387 100644
--- a/themes/mantra/admin/sanitize.php
+++ b/themes/mantra/admin/sanitize.php
@@ -1,239 +1,239 @@
-=500 && $input['mantra_sidewidth'] <=1760) {} else {$input['mantra_sidewidth']=$mantra_defaults['mantra_sidewidth']; }
- if(isset($input['mantra_sidebar']) && is_numeric($input['mantra_sidebar']) && $input['mantra_sidebar']>=220 && $input['mantra_sidebar'] <=800) {} else {$input['mantra_sidebar']=$mantra_defaults['mantra_sidebar']; }
-
- if(isset($input['mantra_sidewidthRel']) && is_numeric($input['mantra_sidewidthRel']) && $input['mantra_sidewidthRel']>=40 && $input['mantra_sidewidthRel'] <=80) {} else {$input['mantra_sidewidthRel']=$mantra_defaults['mantra_sidewidthRel']; }
- if(isset($input['mantra_sidebarRel']) && is_numeric($input['mantra_sidebarRel']) && $input['mantra_sidebarRel']>=20 && $input['mantra_sidebarRel'] <=50) {} else {$input['mantra_sidebarRel']=$mantra_defaults['mantra_sidebarRel']; }
-
- if (isset($input['mantra_zoom'])) $input['mantra_zoom'] = "1"; else $input['mantra_zoom'] = 0;
-
- $input['mantra_hheight'] = intval(wp_kses_data($input['mantra_hheight']));
-
- $input['mantra_copyright'] = trim(wp_kses_post($input['mantra_copyright']));
-
- $input['mantra_backcolor'] = wp_kses_data($input['mantra_backcolor']);
- $input['mantra_headercolor'] = wp_kses_data($input['mantra_headercolor']);
- $input['mantra_contentbg'] = wp_kses_data($input['mantra_contentbg']);
- $input['mantra_menubg'] = wp_kses_data($input['mantra_menubg']);
- $input['mantra_s1bg'] = wp_kses_data($input['mantra_s1bg']);
- $input['mantra_s2bg'] = wp_kses_data($input['mantra_s2bg']);
- $input['mantra_prefootercolor'] = wp_kses_data($input['mantra_prefootercolor']);
- $input['mantra_footercolor'] = wp_kses_data($input['mantra_footercolor']);
- $input['mantra_titlecolor'] = wp_kses_data($input['mantra_titlecolor']);
- $input['mantra_descriptioncolor'] = wp_kses_data($input['mantra_descriptioncolor']);
- $input['mantra_contentcolor'] = wp_kses_data($input['mantra_contentcolor']);
- $input['mantra_linkscolor'] = wp_kses_data($input['mantra_linkscolor']);
- $input['mantra_hovercolor'] = wp_kses_data($input['mantra_hovercolor']);
- $input['mantra_headtextcolor'] = wp_kses_data($input['mantra_headtextcolor']);
- $input['mantra_headtexthover'] = wp_kses_data($input['mantra_headtexthover']);
- $input['mantra_sideheadbackcolor'] = wp_kses_data($input['mantra_sideheadbackcolor']);
- $input['mantra_sideheadtextcolor'] = wp_kses_data($input['mantra_sideheadtextcolor']);
- $input['mantra_footerheader'] = wp_kses_data($input['mantra_footerheader']);
- $input['mantra_footertext'] = wp_kses_data($input['mantra_footertext']);
- $input['mantra_footerhover'] = wp_kses_data($input['mantra_footerhover']);
-
- $input['mantra_excerptwords'] = intval(wp_kses_data($input['mantra_excerptwords']));
- $input['mantra_excerptdots'] = wp_kses_data($input['mantra_excerptdots']);
- $input['mantra_excerptcont'] = wp_kses_data($input['mantra_excerptcont']);
-
- $input['mantra_fwidth'] = intval(wp_kses_data($input['mantra_fwidth']));
- $input['mantra_fheight'] = intval(wp_kses_data($input['mantra_fheight']));
-
-/*** 2 ***/
-
- $cryout_special_terms = array('mailto:','callto://');
- $cryout_special_keys = array('Mail', 'Skype');
- for ($i=1;$i<10;$i+=2) {
- $j=$i+1;
- if (in_array($input['mantra_social'.$i],$cryout_special_keys)) :
- $input['mantra_social'.$j] = wp_kses_data(str_replace($cryout_special_terms,'',$input['mantra_social'.$j]));
- if ($input['mantra_social'.$i]=='Mail') {$input['mantra_social'.$j]='mailto:'.$input['mantra_social'.$j];};
- if ($input['mantra_social'.$i]=='Skype') {$input['mantra_social'.$j]='callto://'.$input['mantra_social'.$j];};
- else :
- $input['mantra_social'.$j] = esc_url_raw($input['mantra_social'.$j]);
- endif;
- }
- for ($i=0;$i<=5;$i++) {
- if (!isset($input['mantra_socialsdisplay'.$i])) {$input['mantra_socialsdisplay'.$i] = "0";}
- }
-
- $input['mantra_favicon'] = esc_url_raw($input['mantra_favicon']);
- $input['mantra_logoupload'] = esc_url_raw($input['mantra_logoupload']);
- $input['mantra_headermargintop'] = intval(wp_kses_data($input['mantra_headermargintop']));
- $input['mantra_headermarginleft'] = intval(wp_kses_data($input['mantra_headermarginleft']));
-
- $input['mantra_customcss'] = wp_kses_post(trim($input['mantra_customcss']));
- $input['mantra_customjs'] = wp_kses_post(trim($input['mantra_customjs']));
-
- $input['mantra_googlefont'] = trim(wp_kses_data($input['mantra_googlefont']));
- $input['mantra_googlefonttitle'] = trim(wp_kses_data($input['mantra_googlefonttitle']));
- $input['mantra_googlefontside'] = trim(wp_kses_data($input['mantra_googlefontside']));
- $input['mantra_googlefontsubheader'] = trim(wp_kses_data($input['mantra_googlefontsubheader']));
-
- if($input['mantra_googlefont']) {
- $mantra_googlefont2 = $input['mantra_googlefont'];
- $mantra_googlefont2= preg_replace( '/\s+/', '+', $mantra_googlefont2 );
- $mantra_googlefont2= "//fonts.googleapis.com/css?family=".$mantra_googlefont2;
- $input['mantra_googlefont2'] = $mantra_googlefont2;
- } else $input['mantra_googlefont2'] = '';
- if($input['mantra_googlefonttitle']) {
- $mantra_googlefonttitle2 = $input['mantra_googlefonttitle'];
- $mantra_googlefonttitle2= preg_replace( '/\s+/', '+', $mantra_googlefonttitle2 );
- $mantra_googlefonttitle2= "//fonts.googleapis.com/css?family=".$mantra_googlefonttitle2;
- $input['mantra_googlefonttitle2'] = $mantra_googlefonttitle2;
- } else $input['mantra_googlefonttitle2'] = '';
- if($input['mantra_googlefontside']) {
- $mantra_googlefontside2 = $input['mantra_googlefontside'];
- $mantra_googlefontside2= preg_replace( '/\s+/', '+', $mantra_googlefontside2 );
- $mantra_googlefontside2= "//fonts.googleapis.com/css?family=".$mantra_googlefontside2;
- $input['mantra_googlefontside2'] = $mantra_googlefontside2;
- } else $input['mantra_googlefontside2'] = '';
- if($input['mantra_googlefontsubheader']) {
- $mantra_googlefontsubheader2 = $input['mantra_googlefontsubheader'];
- $mantra_googlefontsubheader2= preg_replace( '/\s+/', '+', $mantra_googlefontsubheader2 );
- $mantra_googlefontsubheader2= "//fonts.googleapis.com/css?family=".$mantra_googlefontsubheader2;
- $input['mantra_googlefontsubheader2'] = $mantra_googlefontsubheader2;
- } else $input['mantra_googlefontsubheader2'] = '';
-
-
- $input['mantra_frontpostscount'] = intval(wp_kses_data($input['mantra_frontpostscount']));
-
- $input['mantra_fpsliderborderwidth'] = intval(wp_kses_data($input['mantra_fpsliderborderwidth']));
-
- $input['mantra_slideNumber'] = intval(wp_kses_data($input['mantra_slideNumber']));
- $input['mantra_slideSpecific'] = wp_kses_data($input['mantra_slideSpecific']);
-
- $input['mantra_fpsliderwidth'] = intval(wp_kses_data($input['mantra_fpsliderwidth']));
- $input['mantra_fpsliderheight'] = intval(wp_kses_data($input['mantra_fpsliderheight']));
-
-/** 3 ***/
- $input['mantra_sliderimg1'] = wp_kses_data($input['mantra_sliderimg1']);
- $input['mantra_slidertitle1'] = wp_kses_data($input['mantra_slidertitle1']);
- $input['mantra_slidertext1'] = wp_kses_post($input['mantra_slidertext1']);
- $input['mantra_sliderlink1'] = esc_url_raw($input['mantra_sliderlink1']);
- $input['mantra_sliderimg2'] = wp_kses_data($input['mantra_sliderimg2']);
- $input['mantra_slidertitle2'] = wp_kses_data($input['mantra_slidertitle2']);
- $input['mantra_slidertext2'] = wp_kses_post($input['mantra_slidertext2']);
- $input['mantra_sliderlink2'] = esc_url_raw($input['mantra_sliderlink2']);
- $input['mantra_sliderimg3'] = wp_kses_data($input['mantra_sliderimg3']);
- $input['mantra_slidertitle3'] = wp_kses_data($input['mantra_slidertitle3']);
- $input['mantra_slidertext3'] = wp_kses_post($input['mantra_slidertext3']);
- $input['mantra_sliderlink3'] = esc_url_raw($input['mantra_sliderlink3']);
- $input['mantra_sliderimg4'] = wp_kses_data($input['mantra_sliderimg4']);
- $input['mantra_slidertitle4'] = wp_kses_data($input['mantra_slidertitle4']);
- $input['mantra_slidertext4'] = wp_kses_post($input['mantra_slidertext4']);
- $input['mantra_sliderlink4'] = esc_url_raw($input['mantra_sliderlink4']);
- $input['mantra_sliderimg5'] = wp_kses_data($input['mantra_sliderimg5']);
- $input['mantra_slidertitle5'] = wp_kses_data($input['mantra_slidertitle5']);
- $input['mantra_slidertext5'] = wp_kses_post($input['mantra_slidertext5']);
- $input['mantra_sliderlink5'] = esc_url_raw($input['mantra_sliderlink5']);
-
- $input['mantra_colimageheight'] = intval(wp_kses_data($input['mantra_colimageheight']));
-
-/** 4 **/
- $input['mantra_columnimg1'] = wp_kses_data($input['mantra_columnimg1']);
- $input['mantra_columntitle1'] = wp_kses_data($input['mantra_columntitle1']);
- $input['mantra_columntext1'] = wp_kses_post($input['mantra_columntext1']);
- $input['mantra_columnlink1'] = esc_url_raw($input['mantra_columnlink1']);
- $input['mantra_columnimg2'] = wp_kses_data($input['mantra_columnimg2']);
- $input['mantra_columntitle2'] = wp_kses_data($input['mantra_columntitle2']);
- $input['mantra_columntext2'] = wp_kses_post($input['mantra_columntext2']);
- $input['mantra_columnlink2'] = esc_url_raw($input['mantra_columnlink2']);
- $input['mantra_columnimg3'] = wp_kses_data($input['mantra_columnimg3']);
- $input['mantra_columntitle3'] = wp_kses_data($input['mantra_columntitle3']);
- $input['mantra_columntext3'] = wp_kses_post($input['mantra_columntext3']);
- $input['mantra_columnlink3'] = esc_url_raw($input['mantra_columnlink3']);
- $input['mantra_columnimg4'] = wp_kses_data($input['mantra_columnimg4']);
- $input['mantra_columntitle4'] = wp_kses_data($input['mantra_columntitle4']);
- $input['mantra_columntext4'] = wp_kses_post($input['mantra_columntext4']);
- $input['mantra_columnlink4'] = esc_url_raw($input['mantra_columnlink4']);
-
- $input['mantra_columnreadmore'] = wp_kses($input['mantra_columnreadmore'],'');
-
- $input['mantra_fronttext1'] = wp_kses_data($input['mantra_fronttext1']);
- $input['mantra_fronttext2'] = wp_kses_data($input['mantra_fronttext2']);
- $input['mantra_fpsliderbordercolor'] = wp_kses_data($input['mantra_fpsliderbordercolor']);
- $input['mantra_fronttitlecolor'] = wp_kses_data($input['mantra_fronttitlecolor']);
- $input['mantra_fronttext3'] = trim( wp_kses_post($input['mantra_fronttext3']));
- $input['mantra_fronttext4'] = trim (wp_kses_post($input['mantra_fronttext4']));
-
- $resetDefault = ( ! empty( $input['mantra_defaults']) ? true : false );
-
- if ($resetDefault) {$input=$mantra_defaults;}
-
- return $input; // return validated input
-
-}
-
-endif;
-?>
+=500 && $input['mantra_sidewidth'] <=1760) {} else {$input['mantra_sidewidth']=$mantra_defaults['mantra_sidewidth']; }
+ if(isset($input['mantra_sidebar']) && is_numeric($input['mantra_sidebar']) && $input['mantra_sidebar']>=220 && $input['mantra_sidebar'] <=800) {} else {$input['mantra_sidebar']=$mantra_defaults['mantra_sidebar']; }
+
+ if(isset($input['mantra_sidewidthRel']) && is_numeric($input['mantra_sidewidthRel']) && $input['mantra_sidewidthRel']>=40 && $input['mantra_sidewidthRel'] <=80) {} else {$input['mantra_sidewidthRel']=$mantra_defaults['mantra_sidewidthRel']; }
+ if(isset($input['mantra_sidebarRel']) && is_numeric($input['mantra_sidebarRel']) && $input['mantra_sidebarRel']>=20 && $input['mantra_sidebarRel'] <=50) {} else {$input['mantra_sidebarRel']=$mantra_defaults['mantra_sidebarRel']; }
+
+ if (isset($input['mantra_zoom'])) $input['mantra_zoom'] = "1"; else $input['mantra_zoom'] = 0;
+
+ $input['mantra_hheight'] = intval(wp_kses_data($input['mantra_hheight']));
+
+ $input['mantra_copyright'] = trim(wp_kses_post($input['mantra_copyright']));
+
+ $input['mantra_backcolor'] = wp_kses_data($input['mantra_backcolor']);
+ $input['mantra_headercolor'] = wp_kses_data($input['mantra_headercolor']);
+ $input['mantra_contentbg'] = wp_kses_data($input['mantra_contentbg']);
+ $input['mantra_menubg'] = wp_kses_data($input['mantra_menubg']);
+ $input['mantra_s1bg'] = wp_kses_data($input['mantra_s1bg']);
+ $input['mantra_s2bg'] = wp_kses_data($input['mantra_s2bg']);
+ $input['mantra_prefootercolor'] = wp_kses_data($input['mantra_prefootercolor']);
+ $input['mantra_footercolor'] = wp_kses_data($input['mantra_footercolor']);
+ $input['mantra_titlecolor'] = wp_kses_data($input['mantra_titlecolor']);
+ $input['mantra_descriptioncolor'] = wp_kses_data($input['mantra_descriptioncolor']);
+ $input['mantra_contentcolor'] = wp_kses_data($input['mantra_contentcolor']);
+ $input['mantra_linkscolor'] = wp_kses_data($input['mantra_linkscolor']);
+ $input['mantra_hovercolor'] = wp_kses_data($input['mantra_hovercolor']);
+ $input['mantra_headtextcolor'] = wp_kses_data($input['mantra_headtextcolor']);
+ $input['mantra_headtexthover'] = wp_kses_data($input['mantra_headtexthover']);
+ $input['mantra_sideheadbackcolor'] = wp_kses_data($input['mantra_sideheadbackcolor']);
+ $input['mantra_sideheadtextcolor'] = wp_kses_data($input['mantra_sideheadtextcolor']);
+ $input['mantra_footerheader'] = wp_kses_data($input['mantra_footerheader']);
+ $input['mantra_footertext'] = wp_kses_data($input['mantra_footertext']);
+ $input['mantra_footerhover'] = wp_kses_data($input['mantra_footerhover']);
+
+ $input['mantra_excerptwords'] = intval(wp_kses_data($input['mantra_excerptwords']));
+ $input['mantra_excerptdots'] = wp_kses_data($input['mantra_excerptdots']);
+ $input['mantra_excerptcont'] = wp_kses_data($input['mantra_excerptcont']);
+
+ $input['mantra_fwidth'] = intval(wp_kses_data($input['mantra_fwidth']));
+ $input['mantra_fheight'] = intval(wp_kses_data($input['mantra_fheight']));
+
+/*** 2 ***/
+
+ $cryout_special_terms = array('mailto:','callto://');
+ $cryout_special_keys = array('Mail', 'Skype');
+ for ($i=1;$i<10;$i+=2) {
+ $j=$i+1;
+ if (in_array($input['mantra_social'.$i],$cryout_special_keys)) :
+ $input['mantra_social'.$j] = wp_kses_data(str_replace($cryout_special_terms,'',$input['mantra_social'.$j]));
+ if ($input['mantra_social'.$i]=='Mail') {$input['mantra_social'.$j]='mailto:'.$input['mantra_social'.$j];};
+ if ($input['mantra_social'.$i]=='Skype') {$input['mantra_social'.$j]='callto://'.$input['mantra_social'.$j];};
+ else :
+ $input['mantra_social'.$j] = esc_url_raw($input['mantra_social'.$j]);
+ endif;
+ }
+ for ($i=0;$i<=5;$i++) {
+ if (!isset($input['mantra_socialsdisplay'.$i])) {$input['mantra_socialsdisplay'.$i] = "0";}
+ }
+
+ $input['mantra_favicon'] = esc_url_raw($input['mantra_favicon']);
+ $input['mantra_logoupload'] = esc_url_raw($input['mantra_logoupload']);
+ $input['mantra_headermargintop'] = intval(wp_kses_data($input['mantra_headermargintop']));
+ $input['mantra_headermarginleft'] = intval(wp_kses_data($input['mantra_headermarginleft']));
+
+ $input['mantra_customcss'] = wp_kses_post(trim($input['mantra_customcss']));
+ $input['mantra_customjs'] = wp_kses_post(trim($input['mantra_customjs']));
+
+ $input['mantra_googlefont'] = trim(wp_kses_data($input['mantra_googlefont']));
+ $input['mantra_googlefonttitle'] = trim(wp_kses_data($input['mantra_googlefonttitle']));
+ $input['mantra_googlefontside'] = trim(wp_kses_data($input['mantra_googlefontside']));
+ $input['mantra_googlefontsubheader'] = trim(wp_kses_data($input['mantra_googlefontsubheader']));
+
+ if($input['mantra_googlefont']) {
+ $mantra_googlefont2 = $input['mantra_googlefont'];
+ $mantra_googlefont2= preg_replace( '/\s+/', '+', $mantra_googlefont2 );
+ $mantra_googlefont2= "//fonts.googleapis.com/css?family=".$mantra_googlefont2;
+ $input['mantra_googlefont2'] = $mantra_googlefont2;
+ } else $input['mantra_googlefont2'] = '';
+ if($input['mantra_googlefonttitle']) {
+ $mantra_googlefonttitle2 = $input['mantra_googlefonttitle'];
+ $mantra_googlefonttitle2= preg_replace( '/\s+/', '+', $mantra_googlefonttitle2 );
+ $mantra_googlefonttitle2= "//fonts.googleapis.com/css?family=".$mantra_googlefonttitle2;
+ $input['mantra_googlefonttitle2'] = $mantra_googlefonttitle2;
+ } else $input['mantra_googlefonttitle2'] = '';
+ if($input['mantra_googlefontside']) {
+ $mantra_googlefontside2 = $input['mantra_googlefontside'];
+ $mantra_googlefontside2= preg_replace( '/\s+/', '+', $mantra_googlefontside2 );
+ $mantra_googlefontside2= "//fonts.googleapis.com/css?family=".$mantra_googlefontside2;
+ $input['mantra_googlefontside2'] = $mantra_googlefontside2;
+ } else $input['mantra_googlefontside2'] = '';
+ if($input['mantra_googlefontsubheader']) {
+ $mantra_googlefontsubheader2 = $input['mantra_googlefontsubheader'];
+ $mantra_googlefontsubheader2= preg_replace( '/\s+/', '+', $mantra_googlefontsubheader2 );
+ $mantra_googlefontsubheader2= "//fonts.googleapis.com/css?family=".$mantra_googlefontsubheader2;
+ $input['mantra_googlefontsubheader2'] = $mantra_googlefontsubheader2;
+ } else $input['mantra_googlefontsubheader2'] = '';
+
+
+ $input['mantra_frontpostscount'] = intval(wp_kses_data($input['mantra_frontpostscount']));
+
+ $input['mantra_fpsliderborderwidth'] = intval(wp_kses_data($input['mantra_fpsliderborderwidth']));
+
+ $input['mantra_slideNumber'] = intval(wp_kses_data($input['mantra_slideNumber']));
+ $input['mantra_slideSpecific'] = wp_kses_data($input['mantra_slideSpecific']);
+
+ $input['mantra_fpsliderwidth'] = intval(wp_kses_data($input['mantra_fpsliderwidth']));
+ $input['mantra_fpsliderheight'] = intval(wp_kses_data($input['mantra_fpsliderheight']));
+
+/** 3 ***/
+ $input['mantra_sliderimg1'] = wp_kses_data($input['mantra_sliderimg1']);
+ $input['mantra_slidertitle1'] = wp_kses_data($input['mantra_slidertitle1']);
+ $input['mantra_slidertext1'] = wp_kses_post($input['mantra_slidertext1']);
+ $input['mantra_sliderlink1'] = esc_url_raw($input['mantra_sliderlink1']);
+ $input['mantra_sliderimg2'] = wp_kses_data($input['mantra_sliderimg2']);
+ $input['mantra_slidertitle2'] = wp_kses_data($input['mantra_slidertitle2']);
+ $input['mantra_slidertext2'] = wp_kses_post($input['mantra_slidertext2']);
+ $input['mantra_sliderlink2'] = esc_url_raw($input['mantra_sliderlink2']);
+ $input['mantra_sliderimg3'] = wp_kses_data($input['mantra_sliderimg3']);
+ $input['mantra_slidertitle3'] = wp_kses_data($input['mantra_slidertitle3']);
+ $input['mantra_slidertext3'] = wp_kses_post($input['mantra_slidertext3']);
+ $input['mantra_sliderlink3'] = esc_url_raw($input['mantra_sliderlink3']);
+ $input['mantra_sliderimg4'] = wp_kses_data($input['mantra_sliderimg4']);
+ $input['mantra_slidertitle4'] = wp_kses_data($input['mantra_slidertitle4']);
+ $input['mantra_slidertext4'] = wp_kses_post($input['mantra_slidertext4']);
+ $input['mantra_sliderlink4'] = esc_url_raw($input['mantra_sliderlink4']);
+ $input['mantra_sliderimg5'] = wp_kses_data($input['mantra_sliderimg5']);
+ $input['mantra_slidertitle5'] = wp_kses_data($input['mantra_slidertitle5']);
+ $input['mantra_slidertext5'] = wp_kses_post($input['mantra_slidertext5']);
+ $input['mantra_sliderlink5'] = esc_url_raw($input['mantra_sliderlink5']);
+
+ $input['mantra_colimageheight'] = intval(wp_kses_data($input['mantra_colimageheight']));
+
+/** 4 **/
+ $input['mantra_columnimg1'] = wp_kses_data($input['mantra_columnimg1']);
+ $input['mantra_columntitle1'] = wp_kses_data($input['mantra_columntitle1']);
+ $input['mantra_columntext1'] = wp_kses_post($input['mantra_columntext1']);
+ $input['mantra_columnlink1'] = esc_url_raw($input['mantra_columnlink1']);
+ $input['mantra_columnimg2'] = wp_kses_data($input['mantra_columnimg2']);
+ $input['mantra_columntitle2'] = wp_kses_data($input['mantra_columntitle2']);
+ $input['mantra_columntext2'] = wp_kses_post($input['mantra_columntext2']);
+ $input['mantra_columnlink2'] = esc_url_raw($input['mantra_columnlink2']);
+ $input['mantra_columnimg3'] = wp_kses_data($input['mantra_columnimg3']);
+ $input['mantra_columntitle3'] = wp_kses_data($input['mantra_columntitle3']);
+ $input['mantra_columntext3'] = wp_kses_post($input['mantra_columntext3']);
+ $input['mantra_columnlink3'] = esc_url_raw($input['mantra_columnlink3']);
+ $input['mantra_columnimg4'] = wp_kses_data($input['mantra_columnimg4']);
+ $input['mantra_columntitle4'] = wp_kses_data($input['mantra_columntitle4']);
+ $input['mantra_columntext4'] = wp_kses_post($input['mantra_columntext4']);
+ $input['mantra_columnlink4'] = esc_url_raw($input['mantra_columnlink4']);
+
+ $input['mantra_columnreadmore'] = wp_kses($input['mantra_columnreadmore'],'');
+
+ $input['mantra_fronttext1'] = wp_kses_data($input['mantra_fronttext1']);
+ $input['mantra_fronttext2'] = wp_kses_data($input['mantra_fronttext2']);
+ $input['mantra_fpsliderbordercolor'] = wp_kses_data($input['mantra_fpsliderbordercolor']);
+ $input['mantra_fronttitlecolor'] = wp_kses_data($input['mantra_fronttitlecolor']);
+ $input['mantra_fronttext3'] = trim( wp_kses_post($input['mantra_fronttext3']));
+ $input['mantra_fronttext4'] = trim (wp_kses_post($input['mantra_fronttext4']));
+
+ $resetDefault = ( ! empty( $input['mantra_defaults']) ? true : false );
+
+ if ($resetDefault) {$input=$mantra_defaults;}
+
+ return $input; // return validated input
+
+}
+
+endif;
+?>
diff --git a/themes/mantra/admin/settings.php b/themes/mantra/admin/settings.php
index ed038549..c60c29c2 100644
--- a/themes/mantra/admin/settings.php
+++ b/themes/mantra/admin/settings.php
@@ -1,2057 +1,2057 @@
-".__("Settings for adjusting your blog's layout.", "mantra")."
";
-}
-
-function cryout_section_presentation_fn() {
-
-// echo "".__("Settings for adjusting your blog's layout.", "mantra")."
";
-}
-
-function cryout_section_header_fn() {
-
-// echo "".__("Settings for adjusting your blog's layout.", "mantra")."
";
-}
-
-
-function cryout_section_text_fn() {
- //echo "".__("All text related customization options.", "mantra")."
";
-}
-
-function cryout_section_graphics_fn() {
-// echo "".__("Settings for hiding or showing different graphics.", "mantra")."
";
-}
-
-function cryout_section_post_fn() {
- //echo "".__("Settings for hiding or showing different post tags.", "mantra")."
";
-}
-
-function cryout_section_excerpt_fn() {
-// echo "".__("Settings for post excerpts", "mantra")."
";
-}
-
-function cryout_section_appereance_fn() {
-// echo "".__("Set text and background colors.", "mantra")."
";
-}
-
-
-function cryout_section_featured_fn() {
-// echo "".__("Insert the addreses for your social media. Leave blank if not the case.
-// Please type the whole address (including http:// ) Example : http://www.facebook.com .", "mantra")."
";
-}
-
-function cryout_section_social_fn() {
-// echo "".__("Insert the addreses for your social media. Leave blank if not the case.
-// Please type the whole address (including http:// ) Example : http://www.facebook.com .", "mantra")."
";
-}
-
-function cryout_section_misc_fn() {
-
-}
-
-////////////////////////////////
-//// LAYOUT SETTINGS ///////////
-////////////////////////////////
-
-
-// RADIO-BUTTON - Name: ma_options[side]
-function cryout_setting_side_fn() {
-global $mantra_options;
- $items = array("1c", "2cSr", "2cSl", "3cSr" , "3cSl", "3cSs");
- $layout_text["1c"] = __("One column (no sidebars)","mantra");
- $layout_text["2cSr"] = __("Two columns, sidebar on the right","mantra");
- $layout_text["2cSl"] = __("Two columns, sidebar on the left","mantra");
- $layout_text["3cSr"] = __("Three columns, sidebars on the right","mantra");
- $layout_text["3cSl"] = __("Three columns, sidebars on the left","mantra");
- $layout_text["3cSs"] = __("Three columns, one sidebar on each side","mantra");
-
-// For backward compatibility;
- if ($mantra_options['mantra_side'] == 'Disable') $mantra_options['mantra_side'] = '1c';
- if ($mantra_options['mantra_side'] == 'Right') $mantra_options['mantra_side'] = '2cSr';
- if ($mantra_options['mantra_side'] == 'Left') $mantra_options['mantra_side'] = '2cSl';
-
-
- foreach($items as $item) {
-
- $checkedClass = ($mantra_options['mantra_side']==$item) ? ' checkedClass' : '';
- echo " ";
- }
- echo "".__("Choose your layout. Possible options are: No sidebar, a single sidebar on either left of right, two sidebars on either left or
- right and two sidebars on each side.","mantra")."
";
-}
-
- //SLIDER - Name: ma_options[sidewidth]
-function cryout_setting_sidewidth_fn()
- {
-global $mantra_options;
- $items = array ("Absolute" , "Relative");
- $itemsare = array( __("Absolute","mantra"), __("Relative *DEPRECATED","mantra"));
- echo __("Dimensions to use: ","mantra")." ";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
-echo " ";
-?>
-
-
-
-
-
px
-
px
-
^——— px ———^
-
-
- ";
- echo "";?>
-
-
-
-
".__("Select the width of your content and sidebar(s) .
- While the content cannot be less than 500px wide, the sidebar area is at least 220px and no more than 800px.
- If you went for a 3 column area ( with 2 sidebars) they will each have half the selected width.","mantra")."
"; ?>
-
-
-
-
-
-
-
%
-
%
-
^——— % ———^
-
-
- ";
- echo "";?>
-
-
-
-
".__("Select the width of your content and sidebar(s) .
- These are realtive dimmensions - relative to the user's browser. The total width is a percentage of the browser's width.
- While the content cannot be less than 40% wide, the sidebar area is at least 20% and no more than 50%.
- If you went for a 3 column area ( with 2 sidebars) they will each have half the selected width.","mantra")."
"; ?>
-
-";
- foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
- }
- echo "";
-
- echo " Allow zoom ";
-
- echo "".__("Enable to make Mantra fully responsive. The layout and general sizes of your blog will adjust depending on what device and what resolution it is viewed in. Do not disable unless you have a good reason to.","mantra")."
";
-}
-
-
-
-////////////////////////////////
-//// PRESENTATION SETTINGS /////////////
-////////////////////////////////
-
-
-//CHECKBOX - Name: ma_options[frontpage]
-function cryout_setting_frontpage_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Enable the presentation front-page. This will become your new home page. It has a slider and columns for presentation
- text and images. If you have this enabled but don't see a Presentation page then go to Settings » Reading and make sure you have selected Front Page Displays as Your Latest Posts .","mantra")." ";
- if ($mantra_options['mantra_frontpage'] == 'Enable' && get_option('show_on_front') != 'posts') {
- printf ( ''.__('You have enabled the Presentation Page but your WordPress\' Front page displays option is set to use a static page. WordPress guidelines require that the static page option have priority over theme options. Go to %1$s and set the Front page displays option to Your latest posts to display the presentation page.',"mantra").'
', ' Settings » Reading ');
- };
-
-}
-
-function cryout_setting_frontposts_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
- foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
- }
- echo " ";
- echo " ".__('posts','mantra');
- echo "".__("Enable to display latest posts on the presentation page, below the columns. Sticky posts are always displayed and not counted.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[frontslider]
-function cryout_setting_frontslider_fn() {
- global $mantra_options;
-
-
- echo "".__("Slider Dimensions:","mantra")." ";
- echo " px (".__("width","mantra").") X ";
- echo " px (".__("height","mantra").")";
- echo "".__("The dimensions of your slider. Make sure your images are of the same size.","mantra")."
";
-
- echo "".__("Animation:","mantra")." ";
- $items = array ("random" , "fold", "fade", "slideInRight", "slideInLeft", "sliceDown", "sliceDownLeft", "sliceUp", "sliceUpLeft", "sliceUpDown" , "sliceUpDownLeft", "boxRandom", "boxRain", "boxRainReverse", "boxRainGrow" , "boxRainGrowReverse");
- $itemsare = 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 "";
- foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("The transition effect your slider will have.","mantra")."
";
-
- echo "";
-
- echo "".__("Animation Time:","mantra")." ";
- echo " ".__("milliseconds","mantra");
- echo "".__("The time in which the transition animation will take place.","mantra")."
";
-
- echo "".__("Pause Time:","mantra")." ";
- echo " ".__("milliseconds","mantra");
- echo "".__("The time in which a slide will be still and visible.","mantra")."
";
-
-
- echo "".__("Slider navigation:","mantra")." ";
- $items = array ("Numbers" , "Bullets" ,"None");
- $itemsare = array( __("Numbers","mantra"), __("Bullets","mantra"), __("None","mantra"));
- echo "";
- foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Your slider navigation type. Shown under the slider.","mantra")."
";
-
- echo "".__("Slider arrows:","mantra")." ";
- $items = array ("Always Visible" , "Visible on Hover" ,"Hidden");
- $itemsare = array( __("Always Visible","mantra"), __("Visible on Hover","mantra"), __("Hidden","mantra"));
- echo "";
- foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("The Left and Right arrows on your slider","mantra")."
";
-
-?>
-
-
-
-
-
-
-".__("Select the content you want to load in your slides:","mantra")." ";
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Your slides' content. Only the image is required, all other fields are optional. Only the slides with an image selected will become acitve and visible in the live slider.","mantra")."
";
-
-?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ' />
-
-
-
- Choose the cateogry: ','mantra'); ?>
-
-
- category_nicename.'" ';
- $option .= selected($mantra_options["mantra_slideCateg"], $category->category_nicename, false).' >';
- $option .= $category->cat_name;
- $option .= ' ('.$category->category_count.')';
- $option .= '';
- echo $option;
- }
- ?>
-
-
-
-
- ' />
-
-
-
-
-
-
-
-
-
-
-
-
' />
-
-
-
-
' />
-
-
-
-
-
-
-
-
-
-
-
' />
-
-
-
-
' />
-
-
-
-
-
-
-
-
-
-
-
' />
-
-
-
-
' />
-
-
-
-
-
-
-
-
-
-
-
' />
-
-
-
-
' />
-
-
-
-
-
-
-
-
-
-
-
' />
-
-
-
-
' />
-
-
-
-
-".__("Number of columns:","mantra")." ";
- $items = array ("0" ,"1", "2" , "3" , "4");
- echo "";
-foreach($items as $item) {
- echo "$item ";
-}
- echo " ";
-
-echo "".__("Image Height:","mantra")." ";
- echo " px
";
-?>
-
- ' />
-".__("The linked text that appears at the bottom of all the columns. You can delete all text inside if you don't want it.","mantra")."
";
-
-?>
-
-
-
-
-
-
-
-
' />
-
-
-
-
' />
-
-
-
-
-
-
-
-
-
-
-
' />
-
-
-
-
' />
-
-
-
-
-
-
-
-
-
-
Title
-
' />
-
-
-
-
' />
-
-
-
-
-
-
-
-
-
-
-
' />
-
-
-
-
' />
-
-
-
- ".__("Extra Text","mantra")." ";
-
-echo "
Text for the Presentation Page ".__("More text for your front page. The top title is above the slider, the second title between the slider and the columns and 2 more rows of text under the columns.
- It's all optional so leave any input field empty if it's not required. ","mantra")."
";
-
- echo "
".__("Top Title","mantra")." ";
-echo "
".__("Second Title","mantra")." ";
- echo "
";
-
-echo "
".__("Title color","mantra")." ";
- echo '
';
- echo '
';
-
-echo "
".__("Bottom Text 1","mantra")." ";
- echo "
";
-echo "
".__("Bottom Text 2","mantra")." ";
- echo "
";
-
-
-
-
-
-
-echo "".__("Hide areas","mantra")." ";
-
-echo "
".__("Choose the areas to hide on the first page.","mantra")."
";
-
- $items = array( "FronHeader", "FrontMenu", "FrontWidget" , "FrontFooter","FrontBack");
-
- $checkedClass0 = ($mantra_options['mantra_fronthideheader']=='1') ? ' checkedClass0' : '';
- $checkedClass1 = ($mantra_options['mantra_fronthidemenu']=='1') ? ' checkedClass1' : '';
- $checkedClass2 = ($mantra_options['mantra_fronthidewidget']=='1') ? ' checkedClass2' : '';
- $checkedClass3 = ($mantra_options['mantra_fronthidefooter']=='1') ? ' checkedClass3' : '';
- $checkedClass4 = ($mantra_options['mantra_fronthideback']=='1') ? ' checkedClass4' : '';
-
- echo "
".__("Hide the header area (image or background color).","mantra")." ";
-
- echo "
".__("Hide the main menu (the top navigation tabs).","mantra")." ";
-
- echo "
".__("Hide the footer widgets. ","mantra")." ";
-
- echo "
".__("Hide the footer (copyright area).","mantra")." ";
-
- echo "
".__("Hide the white color. Only the background color remains.","mantra")." ";
-
-
-echo "
";
-
-
-}
-
-
-//////////////////////////////
-/////HEADER SETTINGS//////////
-/////////////////////////////
-
- //SELECT - Name: ma_options[hheight]
-function cryout_setting_hheight_fn() {
- global $mantra_options;?>
- ' /> px
-".__("Select the header's height. After saving the settings make sure you reupload a new header image (if you're using one). The header's width will be = ","mantra").$totally."px. ";
-}
-
-function cryout_setting_himage_fn() {
- global $mantra_options;
- $checkedClass = ($mantra_options['mantra_hcenter']=='1') ? ' checkedClass' : '';
- $checkedClass2 = ($mantra_options['mantra_hratio']=='1') ? ' checkedClass' : '';
- echo "".__('Define header image','mantra')." ";
- echo "".__("The header image should not be used to display logos. Enable ratio preservation to force the header image aspect ratio. Keep in mind that short images will become very small on mobile devices.","mantra")."
";
- echo " Center the header image horizontally ";
-
- echo " Keep header image aspect ratio ";
-
-}
-
-//CHECKBOX - Name: ma_options[menurounded]
-function cryout_setting_menurounded_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
- echo "".__("Enable or disable the round corners for the main menu items.","mantra")."
";
-
-}
-
-//CHECKBOX - Name: ma_options[linkheader]
-function cryout_setting_siteheader_fn() {
- global $mantra_options;
- $items = array ("Site Title and Description" , "Custom Logo" , "Clickable header image" , "Empty");
- $itemsare = array( __("Site Title and Description","mantra"), __("Custom Logo","mantra"), __("Clickable header image","mantra"), __("Empty","mantra"));
- echo "";
- echo "".__("Choose what to display inside your header area.","mantra")."
";
-}
-
-// TEXTBOX - Name: ma_options[favicon]
-function cryout_setting_logoupload_fn() {
- global $mantra_options;
- echo '';
-?>
-
' class="imagebox" style="display:;max-height:60px" />
-
-
".__("Custom Logo upload. The logo will appear over the heder image if you have used one.","mantra")." "; ?>
-
-
-
-
-' /> px
-' /> px
-".__("Select the top spacing for the header. Use it to better position your site title and description or custom logo inside the header. ","mantra")." ";
-}
-
-// TEXTBOX - Name: ma_options[favicon]
-function cryout_setting_favicon_fn() {
- global $mantra_options;
- echo '';
-?>
-
' class="imagebox" width="64" height="64"/>
-
-
".__("Limitations: It has to be an image. It should be max 64x64 pixels in dimensions. Recommended file extensions .ico and .png. Note that some browsers do not display the changed favicon instantly. ","mantra")." "; ?>
-
-
-
-";
- foreach($items as $item) {
- echo "$item ";
-}
- echo "";
- echo "".__("Select the font size you'll use in your blog. Pages, posts and comments will be affected. Buttons, Headers and Side menus will remain the same.","mantra")."
";
-}
-
-
-//SELECT - Name: ma_options[fontfamily]
-function cryout_setting_fontfamily_fn() {
- global $mantra_options;
- global $fontSans, $fontSerif, $fontMono, $fontCursive;
-
- echo "";
- echo "";
-foreach($fontSans as $item) {
- echo "$item ";
-}
- echo " ";
-
- echo "";
-foreach($fontSerif as $item) {
-
- echo "$item ";
-}
- echo " ";
-
- echo "";
-foreach($fontMono as $item) {
- echo "$item ";
-}
- echo " ";
-
- echo "";
-foreach($fontCursive as $item) {
- echo "$item ";
-}
- echo " ";
- echo " ";
-
- echo "".__("Select the font family you'll use in your blog. All content text will be affected (including menu buttons). ","mantra")."
";
- echo ' ';
- echo "".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")." ";
-
-
-}
-
-//SELECT - Name: ma_options[fonttitle]
-function cryout_setting_fonttitle_fn() {
- global $mantra_options;
- global $fontSans, $fontSerif, $fontMono, $fontCursive;
-
- echo "";
- echo "Default ";
- echo "";
-foreach($fontSans as $item) {
- echo "$item ";
-}
- echo " ";
-
- echo "";
-foreach($fontSerif as $item) {
-
- echo "$item ";
-}
- echo " ";
-
- echo "";
-foreach($fontMono as $item) {
- echo "$item";
-}
- echo " ";
-
- echo "";
-foreach($fontCursive as $item) {
- echo "$item ";
-}
- echo " ";
- echo " ";
- echo "".__("Select the font family you want for your titles. It will affect post titles and page titles. Leave 'Default' and the general font you selected will be used.","mantra")."
";
-
- echo ' ';
- echo "".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")." ";
-
-
-
-
-}
-
-//SELECT - Name: ma_options[fontside]
-function cryout_setting_fontside_fn() {
- global $mantra_options;
- global $fontSans, $fontSerif, $fontMono, $fontCursive;
-
- echo "";
- echo "Default ";
- echo "";
-foreach($fontSans as $item) {
- echo "$item ";
-}
- echo " ";
-
- echo "";
-foreach($fontSerif as $item) {
-
- echo "$item ";
-}
- echo " ";
-
- echo "";
-foreach($fontMono as $item) {
- echo "$item ";
-}
- echo " ";
-
- echo "";
-foreach($fontCursive as $item) {
- echo "$item ";
-}
- echo " ";
- echo " ";
- echo "".__("Select the font family you want your sidebar(s) to have. Text in sidebars will be affected, including any widgets. Leave 'Default' and the general font you selected will be used.","mantra")."
";
- echo ' ';
- echo "".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")." ";
-
-
-
-}
-
-
-//SELECT - Name: ma_options[fontsubheader]
-function cryout_setting_fontsubheader_fn() {
- global $mantra_options;
- global $fontSans, $fontSerif, $fontMono, $fontCursive;
-
- echo "";
- echo "".__("Select the font family you want your headings to have (h1 - h6 tags will be affected). Leave 'Default' and the general font you selected will be used.","mantra")."
";
-
- echo '';
- echo "".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")." ";
-
-
-}
-
-//SELECT - Name: ma_options[headfontsize]
-function cryout_setting_headfontsize_fn() {
- global $mantra_options;
- $items = array ("Default" , "14px" , "16px" , "18px" , "20px", "22px" , "24px" , "26px" , "28px" , "30px" , "32px" , "34px" , "36px", "38px" , "40px");
- $itemsare = array( __("Default","mantra") ,"14px" , "16px" , "18px" , "20px", "22px" , "24px" , "26px" , "28px" , "30px" , "32px" , "34px" , "36px", "38px" , "40px");
- echo "";
-foreach($items as $id=>$item) {
- echo "$item ";
-}
- echo " ";
- echo "".__("Post Header Font size. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
";
-}
-
-//SELECT - Name: ma_options[sidefontsize]
-function cryout_setting_sidefontsize_fn() {
- global $mantra_options;
- $items = array ("Default" , "8px" , "9px" , "10px" , "11px", "12px" , "13px" , "14px" , "15px" , "16px" , "17px" , "18px");
- $itemsare = array( __("Default","mantra") , "8px" , "9px" , "10px" , "11px", "12px" , "13px" , "14px" , "15px" , "16px" , "17px" , "18px");
- echo "";
-foreach($items as $id=>$item) {
- echo "$item ";
-}
- echo " ";
- echo "".__("Sidebar Font size. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
";
-}
-
-//SELECT - Name: ma_options[textalign]
-function cryout_setting_textalign_fn() {
- global $mantra_options;
- $items = array ("Default" , "Left" , "Right" , "Justify" , "Center");
- $itemsare = array( __("Default","mantra"), __("Left","mantra"), __("Right","mantra"), __("Justify","mantra"), __("Center","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("This overwrites the text alignment in posts and pages. Leave 'Default' for normal settings (alignment will remain as declared in posts, comments etc.).","mantra")."
";
-}
-
-//SELECT - Name: ma_options[parindent]
-function cryout_setting_parmargin_fn() {
- global $mantra_options;
- $items = array ("0.0em", "0.5em", "1.0em" , "1.1em" , "1.2em" , "1.3em" , "1.4em", "1.5em", "1.6em", "1.7em");
- echo "";
-foreach($items as $item) {
- echo "$item ";
-}
- echo " ";
- echo "".__("Choose the spacing between paragraphs.","mantra")."
";
-}
-
-
-//SELECT - Name: ma_options[parindent]
-function cryout_setting_parindent_fn() {
- global $mantra_options;
- $items = array ("0px" , "5px" , "10px" , "15px" , "20px");
- echo "";
-foreach($items as $item) {
- echo "$item ";
-}
- echo " ";
- echo "".__("Choose the indent for your paragraphs.","mantra")."
";
-}
-
-
-//CHECKBOX - Name: ma_options[headerindent]
-function cryout_setting_headerindent_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
- echo "".__("Disable the default header and title indent (left margin).","mantra")."
";
-}
-
-//SELECT - Name: ma_options[lineheight]
-function cryout_setting_lineheight_fn() {
- global $mantra_options;
- $items = array ("Default" ,"0.8em" , "0.9em", "1.0em" , "1.1em" , "1.2em" , "1.3em", "1.4em" , "1.5em" , "1.6em" , "1.7em" , "1.8em" , "1.9em" , "2.0em");
- $itemsare = array( __("Default","mantra"),"0.8em" , "0.9em", "1.0em" , "1.1em" , "1.2em" , "1.3em", "1.4em" , "1.5em" , "1.6em" , "1.7em" , "1.8em" , "1.9em" , "2.0em");
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Text line height. The height between 2 rows of text. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
";
-}
-
-//SELECT - Name: ma_options[wordspace]
-function cryout_setting_wordspace_fn() {
- global $mantra_options;
- $items = array ("Default" ,"-3px" , "-2px", "-1px" , "0px" , "1px" , "2px", "3px" , "4px" , "5px" , "10px");
- $itemsare = array( __("Default","mantra"),"-3px" , "-2px", "-1px" , "0px" , "1px" , "2px", "3px" , "4px" , "5px" , "10px");
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("The space between words . Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
";
-}
-
-//SELECT - Name: ma_options[letterspace]
-function cryout_setting_letterspace_fn() {
- global $mantra_options;
- $items = array ("Default" ,"-0.05em" , "-0.04em", "-0.03em" , "-0.02em" , "-0.01em" , "0.01em", "0.02em" , "0.03em" , "0.04em" , "0.05em");
- $itemsare = array( __("Default","mantra"),"-0.05em" , "-0.04em", "-0.03em" , "-0.02em" , "-0.01em" , "0.01em", "0.02em" , "0.03em" , "0.04em" , "0.05em");
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("The space between letters . Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
";
-}
-
-
-
-//CHECKBOX - Name: ma_options[textshadow]
-function cryout_setting_textshadow_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Disable the default text shadow on headers and titles.","mantra")."
";
-}
-
-////////////////////////////////
-//// APPEREANCE SETTINGS ///////
-////////////////////////////////
-
-function cryout_setting_sitebackground_fn() {
- echo "".__('Define background image','mantra')." ";
-} // cryout_setting_sitebackground_fn()
-
-
-//TEXT - Name: ma_options[backcolor]
-function cryout_setting_backcolor_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Background color (Default value is 444444).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[headercolor]
-function cryout_setting_headercolor_fn() {
- global $mantra_options;
- echo '';
- echo '';
- echo "".__("Header background color (Default value is 333333). You can delete all inside text for no background color.","mantra")."
";
-}
-
-function cryout_setting_contentbg_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Content background color (Default value is FFFFFF). Works best with really light colors.","mantra")."
";
-}
-
-function cryout_setting_menubg_fn() {
- global $mantra_options;
- echo '';
- echo '';
- echo "".__("Main menu background color (Default value is FAFAFA). Should be the same color as the content bg or something just as light.","mantra")."
";
-}
-
-function cryout_setting_first_sidebar_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("First sidebar background color (Default is no color for a transparent sidebar).","mantra")."
";
-}
-
-function cryout_setting_second_sidebar_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Second sidebar background color (Default is no color for a transparent sidebar).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[prefootercolor]
-function cryout_setting_prefootercolor_fn() {
- global $mantra_options;
- echo '';
- echo '';
- echo "".__("Footer widget-area background color. (Default value is 171717).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[footercolor]
-function cryout_setting_footercolor_fn() {
- global $mantra_options;
- echo '';
- echo '';
- echo "".__("Footer background color (Default value is 222222).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[titlecolor]
-function cryout_setting_titlecolor_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Your blog's title color (Default value is 0D85CC).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[descriptioncolor]
-function cryout_setting_descriptioncolor_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Your blog's description color(Default value is 222222).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[contentcolor]
-function cryout_setting_contentcolor_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Content Text Color (Default value is 333333).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[linkscolor]
-function cryout_setting_linkscolor_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Links color (Default value is 0D85CC).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[hovercolor]
-function cryout_setting_hovercolor_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Links color on mouse over (Default value is 333333).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[headtextcolor]
-function cryout_setting_headtextcolor_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Post Header Text Color (Default value is 333333).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[headtexthover]
-function cryout_setting_headtexthover_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Post Header Text Color on Mouse over (Default value is 000000).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[sideheadbackcolor]
-function cryout_setting_sideheadbackcolor_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Sidebar Header Background color (Default value is 444444).","mantra")."
";
-
-}
-
-//TEXT - Name: ma_options[sideheadtextcolor]
-function cryout_setting_sideheadtextcolor_fn() {
- global $mantra_options;
- echo ' ';
- echo '
';
- echo "".__("Sidebar Header Text Color(Default value is 2EA5FD).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[footerheader]
-function cryout_setting_footerheader_fn() {
- global $mantra_options;
- echo '';
- echo '';
- echo "".__("Footer Widget Text Color (Default value is 0D85CC).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[footertext]
-function cryout_setting_footertext_fn() {
- global $mantra_options;
- echo '';
- echo '';
- echo "".__("Footer Widget Link Color (Default value is 666666).","mantra")."
";
-}
-
-//TEXT - Name: ma_options[footerhover]
-function cryout_setting_footerhover_fn() {
- global $mantra_options;
- echo '';
- echo '';
- echo "".__("Footer Widget Link Color on Mouse Over (Default value is 888888).","mantra")."
";
-}
-
-
-////////////////////////////////
-//// GRAPHICS SETTINGS /////////
-////////////////////////////////
-
-
-
-//CHECKBOX - Name: ma_options[breadcrumbs]
-function cryout_setting_breadcrumbs_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Show breadcrumbs at the top of the content area. Breadcrumbs are a form of navigation that keeps track of your location withtin the site.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[pagination]
-function cryout_setting_pagination_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
- echo "".__("Show numbered pagination. Where there is more than one page, instead of the bottom Older Posts and Newer posts links you have a numbered pagination. ","mantra")."
";
-}
-
-function cryout_setting_menualign_fn() {
- global $mantra_options;
- $items = array ("left", "center", "right");
- $itemsare = array( __("Left","mantra"), __("Center","mantra"), __("Right","mantra"));
- echo "";
- echo "".__("Select the desired main menu items alignment. Center option is only valid for single line menus.","mantra")."
";
-}
-
-//SELECT - Name: ma_options[caption]
-function cryout_setting_caption_fn() {
-global $mantra_options;
- $items = array ("White" , "Light" , "Light Gray" , "Gray" , "Dark Gray" , "Black");
- $itemsare = array( __("White","mantra"), __("Light","mantra"), __("Light Gray","mantra"), __("Gray","mantra"), __("Dark Gray","mantra"), __("Black","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("This setting changes the look of your captions. Images that are not inserted through captions will not be affected.","mantra")."
";
-}
-
-// RADIO-BUTTON - Name: ma_options[image]
-function cryout_setting_image_fn() {
- global $mantra_options;
- $items = array("None", "One", "Two", "Three" , "Four", "Five", "Six", "Seven");
- foreach($items as $item) {
-
- $checkedClass = ($mantra_options['mantra_image']==$item) ? ' checkedClass' : '';
-
- echo " ";
- }
-
- echo "".__("The border around your inserted images. ","mantra")."
";
-}
-
-// RADIO-BUTTON - Name: ma_options[pin]
-function cryout_setting_pin_fn() {
-global $mantra_options;
- $items = array("mantra_dot", "Pin1", "Pin2", "Pin3" , "Pin4", "Pin5");
- foreach($items as $item) {
- $none='';
- if ($item == 'mantra_dot') { $none='None'; }
- $checkedClass = ($mantra_options['mantra_pin']==$item) ? ' checkedClass' : '';
- echo " $none ";
- }
- echo "".__("The image on top of your captions. ","mantra")."
";
-}
-
-// RADIO-BUTTON - Name: ma_options[sidebullet]
-function cryout_setting_sidebullet_fn() {
- global $mantra_options;
- $items = array("mantra_dot2", "arrow_black", "arrow_white", "bullet_dark" , "bullet_gray", "bullet_light", "square_dark", "square_white", "triangle_dark" , "triangle_gray", "triangle_white");
- foreach($items as $item) {
- $none='';
- if ($item == 'mantra_dot2') { $none='None'; }
- $checkedClass = ($mantra_options['mantra_sidebullet']==$item) ? ' checkedClass' : '';
- echo " $none ";
- }
- echo "".__("The sidebar list bullets. ","mantra")."
";
-}
-
-
-
-//CHECKBOX - Name: ma_options[metaback]
-function cryout_setting_metaback_fn() {
- global $mantra_options;
- $items = array ("Gray" , "White", "None");
- $itemsare = array( __("Gray","mantra"), __("White","mantra"), __("None","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("The background for your post-metas area (under your post tiltes). Gray by default.","mantra")."
";
-
-}
-
-//CHECKBOX - Name: ma_options[postseparator]
-function cryout_setting_postseparator_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide or show a horizontal rule to separate posts.","mantra")."
";
-
-}
-
-//CHECKBOX - Name: ma_options[contentlist]
-function cryout_setting_contentlist_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide or show bullets next to lists that are in your content area (posts, pages etc.).","mantra")."
";
-
-}
-
-
-//CHECKBOX - Name: ma_options[pagetitle]
-function cryout_setting_pagetitle_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide or show Page titles on any created pages. ","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[categtitle]
-function cryout_setting_categtitle_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide or show Page titles on Category Pages. ","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[tables]
-function cryout_setting_tables_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide table borders and background color.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[comtext]
-function cryout_setting_comtext_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide the explanatory text under the comments form. (starts with You may use these HTML tags and attributes:... ).","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[comclosed]
-function cryout_setting_comclosed_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide in posts", "Hide in pages", "Hide everywhere");
- $itemsare = array( __("Show","mantra"), __("Hide in posts","mantra"), __("Hide in pages","mantra"), __("Hide everywhere","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide the Comments are closed text that by default shows up on pages or posts with the comments disabled.","mantra")."
";
-}
-
-
-//CHECKBOX - Name: ma_options[comoff]
-function cryout_setting_comoff_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide the Comments off text next to posts that have comments disabled.","mantra")."
";
-}
-
-
-//CHECKBOX - Name: ma_options[backtop]
-function cryout_setting_backtop_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Enable the Back to Top button. The button appears after scrolling the page down.","mantra")."
";
-}
-
-
-////////////////////////////////
-//// POST SETTINGS /////////////
-////////////////////////////////
-
-//CHECKBOX - Name: ma_options[postdate]
-function cryout_setting_postcomlink_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide or show the Leave a comment or x Comments next to posts or post excerpts.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[postdate]
-function cryout_setting_postdate_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide or show the post date.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[posttime]
-function cryout_setting_posttime_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Show the post time with the date. Time will not be visible if the Post Date is hidden.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[postauthor]
-function cryout_setting_postauthor_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide or show the post author.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[postcateg]
-function cryout_setting_postcateg_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide the post category.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[postbook]
-function cryout_setting_postbook_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide the 'Bookmark permalink'.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[postmetas]
-function cryout_setting_postmetas_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide the meta bar. All meta info in it will be hidden.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[posttag]
-function cryout_setting_posttag_fn() {
- global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Hide the post tags.","mantra")."
";
-}
-
-
-////////////////////////////////
-//// EXCERPT SETTINGS /////////////
-////////////////////////////////
-
-
-//CHECKBOX - Name: ma_options[excerpthome]
-function cryout_setting_excerpthome_fn() {
- global $mantra_options;
- $items = array ("Excerpt" , "Full Post");
- $itemsare = array( __("Excerpt","mantra"), __("Full Post","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Excerpts on the main page. Only standard posts will be affected. All other post formats (aside, image, chat, quote etc.) have their specific formating.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[excerptsticky]
-function cryout_setting_excerptsticky_fn() {
- global $mantra_options;
- $items = array ("Excerpt" , "Full Post");
- $itemsare = array( __("Excerpt","mantra"), __("Full Post","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Choose if you want the sticky posts on your home page to be visible in full or just the excerpts. ","mantra")."
";
-}
-
-
-//CHECKBOX - Name: ma_options[excerptarchive]
-function cryout_setting_excerptarchive_fn() {
- global $mantra_options;
- $items = array ("Excerpt" , "Full Post");
- $itemsare = array( __("Excerpt","mantra"), __("Full Post","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Excerpts on archive, categroy and search pages. Same as above, only standard posts will be affected.","mantra")."
";
-}
-
-
-// TEXTBOX - Name: ma_options[excerptwords]
-function cryout_setting_excerptwords_fn() {
- global $mantra_options;
- echo " ";
- echo "".__("The number of words an excerpt will have. When that number is reached the post will be interrupted by a Continue reading link that
- will take the reader to the full post page.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[magazinelayout]
-function cryout_setting_magazinelayout_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Enable the Magazine Layout. This layout applies to pages with posts and shows 2 posts per row.","mantra")."
";
-}
-
-// TEXTBOX - Name: ma_options[excerptdots]
-function cryout_setting_excerptdots_fn() {
- global $mantra_options;
- echo " ";
- echo "".__("Replaces the three dots ('[...])' that are appended automatically to excerpts.","mantra")."
";
-}
-
-// TEXTBOX - Name: ma_options[excerptcont]
-function cryout_setting_excerptcont_fn() {
- global $mantra_options;
- echo " ";
- echo "".__("Edit the 'Continue Reading' link added to your post excerpts.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[excerpttags]
-function cryout_setting_excerpttags_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".sprintf(__("By default WordPress excerpts remove all HTML tags (%s and all others) and only clean text is left in the excerpt.
-Enabling this option allows HTML tags to remain in excerpts so all your default formating will be kept. Just a warning: If HTML tags are enabled, you have to make sure
-they are not left open. So if within your post you have an opened HTML tag but the except ends before that tag closes, the rest of the site will be contained in that HTML tag. -- Leave 'Disable' if unsure --
","mantra"),htmlspecialchars(', , ') );
-}
-
-
-////////////////////////////////
-/// FEATURED IMAGE SETTINGS ////
-////////////////////////////////
-
-
-//CHECKBOX - Name: ma_options[fpost]
-function cryout_setting_fpost_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- $checkedClass = ($mantra_options['mantra_fpostlink']=='1') ? ' checkedClass' : '';
-
-
- echo " Link the thumbail to the post ";
-
-
- echo " ".__("Show featured images as thumbnails on posts. The images must be selected for each post in the Featured Image section.","mantra")."
";
-}
-
-//CHECKBOX - Name: ma_options[fauto]
-function cryout_setting_fauto_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Show the first image that you inserted in a post as a thumbnail. If you enable this option, the first image in your post will be used even if you selected a Featured Image in you post.","mantra")."
";
-}
-
-
-//CHECKBOX - Name: ma_options[falign]
-function cryout_setting_falign_fn() {
- global $mantra_options;
- $items = array ("Left" , "Center", "Right");
- $itemsare = array( __("Left","mantra"), __("Center","mantra"), __("Right","mantra"));
- echo "";
-foreach($items as $id=>$item) {
- echo "$itemsare[$id] ";
-}
- echo " ";
- echo "".__("Thumbnail alignment.","mantra")."
";
-}
-
-
-// TEXTBOX - Name: ma_options[fwidth]
-function cryout_setting_fsize_fn() {
- global $mantra_options;
- echo " px (width) X ";
- echo " px (height)";
-
- $checkedClass = ($mantra_options['mantra_fcrop']=='1') ? ' checkedClass' : '';
-
- echo " Crop images to exact size. ";
-
-
- echo "".__("The size you want the thumbnails to have (in pixels). By default imges will be scaled with aspect ratio kept. Choose to crop the images if you want the exact size.","mantra")."
";
-}
-
-
-//CHECKBOX - Name: ma_options[fheader]
-function cryout_setting_fheader_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "";
- echo "".__("Show featured images on headers. The header will be replaced with a featured image if you selected it as a Featured Image in the post and
- and if it is bigger or at least equal to the current header size.","mantra")."
";
-}
-
-
-////////////////////////
-/// SOCIAL SETTINGS ////
-////////////////////////
-
-// TEXTBOX - Name: ma_options[social1]
-
-
-
-function cryout_setting_social_master($i) {
- $cryout_special_keys = array('Mail', 'Skype');
- $cryout_social_small = array (
- '',__('Select your desired Social network from the left dropdown menu and insert your corresponding address in the right input field. (ex: http://www.facebook.com/yourname )','mantra'),
- '',__("You can insert up to 5 different social sites and addresses.",'mantra'),
- '',__("There are a total of 27 social networks to choose from. ",'mantra'),
- '',__("You can leave any number of inputs empty. " ,'mantra'),
- '',__("You can choose the same social media any number of times. ",'mantra')
- );
- $j=$i+1;
- global $mantra_options, $socialNetworks;
- echo "";
- foreach($socialNetworks as $item) {
- echo "$item ";
- }
- echo " » ";
-
- if (in_array($mantra_options['mantra_social'.$i],$cryout_special_keys)) :
- $cryout_current_social = esc_html( $mantra_options['mantra_social'.$j] );
- else :
- $cryout_current_social = esc_url( $mantra_options['mantra_social'.$j] );
- endif;
-
- echo " ";
- echo "".$cryout_social_small[$i]."
";
-}
-
-
-
-function cryout_setting_socials1_fn() {
- cryout_setting_social_master(1);
-}
-
-function cryout_setting_socials2_fn() {
- cryout_setting_social_master(3);
-}
-
-// TEXTBOX - Name: ma_options[social3]
-function cryout_setting_socials3_fn() {
-cryout_setting_social_master(5);
-}
-
-// TEXTBOX - Name: ma_options[social4]
-function cryout_setting_socials4_fn() {
-cryout_setting_social_master(7);
-}
-
-// TEXTBOX - Name: ma_options[social5]
-function cryout_setting_socials5_fn() {
-cryout_setting_social_master(9);
-}
-
-// TEXTBOX - Name: ma_options[socialsdisplay]
-function cryout_setting_socialsdisplay_fn() {
-global $mantra_options;
- $items = array( "Header", "CLeft", "CRight" , "Footer");
-
- $checkedClass0 = ($mantra_options['mantra_socialsdisplay0']=='1') ? ' checkedClass0' : '';
- $checkedClass1 = ($mantra_options['mantra_socialsdisplay1']=='1') ? ' checkedClass1' : '';
- $checkedClass2 = ($mantra_options['mantra_socialsdisplay2']=='1') ? ' checkedClass2' : '';
- $checkedClass3 = ($mantra_options['mantra_socialsdisplay3']=='1') ? ' checkedClass3' : '';
-
- echo " Top right corner of header ";
-
- echo " Under menu - left side ";
-
- echo " Under menu - right side ";
-
- echo " In the footer (smaller icons) ";
-
-
-
- echo "".__("Choose the areas where to display the social icons.","mantra")."
";
-}
-
-
-////////////////////////
-/// MISC SETTINGS ////
-////////////////////////
-
-
-// TEXTBOX - Name: ma_options[copyright]
-function cryout_setting_copyright_fn() {
- global $mantra_options;
- echo "";
- echo "".__("Insert custom text or HTML code that will appear last in you footer. You can use HTML to insert links, images and special characters like © .","mantra")."
";
-}
-
-
-// TEXTBOX - Name: ma_options[customcss]
-function cryout_setting_customcss_fn() {
- global $mantra_options;
- echo "";
- echo "".__("Insert your custom CSS here. Any CSS declarations made here will overwrite Mantra's (even the custom options specified right here in the Mantra Settings page). Your custom CSS will be preserved when updating the theme. The <style> tags are not needed.","mantra")."
";
-}
-
-// TEXTBOX - Name: ma_options[customjs]
-function cryout_setting_customjs_fn() {
- global $mantra_options;
- echo "";
- echo "".__("Insert your custom Javascript code here. (Google Analytics and any other forms of Analytic software). The <script> tags are not needed.","mantra")."
";
-}
+".__("Settings for adjusting your blog's layout.", "mantra")."";
+}
+
+function cryout_section_presentation_fn() {
+
+// echo "".__("Settings for adjusting your blog's layout.", "mantra")."
";
+}
+
+function cryout_section_header_fn() {
+
+// echo "".__("Settings for adjusting your blog's layout.", "mantra")."
";
+}
+
+
+function cryout_section_text_fn() {
+ //echo "".__("All text related customization options.", "mantra")."
";
+}
+
+function cryout_section_graphics_fn() {
+// echo "".__("Settings for hiding or showing different graphics.", "mantra")."
";
+}
+
+function cryout_section_post_fn() {
+ //echo "".__("Settings for hiding or showing different post tags.", "mantra")."
";
+}
+
+function cryout_section_excerpt_fn() {
+// echo "".__("Settings for post excerpts", "mantra")."
";
+}
+
+function cryout_section_appereance_fn() {
+// echo "".__("Set text and background colors.", "mantra")."
";
+}
+
+
+function cryout_section_featured_fn() {
+// echo "".__("Insert the addreses for your social media. Leave blank if not the case.
+// Please type the whole address (including http:// ) Example : http://www.facebook.com .", "mantra")."
";
+}
+
+function cryout_section_social_fn() {
+// echo "".__("Insert the addreses for your social media. Leave blank if not the case.
+// Please type the whole address (including http:// ) Example : http://www.facebook.com .", "mantra")."
";
+}
+
+function cryout_section_misc_fn() {
+
+}
+
+////////////////////////////////
+//// LAYOUT SETTINGS ///////////
+////////////////////////////////
+
+
+// RADIO-BUTTON - Name: ma_options[side]
+function cryout_setting_side_fn() {
+global $mantra_options;
+ $items = array("1c", "2cSr", "2cSl", "3cSr" , "3cSl", "3cSs");
+ $layout_text["1c"] = __("One column (no sidebars)","mantra");
+ $layout_text["2cSr"] = __("Two columns, sidebar on the right","mantra");
+ $layout_text["2cSl"] = __("Two columns, sidebar on the left","mantra");
+ $layout_text["3cSr"] = __("Three columns, sidebars on the right","mantra");
+ $layout_text["3cSl"] = __("Three columns, sidebars on the left","mantra");
+ $layout_text["3cSs"] = __("Three columns, one sidebar on each side","mantra");
+
+// For backward compatibility;
+ if ($mantra_options['mantra_side'] == 'Disable') $mantra_options['mantra_side'] = '1c';
+ if ($mantra_options['mantra_side'] == 'Right') $mantra_options['mantra_side'] = '2cSr';
+ if ($mantra_options['mantra_side'] == 'Left') $mantra_options['mantra_side'] = '2cSl';
+
+
+ foreach($items as $item) {
+
+ $checkedClass = ($mantra_options['mantra_side']==$item) ? ' checkedClass' : '';
+ echo " ";
+ }
+ echo "".__("Choose your layout. Possible options are: No sidebar, a single sidebar on either left of right, two sidebars on either left or
+ right and two sidebars on each side.","mantra")."
";
+}
+
+ //SLIDER - Name: ma_options[sidewidth]
+function cryout_setting_sidewidth_fn()
+ {
+global $mantra_options;
+ $items = array ("Absolute" , "Relative");
+ $itemsare = array( __("Absolute","mantra"), __("Relative *DEPRECATED","mantra"));
+ echo __("Dimensions to use: ","mantra")." ";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+echo " ";
+?>
+
+
+
+
+
px
+
px
+
^——— px ———^
+
+
+ ";
+ echo "";?>
+
+
+
+
".__("Select the width of your content and sidebar(s) .
+ While the content cannot be less than 500px wide, the sidebar area is at least 220px and no more than 800px.
+ If you went for a 3 column area ( with 2 sidebars) they will each have half the selected width.","mantra")."
"; ?>
+
+
+
+
+
+
+
%
+
%
+
^——— % ———^
+
+
+ ";
+ echo "";?>
+
+
+
+
".__("Select the width of your content and sidebar(s) .
+ These are realtive dimmensions - relative to the user's browser. The total width is a percentage of the browser's width.
+ While the content cannot be less than 40% wide, the sidebar area is at least 20% and no more than 50%.
+ If you went for a 3 column area ( with 2 sidebars) they will each have half the selected width.","mantra")."
"; ?>
+
+";
+ foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+ }
+ echo "";
+
+ echo " Allow zoom ";
+
+ echo "".__("Enable to make Mantra fully responsive. The layout and general sizes of your blog will adjust depending on what device and what resolution it is viewed in. Do not disable unless you have a good reason to.","mantra")."
";
+}
+
+
+
+////////////////////////////////
+//// PRESENTATION SETTINGS /////////////
+////////////////////////////////
+
+
+//CHECKBOX - Name: ma_options[frontpage]
+function cryout_setting_frontpage_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Enable the presentation front-page. This will become your new home page. It has a slider and columns for presentation
+ text and images. If you have this enabled but don't see a Presentation page then go to Settings » Reading and make sure you have selected Front Page Displays as Your Latest Posts .","mantra")." ";
+ if ($mantra_options['mantra_frontpage'] == 'Enable' && get_option('show_on_front') != 'posts') {
+ printf ( ''.__('You have enabled the Presentation Page but your WordPress\' Front page displays option is set to use a static page. WordPress guidelines require that the static page option have priority over theme options. Go to %1$s and set the Front page displays option to Your latest posts to display the presentation page.',"mantra").'
', ' Settings » Reading ');
+ };
+
+}
+
+function cryout_setting_frontposts_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+ foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+ }
+ echo " ";
+ echo " ".__('posts','mantra');
+ echo "".__("Enable to display latest posts on the presentation page, below the columns. Sticky posts are always displayed and not counted.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[frontslider]
+function cryout_setting_frontslider_fn() {
+ global $mantra_options;
+
+
+ echo "".__("Slider Dimensions:","mantra")." ";
+ echo " px (".__("width","mantra").") X ";
+ echo " px (".__("height","mantra").")";
+ echo "".__("The dimensions of your slider. Make sure your images are of the same size.","mantra")."
";
+
+ echo "".__("Animation:","mantra")." ";
+ $items = array ("random" , "fold", "fade", "slideInRight", "slideInLeft", "sliceDown", "sliceDownLeft", "sliceUp", "sliceUpLeft", "sliceUpDown" , "sliceUpDownLeft", "boxRandom", "boxRain", "boxRainReverse", "boxRainGrow" , "boxRainGrowReverse");
+ $itemsare = 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 "";
+ foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("The transition effect your slider will have.","mantra")."
";
+
+ echo "";
+
+ echo "".__("Animation Time:","mantra")." ";
+ echo " ".__("milliseconds","mantra");
+ echo "".__("The time in which the transition animation will take place.","mantra")."
";
+
+ echo "".__("Pause Time:","mantra")." ";
+ echo " ".__("milliseconds","mantra");
+ echo "".__("The time in which a slide will be still and visible.","mantra")."
";
+
+
+ echo "".__("Slider navigation:","mantra")." ";
+ $items = array ("Numbers" , "Bullets" ,"None");
+ $itemsare = array( __("Numbers","mantra"), __("Bullets","mantra"), __("None","mantra"));
+ echo "";
+ foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Your slider navigation type. Shown under the slider.","mantra")."
";
+
+ echo "".__("Slider arrows:","mantra")." ";
+ $items = array ("Always Visible" , "Visible on Hover" ,"Hidden");
+ $itemsare = array( __("Always Visible","mantra"), __("Visible on Hover","mantra"), __("Hidden","mantra"));
+ echo "";
+ foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("The Left and Right arrows on your slider","mantra")."
";
+
+?>
+
+
+
+
+
+
+".__("Select the content you want to load in your slides:","mantra")." ";
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Your slides' content. Only the image is required, all other fields are optional. Only the slides with an image selected will become acitve and visible in the live slider.","mantra")."
";
+
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ' />
+
+
+
+ Choose the cateogry: ','mantra'); ?>
+
+
+ category_nicename.'" ';
+ $option .= selected($mantra_options["mantra_slideCateg"], $category->category_nicename, false).' >';
+ $option .= $category->cat_name;
+ $option .= ' ('.$category->category_count.')';
+ $option .= '';
+ echo $option;
+ }
+ ?>
+
+
+
+
+ ' />
+
+
+
+
+
+
+
+
+
+
+
+
' />
+
+
+
+
' />
+
+
+
+
+
+
+
+
+
+
+
' />
+
+
+
+
' />
+
+
+
+
+
+
+
+
+
+
+
' />
+
+
+
+
' />
+
+
+
+
+
+
+
+
+
+
+
' />
+
+
+
+
' />
+
+
+
+
+
+
+
+
+
+
+
' />
+
+
+
+
' />
+
+
+
+
+".__("Number of columns:","mantra")." ";
+ $items = array ("0" ,"1", "2" , "3" , "4");
+ echo "";
+foreach($items as $item) {
+ echo "$item ";
+}
+ echo " ";
+
+echo "".__("Image Height:","mantra")." ";
+ echo " px
";
+?>
+
+ ' />
+".__("The linked text that appears at the bottom of all the columns. You can delete all text inside if you don't want it.","mantra")."
";
+
+?>
+
+
+
+
+
+
+
+
' />
+
+
+
+
' />
+
+
+
+
+
+
+
+
+
+
+
' />
+
+
+
+
' />
+
+
+
+
+
+
+
+
+
+
Title
+
' />
+
+
+
+
' />
+
+
+
+
+
+
+
+
+
+
+
' />
+
+
+
+
' />
+
+
+
+ ".__("Extra Text","mantra")." ";
+
+echo "
Text for the Presentation Page ".__("More text for your front page. The top title is above the slider, the second title between the slider and the columns and 2 more rows of text under the columns.
+ It's all optional so leave any input field empty if it's not required. ","mantra")."
";
+
+ echo "
".__("Top Title","mantra")." ";
+echo "
".__("Second Title","mantra")." ";
+ echo "
";
+
+echo "
".__("Title color","mantra")." ";
+ echo '
';
+ echo '
';
+
+echo "
".__("Bottom Text 1","mantra")." ";
+ echo "
";
+echo "
".__("Bottom Text 2","mantra")." ";
+ echo "
";
+
+
+
+
+
+
+echo "".__("Hide areas","mantra")." ";
+
+echo "
".__("Choose the areas to hide on the first page.","mantra")."
";
+
+ $items = array( "FronHeader", "FrontMenu", "FrontWidget" , "FrontFooter","FrontBack");
+
+ $checkedClass0 = ($mantra_options['mantra_fronthideheader']=='1') ? ' checkedClass0' : '';
+ $checkedClass1 = ($mantra_options['mantra_fronthidemenu']=='1') ? ' checkedClass1' : '';
+ $checkedClass2 = ($mantra_options['mantra_fronthidewidget']=='1') ? ' checkedClass2' : '';
+ $checkedClass3 = ($mantra_options['mantra_fronthidefooter']=='1') ? ' checkedClass3' : '';
+ $checkedClass4 = ($mantra_options['mantra_fronthideback']=='1') ? ' checkedClass4' : '';
+
+ echo "
".__("Hide the header area (image or background color).","mantra")." ";
+
+ echo "
".__("Hide the main menu (the top navigation tabs).","mantra")." ";
+
+ echo "
".__("Hide the footer widgets. ","mantra")." ";
+
+ echo "
".__("Hide the footer (copyright area).","mantra")." ";
+
+ echo "
".__("Hide the white color. Only the background color remains.","mantra")." ";
+
+
+echo "
";
+
+
+}
+
+
+//////////////////////////////
+/////HEADER SETTINGS//////////
+/////////////////////////////
+
+ //SELECT - Name: ma_options[hheight]
+function cryout_setting_hheight_fn() {
+ global $mantra_options;?>
+ ' /> px
+".__("Select the header's height. After saving the settings make sure you reupload a new header image (if you're using one). The header's width will be = ","mantra").$totally."px. ";
+}
+
+function cryout_setting_himage_fn() {
+ global $mantra_options;
+ $checkedClass = ($mantra_options['mantra_hcenter']=='1') ? ' checkedClass' : '';
+ $checkedClass2 = ($mantra_options['mantra_hratio']=='1') ? ' checkedClass' : '';
+ echo "".__('Define header image','mantra')." ";
+ echo "".__("The header image should not be used to display logos. Enable ratio preservation to force the header image aspect ratio. Keep in mind that short images will become very small on mobile devices.","mantra")."
";
+ echo " Center the header image horizontally ";
+
+ echo " Keep header image aspect ratio ";
+
+}
+
+//CHECKBOX - Name: ma_options[menurounded]
+function cryout_setting_menurounded_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+ echo "".__("Enable or disable the round corners for the main menu items.","mantra")."
";
+
+}
+
+//CHECKBOX - Name: ma_options[linkheader]
+function cryout_setting_siteheader_fn() {
+ global $mantra_options;
+ $items = array ("Site Title and Description" , "Custom Logo" , "Clickable header image" , "Empty");
+ $itemsare = array( __("Site Title and Description","mantra"), __("Custom Logo","mantra"), __("Clickable header image","mantra"), __("Empty","mantra"));
+ echo "";
+ echo "".__("Choose what to display inside your header area.","mantra")."
";
+}
+
+// TEXTBOX - Name: ma_options[favicon]
+function cryout_setting_logoupload_fn() {
+ global $mantra_options;
+ echo '';
+?>
+
' class="imagebox" style="display:;max-height:60px" />
+
+
".__("Custom Logo upload. The logo will appear over the heder image if you have used one.","mantra")." "; ?>
+
+
+
+
+' /> px
+' /> px
+".__("Select the top spacing for the header. Use it to better position your site title and description or custom logo inside the header. ","mantra")." ";
+}
+
+// TEXTBOX - Name: ma_options[favicon]
+function cryout_setting_favicon_fn() {
+ global $mantra_options;
+ echo '';
+?>
+
' class="imagebox" width="64" height="64"/>
+
+
".__("Limitations: It has to be an image. It should be max 64x64 pixels in dimensions. Recommended file extensions .ico and .png. Note that some browsers do not display the changed favicon instantly. ","mantra")." "; ?>
+
+
+
+";
+ foreach($items as $item) {
+ echo "$item ";
+}
+ echo "";
+ echo "".__("Select the font size you'll use in your blog. Pages, posts and comments will be affected. Buttons, Headers and Side menus will remain the same.","mantra")."
";
+}
+
+
+//SELECT - Name: ma_options[fontfamily]
+function cryout_setting_fontfamily_fn() {
+ global $mantra_options;
+ global $fontSans, $fontSerif, $fontMono, $fontCursive;
+
+ echo "";
+ echo "";
+foreach($fontSans as $item) {
+ echo "$item ";
+}
+ echo " ";
+
+ echo "";
+foreach($fontSerif as $item) {
+
+ echo "$item ";
+}
+ echo " ";
+
+ echo "";
+foreach($fontMono as $item) {
+ echo "$item ";
+}
+ echo " ";
+
+ echo "";
+foreach($fontCursive as $item) {
+ echo "$item ";
+}
+ echo " ";
+ echo " ";
+
+ echo "".__("Select the font family you'll use in your blog. All content text will be affected (including menu buttons). ","mantra")."
";
+ echo ' ';
+ echo "".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")." ";
+
+
+}
+
+//SELECT - Name: ma_options[fonttitle]
+function cryout_setting_fonttitle_fn() {
+ global $mantra_options;
+ global $fontSans, $fontSerif, $fontMono, $fontCursive;
+
+ echo "";
+ echo "Default ";
+ echo "";
+foreach($fontSans as $item) {
+ echo "$item ";
+}
+ echo " ";
+
+ echo "";
+foreach($fontSerif as $item) {
+
+ echo "$item ";
+}
+ echo " ";
+
+ echo "";
+foreach($fontMono as $item) {
+ echo "$item";
+}
+ echo " ";
+
+ echo "";
+foreach($fontCursive as $item) {
+ echo "$item ";
+}
+ echo " ";
+ echo " ";
+ echo "".__("Select the font family you want for your titles. It will affect post titles and page titles. Leave 'Default' and the general font you selected will be used.","mantra")."
";
+
+ echo ' ';
+ echo "".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")." ";
+
+
+
+
+}
+
+//SELECT - Name: ma_options[fontside]
+function cryout_setting_fontside_fn() {
+ global $mantra_options;
+ global $fontSans, $fontSerif, $fontMono, $fontCursive;
+
+ echo "";
+ echo "Default ";
+ echo "";
+foreach($fontSans as $item) {
+ echo "$item ";
+}
+ echo " ";
+
+ echo "";
+foreach($fontSerif as $item) {
+
+ echo "$item ";
+}
+ echo " ";
+
+ echo "";
+foreach($fontMono as $item) {
+ echo "$item ";
+}
+ echo " ";
+
+ echo "";
+foreach($fontCursive as $item) {
+ echo "$item ";
+}
+ echo " ";
+ echo " ";
+ echo "".__("Select the font family you want your sidebar(s) to have. Text in sidebars will be affected, including any widgets. Leave 'Default' and the general font you selected will be used.","mantra")."
";
+ echo ' ';
+ echo "".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")." ";
+
+
+
+}
+
+
+//SELECT - Name: ma_options[fontsubheader]
+function cryout_setting_fontsubheader_fn() {
+ global $mantra_options;
+ global $fontSans, $fontSerif, $fontMono, $fontCursive;
+
+ echo "";
+ echo "".__("Select the font family you want your headings to have (h1 - h6 tags will be affected). Leave 'Default' and the general font you selected will be used.","mantra")."
";
+
+ echo '';
+ echo "".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")." ";
+
+
+}
+
+//SELECT - Name: ma_options[headfontsize]
+function cryout_setting_headfontsize_fn() {
+ global $mantra_options;
+ $items = array ("Default" , "14px" , "16px" , "18px" , "20px", "22px" , "24px" , "26px" , "28px" , "30px" , "32px" , "34px" , "36px", "38px" , "40px");
+ $itemsare = array( __("Default","mantra") ,"14px" , "16px" , "18px" , "20px", "22px" , "24px" , "26px" , "28px" , "30px" , "32px" , "34px" , "36px", "38px" , "40px");
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$item ";
+}
+ echo " ";
+ echo "".__("Post Header Font size. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
";
+}
+
+//SELECT - Name: ma_options[sidefontsize]
+function cryout_setting_sidefontsize_fn() {
+ global $mantra_options;
+ $items = array ("Default" , "8px" , "9px" , "10px" , "11px", "12px" , "13px" , "14px" , "15px" , "16px" , "17px" , "18px");
+ $itemsare = array( __("Default","mantra") , "8px" , "9px" , "10px" , "11px", "12px" , "13px" , "14px" , "15px" , "16px" , "17px" , "18px");
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$item ";
+}
+ echo " ";
+ echo "".__("Sidebar Font size. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
";
+}
+
+//SELECT - Name: ma_options[textalign]
+function cryout_setting_textalign_fn() {
+ global $mantra_options;
+ $items = array ("Default" , "Left" , "Right" , "Justify" , "Center");
+ $itemsare = array( __("Default","mantra"), __("Left","mantra"), __("Right","mantra"), __("Justify","mantra"), __("Center","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("This overwrites the text alignment in posts and pages. Leave 'Default' for normal settings (alignment will remain as declared in posts, comments etc.).","mantra")."
";
+}
+
+//SELECT - Name: ma_options[parindent]
+function cryout_setting_parmargin_fn() {
+ global $mantra_options;
+ $items = array ("0.0em", "0.5em", "1.0em" , "1.1em" , "1.2em" , "1.3em" , "1.4em", "1.5em", "1.6em", "1.7em");
+ echo "";
+foreach($items as $item) {
+ echo "$item ";
+}
+ echo " ";
+ echo "".__("Choose the spacing between paragraphs.","mantra")."
";
+}
+
+
+//SELECT - Name: ma_options[parindent]
+function cryout_setting_parindent_fn() {
+ global $mantra_options;
+ $items = array ("0px" , "5px" , "10px" , "15px" , "20px");
+ echo "";
+foreach($items as $item) {
+ echo "$item ";
+}
+ echo " ";
+ echo "".__("Choose the indent for your paragraphs.","mantra")."
";
+}
+
+
+//CHECKBOX - Name: ma_options[headerindent]
+function cryout_setting_headerindent_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+ echo "".__("Disable the default header and title indent (left margin).","mantra")."
";
+}
+
+//SELECT - Name: ma_options[lineheight]
+function cryout_setting_lineheight_fn() {
+ global $mantra_options;
+ $items = array ("Default" ,"0.8em" , "0.9em", "1.0em" , "1.1em" , "1.2em" , "1.3em", "1.4em" , "1.5em" , "1.6em" , "1.7em" , "1.8em" , "1.9em" , "2.0em");
+ $itemsare = array( __("Default","mantra"),"0.8em" , "0.9em", "1.0em" , "1.1em" , "1.2em" , "1.3em", "1.4em" , "1.5em" , "1.6em" , "1.7em" , "1.8em" , "1.9em" , "2.0em");
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Text line height. The height between 2 rows of text. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
";
+}
+
+//SELECT - Name: ma_options[wordspace]
+function cryout_setting_wordspace_fn() {
+ global $mantra_options;
+ $items = array ("Default" ,"-3px" , "-2px", "-1px" , "0px" , "1px" , "2px", "3px" , "4px" , "5px" , "10px");
+ $itemsare = array( __("Default","mantra"),"-3px" , "-2px", "-1px" , "0px" , "1px" , "2px", "3px" , "4px" , "5px" , "10px");
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("The space between words . Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
";
+}
+
+//SELECT - Name: ma_options[letterspace]
+function cryout_setting_letterspace_fn() {
+ global $mantra_options;
+ $items = array ("Default" ,"-0.05em" , "-0.04em", "-0.03em" , "-0.02em" , "-0.01em" , "0.01em", "0.02em" , "0.03em" , "0.04em" , "0.05em");
+ $itemsare = array( __("Default","mantra"),"-0.05em" , "-0.04em", "-0.03em" , "-0.02em" , "-0.01em" , "0.01em", "0.02em" , "0.03em" , "0.04em" , "0.05em");
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("The space between letters . Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
";
+}
+
+
+
+//CHECKBOX - Name: ma_options[textshadow]
+function cryout_setting_textshadow_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Disable the default text shadow on headers and titles.","mantra")."
";
+}
+
+////////////////////////////////
+//// APPEREANCE SETTINGS ///////
+////////////////////////////////
+
+function cryout_setting_sitebackground_fn() {
+ echo "".__('Define background image','mantra')." ";
+} // cryout_setting_sitebackground_fn()
+
+
+//TEXT - Name: ma_options[backcolor]
+function cryout_setting_backcolor_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Background color (Default value is 444444).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[headercolor]
+function cryout_setting_headercolor_fn() {
+ global $mantra_options;
+ echo '';
+ echo '';
+ echo "".__("Header background color (Default value is 333333). You can delete all inside text for no background color.","mantra")."
";
+}
+
+function cryout_setting_contentbg_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Content background color (Default value is FFFFFF). Works best with really light colors.","mantra")."
";
+}
+
+function cryout_setting_menubg_fn() {
+ global $mantra_options;
+ echo '';
+ echo '';
+ echo "".__("Main menu background color (Default value is FAFAFA). Should be the same color as the content bg or something just as light.","mantra")."
";
+}
+
+function cryout_setting_first_sidebar_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("First sidebar background color (Default is no color for a transparent sidebar).","mantra")."
";
+}
+
+function cryout_setting_second_sidebar_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Second sidebar background color (Default is no color for a transparent sidebar).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[prefootercolor]
+function cryout_setting_prefootercolor_fn() {
+ global $mantra_options;
+ echo '';
+ echo '';
+ echo "".__("Footer widget-area background color. (Default value is 171717).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[footercolor]
+function cryout_setting_footercolor_fn() {
+ global $mantra_options;
+ echo '';
+ echo '';
+ echo "".__("Footer background color (Default value is 222222).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[titlecolor]
+function cryout_setting_titlecolor_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Your blog's title color (Default value is 0D85CC).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[descriptioncolor]
+function cryout_setting_descriptioncolor_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Your blog's description color(Default value is 222222).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[contentcolor]
+function cryout_setting_contentcolor_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Content Text Color (Default value is 333333).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[linkscolor]
+function cryout_setting_linkscolor_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Links color (Default value is 0D85CC).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[hovercolor]
+function cryout_setting_hovercolor_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Links color on mouse over (Default value is 333333).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[headtextcolor]
+function cryout_setting_headtextcolor_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Post Header Text Color (Default value is 333333).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[headtexthover]
+function cryout_setting_headtexthover_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Post Header Text Color on Mouse over (Default value is 000000).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[sideheadbackcolor]
+function cryout_setting_sideheadbackcolor_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Sidebar Header Background color (Default value is 444444).","mantra")."
";
+
+}
+
+//TEXT - Name: ma_options[sideheadtextcolor]
+function cryout_setting_sideheadtextcolor_fn() {
+ global $mantra_options;
+ echo ' ';
+ echo '
';
+ echo "".__("Sidebar Header Text Color(Default value is 2EA5FD).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[footerheader]
+function cryout_setting_footerheader_fn() {
+ global $mantra_options;
+ echo '';
+ echo '';
+ echo "".__("Footer Widget Text Color (Default value is 0D85CC).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[footertext]
+function cryout_setting_footertext_fn() {
+ global $mantra_options;
+ echo '';
+ echo '';
+ echo "".__("Footer Widget Link Color (Default value is 666666).","mantra")."
";
+}
+
+//TEXT - Name: ma_options[footerhover]
+function cryout_setting_footerhover_fn() {
+ global $mantra_options;
+ echo '';
+ echo '';
+ echo "".__("Footer Widget Link Color on Mouse Over (Default value is 888888).","mantra")."
";
+}
+
+
+////////////////////////////////
+//// GRAPHICS SETTINGS /////////
+////////////////////////////////
+
+
+
+//CHECKBOX - Name: ma_options[breadcrumbs]
+function cryout_setting_breadcrumbs_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Show breadcrumbs at the top of the content area. Breadcrumbs are a form of navigation that keeps track of your location withtin the site.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[pagination]
+function cryout_setting_pagination_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+ echo "".__("Show numbered pagination. Where there is more than one page, instead of the bottom Older Posts and Newer posts links you have a numbered pagination. ","mantra")."
";
+}
+
+function cryout_setting_menualign_fn() {
+ global $mantra_options;
+ $items = array ("left", "center", "right");
+ $itemsare = array( __("Left","mantra"), __("Center","mantra"), __("Right","mantra"));
+ echo "";
+ echo "".__("Select the desired main menu items alignment. Center option is only valid for single line menus.","mantra")."
";
+}
+
+//SELECT - Name: ma_options[caption]
+function cryout_setting_caption_fn() {
+global $mantra_options;
+ $items = array ("White" , "Light" , "Light Gray" , "Gray" , "Dark Gray" , "Black");
+ $itemsare = array( __("White","mantra"), __("Light","mantra"), __("Light Gray","mantra"), __("Gray","mantra"), __("Dark Gray","mantra"), __("Black","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("This setting changes the look of your captions. Images that are not inserted through captions will not be affected.","mantra")."
";
+}
+
+// RADIO-BUTTON - Name: ma_options[image]
+function cryout_setting_image_fn() {
+ global $mantra_options;
+ $items = array("None", "One", "Two", "Three" , "Four", "Five", "Six", "Seven");
+ foreach($items as $item) {
+
+ $checkedClass = ($mantra_options['mantra_image']==$item) ? ' checkedClass' : '';
+
+ echo " ";
+ }
+
+ echo "".__("The border around your inserted images. ","mantra")."
";
+}
+
+// RADIO-BUTTON - Name: ma_options[pin]
+function cryout_setting_pin_fn() {
+global $mantra_options;
+ $items = array("mantra_dot", "Pin1", "Pin2", "Pin3" , "Pin4", "Pin5");
+ foreach($items as $item) {
+ $none='';
+ if ($item == 'mantra_dot') { $none='None'; }
+ $checkedClass = ($mantra_options['mantra_pin']==$item) ? ' checkedClass' : '';
+ echo " $none ";
+ }
+ echo "".__("The image on top of your captions. ","mantra")."
";
+}
+
+// RADIO-BUTTON - Name: ma_options[sidebullet]
+function cryout_setting_sidebullet_fn() {
+ global $mantra_options;
+ $items = array("mantra_dot2", "arrow_black", "arrow_white", "bullet_dark" , "bullet_gray", "bullet_light", "square_dark", "square_white", "triangle_dark" , "triangle_gray", "triangle_white");
+ foreach($items as $item) {
+ $none='';
+ if ($item == 'mantra_dot2') { $none='None'; }
+ $checkedClass = ($mantra_options['mantra_sidebullet']==$item) ? ' checkedClass' : '';
+ echo " $none ";
+ }
+ echo "".__("The sidebar list bullets. ","mantra")."
";
+}
+
+
+
+//CHECKBOX - Name: ma_options[metaback]
+function cryout_setting_metaback_fn() {
+ global $mantra_options;
+ $items = array ("Gray" , "White", "None");
+ $itemsare = array( __("Gray","mantra"), __("White","mantra"), __("None","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("The background for your post-metas area (under your post tiltes). Gray by default.","mantra")."
";
+
+}
+
+//CHECKBOX - Name: ma_options[postseparator]
+function cryout_setting_postseparator_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide or show a horizontal rule to separate posts.","mantra")."
";
+
+}
+
+//CHECKBOX - Name: ma_options[contentlist]
+function cryout_setting_contentlist_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide or show bullets next to lists that are in your content area (posts, pages etc.).","mantra")."
";
+
+}
+
+
+//CHECKBOX - Name: ma_options[pagetitle]
+function cryout_setting_pagetitle_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide or show Page titles on any created pages. ","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[categtitle]
+function cryout_setting_categtitle_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide or show Page titles on Category Pages. ","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[tables]
+function cryout_setting_tables_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide table borders and background color.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[comtext]
+function cryout_setting_comtext_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide the explanatory text under the comments form. (starts with You may use these HTML tags and attributes:... ).","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[comclosed]
+function cryout_setting_comclosed_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide in posts", "Hide in pages", "Hide everywhere");
+ $itemsare = array( __("Show","mantra"), __("Hide in posts","mantra"), __("Hide in pages","mantra"), __("Hide everywhere","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide the Comments are closed text that by default shows up on pages or posts with the comments disabled.","mantra")."
";
+}
+
+
+//CHECKBOX - Name: ma_options[comoff]
+function cryout_setting_comoff_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide the Comments off text next to posts that have comments disabled.","mantra")."
";
+}
+
+
+//CHECKBOX - Name: ma_options[backtop]
+function cryout_setting_backtop_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Enable the Back to Top button. The button appears after scrolling the page down.","mantra")."
";
+}
+
+
+////////////////////////////////
+//// POST SETTINGS /////////////
+////////////////////////////////
+
+//CHECKBOX - Name: ma_options[postdate]
+function cryout_setting_postcomlink_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide or show the Leave a comment or x Comments next to posts or post excerpts.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[postdate]
+function cryout_setting_postdate_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide or show the post date.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[posttime]
+function cryout_setting_posttime_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Show the post time with the date. Time will not be visible if the Post Date is hidden.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[postauthor]
+function cryout_setting_postauthor_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide or show the post author.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[postcateg]
+function cryout_setting_postcateg_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide the post category.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[postbook]
+function cryout_setting_postbook_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide the 'Bookmark permalink'.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[postmetas]
+function cryout_setting_postmetas_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide the meta bar. All meta info in it will be hidden.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[posttag]
+function cryout_setting_posttag_fn() {
+ global $mantra_options;
+ $items = array ("Show" , "Hide");
+ $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Hide the post tags.","mantra")."
";
+}
+
+
+////////////////////////////////
+//// EXCERPT SETTINGS /////////////
+////////////////////////////////
+
+
+//CHECKBOX - Name: ma_options[excerpthome]
+function cryout_setting_excerpthome_fn() {
+ global $mantra_options;
+ $items = array ("Excerpt" , "Full Post");
+ $itemsare = array( __("Excerpt","mantra"), __("Full Post","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Excerpts on the main page. Only standard posts will be affected. All other post formats (aside, image, chat, quote etc.) have their specific formating.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[excerptsticky]
+function cryout_setting_excerptsticky_fn() {
+ global $mantra_options;
+ $items = array ("Excerpt" , "Full Post");
+ $itemsare = array( __("Excerpt","mantra"), __("Full Post","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Choose if you want the sticky posts on your home page to be visible in full or just the excerpts. ","mantra")."
";
+}
+
+
+//CHECKBOX - Name: ma_options[excerptarchive]
+function cryout_setting_excerptarchive_fn() {
+ global $mantra_options;
+ $items = array ("Excerpt" , "Full Post");
+ $itemsare = array( __("Excerpt","mantra"), __("Full Post","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Excerpts on archive, categroy and search pages. Same as above, only standard posts will be affected.","mantra")."
";
+}
+
+
+// TEXTBOX - Name: ma_options[excerptwords]
+function cryout_setting_excerptwords_fn() {
+ global $mantra_options;
+ echo " ";
+ echo "".__("The number of words an excerpt will have. When that number is reached the post will be interrupted by a Continue reading link that
+ will take the reader to the full post page.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[magazinelayout]
+function cryout_setting_magazinelayout_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Enable the Magazine Layout. This layout applies to pages with posts and shows 2 posts per row.","mantra")."
";
+}
+
+// TEXTBOX - Name: ma_options[excerptdots]
+function cryout_setting_excerptdots_fn() {
+ global $mantra_options;
+ echo " ";
+ echo "".__("Replaces the three dots ('[...])' that are appended automatically to excerpts.","mantra")."
";
+}
+
+// TEXTBOX - Name: ma_options[excerptcont]
+function cryout_setting_excerptcont_fn() {
+ global $mantra_options;
+ echo " ";
+ echo "".__("Edit the 'Continue Reading' link added to your post excerpts.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[excerpttags]
+function cryout_setting_excerpttags_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".sprintf(__("By default WordPress excerpts remove all HTML tags (%s and all others) and only clean text is left in the excerpt.
+Enabling this option allows HTML tags to remain in excerpts so all your default formating will be kept. Just a warning: If HTML tags are enabled, you have to make sure
+they are not left open. So if within your post you have an opened HTML tag but the except ends before that tag closes, the rest of the site will be contained in that HTML tag. -- Leave 'Disable' if unsure --
","mantra"),htmlspecialchars(', , ') );
+}
+
+
+////////////////////////////////
+/// FEATURED IMAGE SETTINGS ////
+////////////////////////////////
+
+
+//CHECKBOX - Name: ma_options[fpost]
+function cryout_setting_fpost_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ $checkedClass = ($mantra_options['mantra_fpostlink']=='1') ? ' checkedClass' : '';
+
+
+ echo " Link the thumbail to the post ";
+
+
+ echo " ".__("Show featured images as thumbnails on posts. The images must be selected for each post in the Featured Image section.","mantra")."
";
+}
+
+//CHECKBOX - Name: ma_options[fauto]
+function cryout_setting_fauto_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Show the first image that you inserted in a post as a thumbnail. If you enable this option, the first image in your post will be used even if you selected a Featured Image in you post.","mantra")."
";
+}
+
+
+//CHECKBOX - Name: ma_options[falign]
+function cryout_setting_falign_fn() {
+ global $mantra_options;
+ $items = array ("Left" , "Center", "Right");
+ $itemsare = array( __("Left","mantra"), __("Center","mantra"), __("Right","mantra"));
+ echo "";
+foreach($items as $id=>$item) {
+ echo "$itemsare[$id] ";
+}
+ echo " ";
+ echo "".__("Thumbnail alignment.","mantra")."
";
+}
+
+
+// TEXTBOX - Name: ma_options[fwidth]
+function cryout_setting_fsize_fn() {
+ global $mantra_options;
+ echo " px (width) X ";
+ echo " px (height)";
+
+ $checkedClass = ($mantra_options['mantra_fcrop']=='1') ? ' checkedClass' : '';
+
+ echo " Crop images to exact size. ";
+
+
+ echo "".__("The size you want the thumbnails to have (in pixels). By default imges will be scaled with aspect ratio kept. Choose to crop the images if you want the exact size.","mantra")."
";
+}
+
+
+//CHECKBOX - Name: ma_options[fheader]
+function cryout_setting_fheader_fn() {
+ global $mantra_options;
+ $items = array ("Enable" , "Disable");
+ $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "";
+ echo "".__("Show featured images on headers. The header will be replaced with a featured image if you selected it as a Featured Image in the post and
+ and if it is bigger or at least equal to the current header size.","mantra")."
";
+}
+
+
+////////////////////////
+/// SOCIAL SETTINGS ////
+////////////////////////
+
+// TEXTBOX - Name: ma_options[social1]
+
+
+
+function cryout_setting_social_master($i) {
+ $cryout_special_keys = array('Mail', 'Skype');
+ $cryout_social_small = array (
+ '',__('Select your desired Social network from the left dropdown menu and insert your corresponding address in the right input field. (ex: http://www.facebook.com/yourname )','mantra'),
+ '',__("You can insert up to 5 different social sites and addresses.",'mantra'),
+ '',__("There are a total of 27 social networks to choose from. ",'mantra'),
+ '',__("You can leave any number of inputs empty. " ,'mantra'),
+ '',__("You can choose the same social media any number of times. ",'mantra')
+ );
+ $j=$i+1;
+ global $mantra_options, $socialNetworks;
+ echo "";
+ foreach($socialNetworks as $item) {
+ echo "$item ";
+ }
+ echo " » ";
+
+ if (in_array($mantra_options['mantra_social'.$i],$cryout_special_keys)) :
+ $cryout_current_social = esc_html( $mantra_options['mantra_social'.$j] );
+ else :
+ $cryout_current_social = esc_url( $mantra_options['mantra_social'.$j] );
+ endif;
+
+ echo " ";
+ echo "".$cryout_social_small[$i]."
";
+}
+
+
+
+function cryout_setting_socials1_fn() {
+ cryout_setting_social_master(1);
+}
+
+function cryout_setting_socials2_fn() {
+ cryout_setting_social_master(3);
+}
+
+// TEXTBOX - Name: ma_options[social3]
+function cryout_setting_socials3_fn() {
+cryout_setting_social_master(5);
+}
+
+// TEXTBOX - Name: ma_options[social4]
+function cryout_setting_socials4_fn() {
+cryout_setting_social_master(7);
+}
+
+// TEXTBOX - Name: ma_options[social5]
+function cryout_setting_socials5_fn() {
+cryout_setting_social_master(9);
+}
+
+// TEXTBOX - Name: ma_options[socialsdisplay]
+function cryout_setting_socialsdisplay_fn() {
+global $mantra_options;
+ $items = array( "Header", "CLeft", "CRight" , "Footer");
+
+ $checkedClass0 = ($mantra_options['mantra_socialsdisplay0']=='1') ? ' checkedClass0' : '';
+ $checkedClass1 = ($mantra_options['mantra_socialsdisplay1']=='1') ? ' checkedClass1' : '';
+ $checkedClass2 = ($mantra_options['mantra_socialsdisplay2']=='1') ? ' checkedClass2' : '';
+ $checkedClass3 = ($mantra_options['mantra_socialsdisplay3']=='1') ? ' checkedClass3' : '';
+
+ echo " Top right corner of header ";
+
+ echo " Under menu - left side ";
+
+ echo " Under menu - right side ";
+
+ echo " In the footer (smaller icons) ";
+
+
+
+ echo "".__("Choose the areas where to display the social icons.","mantra")."
";
+}
+
+
+////////////////////////
+/// MISC SETTINGS ////
+////////////////////////
+
+
+// TEXTBOX - Name: ma_options[copyright]
+function cryout_setting_copyright_fn() {
+ global $mantra_options;
+ echo "";
+ echo "".__("Insert custom text or HTML code that will appear last in you footer. You can use HTML to insert links, images and special characters like © .","mantra")."
";
+}
+
+
+// TEXTBOX - Name: ma_options[customcss]
+function cryout_setting_customcss_fn() {
+ global $mantra_options;
+ echo "";
+ echo "".__("Insert your custom CSS here. Any CSS declarations made here will overwrite Mantra's (even the custom options specified right here in the Mantra Settings page). Your custom CSS will be preserved when updating the theme. The <style> tags are not needed.","mantra")."
";
+}
+
+// TEXTBOX - Name: ma_options[customjs]
+function cryout_setting_customjs_fn() {
+ global $mantra_options;
+ echo "";
+ echo "".__("Insert your custom Javascript code here. (Google Analytics and any other forms of Analytic software). The <script> tags are not needed.","mantra")."
";
+}
?>
\ No newline at end of file
diff --git a/themes/mantra/archive.php b/themes/mantra/archive.php
index bd14c3e3..bc644e7c 100644
--- a/themes/mantra/archive.php
+++ b/themes/mantra/archive.php
@@ -1,76 +1,76 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/themes/mantra/attachment.php b/themes/mantra/attachment.php
index 6d2d3f73..be1ce096 100644
--- a/themes/mantra/attachment.php
+++ b/themes/mantra/attachment.php
@@ -1,119 +1,119 @@
-
-
-
-
-
-
-
- post_parent ) ) : ?>
-
« %s', get_the_title( $post->post_parent ) );
- ?>
-
-
-
>
-
-
-
- '.__('By','mantra').' %2$s',
- 'meta-prep meta-prep-author',
- sprintf( '
%3$s ',
- get_author_posts_url( get_the_author_meta( 'ID' ) ),
- sprintf( esc_attr__( 'View all posts by %s', 'mantra' ), get_the_author() ),
- get_the_author()
- )
- );
- ?>
-
|
- '.__('Published','mantra').' %2$s',
- 'meta-prep meta-prep-entry-date',
- sprintf( '
%2$s ',
- esc_attr( get_the_time() ),
- get_the_date()
- )
- );
- if ( wp_attachment_is_image() ) {
- echo '
| ';
- $metadata = wp_get_attachment_metadata();
- printf( __( 'Full size is %s pixels', 'mantra'),
- sprintf( '
%3$s × %4$s ',
- wp_get_attachment_url(),
- esc_attr( __('Link to full-size image', 'mantra') ),
- $metadata['width'],
- $metadata['height']
- )
- );
- }
- ?>
- |
', ' ' ); ?>
-
-
-
-
- $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
- foreach ( $attachments as $k => $attachment ) {
- if ( $attachment->ID == $post->ID )
- break;
- }
- $k++;
- // If there is more than 1 image attachment in a gallery
- if ( count( $attachments ) > 1 ) {
- if ( isset( $attachments[ $k ] ) )
- // get the URL of the next image attachment
- $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
- else
- // or get the URL of the first image attachment
- $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
- } else {
- // or, if there's only 1 image attachment, get the URL of the image
- $next_attachment_url = wp_get_attachment_url();
- }
-?>
-
ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height.
- ?>
-
-
-
-
-
-
-
post_excerpt ) ) the_excerpt(); ?>
-
-→' ); ?>
- '
' . __( 'Pages:', 'mantra' ), 'after' => '
' ) ); ?>
-
-
-
-
-
- ', '' ); ?>
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ post_parent ) ) : ?>
+
« %s', get_the_title( $post->post_parent ) );
+ ?>
+
+
+
>
+
+
+
+ '.__('By','mantra').' %2$s',
+ 'meta-prep meta-prep-author',
+ sprintf( '
%3$s ',
+ get_author_posts_url( get_the_author_meta( 'ID' ) ),
+ sprintf( esc_attr__( 'View all posts by %s', 'mantra' ), get_the_author() ),
+ get_the_author()
+ )
+ );
+ ?>
+
|
+ '.__('Published','mantra').' %2$s',
+ 'meta-prep meta-prep-entry-date',
+ sprintf( '
%2$s ',
+ esc_attr( get_the_time() ),
+ get_the_date()
+ )
+ );
+ if ( wp_attachment_is_image() ) {
+ echo '
| ';
+ $metadata = wp_get_attachment_metadata();
+ printf( __( 'Full size is %s pixels', 'mantra'),
+ sprintf( '
%3$s × %4$s ',
+ wp_get_attachment_url(),
+ esc_attr( __('Link to full-size image', 'mantra') ),
+ $metadata['width'],
+ $metadata['height']
+ )
+ );
+ }
+ ?>
+ |
', ' ' ); ?>
+
+
+
+
+ $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
+ foreach ( $attachments as $k => $attachment ) {
+ if ( $attachment->ID == $post->ID )
+ break;
+ }
+ $k++;
+ // If there is more than 1 image attachment in a gallery
+ if ( count( $attachments ) > 1 ) {
+ if ( isset( $attachments[ $k ] ) )
+ // get the URL of the next image attachment
+ $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
+ else
+ // or get the URL of the first image attachment
+ $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
+ } else {
+ // or, if there's only 1 image attachment, get the URL of the image
+ $next_attachment_url = wp_get_attachment_url();
+ }
+?>
+
ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height.
+ ?>
+
+
+
+
+
+
+
post_excerpt ) ) the_excerpt(); ?>
+
+→' ); ?>
+ '
' . __( 'Pages:', 'mantra' ), 'after' => '
' ) ); ?>
+
+
+
+
+
+ ', '' ); ?>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/mantra/author.php b/themes/mantra/author.php
index 393a4297..c8423b99 100644
--- a/themes/mantra/author.php
+++ b/themes/mantra/author.php
@@ -1,92 +1,92 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/themes/mantra/category.php b/themes/mantra/category.php
index efe03b6b..39900cbd 100644
--- a/themes/mantra/category.php
+++ b/themes/mantra/category.php
@@ -1,67 +1,67 @@
-
-
-
-
-
-
-
-
-
' );
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
' );
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/mantra/comments.php b/themes/mantra/comments.php
index 4459314c..6f0da4a5 100644
--- a/themes/mantra/comments.php
+++ b/themes/mantra/comments.php
@@ -1,53 +1,53 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/mantra/content-aside.php b/themes/mantra/content-aside.php
index 22ecf32c..5b275d81 100644
--- a/themes/mantra/content-aside.php
+++ b/themes/mantra/content-aside.php
@@ -1,51 +1,49 @@
-
-
- >
-
-
-
-
-
-
-
- →', 'mantra' ) ); ?>
- '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
-
+
+
+ >
+
+
+
+
+
+
+
+ →', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
diff --git a/themes/mantra/content-chat.php b/themes/mantra/content-chat.php
index 5b629ab4..d85f0784 100644
--- a/themes/mantra/content-chat.php
+++ b/themes/mantra/content-chat.php
@@ -1,52 +1,50 @@
-
-
- >
-
-
-
-
-
-
-
- →', 'mantra' ) ); ?>
- '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
-
-
-
-
-
- ', '' ); ?>
-
-
+
+
+ >
+
+
+
+
+
+
+
+ →', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
+ ', '' ); ?>
+
+
diff --git a/themes/mantra/content-frontpage.php b/themes/mantra/content-frontpage.php
index b4784abc..1998135c 100644
--- a/themes/mantra/content-frontpage.php
+++ b/themes/mantra/content-frontpage.php
@@ -1,37 +1,37 @@
-
-
-
-
-
- $mantra_options['mantra_frontpostscount']) ); ?>
- have_posts() ) : $the_query->the_post(); ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ $mantra_options['mantra_frontpostscount']) ); ?>
+ have_posts() ) : $the_query->the_post(); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/themes/mantra/content-gallery.php b/themes/mantra/content-gallery.php
index 04046799..2332eeda 100644
--- a/themes/mantra/content-gallery.php
+++ b/themes/mantra/content-gallery.php
@@ -1,78 +1,76 @@
- $value) { ${"$key"} = $value ; }
-?>
-
->
-
-
-
-
-
-
-
- $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
- if ( $images ) :
- $total_images = count( $images );
- $image = array_shift( $images );
- $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' );*/
- $images = mantra_get_gallery_images();
- if ( $images ) : $total_images = count( $images );
- $image = array_shift( $images );
-
- if (is_sticky() && $mantra_excerptsticky == "Full Post") $sticky_test=1; else $sticky_test=0;
- if ($mantra_excerpthome != "Full Post" && $sticky_test==0):
- /*?>
-
-
-
-
- */
- mantra_set_featured_thumb();
- ?>
-
%2$s photo.', 'This gallery contains %2$s photos .', $total_images, 'mantra' ),
- 'href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'mantra' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
- number_format_i18n( $total_images )
- ); ?>
-
-
- '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
-
+ $value) { ${"$key"} = $value ; }
+?>
+
+>
+
+
+
+
+
+
+
+ $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
+ if ( $images ) :
+ $total_images = count( $images );
+ $image = array_shift( $images );
+ $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' );*/
+ $images = mantra_get_gallery_images();
+ if ( $images ) : $total_images = count( $images );
+ $image = array_shift( $images );
+
+ if (is_sticky() && $mantra_excerptsticky == "Full Post") $sticky_test=1; else $sticky_test=0;
+ if ($mantra_excerpthome != "Full Post" && $sticky_test==0):
+ /*?>
+
+
+
+
+ */
+ mantra_set_featured_thumb();
+ ?>
+
%2$s photo.', 'This gallery contains %2$s photos .', $total_images, 'mantra' ),
+ 'href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'mantra' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
+ number_format_i18n( $total_images )
+ ); ?>
+
+
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
diff --git a/themes/mantra/content-image.php b/themes/mantra/content-image.php
index 86bf5ca2..c53ea855 100644
--- a/themes/mantra/content-image.php
+++ b/themes/mantra/content-image.php
@@ -1,45 +1,43 @@
-
- >
-
-
-
- →', 'mantra' ) ); ?>
- '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
-
+
+ >
+
+
+
+ →', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
diff --git a/themes/mantra/content-link.php b/themes/mantra/content-link.php
index 4b309f24..e6f6493c 100644
--- a/themes/mantra/content-link.php
+++ b/themes/mantra/content-link.php
@@ -1,52 +1,50 @@
-
-
- >
-
-
-
-
-
-
-
- →', 'mantra' ) ); ?>
- '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
-
-
-
-
-
- ', '' ); ?>
-
-
+
+
+ >
+
+
+
+
+
+
+
+ →', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
+ ', '' ); ?>
+
+
diff --git a/themes/mantra/content-page.php b/themes/mantra/content-page.php
index 85eaaae3..17248f0c 100644
--- a/themes/mantra/content-page.php
+++ b/themes/mantra/content-page.php
@@ -1,30 +1,30 @@
-
-
- >
-
-
-
-
-
-
-
-
- '
' . __( 'Pages:', 'mantra' ), 'after' => '
' ) ); ?>
- ', '' ); ?>
-
-
-
-
-
-
-
-
+
+
+ >
+
+
+
+
+
+
+
+
+ '
' . __( 'Pages:', 'mantra' ), 'after' => '
' ) ); ?>
+ ', '' ); ?>
+
+
+
+
+
+
+
+
diff --git a/themes/mantra/content-quote.php b/themes/mantra/content-quote.php
index 102f2911..b0105a79 100644
--- a/themes/mantra/content-quote.php
+++ b/themes/mantra/content-quote.php
@@ -1,49 +1,47 @@
-
-
- >
-
-
-
-
-
-
-
- →', 'mantra' ) ); ?>
- '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
-
+
+
+ >
+
+
+
+
+
+
+
+ →', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
diff --git a/themes/mantra/content-status.php b/themes/mantra/content-status.php
index 45ee3f04..75d91d6b 100644
--- a/themes/mantra/content-status.php
+++ b/themes/mantra/content-status.php
@@ -1,51 +1,49 @@
-
-
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
→', 'mantra' ) ); ?>
- '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
-
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
→', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
diff --git a/themes/mantra/content.php b/themes/mantra/content.php
index b23e5ef2..e8e266e6 100644
--- a/themes/mantra/content.php
+++ b/themes/mantra/content.php
@@ -1,83 +1,85 @@
- $value) {
- ${"$key"} = $value ;
-}
-
-?>
-
- >
-
-
-
-
-
-
-
-
-
-
-
-
- '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
- '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
-
-
-
-
+ $value) {
+ ${"$key"} = $value ;
+}
+
+?>
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/themes/mantra/editor-style-rtl.css b/themes/mantra/editor-style-rtl.css
index 7dd138e3..e44679af 100644
--- a/themes/mantra/editor-style-rtl.css
+++ b/themes/mantra/editor-style-rtl.css
@@ -1,56 +1,56 @@
-/*
-Theme Name: Mantra
-*/
-/*
-Used to style the TinyMCE editor.
-*/
-html .mceContentBody{
- direction:rtl;
- unicode-bidi:embed;
- float:right;
-}
-* {
- font-family: Arial, Tahoma, sans-serif;
-}
-/* Text elements */
-ul {
- margin: 0 -18px 18px 0;
-}
-ol {
- margin: 0 -18px 18px 0;
-}
-dd {
- margin-right: 0;
-}
-blockquote {
- font-style: normal;
-}
-table {
- text-align: right;
- margin: 0 0 24px -1px;
-}
-html .mceContentBody{
- direction:rtl;
- unicode-bidi:embed;
- float:right;
-}
-* {
- font-family: Arial, Tahoma, sans-serif;
-}
-/* Text elements */
-ul {
- margin: 0 -18px 18px 0;
-}
-ol {
- margin: 0 -18px 18px 0;
-}
-dd {
- margin-right: 0;
-}
-blockquote {
- font-style: normal;
-}
-table {
- text-align: right;
- margin: 0 0 24px -1px;
+/*
+Theme Name: Mantra
+*/
+/*
+Used to style the TinyMCE editor.
+*/
+html .mceContentBody{
+ direction:rtl;
+ unicode-bidi:embed;
+ float:right;
+}
+* {
+ font-family: Arial, Tahoma, sans-serif;
+}
+/* Text elements */
+ul {
+ margin: 0 -18px 18px 0;
+}
+ol {
+ margin: 0 -18px 18px 0;
+}
+dd {
+ margin-right: 0;
+}
+blockquote {
+ font-style: normal;
+}
+table {
+ text-align: right;
+ margin: 0 0 24px -1px;
+}
+html .mceContentBody{
+ direction:rtl;
+ unicode-bidi:embed;
+ float:right;
+}
+* {
+ font-family: Arial, Tahoma, sans-serif;
+}
+/* Text elements */
+ul {
+ margin: 0 -18px 18px 0;
+}
+ol {
+ margin: 0 -18px 18px 0;
+}
+dd {
+ margin-right: 0;
+}
+blockquote {
+ font-style: normal;
+}
+table {
+ text-align: right;
+ margin: 0 0 24px -1px;
}
\ No newline at end of file
diff --git a/themes/mantra/editor-style.css b/themes/mantra/editor-style.css
index 7e0cfe6c..9eefb8bc 100644
--- a/themes/mantra/editor-style.css
+++ b/themes/mantra/editor-style.css
@@ -1,287 +1,287 @@
-/*
-Theme Name: Mantra
-*/
-/*
-Used to style the TinyMCE editor.
-*/
-
-* {
- font-family: Georgia, "Bitstream Charter", serif;
- color: #444;
- line-height: 1.5;
-}
-p,
-dl,
-td,
-th,
-ul,
-ol,
-blockquote {
- font-size: 16px;
-}
-tr th,
-thead th,
-label,
-tr th,
-thead th {
- font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
-}
-pre {
- font-family: "Courier 10 Pitch", Courier, monospace;
-}
-code, code var {
- font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
-}
-body, input, textarea {
- font-size: 12px;
- line-height: 18px;
-}
-hr {
- background-color: #e7e7e7;
- border:0;
- height: 1px;
- margin-bottom: 18px;
- clear:both;
-}
-/* Text elements */
-p {
- margin-bottom: 18px;
-}
-ul {
- list-style: square;
- margin: 0 0 18px 1.5em;
-}
-ol {
- list-style: decimal;
- margin: 0 0 18px 1.5em;
-}
-ol ol {
- list-style:upper-alpha;
-}
-ol ol ol {
- list-style:lower-roman;
-}
-ol ol ol ol {
- list-style:lower-alpha;
-}
-ul ul,
-ol ol,
-ul ol,
-ol ul {
- margin-bottom:0;
-}
-dl {
- margin:0 0 24px 0;
-}
-dt {
- font-weight: bold;
-}
-dd {
- margin-bottom: 18px;
-}
-strong {
- font-weight: bold;
- color: #000;
-}
-cite,
-em,
-i {
- font-style: italic;
- border: none;
-}
-big {
- font-size: 131.25%;
-}
-ins {
- background: #ffffcc;
- border: none;
- color: #333;
-}
-del {
- text-decoration: line-through;
- color: #555;
-}
-blockquote {
- font-style: italic;
- padding: 0 3em;
-}
-blockquote cite,
-blockquote em,
-blockquote i {
- font-style: normal;
-}
-pre {
- background: #f7f7f7;
- color: #222;
- line-height: 18px;
- margin-bottom: 18px;
- padding: 1.5em;
-}
-abbr,
-acronym {
- border-bottom: 1px dotted #666;
- cursor: help;
-}
-ins {
- text-decoration: none;
-}
-sup,
-sub {
- height: 0;
- line-height: 1;
- vertical-align: baseline;
- position: relative;
- font-size: 10px;
-}
-sup {
- bottom: 1ex;
-}
-sub {
- top: .5ex;
-}
-a:link {
- color:#0066cc;
-}
-a:visited {
- color:#743399;
-}
-a:active,
-a:hover {
- color: #ff4b33;
-}
-p,
-ul,
-ol,
-dd,
-pre,
-hr {
- margin-bottom:24px;
-}
-ul ul,
-ol ol,
-ul ol,
-ol ul {
- margin-bottom:0;
-}
-pre,
-kbd,
-tt,
-var {
- font-size: 15px;
- line-height: 21px;
-}
-code {
- font-size: 13px;
-}
-strong,
-b,
-dt,
-th {
- color: #000;
-}
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
- color: #000;
- margin: 0 0 20px 0;
- line-height: 1.5em;
- font-weight: normal;
-}
-h1 {
- font-size: 2.4em;
-}
-h2 {
- font-size: 1.8em;
-}
-h3 {
- font-size: 1.4em;
-}
-h4 {
- font-size: 1.2em;
-}
-h5 {
- font-size: 1em;
-}
-h6 {
- font-size: 0.9em;
-}
-table {
- border: 1px solid #e7e7e7 !important;
- text-align: left;
- margin: 0 -1px 24px 0;
- width: 100%;
- border-collapse: collapse;
- border-spacing: 0;
-}
-tr th,
-thead th {
- border: none !important;
- color: #888;
- font-size: 12px;
- font-weight: bold;
- line-height: 18px;
- padding: 9px 24px;
-}
-tr td {
- border: none !important;
- border-top: 1px solid #e7e7e7 !important;
- padding: 6px 24px;
-}
-
-
-img {
- margin: 0;
- height:auto;
-}
-.alignleft,
-img.alignleft {
- display: inline;
- float: left;
- margin-right: 24px;
- margin-top: 4px;
-}
-.alignright,
-img.alignright {
- display: inline;
- float: right;
- margin-left: 24px;
- margin-top: 4px;
-}
-.aligncenter,
-img.aligncenter {
- clear: both;
- display: block;
- margin-left: auto;
- margin-right: auto;
-}
-img.alignleft,
-img.alignright,
-img.aligncenter {
- margin-bottom: 12px;
-}
-.wp-caption {
- border: none;
- background: #f1f1f1;
- color: #888;
- font-size: 12px;
- line-height: 18px;
- text-align: center;
- margin-bottom: 20px;
- padding: 4px;
- -moz-border-radius: 0;
- -khtml-border-radius: 0;
- -webkit-border-radius: 0;
- border-radius: 0;
-}
-.wp-caption img {
- margin: 5px;
-}
-.wp-caption p.wp-caption-text {
- margin: 0 0 4px;
-}
-.wp-smiley {
- margin:0;
+/*
+Theme Name: Mantra
+*/
+/*
+Used to style the TinyMCE editor.
+*/
+
+* {
+ font-family: Georgia, "Bitstream Charter", serif;
+ color: #444;
+ line-height: 1.5;
+}
+p,
+dl,
+td,
+th,
+ul,
+ol,
+blockquote {
+ font-size: 16px;
+}
+tr th,
+thead th,
+label,
+tr th,
+thead th {
+ font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
+}
+pre {
+ font-family: "Courier 10 Pitch", Courier, monospace;
+}
+code, code var {
+ font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+}
+body, input, textarea {
+ font-size: 12px;
+ line-height: 18px;
+}
+hr {
+ background-color: #e7e7e7;
+ border:0;
+ height: 1px;
+ margin-bottom: 18px;
+ clear:both;
+}
+/* Text elements */
+p {
+ margin-bottom: 18px;
+}
+ul {
+ list-style: square;
+ margin: 0 0 18px 1.5em;
+}
+ol {
+ list-style: decimal;
+ margin: 0 0 18px 1.5em;
+}
+ol ol {
+ list-style:upper-alpha;
+}
+ol ol ol {
+ list-style:lower-roman;
+}
+ol ol ol ol {
+ list-style:lower-alpha;
+}
+ul ul,
+ol ol,
+ul ol,
+ol ul {
+ margin-bottom:0;
+}
+dl {
+ margin:0 0 24px 0;
+}
+dt {
+ font-weight: bold;
+}
+dd {
+ margin-bottom: 18px;
+}
+strong {
+ font-weight: bold;
+ color: #000;
+}
+cite,
+em,
+i {
+ font-style: italic;
+ border: none;
+}
+big {
+ font-size: 131.25%;
+}
+ins {
+ background: #ffffcc;
+ border: none;
+ color: #333;
+}
+del {
+ text-decoration: line-through;
+ color: #555;
+}
+blockquote {
+ font-style: italic;
+ padding: 0 3em;
+}
+blockquote cite,
+blockquote em,
+blockquote i {
+ font-style: normal;
+}
+pre {
+ background: #f7f7f7;
+ color: #222;
+ line-height: 18px;
+ margin-bottom: 18px;
+ padding: 1.5em;
+}
+abbr,
+acronym {
+ border-bottom: 1px dotted #666;
+ cursor: help;
+}
+ins {
+ text-decoration: none;
+}
+sup,
+sub {
+ height: 0;
+ line-height: 1;
+ vertical-align: baseline;
+ position: relative;
+ font-size: 10px;
+}
+sup {
+ bottom: 1ex;
+}
+sub {
+ top: .5ex;
+}
+a:link {
+ color:#0066cc;
+}
+a:visited {
+ color:#743399;
+}
+a:active,
+a:hover {
+ color: #ff4b33;
+}
+p,
+ul,
+ol,
+dd,
+pre,
+hr {
+ margin-bottom:24px;
+}
+ul ul,
+ol ol,
+ul ol,
+ol ul {
+ margin-bottom:0;
+}
+pre,
+kbd,
+tt,
+var {
+ font-size: 15px;
+ line-height: 21px;
+}
+code {
+ font-size: 13px;
+}
+strong,
+b,
+dt,
+th {
+ color: #000;
+}
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ color: #000;
+ margin: 0 0 20px 0;
+ line-height: 1.5em;
+ font-weight: normal;
+}
+h1 {
+ font-size: 2.4em;
+}
+h2 {
+ font-size: 1.8em;
+}
+h3 {
+ font-size: 1.4em;
+}
+h4 {
+ font-size: 1.2em;
+}
+h5 {
+ font-size: 1em;
+}
+h6 {
+ font-size: 0.9em;
+}
+table {
+ border: 1px solid #e7e7e7 !important;
+ text-align: left;
+ margin: 0 -1px 24px 0;
+ width: 100%;
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+tr th,
+thead th {
+ border: none !important;
+ color: #888;
+ font-size: 12px;
+ font-weight: bold;
+ line-height: 18px;
+ padding: 9px 24px;
+}
+tr td {
+ border: none !important;
+ border-top: 1px solid #e7e7e7 !important;
+ padding: 6px 24px;
+}
+
+
+img {
+ margin: 0;
+ height:auto;
+}
+.alignleft,
+img.alignleft {
+ display: inline;
+ float: left;
+ margin-right: 24px;
+ margin-top: 4px;
+}
+.alignright,
+img.alignright {
+ display: inline;
+ float: right;
+ margin-left: 24px;
+ margin-top: 4px;
+}
+.aligncenter,
+img.aligncenter {
+ clear: both;
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+}
+img.alignleft,
+img.alignright,
+img.aligncenter {
+ margin-bottom: 12px;
+}
+.wp-caption {
+ border: none;
+ background: #f1f1f1;
+ color: #888;
+ font-size: 12px;
+ line-height: 18px;
+ text-align: center;
+ margin-bottom: 20px;
+ padding: 4px;
+ -moz-border-radius: 0;
+ -khtml-border-radius: 0;
+ -webkit-border-radius: 0;
+ border-radius: 0;
+}
+.wp-caption img {
+ margin: 5px;
+}
+.wp-caption p.wp-caption-text {
+ margin: 0 0 4px;
+}
+.wp-smiley {
+ margin:0;
}
\ No newline at end of file
diff --git a/themes/mantra/footer.php b/themes/mantra/footer.php
index 90b877c9..583b8f57 100644
--- a/themes/mantra/footer.php
+++ b/themes/mantra/footer.php
@@ -1,38 +1,38 @@
-
-
-
-
-
-
-
-
-
-
-
-
-