commit: 2585802e750dc170833e3c37bf9ea2941d1d06dc
Author: Theo Chatzimichos gentoo org>
AuthorDate: Sun Oct 6 10:49:03 2013 +0000
Commit: Theo Chatzimichos gentoo org>
CommitDate: Sun Oct 6 10:49:03 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/blogs-gentoo.git;a=commit;h=2585802e
Add mantra theme, requested by hwoarang
---
bin/update-wordpress | 1 +
themes/mantra/404.php | 32 +
themes/mantra/admin/admin-functions.php | 192 +
themes/mantra/admin/css/admin.css | 578 +++
themes/mantra/admin/custom-styles.php | 300 ++
themes/mantra/admin/defaults.php | 216 +
themes/mantra/admin/images/1c.png | Bin 0 -> 427 bytes
themes/mantra/admin/images/2cSl.png | Bin 0 -> 581 bytes
themes/mantra/admin/images/2cSr.png | Bin 0 -> 560 bytes
themes/mantra/admin/images/3cSl.png | Bin 0 -> 671 bytes
themes/mantra/admin/images/3cSr.png | Bin 0 -> 676 bytes
themes/mantra/admin/images/3cSs.png | Bin 0 -> 678 bytes
themes/mantra/admin/images/coffee.png | Bin 0 -> 7120 bytes
themes/mantra/admin/images/mantra-logo.png | Bin 0 -> 10900 bytes
themes/mantra/admin/images/placeholder.gif | Bin 0 -> 2080 bytes
themes/mantra/admin/images/testimg.png | Bin 0 -> 8213 bytes
themes/mantra/admin/js/accordion-slider.js | 96 +
themes/mantra/admin/js/admin.js | 185 +
themes/mantra/admin/main.php | 478 +++
themes/mantra/admin/sanitize.php | 237 +
themes/mantra/admin/settings.php | 2105 +++++++++
themes/mantra/archive.php | 76 +
themes/mantra/attachment.php | 118 +
themes/mantra/author.php | 92 +
themes/mantra/category.php | 67 +
themes/mantra/comments.php | 53 +
themes/mantra/content-aside.php | 51 +
themes/mantra/content-chat.php | 52 +
themes/mantra/content-frontpage.php | 36 +
themes/mantra/content-gallery.php | 78 +
themes/mantra/content-image.php | 45 +
themes/mantra/content-link.php | 52 +
themes/mantra/content-page.php | 30 +
themes/mantra/content-quote.php | 49 +
themes/mantra/content-status.php | 51 +
themes/mantra/content.php | 83 +
themes/mantra/editor-style-rtl.css | 56 +
themes/mantra/editor-style.css | 289 ++
themes/mantra/footer.php | 38 +
themes/mantra/functions.php | 26 +
themes/mantra/header.php | 59 +
themes/mantra/images/back2top.png | Bin 0 -> 3659 bytes
themes/mantra/images/bullet.png | Bin 0 -> 501 bytes
themes/mantra/images/bullets/arrow_black.png | Bin 0 -> 226 bytes
themes/mantra/images/bullets/arrow_white.png | Bin 0 -> 283 bytes
themes/mantra/images/bullets/bullet_dark.png | Bin 0 -> 304 bytes
themes/mantra/images/bullets/bullet_gray.png | Bin 0 -> 304 bytes
themes/mantra/images/bullets/bullet_light.png | Bin 0 -> 270 bytes
themes/mantra/images/bullets/mantra_dot2.png | Bin 0 -> 181 bytes
themes/mantra/images/bullets/square_dark.png | Bin 0 -> 247 bytes
themes/mantra/images/bullets/square_white.png | Bin 0 -> 250 bytes
themes/mantra/images/bullets/triangle_dark.png | Bin 0 -> 311 bytes
themes/mantra/images/bullets/triangle_gray.png | Bin 0 -> 346 bytes
themes/mantra/images/bullets/triangle_white.png | Bin 0 -> 271 bytes
themes/mantra/images/headers/mantra.png | Bin 0 -> 19384 bytes
themes/mantra/images/headers/mantra_thumbnail.png | Bin 0 -> 19341 bytes
themes/mantra/images/icon-back.png | Bin 0 -> 242 bytes
themes/mantra/images/icon-featured.png | Bin 0 -> 1395 bytes
themes/mantra/images/icon-tooltip.png | Bin 0 -> 619 bytes
themes/mantra/images/nivoslider/arrows.png | Bin 0 -> 824 bytes
themes/mantra/images/nivoslider/bullets.png | Bin 0 -> 1281 bytes
themes/mantra/images/nivoslider/loading.gif | Bin 0 -> 1737 bytes
themes/mantra/images/pins/Pin1.png | Bin 0 -> 1114 bytes
themes/mantra/images/pins/Pin2.png | Bin 0 -> 1323 bytes
themes/mantra/images/pins/Pin3.png | Bin 0 -> 1322 bytes
themes/mantra/images/pins/Pin4.png | Bin 0 -> 1146 bytes
themes/mantra/images/pins/Pin5.png | Bin 0 -> 1156 bytes
themes/mantra/images/pins/mantra_dot.png | Bin 0 -> 181 bytes
themes/mantra/images/post-formats/brackets.png | Bin 0 -> 1315 bytes
themes/mantra/images/post-formats/brackets2.png | Bin 0 -> 4552 bytes
themes/mantra/images/post-formats/bubble.png | Bin 0 -> 932 bytes
themes/mantra/images/post-formats/link.png | Bin 0 -> 1606 bytes
themes/mantra/images/post-formats/picture.png | Bin 0 -> 874 bytes
themes/mantra/images/post-formats/quotes.png | Bin 0 -> 691 bytes
themes/mantra/images/slider/mantra-column.jpg | Bin 0 -> 6975 bytes
themes/mantra/images/slider/mantra-slide1.jpg | Bin 0 -> 90735 bytes
themes/mantra/images/slider/mantra-slide2.jpg | Bin 0 -> 39538 bytes
themes/mantra/images/socials/Amazon.png | Bin 0 -> 5105 bytes
themes/mantra/images/socials/Delicious.png | Bin 0 -> 1864 bytes
themes/mantra/images/socials/DeviantArt.png | Bin 0 -> 1725 bytes
themes/mantra/images/socials/Digg.png | Bin 0 -> 2388 bytes
themes/mantra/images/socials/Etsy.png | Bin 0 -> 2494 bytes
themes/mantra/images/socials/Facebook.png | Bin 0 -> 2174 bytes
themes/mantra/images/socials/Flickr.png | Bin 0 -> 2277 bytes
themes/mantra/images/socials/GoodReads.png | Bin 0 -> 2667 bytes
themes/mantra/images/socials/Google.png | Bin 0 -> 2702 bytes
themes/mantra/images/socials/GooglePlus.png | Bin 0 -> 2606 bytes
themes/mantra/images/socials/IMDb.png | Bin 0 -> 2783 bytes
themes/mantra/images/socials/Instagram.png | Bin 0 -> 3522 bytes
themes/mantra/images/socials/LastFM.png | Bin 0 -> 2466 bytes
themes/mantra/images/socials/LinkedIn.png | Bin 0 -> 2444 bytes
themes/mantra/images/socials/Mail.png | Bin 0 -> 1812 bytes
themes/mantra/images/socials/MySpace.png | Bin 0 -> 2658 bytes
themes/mantra/images/socials/Picasa.png | Bin 0 -> 2426 bytes
themes/mantra/images/socials/Pinterest.png | Bin 0 -> 1952 bytes
themes/mantra/images/socials/RSS.png | Bin 0 -> 2987 bytes
themes/mantra/images/socials/Reddit.png | Bin 0 -> 2857 bytes
themes/mantra/images/socials/Skype.png | Bin 0 -> 2636 bytes
themes/mantra/images/socials/SoundCloud.png | Bin 0 -> 1946 bytes
themes/mantra/images/socials/StumbleUpon.png | Bin 0 -> 2613 bytes
themes/mantra/images/socials/Technorati.png | Bin 0 -> 2704 bytes
themes/mantra/images/socials/Tumblr.png | Bin 0 -> 1598 bytes
themes/mantra/images/socials/Twitch.png | Bin 0 -> 4801 bytes
themes/mantra/images/socials/Twitter.png | Bin 0 -> 2180 bytes
themes/mantra/images/socials/VK.png | Bin 0 -> 4366 bytes
themes/mantra/images/socials/Vimeo.png | Bin 0 -> 1774 bytes
themes/mantra/images/socials/WordPress.png | Bin 0 -> 2677 bytes
themes/mantra/images/socials/Xing.png | Bin 0 -> 4834 bytes
themes/mantra/images/socials/Yahoo.png | Bin 0 -> 2332 bytes
themes/mantra/images/socials/Yelp.png | Bin 0 -> 5049 bytes
themes/mantra/images/socials/YouTube.png | Bin 0 -> 3144 bytes
themes/mantra/includes/theme-comments.php | 143 +
themes/mantra/includes/theme-frontpage.php | 284 ++
themes/mantra/includes/theme-functions.php | 445 ++
themes/mantra/includes/theme-hooks.php | 159 +
themes/mantra/includes/theme-loop.php | 306 ++
themes/mantra/includes/theme-seo.php | 201 +
themes/mantra/includes/theme-setup.php | 383 ++
themes/mantra/includes/theme-shortcodes.php | 293 ++
themes/mantra/includes/theme-styles.php | 133 +
themes/mantra/index.php | 57 +
themes/mantra/js/PIE/PIE.htc | 96 +
themes/mantra/js/PIE/PIE.js | 88 +
themes/mantra/js/PIE/PIE.php | 19 +
themes/mantra/js/PIE/PIE_uncompressed.htc | 4505 ++++++++++++++++++++
themes/mantra/js/PIE/PIE_uncompressed.js | 4474 +++++++++++++++++++
themes/mantra/js/buttons/button-color.png | Bin 0 -> 319 bytes
themes/mantra/js/buttons/button-dark.png | Bin 0 -> 301 bytes
themes/mantra/js/buttons/button-light.png | Bin 0 -> 299 bytes
themes/mantra/js/buttons/multi-column.png | Bin 0 -> 258 bytes
themes/mantra/js/buttons/pullquote.png | Bin 0 -> 361 bytes
themes/mantra/js/frontend.js | 253 ++
.../ui-bg_diagonals-thick_18_b81900_40x40.png | Bin 0 -> 260 bytes
.../ui-bg_diagonals-thick_20_666666_40x40.png | Bin 0 -> 251 bytes
.../images/ui-bg_flat_10_000000_40x100.png | Bin 0 -> 178 bytes
.../images/ui-bg_glass_100_f6f6f6_1x400.png | Bin 0 -> 104 bytes
.../images/ui-bg_glass_100_fdf5ce_1x400.png | Bin 0 -> 125 bytes
.../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes
.../images/ui-bg_gloss-wave_35_f6a828_500x100.png | Bin 0 -> 3762 bytes
.../ui-bg_highlight-soft_100_eeeeee_1x100.png | Bin 0 -> 90 bytes
.../ui-bg_highlight-soft_75_ffe45c_1x100.png | Bin 0 -> 129 bytes
.../images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes
.../images/ui-icons_228ef1_256x240.png | Bin 0 -> 4369 bytes
.../images/ui-icons_ef8c08_256x240.png | Bin 0 -> 4369 bytes
.../images/ui-icons_ffd27a_256x240.png | Bin 0 -> 4369 bytes
.../images/ui-icons_ffffff_256x240.png | Bin 0 -> 4369 bytes
.../css/ui-lightness/jquery-ui-1.8.16.custom.css | 568 +++
themes/mantra/js/mce-shortcodes.js | 59 +
themes/mantra/js/nivo-slider.js | 10 +
themes/mantra/languages/_mantra.mo | Bin 0 -> 416 bytes
themes/mantra/languages/_mantra.po | 2032 +++++++++
themes/mantra/languages/da_DK.mo | Bin 0 -> 43655 bytes
themes/mantra/languages/da_DK.po | 2425 +++++++++++
themes/mantra/languages/de_DE.mo | Bin 0 -> 41890 bytes
themes/mantra/languages/de_DE.po | 2461 +++++++++++
themes/mantra/languages/el.mo | Bin 0 -> 68429 bytes
themes/mantra/languages/el.po | 2168 ++++++++++
themes/mantra/languages/el_EL.mo | Bin 0 -> 68429 bytes
themes/mantra/languages/el_EL.po | 2168 ++++++++++
themes/mantra/languages/es_ES.mo | Bin 0 -> 50716 bytes
themes/mantra/languages/es_ES.po | 2219 ++++++++++
themes/mantra/languages/fa_IR.mo | Bin 0 -> 57574 bytes
themes/mantra/languages/fa_IR.po | 1920 +++++++++
themes/mantra/languages/fr_FR.mo | Bin 0 -> 47198 bytes
themes/mantra/languages/fr_FR.po | 2479 +++++++++++
themes/mantra/languages/he_IL.mo | Bin 0 -> 467 bytes
themes/mantra/languages/he_IL.po | 1889 ++++++++
themes/mantra/languages/hu_HU.mo | Bin 0 -> 47880 bytes
themes/mantra/languages/hu_HU.po | 2298 ++++++++++
themes/mantra/languages/it_IT.mo | Bin 0 -> 51078 bytes
themes/mantra/languages/it_IT.po | 2331 ++++++++++
themes/mantra/languages/ja.mo | Bin 0 -> 52403 bytes
themes/mantra/languages/ja.po | 2088 +++++++++
themes/mantra/languages/ja_JP.mo | Bin 0 -> 52403 bytes
themes/mantra/languages/ja_JP.po | 2088 +++++++++
themes/mantra/languages/nb_NO.mo | Bin 0 -> 4409 bytes
themes/mantra/languages/nb_NO.po | 1819 ++++++++
themes/mantra/languages/nl_NL.mo | Bin 0 -> 40887 bytes
themes/mantra/languages/nl_NL.po | 2456 +++++++++++
themes/mantra/languages/pl_PL.mo | Bin 0 -> 48403 bytes
themes/mantra/languages/pl_PL.po | 2123 +++++++++
themes/mantra/languages/pt_BR.mo | Bin 0 -> 50162 bytes
themes/mantra/languages/pt_BR.po | 2135 ++++++++++
themes/mantra/languages/ru_RU.mo | Bin 0 -> 64420 bytes
themes/mantra/languages/ru_RU.po | 2313 ++++++++++
themes/mantra/languages/tr_TR.mo | Bin 0 -> 47699 bytes
themes/mantra/languages/tr_TR.po | 2097 +++++++++
themes/mantra/languages/zh_CN.mo | 1845 ++++++++
themes/mantra/languages/zh_CN.po | 1845 ++++++++
themes/mantra/license.txt | 281 ++
themes/mantra/page.php | 34 +
themes/mantra/readme.txt | 36 +
themes/mantra/rtl.css | 361 ++
themes/mantra/screenshot.png | Bin 0 -> 69529 bytes
themes/mantra/search.php | 53 +
themes/mantra/searchform.php | 11 +
themes/mantra/sidebar-footer.php | 59 +
themes/mantra/sidebar.php | 95 +
themes/mantra/single.php | 73 +
themes/mantra/style-mobile.css | 217 +
themes/mantra/style.css | 2589 +++++++++++
themes/mantra/tag.php | 68 +
themes/mantra/template-blog.php | 54 +
themes/mantra/template-onecolumn.php | 38 +
themes/mantra/template-page-with-intro.php | 54 +
themes/mantra/template-threecolumns-center.php | 21 +
themes/mantra/template-threecolumns-left.php | 21 +
themes/mantra/template-threecolumns-right.php | 21 +
themes/mantra/template-twocolumns-left.php | 21 +
themes/mantra/template-twocolumns-right.php | 21 +
210 files changed, 67624 insertions(+)
diff --git a/bin/update-wordpress b/bin/update-wordpress
index 206a95d..4624d57 100755
--- a/bin/update-wordpress
+++ b/bin/update-wordpress
@@ -18,6 +18,7 @@ THEMES=(
wp-oxygen
kde-breathe
kde-graffiti
+ mantra
)
for THEME in ${THEMES[@]} ; do
diff --git a/themes/mantra/404.php b/themes/mantra/404.php
new file mode 100644
index 0000000..cd47c44
--- /dev/null
+++ b/themes/mantra/404.php
@@ -0,0 +1,32 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/themes/mantra/admin/admin-functions.php b/themes/mantra/admin/admin-functions.php
new file mode 100644
index 0000000..b361652
--- /dev/null
+++ b/themes/mantra/admin/admin-functions.php
@@ -0,0 +1,192 @@
+
+
+
+
+ 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;
+}
+?>
\ No newline at end of file
diff --git a/themes/mantra/admin/css/admin.css b/themes/mantra/admin/css/admin.css
new file mode 100644
index 0000000..1be4cb7
--- /dev/null
+++ b/themes/mantra/admin/css/admin.css
@@ -0,0 +1,578 @@
+ /* 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 */
+
+
+#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;
+background:#FFF;
+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 {
+width:95% ;
+margin:0px auto;
+font-family:Segoe UI,Calibri, Arial !important;
+display:block;
+float:none;
+}
+
+#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 {
+border:none;
+background-image:none;
+background:#2C5353;
+margin:0;
+padding:8px;
+clear:both;
+display:block;
+float:none;
+font-size: 17px ;
+padding-left:30px ;
+font-weight:normal;
+text-transform:uppercase;
+color:#F5F5F5;
+border-top:1px solid #4C7373;
+border-bottom:1px solid #0C3333;
+line-height: 1.3;
+-moz-border-radius:0;
+-webkit-border-radius:0;
+border-radius:0;
+transition:background ease-in-out .2s;
+}
+
+#accordion h3:hover {
+background:#3C6363;
+}
+
+#accordion select option {
+font-size:1.1em;
+}
+
+.form-table th, .form-wrap label {
+ color: #222 !important;
+font-size: 16px;
+font-weight:normal;
+}
+
+.form-table tr {
+border-bottom:1px dashed #DDD;
+}
+
+.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;
+}
+
+ #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;
+}
+
+
+.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;
+}
+
+#accordion > * {
+display:none;
+}
+
+#accrodion > h3 {
+display:block;
+}
+
+.ui-accordion-content {
+border-color:#EEE !important;
+background:#FFF !important;
+margin-bottom:10px !important;
+border:1px solid #DDD !important;
+border-top:none !important;
+overflow: hidden;
+padding:1em !important;
+}
+.ui-accordion .ui-accordion-content { overflow: hidden !important; }
+.ui-accordion .ui-accordion-content-overflow { overflow: visible !important; }
+
+.ui-state-active {
+ background:#0C3333 !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;
+margin:10px;
+}
+
+.slmini {
+background:#F9F9F9;
+border:1px dashed #CCC;
+padding:5px;
+}
+
+.slmini b {
+width:130px;
+display:inline-block;
+float:left;}
+
+.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 {
+color:#C67828 !important;
+text-decoration:none;
+clear:both;
+padding:2px 4px;
+display:block;
+float:none;
+}
+
+#submitDiv input.button {
+font-size:13px !important;
+padding:4px 10px !important;
+height:auto;
+}
+
+.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:90px;
+ margin-top:-18px;
+ }
+
+#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:#3F5F5F;
+text-transform:uppercase;
+}
+
+#admin_links a:hover {
+color:#C47D09;
+}
+
+.wrap div.updated, .wrap div.error {
+margin-left: 15px; margin-right: 15px;
+margin-top: 20px; }
+
diff --git a/themes/mantra/admin/custom-styles.php b/themes/mantra/admin/custom-styles.php
new file mode 100644
index 0000000..c8a7439
--- /dev/null
+++ b/themes/mantra/admin/custom-styles.php
@@ -0,0 +1,300 @@
+ $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
diff --git a/themes/mantra/admin/defaults.php b/themes/mantra/admin/defaults.php
new file mode 100644
index 0000000..44927d2
--- /dev/null
+++ b/themes/mantra/admin/defaults.php
@@ -0,0 +1,216 @@
+ "1.0",
+
+"mantra_side" => "2cSr",
+"mantra_dimselect" => 'Absolute',
+"mantra_sidewidth" => 800,
+"mantra_sidebar" => 250,
+"mantra_sidewidthRel" => 60,
+"mantra_sidebarRel" => 20,
+"mantra_mobile" => "Enable",
+"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 your caption's 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's 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's 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" => "",
+"mantra_social2" => "",
+"mantra_social3" => "",
+"mantra_social4" => "",
+"mantra_social5" => "",
+"mantra_social6" => "",
+"mantra_social7" => "",
+"mantra_social8" => "",
+"mantra_social9" => "",
+"mantra_social10" => "",
+"mantra_socialsdisplay0" => "",
+"mantra_socialsdisplay1" => "",
+"mantra_socialsdisplay2" => "",
+"mantra_socialsdisplay3" => "",
+
+"mantra_copyright" => "",
+"mantra_customcss" => "/* Mantra Custom CSS */ ",
+"mantra_customjs" => "",
+"mantra_seo" => "Enable",
+"mantra_seo_home_desc" => "",
+"mantra_seo_gen_desc" => "Auto",
+"mantra_seo_author" => "Do not use");
+
+?>
\ No newline at end of file
diff --git a/themes/mantra/admin/images/1c.png b/themes/mantra/admin/images/1c.png
new file mode 100644
index 0000000..29891b1
Binary files /dev/null and b/themes/mantra/admin/images/1c.png differ
diff --git a/themes/mantra/admin/images/2cSl.png b/themes/mantra/admin/images/2cSl.png
new file mode 100644
index 0000000..61ca2ef
Binary files /dev/null and b/themes/mantra/admin/images/2cSl.png differ
diff --git a/themes/mantra/admin/images/2cSr.png b/themes/mantra/admin/images/2cSr.png
new file mode 100644
index 0000000..1392844
Binary files /dev/null and b/themes/mantra/admin/images/2cSr.png differ
diff --git a/themes/mantra/admin/images/3cSl.png b/themes/mantra/admin/images/3cSl.png
new file mode 100644
index 0000000..f47dbab
Binary files /dev/null and b/themes/mantra/admin/images/3cSl.png differ
diff --git a/themes/mantra/admin/images/3cSr.png b/themes/mantra/admin/images/3cSr.png
new file mode 100644
index 0000000..a21b6d9
Binary files /dev/null and b/themes/mantra/admin/images/3cSr.png differ
diff --git a/themes/mantra/admin/images/3cSs.png b/themes/mantra/admin/images/3cSs.png
new file mode 100644
index 0000000..0e6b5fe
Binary files /dev/null and b/themes/mantra/admin/images/3cSs.png differ
diff --git a/themes/mantra/admin/images/coffee.png b/themes/mantra/admin/images/coffee.png
new file mode 100644
index 0000000..6a94cc8
Binary files /dev/null and b/themes/mantra/admin/images/coffee.png differ
diff --git a/themes/mantra/admin/images/mantra-logo.png b/themes/mantra/admin/images/mantra-logo.png
new file mode 100644
index 0000000..68d6c88
Binary files /dev/null and b/themes/mantra/admin/images/mantra-logo.png differ
diff --git a/themes/mantra/admin/images/placeholder.gif b/themes/mantra/admin/images/placeholder.gif
new file mode 100644
index 0000000..7e063df
Binary files /dev/null and b/themes/mantra/admin/images/placeholder.gif differ
diff --git a/themes/mantra/admin/images/testimg.png b/themes/mantra/admin/images/testimg.png
new file mode 100644
index 0000000..9b2bcbf
Binary files /dev/null and b/themes/mantra/admin/images/testimg.png differ
diff --git a/themes/mantra/admin/js/accordion-slider.js b/themes/mantra/admin/js/accordion-slider.js
new file mode 100644
index 0000000..e43b28a
--- /dev/null
+++ b/themes/mantra/admin/js/accordion-slider.js
@@ -0,0 +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);
+;
\ No newline at end of file
diff --git a/themes/mantra/admin/js/admin.js b/themes/mantra/admin/js/admin.js
new file mode 100644
index 0000000..6ee5180
--- /dev/null
+++ b/themes/mantra/admin/js/admin.js
@@ -0,0 +1,185 @@
+/*!
+ * Admin js
+ */
+
+jQuery(document).ready(function() {
+
+// WP image uploader for custom use in the admin section
+ var uploadparent = 0;
+ var old_send_to_editor = window.send_to_editor;
+ var old_tb_remove = window.tb_remove;
+
+ jQuery('.upload_image_button').click(function(){
+ uploadparent = jQuery(this).closest('div');
+ //Change "insert into post" to "Use this Button"
+ tbframe_interval = setInterval( function() {jQuery('#TB_iframeContent').contents().find('.savesend .button').val('Use This Image');}, 2000);
+ tb_show('Select File', 'media-upload.php?post_id=0&type=file&TB_iframe=true');
+ return false;
+ });
+
+ window.tb_remove = function() {
+ uploadparent = 0;
+ old_tb_remove();
+ }
+
+ window.send_to_editor = function(html) {
+ if(uploadparent){
+ imgurl = jQuery('img',html).attr('src');
+ uploadparent.find('.slideimages').attr('value', imgurl);
+ uploadparent.find('.imagebox').attr('src', imgurl);
+ tb_remove();
+ } else {
+ old_send_to_editor();
+ }
+ }
+
+
+// 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() {
+ 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;
+}
\ No newline at end of file
diff --git a/themes/mantra/admin/main.php b/themes/mantra/admin/main.php
new file mode 100644
index 0000000..379303e
--- /dev/null
+++ b/themes/mantra/admin/main.php
@@ -0,0 +1,478 @@
+ $value) {
+ ${"$key"} = $value ;
+}
+
+
+// Hooks/Filters
+add_action('admin_init', 'mantra_init_fn' );
+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' );
+ wp_register_style( 'jquery-ui-style',get_template_directory_uri() . '/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css' );
+ 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 alreay 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') );
+ wp_enqueue_script('cryout_accordion');
+ }
+// For the WP uploader
+ 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' );
+ wp_enqueue_script('cryout-admin-js');
+}
+
+// The settings sectoions. 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', __FILE__);
+ add_settings_section('header_section', __('Header Settings','mantra'), 'cryout_section_header_fn', __FILE__);
+ add_settings_section('presentation_section', __('Presentation Page','mantra'), 'cryout_section_presentation_fn', __FILE__);
+ add_settings_section('text_section', __('Text Settings','mantra'), 'cryout_section_text_fn', __FILE__);
+ add_settings_section('appereance_section',__('Color Settings','mantra') , 'cryout_section_appereance_fn', __FILE__);
+ add_settings_section('graphics_section', __('Graphics Settings','mantra') , 'cryout_section_graphics_fn', __FILE__);
+ add_settings_section('post_section', __('Post Information Settings','mantra') , 'cryout_section_post_fn', __FILE__);
+ add_settings_section('excerpt_section', __('Post Excerpt Settings','mantra') , 'cryout_section_excerpt_fn', __FILE__);
+ add_settings_section('featured_section', __('Featured Image Settings','mantra') , 'cryout_section_featured_fn', __FILE__);
+ add_settings_section('socials_section', __('Social Media Settings','mantra') , 'cryout_section_social_fn', __FILE__);
+ add_settings_section('misc_section', __('Miscellaneous Settings','mantra') , 'cryout_section_misc_fn', __FILE__);
+
+/*** layout ***/
+ add_settings_field('mantra_side', __('Main Layout','mantra') , 'cryout_setting_side_fn', __FILE__, 'layout_section');
+ add_settings_field('mantra_sidewidth', __('Content / Sidebar Width','mantra') , 'cryout_setting_sidewidth_fn', __FILE__, 'layout_section');
+ add_settings_field('mantra_mobile', __('Responsiveness','mantra') , 'cryout_setting_mobile_fn', __FILE__, 'layout_section');
+/*** presentation ***/
+
+ add_settings_field('mantra_frontpage', __('Enable Presentation Page','mantra') , 'cryout_setting_frontpage_fn', __FILE__, 'presentation_section');
+ add_settings_field('mantra_frontposts', __('Show Posts on Presentation Page','mantra') , 'cryout_setting_frontposts_fn', __FILE__, 'presentation_section');
+ add_settings_field('mantra_frontslider', __('Slider Settings','mantra') , 'cryout_setting_frontslider_fn', __FILE__, 'presentation_section');
+ add_settings_field('mantra_frontslider2', __('Slides','mantra') , 'cryout_setting_frontslider2_fn', __FILE__, 'presentation_section');
+ add_settings_field('mantra_frontcolumns', __('Presentation Page Columns','mantra') , 'cryout_setting_frontcolumns_fn', __FILE__, 'presentation_section');
+ add_settings_field('mantra_fronttext', __('Extras','mantra') , 'cryout_setting_fronttext_fn', __FILE__, 'presentation_section');
+
+/*** header ***/
+ add_settings_field('mantra_hheight', __('Header Height','mantra') , 'cryout_setting_hheight_fn', __FILE__, 'header_section');
+ add_settings_field('mantra_himage', __('Header Image','mantra') , 'cryout_setting_himage_fn', __FILE__, 'header_section');
+ add_settings_field('mantra_siteheader', __('Site Header','mantra') , 'cryout_setting_siteheader_fn', __FILE__, 'header_section');
+ add_settings_field('mantra_logoupload', __('Custom Logo Upload','mantra') , 'cryout_setting_logoupload_fn', __FILE__, 'header_section');
+ add_settings_field('mantra_headermargin', __('Header Spacing','mantra') , 'cryout_setting_headermargin_fn', __FILE__, 'header_section');
+ add_settings_field('mantra_menurounded', __('Rounded Menu Corners','mantra') , 'cryout_setting_menurounded_fn', __FILE__, 'header_section');
+ add_settings_field('mantra_favicon', __('FavIcon Upload','mantra') , 'cryout_setting_favicon_fn', __FILE__, 'header_section');
+/*** text ***/
+ add_settings_field('mantra_fontfamily', __('General Font','mantra') , 'cryout_setting_fontfamily_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_fontsize', __('General Font Size','mantra') , 'cryout_setting_fontsize_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_fonttitle', __('Post Title Font ','mantra') , 'cryout_setting_fonttitle_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_headfontsize', __('Post Title Font Size','mantra') , 'cryout_setting_headfontsize_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_fontside', __('Sidebar Font','mantra') , 'cryout_setting_fontside_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_sidefontsize', __('SideBar Font Size','mantra') , 'cryout_setting_sidefontsize_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_fontsubheader', __('Headings Font','mantra') , 'cryout_setting_fontsubheader_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_textalign', __('Force Text Align','mantra') , 'cryout_setting_textalign_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_parmargin', __('Paragraph spacing','mantra') , 'cryout_setting_parmargin_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_parindent', __('Paragraph indent','mantra') , 'cryout_setting_parindent_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_headerindent', __('Header indent','mantra') , 'cryout_setting_headerindent_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_lineheight', __('Line Height','mantra') , 'cryout_setting_lineheight_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_wordspace', __('Word spacing','mantra') , 'cryout_setting_wordspace_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_letterspace', __('Letter spacing','mantra') , 'cryout_setting_letterspace_fn', __FILE__, 'text_section');
+ add_settings_field('mantra_textshadow', __('Text shadow','mantra') , 'cryout_setting_textshadow_fn', __FILE__, 'text_section');
+/*** appereance ***/
+ add_settings_field('mantra_sitebackground', __('Background Image','mantra') , 'cryout_setting_sitebackground_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_backcolor', __('Background Color','mantra') , 'cryout_setting_backcolor_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_headercolor', __('Header (Banner and Menu) Background Color','mantra') , 'cryout_setting_headercolor_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_contentbg', __('Content Background Color','mantra') , 'cryout_setting_contentbg_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_menubg', __('Menu Items Background Color','mantra') , 'cryout_setting_menubg_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_s1bg', __('First Sidebar Background Color','mantra') , 'cryout_setting_first_sidebar_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_s2bg', __('Second Sidebar Background Color','mantra') , 'cryout_setting_second_sidebar_fn', __FILE__, 'appereance_section');
+
+ add_settings_field('mantra_titlecolor', __('Site Title Color','mantra') , 'cryout_setting_titlecolor_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_descriptioncolor', __('Site Description Color','mantra') , 'cryout_setting_descriptioncolor_fn', __FILE__, 'appereance_section');
+
+ add_settings_field('mantra_contentcolor', __('Content Text Color','mantra') , 'cryout_setting_contentcolor_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_linkscolor', __('Links Color','mantra') , 'cryout_setting_linkscolor_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_hovercolor', __('Links Hover Color','mantra') , 'cryout_setting_hovercolor_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_headtextcolor',__( 'Post Title Color','mantra') , 'cryout_setting_headtextcolor_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_headtexthover', __('Post Title Hover Color','mantra') , 'cryout_setting_headtexthover_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_sideheadbackcolor', __('Sidebar Header Background Color','mantra') , 'cryout_setting_sideheadbackcolor_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_sideheadtextcolor', __('Sidebar Header Text Color','mantra') , 'cryout_setting_sideheadtextcolor_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_prefootercolor', __('Footer Widget Background Color','mantra') , 'cryout_setting_prefootercolor_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_footercolor', __('Footer Background Color','mantra') , 'cryout_setting_footercolor_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_footerheader', __('Footer Widget Header Text Color','mantra') , 'cryout_setting_footerheader_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_footertext', __('Footer Widget Link Color','mantra') , 'cryout_setting_footertext_fn', __FILE__, 'appereance_section');
+ add_settings_field('mantra_footerhover', __('Footer Widget Hover Color','mantra') , 'cryout_setting_footerhover_fn', __FILE__, 'appereance_section');
+/*** graphics ***/
+ add_settings_field('mantra_breadcrumbs', __('Breadcrumbs','mantra') , 'cryout_setting_breadcrumbs_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_pagination', __('Pagination','mantra') , 'cryout_setting_pagination_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_menualign', __('Main Menu Alignment','mantra') , 'cryout_setting_menualign_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_image', __('Post Images Border','mantra') , 'cryout_setting_image_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_caption', __('Caption Border','mantra') , 'cryout_setting_caption_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_pin', __('Caption Pin','mantra') , 'cryout_setting_pin_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_sidebullet', __('Sidebar Menu Bullets','mantra') , 'cryout_setting_sidebullet_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_metaback', __('Meta Area Background','mantra') , 'cryout_setting_metaback_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_postseparator', __('Post Separator','mantra') , 'cryout_setting_postseparator_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_contentlist', __('Content List Bullets','mantra') , 'cryout_setting_contentlist_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_pagetitle', __('Page Titles','mantra') , 'cryout_setting_pagetitle_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_categetitle', __('Category Page Titles','mantra') , 'cryout_setting_categtitle_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_tables', __('Hide Tables','mantra') , 'cryout_setting_tables_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_backtop', __('Back to Top button','mantra') , 'cryout_setting_backtop_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_comtext', __('Text Under Comments','mantra') , 'cryout_setting_comtext_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_comclosed', __('Comments are closed text','mantra') , 'cryout_setting_comclosed_fn', __FILE__, 'graphics_section');
+ add_settings_field('mantra_comoff', __('Comments off','mantra') , 'cryout_setting_comoff_fn', __FILE__, 'graphics_section');
+/*** post metas***/
+ add_settings_field('mantra_postcomlink', __('Post Comments Link','mantra') , 'cryout_setting_postcomlink_fn', __FILE__, 'post_section');
+ add_settings_field('mantra_postdate', __('Post Date','mantra') , 'cryout_setting_postdate_fn', __FILE__, 'post_section');
+ add_settings_field('mantra_posttime', __('Post Time','mantra') , 'cryout_setting_posttime_fn', __FILE__, 'post_section');
+ add_settings_field('mantra_postauthor', __('Post Author','mantra') , 'cryout_setting_postauthor_fn', __FILE__, 'post_section');
+ add_settings_field('mantra_postcateg', __('Post Category','mantra') , 'cryout_setting_postcateg_fn', __FILE__, 'post_section');
+ add_settings_field('mantra_postmetas', __('Meta Bar','mantra') , 'cryout_setting_postmetas_fn', __FILE__, 'post_section');
+ add_settings_field('mantra_posttag', __('Post Tags','mantra') , 'cryout_setting_posttag_fn', __FILE__, 'post_section');
+ add_settings_field('mantra_postbook', __('Post Permalink','mantra') , 'cryout_setting_postbook_fn', __FILE__, 'post_section');
+/*** post exceprts***/
+ add_settings_field('mantra_excerpthome', __('Post Excerpts on Home Page','mantra') , 'cryout_setting_excerpthome_fn', __FILE__, 'excerpt_section');
+ add_settings_field('mantra_excerptsticky', __('Affect Sticky Posts','mantra') , 'cryout_setting_excerptsticky_fn', __FILE__, 'excerpt_section');
+ add_settings_field('mantra_excerptarchive', __('Post Excerpts on Archive and Category Pages','mantra') , 'cryout_setting_excerptarchive_fn', __FILE__, 'excerpt_section');
+ add_settings_field('mantra_excerptwords', __('Number of Words for Post Excerpts ','mantra') , 'cryout_setting_excerptwords_fn', __FILE__, 'excerpt_section');
+ add_settings_field('mantra_magazinelayout', __('Magazine Layout','mantra') , 'cryout_setting_magazinelayout_fn', __FILE__, 'excerpt_section');
+ add_settings_field('mantra_excerptdots', __('Excerpt suffix','mantra') , 'cryout_setting_excerptdots_fn', __FILE__, 'excerpt_section');
+ add_settings_field('mantra_excerptcont', __('Continue reading link text ','mantra') , 'cryout_setting_excerptcont_fn', __FILE__, 'excerpt_section');
+ add_settings_field('mantra_excerpttags', __('HTML tags in Excerpts','mantra') , 'cryout_setting_excerpttags_fn', __FILE__, 'excerpt_section');
+/*** featured ***/
+ add_settings_field('mantra_fpost', __('Featured Images as POST Thumbnails ','mantra') , 'cryout_setting_fpost_fn', __FILE__, 'featured_section');
+ add_settings_field('mantra_fauto', __('Auto Select Images From Posts ','mantra') , 'cryout_setting_fauto_fn', __FILE__, 'featured_section');
+ add_settings_field('mantra_falign', __('Thumbnails Alignment ','mantra') , 'cryout_setting_falign_fn', __FILE__, 'featured_section');
+ add_settings_field('mantra_fsize', __('Thumbnails Size ','mantra') , 'cryout_setting_fsize_fn', __FILE__, 'featured_section');
+ add_settings_field('mantra_fheader', __('Featured Images as HEADER Images ','mantra') , 'cryout_setting_fheader_fn', __FILE__, 'featured_section');
+/*** socials ***/
+ add_settings_field('mantra_socials1', __('Link nr. 1','mantra') , 'cryout_setting_socials1_fn', __FILE__, 'socials_section');
+ add_settings_field('mantra_socials2', __('Link nr. 2','mantra') , 'cryout_setting_socials2_fn', __FILE__, 'socials_section');
+ add_settings_field('mantra_socials3', __('Link nr. 3','mantra') , 'cryout_setting_socials3_fn', __FILE__, 'socials_section');
+ add_settings_field('mantra_socials4', __('Link nr. 4','mantra') , 'cryout_setting_socials4_fn', __FILE__, 'socials_section');
+ add_settings_field('mantra_socials5', __('Link nr. 5','mantra') , 'cryout_setting_socials5_fn', __FILE__, 'socials_section');
+ add_settings_field('mantra_socialshow', __('Socials display','mantra') , 'cryout_setting_socialsdisplay_fn', __FILE__, 'socials_section');
+/*** misc ***/
+ add_settings_field('mantra_seo', __('SEO Settings','mantra') , 'cryout_setting_seo_fn', __FILE__, 'misc_section');
+ add_settings_field('mantra_copyright', __('Custom Footer Text','mantra') , 'cryout_setting_copyright_fn', __FILE__, 'misc_section');
+ add_settings_field('mantra_customcss', __('Custom CSS','mantra') , 'cryout_setting_customcss_fn', __FILE__, 'misc_section');
+ add_settings_field('mantra_customjs', __('Custom JavaScript','mantra') , 'cryout_setting_customjs_fn', __FILE__, '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') );
+ }?>
+
+
+
+
+
+
+
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 Mantra Settings page cannot function without jQuery. You need to fix this issue before you can configure Mantra.
+
";
+ echo _e('Mantra settings updated successfully.','mantra');
+ echo "
";
+} ?>
+
+
+
+
+
+ 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...
"; ?>
+
+
+
+
+
+
+
+
+
+
+
+
+ get_item_quantity( 10 );
+ $news_items = $mantra_news->get_items( 0, $maxitems );
+ }
+ ?>
+
+ ' . __( 'No news items.', 'mantra' ) . ''; else :
+ foreach( $news_items as $news_item ) : ?>
+
+
+ get_date(' j F Y, H:i'); ?>
+ get_description() ),40,'...') ; ?>
+ Read more »
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/mantra/admin/sanitize.php b/themes/mantra/admin/sanitize.php
new file mode 100644
index 0000000..30ed0b6
--- /dev/null
+++ b/themes/mantra/admin/sanitize.php
@@ -0,0 +1,237 @@
+=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']; }
+
+
+ $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;
+
+ }
+
+ $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_seo_home_desc'] = wp_kses_post(trim($input['mantra_seo_home_desc']));
+
+ $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= "http://fonts.googleapis.com/css?family=".$mantra_googlefont2;
+ }
+ if($input['mantra_googlefonttitle']) {
+ $mantra_googlefonttitle2 = $input['mantra_googlefonttitle'];
+ $mantra_googlefonttitle2= preg_replace( '/\s+/', '+', $mantra_googlefonttitle2 );
+ $mantra_googlefonttitle2= "http://fonts.googleapis.com/css?family=".$mantra_googlefonttitle2;
+ }
+ if($input['mantra_googlefontside']) {
+ $mantra_googlefontside2 = $input['mantra_googlefontside'];
+ $mantra_googlefontside2= preg_replace( '/\s+/', '+', $mantra_googlefontside2 );
+ $mantra_googlefontside2= "http://fonts.googleapis.com/css?family=".$mantra_googlefontside2;
+ }
+ if($input['mantra_googlefontsubheader']) {
+ $mantra_googlefontsubheader2 = $input['mantra_googlefontsubheader'];
+ $mantra_googlefontsubheader2= preg_replace( '/\s+/', '+', $mantra_googlefontsubheader2 );
+ $mantra_googlefontsubheader2= "http://fonts.googleapis.com/css?family=".$mantra_googlefontsubheader2;
+ }
+
+ $input['mantra_googlefont2'] = $mantra_googlefont2;
+ $input['mantra_googlefonttitle2'] = $mantra_googlefonttitle2;
+ $input['mantra_googlefontside2'] = $mantra_googlefontside2;
+ $input['mantra_googlefontsubheader2'] = $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
new file mode 100644
index 0000000..6d9d0fe
--- /dev/null
+++ b/themes/mantra/admin/settings.php
@@ -0,0 +1,2105 @@
+".__("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 "";
+ $checkedClass = ($mantra_options['mantra_hcontain']=='1') ? ' checkedClass' : '';
+ 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")." ";
+
+}
+
+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: ";
+ 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')." ";
+ 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')." ";
+} // 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 "";
+}
+
+
+////////////////////////////////
+/// 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")."
";
+}
+function cryout_setting_seo_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 Mantra's Search Engine Optimization. This is enabled by default and should only be disabled if you are using a SEO plugin.","mantra")."
";
+ echo " All title tags are handled automatically by Mantra. ";
+
+ echo "";
+ echo " Homepage Meta Description ";
+ echo "";
+ echo " This is unique and you should fill this in. Describe your site the best you can and try not to go over 160 characters. ";
+ echo "
";
+
+ echo "";
+ echo " Meta Descriptions for all other pages: ";
+ $moreitems = array ("Auto" , "Manual");
+ $moreitemsare = array( __("Auto","mantra"), __("Manual","mantra"));
+ echo "";
+ foreach($moreitems as $id=>$item) {
+ echo "$moreitemsare[$id] ";
+ }
+ echo " ";
+ echo " Auto - Mantra will automatically add post expcerpts to 'page' and 'post' meta descriptions.
+ Manual - you will enable a new custom field in your post/page admin section where you can type the exact description you want for every post and page. ";
+ echo "
";
+
+ echo "For category pages, the actual category descriptions will be used. Go to Posts > Categories and you can fill in a description for every category you have. ";
+
+ echo "";
+ echo "Post Author ";
+ $authors=wp_list_authors (array("echo"=>false,"html"=> false));
+ $authors_array = explode ("," , $authors);
+ array_unshift($authors_array,"Do not use");
+ echo "";
+ foreach($authors_array as $item) {
+ echo "$item ";
+}
+ echo " ";
+
+
+ echo " If you want to show an author in the meta tags. ";
+ echo "
";
+
+}
+?>
\ No newline at end of file
diff --git a/themes/mantra/archive.php b/themes/mantra/archive.php
new file mode 100644
index 0000000..bd14c3e
--- /dev/null
+++ b/themes/mantra/archive.php
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/themes/mantra/attachment.php b/themes/mantra/attachment.php
new file mode 100644
index 0000000..865fc40
--- /dev/null
+++ b/themes/mantra/attachment.php
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+ 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
new file mode 100644
index 0000000..393a429
--- /dev/null
+++ b/themes/mantra/author.php
@@ -0,0 +1,92 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/themes/mantra/category.php b/themes/mantra/category.php
new file mode 100644
index 0000000..efe03b6
--- /dev/null
+++ b/themes/mantra/category.php
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
' );
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/mantra/comments.php b/themes/mantra/comments.php
new file mode 100644
index 0000000..4459314
--- /dev/null
+++ b/themes/mantra/comments.php
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/mantra/content-aside.php b/themes/mantra/content-aside.php
new file mode 100644
index 0000000..22ecf32
--- /dev/null
+++ b/themes/mantra/content-aside.php
@@ -0,0 +1,51 @@
+
+
+ >
+
+
+
+
+
+
+
+ →', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
diff --git a/themes/mantra/content-chat.php b/themes/mantra/content-chat.php
new file mode 100644
index 0000000..5b629ab
--- /dev/null
+++ b/themes/mantra/content-chat.php
@@ -0,0 +1,52 @@
+
+
+ >
+
+
+
+
+
+
+
+ →', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
+ ', '' ); ?>
+
+
diff --git a/themes/mantra/content-frontpage.php b/themes/mantra/content-frontpage.php
new file mode 100644
index 0000000..8360afa
--- /dev/null
+++ b/themes/mantra/content-frontpage.php
@@ -0,0 +1,36 @@
+
+
+
+
+
+ $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
new file mode 100644
index 0000000..0404679
--- /dev/null
+++ b/themes/mantra/content-gallery.php
@@ -0,0 +1,78 @@
+ $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
new file mode 100644
index 0000000..86bf5ca
--- /dev/null
+++ b/themes/mantra/content-image.php
@@ -0,0 +1,45 @@
+
+ >
+
+
+
+ →', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
diff --git a/themes/mantra/content-link.php b/themes/mantra/content-link.php
new file mode 100644
index 0000000..4b309f2
--- /dev/null
+++ b/themes/mantra/content-link.php
@@ -0,0 +1,52 @@
+
+
+ >
+
+
+
+
+
+
+
+ →', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
+ ', '' ); ?>
+
+
diff --git a/themes/mantra/content-page.php b/themes/mantra/content-page.php
new file mode 100644
index 0000000..85eaaae
--- /dev/null
+++ b/themes/mantra/content-page.php
@@ -0,0 +1,30 @@
+
+
+ >
+
+
+
+
+
+
+
+
+ '
' . __( 'Pages:', 'mantra' ), 'after' => '
' ) ); ?>
+ ', '' ); ?>
+
+
+
+
+
+
+
+
diff --git a/themes/mantra/content-quote.php b/themes/mantra/content-quote.php
new file mode 100644
index 0000000..102f291
--- /dev/null
+++ b/themes/mantra/content-quote.php
@@ -0,0 +1,49 @@
+
+
+ >
+
+
+
+
+
+
+
+ →', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
diff --git a/themes/mantra/content-status.php b/themes/mantra/content-status.php
new file mode 100644
index 0000000..45ee3f0
--- /dev/null
+++ b/themes/mantra/content-status.php
@@ -0,0 +1,51 @@
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
→', 'mantra' ) ); ?>
+ '
' . __( 'Pages:', 'mantra' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
diff --git a/themes/mantra/content.php b/themes/mantra/content.php
new file mode 100644
index 0000000..b23e5ef
--- /dev/null
+++ b/themes/mantra/content.php
@@ -0,0 +1,83 @@
+ $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
new file mode 100644
index 0000000..7dd138e
--- /dev/null
+++ b/themes/mantra/editor-style-rtl.css
@@ -0,0 +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;
+}
\ No newline at end of file
diff --git a/themes/mantra/editor-style.css b/themes/mantra/editor-style.css
new file mode 100644
index 0000000..3277730
--- /dev/null
+++ b/themes/mantra/editor-style.css
@@ -0,0 +1,289 @@
+/*
+Theme Name: Mantra
+*/
+/*
+Used to style the TinyMCE editor.
+*/
+html .mceContentBody {
+ max-width:640px;
+}
+* {
+ 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;
+ max-width: 640px;
+}
+.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
new file mode 100644
index 0000000..90b877c
--- /dev/null
+++ b/themes/mantra/footer.php
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+