summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-03-10 19:10:16 -0500
committerAnthony G. Basile <blueness@gentoo.org>2018-03-10 19:10:23 -0500
commitf0ba08ced62b6fb3d1d5c7f1c1dd18b9b880a515 (patch)
tree4d1b83b544d48f04f78a6a1f52c903c32e2bd9dc
parentUpdate akismet 4.0.2 (diff)
downloadblogs-gentoo-f0ba08ced62b6fb3d1d5c7f1c1dd18b9b880a515.tar.gz
blogs-gentoo-f0ba08ced62b6fb3d1d5c7f1c1dd18b9b880a515.tar.bz2
blogs-gentoo-f0ba08ced62b6fb3d1d5c7f1c1dd18b9b880a515.zip
Update mantra 3.0.4
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--themes/mantra/404.php6
-rw-r--r--themes/mantra/admin/admin-functions.php7
-rw-r--r--themes/mantra/admin/css/admin.css894
-rw-r--r--themes/mantra/admin/custom-styles.php299
-rw-r--r--themes/mantra/admin/defaults.php415
-rw-r--r--themes/mantra/admin/images/coffee.pngbin7120 -> 4623 bytes
-rw-r--r--themes/mantra/admin/images/icon-facebook.pngbin0 -> 757 bytes
-rw-r--r--themes/mantra/admin/images/icon-googleplus.pngbin0 -> 1230 bytes
-rw-r--r--themes/mantra/admin/images/icon-twitter.pngbin0 -> 1193 bytes
-rw-r--r--themes/mantra/admin/js/admin.js48
-rw-r--r--themes/mantra/admin/main.php97
-rw-r--r--themes/mantra/admin/sanitize.php172
-rw-r--r--themes/mantra/admin/settings.php1909
-rw-r--r--themes/mantra/archive.php12
-rw-r--r--themes/mantra/attachment.php13
-rw-r--r--themes/mantra/author.php11
-rw-r--r--themes/mantra/category.php9
-rw-r--r--themes/mantra/content/content-aside.php (renamed from themes/mantra/content-aside.php)0
-rw-r--r--themes/mantra/content/content-chat.php (renamed from themes/mantra/content-chat.php)0
-rw-r--r--themes/mantra/content/content-frontpage.php (renamed from themes/mantra/content-frontpage.php)16
-rw-r--r--themes/mantra/content/content-gallery.php (renamed from themes/mantra/content-gallery.php)0
-rw-r--r--themes/mantra/content/content-image.php (renamed from themes/mantra/content-image.php)0
-rw-r--r--themes/mantra/content/content-link.php (renamed from themes/mantra/content-link.php)0
-rw-r--r--themes/mantra/content/content-page.php (renamed from themes/mantra/content-page.php)0
-rw-r--r--themes/mantra/content/content-quote.php (renamed from themes/mantra/content-quote.php)0
-rw-r--r--themes/mantra/content/content-status.php (renamed from themes/mantra/content-status.php)0
-rw-r--r--themes/mantra/content/content.php (renamed from themes/mantra/content.php)0
-rw-r--r--themes/mantra/functions.php4
-rw-r--r--themes/mantra/header.php8
-rw-r--r--themes/mantra/images/slider/mantra-column.jpgbin6975 -> 0 bytes
-rw-r--r--themes/mantra/images/slider/mantra-slide1.jpgbin90735 -> 0 bytes
-rw-r--r--themes/mantra/images/slider/mantra-slide2.jpgbin39538 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Amazon.pngbin5105 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Dailymotion.pngbin5976 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Delicious.pngbin1864 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/DeviantArt.pngbin1725 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Digg.pngbin2388 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Etsy.pngbin2494 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Facebook.pngbin2174 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Flickr.pngbin2277 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/GoodReads.pngbin2667 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Google.pngbin2702 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/GooglePlus.pngbin2606 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/IMDb.pngbin2783 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Instagram.pngbin3522 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/LastFM.pngbin2466 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/LinkedIn.pngbin2444 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Mail.pngbin1812 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/MySpace.pngbin2658 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Picasa.pngbin2426 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Pinterest.pngbin1952 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/RSS.pngbin2987 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Reddit.pngbin2857 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Skype.pngbin2636 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/SoundCloud.pngbin1946 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Steam.pngbin2807 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/StumbleUpon.pngbin2613 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Technorati.pngbin2704 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Tumblr.pngbin1598 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Twitter.pngbin2180 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Vimeo.pngbin1774 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/WordPress.pngbin2677 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/Yahoo.pngbin2332 -> 0 bytes
-rw-r--r--themes/mantra/images/socials/YouTube.pngbin3144 -> 0 bytes
-rw-r--r--themes/mantra/includes/custom-styles.php302
-rw-r--r--themes/mantra/includes/theme-comments.php65
-rw-r--r--themes/mantra/includes/theme-frontpage.php382
-rw-r--r--themes/mantra/includes/theme-functions.php517
-rw-r--r--themes/mantra/includes/theme-hooks.php3
-rw-r--r--themes/mantra/includes/theme-loop.php169
-rw-r--r--themes/mantra/includes/theme-setup.php201
-rw-r--r--themes/mantra/includes/theme-styles.php176
-rw-r--r--themes/mantra/index.php17
-rw-r--r--themes/mantra/languages/mantra.pot1347
-rw-r--r--themes/mantra/license.txt281
-rw-r--r--themes/mantra/page.php31
-rw-r--r--themes/mantra/readme.txt166
-rw-r--r--themes/mantra/resources/css/editor-style-rtl.css (renamed from themes/mantra/editor-style-rtl.css)0
-rw-r--r--themes/mantra/resources/css/editor-style.css (renamed from themes/mantra/editor-style.css)0
-rw-r--r--themes/mantra/resources/css/rtl.css528
-rw-r--r--themes/mantra/resources/css/style-mobile.css339
-rw-r--r--themes/mantra/resources/fonts/elusive.eotbin0 -> 24152 bytes
-rw-r--r--themes/mantra/resources/fonts/elusive.svg111
-rw-r--r--themes/mantra/resources/fonts/elusive.ttfbin0 -> 23988 bytes
-rw-r--r--themes/mantra/resources/fonts/elusive.woffbin0 -> 14740 bytes
-rw-r--r--themes/mantra/resources/images/back2top.png (renamed from themes/mantra/images/back2top.png)bin3659 -> 3659 bytes
-rw-r--r--themes/mantra/resources/images/bullet.png (renamed from themes/mantra/images/bullet.png)bin501 -> 501 bytes
-rw-r--r--themes/mantra/resources/images/bullets/arrow_black.png (renamed from themes/mantra/images/bullets/arrow_black.png)bin226 -> 226 bytes
-rw-r--r--themes/mantra/resources/images/bullets/arrow_white.png (renamed from themes/mantra/images/bullets/arrow_white.png)bin283 -> 283 bytes
-rw-r--r--themes/mantra/resources/images/bullets/bullet_dark.png (renamed from themes/mantra/images/bullets/bullet_dark.png)bin304 -> 304 bytes
-rw-r--r--themes/mantra/resources/images/bullets/bullet_gray.png (renamed from themes/mantra/images/bullets/bullet_gray.png)bin304 -> 304 bytes
-rw-r--r--themes/mantra/resources/images/bullets/bullet_light.png (renamed from themes/mantra/images/bullets/bullet_light.png)bin270 -> 270 bytes
-rw-r--r--themes/mantra/resources/images/bullets/mantra_dot2.png (renamed from themes/mantra/images/bullets/mantra_dot2.png)bin181 -> 181 bytes
-rw-r--r--themes/mantra/resources/images/bullets/square_dark.png (renamed from themes/mantra/images/bullets/square_dark.png)bin247 -> 247 bytes
-rw-r--r--themes/mantra/resources/images/bullets/square_white.png (renamed from themes/mantra/images/bullets/square_white.png)bin250 -> 250 bytes
-rw-r--r--themes/mantra/resources/images/bullets/triangle_dark.png (renamed from themes/mantra/images/bullets/triangle_dark.png)bin311 -> 311 bytes
-rw-r--r--themes/mantra/resources/images/bullets/triangle_gray.png (renamed from themes/mantra/images/bullets/triangle_gray.png)bin346 -> 346 bytes
-rw-r--r--themes/mantra/resources/images/bullets/triangle_white.png (renamed from themes/mantra/images/bullets/triangle_white.png)bin271 -> 271 bytes
-rw-r--r--themes/mantra/resources/images/headers/mantra.png (renamed from themes/mantra/images/headers/mantra.png)bin19384 -> 19384 bytes
-rw-r--r--themes/mantra/resources/images/headers/mantra_thumbnail.png (renamed from themes/mantra/images/headers/mantra_thumbnail.png)bin19341 -> 19341 bytes
-rw-r--r--themes/mantra/resources/images/icon-back.png (renamed from themes/mantra/images/icon-back.png)bin242 -> 242 bytes
-rw-r--r--themes/mantra/resources/images/icon-featured.png (renamed from themes/mantra/images/icon-featured.png)bin1395 -> 1395 bytes
-rw-r--r--themes/mantra/resources/images/icon-tooltip.png (renamed from themes/mantra/images/icon-tooltip.png)bin619 -> 619 bytes
-rw-r--r--themes/mantra/resources/images/nivoslider/arrows.png (renamed from themes/mantra/images/nivoslider/arrows.png)bin824 -> 824 bytes
-rw-r--r--themes/mantra/resources/images/nivoslider/bullets.png (renamed from themes/mantra/images/nivoslider/bullets.png)bin1281 -> 1281 bytes
-rw-r--r--themes/mantra/resources/images/nivoslider/loading.gif (renamed from themes/mantra/images/nivoslider/loading.gif)bin1737 -> 1737 bytes
-rw-r--r--themes/mantra/resources/images/pins/Pin1.png (renamed from themes/mantra/images/pins/Pin1.png)bin1114 -> 1114 bytes
-rw-r--r--themes/mantra/resources/images/pins/Pin2.png (renamed from themes/mantra/images/pins/Pin2.png)bin1323 -> 1323 bytes
-rw-r--r--themes/mantra/resources/images/pins/Pin3.png (renamed from themes/mantra/images/pins/Pin3.png)bin1322 -> 1322 bytes
-rw-r--r--themes/mantra/resources/images/pins/Pin4.png (renamed from themes/mantra/images/pins/Pin4.png)bin1146 -> 1146 bytes
-rw-r--r--themes/mantra/resources/images/pins/Pin5.png (renamed from themes/mantra/images/pins/Pin5.png)bin1156 -> 1156 bytes
-rw-r--r--themes/mantra/resources/images/pins/mantra_dot.png (renamed from themes/mantra/images/pins/mantra_dot.png)bin181 -> 181 bytes
-rw-r--r--themes/mantra/resources/images/post-formats/brackets.png (renamed from themes/mantra/images/post-formats/brackets.png)bin1315 -> 1315 bytes
-rw-r--r--themes/mantra/resources/images/post-formats/brackets2.png (renamed from themes/mantra/images/post-formats/brackets2.png)bin4552 -> 4552 bytes
-rw-r--r--themes/mantra/resources/images/post-formats/bubble.png (renamed from themes/mantra/images/post-formats/bubble.png)bin932 -> 932 bytes
-rw-r--r--themes/mantra/resources/images/post-formats/link.png (renamed from themes/mantra/images/post-formats/link.png)bin1606 -> 1606 bytes
-rw-r--r--themes/mantra/resources/images/post-formats/picture.png (renamed from themes/mantra/images/post-formats/picture.png)bin874 -> 874 bytes
-rw-r--r--themes/mantra/resources/images/post-formats/quotes.png (renamed from themes/mantra/images/post-formats/quotes.png)bin691 -> 691 bytes
-rw-r--r--themes/mantra/resources/images/slider/mantra-column-1.jpgbin0 -> 26107 bytes
-rw-r--r--themes/mantra/resources/images/slider/mantra-column-2.jpgbin0 -> 34733 bytes
-rw-r--r--themes/mantra/resources/images/slider/mantra-column-3.jpgbin0 -> 25492 bytes
-rw-r--r--themes/mantra/resources/images/slider/mantra-slider-1.jpgbin0 -> 125928 bytes
-rw-r--r--themes/mantra/resources/images/slider/mantra-slider-2.jpgbin0 -> 257554 bytes
-rw-r--r--themes/mantra/resources/images/slider/mantra-slider-3.jpgbin0 -> 81487 bytes
-rw-r--r--themes/mantra/resources/images/socials/AIM.pngbin0 -> 1119 bytes
-rw-r--r--themes/mantra/resources/images/socials/AboutMe.pngbin0 -> 722 bytes
-rw-r--r--themes/mantra/resources/images/socials/Amazon.png (renamed from themes/mantra/images/socials/VK.png)bin4366 -> 3866 bytes
-rw-r--r--themes/mantra/resources/images/socials/Contact.pngbin0 -> 840 bytes
-rw-r--r--themes/mantra/resources/images/socials/Delicious.pngbin0 -> 708 bytes
-rw-r--r--themes/mantra/resources/images/socials/DeviantArt.pngbin0 -> 1020 bytes
-rw-r--r--themes/mantra/resources/images/socials/Digg.pngbin0 -> 954 bytes
-rw-r--r--themes/mantra/resources/images/socials/Discord.png (renamed from themes/mantra/images/socials/Yelp.png)bin5049 -> 3418 bytes
-rw-r--r--themes/mantra/resources/images/socials/Dribbble.pngbin0 -> 1385 bytes
-rw-r--r--themes/mantra/resources/images/socials/Etsy.pngbin0 -> 915 bytes
-rw-r--r--themes/mantra/resources/images/socials/Facebook.pngbin0 -> 714 bytes
-rw-r--r--themes/mantra/resources/images/socials/Flickr.pngbin0 -> 770 bytes
-rw-r--r--themes/mantra/resources/images/socials/FriendFeed.pngbin0 -> 1165 bytes
-rw-r--r--themes/mantra/resources/images/socials/Github.pngbin0 -> 1391 bytes
-rw-r--r--themes/mantra/resources/images/socials/GoodReads.pngbin0 -> 977 bytes
-rw-r--r--themes/mantra/resources/images/socials/GooglePlus.pngbin0 -> 1214 bytes
-rw-r--r--themes/mantra/resources/images/socials/IMDb.pngbin0 -> 751 bytes
-rw-r--r--themes/mantra/resources/images/socials/Instagram.pngbin0 -> 1005 bytes
-rw-r--r--themes/mantra/resources/images/socials/LastFM.pngbin0 -> 1092 bytes
-rw-r--r--themes/mantra/resources/images/socials/LinkedIn.pngbin0 -> 843 bytes
-rw-r--r--themes/mantra/resources/images/socials/Mail.pngbin0 -> 840 bytes
-rw-r--r--themes/mantra/resources/images/socials/MindVox.pngbin0 -> 1031 bytes
-rw-r--r--themes/mantra/resources/images/socials/MySpace.pngbin0 -> 1061 bytes
-rw-r--r--themes/mantra/resources/images/socials/Newsvine.pngbin0 -> 1079 bytes
-rw-r--r--themes/mantra/resources/images/socials/Patreon.pngbin0 -> 3394 bytes
-rw-r--r--themes/mantra/resources/images/socials/PayPal.pngbin0 -> 3417 bytes
-rw-r--r--themes/mantra/resources/images/socials/Phone.pngbin0 -> 889 bytes
-rw-r--r--themes/mantra/resources/images/socials/Picasa.pngbin0 -> 1285 bytes
-rw-r--r--themes/mantra/resources/images/socials/Pinterest.pngbin0 -> 1090 bytes
-rw-r--r--themes/mantra/resources/images/socials/RSS.pngbin0 -> 1161 bytes
-rw-r--r--themes/mantra/resources/images/socials/Reddit.pngbin0 -> 1281 bytes
-rw-r--r--themes/mantra/resources/images/socials/ShareThis.pngbin0 -> 1025 bytes
-rw-r--r--themes/mantra/resources/images/socials/Skype.pngbin0 -> 1169 bytes
-rw-r--r--themes/mantra/resources/images/socials/SoundCloud.pngbin0 -> 724 bytes
-rw-r--r--themes/mantra/resources/images/socials/Steam-old.pngbin0 -> 3404 bytes
-rw-r--r--themes/mantra/resources/images/socials/Steam-round.pngbin0 -> 3877 bytes
-rw-r--r--themes/mantra/resources/images/socials/Steam.pngbin0 -> 3877 bytes
-rw-r--r--themes/mantra/resources/images/socials/StumbleUpon.pngbin0 -> 1287 bytes
-rw-r--r--themes/mantra/resources/images/socials/Technorati.pngbin0 -> 1100 bytes
-rw-r--r--themes/mantra/resources/images/socials/TripAdvisor.pngbin0 -> 1260 bytes
-rw-r--r--themes/mantra/resources/images/socials/Tumblr.pngbin0 -> 875 bytes
-rw-r--r--themes/mantra/resources/images/socials/Twitch.png (renamed from themes/mantra/images/socials/Twitch.png)bin4801 -> 3547 bytes
-rw-r--r--themes/mantra/resources/images/socials/Twitter-old.pngbin0 -> 863 bytes
-rw-r--r--themes/mantra/resources/images/socials/Twitter.pngbin0 -> 3360 bytes
-rw-r--r--themes/mantra/resources/images/socials/VK.pngbin0 -> 1109 bytes
-rw-r--r--themes/mantra/resources/images/socials/Vimeo.pngbin0 -> 1025 bytes
-rw-r--r--themes/mantra/resources/images/socials/WordPress.pngbin0 -> 1338 bytes
-rw-r--r--themes/mantra/resources/images/socials/Xing.pngbin0 -> 983 bytes
-rw-r--r--themes/mantra/resources/images/socials/Yahoo.pngbin0 -> 842 bytes
-rw-r--r--themes/mantra/resources/images/socials/Yelp.png (renamed from themes/mantra/images/socials/Xing.png)bin4834 -> 3904 bytes
-rw-r--r--themes/mantra/resources/images/socials/YouTube-old.pngbin0 -> 1151 bytes
-rw-r--r--themes/mantra/resources/images/socials/YouTube.pngbin0 -> 3162 bytes
-rw-r--r--themes/mantra/resources/js/PIE/PIE.htc (renamed from themes/mantra/js/PIE/PIE.htc)0
-rw-r--r--themes/mantra/resources/js/PIE/PIE.js (renamed from themes/mantra/js/PIE/PIE.js)0
-rw-r--r--themes/mantra/resources/js/PIE/PIE.php (renamed from themes/mantra/js/PIE/PIE.php)0
-rw-r--r--themes/mantra/resources/js/PIE/PIE_uncompressed.htc (renamed from themes/mantra/js/PIE/PIE_uncompressed.htc)0
-rw-r--r--themes/mantra/resources/js/PIE/PIE_uncompressed.js (renamed from themes/mantra/js/PIE/PIE_uncompressed.js)0
-rw-r--r--themes/mantra/resources/js/frontend.js (renamed from themes/mantra/js/frontend.js)158
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png)bin260 -> 260 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png)bin251 -> 251 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png)bin178 -> 178 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png)bin104 -> 104 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png)bin125 -> 125 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png)bin105 -> 105 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png)bin3762 -> 3762 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png)bin90 -> 90 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png)bin129 -> 129 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_222222_256x240.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_222222_256x240.png)bin4369 -> 4369 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_228ef1_256x240.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_228ef1_256x240.png)bin4369 -> 4369 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png)bin4369 -> 4369 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png)bin4369 -> 4369 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_ffffff_256x240.png (renamed from themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_ffffff_256x240.png)bin4369 -> 4369 bytes
-rw-r--r--themes/mantra/resources/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css (renamed from themes/mantra/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css)0
-rw-r--r--themes/mantra/resources/js/nivo-slider.js (renamed from themes/mantra/js/nivo-slider.js)2
-rw-r--r--themes/mantra/rtl.css403
-rw-r--r--themes/mantra/screenshot.pngbin408491 -> 812309 bytes
-rw-r--r--themes/mantra/search.php9
-rw-r--r--themes/mantra/searchform.php17
-rw-r--r--themes/mantra/sidebar-footer.php63
-rw-r--r--themes/mantra/sidebar.php198
-rw-r--r--themes/mantra/single.php45
-rw-r--r--themes/mantra/style-mobile.css194
-rw-r--r--themes/mantra/style.css1275
-rw-r--r--themes/mantra/tag.php11
-rw-r--r--themes/mantra/templates/template-blog.php (renamed from themes/mantra/template-blog.php)6
-rw-r--r--themes/mantra/templates/template-onecolumn.php (renamed from themes/mantra/template-onecolumn.php)0
-rw-r--r--themes/mantra/templates/template-page-with-intro.php (renamed from themes/mantra/template-page-with-intro.php)30
-rw-r--r--themes/mantra/templates/template-threecolumns-center.php (renamed from themes/mantra/template-threecolumns-center.php)14
-rw-r--r--themes/mantra/templates/template-threecolumns-left.php (renamed from themes/mantra/template-threecolumns-left.php)14
-rw-r--r--themes/mantra/templates/template-threecolumns-right.php (renamed from themes/mantra/template-threecolumns-right.php)14
-rw-r--r--themes/mantra/templates/template-twocolumns-left.php (renamed from themes/mantra/template-twocolumns-left.php)10
-rw-r--r--themes/mantra/templates/template-twocolumns-right.php (renamed from themes/mantra/template-twocolumns-right.php)10
216 files changed, 5512 insertions, 5516 deletions
diff --git a/themes/mantra/404.php b/themes/mantra/404.php
index 150ee244..c3d5f5ea 100644
--- a/themes/mantra/404.php
+++ b/themes/mantra/404.php
@@ -22,11 +22,13 @@ get_header(); ?>
</div><!-- #post-0 -->
</div><!-- #content -->
-<?php get_sidebar(); ?>
+
+ <?php get_sidebar(); ?>
+
</div><!-- #container -->
<script type="text/javascript">
// focus on search field after it has loaded
document.getElementById('s') && document.getElementById('s').focus();
</script>
-<?php get_footer(); ?> \ No newline at end of file
+<?php get_footer(); \ No newline at end of file
diff --git a/themes/mantra/admin/admin-functions.php b/themes/mantra/admin/admin-functions.php
index 937504d3..cf55c809 100644
--- a/themes/mantra/admin/admin-functions.php
+++ b/themes/mantra/admin/admin-functions.php
@@ -39,11 +39,8 @@ function mantra_export_options(){
}
if ( $authorised) {
-global $mantra_options;
-/*date_default_timezone_set('UTC');
-$today = date("YmdGis");
-$name = 'mantra-settings'.$today.'.txt';*/
- $name = 'mantra-settings.txt';
+ global $mantra_options;
+ $name = 'mantrasettings-'.preg_replace("/[^a-z0-9-_]/i",'',str_replace("http://","",get_option('siteurl'))).'-'.date('Ymd-His').'.txt';
$data = $mantra_options;
$data = json_encode( $data );
$size = strlen( $data );
diff --git a/themes/mantra/admin/css/admin.css b/themes/mantra/admin/css/admin.css
index 7da46631..4b2ebd4a 100644
--- a/themes/mantra/admin/css/admin.css
+++ b/themes/mantra/admin/css/admin.css
@@ -1,82 +1,104 @@
/* Farbtastic overwrites */
.farbtastic {
- position: absolute !important;
- z-index:2;
-margin-left:50px;
-margin-top:-110px;
-background-color:#F7F7F7;
-border:1px solid #CCC;
+ position: absolute !important;
+ z-index:2;
+ margin-left:50px;
+ margin-top:-110px;
+ background-color:#F7F7F7;
+ border:1px solid #CCC;
}
+
.farbtastic * {
- position: absolute;
- cursor: crosshair;
+ position: absolute;
+ cursor: crosshair;
}
-.farbtastic, .farbtastic .wheel {
- width: 195px;
- height: 195px;
+
+.farbtastic,
+.farbtastic .wheel {
+ width: 195px;
+ height: 195px;
}
-.farbtastic .color, .farbtastic .overlay {
- top: 47px;
- left: 47px;
- width: 101px;
- height: 101px;
+
+.farbtastic .color,
+.farbtastic .overlay {
+ top: 47px;
+ left: 47px;
+ width: 101px;
+ height: 101px;
}
/* end of Farbtastic overwrites */
-.form-table, .form-table td, .form-table th, .form-table td p, .form-wrap label {
-font-size:13px;
+.form-table,
+.form-table td,
+.form-table th,
+.form-table td p,
+.form-wrap label {
+ font-size: 13px;
}
#lefty {
-clear:left;
-float:left;
-width:60%;
-min-width:500px;
-max-width:820px;
-margin-right:1%;
+ display: table-cell;
+ min-width: 720px;
+ padding: 0 15px;
+ width: 720px;
}
#main-options {
-width:100%;
-display:block;
-clear:left;
-/*border:1px solid #DFDFDF;
-background:#F5F5F5;
-border-radius:5px;
--moz-border-radius:5px;
--webkit-border-radius:5px;
-*/
-padding-top:10px;
-font-family: Segoe UI !important;
-font-size: 12px;
-margin-bottom:10px;
+ width:100%;
+ display:block;
+ clear:left;
+ padding-top:10px;
+ font-family: Segoe UI !important;
+ font-size: 12px;
+ margin-bottom:10px;
+}
+#righty {
+ display: table-cell;
+ max-width: 500px;
+ padding-top: 106px;
+ vertical-align: top;
}
- #righty {
-float:left;
-width:39%;
-margin-top:10px;
+@media ( max-width: 1200px ) {
+
+ .cryout-admin #lefty {
+ display: block;
+ }
+
+ .cryout-admin #righty {
+ width: 100%;
+ max-width: 100%;
+ padding: 0 15px;
+ min-width: 720px;
+ }
+
}
-#righty p, #righty span, .form-table small, #righty ul li, #righty h3 {
-font-size: 12px;
-color:#444;
-font-family:Segoe UI;
+
+#slider,
+#priority-support {
+ max-width: 100%;
+ overflow: hidden;
}
.form-table small {
-font-style:italic;
-display:block;
-float:none;
-clear:both;
+ font-style:italic;
+ display:block;
+ float:none;
+ clear:both;
}
.donate, .support {
-width:100%;
+ width:100%;
+}
+
+.postbox.export form {
+ display: inline-block;
+ margin-right: 1em;
}
.postbox .hndle {
@@ -86,539 +108,599 @@ width:100%;
padding: 6px 10px 7px;
}
+.postbox .inside {
+ padding: 10px 20px 10px;
+}
.wrap h2 {
-font-family: Calibri, Arial !important;
-margin-bottom:5px;
+ margin-bottom: 5px;
}
#accordion {
-margin:0px auto;
-font-family:Segoe UI,Calibri, Arial !important;
-display:block;
-float:none;
-border:10px solid #FFF;
--moz-box-sizing:border-box;
--webkit-box-sizing:border-box;
-box-sizing:border-box;
+ margin: 0 auto;
+ font-family: Segoe UI,Calibri, Arial !important;
+ display: block;
+ float: none;
+ border: 10px solid #FFF;
+ box-sizing: border-box;
}
#submitDiv {
-display:block;
-float:none;
-height:30px;
-margin:10px 40px;
-font-family:Segoe UI,Calibri, Arial !important;
+ display: block;
+ float: none;
+ height: 30px;
+ margin: 10px 40px;
+ font-family: Segoe UI,Calibri, Arial !important;
}
#version {
-display:block;
-float:none;
-clear:both;
-padding-top:10px;
-margin-left:20px;
-color:#666;
-}
-
-#accordion h3, #accordion h2 {
-border:none;
-background-image:none;
-background:#F5F5F5;
-margin:0;
-padding:8px;
-clear:both;
-display:block;
-float:none;
-font-size: 17px ;
-padding-left:30px ;
-font-weight:normal;
-text-transform:uppercase;
-color:#555;
-border-top:1px solid #FFF;
-border-bottom:1px solid #E5E5E5;
-line-height: 1.3;
--moz-border-radius:0;
--webkit-border-radius:0;
-border-radius:0;
-transition:background ease .3s;
-}
-
-#accordion h3:hover, #accordion h2:hover {
-background:#FFF;
+ display: block;
+ float: none;
+ clear: both;
+ padding-top: 20px;
+ margin-left: 20px;
+ color: #666;
+}
+
+#accordion h3,
+#accordion h2 {
+ border: none;
+ background-image: none;
+ background: #F5F5F5;
+ margin: 0;
+ padding: 12px;
+ clear: both;
+ display: block;
+ float: none;
+ font-size: 14px ;
+ padding-left: 30px ;
+ font-weight: normal;
+ text-transform: uppercase;
+ color: #555;
+ border-top: 1px solid #FFF;
+ border-bottom: 1px solid #E5E5E5;
+ line-height: 1.3;
+ letter-spacing: 1px;
+ border-radius: 0;
+ -webkit-transition: background ease .3s;
+ transition: background ease .3s;
+}
+
+#accordion h3:hover,
+#accordion h2:hover {
+ background:#FFF;
}
#accordion select option {
-font-size:1.1em;
+ font-size:1.1em;
}
-.form-table th, .form-wrap label {
- color: #444 !important;
-font-size: 15px;
-font-weight:normal;
-text-transform:uppercase;
-background:#F7F7F7;
-border-bottom:1px solid #FFF;
-padding:10px;
+.form-table th,
+.form-wrap label {
+ border-bottom: 1px solid #FFF;
+ padding: 20px 10px;
+ font-size: 14px;
+ letter-spacing: .2px;
+ font-weight: normal;
+ text-transform: uppercase;
+ background: #F7F7F7;
+ color: #444 !important;
}
.form-table tr {
-border-bottom:1px solid #F7F7F7;
+ border-bottom: 1px solid #F7F7F7;
}
.form-table tr:last-child {
-border-bottom:none;
+ border-bottom: none;
}
.form-table td {
-vertical-align:middle;
+ vertical-align: middle;
+ padding: 15px 5px 15px 25px;
}
-input[type="text"] , select {
-border:1px solid #AAA !important;
-border-radius:2px;
--moz-border-radius:2px;
--webkit-border-radius:2px;
+input[type="text"],
+select {
+ padding: 7px 5px;
+ height: auto;
}
-.submit {
-text-align:right;
-margin-right:20px;
+textarea {
+ max-width: 90%;
+ padding: 10px;
}
- #accordion select {
-min-width:120px;
-max-width:200px;
-padding:3px 5px;
+.submit {
+ text-align: right;
+ margin-right: 20px;
}
- #accordion textarea, #mantra_favicon {
-max-width:90%;
+#accordion select {
+ min-width: 120px;
+ max-width: 200px;
+ padding: 7px 5px;
+ height: auto;
}
.googlefonts {
-width:200px;
+ width: 200px;
}
/* Images */
-
-
.images {
-display:inline-block;
+ display:inline-block;
}
#imageOne {
-border:1px solid #DDD !important;
-padding:3px;
- height: auto;
+ border:1px solid #DDD !important;
+ padding:3px;
+ height: auto;
}
-#imageTwo{
+#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;
+ box-shadow: 0 0 4px #CCC;
}
-#imageThree{
+#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;
+#imageFour {
+ border: 1px solid #666 !important;
+ box-shadow: 0 3px 4px #999;
}
-#imageFive{
-border:3px solid #DDD !important;
+#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;
+#imageSix {
+ border: 8px solid #BBB !important;
+ box-shadow: 0 0 5px #333;
}
-#imageSeven{
+#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;
+ 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;
+ display:inline-block;
+ width:auto;
+ border:2px solid #FFF;
+ text-align:center;
+ background-color:#FFF;
+ padding:5px 2px;
+ opacity:0.8;
}
label.hideareas {
-display:block;
-float:none;
-text-align:left;
-
+ 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;
+ opacity:1;
+ background-color:#EEE;
}
label input[type=radio] {
-display:none;
+ display:none;
}
label.layouts {
-display:block;
-float:left;
-padding:3px;
-height:55px;
+ display:block;
+ float:left;
+ padding:3px;
+ height:55px;
}
label.layouts:hover {
-background:none;
-border:2px solid #CCC;
+ background:none;
+ border:2px solid #CCC;
}
-
.layouts img {
-width:60px;
+ width:60px;
}
.layouts img, .images img {
-pointer-events: none;
+ pointer-events: none;
}
-
.borderful {
-border-color:#F6A828 ;
- -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
- filter: alpha(opacity=100);
- opacity:1;
+ border-color: #F6A828 ;
+ 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;
+label.layouts.checkedClass,
+label.images.checkedClass,
+label.pins.checkedClass,
+label.sidebullets.checkedClass {
+ border-color: #F6A828;
+ opacity: 1;
}
-
#accordion input[type="text"] {
-font-family:"Lucida Console", Monaco, monospace !important;
-font-size:12px;
-padding:6px;
+ height: auto;
+ padding: 7px 5px;
}
#accordion > * {
-display:none;
+ display:none;
+}
+
+#accordion > h3,
+#accordion > h2 {
+ display:block;
}
-#accordion > h3, #accordion > h2 {
-display:block;
+.ui-accordion {
+ background: #FFF;
+}
+
+.ui-accordion .ui-widget-content:not(#slider-range) {
+ background: #FFF !important;
+ border: 1px solid #FFF !important;
}
.ui-accordion-content {
-background:#FFF !important;
-margin-bottom:10px !important;
-border:none !important;
-overflow: hidden;
-padding:1em !important;
+ background:#FFF !important;
+ margin-bottom:10px !important;
+ border:none !important;
+ overflow: hidden;
+ padding:1em !important;
+}
+
+.ui-accordion .ui-accordion-content {
+ overflow: hidden !important;
+ padding:0 !important;
+}
+
+.ui-accordion .ui-accordion-content-overflow {
+ overflow: visible !important;
}
-.ui-accordion .ui-accordion-content { overflow: hidden !important;padding:0 !important; }
-.ui-accordion .ui-accordion-content-overflow { overflow: visible !important; }
.ui-state-active {
- background:#444 !important;
- color:#FFF !important;
- border:none !important;
+ background: #EEE !important;
+ color: #111 !important;
+ border: none !important;
}
-.darkbg{
+.darkbg {
background:#ddd !important;
}
-#status{
+
+#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; }
+
+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;
+ 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;
+ display: block;
+ width: auto;
+ float: left;
+ margin-left: 10px;
+ font-weight: bold;
}
#uploadarea {
-margin-top:10px;
+ margin-top: 10px;
}
-#absolutedim, #relativedim {
-margin-top:30px;
-position:relative;
+#absolutedim,
+#relativedim {
+ margin-top: 40px;
+ position: relative;
}
-#absolutedim small, #relativedim small{
-margin-top:20px;}
-.slmini, #cdimensions {
-display:block;
-float:none;
+#absolutedim small,
+#relativedim small {
+ margin-top: 20px;
+}
+
+.slmini,
+#cdimensions {
+ display: block;
+ float: none;
}
.slmini {
-background:#F9F9F9;
-border-bottom:1px solid #E7E7E7;
-padding:15px 5px 15px 10px;
+ background: #F9F9F9;
+ border-bottom: 1px solid #E7E7E7;
+ padding: 15px 5px 15px 10px;
}
.slmini b {
-width:130px;
-display:inline-block;
-float:left;
-text-transform:uppercase;
-font-weight:normal;
-font-style:italic;
+ width: 130px;
+ display: inline-block;
+ float: left;
+ text-transform: uppercase;
+ font-weight: normal;
+ font-style: italic;
+ color: #888;
}
.slidebox {
-background:#F7F7F7;
-border-bottom:2px solid #eaeaea;
-transition:border-color .3s ease-in-out;
+ background:#F7F7F7;
+ border-bottom:2px solid #eaeaea;
+ transition:border-color .3s ease-in-out;
}
.slidebox:hover {
-border-color:#8CB3B3;
+ border-color:#8CB3B3;
}
-.slidercontent{
-display:none;
-padding:0 10px 10px;
+.slidercontent {
+ display:none;
+ padding: 0 20px 10px;
}
-
-.slidetitle{
-color:#777;
-background:#F7F7F7;
-padding: 2px 10px;
-margin:3px;
-cursor:pointer;
+.slidetitle {
+ position: relative;
+ color:#777;
+ background:#F7F7F7;
+ padding: 5px 10px;
+ margin: 3px;
+ cursor:pointer;
}
-.slidetitle:after {
-content:"\25BC";
-float:right;
-margin-right:5px;
-color:#AAA;
-font-size:10px;
+.slidetitle::after {
+ content:"\25BC";
+ position: absolute;
+ right: 5px;
+ top: 50%;
+ font-size:10px;
+ color:#AAA;
+ -webkit-transform: translateY(-50%);
+ transform: translateY(-50%);
}
.slidetitle:hover{
-background:#F6F6F6;
+ background: #F6F6F6;
}
.slidetitle:hover:after {
-color:#6C9393;
+ 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;
+ display: inline-block;
+ float: none;
+ font-size: 13px;
+ background: #FFF;
+ color: #777;
+ padding: 5px 10px;
+ margin: 20px 0 0 15px;
+ position: relative;
+ top: 3px;
+ border: 1px solid #DFDFDF;
+ border-bottom: none;
}
.slidebox .description {
-display:block;
-float:none;
+ display:block;
+ float:none;
}
-.slidebox input[type="text"], .slidebox textarea {
-width:100%;
-border-color:#DFDFDF !important;
-color:#444;
+#accordion .slidebox input[type="text"],
+#accordion .slidebox textarea {
+ width: 100%;
+ max-width: 100%;
+ padding: 10px;
+ border-color: #DFDFDF !important;
+ color: #444;
}
-#sliderCustomSlides {margin-top:10px;}
+#sliderCustomSlides {
+ margin-top: 10px;
+}
a.upload_image_button {
-text-decoration:none;
-clear:both;
-padding:2px 4px;
-display:block;
-float:none;
+ text-decoration:none;
+ clear:both;
+ padding:2px 4px;
+ display:block;
+ float:none;
}
-.wp-core-ui .button, .wp-core-ui .button-secondary {
-background:#FFF;
-text-transform:uppercase;
--moz-border-radius:0;
--webkit-border-radius:0;
-border-radius:0;
-border-bottom:1px solid #555;
+.wp-core-ui .button,
+.wp-core-ui .button-secondary {
+ height: auto;
+ border: 2px solid #555;
+ padding: 5px 15px;
+ letter-spacing: 1px;
+ border-radius: 0;
+ text-transform: uppercase;
+ background: #FFF;
}
-.wp-core-ui .button:hover, .wp-core-ui .button-secondary:hover {
-border-bottom:1px solid #000;
+.wp-core-ui .button:hover,
+.wp-core-ui .button-secondary:hover {
+ border-color: #000;
}
#submitDiv input.button {
-font-size:13px !important;
-padding:4px 10px !important;
-height:auto;
-text-transform:uppercase;
-border-bottom:3px solid #555;
+ font-size: 13px !important;
+ padding: 8px 16px !important;
+ height: auto;
+ text-transform: uppercase;
+ border: 3px solid #555;
+ letter-spacing: 2px;
}
.header_upload_inputs {
-width:300px;
+ width: 300px;
}
/* NEWS LISTS */
#righty .news-list li {
-background:#FFF;
-padding:7px;
-border:1px solid #EEE;
+ background: #FFF;
+ padding: 7px;
+ border: 1px solid #EEE;
}
#righty span.news-item-date {
-color:#999;
-font-size:11px;
+ color: #999;
+ font-size: 11px;
}
a.news-header {
-text-decoration:none;
-color:#4C7373;
-font-size:14px;
-font-weight:bold;
-text-transform:uppercase;
+ 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;
+a.news-header:hover,
+a.news-read:hover {
+ color: #C47D09 !important;
}
/*Tooltip */
.tooltip_div{
-display:inline-block;
-clear:none;
-height:22px;
-line-height:22px;
+ 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;
+ display: inline-block;
+ clear: none;
+ height: 22px;
+ line-height: 22px;
+ margin-left: 7px;
}
a.tooltip img {
-vertical-align:bottom;
+ vertical-align: bottom;
}
.ui-tooltip {
-display:block;
-max-width:300px;
-padding:5px;
-z-index:3;
+ 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;
- }
+ padding-top: 10px;
+ padding-left: 20px;
+ display: block;
+ float: left;
+}
+
#admin_links {
- display:block;
- float:left;
- clear:both;
- text-align:left;
- margin-left:97px;
- margin-top:-17px;
- }
+ display: block;
+ float: left;
+ clear: both;
+ text-align: left;
+ margin-left: 97px;
+ margin-top: -17px;
+ margin-bottom: 20px;
+}
#admin_links a {
-display:block;
-float:left;
-margin-left:3px;
-margin-right:9px;
-text-decoration:none;
-font-family:Segoe UI, Arial;
-font-size:11px;
-color:#000000;
-text-transform:uppercase;
+ display: block;
+ float: left;
+ margin-left: 3px;
+ margin-right: 9px;
+ text-decoration: none;
+ font-size: 11px;
+ color: #000000;
+ text-transform: uppercase;
}
#admin_links a:hover {
-color:#C47D09;
-}
-
-.wrap div.updated, .wrap div.error {
-margin-left: 15px; margin-right: 15px;
-margin-top: 20px; }
+ color: #C47D09;
+}
+
+.wrap div.updated,
+.wrap div.error {
+ margin-left: 15px;
+ margin-right: 15px;
+ margin-top: 20px;
+}
+
+.cryout-admin .social-buttons {
+ text-align: center;
+}
+.cryout-admin .social-buttons a {
+ display: inline-block;
+}
+.cryout-admin .social-buttons a img {
+ max-width: 32px;
+ max-height: 32px;
+}
+.cryout-admin .social-buttons a img + img {
+ margin-left: 10px;
+}
#jsAlert {
-margin: 0 15px 10px;
-background-color: #F4F8FA;
-border-color: #BCE8F1; border-style: solid; border-radius: 0; border-width: 0 0 0 3px;
-padding:5px 10px;
+ margin: 0 15px 10px;
+ background-color: #F4F8FA;
+ border-color: #BCE8F1;
+ border-style: solid;
+ border-radius: 0;
+ border-width: 0 0 0 3px;
+ padding: 5px 10px;
}
/* FB button fix */
@@ -630,19 +712,73 @@ padding:5px 10px;
margin:0 8px;
}
-#mantra-settings-placeholder {
- background: #fff;
- padding: 0 10px 10px 10px; }
+#mantra-settings-placeholder {
+ background: #fff;
+ padding: 0 10px 10px 10px;
+}
-#mantra-settings-placeholder h3 {
- background: #444;
- color: #fff;
- text-transform: uppercase;
- font-weight: 400;
- padding: 10px;
- margin: 0 -10px;
- font-size: 14px; }
+#mantra-settings-placeholder h3 {
+ background: #444;
+ color: #fff;
+ text-transform: uppercase;
+ font-weight: 400;
+ padding: 10px;
+ margin: 0 -10px;
+ font-size: 14px;
+}
-#mantra-settings-placeholder a {
- color: #24C1BB; }
+#mantra-settings-placeholder a {
+ color: #24C1BB;
+}
+/*
+ Responsive admin
+*/
+
+@media ( max-width: 800px ) {
+
+ .cryout-admin #lefty,
+ .cryout-admin #righty {
+ min-width: 300px;
+ max-width: 100%;
+ padding: 0;
+ }
+
+ .cryout-admin .form-table th {
+ width: auto;
+ }
+
+ .cryout-admin .slmini b {
+ width: 100%;
+ margin-bottom: 5px;
+ }
+
+ #accordion select,
+ #accordion input[type="text"],
+ #accordion textarea {
+ display: inline !important;
+ width: auto !important;
+ max-width: 70%;
+ }
+
+ #accordion textarea {
+ max-width: 60% !important;
+ }
+
+ #accordion select {
+ font-family: "Segoe UI, Arial";
+ }
+
+ .cryout-admin .slidebox a.upload_image_button {
+ float: none;
+ }
+
+ #accordion .slidebox input[type="text"],
+ #accordion .slidebox textarea {
+ display: block !important;
+ float: none !important;
+ width: 100% !important;
+ max-width: 100% !important;
+ }
+
+}
diff --git a/themes/mantra/admin/custom-styles.php b/themes/mantra/admin/custom-styles.php
deleted file mode 100644
index b544ff86..00000000
--- a/themes/mantra/admin/custom-styles.php
+++ /dev/null
@@ -1,299 +0,0 @@
-<?php
-
-function cryout_optset($var,$val1,$val2='',$val3='',$val4=''){
-$vals = array($val1,$val2,$val3,$val4);
-if (in_array($var,$vals)): return false; else: return true; endif;
-}
-
-function mantra_custom_styles() {
-
-/* This retrieves admin options. */
-$mantra_options= mantra_get_theme_options();
-foreach ($mantra_options as $key => $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(); ?>
-
-<style type="text/css">
-<?php
-/*
- * LAYOUT CSS
- */
-
-/* ABSOLUTE DIMENSIONS. */
-
-if ($mantra_dimselect=="Absolute") { ?>
-#wrapper, #access, #colophon, #branding, #main { width:<?php echo ($totalwidth) ?>px ;}
-<?php if (is_page_template() && !is_page_template('template-blog.php') && !is_page_template('template-onecolumn.php') && !is_page_template('template-page-with-intro.php')) {
-
- if (is_page_template("template-twocolumns-right.php") ) { ?>
-#content { width:<?php echo ($contentSize- 10) ?>px;}
-#primary,#secondary {width:<?php echo ($sidebarSize ) ?>px;}<?php }
-
-?><?php if ( is_page_template("template-twocolumns-left.php")) { ?>
-#content { width:<?php echo ($contentSize - 10) ?>px;float:right;margin:0px 20px 0 0;}
-#primary,#secondary {width:<?php echo ($sidebarSize ) ?>px;float:left;padding-left:0px;clear:left;border:none;border-right:1px dashed #EEE;padding-right:20px;}
-.widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ;text-align:right;}
- #primary ul.xoxo {padding:0 0 0 10px ;} <?php }
-
-?><?php if ( is_page_template("template-threecolumns-right.php")) { ?>
-#content { width:<?php echo ($contentSize- 20) ?>px;}
-#primary,#secondary {width:<?php echo ($mantra_sidebar/2 ) ?>px;} <?php }
-
-?><?php if ( is_page_template("template-threecolumns-left.php")) { ?>
-#content { width:<?php echo ($contentSize - 20) ?>px;float:right;margin:0px 20px 0 0;display:block;}
-#primary,#secondary {width:<?php echo ($sidebarSize/2 ) ?>px;float:left;padding-left:0px;;border:none;border-right:1px dashed #EEE;padding-right:20px;}
-.widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ;text-align:right;}
-#main .widget-area ul.xoxo {padding:0 0 0 10px ;} <?php }
-
-?><?php if (is_page_template("template-threecolumns-center.php")) { ?>
-#content { width:<?php echo ($contentSize - 20) ?>px;float:right;margin:0px <?php echo $sidebarSize/2+35 ?>px 0 <?php echo -($contentSize+$sidebarSize) ?>px;display:block;}
-#primary {width:<?php echo ($sidebarSize/2 ) ?>px;float:left;padding-left:0px;border:none;border-right:1px dashed #EEE;padding-right:20px;}
-#secondary {width:<?php echo ($sidebarSize/2 ) ?>px;float:right;}
-#primary .widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ; text-align:right;padding-right:15px;width:100%;margin-left:-15px;}
-#primary ul.xoxo {padding:0 0 0 10px;}<?php }
-
- } //is_page_template
- else { // IF NO PAGE TEMPLATE HAS BEEN SELECTED
-
- if ($mantra_side == "1c" ) { ?>
-#content {width:<?php echo ($totalwidth-40) ?>px; margin:20px;margin-top:0px;} <?php }
-
-?><?php if ($mantra_side == "2cSr" ) { ?>
-#content { width:<?php echo ($contentSize- 10) ?>px;}
-#primary,#secondary {width:<?php echo ($sidebarSize ) ?>px;}<?php }
-
-?><?php if ($mantra_side == "2cSl" ) { ?>
-#content { width:<?php echo ($contentSize - 10) ?>px;float:right;margin:0px 20px 0 0;}
-#primary,#secondary {width:<?php echo ($sidebarSize ) ?>px;float:left;padding-left:0px;clear:left;border:none;border-right:1px dashed #EEE;padding-right:20px;}
- .widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ; text-align:right;width:100%;}
- #primary ul.xoxo {padding:0 0 0 10px ;}<?php }
-
-?><?php if ($mantra_side == "3cSr" ) { ?>
-#content { width:<?php echo ($contentSize- 20) ?>px;}
-#primary,#secondary {width:<?php echo ($mantra_sidebar/2 ) ?>px;} <?php }
-
-?><?php if ($mantra_side == "3cSl" ) { ?>
-#content { width:<?php echo ($contentSize - 20) ?>px;float:right;margin:0px 20px 0 0;display:block;}
-#primary,#secondary {width:<?php echo ($sidebarSize/2 ) ?>px;float:left;padding-left:0px;;border:none;border-right:1px dashed #EEE;padding-right:20px;}
- .widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ; text-align:right;}
-#main .widget-area ul.xoxo {padding:0 0 0 10px ;} <?php }
-
-?><?php if ($mantra_side == "3cSs") { ?>
-#content { width:<?php echo ($contentSize - 20) ?>px;float:right;margin:0px <?php echo $sidebarSize/2+35 ?>px 0 <?php echo -($contentSize+$sidebarSize) ?>px;display:block;}
-#primary {width:<?php echo ($sidebarSize/2 ) ?>px;float:left;padding-left:0px;border:none;border-right:1px dashed #EEE;padding-right:20px;}
-#secondary {width:<?php echo ($sidebarSize/2 ) ?>px;float:right;}
-#primary .widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ; text-align:right;padding-right:15px;width:100%;margin-left:-15px;}
-#primary ul.xoxo {padding:0 0 0 10px ;} <?php }
-
- }//else
-}//absolute dim
-
-/* RELATIVE DIMENSIONS. */
-
-else if ($mantra_dimselect=="Relative") { ?>
-#wrapper { width:<?php echo ($totalwidth) ?>% ;}
-#access, #colophon, #branding, #main {width:100%;}
-#access .menu-header, div.menu {width:96% ;}
-#content {margin-left:2%;}
-#primary, #secondary {padding-left:1%;}
-<?php
- if (is_page_template() && !is_page_template('template-blog.php') && !is_page_template('template-onecolumn.php') && !is_page_template('template-page-with-intro.php')) {
-
-?><?php if (is_page_template("template-twocolumns-right.php")) { ?>
-#content { width:<?php echo ($contentSize) ?>%;}
-#primary,#secondary {width:<?php echo ($sidebarSize ) ?>%;}<?php }
-
-?><?php if (is_page_template("template-twocolumns-left.php")) { ?>
-#content { width:<?php echo ($contentSize ) ?>%;float:right;margin:0px 20px 0 0;}
-#primary,#secondary {width:<?php echo ($sidebarSize ) ?>%;float:left;padding-left:0px;clear:left;border:none;border-right:1px dashed #EEE;padding-right:20px;}
- .widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ; text-align:right;padding-right:5%;width:95%;margin-left:-10px;}
-#primary ul.xoxo {padding:0 0 0 10px ;} <?php }
-
-?><?php if ( is_page_template("template-threecolumns-right.php")) { ?>
-#content { width:<?php echo ($contentSize-2) ?>%;}
-#primary,#secondary {width:<?php echo ($sidebarSize/2 ) ?>%;} <?php }
-
-?><?php if (is_page_template("template-threecolumns-left.php")) { ?>
-#content { width:<?php echo ($contentSize-2) ?>%;float:right;margin:0px 20px 0 0;display:block;}
-#primary,#secondary {width:<?php echo ($sidebarSize/2 ) ?>%;float:left;padding-left:0px;;border:none;border-right:1px dashed #EEE;padding-right:10px;}
- .widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ; text-align:right;padding-right:8%;width:95%;margin-left:-10px;}
-#main .widget-area ul.xoxo {margin:0 0 0 10px ;} <?php }
-
-?><?php if ( is_page_template("template-threecolumns-center.php")) { ?>
-#content { width:<?php echo ($contentSize-1 ) ?>%;float:right;margin:0px <?php echo $sidebarSize/2+2 ?>% 0 <?php echo -($contentSize+$sidebarSize) ?>%;display:block;}
-#primary {width:<?php echo ($sidebarSize/2 ) ?>%;float:left;padding-left:0px;border:none;border-right:1px dashed #EEE;padding-right:20px;}
-#secondary {width:<?php echo ($sidebarSize/2 ) ?>%;float:right;}
-#primary .widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ; text-align:right;padding-right:8%;width:100%;margin-left:-10px;}
-#primary ul.xoxo {padding:0 0 0 10px ;} <?php }
- }// is_page_template
-
- else { // IF NO PAGE TEMPLATE HAS BEEN SELECTED
-
- if ($mantra_side == "1c") { ?>
-#content {width:96%; margin:20px;} <?php }
-
-?><?php if ($mantra_side == "2cSr" ) { ?>
-#content { width:<?php echo ($contentSize) ?>%;}
-#primary,#secondary {width:<?php echo ($sidebarSize ) ?>%;}<?php }
-
-?><?php if ($mantra_side == "2cSl" ) { ?>
-#content { width:<?php echo ($contentSize ) ?>%;float:right;margin:0px 20px 0 0;}
-#primary,#secondary {width:<?php echo ($sidebarSize ) ?>%;float:left;padding-left:0px;clear:left;border:none;border-right:1px dashed #EEE;padding-right:20px;}
- .widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ; text-align:right;padding-right:5%;width:95%;margin-left:-10px;}
-#primary ul.xoxo {padding:0 0 0 10px ;} <?php }
-
-?><?php if ($mantra_side == "3cSr" ) { ?>
-#content { width:<?php echo ($contentSize-2) ?>%;}
-#primary,#secondary {width:<?php echo ($sidebarSize/2 ) ?>%;} <?php }
-
-?><?php if ($mantra_side == "3cSl" ) { ?>
-#content { width:<?php echo ($contentSize-2) ?>%;float:right;margin:0px 20px 0 0;display:block;}
-#primary,#secondary {width:<?php echo ($sidebarSize/2 ) ?>%;float:left;padding-left:0px;;border:none;border-right:1px dashed #EEE;padding-right:15px;}
- .widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ; text-align:right;padding-right:8%;width:100%;margin-left:-10px;}
-#main .widget-area ul.xoxo {margin:0 0 0 10px ;} <?php }
-
-?><?php if ($mantra_side == "3cSs") { ?>
-#content { width:<?php echo ($contentSize-1 ) ?>%;float:right;margin:0px <?php echo $sidebarSize/2+2 ?>% 0 <?php echo -($contentSize+$sidebarSize) ?>%;display:block;}
-#primary {width:<?php echo ($sidebarSize/2 ) ?>%;float:left;padding-left:0px;border:none;border-right:1px dashed #EEE;padding-right:20px;}
-#secondary {width:<?php echo ($sidebarSize/2 ) ?>%;float:right;}
-#primary .widget-title { -moz-border-radius:0 10px 0 0; -webkit-border-radius:0 10px 0 0;border-radius:0 10px 0 0 ; text-align:right;padding-right:8%;width:100%;margin-left:-10px;}
-#primary ul.xoxo {padding:0 0 0 10px ;} <?php }
-
- }//else
-}
-
-/*
- * THE REST OF THE CSS
- */
-?>
-#content, #content p, #content ul, #content ol, #content input, #content select, #content textarea{
-font-size:<?php echo $mantra_fontsize ?>;
-<?php if ($mantra_lineheight != "Default") { ?>line-height:<?php echo $mantra_lineheight ?>; <?php }
-?><?php if ($mantra_wordspace != "Default") { ?>word-spacing:<?php echo $mantra_wordspace ?>;<?php }
-?><?php if ($mantra_letterspace != "Default") { ?>letter-spacing:<?php echo $mantra_letterspace ?>;<?php }
-?><?php if ($mantra_textalign != "Default") { ?>text-align:<?php echo $mantra_textalign; ?> ; <?php } ?>}
-
-<?php if ($mantra_hcenter != "") { ?> #bg_image { display:block;margin:0 auto;} <?php }
-?><?php if ($mantra_contentbg != "#FFFFFF") { ?> #main, #access ul li.current_page_item, #access ul li.current-menu-item ,#access ul ul li { background-color:<?php echo $mantra_contentbg; ?>} <?php }
-?><?php if ($mantra_menubg != "#FAFAFA") { ?> #access ul li { background-color:<?php echo $mantra_menubg; ?>} <?php }
-?><?php if (cryout_optset($mantra_s1bg, "")) { ?> #primary { background-color:<?php echo $mantra_s1bg; ?>} <?php }
-?><?php if (cryout_optset($mantra_s2bg ,"" )){ ?> #secondary { background-color:<?php echo $mantra_s2bg; ?>} <?php }
-
-$mantra_googlefont = str_replace('+',' ',preg_replace('/:.*/i','',$mantra_googlefont));
-$mantra_googlefonttitle = str_replace('+',' ',preg_replace('/:.*/i','',$mantra_googlefonttitle));
-$mantra_googlefontside = str_replace('+',' ',preg_replace('/:.*/i','',$mantra_googlefontside));
-$mantra_googlefontsubheader = str_replace('+',' ',preg_replace('/:.*/i','',$mantra_googlefontsubheader));
-
-?><?php if (stripslashes($mantra_fontfamily) != '"Segoe UI", Arial, sans-serif' || $mantra_googlefont) { ?> body, input, textarea {font-family:<?php if (!$mantra_googlefont) echo $mantra_fontfamily; else echo "\"$mantra_googlefont\""; ?> ; }<?php }
-?><?php if ($mantra_fonttitle != "Default" || $mantra_googlefonttitle) { ?> #content h1.entry-title a, #content h2.entry-title a, #content h1.entry-title , #content h2.entry-title {font-family:<?php if (!$mantra_googlefonttitle) echo $mantra_fonttitle; else echo "\"$mantra_googlefonttitle\""; ?> ; }<?php }
-?><?php if ($mantra_fontside != "Default" || $mantra_googlefontside) { ?> .widget-area {font-family:<?php if (!$mantra_googlefontside) echo $mantra_fontside; else echo "\"$mantra_googlefontside\""; ?> ; }<?php }
-?><?php if ($mantra_fontsubheader != "Default" || $mantra_googlefontsubheader ) { ?> .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {font-family:<?php if (!$mantra_googlefontsubheader) echo $mantra_fontsubheader; else echo "\"$mantra_googlefontsubheader\""; ?> ; }<?php }
-?><?php if ($mantra_caption != "Light") { ?> #content .wp-caption { <?php }
-?><?php if ($mantra_caption == "White") { ?> background-color:#FFF;}
- <?php } else if ($mantra_caption == "Light Gray") {?> background-color:#EEE; }
- <?php } else if ($mantra_caption == "Gray") {?> background-color:#CCC;}
- <?php } else if ($mantra_caption == "Dark Gray") {?> background-color:#444;color:#CCC;}
- <?php } else if ($mantra_caption == "Black") {?> background-color:#000;color:#CCC;}
-<?php }
-?><?php if ($mantra_menurounded == "Disable") { ?> #access ul li { border-radius:0;-moz-border-radius:0;border-radius:0;}<?php }
-?><?php if ($mantra_metaback == "White") { ?> .entry-meta { background:#FFF;} <?php } else if ($mantra_metaback == "None") { ?> .entry-meta { background:#FFF;border:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;} <?php }
-?><?php if ($mantra_postseparator == "Show") { ?> article.post, article.page { padding-bottom:10px;border-bottom:3px solid #EEE} <?php }
-?><?php if ($mantra_contentlist == "Hide") { ?> .entry-content ul li { background-image:none ; padding-left:0;} .entry-content ul { margin-left:0;} <?php }
-?><?php if ($mantra_comtext == "Hide") { ?> #respond .form-allowed-tags { display:none;} <?php }
-?><?php if ($mantra_comclosed == "Hide in posts") { ?> .nocomments { display:none;} <?php } elseif ($mantra_comclosed == "Hide in pages") { ?> .nocomments2 {display:none;} <?php } elseif ($mantra_comclosed == "Hide everywhere") { ?> .nocomments, .nocomments2 {display:none;} <?php }
-?><?php if ($mantra_comoff == "Hide") { ?> .comments-link span { display:none;} <?php }
-?><?php if ($mantra_tables == "Enable") { ?> #content table {border:none;} #content tr {background:none;} #content table {border:none;} #content tr th,
-#content thead th {background:none;} #content tr td {border:none;}<?php }
-?><?php if ($mantra_headfontsize != "Default") { ?> #content h1.entry-title, #content h2.entry-title { font-size:<?php echo $mantra_headfontsize; ?> ;}<?php }
-?><?php if ($mantra_sidefontsize != "Default") { ?> .widget-area, .widget-area a:link, .widget-area a:visited { font-size:<?php echo $mantra_sidefontsize; ?> ;}<?php }
-?><?php if ($mantra_textshadow != "Enable") { ?> #content h1, #content h2, #content h3, #content h4, #content h5, #content h6, #content .entry-title, #site-title a , #site-description { text-shadow:none; moz-text-shadow:none; -webkit-text-shadow:none ;}<?php }
-?><?php if ($mantra_headerindent == "Enable") { ?> #content h1, #content h2, #content h3, #content h4, #content h5, #content h6 { margin-left:20px;} .sticky hgroup { background: url(<?php echo get_template_directory_uri().'/images/icon-featured.png' ; ?>) no-repeat 12px 10px transparent; padding-left: 15px;}<?php } ?>
-
-#header-container > div { margin-top:<?php echo $mantra_headermargintop; ?>px;}
-#header-container > div { margin-left:<?php echo $mantra_headermarginleft; ?>px;}
-<?php if ($mantra_backcolor != "444444") { ?> body { background-color:<?php echo $mantra_backcolor; ?> !important ;}<?php }
-?><?php if ($mantra_headercolor != "333333") { ?> #header { background-color:<?php echo $mantra_headercolor; ?> ;}<?php }
-?><?php if ($mantra_prefootercolor != "222222") { ?> #footer { background-color:<?php echo $mantra_prefootercolor; ?> ;}<?php }
-?><?php if ($mantra_footercolor != "171717") { ?> #footer2 { background-color:<?php echo $mantra_footercolor; ?> ;}<?php }
-?><?php if ($mantra_titlecolor != "0D85CC") { ?> #site-title span a { color:<?php echo $mantra_titlecolor; ?> ;}<?php }
-?><?php if ($mantra_descriptioncolor != "0D85CC") { ?> #site-description { color:<?php echo $mantra_descriptioncolor; ?> ;}<?php }
-?><?php if ($mantra_contentcolor != "333333") { ?> #content, #content p, #content ul, #content ol { color:<?php echo $mantra_contentcolor; ?> ;}<?php }
-?><?php if ($mantra_linkscolor != "0D85CC") { ?> .widget-area a:link, .widget-area a:visited, a:link, a:visited ,#searchform #s:hover , #container #s:hover, #access a:hover, #wp-calendar tbody td a , #site-info a ,#site-copyright a, #access li:hover > a, #access ul ul :hover > a { color:<?php echo $mantra_linkscolor; ?>;}<?php }
-?><?php if ($mantra_hovercolor != "333333") { ?> a:hover, .entry-meta a:hover, .entry-utility a:hover , .widget-area a:hover { color:<?php echo $mantra_hovercolor; ?> ;}<?php }
-?><?php if ($mantra_headtextcolor != "333333") { ?> #content .entry-title a, #content .entry-title, #content h1, #content h2, #content h3, #content h4, #content h5, #content h6{ color:<?php echo $mantra_headtextcolor; ?> ;}<?php }
-?><?php if ($mantra_headtexthover != "000000") { ?> #content .entry-title a:hover { color:<?php echo $mantra_headtexthover; ?> ;}<?php }
-?><?php if ($mantra_sideheadbackcolor != "444444") { ?> .widget-title,#footer-widget-area .widget-title { background-color:<?php echo $mantra_sideheadbackcolor; ?> ;}<?php }
-?><?php if ($mantra_sideheadtextcolor != "2EA5FD") { ?> .widget-title { color:<?php echo $mantra_sideheadtextcolor; ?> ;}<?php }
-
-?><?php if ($mantra_magazinelayout == "Enable") { ?> #content article.post{float:left;width:47%;margin-right:3%; } #content article.sticky { margin-right:3%;padding:0; } #content article.sticky > * {margin:2%;} #content article:nth-of-type(2n+1) {clear: both;} <?php }
-
-?><?php if (1) { ?> #footer-widget-area .widget-title { color:<?php echo $mantra_footerheader; ?> ; ;}<?php }
-?><?php if (1) { ?> #footer-widget-area a { color:<?php echo $mantra_footertext; ?> ;}<?php }
-?><?php if (1) { ?> #footer-widget-area a:hover { color:<?php echo $mantra_footerhover; ?> ;}<?php }
-
-switch ($mantra_menualign):
- case "center": ?> #access ul { display: table; margin: 0 auto; } <?php break;
- case "right": ?> #access .menu-header, div.menu { float: right; } <?php break;
- default: break;
-endswitch;
-
-?><?php if ($mantra_pin != "Pin2") { ?> #content .wp-caption { background-image:url(<?php echo get_template_directory_uri()."/images/pins/".$mantra_pin; ?>.png) ;} <?php }
-?><?php if ($mantra_sidebullet != "arrow_white") { ?>.widget-area ul ul li{ background-image:url(<?php echo get_template_directory_uri()."/images/bullets/".$mantra_sidebullet; ?>.png);background-position: 0px 8px ;}<?php }
-
-?><?php if ($mantra_pagetitle == "Hide") { ?> .page h1.entry-title, .home .page h2.entry-title { display:none;} <?php }
-?><?php if ($mantra_categtitle == "Hide") { ?> h1.page-title { display:none;} <?php }
-?><?php if (($mantra_postdate == "Hide" && $mantra_postcateg == "Hide") || ($mantra_postauthor == "Hide" && $mantra_postcateg == "Hide") ) { ?>.entry-meta .bl_sep {display:none;} <?php }
-?><?php if ($mantra_postdate == "Hide") { ?>.entry-meta time.onDate {display:none;} <?php }
-?><?php if ($mantra_postcomlink == "Hide") { ?>.entry-meta .comments-link,.entry-meta2 .comments-link{display:none;} <?php }
-?><?php if ($mantra_postauthor == "Hide") { ?>.entry-meta .author {display:none;} <?php }
-?><?php if ($mantra_postcateg == "Hide") { ?>.entry-meta span.bl_categ, .entry-meta2 span.bl_categ {display:none;} <?php }
-?><?php if ($mantra_posttag == "Hide") { ?> .entry-utility span.bl_posted, .entry-meta2 span.bl_tagg,.entry-meta3 span.bl_tagg {display:none;} <?php }
-?><?php if ($mantra_postbook == "Hide") { ?> .entry-utility span.bl_bookmark {display:none;} <?php }
-?><?php if ($mantra_parmargin) { ?> #content p, .entry-content ul, .entry-summary ul , .entry-content ol, .entry-summary ol { margin-bottom:<?php echo $mantra_parmargin; ?>;} <?php }
-?><?php if ($mantra_parindent != "0px") { ?> p {text-indent:<?php echo $mantra_parindent;?> ;} <?php }
-?><?php if ($mantra_posttime == "Hide") { ?> .entry-meta .entry-time {display:none;} <?php }
-?><?php if ($mantra_postmetas == "Hide") { ?> #content .entry-meta, #content .entry-header div.entry-meta2 > * {display:none;} <?php }
-?><?php if (($mantra_mobile == "Enable") && $mantra_hcontain) { ?> #branding{ -webkit-background-size:contain !important;-moz-background-size:contain !important;background-size:contain !important; } <?php } ?>
-#branding { height:<?php echo HEADER_IMAGE_HEIGHT; ?>px ;}
-<?php if ($mantra_hratio) { ?> @media (max-width: 800px) {#branding, #bg_image { min-height:inherit !important; } } <?php } ?>
-</style>
-
-<?php $mantra_custom_styling = ob_get_contents();
- ob_end_clean();
-
-return $mantra_custom_styling;
-}
-
-// Mantra function for inseting into the header the Custom Css field in the theme options
-
-function mantra_customcss() {
-$mantra_options= mantra_get_theme_options();
-foreach ($mantra_options as $key => $value) {
- ${"$key"} = esc_attr($value) ; }
-
-if ($mantra_customcss != "") {
- return '<style>'.htmlspecialchars_decode($mantra_customcss, ENT_QUOTES).'</style>';
- }
-}
-
-function mantra_customjs() {
-$mantra_options= mantra_get_theme_options();
-foreach ($mantra_options as $key => $value) {
- ${"$key"} = esc_attr($value) ; }
-
-if ($mantra_customjs != "") {
- echo '<script>'.htmlspecialchars_decode($mantra_customjs, ENT_QUOTES).'</script>';
- }
-}
-?>
diff --git a/themes/mantra/admin/defaults.php b/themes/mantra/admin/defaults.php
index 5027179b..8acc4c21 100644
--- a/themes/mantra/admin/defaults.php
+++ b/themes/mantra/admin/defaults.php
@@ -4,211 +4,210 @@
$mantra_defaults = array(
-"mantra_db" => "1.0",
-
-"mantra_side" => "2cSr",
-"mantra_dimselect" => 'Absolute',
-"mantra_sidewidth" => 800,
-"mantra_sidebar" => 250,
-"mantra_sidewidthRel" => 60,
-"mantra_sidebarRel" => 20,
-"mantra_mobile" => "Enable",
-"mantra_zoom" => 0,
-"mantra_hcontain" => "",
-
-
-"mantra_frontpage" => "Disable",
-"mantra_frontposts" => "Disable",
-"mantra_frontpostscount" => 5,
-"mantra_menualign" => "left",
-"mantra_fpsliderwidth" => "800",
-"mantra_fpsliderheight" => "250",
-"mantra_fpslideranim" => "random",
-"mantra_fpsliderborderwidth" => "10",
-"mantra_fpsliderbordercolor" => "#EEEEEE",
-"mantra_fpslidertime" => "750",
-"mantra_fpsliderpause" => "5000",
-"mantra_fpslidernav" => "Bullets",
-"mantra_fpsliderarrows" => "Visible on Hover",
-
-"mantra_slideShortcode" => "",
-"mantra_slideType" => "Custom Slides",
-"mantra_slideCateg" => "",
-"mantra_slideNumber" => "5",
-"mantra_slideSpecific" => "",
-
-"mantra_sliderimg1" => get_template_directory_uri()."/images/slider/mantra-slide1.jpg",
-"mantra_slidertitle1" => "This is the caption title",
-"mantra_slidertext1" => "And this is the text that could accompany it. It is all optional so if you delete it in the Mantra Settings there will be no more caption with the black background.",
-"mantra_sliderlink1" => "",
-"mantra_sliderimg2" => get_template_directory_uri()."/images/slider/mantra-slide2.jpg",
-"mantra_slidertitle2" => "This is yet another caption title",
-"mantra_slidertext2" => 'And some more text to give you as an example. You can use <a href="http://www.cryoutcreations.eu" >links</a> and other type of <b>HTML</b> <i>formats</i>.',
-"mantra_sliderlink2" => "",
-"mantra_sliderimg3" => "",
-"mantra_slidertitle3" => "",
-"mantra_slidertext3" => "",
-"mantra_sliderlink3" => "",
-"mantra_sliderimg4" => "",
-"mantra_slidertitle4" => "",
-"mantra_slidertext4" => "",
-"mantra_sliderlink4" => "",
-"mantra_sliderimg5" => "",
-"mantra_slidertitle5" => "",
-"mantra_slidertext5" => "",
-"mantra_sliderlink5" => "",
-
-"mantra_nrcolumns" => "4",
-"mantra_colimageheight" => "120",
-"mantra_columnreadmore" => "Read more",
-
-"mantra_columnimg1" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
-"mantra_columntitle1" => "Hi there!",
-"mantra_columntext1" => "You can also have some text here. Just like with the slider, it is all optional (including the title and the link inputs). All you need is an image, unless you want the Mantra image above to follow you everywhere.",
-"mantra_columnlink1" => "",
-"mantra_columnimg2" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
-"mantra_columntitle2" => " HTML tags",
-"mantra_columntext2" => 'You can also have <a href="http://www.cryoutcreations.eu">links</a> here as well as some <strong>HTML tags</strong>.',
-"mantra_columnlink2" => "",
-"mantra_columnimg3" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
-"mantra_columntitle3" => "",
-"mantra_columntext3" => "",
-"mantra_columnlink3" => "",
-"mantra_columnimg4" => get_template_directory_uri()."/images/slider/mantra-column.jpg",
-"mantra_columntitle4" => "",
-"mantra_columntext4" => "",
-"mantra_columnlink4" => "",
-
-"mantra_fronttext1" => "This could be a title",
-"mantra_fronttext2" => "And this is a second title",
-"mantra_fronttitlecolor" => "#333333",
-"mantra_fronttext3" => "And here you could have a whole lot of text. Or not. It is all up to you. Deleting all text inside the appropriate input in the Mantra Settings will remove this whole text zone. It can also contain some HTML tags.<br /> 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" => " &hellip;",
-"mantra_excerptcont" => " Continue reading",
-"mantra_excerpttags" => "Disable",
-
-"mantra_fpost" => "Disable",
-"mantra_fpostlink" => "1",
-"mantra_fauto" => "Disable",
-"mantra_falign" => "Left",
-"mantra_fwidth" => "250",
-"mantra_fheight" => "150",
-"mantra_fcrop" => "",
-"mantra_fheader" => "Disable",
-
-"mantra_social1" => "Facebook",
-"mantra_social2" => "#",
-"mantra_social3" => "Twitter",
-"mantra_social4" => "#",
-"mantra_social5" => "RSS",
-"mantra_social6" => "#",
-"mantra_social7" => "",
-"mantra_social8" => "",
-"mantra_social9" => "",
-"mantra_social10" => "",
-"mantra_socialsdisplay0" => "1",
-"mantra_socialsdisplay1" => "",
-"mantra_socialsdisplay2" => "",
-"mantra_socialsdisplay3" => "1",
-
-"mantra_copyright" => "",
-"mantra_customcss" => "/* Mantra Custom CSS */ ",
-"mantra_customjs" => "");
-
-?> \ No newline at end of file
+ "mantra_db" => "1.0",
+
+ "mantra_side" => "2cSr",
+ "mantra_dimselect" => 'Absolute',
+ "mantra_sidewidth" => 800,
+ "mantra_sidebar" => 340,
+ "mantra_sidewidthRel" => 60,
+ "mantra_sidebarRel" => 20,
+ "mantra_mobile" => "Enable",
+ "mantra_zoom" => 0,
+ "mantra_hcontain" => "",
+
+ "mantra_frontpage" => "Disable",
+ "mantra_frontposts" => "Enable",
+ "mantra_frontpostscount" => 5,
+ "mantra_menualign" => "left",
+ "mantra_fpsliderwidth" => "1050",
+ "mantra_fpsliderheight" => "450",
+ "mantra_fpslideranim" => "random",
+ "mantra_fpsliderborderwidth" => "20",
+ "mantra_fpsliderbordercolor" => "#111111",
+ "mantra_fpslidertime" => "750",
+ "mantra_fpsliderpause" => "5000",
+ "mantra_fpslidernav" => "Bullets",
+ "mantra_fpsliderarrows" => "Visible on Hover",
+
+ "mantra_slideShortcode" => "",
+ "mantra_slideType" => "Custom Slides",
+ "mantra_slideCateg" => "",
+ "mantra_slideNumber" => "3",
+ "mantra_slideSpecific" => "",
+
+ "mantra_sliderimg1" => get_template_directory_uri()."/resources/images/slider/mantra-slider-1.jpg",
+ "mantra_slidertitle1" => "This is the caption title",
+ "mantra_slidertext1" => "Maecenas mauris ante, mollis ac semper in, laoreet ac augue. Nunc ut turpis ipsum. Phasellus fringilla commodo tortor eu imperdiet. Etiam vehicula mollis pulvinar. In vestibulum eros et elit vehicula, eu egestas arcu feugiat. Lorem ipsum dolor sit amet, consectetur adipiscing.",
+ "mantra_sliderlink1" => "",
+ "mantra_sliderimg2" => get_template_directory_uri()."/resources/images/slider/mantra-slider-2.jpg",
+ "mantra_slidertitle2" => "This is yet another caption title",
+ "mantra_slidertext2" => 'Phasellus sit amet diam a metus iaculis sollicitudin. Nulla sed risus quis justo malesuada <a href="http://www.cryoutcreations.eu" >elementum</a> ut nulla eget leo maximus. Proin maximus dolor vel mauris volutpat blandit. Mauris urna nunc, pellentesque vel mauris vitae, convallis rutrum felis.',
+ "mantra_sliderlink2" => "",
+ "mantra_sliderimg3" => get_template_directory_uri()."/resources/images/slider/mantra-slider-3.jpg",
+ "mantra_slidertitle3" => "A third example",
+ "mantra_slidertext3" => "Phasellus non sagittis nibh. <em>Curabitur</em> quis lacus congue magna dapibus elementum. Nulla eu nulla est. Cras faucibus orci ante, vel sollicitudin quam lacinia gravida. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vel ligula efficitur massa condimentum consequat aliquam at lectus. Duis pellentesque, ante sed mattis tincidunt.",
+ "mantra_sliderlink3" => "",
+ "mantra_sliderimg4" => "",
+ "mantra_slidertitle4" => "",
+ "mantra_slidertext4" => "",
+ "mantra_sliderlink4" => "",
+ "mantra_sliderimg5" => "",
+ "mantra_slidertitle5" => "",
+ "mantra_slidertext5" => "",
+ "mantra_sliderlink5" => "",
+
+ "mantra_nrcolumns" => "3",
+ "mantra_colimageheight" => "215",
+ "mantra_columnreadmore" => "Read more",
+
+ "mantra_columnimg1" => get_template_directory_uri()."/resources/images/slider/mantra-column-1.jpg",
+ "mantra_columntitle1" => "Customizable",
+ "mantra_columntext1" => "Aenean ut tempus quam, vitae ornare tellus. Suspendisse ligula nisi, vestibulum vitae suscipit nec, ornare eu lorem. Vestibulum tempor suscipit lacus nec vestibulum. Nullam convallis odio.",
+ "mantra_columnlink1" => "",
+ "mantra_columnimg2" => get_template_directory_uri()."/resources/images/slider/mantra-column-2.jpg",
+ "mantra_columntitle2" => "HTML5 and CSS3",
+ "mantra_columntext2" => 'Phasellus sit amet diam a metus iaculis sollicitudin. Nulla sed risus quis justo malesuada <a href="http://www.cryoutcreations.eu" >elementum</a> ut nulla eget leo maximus. Proin maximus dolor vel mauris volutpat blandit.',
+ "mantra_columnlink2" => "",
+ "mantra_columnimg3" => get_template_directory_uri()."/resources/images/slider/mantra-column-3.jpg",
+ "mantra_columntitle3" => "Responsive",
+ "mantra_columntext3" => "Phasellus non sagittis nibh. <em>Curabitur</em> quis lacus congue magna dapibus elementum. Etiam non pellentesque orci. Mauris urna nunc, pellentesque vel mauris vitae, convallis rutrum felis.",
+ "mantra_columnlink3" => "",
+ "mantra_columnimg4" => "",
+ "mantra_columntitle4" => "",
+ "mantra_columntext4" => "",
+ "mantra_columnlink4" => "",
+
+ "mantra_fronttext1" => "",
+ "mantra_fronttext2" => "",
+ "mantra_fronttitlecolor" => "#333333",
+ "mantra_fronttext3" => "Phasellus hendrerit feugiat sollicitudin. Proin accumsan lacus ac dui pulvinar, ut gravida enim feugiat. Pellentesque semper faucibus varius. Nunc gravida, neque ac bibendum placerat, magna nisl consequat mi, nec egestas enim erat sed lacus. Quisque id ipsum in augue finibus euismod in eu diam. Sed vulputate mollis lectus, sit amet semper eros dictum quis. Vivamus nisl eros, facilisis facilisis orci ac, iaculis consequat justo. ",
+ "mantra_fronttext4" => "",
+
+ "mantra_fronthideheader" => "",
+ "mantra_fronthidemenu" => "",
+ "mantra_fronthidewidget" => "",
+ "mantra_fronthidefooter" => "",
+ "mantra_fronthideback" => "",
+
+ "mantra_hheight" => "125",
+ "mantra_hcenter" => "",
+ "mantra_hratio" => "",
+ "mantra_menurounded" => "Enable",
+ "mantra_logoupload" => "",
+ "mantra_favicon" => "",
+ "mantra_siteheader" => "Site Title and Description",
+ "mantra_headermargintop" => "30",
+ "mantra_headermarginleft" => "30",
+
+ "mantra_fontfamily" => 'Segoe UI, Arial, sans-serif',
+ "mantra_googlefont" => 'Open Sans:400,700',
+ "mantra_googlefont2" => '',
+ "mantra_fontsize" => "15px",
+ "mantra_fonttitle" => 'Default',
+ "mantra_googlefonttitle" => 'Merriweather:400,700',
+ "mantra_googlefonttitle2" => '',
+ "mantra_headfontsize" => "Default",
+ "mantra_fontside" => 'Default',
+ "mantra_googlefontside" => 'Open Sans:400,700',
+ "mantra_googlefontside2" => '',
+ "mantra_sidefontsize" => "Default",
+ "mantra_fontsubheader" => 'Default',
+ "mantra_googlefontsubheader" => 'Merriweather:400,700',
+ "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_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" => "#555555",
+ "mantra_linkscolor" => "#0D85CC",
+ "mantra_hovercolor" => "#12a7ff",
+ "mantra_headtextcolor" => "#444444",
+ "mantra_headtexthover" => "#000000",
+ "mantra_sideheadbackcolor" => "#444444",
+ "mantra_sideheadtextcolor" => "#FFFFFF",
+
+ "mantra_footerheader" => "#FFFFFF",
+ "mantra_footertext" => "#666666",
+ "mantra_footerhover" => "#888888",
+
+ "mantra_breadcrumbs" => "Disable",
+ "mantra_pagination" => "Enable",
+ "mantra_caption" => "Light",
+ "mantra_image" => "None",
+ "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" => "Excerpt",
+ "mantra_excerptsticky" => "Full Post",
+ "mantra_excerptarchive" => "Excerpt",
+ "mantra_excerptwords" => "50",
+ "mantra_magazinelayout" => "Disable",
+ "mantra_excerptdots" => "&hellip;",
+ "mantra_excerptcont" => " Continue reading",
+ "mantra_excerpttags" => "Disable",
+
+ "mantra_fpost" => "Enable",
+ "mantra_fpostlink" => "1",
+ "mantra_fauto" => "Disable",
+ "mantra_falign" => "Left",
+ "mantra_fwidth" => "250",
+ "mantra_fheight" => "150",
+ "mantra_fcrop" => "",
+ "mantra_fheader" => "Disable",
+
+ "mantra_social1" => "Facebook",
+ "mantra_social2" => "https://www.facebook.com/Profile_or_Page",
+ "mantra_social3" => "Twitter",
+ "mantra_social4" => "https://twitter.com/username",
+ "mantra_social5" => "RSS",
+ "mantra_social6" => "http://mydomain.tld/feed/",
+ "mantra_social7" => "",
+ "mantra_social8" => "",
+ "mantra_social9" => "",
+ "mantra_social10" => "",
+ "mantra_socialsdisplay0" => "1",
+ "mantra_socialsdisplay1" => "",
+ "mantra_socialsdisplay2" => "1",
+ "mantra_socialsdisplay3" => "1",
+
+ "mantra_copyright" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla massa diam, tempus a finibus et, euismod nec arcu. Praesent ultrices massa at molestie facilisis.",
+ "mantra_customcss" => "/* Mantra Custom CSS */ ",
+ "mantra_customjs" => ""
+
+);
+
+// FIN \ No newline at end of file
diff --git a/themes/mantra/admin/images/coffee.png b/themes/mantra/admin/images/coffee.png
index 6a94cc89..d9b12477 100644
--- a/themes/mantra/admin/images/coffee.png
+++ b/themes/mantra/admin/images/coffee.png
Binary files differ
diff --git a/themes/mantra/admin/images/icon-facebook.png b/themes/mantra/admin/images/icon-facebook.png
new file mode 100644
index 00000000..9dc3dfcf
--- /dev/null
+++ b/themes/mantra/admin/images/icon-facebook.png
Binary files differ
diff --git a/themes/mantra/admin/images/icon-googleplus.png b/themes/mantra/admin/images/icon-googleplus.png
new file mode 100644
index 00000000..c606e8f0
--- /dev/null
+++ b/themes/mantra/admin/images/icon-googleplus.png
Binary files differ
diff --git a/themes/mantra/admin/images/icon-twitter.png b/themes/mantra/admin/images/icon-twitter.png
new file mode 100644
index 00000000..009ae3cf
--- /dev/null
+++ b/themes/mantra/admin/images/icon-twitter.png
Binary files differ
diff --git a/themes/mantra/admin/js/admin.js b/themes/mantra/admin/js/admin.js
index 639d7974..d518ed2b 100644
--- a/themes/mantra/admin/js/admin.js
+++ b/themes/mantra/admin/js/admin.js
@@ -3,7 +3,7 @@
*/
function media_upload( button_class) {
- if (!window.wp || !window.wp.media || !window.wp.media.editor || !window.wp.media.editor.send || !window.wp.media.editor.send.attachment) return;
+ if (!window.wp || !window.wp.media || !window.wp.media.editor || !window.wp.media.editor.send || !window.wp.media.editor.send.attachment) return;
var _custom_media = true,
_orig_send_attachment = wp.media.editor.send.attachment;
jQuery('body').on('click',button_class, function(e) {
@@ -17,7 +17,7 @@ function media_upload( button_class) {
_custom_media = true;
wp.media.editor.send.attachment = function(props, attachment){
if ( _custom_media ) {
- /* jQuery('.custom_media_id').val(attachment.id); */
+ /* jQuery('.custom_media_id').val(attachment.id); */
uploadparent.find('.slideimages').val(attachment.url);
uploadparent.find('.imagebox').attr('src',attachment.url);
/* jQuery('.custom_media_image').attr('src',attachment.url).css('display','block'); */
@@ -28,13 +28,13 @@ function media_upload( button_class) {
wp.media.editor.open(button);
return false;
});
-}
-
-jQuery(document).ready(function() {
+}
+
+jQuery(document).ready(function() {
var uploadparent = 0;
- media_upload( '.upload_image_button' );
-
+ media_upload( '.upload_image_button' );
+
// Show/hide slides
jQuery('.slidetitle').click(function() {
jQuery(this).next().toggle("fast");
@@ -68,8 +68,8 @@ jQuery(document).ready(function() {
case "Slider Shortcode" :
jQuery('#sliderShortcode').show("normal");
- break;
-
+ break;
+
case "Custom Slides" :
jQuery('#sliderCustomSlides').show("normal");
break;
@@ -101,7 +101,7 @@ jQuery(document).ready(function() {
}//switch
});//function
-
+
jQuery('#mantra_slideType').trigger('change');
//Slide type value
@@ -135,15 +135,15 @@ jQuery(document).ready(function() {
// Create accordion from existing settings table
jQuery('.form-table').wrap('<div>');
jQuery(function() {
- if (jQuery( "#accordion h2" ).length > 0) {
- // wordpress 4.4+ changed headings to h2
- jQuery( "#accordion" ).accordion({
- header: 'h2',
- heightStyle: "content",
- collapsible: true,
- navigation: true,
- active: false
- });
+ if (jQuery( "#accordion h2" ).length > 0) {
+ // wordpress 4.4+ changed headings to h2
+ jQuery( "#accordion" ).accordion({
+ header: 'h2',
+ heightStyle: "content",
+ collapsible: true,
+ navigation: true,
+ active: false
+ });
} else {
jQuery( "#accordion" ).accordion({
header: 'h3',
@@ -155,7 +155,7 @@ jQuery(document).ready(function() {
});
}
});
-
+
if (vercomp(jQuery.ui.version,"1.9.0")) {
// tooltip function is included since jQuery UI 1.9.0
tooltip_terain();
@@ -212,7 +212,7 @@ jQuery(document).ready(function() {
// inform the user about the old partially unsupported version
jQuery("#jsAlert").after("<div class='updated fade' style='clear:left; font-size: 16px;'><p>Mantra has detected you are running an old version of Wordpress (jQuery) and will be running in compatibility mode. Some features may not work correctly. Consider updating your Wordpress to the latest version.</p></div>");
}
-
+
jQuery('#jsAlert').hide();
});// ready
@@ -224,13 +224,13 @@ function startfarb(a,b) {
jQuery(a).click(function() {
if(jQuery(b).css('display') == 'none') {
- jQuery(b).parents('div:eq(0)').addClass('ui-accordion-content-overflow');
+ jQuery(b).parents('.ui-accordion-content').addClass('ui-accordion-content-overflow');
jQuery(b).css('display','inline-block').hide().show(300);
}
});
jQuery(document).mousedown( function() {
- jQuery(b).hide(700, function(){ jQuery(b).parents('div:eq(0)').removeClass('ui-accordion-content-overflow'); });
+ jQuery(b).hide(700, function(){ jQuery(b).parents('.ui-accordion-content').removeClass('ui-accordion-content-overflow'); });
// todo: find a better way to remove class after the fade on IEs
});
}
@@ -295,4 +295,4 @@ window.twttr = (function (d, s, id) {
return window.twttr || (t = { _e: [], ready: function (f) { t._e.push(f) } });
}(document, "script", "twitter-wjs"));
-/* FIN */ \ No newline at end of file
+/* FIN */
diff --git a/themes/mantra/admin/main.php b/themes/mantra/admin/main.php
index 16d64563..35500898 100644
--- a/themes/mantra/admin/main.php
+++ b/themes/mantra/admin/main.php
@@ -1,7 +1,7 @@
<?php
-// Frontend
+// General
require_once(get_template_directory() . "/admin/defaults.php"); // default options
-require_once(get_template_directory() . "/admin/custom-styles.php"); // custom styling
+require_once(get_template_directory() . "/includes/custom-styles.php"); // custom styling
// Admin side
if( is_admin() ) {
@@ -15,22 +15,16 @@ function mantra_get_theme_options() {
global $mantra_defaults;
$optionsMantra = get_option( 'ma_options', (array)$mantra_defaults );
$optionsMantra = array_merge((array)$mantra_defaults, (array)$optionsMantra);
-return $optionsMantra;
+ return $optionsMantra;
}
-$mantra_options = mantra_get_theme_options();
-foreach ($mantra_options as $key => $value) {
- ${"$key"} = $value ;
-}
-
-
// Hooks/Filters
// add_action('admin_init', 'mantra_init_fn' ); // hooked by the settings plugin
add_action('admin_menu', 'mantra_add_page_fn');
add_action('init', 'mantra_init');
-
-$mantra_options= mantra_get_theme_options();
+$mantra_options = mantra_get_theme_options();
+extract( $mantra_options );
// Registering and enqueuing all scripts and styles for the init hook
function mantra_init() {
@@ -43,15 +37,12 @@ function mantra_add_page_fn() {
$page = add_theme_page('Mantra Settings', 'Mantra Settings', 'edit_theme_options', 'mantra-page', 'mantra_page_fn');
add_action( 'admin_print_styles-'.$page, 'mantra_admin_styles' );
add_action('admin_print_scripts-'.$page, 'mantra_admin_scripts');
-
}
// Adding the styles for the Mantra admin page used when mantra_add_page_fn() is launched
function mantra_admin_styles() {
- wp_register_style( 'mantra-admin-style',get_template_directory_uri() . '/admin/css/admin.css', NULL, _CRYOUT_THEME_VERSION );
- wp_register_style( 'jquery-ui-style',get_template_directory_uri() . '/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css', NULL, _CRYOUT_THEME_VERSION );
- wp_enqueue_style( 'mantra-admin-style' );
- wp_enqueue_style( 'jquery-ui-style' );
+ wp_enqueue_style( 'mantra-admin-style', get_template_directory_uri() . '/admin/css/admin.css', NULL, _CRYOUT_THEME_VERSION );
+ wp_enqueue_style( 'mantra-jqueryui-style', get_template_directory_uri() . '/resources/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css', NULL, _CRYOUT_THEME_VERSION );
}
// Adding the styles for the Mantra admin page used when mantra_add_page_fn() is launched
@@ -72,7 +63,7 @@ function mantra_admin_scripts() {
}
// For the WP uploader
- if(function_exists('wp_enqueue_media')) {
+ if (function_exists('wp_enqueue_media')) {
wp_enqueue_media();
} else {
wp_enqueue_script('media-upload');
@@ -81,19 +72,17 @@ function mantra_admin_scripts() {
}
// The JS used in the admin
- wp_register_script('cryout-admin-js',get_template_directory_uri() . '/admin/js/admin.js', NULL, _CRYOUT_THEME_VERSION );
- wp_enqueue_script('cryout-admin-js');
+ wp_enqueue_script( 'mantra-admin-js', get_template_directory_uri() . '/admin/js/admin.js', NULL, _CRYOUT_THEME_VERSION );
}
// The settings sections. All the referenced functions are found in admin-functions.php
function mantra_init_fn(){
-
register_setting('ma_options', 'ma_options', 'ma_options_validate' );
-/**************
- sections
-**************/
+ /**************
+ sections
+ **************/
add_settings_section('layout_section', __('Layout Settings','mantra'), 'cryout_section_layout_fn', 'mantra-page');
add_settings_section('header_section', __('Header Settings','mantra'), 'cryout_section_header_fn', 'mantra-page');
@@ -107,12 +96,13 @@ function mantra_init_fn(){
add_settings_section('socials_section', __('Social Media Settings','mantra') , 'cryout_section_social_fn', 'mantra-page');
add_settings_section('misc_section', __('Miscellaneous Settings','mantra') , 'cryout_section_misc_fn', 'mantra-page');
-/*** layout ***/
+ /*** layout ***/
add_settings_field('mantra_side', __('Main Layout','mantra') , 'cryout_setting_side_fn', 'mantra-page', 'layout_section');
add_settings_field('mantra_sidewidth', __('Content / Sidebar Width','mantra') , 'cryout_setting_sidewidth_fn', 'mantra-page', 'layout_section');
+ add_settings_field('mantra_magazinelayout', __('Magazine Layout','mantra') , 'cryout_setting_magazinelayout_fn', 'mantra-page', 'layout_section');
add_settings_field('mantra_mobile', __('Responsiveness','mantra') , 'cryout_setting_mobile_fn', 'mantra-page', 'layout_section');
-/*** presentation ***/
+ /*** presentation ***/
add_settings_field('mantra_frontpage', __('Enable Presentation Page','mantra') , 'cryout_setting_frontpage_fn', 'mantra-page', 'presentation_section');
add_settings_field('mantra_frontposts', __('Show Posts on Presentation Page','mantra') , 'cryout_setting_frontposts_fn', 'mantra-page', 'presentation_section');
add_settings_field('mantra_frontslider', __('Slider Settings','mantra') , 'cryout_setting_frontslider_fn', 'mantra-page', 'presentation_section');
@@ -120,15 +110,17 @@ function mantra_init_fn(){
add_settings_field('mantra_frontcolumns', __('Presentation Page Columns','mantra') , 'cryout_setting_frontcolumns_fn', 'mantra-page', 'presentation_section');
add_settings_field('mantra_fronttext', __('Extras','mantra') , 'cryout_setting_fronttext_fn', 'mantra-page', 'presentation_section');
-/*** header ***/
+ /*** header ***/
add_settings_field('mantra_hheight', __('Header Height','mantra') , 'cryout_setting_hheight_fn', 'mantra-page', 'header_section');
add_settings_field('mantra_himage', __('Header Image','mantra') , 'cryout_setting_himage_fn', 'mantra-page', 'header_section');
add_settings_field('mantra_siteheader', __('Site Header','mantra') , 'cryout_setting_siteheader_fn', 'mantra-page', 'header_section');
add_settings_field('mantra_logoupload', __('Custom Logo Upload','mantra') , 'cryout_setting_logoupload_fn', 'mantra-page', 'header_section');
add_settings_field('mantra_headermargin', __('Header Spacing','mantra') , 'cryout_setting_headermargin_fn', 'mantra-page', 'header_section');
+ add_settings_field('mantra_menualign', __('Main Menu Alignment','mantra') , 'cryout_setting_menualign_fn', 'mantra-page', 'header_section');
add_settings_field('mantra_menurounded', __('Rounded Menu Corners','mantra') , 'cryout_setting_menurounded_fn', 'mantra-page', 'header_section');
add_settings_field('mantra_favicon', __('FavIcon Upload','mantra') , 'cryout_setting_favicon_fn', 'mantra-page', 'header_section');
-/*** text ***/
+
+ /*** text ***/
add_settings_field('mantra_fontfamily', __('General Font','mantra') , 'cryout_setting_fontfamily_fn', 'mantra-page', 'text_section');
add_settings_field('mantra_fontsize', __('General Font Size','mantra') , 'cryout_setting_fontsize_fn', 'mantra-page', 'text_section');
add_settings_field('mantra_fonttitle', __('Post Title Font ','mantra') , 'cryout_setting_fonttitle_fn', 'mantra-page', 'text_section');
@@ -143,8 +135,8 @@ function mantra_init_fn(){
add_settings_field('mantra_lineheight', __('Line Height','mantra') , 'cryout_setting_lineheight_fn', 'mantra-page', 'text_section');
add_settings_field('mantra_wordspace', __('Word spacing','mantra') , 'cryout_setting_wordspace_fn', 'mantra-page', 'text_section');
add_settings_field('mantra_letterspace', __('Letter spacing','mantra') , 'cryout_setting_letterspace_fn', 'mantra-page', 'text_section');
- add_settings_field('mantra_textshadow', __('Text shadow','mantra') , 'cryout_setting_textshadow_fn', 'mantra-page', 'text_section');
-/*** appereance ***/
+
+ /*** appearance ***/
add_settings_field('mantra_sitebackground', __('Background Image','mantra') , 'cryout_setting_sitebackground_fn', 'mantra-page', 'appereance_section');
add_settings_field('mantra_backcolor', __('Background Color','mantra') , 'cryout_setting_backcolor_fn', 'mantra-page', 'appereance_section');
add_settings_field('mantra_headercolor', __('Header (Banner and Menu) Background Color','mantra') , 'cryout_setting_headercolor_fn', 'mantra-page', 'appereance_section');
@@ -152,10 +144,8 @@ function mantra_init_fn(){
add_settings_field('mantra_menubg', __('Menu Items Background Color','mantra') , 'cryout_setting_menubg_fn', 'mantra-page', 'appereance_section');
add_settings_field('mantra_s1bg', __('First Sidebar Background Color','mantra') , 'cryout_setting_first_sidebar_fn', 'mantra-page', 'appereance_section');
add_settings_field('mantra_s2bg', __('Second Sidebar Background Color','mantra') , 'cryout_setting_second_sidebar_fn', 'mantra-page', 'appereance_section');
-
add_settings_field('mantra_titlecolor', __('Site Title Color','mantra') , 'cryout_setting_titlecolor_fn', 'mantra-page', 'appereance_section');
add_settings_field('mantra_descriptioncolor', __('Site Description Color','mantra') , 'cryout_setting_descriptioncolor_fn', 'mantra-page', 'appereance_section');
-
add_settings_field('mantra_contentcolor', __('Content Text Color','mantra') , 'cryout_setting_contentcolor_fn', 'mantra-page', 'appereance_section');
add_settings_field('mantra_linkscolor', __('Links Color','mantra') , 'cryout_setting_linkscolor_fn', 'mantra-page', 'appereance_section');
add_settings_field('mantra_hovercolor', __('Links Hover Color','mantra') , 'cryout_setting_hovercolor_fn', 'mantra-page', 'appereance_section');
@@ -168,10 +158,10 @@ function mantra_init_fn(){
add_settings_field('mantra_footerheader', __('Footer Widget Header Text Color','mantra') , 'cryout_setting_footerheader_fn', 'mantra-page', 'appereance_section');
add_settings_field('mantra_footertext', __('Footer Widget Link Color','mantra') , 'cryout_setting_footertext_fn', 'mantra-page', 'appereance_section');
add_settings_field('mantra_footerhover', __('Footer Widget Hover Color','mantra') , 'cryout_setting_footerhover_fn', 'mantra-page', 'appereance_section');
-/*** graphics ***/
+
+ /*** graphics ***/
add_settings_field('mantra_breadcrumbs', __('Breadcrumbs','mantra') , 'cryout_setting_breadcrumbs_fn', 'mantra-page', 'graphics_section');
add_settings_field('mantra_pagination', __('Pagination','mantra') , 'cryout_setting_pagination_fn', 'mantra-page', 'graphics_section');
- add_settings_field('mantra_menualign', __('Main Menu Alignment','mantra') , 'cryout_setting_menualign_fn', 'mantra-page', 'graphics_section');
add_settings_field('mantra_image', __('Post Images Border','mantra') , 'cryout_setting_image_fn', 'mantra-page', 'graphics_section');
add_settings_field('mantra_caption', __('Caption Border','mantra') , 'cryout_setting_caption_fn', 'mantra-page', 'graphics_section');
add_settings_field('mantra_pin', __('Caption Pin','mantra') , 'cryout_setting_pin_fn', 'mantra-page', 'graphics_section');
@@ -186,7 +176,8 @@ function mantra_init_fn(){
add_settings_field('mantra_comtext', __('Text Under Comments','mantra') , 'cryout_setting_comtext_fn', 'mantra-page', 'graphics_section');
add_settings_field('mantra_comclosed', __('Comments are closed text','mantra') , 'cryout_setting_comclosed_fn', 'mantra-page', 'graphics_section');
add_settings_field('mantra_comoff', __('Comments off','mantra') , 'cryout_setting_comoff_fn', 'mantra-page', 'graphics_section');
-/*** post metas***/
+
+ /*** post metas ***/
add_settings_field('mantra_postcomlink', __('Post Comments Link','mantra') , 'cryout_setting_postcomlink_fn', 'mantra-page', 'post_section');
add_settings_field('mantra_postdate', __('Post Date','mantra') , 'cryout_setting_postdate_fn', 'mantra-page', 'post_section');
add_settings_field('mantra_posttime', __('Post Time','mantra') , 'cryout_setting_posttime_fn', 'mantra-page', 'post_section');
@@ -195,29 +186,32 @@ function mantra_init_fn(){
add_settings_field('mantra_postmetas', __('Meta Bar','mantra') , 'cryout_setting_postmetas_fn', 'mantra-page', 'post_section');
add_settings_field('mantra_posttag', __('Post Tags','mantra') , 'cryout_setting_posttag_fn', 'mantra-page', 'post_section');
add_settings_field('mantra_postbook', __('Post Permalink','mantra') , 'cryout_setting_postbook_fn', 'mantra-page', 'post_section');
-/*** post exceprts***/
+
+ /*** post exceprts ***/
add_settings_field('mantra_excerpthome', __('Post Excerpts on Home Page','mantra') , 'cryout_setting_excerpthome_fn', 'mantra-page', 'excerpt_section');
add_settings_field('mantra_excerptsticky', __('Affect Sticky Posts','mantra') , 'cryout_setting_excerptsticky_fn', 'mantra-page', 'excerpt_section');
add_settings_field('mantra_excerptarchive', __('Post Excerpts on Archive and Category Pages','mantra') , 'cryout_setting_excerptarchive_fn', 'mantra-page', 'excerpt_section');
add_settings_field('mantra_excerptwords', __('Number of Words for Post Excerpts ','mantra') , 'cryout_setting_excerptwords_fn', 'mantra-page', 'excerpt_section');
- add_settings_field('mantra_magazinelayout', __('Magazine Layout','mantra') , 'cryout_setting_magazinelayout_fn', 'mantra-page', 'excerpt_section');
add_settings_field('mantra_excerptdots', __('Excerpt suffix','mantra') , 'cryout_setting_excerptdots_fn', 'mantra-page', 'excerpt_section');
add_settings_field('mantra_excerptcont', __('Continue reading link text ','mantra') , 'cryout_setting_excerptcont_fn', 'mantra-page', 'excerpt_section');
add_settings_field('mantra_excerpttags', __('HTML tags in Excerpts','mantra') , 'cryout_setting_excerpttags_fn', 'mantra-page', 'excerpt_section');
-/*** featured ***/
+
+ /*** featured ***/
add_settings_field('mantra_fpost', __('Featured Images as POST Thumbnails ','mantra') , 'cryout_setting_fpost_fn', 'mantra-page', 'featured_section');
add_settings_field('mantra_fauto', __('Auto Select Images From Posts ','mantra') , 'cryout_setting_fauto_fn', 'mantra-page', 'featured_section');
add_settings_field('mantra_falign', __('Thumbnails Alignment ','mantra') , 'cryout_setting_falign_fn', 'mantra-page', 'featured_section');
add_settings_field('mantra_fsize', __('Thumbnails Size ','mantra') , 'cryout_setting_fsize_fn', 'mantra-page', 'featured_section');
add_settings_field('mantra_fheader', __('Featured Images as HEADER Images ','mantra') , 'cryout_setting_fheader_fn', 'mantra-page', 'featured_section');
-/*** socials ***/
+
+ /*** socials ***/
add_settings_field('mantra_socials1', __('Link nr. 1','mantra') , 'cryout_setting_socials1_fn', 'mantra-page', 'socials_section');
add_settings_field('mantra_socials2', __('Link nr. 2','mantra') , 'cryout_setting_socials2_fn', 'mantra-page', 'socials_section');
add_settings_field('mantra_socials3', __('Link nr. 3','mantra') , 'cryout_setting_socials3_fn', 'mantra-page', 'socials_section');
add_settings_field('mantra_socials4', __('Link nr. 4','mantra') , 'cryout_setting_socials4_fn', 'mantra-page', 'socials_section');
add_settings_field('mantra_socials5', __('Link nr. 5','mantra') , 'cryout_setting_socials5_fn', 'mantra-page', 'socials_section');
add_settings_field('mantra_socialshow', __('Socials display','mantra') , 'cryout_setting_socialsdisplay_fn', 'mantra-page', 'socials_section');
-/*** misc ***/
+
+ /*** misc ***/
add_settings_field('mantra_copyright', __('Custom Footer Text','mantra') , 'cryout_setting_copyright_fn', 'mantra-page', 'misc_section');
add_settings_field('mantra_customcss', __('Custom CSS','mantra') , 'cryout_setting_customcss_fn', 'mantra-page', 'misc_section');
add_settings_field('mantra_customjs', __('Custom JavaScript','mantra') , 'cryout_setting_customjs_fn', 'mantra-page', 'misc_section');
@@ -241,7 +235,7 @@ function mantra_page_fn() {
} ?>
-<div class="wrap"><!-- Admin wrap page -->
+<div class="wrap cryout-admin"><!-- Admin wrap page -->
<h2 id="empty-placeholder-heading-for-wp441-notice-forced-move"></h2>
<div id="lefty"><!-- Left side of page - the options area -->
@@ -263,7 +257,7 @@ function mantra_page_fn() {
} ?>
<div id="jsAlert" class=""><b>Checking jQuery functionality...</b><br/><em>If this message remains visible after the page has loaded then there is a problem with your WordPress jQuery library. This can have several causes, including incompatible plugins.
-The Parabola Settings page cannot function without jQuery. </em></div>
+The Settings page cannot function without jQuery.</em></div>
<div id="main-options">
<?php
@@ -277,6 +271,9 @@ The Parabola Settings page cannot function without jQuery. </em></div>
<div id="righty" ><!-- Right side of page - Coffee, RSS tips and others -->
+
+ <?php do_action('mantra_before_righty') ?>
+
<div class="postbox donate">
<h3 class="hndle"> Coffee Break </h3>
<div class="inside"><?php echo "<p>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.</p>
@@ -295,10 +292,16 @@ The Parabola Settings page cannot function without jQuery. </em></div>
</div>
<p>Or socially smother, caress and embrace us:</p>
- <div style="display:table;float:none;margin:0 auto;">
- <div id="fb-root"></div><div class="fb-like" data-href="https://www.facebook.com/CryoutCreations" data-layout="button" data-action="like" data-show-faces="false" data-share="false"></div>
- <a href="https://twitter.com/cryoutcreations" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false">Follow @cryoutcreations</a>
- <script src="https://apis.google.com/js/platform.js" async defer></script> <div class="g-plusone" data-href="https://plus.google.com/+CryoutcreationsEuCR2" data-size="medium" data-annotation="none"></div>
+ <div class="social-buttons">
+ <a href="https://www.facebook.com/cryoutcreations" target="_blank" title="Follow us on Facebook">
+ <img src="<?php echo get_template_directory_uri() . '/admin/images/icon-facebook.png' ?>" alt="Facebook">
+ </a>
+ <a href="https://twitter.com/cryoutcreations" target="_blank" title="Follow us on Twitter">
+ <img src="<?php echo get_template_directory_uri() . '/admin/images/icon-twitter.png' ?>" alt="Twitter">
+ </a>
+ <a href="https://plus.google.com/106863427325889416242" target="_blank" title="Follow us on Google+">
+ <img src="<?php echo get_template_directory_uri() . '/admin/images/icon-googleplus.png' ?>" alt="Google+">
+ </a>
</div>
</div><!-- inside -->
</div><!-- donate -->
@@ -314,7 +317,6 @@ The Parabola Settings page cannot function without jQuery. </em></div>
<input type="hidden" name="mantra_export" value="true" />
<input type="submit" class="button" value="<?php _e('Export Theme options', 'mantra'); ?>" />
</form>
- <br>
<form action="" method="post">
<input type="hidden" name="mantra_import" value="true" />
<input type="submit" class="button" value="<?php _e('Import Theme options', 'mantra'); ?>" />
@@ -354,8 +356,9 @@ The Parabola Settings page cannot function without jQuery. </em></div>
</div><!-- wrap -->
<script>
-var mantra_tooltip_icon_url = '<?php echo get_template_directory_uri(); ?>/images/icon-tooltip.png'
+var mantra_tooltip_icon_url = '<?php echo get_template_directory_uri(); ?>/resources/images/icon-tooltip.png'
</script>
<?php } // mantra_page_fn()
+
// FIN \ No newline at end of file
diff --git a/themes/mantra/admin/sanitize.php b/themes/mantra/admin/sanitize.php
index f41f3387..12b7492e 100644
--- a/themes/mantra/admin/sanitize.php
+++ b/themes/mantra/admin/sanitize.php
@@ -7,73 +7,81 @@
*/
/* Font family arrays */
-
- $fontSans = array("Segoe UI, Arial, sans-serif",
- "Verdana, Geneva, sans-serif " ,
- "Geneva, sans-serif ",
- "Helvetica Neue, Arial, Helvetica, sans-serif",
- "Helvetica, sans-serif" ,
- "Century Gothic, AppleGothic, sans-serif",
- "Futura, Century Gothic, AppleGothic, sans-serif",
- "Calibri, Arian, sans-serif",
- "Myriad Pro, Myriad,Arial, sans-serif",
- "Trebuchet MS, Arial, Helvetica, sans-serif" ,
- "Gill Sans, Calibri, Trebuchet MS, sans-serif",
- "Impact, Haettenschweiler, Arial Narrow Bold, sans-serif ",
- "Tahoma, Geneva, sans-serif" ,
- "Arial, Helvetica, sans-serif" ,
- "Arial Black, Gadget, sans-serif",
- "Lucida Sans Unicode, Lucida Grande, sans-serif ");
-
- $fontSerif = array("Georgia, Times New Roman, Times, serif" ,
- "Times New Roman, Times, serif",
- "Cambria, Georgia, Times, Times New Roman, serif",
- "Palatino Linotype, Book Antiqua, Palatino, serif",
- "Book Antiqua, Palatino, serif",
- "Palatino, serif",
- "Baskerville, Times New Roman, Times, serif",
- "Bodoni MT, serif",
- "Copperplate Light, Copperplate Gothic Light, serif",
- "Garamond, Times New Roman, Times, serif");
-
- $fontMono = array( "Courier New, Courier, monospace" ,
- "Lucida Console, Monaco, monospace",
- "Consolas, Lucida Console, Monaco, monospace",
- "Monaco, monospace");
-
- $fontCursive = array( "Lucida Casual, Comic Sans MS , cursive ",
- "Brush Script MT,Phyllis,Lucida Handwriting,cursive",
- "Phyllis,Lucida Handwriting,cursive",
- "Lucida Handwriting,cursive",
- "Comic Sans MS, cursive");
-
-/* Social media links */
-
- $socialNetworks = array ("Amazon", "Dailymotion", "Delicious", "DeviantArt", "Digg", "Etsy", "Facebook", "Flickr",
- "Google", "GoodReads", "GooglePlus", "IMDb", "Instagram", "LastFM", "LinkedIn", "Mail",
- "MySpace", "Picasa", "Pinterest", "Reddit", "RSS", "Skype", "Steam", "SoundCloud",
- "StumbleUpon", "Technorati", "Tumblr", "Twitch", "Twitter", "Vimeo", "VK", "WordPress",
- "Xing", "Yahoo", "Yelp", "YouTube" );
-
-
-
-
-if (!function_exists ('ma_options_validate') ) :
+$mantra_fonts = array(
+ 'fontSans' => array(
+ "Segoe UI, Arial, sans-serif",
+ "Verdana, Geneva, sans-serif ",
+ "Geneva, sans-serif ",
+ "Helvetica Neue, Arial, Helvetica, sans-serif",
+ "Helvetica, sans-serif",
+ "Century Gothic, AppleGothic, sans-serif",
+ "Futura, Century Gothic, AppleGothic, sans-serif",
+ "Calibri, Arian, sans-serif",
+ "Myriad Pro, Myriad,Arial, sans-serif",
+ "Trebuchet MS, Arial, Helvetica, sans-serif",
+ "Gill Sans, Calibri, Trebuchet MS, sans-serif",
+ "Impact, Haettenschweiler, Arial Narrow Bold, sans-serif ",
+ "Tahoma, Geneva, sans-serif",
+ "Arial, Helvetica, sans-serif" ,
+ "Arial Black, Gadget, sans-serif",
+ "Lucida Sans Unicode, Lucida Grande, sans-serif ",
+ ),
+ 'fontSerif' => array(
+ "Georgia, Times New Roman, Times, serif",
+ "Times New Roman, Times, serif",
+ "Cambria, Georgia, Times, Times New Roman, serif",
+ "Palatino Linotype, Book Antiqua, Palatino, serif",
+ "Book Antiqua, Palatino, serif",
+ "Palatino, serif",
+ "Baskerville, Times New Roman, Times, serif",
+ "Bodoni MT, serif",
+ "Copperplate Light, Copperplate Gothic Light, serif",
+ "Garamond, Times New Roman, Times, serif",
+ ),
+ 'fontMono' => array(
+ "Courier New, Courier, monospace",
+ "Lucida Console, Monaco, monospace",
+ "Consolas, Lucida Console, Monaco, monospace",
+ "Monaco, monospace",
+ ),
+ 'fontCursive' => array(
+ "Lucida Casual, Comic Sans MS , cursive ",
+ "Brush Script MT,Phyllis,Lucida Handwriting,cursive",
+ "Phyllis,Lucida Handwriting,cursive",
+ "Lucida Handwriting,cursive",
+ "Comic Sans MS, cursive",
+ ),
+);
+
+/* Social media networks */
+$mantra_socials = array(
+ "AboutMe", "AIM", "Amazon", "Contact", "Delicious", "DeviantArt",
+ "Digg", "Discord", "Dribbble", "Etsy", "Facebook", "Flickr",
+ "FriendFeed", "Github", "GoodReads", "GooglePlus", "IMDb", "Instagram",
+ "LastFM", "LinkedIn", "Mail", "MindVox", "MySpace", "Newsvine",
+ "Patreon", "PayPal", "Phone", "Picasa", "Pinterest", "Reddit",
+ "RSS", "ShareThis", "Skype", "Steam", "Steam-old", "SoundCloud",
+ "StumbleUpon", "Technorati", "TripAdvisor", "Tumblr", "Twitch", "Twitter",
+ "Twitter-old", "Vimeo", "VK", "WordPress", "Yahoo", "Yelp",
+ "YouTube", "YouTube-old", "Xing",
+ );
+
+if ( !function_exists ('ma_options_validate') ) :
/*
*
* Validate user data
*
*/
function ma_options_validate($input) {
-global $mantra_defaults;
- // Sanitize the texbox input
+ global $mantra_defaults;
-/*** 1 ***/
- if(isset($input['mantra_sidewidth']) && is_numeric($input['mantra_sidewidth']) && $input['mantra_sidewidth']>=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']; }
+ /** 1 **/
+
+ if (isset($input['mantra_sidewidth']) && is_numeric($input['mantra_sidewidth']) && $input['mantra_sidewidth']>=500 && $input['mantra_sidewidth'] <=1760) {} else {$input['mantra_sidewidth']=$mantra_defaults['mantra_sidewidth']; }
+ if (isset($input['mantra_sidebar']) && is_numeric($input['mantra_sidebar']) && $input['mantra_sidebar']>=220 && $input['mantra_sidebar'] <=800) {} else {$input['mantra_sidebar']=$mantra_defaults['mantra_sidebar']; }
- if(isset($input['mantra_sidewidthRel']) && is_numeric($input['mantra_sidewidthRel']) && $input['mantra_sidewidthRel']>=40 && $input['mantra_sidewidthRel'] <=80) {} else {$input['mantra_sidewidthRel']=$mantra_defaults['mantra_sidewidthRel']; }
- if(isset($input['mantra_sidebarRel']) && is_numeric($input['mantra_sidebarRel']) && $input['mantra_sidebarRel']>=20 && $input['mantra_sidebarRel'] <=50) {} else {$input['mantra_sidebarRel']=$mantra_defaults['mantra_sidebarRel']; }
+ if (isset($input['mantra_sidewidthRel']) && is_numeric($input['mantra_sidewidthRel']) && $input['mantra_sidewidthRel']>=40 && $input['mantra_sidewidthRel'] <=80) {} else {$input['mantra_sidewidthRel']=$mantra_defaults['mantra_sidewidthRel']; }
+ if (isset($input['mantra_sidebarRel']) && is_numeric($input['mantra_sidebarRel']) && $input['mantra_sidebarRel']>=20 && $input['mantra_sidebarRel'] <=50) {} else {$input['mantra_sidebarRel']=$mantra_defaults['mantra_sidebarRel']; }
if (isset($input['mantra_zoom'])) $input['mantra_zoom'] = "1"; else $input['mantra_zoom'] = 0;
@@ -109,7 +117,7 @@ global $mantra_defaults;
$input['mantra_fwidth'] = intval(wp_kses_data($input['mantra_fwidth']));
$input['mantra_fheight'] = intval(wp_kses_data($input['mantra_fheight']));
-/*** 2 ***/
+ /** 2 **/
$cryout_special_terms = array('mailto:','callto://');
$cryout_special_keys = array('Mail', 'Skype');
@@ -124,8 +132,8 @@ global $mantra_defaults;
endif;
}
for ($i=0;$i<=5;$i++) {
- if (!isset($input['mantra_socialsdisplay'.$i])) {$input['mantra_socialsdisplay'.$i] = "0";}
- }
+ if (!isset($input['mantra_socialsdisplay'.$i])) { $input['mantra_socialsdisplay'.$i] = "0"; }
+ }
$input['mantra_favicon'] = esc_url_raw($input['mantra_favicon']);
$input['mantra_logoupload'] = esc_url_raw($input['mantra_logoupload']);
@@ -140,32 +148,6 @@ global $mantra_defaults;
$input['mantra_googlefontside'] = trim(wp_kses_data($input['mantra_googlefontside']));
$input['mantra_googlefontsubheader'] = trim(wp_kses_data($input['mantra_googlefontsubheader']));
- if($input['mantra_googlefont']) {
- $mantra_googlefont2 = $input['mantra_googlefont'];
- $mantra_googlefont2= preg_replace( '/\s+/', '+', $mantra_googlefont2 );
- $mantra_googlefont2= "//fonts.googleapis.com/css?family=".$mantra_googlefont2;
- $input['mantra_googlefont2'] = $mantra_googlefont2;
- } else $input['mantra_googlefont2'] = '';
- if($input['mantra_googlefonttitle']) {
- $mantra_googlefonttitle2 = $input['mantra_googlefonttitle'];
- $mantra_googlefonttitle2= preg_replace( '/\s+/', '+', $mantra_googlefonttitle2 );
- $mantra_googlefonttitle2= "//fonts.googleapis.com/css?family=".$mantra_googlefonttitle2;
- $input['mantra_googlefonttitle2'] = $mantra_googlefonttitle2;
- } else $input['mantra_googlefonttitle2'] = '';
- if($input['mantra_googlefontside']) {
- $mantra_googlefontside2 = $input['mantra_googlefontside'];
- $mantra_googlefontside2= preg_replace( '/\s+/', '+', $mantra_googlefontside2 );
- $mantra_googlefontside2= "//fonts.googleapis.com/css?family=".$mantra_googlefontside2;
- $input['mantra_googlefontside2'] = $mantra_googlefontside2;
- } else $input['mantra_googlefontside2'] = '';
- if($input['mantra_googlefontsubheader']) {
- $mantra_googlefontsubheader2 = $input['mantra_googlefontsubheader'];
- $mantra_googlefontsubheader2= preg_replace( '/\s+/', '+', $mantra_googlefontsubheader2 );
- $mantra_googlefontsubheader2= "//fonts.googleapis.com/css?family=".$mantra_googlefontsubheader2;
- $input['mantra_googlefontsubheader2'] = $mantra_googlefontsubheader2;
- } else $input['mantra_googlefontsubheader2'] = '';
-
-
$input['mantra_frontpostscount'] = intval(wp_kses_data($input['mantra_frontpostscount']));
$input['mantra_fpsliderborderwidth'] = intval(wp_kses_data($input['mantra_fpsliderborderwidth']));
@@ -176,7 +158,8 @@ global $mantra_defaults;
$input['mantra_fpsliderwidth'] = intval(wp_kses_data($input['mantra_fpsliderwidth']));
$input['mantra_fpsliderheight'] = intval(wp_kses_data($input['mantra_fpsliderheight']));
-/** 3 ***/
+ /** 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']);
@@ -200,7 +183,8 @@ global $mantra_defaults;
$input['mantra_colimageheight'] = intval(wp_kses_data($input['mantra_colimageheight']));
-/** 4 **/
+ /** 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']);
@@ -227,13 +211,13 @@ global $mantra_defaults;
$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 );
+ $resetDefault = ( ! empty( $input['mantra_defaults']) ? true : false );
- if ($resetDefault) {$input=$mantra_defaults;}
+ if ($resetDefault) { $input = $mantra_defaults; }
return $input; // return validated input
}
-
endif;
-?>
+
+// FIN \ No newline at end of file
diff --git a/themes/mantra/admin/settings.php b/themes/mantra/admin/settings.php
index 196be4c3..7f21ab3c 100644
--- a/themes/mantra/admin/settings.php
+++ b/themes/mantra/admin/settings.php
@@ -14,15 +14,14 @@ function cryout_section_featured_fn() { }
function cryout_section_social_fn() { }
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");
+ global $mantra_options;
+ $options = 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");
@@ -30,13 +29,12 @@ global $mantra_options;
$layout_text["3cSl"] = __("Three columns, sidebars on the left","mantra");
$layout_text["3cSs"] = __("Three columns, one sidebar on each side","mantra");
-// For backward compatibility;
+ // 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) {
+ foreach($options as $item) {
$checkedClass = ($mantra_options['mantra_side']==$item) ? ' checkedClass' : '';
echo "<label id='$item' class='layouts $checkedClass'><input ";
checked($mantra_options['mantra_side'],$item);
@@ -46,22 +44,15 @@ global $mantra_options;
right and two sidebars on each side.","mantra")."</small></div>";
}
- //SLIDER - Name: ma_options[sidewidth]
-function cryout_setting_sidewidth_fn() {
+function cryout_setting_sidewidth_fn() {
global $mantra_options;
- $items = array ("Absolute" , "Relative");
- $itemsare = array( __("Absolute","mantra"), __("Relative *NO LONGER SUPPORTED","mantra"));
- if ( "Relative" != $mantra_options['mantra_dimselect'] ) {
- // relative dimmensions are no longer supported by the theme; only display them to existing sites that use them
- unset($items[1]);
- unset($itemsare[1]);
- }
- echo __("Dimensions to use: ","mantra")." <select id='mantra_dimselect' name='ma_options[mantra_dimselect]'>";
- foreach($items as $id=>$item) {
+ $options = array ("Absolute");
+ $labels = array( __("Absolute","mantra") );
+ echo __("Dimensions to use:","mantra")." <select id='mantra_dimselect' name='ma_options[mantra_dimselect]'>";
+ foreach($options as $id=>$item) {
echo "<option value='$item'";
selected($mantra_options['mantra_dimselect'],$item);
- if ( 'Relative' == $item ) echo ' disabled="disabled"';
- echo ">$itemsare[$id]</option>";
+ echo ">$labels[$id]</option>";
}
echo "</select>";
?>
@@ -74,11 +65,11 @@ jQuery(document).ready(function() {
step:10,
min: 0,
max: 1980,
- values: [ <?php echo $mantra_options['mantra_sidewidth'] ?>, <?php echo ($mantra_options['mantra_sidewidth']+$mantra_options['mantra_sidebar']); ?> ],
+ values: [ <?php echo absint($mantra_options['mantra_sidewidth']) ?>, <?php echo absint($mantra_options['mantra_sidewidth']+$mantra_options['mantra_sidebar']); ?> ],
slide: function( event, ui ) {
range=ui.values[ 1 ] - ui.values[ 0 ];
if (ui.values[ 0 ]<500) {ui.values[ 0 ]=500; return false;};
- if( range<220 || range>800 ){ ui.values[ 1 ] = <?php echo $mantra_options['mantra_sidebar']+$mantra_options['mantra_sidewidth'];?>; return false; };
+ if( range<220 || range>800 ){ ui.values[ 1 ] = <?php echo absint($mantra_options['mantra_sidebar']+$mantra_options['mantra_sidewidth']);?>; return false; };
jQuery( "#mantra_sidewidth" ).val( ui.values[ 0 ] );
jQuery( "#mantra_sidebar" ).val( ui.values[ 1 ] - ui.values[ 0 ] );
jQuery( "#totalsize" ).html( ui.values[ 1 ]);
@@ -91,175 +82,114 @@ jQuery(document).ready(function() {
}
});
- jQuery( "#mantra_sidewidth" ).val( <?php echo $mantra_options['mantra_sidewidth'];?> );
- jQuery( "#mantra_sidebar" ).val( <?php echo $mantra_options['mantra_sidebar'];?> );
- var percentage = <?php echo ($mantra_options['mantra_sidebar']/1980)*100;?> ;
- var leftwidth = <?php echo ($mantra_options['mantra_sidewidth']/1980)*100;?> ;
+ jQuery( "#mantra_sidewidth" ).val( <?php echo absint( $mantra_options['mantra_sidewidth'] );?> );
+ jQuery( "#mantra_sidebar" ).val( <?php echo absint( $mantra_options['mantra_sidebar'] );?> );
+ var percentage = <?php echo (absint($mantra_options['mantra_sidebar'])/1980)*100;?> ;
+ var leftwidth = <?php echo (absint($mantra_options['mantra_sidewidth'])/1980)*100;?> ;
jQuery( "#barb" ).css('left',-18+leftwidth+percentage/2+"%");
jQuery( "#contentb" ).css('left',-8+leftwidth/2+"%");
jQuery( "#totalb" ).css('left',-20+(percentage+leftwidth)/2+"%");
});
-jQuery(function() {
-
- jQuery( "#slider-rangeRel" ).slider({
- range: true,
- step:1,
- min: 0,
- max: 100,
- values: [ <?php echo $mantra_options['mantra_sidewidthRel'] ?>, <?php echo ($mantra_options['mantra_sidewidthRel']+$mantra_options['mantra_sidebarRel']); ?> ],
- slide: function( event, ui ) {
- range=ui.values[ 1 ] - ui.values[ 0 ];
- if (ui.values[ 0 ]<40) {ui.values[ 0 ]=40; return false;};
- if( range<20 || range>50 ){ ui.values[ 1 ] = <?php echo $mantra_options['mantra_sidebarRel']+$mantra_options['mantra_sidewidthRel'];?>; return false; };
- jQuery( "#mantra_sidewidthRel" ).val( ui.values[ 0 ] );
- jQuery( "#mantra_sidebarRel" ).val( ui.values[ 1 ] - ui.values[ 0 ] );
- jQuery( "#totalsizeRel" ).html( ui.values[ 1 ]);
- jQuery( "#contentsizeRel" ).html( ui.values[ 0 ]);jQuery( "#barsizeRel" ).html( ui.values[ 1 ]-ui.values[ 0 ]);
- var percentageRel = parseInt( jQuery( "#slider-rangeRel .ui-slider-range" ).css('width') );
- var leftwidthRel = parseInt( jQuery( "#slider-rangeRel .ui-slider-range" ).position().left );
- jQuery( "#barbRel" ).css('left',-80+leftwidthRel+percentageRel/2+"px");
- jQuery( "#contentbRel" ).css('left',-50+leftwidthRel/2+"px");
- jQuery( "#totalbRel" ).css('left',-100+(percentageRel+leftwidthRel)/2+"px");
- }
- });
-
- jQuery( "#mantra_sidewidthRel" ).val( <?php echo $mantra_options['mantra_sidewidthRel'];?> );
- jQuery( "#mantra_sidebarRel" ).val( <?php echo $mantra_options['mantra_sidebarRel'];?> );
- var percentageRel = <?php echo $mantra_options['mantra_sidebarRel'];?> ;
- var leftwidthRel = <?php echo $mantra_options['mantra_sidewidthRel'];?> ;
- jQuery( "#barbRel" ).css('left',-18+leftwidthRel+percentageRel/2+"%");
- jQuery( "#contentbRel" ).css('left',-8+leftwidthRel/2+"%");
- jQuery( "#totalbRel" ).css('left',-20+(percentageRel+leftwidthRel)/2+"%");
-
-});
</script>
<div id="absolutedim">
- <b id="contentb" style="display:block;float:left;position:absolute;margin-top:-20px;"><?php _e("Content =","mantra");?> <span id="contentsize"><?php echo $mantra_options['mantra_sidewidth'];?></span>px</b>
- <b id="barb" style="margin-left:40px;color:#F6A828;display:block;float:left;position:absolute;margin-top:-20px;" ><?php _e("Sidebar(s) =","mantra");?> <span id="barsize"><?php echo $mantra_options['mantra_sidebar'];?></span>px</b>
- <b id="totalb" style="margin-left:40px;color:#999;display:block;float:left;position:absolute;margin-top:12px;" >^&mdash;&mdash;&mdash; <?php _e("Total width =","mantra");?> <span id="totalsize"><?php echo $mantra_options['mantra_sidewidth']+ $mantra_options['mantra_sidebar'];?></span>px &mdash;&mdash;&mdash;^</b>
-
-<p>
- <?php echo "<input type='hidden' name='ma_options[mantra_sidewidth]' id='mantra_sidewidth' />";
- echo "<input type='hidden' name='ma_options[mantra_sidebar]' id='mantra_sidebar' />";?>
-</p>
-<div id="slider-range"></div>
-
- <?php
- echo "<br><div><small>".__("Select the width of your <b>content</b> and <b>sidebar(s)</b>.
+ <b id="contentb" style="display:block;float:left;position:absolute;margin-top:-30px;"><?php _e("Content =","mantra");?> <span id="contentsize"><?php echo absint( $mantra_options['mantra_sidewidth'] );?></span>px</b>
+ <b id="barb" style="margin-left:40px;color:#F6A828;display:block;float:left;position:absolute;margin-top:-30px;" ><?php _e("Sidebar(s) =","mantra");?> <span id="barsize"><?php echo absint( $mantra_options['mantra_sidebar'] );?></span>px</b>
+ <b id="totalb" style="margin-left:40px;color:#999;display:block;float:left;position:absolute;margin-top:22px;" >^&mdash;&mdash;&mdash; <?php _e("Total width =","mantra");?> <span id="totalsize"><?php echo absint( $mantra_options['mantra_sidewidth']+ $mantra_options['mantra_sidebar'] );?></span>px &mdash;&mdash;&mdash;^</b>
+ <p>
+ <input type='hidden' name='ma_options[mantra_sidewidth]' id='mantra_sidewidth' />
+ <input type='hidden' name='ma_options[mantra_sidebar]' id='mantra_sidebar' />
+ </p>
+ <div id="slider-range"></div>
+ <br>
+ <div><small><?php _e("Select the width of your <b>content</b> and <b>sidebar(s)</b>.
While the content cannot be less than 500px wide, the sidebar area is at least 220px and no more than 800px.<br />
- If you went for a 3 column area ( with 2 sidebars) they will each have half the selected width.","mantra")."</small></div>"; ?>
-
+ If you went for a 3 column area ( with 2 sidebars) they will each have half the selected width.","mantra") ?>
+ </small></div>
</div><!-- End absolutedim -->
-<div id="relativedim">
-
- <b id="contentbRel" style="display:block;float:left;position:absolute;margin-top:-20px;"><?php _e("Content =","mantra");?> <span id="contentsizeRel"><?php echo $mantra_options['mantra_sidewidthRel'];?></span>%</b>
- <b id="barbRel" style="margin-left:40px;color:#F6A828;display:block;float:left;position:absolute;margin-top:-20px;" ><?php _e("Sidebar(s) =","mantra");?> <span id="barsizeRel"><?php echo $mantra_options['mantra_sidebarRel'];?></span>%</b>
- <b id="totalbRel" style="margin-left:40px;color:#999;display:block;float:left;position:absolute;margin-top:12px;" >^&mdash;&mdash;&mdash; <?php _e("Total width =","mantra");?> <span id="totalsizeRel"><?php echo $mantra_options['mantra_sidewidthRel']+$mantra_options['mantra_sidebarRel'];?></span>% &mdash;&mdash;&mdash;^</b>
-
-<p>
- <?php echo "<input type='hidden' name='ma_options[mantra_sidewidthRel]' id='mantra_sidewidthRel' />";
- echo "<input type='hidden' name='ma_options[mantra_sidebarRel]' id='mantra_sidebarRel' />";?>
-
-</p>
-<div id="slider-rangeRel"></div>
- <?php
- echo "<br><div><small>".__("Select the width of your <b>content</b> and <b>sidebar(s)</b>.
- These are realtive dimmensions - relative to the user's browser. The total width is a percentage of the browser's width.<br />
- While the content cannot be less than 40% wide, the sidebar area is at least 20% and no more than 50%.<br />
- If you went for a 3 column area ( with 2 sidebars) they will each have half the selected width.","mantra")."</small></div>"; ?>
-</div><!-- End relativedim -->
<?php
+}
- }
-
-
-//CHECKBOX - Name: ma_options[mobile]
function cryout_setting_mobile_fn() {
global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_mobile' name='ma_options[mantra_mobile]'>";
- foreach($items as $id=>$item) {
+ foreach($options as $id=>$item) {
echo "<option value='$item'";
selected($mantra_options['mantra_mobile'],$item);
- echo ">$itemsare[$id]</option>";
+ echo ">$labels[$id]</option>";
}
echo "</select>";
echo " <label style='border:none;margin-left:10px;' for='mantra_zoom' class='socialsdisplay'><input ";
checked($mantra_options['mantra_zoom'],'1');
- echo " value='". $mantra_options['mantra_zoom'] ."' id='mantra_zoom' name='ma_options[mantra_zoom]' type='checkbox' /> Allow zoom </label>";
-
+ echo " value='". $mantra_options['mantra_zoom'] ."' id='mantra_zoom' name='ma_options[mantra_zoom]' type='checkbox' /> Allow zoom </label>";
+
echo "<div><small>".__("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.<br> Do not disable unless you have a good reason to.","mantra")."</small></div>";
}
-
////////////////////////////////
//// 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"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_frontpage' name='ma_options[mantra_frontpage]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_frontpage'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_frontpage'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Enable the presentation front-page. This will become your new home page. It has a slider and columns for presentation
text and images.<br>If you have this enabled but don't see a Presentation page then go to <a href='options-reading.php'> Settings &raquo; Reading </a> and make sure you have selected <strong>Front Page Displays</strong> as <Strong>Your Latest Posts</strong>.","mantra")."</small></div>";
if ($mantra_options['mantra_frontpage'] == 'Enable' && get_option('show_on_front') != 'posts') {
printf ( '<div class="slmini" style="color:#cb5920;">'.__('You have enabled the Presentation Page but your WordPress\' <em>Front page displays</em> option is set to use a static page. WordPress guidelines require that the static page option have priority over theme options.<br> Go to %1$s and set the <em>Front page displays</em> option to <em><strong>Your latest posts</strong></em> to display the presentation page.',"mantra").'</div>', '<a href="/wp-admin/options-reading.php" > Settings &raquo; Reading</a>');
};
-
}
function cryout_setting_frontposts_fn() {
global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_frontposts' name='ma_options[mantra_frontposts]'>";
- foreach($items as $id=>$item) {
+ foreach($options as $id=>$item) {
echo "<option value='$item'";
selected($mantra_options['mantra_frontposts'],$item);
- echo ">$itemsare[$id]</option>";
+ echo ">$labels[$id]</option>";
}
echo "</select> ";
echo "<input type='text' id='mantra_frontpostscount' name='ma_options[mantra_frontpostscount]' size='3' value='";
- echo $mantra_options['mantra_frontpostscount']."'> ".__('posts','mantra');
+ echo absint( $mantra_options['mantra_frontpostscount'] )."'> ".__('posts','mantra');
echo "<div><small>".__("Enable to display latest posts on the presentation page, below the columns. Sticky posts are always displayed and not counted.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[frontslider]
+
function cryout_setting_frontslider_fn() {
global $mantra_options;
-
-
+
echo "<div class='slmini'><b>".__("Slider Dimensions:","mantra")."</b> ";
echo "<input id='mantra_fpsliderwidth' name='ma_options[mantra_fpsliderwidth]' size='4' type='text' value='".esc_attr( $mantra_options['mantra_fpsliderwidth'] )."' /> px (".__("width","mantra").") <strong>X</strong> ";
echo "<input id='mantra_fpsliderheight' name='ma_options[mantra_fpsliderheight]' size='4' type='text' value='".esc_attr( $mantra_options['mantra_fpsliderheight'] )."' /> px (".__("height","mantra").")";
echo "<small>".__("The dimensions of your slider. Make sure your images are of the same size.","mantra")."</small></div>";
echo "<div class='slmini'><b>".__("Animation:","mantra")."</b> ";
- $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"));
+ $options = array ("random" , "fold", "fade", "slideInRight", "slideInLeft", "sliceDown", "sliceDownLeft", "sliceUp", "sliceUpLeft", "sliceUpDown" , "sliceUpDownLeft", "boxRandom", "boxRain", "boxRainReverse", "boxRainGrow" , "boxRainGrowReverse");
+ $labels = array( __("Random","mantra"), __("Fold","mantra"), __("Fade","mantra"), __("SlideInRight","mantra"), __("SlideInLeft","mantra"), __("SliceDown","mantra"), __("SliceDownLeft","mantra"), __("SliceUp","mantra"), __("SliceUpLeft","mantra"), __("SliceUpDown","mantra"), __("SliceUpDownLeft","mantra"), __("BoxRandom","mantra"), __("BoxRain","mantra"), __("BoxRainReverse","mantra"), __("BoxRainGrow","mantra"), __("BoxRainGrowReverse","mantra"));
echo "<select id='mantra_fpslideranim' name='ma_options[mantra_fpslideranim]'>";
- foreach($items as $id=>$item) {
+ foreach($options as $id=>$item) {
echo "<option value='$item'";
selected($mantra_options['mantra_fpslideranim'],$item);
- echo ">$itemsare[$id]</option>";
+ echo ">$labels[$id]</option>";
}
echo "</select>";
echo "<small>".__("The transition effect your slider will have.","mantra")."</small></div>";
@@ -280,29 +210,28 @@ function cryout_setting_frontslider_fn() {
echo "<div class='slmini'><b>".__("Slider navigation:","mantra")."</b> ";
- $items = array ("Numbers" , "Bullets" ,"None");
- $itemsare = array( __("Numbers","mantra"), __("Bullets","mantra"), __("None","mantra"));
+ $options = array ("Numbers" , "Bullets" ,"None");
+ $labels = array( __("Numbers","mantra"), __("Bullets","mantra"), __("None","mantra"));
echo "<select id='mantra_fpslidernav' name='ma_options[mantra_fpslidernav]'>";
- foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_fpslidernav'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_fpslidernav'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<small>".__("Your slider navigation type. Shown under the slider.","mantra")."</small></div>";
echo "<div class='slmini'><b>".__("Slider arrows:","mantra")."</b> ";
- $items = array ("Always Visible" , "Visible on Hover" ,"Hidden");
- $itemsare = array( __("Always Visible","mantra"), __("Visible on Hover","mantra"), __("Hidden","mantra"));
+ $options = array ("Always Visible" , "Visible on Hover" ,"Hidden");
+ $labels = array( __("Always Visible","mantra"), __("Visible on Hover","mantra"), __("Hidden","mantra"));
echo "<select id='mantra_fpsliderarrows' name='ma_options[mantra_fpsliderarrows]'>";
- foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_fpsliderarrows'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_fpsliderarrows'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<small>".__("The Left and Right arrows on your slider","mantra")."</small></div>";
-
?>
<script>
@@ -313,78 +242,50 @@ jQuery(document).ready(function(){
$categoryName=this.options[this.selectedIndex].value.replace(/\/category\/archives\//i,"");
doAjaxRequest();
});
-
});
function doAjaxRequest(){
// here is where the request will happen
- jQuery.ajax({
- url: ajaxurl,
- data:{
- 'action':'do_ajax',
- 'fn':'get_latest_posts',
- 'count':10,
- 'categName':$categoryName
- },
- dataType: 'JSON',
- success:function(data){
- jQuery('#post-dropdown').html(data);
-
-
- },
- error: function(errorThrown){
- alert('error');
- console.log(errorThrown);
- }
-
- });
-
+ jQuery.ajax({
+ url: ajaxurl,
+ data:{
+ 'action':'do_ajax',
+ 'fn':'get_latest_posts',
+ 'count':10,
+ 'categName':$categoryName
+ },
+ dataType: 'JSON',
+ success:function(data){
+ jQuery('#post-dropdown').html(data);
+ },
+ error: function(errorThrown){
+ alert('Error':errorThrown);
+ console.log(errorThrown);
+ }
+ });
}
</script>
-<!--
-<select name="categ-dropdown" id="categ-dropdown" multiple='multiple' >
- <option value=""><?php echo esc_attr(__('Select Category','mantra')); ?></option>
- <?php
- $categories= get_categories();
- foreach ($categories as $category) {
- $option = '<option value="/category/archives/'.$category->category_nicename.'">';
- $option .= $category->cat_name;
- $option .= ' ('.$category->category_count.')';
- $option .= '</option>';
- echo $option;
- }
- ?>
-</select>
-<select name="post-dropdown" id="post-dropdown">
-</select>
--->
-
<?php
-
}
-//CHECKBOX - Name: ma_options[frontslider2]
function cryout_setting_frontslider2_fn() {
global $mantra_options;
-?>
-
-<?php
-$items = array("Slider Shortcode", "Custom Slides", "Latest Posts", "Random Posts", "Sticky Posts", "Latest Posts from Category" , "Random Posts from Category", "Specific Posts");
- $itemsare = array(__("Slider Shortcode","mantra"), __("Custom Slides","mantra"), __("Latest Posts","mantra"), __("Random Posts","mantra"),__("Sticky Posts","mantra"), __("Latest Posts from Category","mantra"), __("Random Posts from Category","mantra"), __("Specific Posts","mantra"));
+ $options = array( "Slider Shortcode", "Custom Slides", "Latest Posts", "Random Posts", "Sticky Posts", "Latest Posts from Category" , "Random Posts from Category", "Specific Posts");
+ $labels = array(__("Slider Shortcode","mantra"), __("Custom Slides","mantra"), __("Latest Posts","mantra"), __("Random Posts","mantra"),__("Sticky Posts","mantra"), __("Latest Posts from Category","mantra"), __("Random Posts from Category","mantra"), __("Specific Posts","mantra"));
echo "<em>".__("Select the content you want to load in your slides:","mantra")." </em> ";
echo "<select id='mantra_slideType' name='ma_options[mantra_slideType]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_slideType'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_slideType'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("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")."</small></div>";
?>
-<div id="sliderShortcode" class="slideDivs">
-<span><?php _e('Enter the desired slider plugin shortcode below:','mantra'); ?> </span>
-<input id='mantra_slideShortcode' name='ma_options[mantra_slideShortcode]' size='44' type='text' value='<?php echo esc_attr($mantra_options['mantra_slideShortcode'] ) ?>' />
+<div id="sliderShortcode" class="slideDivs">
+<span><?php _e('Enter the desired slider plugin shortcode below:','mantra'); ?> </span>
+<input id='mantra_slideShortcode' name='ma_options[mantra_slideShortcode]' size='44' type='text' value='<?php echo esc_attr($mantra_options['mantra_slideShortcode'] ) ?>' />
</div>
<div id="sliderLatestPosts" class="slideDivs">
@@ -414,259 +315,253 @@ foreach($items as $id=>$item) {
</div>
<div id="slider-category">
-<span><?php _e('<br> Choose the cateogry: ','mantra'); ?> </span>
-<select id="mantra_slideCateg" name='ma_options[mantra_slideCateg]' >
- <option value=""><?php echo esc_attr(__('Select Category','mantra')); ?></option>
- <?php echo $mantra_options["mantra_slideCateg"];
- $categories= get_categories();
- foreach ($categories as $category) {
- $option = '<option value="'.$category->category_nicename.'" ';
- $option .= selected($mantra_options["mantra_slideCateg"], $category->category_nicename, false).' >';
- $option .= $category->cat_name;
- $option .= ' ('.$category->category_count.')';
- $option .= '</option>';
- echo $option;
- }
- ?>
-</select>
+ <span><?php _e('<br> Choose the cateogry: ','mantra'); ?> </span>
+ <select id="mantra_slideCateg" name='ma_options[mantra_slideCateg]' >
+ <option value=""><?php echo esc_attr(__('Select Category','mantra')); ?></option>
+ <?php echo $mantra_options["mantra_slideCateg"];
+ $categories = get_categories();
+ foreach ($categories as $category) {
+ $option = '<option value="'.$category->category_nicename.'" ';
+ $option .= selected($mantra_options["mantra_slideCateg"], $category->category_nicename, false).' >';
+ $option .= $category->cat_name;
+ $option .= ' ('.$category->category_count.')';
+ $option .= '</option>';
+ echo $option;
+ }
+ ?>
+ </select>
</div>
<span id="slider-post-number"><?php _e('Number of posts to show:','mantra'); ?>
- <input id='mantra_slideNumber' name='ma_options[mantra_slideNumber]' size='3' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slideNumber'] ) ?>' />
- </span>
+ <input id='mantra_slideNumber' name='ma_options[mantra_slideNumber]' size='3' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slideNumber'] ) ?>' />
+</span>
<div id="sliderCustomSlides" class="slideDivs">
-<span><?php _e('Custom slides are limited to a maximum of 5.','mantra'); ?> </span>
-<div class="slidebox">
-<h4 class="slidetitle" ><?php _e("Slide 1","mantra");?> </h4>
-<div class="slidercontent">
-<h5><?php _e("Image","mantra");?></h5>
-<input type="text" value="<?php echo esc_url($mantra_options['mantra_sliderimg1']); ?>" name="ma_options[mantra_sliderimg1]" id="mantra_sliderimg1" class="slideimages" />
-<span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
-<h5> <?php _e("Title","mantra");?> </h5>
-<input id='mantra_slidertitle1' name='ma_options[mantra_slidertitle1]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slidertitle1'] ) ?>' />
-<h5> <?php _e("Text","mantra");?> </h5>
-<textarea id='mantra_slidertext1' name='ma_options[mantra_slidertext1]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_slidertext1']) ?></textarea>
-<h5> <?php _e("Link","mantra");?> </h5>
-<input id='mantra_sliderlink1' name='ma_options[mantra_sliderlink1]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_sliderlink1'] ) ?>' />
-</div>
-</div>
-
-<div class="slidebox">
-<h4 class="slidetitle" > <?php _e("Slide 2","mantra");?> </h4>
-<div class="slidercontent">
-<h5><?php _e("Image","mantra");?></h5>
-<input type="text" value="<?php echo esc_url($mantra_options['mantra_sliderimg2']); ?>" name="ma_options[mantra_sliderimg2]" id="mantra_sliderimg2" class="slideimages" />
-<span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
-<h5> <?php _e("Title","mantra");?> </h5>
-<input id='mantra_slidertitle2' name='ma_options[mantra_slidertitle2]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slidertitle2'] ) ?>' />
-<h5> <?php _e("Text","mantra");?> </h5>
-<textarea id='mantra_slidertext2' name='ma_options[mantra_slidertext2]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_slidertext2']) ?></textarea>
-<h5> <?php _e("Link","mantra");?> </h5>
-<input id='mantra_sliderlink2' name='ma_options[mantra_sliderlink2]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_sliderlink2'] ) ?>' />
-</div>
-</div>
-
-<div class="slidebox">
-<h4 class="slidetitle" > <?php _e("Slide 3","mantra");?> </h4>
-<div class="slidercontent">
-<h5><?php _e("Image","mantra");?></h5>
-<input type="text" value="<?php echo esc_url($mantra_options['mantra_sliderimg3']); ?>" name="ma_options[mantra_sliderimg3]" id="mantra_sliderimg3" class="slideimages" />
-<span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
-<h5> <?php _e("Title","mantra");?> </h5>
-<input id='mantra_slidertitle3' name='ma_options[mantra_slidertitle3]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slidertitle3'] ) ?>' />
-<h5> <?php _e("Text","mantra");?> </h5>
-<textarea id='mantra_slidertext3' name='ma_options[mantra_slidertext3]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_slidertext3']) ?></textarea>
-<h5> <?php _e("Link","mantra");?> </h5>
-<input id='mantra_sliderlink3' name='ma_options[mantra_sliderlink3]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_sliderlink3'] ) ?>' />
-</div>
-</div>
-
-<div class="slidebox">
-<h4 class="slidetitle" > <?php _e("Slide 4","mantra");?> </h4>
-<div class="slidercontent">
-<h5><?php _e("Image","mantra");?></h5>
-<input type="text" value="<?php echo esc_url($mantra_options['mantra_sliderimg4']); ?>" name="ma_options[mantra_sliderimg4]" id="mantra_sliderimg4" class="slideimages" />
-<span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
-<h5> <?php _e("Title","mantra");?> </h5>
-<input id='mantra_slidertitle4' name='ma_options[mantra_slidertitle4]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slidertitle4'] ) ?>' />
-<h5> <?php _e("Text","mantra");?> </h5>
-<textarea id='mantra_slidertext4' name='ma_options[mantra_slidertext4]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_slidertext4']) ?></textarea>
-<h5> <?php _e("Link","mantra");?> </h5>
-<input id='mantra_sliderlink4' name='ma_options[mantra_sliderlink4]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_sliderlink4'] ) ?>' />
-</div>
-</div>
-
-<div class="slidebox">
-<h4 class="slidetitle" > <?php _e("Slide 5","mantra");?></h4>
-<div class="slidercontent">
-<h5><?php _e("Image","mantra");?></h5>
-<input type="text" value="<?php echo esc_url($mantra_options['mantra_sliderimg5']); ?>" name="ma_options[mantra_sliderimg5]" id="mantra_sliderimg5" class="slideimages" />
-<span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
-<h5> <?php _e("Title","mantra");?> </h5>
-<input id='mantra_slidertitle5' name='ma_options[mantra_slidertitle5]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slidertitle5'] ) ?>' />
-<h5> <?php _e("Text","mantra");?> </h5>
-<textarea id='mantra_slidertext5' name='ma_options[mantra_slidertext5]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_slidertext5']) ?></textarea>
-<h5> <?php _e("Link","mantra");?> </h5>
-<input id='mantra_sliderlink5' name='ma_options[mantra_sliderlink5]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_sliderlink5'] ) ?>' />
-</div>
-</div>
+ <span><?php _e('Custom slides are limited to a maximum of 5.','mantra'); ?> </span>
+ <div class="slidebox">
+ <h4 class="slidetitle" ><?php _e("Slide 1","mantra");?> </h4>
+ <div class="slidercontent">
+ <h5><?php _e("Image","mantra");?></h5>
+ <input type="text" value="<?php echo esc_url($mantra_options['mantra_sliderimg1']); ?>" name="ma_options[mantra_sliderimg1]" id="mantra_sliderimg1" class="slideimages" />
+ <span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
+ <h5> <?php _e("Title","mantra");?> </h5>
+ <input id='mantra_slidertitle1' name='ma_options[mantra_slidertitle1]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slidertitle1'] ) ?>' />
+ <h5> <?php _e("Text","mantra");?> </h5>
+ <textarea id='mantra_slidertext1' name='ma_options[mantra_slidertext1]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_slidertext1']) ?></textarea>
+ <h5> <?php _e("Link","mantra");?> </h5>
+ <input id='mantra_sliderlink1' name='ma_options[mantra_sliderlink1]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_sliderlink1'] ) ?>' />
+ </div>
+ </div>
+
+ <div class="slidebox">
+ <h4 class="slidetitle" > <?php _e("Slide 2","mantra");?> </h4>
+ <div class="slidercontent">
+ <h5><?php _e("Image","mantra");?></h5>
+ <input type="text" value="<?php echo esc_url($mantra_options['mantra_sliderimg2']); ?>" name="ma_options[mantra_sliderimg2]" id="mantra_sliderimg2" class="slideimages" />
+ <span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
+ <h5> <?php _e("Title","mantra");?> </h5>
+ <input id='mantra_slidertitle2' name='ma_options[mantra_slidertitle2]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slidertitle2'] ) ?>' />
+ <h5> <?php _e("Text","mantra");?> </h5>
+ <textarea id='mantra_slidertext2' name='ma_options[mantra_slidertext2]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_slidertext2']) ?></textarea>
+ <h5> <?php _e("Link","mantra");?> </h5>
+ <input id='mantra_sliderlink2' name='ma_options[mantra_sliderlink2]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_sliderlink2'] ) ?>' />
+ </div>
+ </div>
+
+ <div class="slidebox">
+ <h4 class="slidetitle" > <?php _e("Slide 3","mantra");?> </h4>
+ <div class="slidercontent">
+ <h5><?php _e("Image","mantra");?></h5>
+ <input type="text" value="<?php echo esc_url($mantra_options['mantra_sliderimg3']); ?>" name="ma_options[mantra_sliderimg3]" id="mantra_sliderimg3" class="slideimages" />
+ <span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
+ <h5> <?php _e("Title","mantra");?> </h5>
+ <input id='mantra_slidertitle3' name='ma_options[mantra_slidertitle3]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slidertitle3'] ) ?>' />
+ <h5> <?php _e("Text","mantra");?> </h5>
+ <textarea id='mantra_slidertext3' name='ma_options[mantra_slidertext3]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_slidertext3']) ?></textarea>
+ <h5> <?php _e("Link","mantra");?> </h5>
+ <input id='mantra_sliderlink3' name='ma_options[mantra_sliderlink3]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_sliderlink3'] ) ?>' />
+ </div>
+ </div>
+
+ <div class="slidebox">
+ <h4 class="slidetitle" > <?php _e("Slide 4","mantra");?> </h4>
+ <div class="slidercontent">
+ <h5><?php _e("Image","mantra");?></h5>
+ <input type="text" value="<?php echo esc_url($mantra_options['mantra_sliderimg4']); ?>" name="ma_options[mantra_sliderimg4]" id="mantra_sliderimg4" class="slideimages" />
+ <span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
+ <h5> <?php _e("Title","mantra");?> </h5>
+ <input id='mantra_slidertitle4' name='ma_options[mantra_slidertitle4]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slidertitle4'] ) ?>' />
+ <h5> <?php _e("Text","mantra");?> </h5>
+ <textarea id='mantra_slidertext4' name='ma_options[mantra_slidertext4]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_slidertext4']) ?></textarea>
+ <h5> <?php _e("Link","mantra");?> </h5>
+ <input id='mantra_sliderlink4' name='ma_options[mantra_sliderlink4]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_sliderlink4'] ) ?>' />
+ </div>
+ </div>
+
+ <div class="slidebox">
+ <h4 class="slidetitle" > <?php _e("Slide 5","mantra");?></h4>
+ <div class="slidercontent">
+ <h5><?php _e("Image","mantra");?></h5>
+ <input type="text" value="<?php echo esc_url($mantra_options['mantra_sliderimg5']); ?>" name="ma_options[mantra_sliderimg5]" id="mantra_sliderimg5" class="slideimages" />
+ <span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
+ <h5> <?php _e("Title","mantra");?> </h5>
+ <input id='mantra_slidertitle5' name='ma_options[mantra_slidertitle5]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_slidertitle5'] ) ?>' />
+ <h5> <?php _e("Text","mantra");?> </h5>
+ <textarea id='mantra_slidertext5' name='ma_options[mantra_slidertext5]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_slidertext5']) ?></textarea>
+ <h5> <?php _e("Link","mantra");?> </h5>
+ <input id='mantra_sliderlink5' name='ma_options[mantra_sliderlink5]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_sliderlink5'] ) ?>' />
+ </div>
+ </div>
</div> <!-- customSlides -->
<?php
}
-//CHECKBOX - Name: ma_options[frontcolumns]
function cryout_setting_frontcolumns_fn() {
global $mantra_options;
-echo "<div class='slmini'><b>".__("Number of columns:","mantra")."</b> ";
- $items = array ("0" ,"1", "2" , "3" , "4");
+ echo "<div class='slmini'><b>".__("Number of columns:","mantra")."</b> ";
+ $options = array ("0" ,"1", "2" , "3" , "4");
echo "<select id='mantra_nrcolumns' name='ma_options[mantra_nrcolumns]'>";
-foreach($items as $item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_nrcolumns'],$item);
- echo ">$item</option>";
-}
+ foreach($options as $item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_nrcolumns'],$item);
+ echo ">$item</option>";
+ }
echo "</select></div>";
-echo "<div class='slmini'><b>".__("Image Height:","mantra")."</b> ";
+ echo "<div class='slmini'><b>".__("Image Height:","mantra")."</b> ";
echo "<input id='mantra_colimageheight' name='ma_options[mantra_colimageheight]' size='4' type='text' value='".esc_attr( $mantra_options['mantra_colimageheight'] )."' /> px </div>";
-?>
-<div class='slmini'><b><?php _e("Read more text:","mantra");?></b>
-<input id='mantra_columnreadmore' name='ma_options[mantra_columnreadmore]' size='30' type='text' value='<?php echo esc_attr( $mantra_options['mantra_columnreadmore'] ) ?>' />
-<?php
- echo "<small>".__("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")."</small></div>";
-
-?>
-<div class="slidebox">
-<h4 class="slidetitle" > <?php _e("1st Column","mantra");?> </h4>
-<div class="slidercontent">
-<h5><?php _e("Image","mantra");?></h5>
-<input type="text" value="<?php echo esc_url($mantra_options['mantra_columnimg1']); ?>" name="ma_options[mantra_columnimg1]" id="mantra_columnimg1" class="slideimages" />
-<span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
-<h5> <?php _e("Title","mantra");?> </h5>
-<input id='mantra_columntitle1' name='ma_options[mantra_columntitle1]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_columntitle1'] ) ?>' />
-<h5> <?php _e("Text","mantra");?> </h5>
-<textarea id='mantra_columntext1' name='ma_options[mantra_columntext1]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_columntext1']) ?></textarea>
-<h5> <?php _e("Link","mantra");?> </h5>
-<input id='mantra_columnlink1' name='ma_options[mantra_columnlink1]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_columnlink1'] ) ?>' />
-</div>
-</div>
-
-<div class="slidebox">
-<h4 class="slidetitle" > <?php _e("2nd Column","mantra");?></h4>
-<div class="slidercontent">
-<h5><?php _e("Image","mantra");?></h5>
-<input type="text" value="<?php echo esc_url($mantra_options['mantra_columnimg2']); ?>" name="ma_options[mantra_columnimg2]" id="mantra_columnimg2" class="slideimages" />
-<span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
-<h5> <?php _e("Title","mantra");?> </h5>
-<input id='mantra_columntitle2' name='ma_options[mantra_columntitle2]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_columntitle2'] ) ?>' />
-<h5> <?php _e("Text","mantra");?> </h5>
-<textarea id='mantra_columntext2' name='ma_options[mantra_columntext2]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_columntext2']) ?></textarea>
-<h5> <?php _e("Link","mantra");?> </h5>
-<input id='mantra_columnlink2' name='ma_options[mantra_columnlink2]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_columnlink2'] ) ?>' />
-</div>
-</div>
-
-<div class="slidebox">
-<h4 class="slidetitle" > <?php _e("3rd Column","mantra");?> </h4>
-<div class="slidercontent">
-<h5><?php _e("Image","mantra");?></h5>
-<input type="text" value="<?php echo esc_url($mantra_options['mantra_columnimg3']); ?>" name="ma_options[mantra_columnimg3]" id="mantra_columnimg3" class="slideimages" />
-<span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
-<h5> Title </h5>
-<input id='mantra_columntitle3' name='ma_options[mantra_columntitle3]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_columntitle3'] ) ?>' />
-<h5> <?php _e("Text","mantra");?> </h5>
-<textarea id='mantra_columntext3' name='ma_options[mantra_columntext3]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_columntext3']) ?></textarea>
-<h5> <?php _e("Link","mantra");?> </h5>
-<input id='mantra_columnlink3' name='ma_options[mantra_columnlink3]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_columnlink3'] ) ?>' />
-</div>
-</div>
-
-<div class="slidebox">
-<h4 class="slidetitle" > <?php _e("4th Column","mantra");?> </h4>
-<div class="slidercontent">
-<h5><?php _e("Image","mantra");?></h5>
-<input type="text" value="<?php echo esc_url($mantra_options['mantra_columnimg4']); ?>" name="ma_options[mantra_columnimg4]" id="mantra_columnimg4" class="slideimages" />
-<span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
-<h5> <?php _e("Title","mantra");?> </h5>
-<input id='mantra_columntitle4' name='ma_options[mantra_columntitle4]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_columntitle4'] ) ?>' />
-<h5> <?php _e("Text","mantra");?> </h5>
-<textarea id='mantra_columntext4' name='ma_options[mantra_columntext4]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_columntext4']) ?></textarea>
-<h5> <?php _e("Link","mantra");?> </h5>
-<input id='mantra_columnlink4' name='ma_options[mantra_columnlink4]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_columnlink4'] ) ?>' />
-</div>
-</div>
-
-<?php
+ ?>
+ <div class='slmini'><b><?php _e("Read more text:","mantra");?></b>
+ <input id='mantra_columnreadmore' name='ma_options[mantra_columnreadmore]' size='30' type='text' value='<?php echo esc_attr( $mantra_options['mantra_columnreadmore'] ) ?>' />
+ <small><?php _e("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") ?></small>
+ </div>
+ <div class="slidebox">
+ <h4 class="slidetitle" > <?php _e("1st Column","mantra");?> </h4>
+ <div class="slidercontent">
+ <h5><?php _e("Image","mantra");?></h5>
+ <input type="text" value="<?php echo esc_url($mantra_options['mantra_columnimg1']); ?>" name="ma_options[mantra_columnimg1]" id="mantra_columnimg1" class="slideimages" />
+ <span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
+ <h5> <?php _e("Title","mantra");?> </h5>
+ <input id='mantra_columntitle1' name='ma_options[mantra_columntitle1]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_columntitle1'] ) ?>' />
+ <h5> <?php _e("Text","mantra");?> </h5>
+ <textarea id='mantra_columntext1' name='ma_options[mantra_columntext1]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_columntext1']) ?></textarea>
+ <h5> <?php _e("Link","mantra");?> </h5>
+ <input id='mantra_columnlink1' name='ma_options[mantra_columnlink1]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_columnlink1'] ) ?>' />
+ </div>
+ </div>
+
+ <div class="slidebox">
+ <h4 class="slidetitle" > <?php _e("2nd Column","mantra");?></h4>
+ <div class="slidercontent">
+ <h5><?php _e("Image","mantra");?></h5>
+ <input type="text" value="<?php echo esc_url($mantra_options['mantra_columnimg2']); ?>" name="ma_options[mantra_columnimg2]" id="mantra_columnimg2" class="slideimages" />
+ <span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
+ <h5> <?php _e("Title","mantra");?> </h5>
+ <input id='mantra_columntitle2' name='ma_options[mantra_columntitle2]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_columntitle2'] ) ?>' />
+ <h5> <?php _e("Text","mantra");?> </h5>
+ <textarea id='mantra_columntext2' name='ma_options[mantra_columntext2]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_columntext2']) ?></textarea>
+ <h5> <?php _e("Link","mantra");?> </h5>
+ <input id='mantra_columnlink2' name='ma_options[mantra_columnlink2]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_columnlink2'] ) ?>' />
+ </div>
+ </div>
+
+ <div class="slidebox">
+ <h4 class="slidetitle" > <?php _e("3rd Column","mantra");?> </h4>
+ <div class="slidercontent">
+ <h5><?php _e("Image","mantra");?></h5>
+ <input type="text" value="<?php echo esc_url($mantra_options['mantra_columnimg3']); ?>" name="ma_options[mantra_columnimg3]" id="mantra_columnimg3" class="slideimages" />
+ <span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
+ <h5> <?php _e("Title","mantra");?> </h5>
+ <input id='mantra_columntitle3' name='ma_options[mantra_columntitle3]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_columntitle3'] ) ?>' />
+ <h5> <?php _e("Text","mantra");?> </h5>
+ <textarea id='mantra_columntext3' name='ma_options[mantra_columntext3]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_columntext3']) ?></textarea>
+ <h5> <?php _e("Link","mantra");?> </h5>
+ <input id='mantra_columnlink3' name='ma_options[mantra_columnlink3]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_columnlink3'] ) ?>' />
+ </div>
+ </div>
+
+ <div class="slidebox">
+ <h4 class="slidetitle" > <?php _e("4th Column","mantra");?> </h4>
+ <div class="slidercontent">
+ <h5><?php _e("Image","mantra");?></h5>
+ <input type="text" value="<?php echo esc_url($mantra_options['mantra_columnimg4']); ?>" name="ma_options[mantra_columnimg4]" id="mantra_columnimg4" class="slideimages" />
+ <span class="description"><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
+ <h5> <?php _e("Title","mantra");?> </h5>
+ <input id='mantra_columntitle4' name='ma_options[mantra_columntitle4]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_columntitle4'] ) ?>' />
+ <h5> <?php _e("Text","mantra");?> </h5>
+ <textarea id='mantra_columntext4' name='ma_options[mantra_columntext4]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_columntext4']) ?></textarea>
+ <h5> <?php _e("Link","mantra");?> </h5>
+ <input id='mantra_columnlink4' name='ma_options[mantra_columnlink4]' size='50' type='text' value='<?php echo esc_url( $mantra_options['mantra_columnlink4'] ) ?>' />
+ </div>
+ </div>
+
+ <?php
}
-
-//CHECKBOX - Name: ma_options[fronttext]
function cryout_setting_fronttext_fn() {
global $mantra_options;
-
-echo "<div class='slidebox'><h4 class='slidetitle'> ".__("Extra Text","mantra")." </h4><div class='slidercontent'> ";
-
-echo "<div style='width:100%;'><span>Text for the Presentation Page</span><small>".__("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")."</small></div>";
-
- echo "<h5>".__("Top Title","mantra")."</h5><br><input id='mantra_fronttext1' name='ma_options[mantra_fronttext1]' size='50' type='text' value='".esc_attr( $mantra_options['mantra_fronttext1'] )."' />";
-echo "<h5>".__("Second Title","mantra")."</h5> ";
- echo "<input id='mantra_fronttext2' name='ma_options[mantra_fronttext2]' size='50' type='text' value='".esc_attr( $mantra_options['mantra_fronttext2'] )."' />";
-
-echo "<h5>".__("Title color","mantra")."</h5> ";
- echo '<input type="text" id="mantra_fronttitlecolor" name="ma_options[mantra_fronttitlecolor]" style="width:100px;display:block;float:none;" value="'.esc_attr( $mantra_options['mantra_fronttitlecolor'] ).'" />';
- echo '<div id="mantra_fronttitlecolor2"></div>';
-
-echo "<h5>".__("Bottom Text 1","mantra")."</h5> ";
- echo "<textarea id='mantra_fronttext3' name='ma_options[mantra_fronttext3]' rows='3' cols='50' type='textarea' >".esc_attr($mantra_options['mantra_fronttext3'])." </textarea>";
-echo "<h5>".__("Bottom Text 2","mantra")." </h5> ";
- echo "<textarea id='mantra_fronttext4' name='ma_options[mantra_fronttext4]' rows='3' cols='50' type='textarea' >".esc_attr($mantra_options['mantra_fronttext4'])." </textarea></div></div>";
-
-
-
-
-
-
-echo "<div class='slidebox'><h4 class='slidetitle'>".__("Hide areas","mantra")." </h4><div class='slidercontent'>";
-
-echo "<div style='width:100%;'>".__("Choose the areas to hide on the first page.","mantra")."</div>";
-
- $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 " <label id='$items[0]' for='$items[0]$items[0]' class='hideareas $checkedClass0'><input ";
- checked($mantra_options['mantra_fronthideheader'],'1');
- echo " value='1' id='$items[0]$items[0]' name='ma_options[mantra_fronthideheader]' type='checkbox' /> ".__("Hide the header area (image or background color).","mantra")." </label>";
-
- echo " <label id='$items[1]' for='$items[1]$items[1]' class='hideareas $checkedClass1'><input ";
- checked($mantra_options['mantra_fronthidemenu'],'1');
- echo " value='1' id='$items[1]$items[1]' name='ma_options[mantra_fronthidemenu]' type='checkbox' /> ".__("Hide the main menu (the top navigation tabs).","mantra")." </label>";
-
- echo " <label id='$items[2]' for='$items[2]$items[2]' class='hideareas $checkedClass2'><input ";
- checked($mantra_options['mantra_fronthidewidget'],'1');
- echo " value='1' id='$items[2]$items[2]' name='ma_options[mantra_fronthidewidget]' type='checkbox' /> ".__("Hide the footer widgets. ","mantra")." </label>";
-
- echo " <label id='$items[3]' for='$items[3]$items[3]' class='hideareas $checkedClass3'><input ";
- checked($mantra_options['mantra_fronthidefooter'],'1');
- echo " value='1' id='$items[3]$items[3]' name='ma_options[mantra_fronthidefooter]' type='checkbox' /> ".__("Hide the footer (copyright area).","mantra")." </label>";
-
- echo " <label id='$items[4]' for='$items[4]$items[4]' class='hideareas $checkedClass4'><input ";
- checked($mantra_options['mantra_fronthideback'],'1');
- echo " value='1' id='$items[4]$items[4]' name='ma_options[mantra_fronthideback]' type='checkbox' /> ".__("Hide the white color. Only the background color remains.","mantra")." </label>";
-
-
-echo "</div></div>";
-
-
+ ?>
+ <div class='slidebox'>
+ <h4 class='slidetitle'> <?php _e("Extra Text","mantra") ?> </h4>
+ <div class='slidercontent'>
+ <div style='width:100%;'>
+ <span><?php _e('Text for the Presentation Page', 'mantra') ?></span>
+ <small><?php _e("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.<br>It's all optional so leave any input field empty if it's not required.","mantra") ?></small>
+ </div>
+ <h5><?php _e("Top Title","mantra") ?></h5><br>
+ <input id='mantra_fronttext1' name='ma_options[mantra_fronttext1]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_fronttext1'] ) ?>' />
+ <h5><?php _e("Second Title","mantra")?></h5>
+ <input id='mantra_fronttext2' name='ma_options[mantra_fronttext2]' size='50' type='text' value='<?php echo esc_attr( $mantra_options['mantra_fronttext2'] ) ?>' />
+ <h5><?php _e("Title color","mantra")?></h5>
+ <input type="text" id="mantra_fronttitlecolor" name="ma_options[mantra_fronttitlecolor]" style="width:100px;display:block;float:none;" value="<?php echo esc_attr( $mantra_options['mantra_fronttitlecolor'] ) ?>" />
+ <div id="mantra_fronttitlecolor2"></div>
+
+ <h5><?php _e("Bottom Text 1","mantra")?></h5>
+ <textarea id='mantra_fronttext3' name='ma_options[mantra_fronttext3]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_fronttext3']) ?> </textarea>
+ <h5><?php _e("Bottom Text 2","mantra")?> </h5>
+ <textarea id='mantra_fronttext4' name='ma_options[mantra_fronttext4]' rows='3' cols='50' type='textarea' ><?php echo esc_attr($mantra_options['mantra_fronttext4']) ?> </textarea>
+ </div>
+ </div>
+
+ <div class='slidebox'>
+ <h4 class='slidetitle'><?php _e("Hide areas","mantra")?> </h4>
+ <div class='slidercontent'>
+ <div style='width:100%;'><?php _e("Choose the areas to hide on the first page.","mantra") ?></div>
+ <?php
+ $options = 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' : '';
+ ?>
+ <label id='<?php echo $options[0] ?>' for='<?php echo $options[0].$options[0] ?>' class='hideareas <?php echo $checkedClass0 ?>'>
+ <input <?php checked($mantra_options['mantra_fronthideheader'], true); ?> value='1' id='<?php echo $options[0].$options[0] ?>' name='ma_options[mantra_fronthideheader]' type='checkbox' />
+ <?php _e("Hide the header area (image or background color).","mantra") ?>
+ </label>
+ <label id='<?php echo $options[1] ?>' for='<?php echo $options[1].$options[1] ?>' class='hideareas <?php echo $checkedClass1 ?>'>
+ <input <?php checked($mantra_options['mantra_fronthidemenu'], true); ?> value='1' id='<?php echo $options[1].$options[1] ?>' name='ma_options[mantra_fronthidemenu]' type='checkbox' />
+ <?php _e("Hide the main menu (the top navigation tabs).","mantra") ?>
+ </label>
+ <label id='<?php echo $options[2] ?>' for='<?php echo $options[2].$options[2] ?>' class='hideareas <?php echo $checkedClass2 ?>'>
+ <input <?php echo checked($mantra_options['mantra_fronthidewidget'], true); ?> value='1' id='<?php echo $options[2].$options[2] ?>' name='ma_options[mantra_fronthidewidget]' type='checkbox' />
+ <?php _e("Hide the footer widgets. ","mantra") ?>
+ </label>
+ <label id='<?php echo $options[3] ?>' for='<?php echo $options[3].$options[3] ?>' class='hideareas <?php echo $checkedClass3 ?>'>
+ <input <?php checked($mantra_options['mantra_fronthidefooter'], true); ?> value='1' id='<?php echo $options[3].$options[3] ?>' name='ma_options[mantra_fronthidefooter]' type='checkbox' />
+ <?php _e("Hide the footer (copyright area).","mantra") ?>
+ </label>
+ <label id='<?php echo $options[4] ?>' for='<?php echo $options[4].$options[4] ?>' class='hideareas <?php echo $checkedClass4 ?>'>
+ <input <?php checked($mantra_options['mantra_fronthideback'], true); ?> value='1' id='<?php echo $options[4].$options[4] ?>' name='ma_options[mantra_fronthideback]' type='checkbox' />
+ <?php _e("Hide the white color. Only the background color remains.","mantra") ?>
+ </label>
+ </div>
+ </div>
+<?php
}
@@ -674,14 +569,15 @@ echo "</div></div>";
/////HEADER SETTINGS//////////
/////////////////////////////
- //SELECT - Name: ma_options[hheight]
-function cryout_setting_hheight_fn() {
- global $mantra_options;?>
-<input id='mantra_hheight' name='ma_options[mantra_hheight]' size='4' type='text' value='<?php echo esc_attr( intval($mantra_options['mantra_hheight'] )) ?>' /> px
-<?php
-$totally = $mantra_options['mantra_sidebar']+$mantra_options['mantra_sidewidth']+50;
-
-echo "<div><small>".__("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.</small></div>";
+function cryout_setting_hheight_fn() {
+ global $mantra_options; ?> <input id='mantra_hheight' name='ma_options[mantra_hheight]' size='4' type='text' value='<?php echo esc_attr( intval($mantra_options['mantra_hheight'] )) ?>' /> px
+ <?php
+ $header_width = $mantra_options['mantra_sidebar']+$mantra_options['mantra_sidewidth'];
+ ?>
+ <div><small> <?php printf(
+ __("Select the header's height. After saving the settings make sure you re-upload a new header image (if you're using one). The header's width will be %s px.","mantra"),
+ $header_width ) ?>
+ </small></div> <?php
}
function cryout_setting_himage_fn() {
@@ -692,80 +588,69 @@ function cryout_setting_himage_fn() {
echo "<div><small>".__("The header image should not be used to display logos.<br> Enable ratio preservation to force the header image aspect ratio. Keep in mind that short images will become very small on mobile devices.","mantra")."</small></div>";
echo "<br><label id='hcenter' for='mantra_hcenter' class='socialsdisplay $checkedClass'><input ";
checked($mantra_options['mantra_hcenter'],'1');
- echo " value='1' id='mantra_hcenter' name='ma_options[mantra_hcenter]' type='checkbox'/> Center the header image horizontally </label>";
+ echo " value='1' id='mantra_hcenter' name='ma_options[mantra_hcenter]' type='checkbox'/>Center horizontally</label>";
- echo " <label id='hratio' for='mantra_hratio' class='socialsdisplay $checkedClass2'><input ";
+ echo "<label id='hratio' for='mantra_hratio' class='socialsdisplay $checkedClass2'><input ";
checked($mantra_options['mantra_hratio'],'1');
- echo " value='1' id='mantra_hratio' name='ma_options[mantra_hratio]' type='checkbox' style='margin-left:10px;'/> Keep header image aspect ratio </label>";
-
+ echo " value='1' id='mantra_hratio' name='ma_options[mantra_hratio]' type='checkbox'/>Keep aspect ratio</label>";
}
-//CHECKBOX - Name: ma_options[menurounded]
function cryout_setting_menurounded_fn() {
global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_menurounded' name='ma_options[mantra_menurounded]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_menurounded'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_menurounded'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Enable or disable the round corners for the main menu items.","mantra")."</small></div>";
-
}
-//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"));
+ $options = array ("Site Title and Description" , "Custom Logo" , "Clickable header image" , "Empty");
+ $labels = array( __("Site Title and Description","mantra"), __("Custom Logo","mantra"), __("Clickable header image","mantra"), __("Empty","mantra"));
echo "<select id='mantra_siteheader' name='ma_options[mantra_siteheader]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_siteheader'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_siteheader'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Choose what to display inside your header area.","mantra")."</small></div>";
}
-// TEXTBOX - Name: ma_options[favicon]
function cryout_setting_logoupload_fn() {
- global $mantra_options;
- echo '<div>';
-?>
- <img src='<?php echo ($mantra_options['mantra_logoupload']!='')? esc_url($mantra_options['mantra_logoupload']):get_template_directory_uri().'/admin/images/placeholder.gif'; ?>' class="imagebox" style="display:;max-height:60px" /><br>
-<input type="text" size='60' value="<?php echo esc_url($mantra_options['mantra_logoupload']); ?>" name="ma_options[mantra_logoupload]" id="mantra_logoupload" class="header_upload_inputs slideimages" />
-<?php echo "<div><small>".__("Custom Logo upload. The logo will appear over the heder image if you have used one.","mantra")."</small></div>"; ?>
-<span class="description"><br><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
-</div>
-
-<?php
+ global $mantra_options; ?>
+ <div>
+ <img src='<?php echo (!empty($mantra_options['mantra_logoupload'])) ? esc_url($mantra_options['mantra_logoupload']) : get_template_directory_uri().'/admin/images/placeholder.gif'; ?>' class="imagebox" style="max-height:60px" /><br>
+ <input type="text" size='60' value="<?php echo esc_url($mantra_options['mantra_logoupload']); ?>" name="ma_options[mantra_logoupload]" id="mantra_logoupload" class="header_upload_inputs slideimages" />
+ <div><small><?php _e("Custom Logo upload. The logo will appear over the heder image if you have used one.","mantra") ?></small></div>
+ <span class="description"><br><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
+ </div>
+ <?php
}
function cryout_setting_headermargin_fn() {
- global $mantra_options;?>
-<input id='mantra_headermargintop' name='ma_options[mantra_headermargintop]' size='4' type='text' value='<?php echo esc_attr( intval($mantra_options['mantra_headermargintop'] )) ?>' /> px <?php echo __("top","mantra");?> &nbsp; &nbsp;
-<input id='mantra_headermarginleft' name='ma_options[mantra_headermarginleft]' size='4' type='text' value='<?php echo esc_attr( intval($mantra_options['mantra_headermarginleft'] )) ?>' /> px <?php echo __("left","mantra");?>
-<?php
-
-echo "<div><small>".__("Select the top spacing for the header. Use it to better position your site title and description or custom logo inside the header. ","mantra")."</small></div>";
+ global $mantra_options; ?>
+ <input id='mantra_headermargintop' name='ma_options[mantra_headermargintop]' size='4' type='text' value='<?php echo esc_attr( intval($mantra_options['mantra_headermargintop'] )) ?>' /> px <?php echo __("top","mantra") ?> &nbsp; &nbsp;
+ <input id='mantra_headermarginleft' name='ma_options[mantra_headermarginleft]' size='4' type='text' value='<?php echo esc_attr( intval($mantra_options['mantra_headermarginleft'] )) ?>' /> px <?php echo __("left","mantra") ?>
+ <div><small> <?php _e("Select the top spacing for the header. Use it to better position your site title and description or custom logo inside the header. ","mantra") ?></small></div>
+ <?php
}
-// TEXTBOX - Name: ma_options[favicon]
function cryout_setting_favicon_fn() {
- global $mantra_options;
- echo '<div>';
-?>
- <img src='<?php echo ($mantra_options['mantra_favicon']!='')? esc_url($mantra_options['mantra_favicon']):get_template_directory_uri().'/admin/images/placeholder.gif'; ?>' class="imagebox" width="64" height="64"/><br>
-<input type="text" size='60' value="<?php echo esc_url($mantra_options['mantra_favicon']); ?>" name="ma_options[mantra_favicon]" id="mantra_favicon" class="header_upload_inputs slideimages" />
-<?php echo "<div><small>".__("Limitations: It has to be an image. It should be max 64x64 pixels in dimensions. Recommended file extensions .ico and .png. <br/><b>Note that some browsers do not display the changed favicon instantly.</b>","mantra")."</small></div>"; ?>
-<span class="description"><br><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a> </span>
-</div>
-
-<?php
+ global $mantra_options; ?>
+ <div>
+ <img src='<?php echo ($mantra_options['mantra_favicon']!='')? esc_url($mantra_options['mantra_favicon']):get_template_directory_uri().'/admin/images/placeholder.gif'; ?>' class="imagebox" width="64" height="64"/><br>
+ <input type="text" size='60' value="<?php echo esc_url($mantra_options['mantra_favicon']); ?>" name="ma_options[mantra_favicon]" id="mantra_favicon" class="header_upload_inputs slideimages" />
+ <div><small> <?php _e("Limitations: It has to be an image. It should be max 64x64 pixels in dimensions. Recommended file extensions .ico and .png. <br/><b>Note that some browsers do not display the changed favicon instantly.</b>","mantra") ?></small></div>
+ <span class="description"><br><a href="#" class="upload_image_button button"><?php _e( 'Select / Upload Image', 'mantra' );?></a></span>
+ </div>
+ <?php
}
@@ -773,499 +658,328 @@ function cryout_setting_favicon_fn() {
//// TEXT SETTINGS /////////////
////////////////////////////////
-//SELECT - Name: ma_options[fontsize]
-function cryout_setting_fontsize_fn() {
+function cryout_setting_fontsize_fn() {
global $mantra_options;
- $items =array ("12px", "13px" , "14px" , "15px" , "16px", "17px", "18px");
+ $options =array ("12px", "13px" , "14px" , "15px" , "16px", "17px", "18px");
echo "<select id='mantra_fontsize' name='ma_options[mantra_fontsize]'>";
- foreach($items as $item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_fontsize'],$item);
- echo ">$item</option>";
-}
+ foreach($options as $item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_fontsize'],$item);
+ echo ">$item</option>";
+ }
echo "</select>";
echo "<div><small>".__("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")."</small></div>";
}
-
-//SELECT - Name: ma_options[fontfamily]
-function cryout_setting_fontfamily_fn() {
- global $mantra_options;
- global $fontSans, $fontSerif, $fontMono, $fontCursive;
-
- echo "<select id='mantra_fontfamily' name='ma_options[mantra_fontfamily]'>";
- echo "<optgroup label='Sans-Serif'>";
-foreach($fontSans as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontfamily'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
-
- echo "<optgroup label='Serif'>";
-foreach($fontSerif as $item) {
-
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontfamily'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
-
- echo "<optgroup label='MonoSpace'>";
-foreach($fontMono as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontfamily'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
-
- echo "<optgroup label='Cursive'>";
-foreach($fontCursive as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontfamily'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
- echo "</select>";
-
+/** font select generator function used by the font options below
+ * @since mantra 3.0.3 */
+function cryout_fontselect_helper( $option_id, $include_default = false ) {
+ global $mantra_options;
+ global $mantra_fonts;
+ ?>
+ <select id='<?php echo $option_id ?>' name='ma_options[<?php echo $option_id ?>]'>
+ <?php if ($include_default) { ?>
+ <option value='Default' <?php selected($mantra_options['mantra_fonttitle'],'Default') ?>><?php _e('General Font','mantra') ?></option>
+ <?php } ?>
+ <optgroup label='Sans-Serif'>
+ <?php foreach ($mantra_fonts['fontSans'] as $item) { ?>
+ <option style='font-family:<?php echo $item ?>' value='<?php echo $item ?>' <?php selected($mantra_options[$option_id],$item) ?>> <?php echo $item ?></option>
+ <?php } ?>
+ </optgroup>
+ <optgroup label='Serif'>
+ <?php foreach ($mantra_fonts['fontSerif'] as $item) { ?>
+ <option style='font-family:<?php echo $item ?>' value='<?php echo $item ?>' <?php selected($mantra_options[$option_id],$item) ?>> <?php echo $item ?></option>
+ <?php } ?>
+ </optgroup>
+ <optgroup label='MonoSpace'>
+ <?php foreach ($mantra_fonts['fontMono'] as $item) { ?>
+ <option style='font-family:<?php echo $item ?>' value='<?php echo $item ?>' <?php selected($mantra_options[$option_id],$item) ?>> <?php echo $item ?></option>
+ <?php } ?>
+ </optgroup>
+ <optgroup label='Cursive'>
+ <?php foreach ($mantra_fonts['fontCursive'] as $item) { ?>
+ <option style='font-family:<?php echo $item ?>' value='<?php echo $item ?>' <?php selected($mantra_options[$option_id],$item) ?>> <?php echo $item ?></option>
+ <?php } ?>
+ </optgroup>
+ </select>
+ <?php
+}
+
+function cryout_setting_fontfamily_fn() {
+ global $mantra_options;
+
+ cryout_fontselect_helper( 'mantra_fontfamily' );
echo "<div><small>".__("Select the font family you'll use in your blog. All content text will be affected (including menu buttons). ","mantra")."</small></div><br>";
echo '<input class="googlefonts" type="text" size="45" value="'.esc_attr($mantra_options['mantra_googlefont']).'" name="ma_options[mantra_googlefont]" id="mantra_googlefont" />';
- echo "<div><small>".__("Or insert your Google Font below. Please only isert the <strong>name</strong> of the font.<br /> Ex: Marko One. Go to <a href='http://www.google.com/webfonts' > google fonts </a> for some font inspiration.","mantra")."</small></div>";
-
-
+ echo "<div><small>".__("Or insert your Google Font identifier. <br /> Ex: Marko One. Go to <a href='http://www.google.com/webfonts' > Google fonts </a> for some font inspiration.","mantra")."</small></div>";
}
-//SELECT - Name: ma_options[fonttitle]
function cryout_setting_fonttitle_fn() {
global $mantra_options;
- global $fontSans, $fontSerif, $fontMono, $fontCursive;
-
- echo "<select id='mantra_fonttitle' name='ma_options[mantra_fonttitle]'>";
- echo "<option value='Default'";
- selected($mantra_options['mantra_fonttitle'],'Defaut');
- echo ">Default</option>";
- echo "<optgroup label='Sans-Serif'>";
-foreach($fontSans as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fonttitle'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
- echo "<optgroup label='Serif'>";
-foreach($fontSerif as $item) {
-
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fonttitle'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
-
- echo "<optgroup label='MonoSpace'>";
-foreach($fontMono as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fonttitle'],$item);
- echo ">$item";
-}
- echo "</optgroup>";
-
- echo "<optgroup label='Cursive'>";
-foreach($fontCursive as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fonttitle'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
- echo "</select>";
+ cryout_fontselect_helper( 'mantra_fonttitle', true );
echo "<div><small>".__("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")."</small></div><br>";
echo '<input class="googlefonts" type="text" size="45" value="'.esc_attr($mantra_options['mantra_googlefonttitle']).'" name="ma_options[mantra_googlefonttitle]" id="mantra_googlefonttitle" />';
- echo "<div><small>".__("Or insert your Google Font below. Please only isert the <strong>name</strong> of the font.<br /> Ex: Marko One. Go to <a href='http://www.google.com/webfonts' > google fonts </a> for some font inspiration.","mantra")."</small></div>";
-
-
-
-
+ echo "<div><small>".__("Or insert your Google Font identifier. <br /> Ex: Marko One. Go to <a href='http://www.google.com/webfonts' > Google fonts </a> for some font inspiration.","mantra")."</small></div>";
}
-//SELECT - Name: ma_options[fontside]
function cryout_setting_fontside_fn() {
global $mantra_options;
- global $fontSans, $fontSerif, $fontMono, $fontCursive;
-
- echo "<select id='mantra_fontside' name='ma_options[mantra_fontside]'>";
- echo "<option value='Default'";
- selected($mantra_options['mantra_fonttitle'],'Defaut');
- echo ">Default</option>";
- echo "<optgroup label='Sans-Serif'>";
-foreach($fontSans as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontside'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
- echo "<optgroup label='Serif'>";
-foreach($fontSerif as $item) {
-
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontside'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
-
- echo "<optgroup label='MonoSpace'>";
-foreach($fontMono as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontside'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
-
- echo "<optgroup label='Cursive'>";
-foreach($fontCursive as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontside'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
- echo "</select>";
+ cryout_fontselect_helper( 'mantra_fontside', true );
echo "<div><small>".__("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")."</small></div><br>";
echo '<input class="googlefonts" type="text" size="45" value="'.esc_attr($mantra_options['mantra_googlefontside']).'" name="ma_options[mantra_googlefontside]" id="mantra_googlefontside" />';
- echo "<div><small>".__("Or insert your Google Font below. Please only isert the <strong>name</strong> of the font.<br /> Ex: Marko One. Go to <a href='http://www.google.com/webfonts' > google fonts </a> for some font inspiration.","mantra")."</small></div>";
-
-
-
+ echo "<div><small>".__("Or insert your Google Font identifier. <br /> Ex: Marko One. Go to <a href='http://www.google.com/webfonts' > Google fonts </a> for some font inspiration.","mantra")."</small></div>";
}
-
-//SELECT - Name: ma_options[fontsubheader]
-function cryout_setting_fontsubheader_fn() {
+function cryout_setting_fontsubheader_fn() {
global $mantra_options;
- global $fontSans, $fontSerif, $fontMono, $fontCursive;
-
- echo "<select id='mantra_fontsubheader' name='ma_options[mantra_fontsubheader]'>";
- echo "<option value='Default'";
- selected($mantra_options['mantra_fonttitle'],'Defaut');
- echo ">Default</option>";
- echo "<optgroup label='Sans-Serif'>";
-foreach($fontSans as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontsubheader'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
-
- echo "<optgroup label='Serif'>";
-foreach($fontSerif as $item) {
-
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontsubheader'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
-
- echo "<optgroup label='MonoSpace'>";
-foreach($fontMono as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontsubheader'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
-
- echo "<optgroup label='Cursive'>";
-foreach($fontCursive as $item) {
- echo "<option style='font-family:$item;' value='$item'";
- selected($mantra_options['mantra_fontsubheader'],$item);
- echo ">$item</option>";
-}
- echo "</optgroup>";
- echo "</select>";
+
+ cryout_fontselect_helper( 'mantra_fontsubheader', true );
echo "<div><small>".__("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")."</small></div><br>";
-
echo '<input class="googlefonts" type="text" size="45" value="'.esc_attr($mantra_options['mantra_googlefontsubheader']).'" name="ma_options[mantra_googlefontsubheader]" id="mantra_googlefontsubheader" />';
- echo "<div><small>".__("Or insert your Google Font below. Please only isert the <strong>name</strong> of the font.<br /> Ex: Marko One. Go to <a href='http://www.google.com/webfonts' > google fonts </a> for some font inspiration.","mantra")."</small></div>";
-
-
+ echo "<div><small>".__("Or insert your Google Font identifier. <br /> Ex: Marko One. Go to <a href='http://www.google.com/webfonts' > Google fonts </a> for some font inspiration.","mantra")."</small></div>";
}
-//SELECT - Name: ma_options[headfontsize]
-function cryout_setting_headfontsize_fn() {
+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");
+ $options = array ("Default" , "14px" , "16px" , "18px" , "20px", "22px" , "24px" , "26px" , "28px" , "30px" , "32px" , "34px" , "36px", "38px" , "40px");
+ $labels = array( __("Default","mantra") ,"14px" , "16px" , "18px" , "20px", "22px" , "24px" , "26px" , "28px" , "30px" , "32px" , "34px" , "36px", "38px" , "40px");
echo "<select id='mantra_headfontsize' name='ma_options[mantra_headfontsize]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_headfontsize'],$item);
- echo ">$item</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_headfontsize'],$item);
+ echo ">$item</option>";
+ }
echo "</select>";
echo "<div><small>".__("Post Header Font size. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."</small></div>";
}
-//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");
+ $options = array ("Default" , "8px" , "9px" , "10px" , "11px", "12px" , "13px" , "14px" , "15px" , "16px" , "17px" , "18px");
+ $labels = array( __("Default","mantra") , "8px" , "9px" , "10px" , "11px", "12px" , "13px" , "14px" , "15px" , "16px" , "17px" , "18px");
echo "<select id='mantra_sidefontsize' name='ma_options[mantra_sidefontsize]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_sidefontsize'],$item);
- echo ">$item</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_sidefontsize'],$item);
+ echo ">$item</option>";
+ }
echo "</select>";
echo "<div><small>".__("Sidebar Font size. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."</small></div>";
}
-//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"));
+ $options = array ("Default" , "Left" , "Right" , "Justify" , "Center");
+ $labels = array( __("Default","mantra"), __("Left","mantra"), __("Right","mantra"), __("Justify","mantra"), __("Center","mantra"));
echo "<select id='mantra_textalign' name='ma_options[mantra_textalign]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_textalign'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_textalign'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("This overwrites the text alignment in posts and pages. Leave 'Default' for normal settings (alignment will remain as declared in posts, comments etc.).","mantra")."</small></div>";
}
-//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");
+ $options = array ("0.0em", "0.5em", "1.0em" , "1.1em" , "1.2em" , "1.3em" , "1.4em", "1.5em", "1.6em", "1.7em");
echo "<select id='mantra_parmargin' name='ma_options[mantra_parmargin]'>";
-foreach($items as $item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_parmargin'],$item);
- echo ">$item</option>";
-}
+ foreach($options as $item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_parmargin'],$item);
+ echo ">$item</option>";
+ }
echo "</select>";
echo "<div><small>".__("Choose the spacing between paragraphs.","mantra")."</small></div>";
}
-
-//SELECT - Name: ma_options[parindent]
function cryout_setting_parindent_fn() {
global $mantra_options;
- $items = array ("0px" , "5px" , "10px" , "15px" , "20px");
+ $options = array ("0px" , "5px" , "10px" , "15px" , "20px");
echo "<select id='mantra_parindent' name='ma_options[mantra_parindent]'>";
-foreach($items as $item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_parindent'],$item);
- echo ">$item</option>";
-}
+ foreach($options as $item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_parindent'],$item);
+ echo ">$item</option>";
+ }
echo "</select>";
echo "<div><small>".__("Choose the indent for your paragraphs.","mantra")."</small></div>";
}
-
-//CHECKBOX - Name: ma_options[headerindent]
function cryout_setting_headerindent_fn() {
global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_headerindent' name='ma_options[mantra_headerindent]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_headerindent'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_headerindent'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Disable the default header and title indent (left margin).","mantra")."</small></div>";
}
-//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");
+ $options = 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");
+ $labels = 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 "<select id='mantra_lineheight' name='ma_options[mantra_lineheight]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_lineheight'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_lineheight'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("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")."</small></div>";
}
-//SELECT - Name: ma_options[wordspace]
-function cryout_setting_wordspace_fn() {
+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");
+ $options = array ("Default" ,"-3px" , "-2px", "-1px" , "0px" , "1px" , "2px", "3px" , "4px" , "5px" , "10px");
+ $labels = array( __("Default","mantra"),"-3px" , "-2px", "-1px" , "0px" , "1px" , "2px", "3px" , "4px" , "5px" , "10px");
echo "<select id='mantra_wordspace' name='ma_options[mantra_wordspace]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_wordspace'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_wordspace'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("The space between <i>words</i>. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."</small></div>";
}
-//SELECT - Name: ma_options[letterspace]
-function cryout_setting_letterspace_fn() {
+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");
+ $options = array ("Default" ,"-0.05em" , "-0.04em", "-0.03em" , "-0.02em" , "-0.01em" , "0.01em", "0.02em" , "0.03em" , "0.04em" , "0.05em");
+ $labels = array( __("Default","mantra"),"-0.05em" , "-0.04em", "-0.03em" , "-0.02em" , "-0.01em" , "0.01em", "0.02em" , "0.03em" , "0.04em" , "0.05em");
echo "<select id='mantra_letterspace' name='ma_options[mantra_letterspace]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_letterspace'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_letterspace'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("The space between <i>letters</i>. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."</small></div>";
}
-
-//CHECKBOX - Name: ma_options[textshadow]
-function cryout_setting_textshadow_fn() {
- global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
- echo "<select id='mantra_textshadow' name='ma_options[mantra_textshadow]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_textshadow'],$item);
- echo ">$itemsare[$id]</option>";
-}
- echo "</select>";
- echo "<div><small>".__("Disable the default text shadow on headers and titles.","mantra")."</small></div>";
-}
-
////////////////////////////////
-//// APPEREANCE SETTINGS ///////
+//// APPEARANCE SETTINGS ///////
////////////////////////////////
function cryout_setting_sitebackground_fn() {
- echo "<a href=\"?page=custom-background\" class=\"button\" target=\"_blank\">".__('Define background image','mantra')."</a>";
+ echo "<a href=\"?page=custom-background\" class=\"button\" target=\"_blank\">".__('Define background image','mantra')."</a>";
} // cryout_setting_sitebackground_fn()
-
-//TEXT - Name: ma_options[backcolor]
-function cryout_setting_backcolor_fn() {
+function cryout_setting_backcolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_backcolor" name="ma_options[mantra_backcolor]" value="'.esc_attr( $mantra_options['mantra_backcolor'] ).'" />';
echo '<div id="mantra_backcolor2"></div>';
echo "<div><small>".__("Background color (Default value is 444444).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[headercolor]
-function cryout_setting_headercolor_fn() {
+function cryout_setting_headercolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_headercolor" name="ma_options[mantra_headercolor]" value="'.esc_attr( $mantra_options['mantra_headercolor'] ).'" />';
echo '<div id="mantra_headercolor2"></div>';
echo "<div><small>".__("Header background color (Default value is 333333). You can delete all inside text for no background color.","mantra")."</small></div>";
}
-function cryout_setting_contentbg_fn() {
+function cryout_setting_contentbg_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_contentbg" name="ma_options[mantra_contentbg]" value="'.esc_attr( $mantra_options['mantra_contentbg'] ).'" />';
echo '<div id="mantra_contentbg2"></div>';
echo "<div><small>".__("Content background color (Default value is FFFFFF). Works best with really light colors.","mantra")."</small></div>";
}
-function cryout_setting_menubg_fn() {
+function cryout_setting_menubg_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_menubg" name="ma_options[mantra_menubg]" value="'.esc_attr( $mantra_options['mantra_menubg'] ).'" />';
echo '<div id="mantra_menubg2"></div>';
echo "<div><small>".__("Main menu background color (Default value is FAFAFA). Should be the same color as the content bg or something just as light.","mantra")."</small></div>";
}
-function cryout_setting_first_sidebar_fn() {
+function cryout_setting_first_sidebar_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_s1bg" name="ma_options[mantra_s1bg]" value="'.esc_attr( $mantra_options['mantra_s1bg'] ).'" />';
echo '<div id="mantra_s1bg2"></div>';
echo "<div><small>".__("First sidebar background color (Default is no color for a transparent sidebar).","mantra")."</small></div>";
}
-function cryout_setting_second_sidebar_fn() {
+function cryout_setting_second_sidebar_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_s2bg" name="ma_options[mantra_s2bg]" value="'.esc_attr( $mantra_options['mantra_s2bg'] ).'" />';
echo '<div id="mantra_s2bg2"></div>';
echo "<div><small>".__("Second sidebar background color (Default is no color for a transparent sidebar).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[prefootercolor]
-function cryout_setting_prefootercolor_fn() {
+function cryout_setting_prefootercolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_prefootercolor" name="ma_options[mantra_prefootercolor]" value="'.esc_attr( $mantra_options['mantra_prefootercolor'] ).'" />';
echo '<div id="mantra_prefootercolor2"></div>';
echo "<div><small>".__("Footer widget-area background color. (Default value is 171717).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[footercolor]
-function cryout_setting_footercolor_fn() {
+function cryout_setting_footercolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_footercolor" name="ma_options[mantra_footercolor]" value="'.esc_attr( $mantra_options['mantra_footercolor'] ).'" />';
echo '<div id="mantra_footercolor2"></div>';
echo "<div><small>".__("Footer background color (Default value is 222222).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[titlecolor]
-function cryout_setting_titlecolor_fn() {
+function cryout_setting_titlecolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_titlecolor" name="ma_options[mantra_titlecolor]" value="'.esc_attr( $mantra_options['mantra_titlecolor'] ).'" />';
echo '<div id="mantra_titlecolor2"></div>';
echo "<div><small>".__("Your blog's title color (Default value is 0D85CC).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[descriptioncolor]
-function cryout_setting_descriptioncolor_fn() {
+function cryout_setting_descriptioncolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_descriptioncolor" name="ma_options[mantra_descriptioncolor]" value="'.esc_attr( $mantra_options['mantra_descriptioncolor'] ).'" />';
echo '<div id="mantra_descriptioncolor2"></div>';
echo "<div><small>".__("Your blog's description color(Default value is 222222).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[contentcolor]
-function cryout_setting_contentcolor_fn() {
+function cryout_setting_contentcolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_contentcolor" name="ma_options[mantra_contentcolor]" value="'.esc_attr( $mantra_options['mantra_contentcolor'] ).'" />';
echo '<div id="mantra_contentcolor2"></div>';
echo "<div><small>".__("Content Text Color (Default value is 333333).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[linkscolor]
-function cryout_setting_linkscolor_fn() {
+function cryout_setting_linkscolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_linkscolor" name="ma_options[mantra_linkscolor]" value="'.esc_attr( $mantra_options['mantra_linkscolor'] ).'" />';
echo '<div id="mantra_linkscolor2"></div>';
echo "<div><small>".__("Links color (Default value is 0D85CC).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[hovercolor]
-function cryout_setting_hovercolor_fn() {
+function cryout_setting_hovercolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_hovercolor" name="ma_options[mantra_hovercolor]" value="'.esc_attr( $mantra_options['mantra_hovercolor'] ).'" />';
echo '<div id="mantra_hovercolor2"></div>';
echo "<div><small>".__("Links color on mouse over (Default value is 333333).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[headtextcolor]
-function cryout_setting_headtextcolor_fn() {
+function cryout_setting_headtextcolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_headtextcolor" name="ma_options[mantra_headtextcolor]" value="'.esc_attr( $mantra_options['mantra_headtextcolor'] ).'" />';
echo '<div id="mantra_headtextcolor2"></div>';
echo "<div><small>".__("Post Header Text Color (Default value is 333333).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[headtexthover]
-function cryout_setting_headtexthover_fn() {
+function cryout_setting_headtexthover_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_headtexthover" name="ma_options[mantra_headtexthover]" value="'.esc_attr( $mantra_options['mantra_headtexthover'] ).'" />';
echo '<div id="mantra_headtexthover2"></div>';
echo "<div><small>".__("Post Header Text Color on Mouse over (Default value is 000000).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[sideheadbackcolor]
function cryout_setting_sideheadbackcolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_sideheadbackcolor" name="ma_options[mantra_sideheadbackcolor]" value="'.esc_attr( $mantra_options['mantra_sideheadbackcolor'] ).'" />';
@@ -1274,32 +988,28 @@ function cryout_setting_sideheadbackcolor_fn() {
}
-//TEXT - Name: ma_options[sideheadtextcolor]
-function cryout_setting_sideheadtextcolor_fn() {
+function cryout_setting_sideheadtextcolor_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_sideheadtextcolor" name="ma_options[mantra_sideheadtextcolor]" value="'.esc_attr( $mantra_options['mantra_sideheadtextcolor'] ).'" />';
echo '<div id="mantra_sideheadtextcolor2"></div>';
echo "<div><small>".__("Sidebar Header Text Color(Default value is 2EA5FD).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[footerheader]
-function cryout_setting_footerheader_fn() {
+function cryout_setting_footerheader_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_footerheader" name="ma_options[mantra_footerheader]" value="'.esc_attr( $mantra_options['mantra_footerheader'] ).'" />';
echo '<div id="mantra_footerheader2"></div>';
echo "<div><small>".__("Footer Widget Text Color (Default value is 0D85CC).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[footertext]
-function cryout_setting_footertext_fn() {
+function cryout_setting_footertext_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_footertext" name="ma_options[mantra_footertext]" value="'.esc_attr( $mantra_options['mantra_footertext'] ).'" />';
echo '<div id="mantra_footertext2"></div>';
echo "<div><small>".__("Footer Widget Link Color (Default value is 666666).","mantra")."</small></div>";
}
-//TEXT - Name: ma_options[footerhover]
-function cryout_setting_footerhover_fn() {
+function cryout_setting_footerhover_fn() {
global $mantra_options;
echo '<input type="text" id="mantra_footerhover" name="ma_options[mantra_footerhover]" value="'.esc_attr( $mantra_options['mantra_footerhover'] ).'" />';
echo '<div id="mantra_footerhover2"></div>';
@@ -1311,267 +1021,244 @@ function cryout_setting_footerhover_fn() {
//// 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 "<select id='mantra_breadcrumbs' name='ma_options[mantra_breadcrumbs]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_breadcrumbs'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
+ echo "<select id='mantra_breadcrumbs' name='ma_options[mantra_breadcrumbs]'>";
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_breadcrumbs'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("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")."</small></div>";
}
-//CHECKBOX - Name: ma_options[pagination]
function cryout_setting_pagination_fn() {
global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_pagination' name='ma_options[mantra_pagination]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_pagination'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_pagination'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Show numbered pagination. Where there is more than one page, instead of the bottom <b>Older Posts</b> and <b>Newer posts</b> links you have a numbered pagination. ","mantra")."</small></div>";
}
function cryout_setting_menualign_fn() {
global $mantra_options;
- $items = array ("left", "center", "right");
- $itemsare = array( __("Left","mantra"), __("Center","mantra"), __("Right","mantra"));
+ $options = array ("left", "center", "right");
+ $labels = array( __("Left","mantra"), __("Center","mantra"), __("Right","mantra"));
echo "<select id='mantra_menualign' name='ma_options[mantra_menualign]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_menualign'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_menualign'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Select the desired main menu items alignment. Center option is only valid for single line menus.","mantra")."</small></div>";
}
-//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"));
+ global $mantra_options;
+ $options = array ("White" , "Light" , "Light Gray" , "Gray" , "Dark Gray" , "Black");
+ $labels = array( __("White","mantra"), __("Light","mantra"), __("Light Gray","mantra"), __("Gray","mantra"), __("Dark Gray","mantra"), __("Black","mantra"));
echo "<select id='mantra_caption' name='ma_options[mantra_caption]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_caption'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_caption'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("This setting changes the look of your captions. Images that are not inserted through captions will not be affected.","mantra")."</small></div>";
}
-// 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) {
-
+ $options = array("None", "One", "Two", "Three" , "Four", "Five", "Six", "Seven");
+ foreach($options as $item) {
$checkedClass = ($mantra_options['mantra_image']==$item) ? ' checkedClass' : '';
-
echo " <label id='$item' for='$item$item' class='images $checkedClass'><input ";
- checked($mantra_options['mantra_image'],$item);
- echo " value='$item' id='$item$item' onClick=\"changeBorder('$item','images');\" name='ma_options[mantra_image]' type='radio' /><img id='image$item' src='".get_template_directory_uri()."/admin/images/testimg.png'/></label>";
+ checked($mantra_options['mantra_image'],$item);
+ echo " value='$item' id='$item$item' onClick=\"changeBorder('$item','images');\" name='ma_options[mantra_image]' type='radio' /><img id='image$item' src='".get_template_directory_uri()."/admin/images/testimg.png'/></label>";
}
-
- echo "<div><small>".__("The border around your inserted images. ","mantra")."</small></div>";
+ echo "<div><small>".__("The border around your inserted images. ","mantra")."</small></div>";
}
-// 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) {
+ $options = array("mantra_dot", "Pin1", "Pin2", "Pin3" , "Pin4", "Pin5");
+ foreach($options as $item) {
$none='';
if ($item == 'mantra_dot') { $none='None'; }
$checkedClass = ($mantra_options['mantra_pin']==$item) ? ' checkedClass' : '';
echo "<label id='$item' class='pins $checkedClass'><input ";
checked($mantra_options['mantra_pin'],$item);
- echo " value='$item' onClick=\"changeBorder('$item','pins');\" name='ma_options[mantra_pin]' type='radio' />$none<img style='margin-left:10px;margin-right:10px;' src='".get_template_directory_uri()."/images/pins/".$item.".png'/></label>";
+ echo " value='$item' onClick=\"changeBorder('$item','pins');\" name='ma_options[mantra_pin]' type='radio' />$none<img style='margin-left:10px;margin-right:10px;' src='".get_template_directory_uri()."/resources/images/pins/".$item.".png'/></label>";
}
- echo "<div><small>".__("The image on top of your captions. ","mantra")."</small></div>";
+ echo "<div><small>".__("The image on top of your captions. ","mantra")."</small></div>";
}
-// 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) {
+ $options = array("mantra_dot2", "arrow_black", "arrow_white", "bullet_dark" , "bullet_gray", "bullet_light", "square_dark", "square_white", "triangle_dark" , "triangle_gray", "triangle_white");
+ foreach($options as $item) {
$none='';
if ($item == 'mantra_dot2') { $none='None'; }
$checkedClass = ($mantra_options['mantra_sidebullet']==$item) ? ' checkedClass' : '';
echo "<label id='$item' class='sidebullets $checkedClass'><input ";
checked($mantra_options['mantra_sidebullet'],$item);
- echo " value='$item' onClick=\"changeBorder('$item','sidebullets');\" name='ma_options[mantra_sidebullet]' type='radio' />$none<img style='margin-left:10px;margin-right:10px;' src='".get_template_directory_uri()."/images/bullets/".$item.".png'/></label>";
+ echo " value='$item' onClick=\"changeBorder('$item','sidebullets');\" name='ma_options[mantra_sidebullet]' type='radio' />$none<img style='margin-left:10px;margin-right:10px;' src='".get_template_directory_uri()."/resources/images/bullets/".$item.".png'/></label>";
}
echo "<div><small>".__("The sidebar list bullets. ","mantra")."</small></div>";
}
-//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"));
+ $options = array ("Gray" , "White", "None");
+ $labels = array( __("Gray","mantra"), __("White","mantra"), __("None","mantra"));
echo "<select id='mantra_metaback' name='ma_options[mantra_metaback]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_metaback'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_metaback'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("The background for your post-metas area (under your post tiltes). Gray by default.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[postseparator]
function cryout_setting_postseparator_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_postseparator' name='ma_options[mantra_postseparator]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_postseparator'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_postseparator'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide or show a horizontal rule to separate posts.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[contentlist]
function cryout_setting_contentlist_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_contentlist' name='ma_options[mantra_contentlist]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_contentlist'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_contentlist'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide or show bullets next to lists that are in your content area (posts, pages etc.).","mantra")."</small></div>";
}
-
-//CHECKBOX - Name: ma_options[pagetitle]
function cryout_setting_pagetitle_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_pagetitle' name='ma_options[mantra_pagetitle]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_pagetitle'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_pagetitle'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide or show Page titles on any <i>created</i> pages. ","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[categtitle]
function cryout_setting_categtitle_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_categtitle' name='ma_options[mantra_categtitle]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_categtitle'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_categtitle'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide or show Page titles on <i>Category</i> Pages. ","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[tables]
function cryout_setting_tables_fn() {
global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_tables' name='ma_options[mantra_tables]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_tables'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_tables'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide table borders and background color.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[comtext]
function cryout_setting_comtext_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_comtext' name='ma_options[mantra_comtext]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_comtext'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_comtext'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide the explanatory text under the comments form. (starts with <i>You may use these HTML tags and attributes:...</i>).","mantra")."</small></div>";
}
-//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"));
+ $options = array ("Show" , "Hide in posts", "Hide in pages", "Hide everywhere");
+ $labels = array( __("Show","mantra"), __("Hide in posts","mantra"), __("Hide in pages","mantra"), __("Hide everywhere","mantra"));
echo "<select id='mantra_comclosed' name='ma_options[mantra_comclosed]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_comclosed'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_comclosed'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide the <b>Comments are closed</b> text that by default shows up on pages or posts with the comments disabled.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[comoff]
function cryout_setting_comoff_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_comoff' name='ma_options[mantra_comoff]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_comoff'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_comoff'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide the <b>Comments off</b> text next to posts that have comments disabled.","mantra")."</small></div>";
}
-
-//CHECKBOX - Name: ma_options[backtop]
function cryout_setting_backtop_fn() {
global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_backtop' name='ma_options[mantra_backtop]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_backtop'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_backtop'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Enable the Back to Top button. The button appears after scrolling the page down.","mantra")."</small></div>";
}
@@ -1581,122 +1268,114 @@ foreach($items as $id=>$item) {
//// 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"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_postcomlink' name='ma_options[mantra_postcomlink]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_postcomlink'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_postcomlink'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide or show the <strong>Leave a comment</strong> or <strong>x Comments</strong> next to posts or post excerpts.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[postdate]
function cryout_setting_postdate_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_postdate' name='ma_options[mantra_postdate]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_postdate'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_postdate'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide or show the post date.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[posttime]
function cryout_setting_posttime_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_posttime' name='ma_options[mantra_posttime]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_posttime'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_posttime'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Show the post time with the date. Time will not be visible if the Post Date is hidden.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[postauthor]
function cryout_setting_postauthor_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_postauthor' name='ma_options[mantra_postauthor]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_postauthor'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_postauthor'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide or show the post author.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[postcateg]
function cryout_setting_postcateg_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_postcateg' name='ma_options[mantra_postcateg]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_postcateg'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_postcateg'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide the post category.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[postbook]
function cryout_setting_postbook_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_postbook' name='ma_options[mantra_postbook]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_postbook'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_postbook'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide the 'Bookmark permalink'.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[postmetas]
function cryout_setting_postmetas_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_postmetas' name='ma_options[mantra_postmetas]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_postmetas'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_postmetas'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide the meta bar. All meta info in it will be hidden.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[posttag]
function cryout_setting_posttag_fn() {
global $mantra_options;
- $items = array ("Show" , "Hide");
- $itemsare = array( __("Show","mantra"), __("Hide","mantra"));
+ $options = array ("Show" , "Hide");
+ $labels = array( __("Show","mantra"), __("Hide","mantra"));
echo "<select id='mantra_posttag' name='ma_options[mantra_posttag]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_posttag'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_posttag'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Hide the post tags.","mantra")."</small></div>";
}
@@ -1706,55 +1385,48 @@ foreach($items as $id=>$item) {
//// 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"));
+ $options = array ("Excerpt" , "Full Post");
+ $labels = array( __("Excerpt","mantra"), __("Full Post","mantra"));
echo "<select id='mantra_excerpthome' name='ma_options[mantra_excerpthome]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_excerpthome'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_excerpthome'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("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")."</small></div>";
}
-//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"));
+ $options = array ("Excerpt" , "Full Post");
+ $labels = array( __("Excerpt","mantra"), __("Full Post","mantra"));
echo "<select id='mantra_excerptsticky' name='ma_options[mantra_excerptsticky]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_excerptsticky'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_excerptsticky'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Choose if you want the sticky posts on your home page to be visible in full or just the excerpts. ","mantra")."</small></div>";
}
-
-//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"));
+ $options = array ("Excerpt" , "Full Post");
+ $labels = array( __("Excerpt","mantra"), __("Full Post","mantra"));
echo "<select id='mantra_excerptarchive' name='ma_options[mantra_excerptarchive]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_excerptarchive'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_excerptarchive'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Excerpts on archive, categroy and search pages. Same as above, only standard posts will be affected.","mantra")."</small></div>";
}
-
-// TEXTBOX - Name: ma_options[excerptwords]
function cryout_setting_excerptwords_fn() {
global $mantra_options;
echo "<input id='mantra_excerptwords' name='ma_options[mantra_excerptwords]' size='6' type='text' value='".esc_attr( $mantra_options['mantra_excerptwords'] )."' />";
@@ -1762,46 +1434,42 @@ function cryout_setting_excerptwords_fn() {
will take the reader to the full post page.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[magazinelayout]
function cryout_setting_magazinelayout_fn() {
global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_magazinelayout' name='ma_options[mantra_magazinelayout]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_magazinelayout'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_magazinelayout'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Enable the Magazine Layout. This layout applies to pages with posts and shows 2 posts per row.","mantra")."</small></div>";
}
-// TEXTBOX - Name: ma_options[excerptdots]
function cryout_setting_excerptdots_fn() {
global $mantra_options;
echo "<input id='mantra_excerptdots' name='ma_options[mantra_excerptdots]' size='40' type='text' value='".esc_attr( $mantra_options['mantra_excerptdots'] )."' />";
echo "<div><small>".__("Replaces the three dots ('[...])' that are appended automatically to excerpts.","mantra")."</small></div>";
}
-// TEXTBOX - Name: ma_options[excerptcont]
function cryout_setting_excerptcont_fn() {
global $mantra_options;
echo "<input id='mantra_excerptcont' name='ma_options[mantra_excerptcont]' size='40' type='text' value='".esc_attr( $mantra_options['mantra_excerptcont'] )."' />";
echo "<div><small>".__("Edit the 'Continue Reading' link added to your post excerpts.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[excerpttags]
function cryout_setting_excerpttags_fn() {
global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_excerpttags' name='ma_options[mantra_excerpttags]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_excerpttags'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_excerpttags'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".sprintf(__("By default WordPress excerpts remove all HTML tags (%s and all others) and only clean text is left in the excerpt.
Enabling this option allows HTML tags to remain in excerpts so all your default formating will be kept.<br /> <b>Just a warning: </b>If HTML tags are enabled, you have to make sure
@@ -1813,90 +1481,76 @@ they are not left open. So if within your post you have an opened HTML tag but t
/// 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"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_fpost' name='ma_options[mantra_fpost]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_fpost'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_fpost'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
$checkedClass = ($mantra_options['mantra_fpostlink']=='1') ? ' checkedClass' : '';
-
-
- echo " <label style='border:none;margin-left:10px;' id='$items[0]' for='$items[0]$items[0]' class='socialsdisplay $checkedClass'><input type='hidden' name='ma_options[mantra_fpostlink]' value='0' /><input ";
+ echo " <label style='border:none;margin-left:10px;' id='$options[0]' for='$options[0]$options[0]' class='socialsdisplay $checkedClass'><input type='hidden' name='ma_options[mantra_fpostlink]' value='0' /><input ";
checked($mantra_options['mantra_fpostlink'],'1');
- echo " value='1' id='$items[0]$items[0]' name='ma_options[mantra_fpostlink]' type='checkbox' /> Link the thumbail to the post </label>";
-
-
+ echo " value='1' id='$options[0]$options[0]' name='ma_options[mantra_fpostlink]' type='checkbox' /> Link the thumbail to the post </label>";
+
echo "<div><small>".__("Show featured images as thumbnails on posts. The images must be selected for each post in the Featured Image section.","mantra")."</small></div>";
}
-//CHECKBOX - Name: ma_options[fauto]
function cryout_setting_fauto_fn() {
global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_fauto' name='ma_options[mantra_fauto]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_fauto'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_fauto'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("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")."</small></div>";
}
-
-//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"));
+ $options = array ("Left" , "Center", "Right");
+ $labels = array( __("Left","mantra"), __("Center","mantra"), __("Right","mantra"));
echo "<select id='mantra_falign' name='ma_options[mantra_falign]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_falign'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_falign'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("Thumbnail alignment.","mantra")."</small></div>";
}
-
-// TEXTBOX - Name: ma_options[fwidth]
function cryout_setting_fsize_fn() {
global $mantra_options;
echo "<input id='mantra_fwidth' name='ma_options[mantra_fwidth]' size='4' type='text' value='".esc_attr( $mantra_options['mantra_fwidth'] )."' />px (width) <b>X</b> ";
echo "<input id='mantra_fheight' name='ma_options[mantra_fheight]' size='4' type='text' value='".esc_attr( $mantra_options['mantra_fheight'] )."' />px (height)";
-
+
$checkedClass = ($mantra_options['mantra_fcrop']=='1') ? ' checkedClass' : '';
-
- echo " <label id='fcrop' for='mantra_fcrop' class='socialsdisplay $checkedClass'><input ";
- checked($mantra_options['mantra_fcrop'],'1');
+ echo " <label id='fcrop' for='mantra_fcrop' class='socialsdisplay $checkedClass'><input ";
+ checked($mantra_options['mantra_fcrop'],'1');
echo " value='1' id='mantra_fcrop' name='ma_options[mantra_fcrop]' type='checkbox' /> Crop images to exact size. </label>";
-
-
+
echo "<div><small>".__("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")."</small></div>";
}
-
-//CHECKBOX - Name: ma_options[fheader]
function cryout_setting_fheader_fn() {
global $mantra_options;
- $items = array ("Enable" , "Disable");
- $itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+ $options = array ("Enable" , "Disable");
+ $labels = array( __("Enable","mantra"), __("Disable","mantra"));
echo "<select id='mantra_fheader' name='ma_options[mantra_fheader]'>";
-foreach($items as $id=>$item) {
- echo "<option value='$item'";
- selected($mantra_options['mantra_fheader'],$item);
- echo ">$itemsare[$id]</option>";
-}
+ foreach($options as $id=>$item) {
+ echo "<option value='$item'";
+ selected($mantra_options['mantra_fheader'],$item);
+ echo ">$labels[$id]</option>";
+ }
echo "</select>";
echo "<div><small>".__("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")."</small></div>";
@@ -1907,23 +1561,22 @@ foreach($items as $id=>$item) {
/// SOCIAL SETTINGS ////
////////////////////////
-// TEXTBOX - Name: ma_options[social1]
-
-
-
function cryout_setting_social_master($i) {
+ global $mantra_options;
+ global $mantra_socials;
+
$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: <i>http://www.facebook.com/yourname</i> )','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')
+ '', __('Select your desired Social network from the left dropdown menu and insert your corresponding address in the right input field. (ex: <i>http://www.facebook.com/yourname</i> )','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 "<select id='mantra_social$i' name='ma_options[mantra_social$i]'>";
- foreach($socialNetworks as $item) {
+
+ foreach($mantra_socials as $item) {
echo "<option value='$item'";
selected($mantra_options['mantra_social'.$i],$item);
echo ">$item</option>";
@@ -1940,8 +1593,6 @@ function cryout_setting_social_master($i) {
echo "<div><small>".$cryout_social_small[$i]."</small></div>";
}
-
-
function cryout_setting_socials1_fn() {
cryout_setting_social_master(1);
}
@@ -1950,50 +1601,44 @@ 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 " <label id='$items[0]' for='$items[0]$items[0]' class='socialsdisplay $checkedClass0'><input ";
- checked($mantra_options['mantra_socialsdisplay0'],'1');
- echo " value='1' id='$items[0]$items[0]' name='ma_options[mantra_socialsdisplay0]' type='checkbox' /> Top right corner of header </label>";
+ global $mantra_options;
+ $options = array( "Header", "CLeft", "CRight" , "Footer");
- echo " <label id='$items[1]' for='$items[1]$items[1]' class='socialsdisplay $checkedClass1'><input ";
- checked($mantra_options['mantra_socialsdisplay1'],'1');
- echo " value='1' id='$items[1]$items[1]' name='ma_options[mantra_socialsdisplay1]' type='checkbox' /> Under menu - left side </label>";
+ $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 " <label id='$items[2]' for='$items[2]$items[2]' class='socialsdisplay $checkedClass2'><input ";
- checked($mantra_options['mantra_socialsdisplay2'],'1');
- echo " value='1' id='$items[2]$items[2]' name='ma_options[mantra_socialsdisplay2]' type='checkbox' /> Under menu - right side </label>";
+ echo " <label id='$options[0]' for='$options[0]$options[0]' class='socialsdisplay $checkedClass0'><input ";
+ checked($mantra_options['mantra_socialsdisplay0'],'1');
+ echo " value='1' id='$options[0]$options[0]' name='ma_options[mantra_socialsdisplay0]' type='checkbox' /> Header </label>";
- echo " <label id='$items[3]' for='$items[3]$items[3]' class='socialsdisplay $checkedClass3'><input ";
- checked($mantra_options['mantra_socialsdisplay3'],'1');
- echo " value='1' id='$items[3]$items[3]' name='ma_options[mantra_socialsdisplay3]' type='checkbox' /> In the footer (smaller icons) </label>";
+ echo " <label id='$options[1]' for='$options[1]$options[1]' class='socialsdisplay $checkedClass1'><input ";
+ checked($mantra_options['mantra_socialsdisplay1'],'1');
+ echo " value='1' id='$options[1]$options[1]' name='ma_options[mantra_socialsdisplay1]' type='checkbox' /> Left side </label>";
+ echo " <label id='$options[2]' for='$options[2]$options[2]' class='socialsdisplay $checkedClass2'><input ";
+ checked($mantra_options['mantra_socialsdisplay2'],'1');
+ echo " value='1' id='$options[2]$options[2]' name='ma_options[mantra_socialsdisplay2]' type='checkbox' /> Right side </label>";
+ echo " <label id='$options[3]' for='$options[3]$options[3]' class='socialsdisplay $checkedClass3'><input ";
+ checked($mantra_options['mantra_socialsdisplay3'],'1');
+ echo " value='1' id='$options[3]$options[3]' name='ma_options[mantra_socialsdisplay3]' type='checkbox' /> Footer </label>";
- echo "<div><p><small>".__("Choose the <b>areas</b> where to display the social icons.","mantra")."</small></p></div>";
+ echo "<div><p><small>".__("Choose the <b>areas</b> where to display the social icons.","mantra")."</small></p></div>";
}
@@ -2001,26 +1646,22 @@ global $mantra_options;
/// MISC SETTINGS ////
////////////////////////
-
-// TEXTBOX - Name: ma_options[copyright]
function cryout_setting_copyright_fn() {
global $mantra_options;
echo "<textarea id='mantra_copyright' name='ma_options[mantra_copyright]' rows='3' cols='70' type='textarea' >".esc_textarea($mantra_options['mantra_copyright'])." </textarea>";
echo "<div><small>".__("Insert custom text or HTML code that will appear last in you footer. <br /> You can use HTML to insert links, images and special characters like &copy .","mantra")."</small></div>";
}
-
-// TEXTBOX - Name: ma_options[customcss]
function cryout_setting_customcss_fn() {
global $mantra_options;
echo "<textarea id='mantra_customcss' name='ma_options[mantra_customcss]' rows='8' cols='70' type='textarea' >".esc_textarea(htmlspecialchars_decode($mantra_options['mantra_customcss'], ENT_QUOTES))." </textarea>";
echo "<div><small>".__("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). <br> Your custom CSS will be preserved when updating the theme.<br> The &ltstyle&gt tags are not needed.","mantra")."</small></div>";
}
-// TEXTBOX - Name: ma_options[customjs]
function cryout_setting_customjs_fn() {
global $mantra_options;
echo "<textarea id='mantra_customjs' name='ma_options[mantra_customjs]' rows='8' cols='70' type='textarea' >".esc_textarea(htmlspecialchars_decode($mantra_options['mantra_customjs'], ENT_QUOTES))." </textarea>";
echo "<div><small>".__("Insert your custom Javascript code here. (Google Analytics and any other forms of Analytic software).<br> The &ltscript&gt tags are not needed.","mantra")."</small></div>";
}
-?> \ No newline at end of file
+
+// FIN \ No newline at end of file
diff --git a/themes/mantra/archive.php b/themes/mantra/archive.php
index bc644e7c..ade04b3c 100644
--- a/themes/mantra/archive.php
+++ b/themes/mantra/archive.php
@@ -16,9 +16,9 @@ get_header(); ?>
<section id="container">
<div id="content" role="main">
-
+
<?php cryout_before_content_hook(); ?>
-
+
<?php if ( have_posts() ) : ?>
<header class="page-header">
@@ -45,7 +45,7 @@ get_header(); ?>
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
- get_template_part( 'content', get_post_format() );
+ get_template_part( 'content/content', get_post_format() );
?>
<?php endwhile; ?>
@@ -66,11 +66,11 @@ get_header(); ?>
</article><!-- #post-0 -->
<?php endif; ?>
-
+
<?php cryout_after_content_hook(); ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
</section><!-- #primary -->
-
-<?php get_footer(); ?> \ No newline at end of file
+<?php
+get_footer();
diff --git a/themes/mantra/attachment.php b/themes/mantra/attachment.php
index be1ce096..80e3fce4 100644
--- a/themes/mantra/attachment.php
+++ b/themes/mantra/attachment.php
@@ -15,7 +15,7 @@ get_header(); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php if ( ! empty( $post->post_parent ) ) : ?>
- <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'mantra' ), get_the_title( $post->post_parent ) ) ); ?>" rel="gallery"><?php
+ <p class="page-title"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'mantra' ), the_title_attribute('echo=0', $post->post_parent ) ) ); ?>" rel="gallery"><?php
/* translators: %s - title of parent post */
printf( '<span class="meta-nav">&laquo;</span> %s', get_the_title( $post->post_parent ) );
?></a></p>
@@ -29,7 +29,7 @@ get_header(); ?>
printf('<span class="%1$s">'.__('By','mantra').'</span> %2$s',
'meta-prep meta-prep-author',
sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
- get_author_posts_url( get_the_author_meta( 'ID' ) ),
+ esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
sprintf( esc_attr__( 'View all posts by %s', 'mantra' ), get_the_author() ),
get_the_author()
)
@@ -49,7 +49,7 @@ get_header(); ?>
$metadata = wp_get_attachment_metadata();
printf( __( 'Full size is %s pixels', 'mantra'),
sprintf( '<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>',
- wp_get_attachment_url(),
+ esc_url( wp_get_attachment_url() ),
esc_attr( __('Link to full-size image', 'mantra') ),
$metadata['width'],
$metadata['height']
@@ -82,7 +82,7 @@ get_header(); ?>
$next_attachment_url = wp_get_attachment_url();
}
?>
- <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
+ <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
$attachment_size = apply_filters( 'mantra_attachment_size', 900 );
echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height.
?></a></p>
@@ -92,7 +92,7 @@ get_header(); ?>
<div class="nav-next"><?php next_image_link( false ); ?> &raquo;</div>
</div><!-- #nav-below -->
<?php else : ?>
- <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>
+ <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( esc_url( get_permalink() ) ); ?></a>
<?php endif; ?>
</div><!-- .entry-attachment -->
<div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div>
@@ -116,4 +116,5 @@ get_header(); ?>
<?php // get_sidebar(); // sidebars disabled on attachment page; alt css used ?>
</section><!-- #container -->
-<?php get_footer(); ?>
+<?php
+get_footer();
diff --git a/themes/mantra/author.php b/themes/mantra/author.php
index c8423b99..ce424eb1 100644
--- a/themes/mantra/author.php
+++ b/themes/mantra/author.php
@@ -12,9 +12,9 @@ get_header(); ?>
<section id="container">
<div id="content" role="main">
<?php cryout_before_content_hook(); ?>
-
+
<?php if ( have_posts() ) : ?>
-
+
<?php
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
@@ -61,7 +61,7 @@ get_header(); ?>
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
- get_template_part( 'content', get_post_format() );
+ get_template_part( 'content/content', get_post_format() );
?>
<?php endwhile; ?>
@@ -82,11 +82,12 @@ get_header(); ?>
</article><!-- #post-0 -->
<?php endif; ?>
-
+
<?php cryout_after_content_hook(); ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
</section><!-- #primary -->
-<?php get_footer(); ?> \ No newline at end of file
+<?php
+get_footer();
diff --git a/themes/mantra/category.php b/themes/mantra/category.php
index 39900cbd..a9a6f615 100644
--- a/themes/mantra/category.php
+++ b/themes/mantra/category.php
@@ -12,7 +12,7 @@ get_header(); ?>
<section id="container">
<div id="content" role="main">
<?php cryout_before_content_hook(); ?>
-
+
<?php if ( have_posts() ) : ?>
<header class="page-header">
@@ -37,7 +37,7 @@ get_header(); ?>
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
- get_template_part( 'content', get_post_format() );
+ get_template_part( 'content/content', get_post_format() );
?>
<?php endwhile; ?>
@@ -58,10 +58,11 @@ get_header(); ?>
</article><!-- #post-0 -->
<?php endif; ?>
-
+
<?php cryout_after_content_hook(); ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
</section><!-- #primary -->
-<?php get_footer(); ?>
+<?php
+get_footer();
diff --git a/themes/mantra/content-aside.php b/themes/mantra/content/content-aside.php
index 5b275d81..5b275d81 100644
--- a/themes/mantra/content-aside.php
+++ b/themes/mantra/content/content-aside.php
diff --git a/themes/mantra/content-chat.php b/themes/mantra/content/content-chat.php
index d85f0784..d85f0784 100644
--- a/themes/mantra/content-chat.php
+++ b/themes/mantra/content/content-chat.php
diff --git a/themes/mantra/content-frontpage.php b/themes/mantra/content/content-frontpage.php
index 1998135c..aeb96e07 100644
--- a/themes/mantra/content-frontpage.php
+++ b/themes/mantra/content/content-frontpage.php
@@ -5,19 +5,19 @@
* @since 2.2
*/
-global $mantra_options;
+global $mantra_options;
?>
- <section id="container">
- <div id="content" role="main" style="width:96%;">
+ <section id="container" class="one-column">
+ <div id="content" role="main">
<?php if ( have_posts() ) : ?>
<?php $the_query = new WP_Query( array('posts_per_page'=>$mantra_options['mantra_frontpostscount']) ); ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
-
+
<?php global $more; $more=0; ?>
- <?php get_template_part( 'content', get_post_format() ); ?>
-
- <?php endwhile;
+ <?php get_template_part( 'content/content', get_post_format() ); ?>
+
+ <?php endwhile;
wp_reset_postdata(); ?>
<?php else : ?>
@@ -34,4 +34,4 @@ global $mantra_options;
<?php endif; ?>
</div><!-- #content -->
<?php //get_sidebar(); ?>
- </section><!-- #container --> \ No newline at end of file
+ </section><!-- #container -->
diff --git a/themes/mantra/content-gallery.php b/themes/mantra/content/content-gallery.php
index 2332eeda..2332eeda 100644
--- a/themes/mantra/content-gallery.php
+++ b/themes/mantra/content/content-gallery.php
diff --git a/themes/mantra/content-image.php b/themes/mantra/content/content-image.php
index c53ea855..c53ea855 100644
--- a/themes/mantra/content-image.php
+++ b/themes/mantra/content/content-image.php
diff --git a/themes/mantra/content-link.php b/themes/mantra/content/content-link.php
index e6f6493c..e6f6493c 100644
--- a/themes/mantra/content-link.php
+++ b/themes/mantra/content/content-link.php
diff --git a/themes/mantra/content-page.php b/themes/mantra/content/content-page.php
index 17248f0c..17248f0c 100644
--- a/themes/mantra/content-page.php
+++ b/themes/mantra/content/content-page.php
diff --git a/themes/mantra/content-quote.php b/themes/mantra/content/content-quote.php
index b0105a79..b0105a79 100644
--- a/themes/mantra/content-quote.php
+++ b/themes/mantra/content/content-quote.php
diff --git a/themes/mantra/content-status.php b/themes/mantra/content/content-status.php
index 75d91d6b..75d91d6b 100644
--- a/themes/mantra/content-status.php
+++ b/themes/mantra/content/content-status.php
diff --git a/themes/mantra/content.php b/themes/mantra/content/content.php
index e8e266e6..e8e266e6 100644
--- a/themes/mantra/content.php
+++ b/themes/mantra/content/content.php
diff --git a/themes/mantra/functions.php b/themes/mantra/functions.php
index 354ac3ac..107e5d7a 100644
--- a/themes/mantra/functions.php
+++ b/themes/mantra/functions.php
@@ -9,7 +9,7 @@
// theme specifics
define ('_CRYOUT_THEME_NAME','mantra');
-define ('_CRYOUT_THEME_VERSION','2.6.1.1');
+define ('_CRYOUT_THEME_VERSION','3.0.4');
require_once(get_template_directory() . "/admin/main.php"); // Load necessary admin files
@@ -23,4 +23,4 @@ require_once(get_template_directory() . "/includes/theme-functions.php"); // The
require_once(get_template_directory() . "/includes/theme-hooks.php"); // Theme hooks
require_once(get_template_directory() . "/includes/tgm.php"); // TGM-PA
-?>
+// FIN
diff --git a/themes/mantra/header.php b/themes/mantra/header.php
index 554dfb04..212be8f3 100644
--- a/themes/mantra/header.php
+++ b/themes/mantra/header.php
@@ -12,7 +12,7 @@
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" />
-<?php cryout_seo_hook(); ?>
+<?php cryout_seo_hook(); ?>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
@@ -38,6 +38,7 @@
</div><!-- #branding -->
+ <a id="nav-toggle"><span>&nbsp; <?php _e('Menu', 'mantra');?></span></a>
<nav id="access" class="jssafe" role="navigation">
<?php cryout_access_hook();?>
@@ -49,11 +50,10 @@
<div style="clear:both;"> </div>
</header><!-- #header -->
-<div id="main">
+<div id="main" class="main">
<div id="forbottom" >
<?php cryout_forbottom_hook(); ?>
<div style="clear:both;"> </div>
-
+
<?php cryout_breadcrumbs_hook();?>
- \ No newline at end of file
diff --git a/themes/mantra/images/slider/mantra-column.jpg b/themes/mantra/images/slider/mantra-column.jpg
deleted file mode 100644
index dfbf186e..00000000
--- a/themes/mantra/images/slider/mantra-column.jpg
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/slider/mantra-slide1.jpg b/themes/mantra/images/slider/mantra-slide1.jpg
deleted file mode 100644
index 76d82d6c..00000000
--- a/themes/mantra/images/slider/mantra-slide1.jpg
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/slider/mantra-slide2.jpg b/themes/mantra/images/slider/mantra-slide2.jpg
deleted file mode 100644
index 5c1c800a..00000000
--- a/themes/mantra/images/slider/mantra-slide2.jpg
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Amazon.png b/themes/mantra/images/socials/Amazon.png
deleted file mode 100644
index f6a79c62..00000000
--- a/themes/mantra/images/socials/Amazon.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Dailymotion.png b/themes/mantra/images/socials/Dailymotion.png
deleted file mode 100644
index cb6a3026..00000000
--- a/themes/mantra/images/socials/Dailymotion.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Delicious.png b/themes/mantra/images/socials/Delicious.png
deleted file mode 100644
index 271aa3a0..00000000
--- a/themes/mantra/images/socials/Delicious.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/DeviantArt.png b/themes/mantra/images/socials/DeviantArt.png
deleted file mode 100644
index 43ac9292..00000000
--- a/themes/mantra/images/socials/DeviantArt.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Digg.png b/themes/mantra/images/socials/Digg.png
deleted file mode 100644
index d8a69565..00000000
--- a/themes/mantra/images/socials/Digg.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Etsy.png b/themes/mantra/images/socials/Etsy.png
deleted file mode 100644
index 57e610be..00000000
--- a/themes/mantra/images/socials/Etsy.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Facebook.png b/themes/mantra/images/socials/Facebook.png
deleted file mode 100644
index 947a6af0..00000000
--- a/themes/mantra/images/socials/Facebook.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Flickr.png b/themes/mantra/images/socials/Flickr.png
deleted file mode 100644
index f955aee1..00000000
--- a/themes/mantra/images/socials/Flickr.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/GoodReads.png b/themes/mantra/images/socials/GoodReads.png
deleted file mode 100644
index a889d384..00000000
--- a/themes/mantra/images/socials/GoodReads.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Google.png b/themes/mantra/images/socials/Google.png
deleted file mode 100644
index fb3a9bab..00000000
--- a/themes/mantra/images/socials/Google.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/GooglePlus.png b/themes/mantra/images/socials/GooglePlus.png
deleted file mode 100644
index cc45e40e..00000000
--- a/themes/mantra/images/socials/GooglePlus.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/IMDb.png b/themes/mantra/images/socials/IMDb.png
deleted file mode 100644
index 858a802a..00000000
--- a/themes/mantra/images/socials/IMDb.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Instagram.png b/themes/mantra/images/socials/Instagram.png
deleted file mode 100644
index b203e1bf..00000000
--- a/themes/mantra/images/socials/Instagram.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/LastFM.png b/themes/mantra/images/socials/LastFM.png
deleted file mode 100644
index 5e0ab2b9..00000000
--- a/themes/mantra/images/socials/LastFM.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/LinkedIn.png b/themes/mantra/images/socials/LinkedIn.png
deleted file mode 100644
index a4e20d15..00000000
--- a/themes/mantra/images/socials/LinkedIn.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Mail.png b/themes/mantra/images/socials/Mail.png
deleted file mode 100644
index 8dfa3ebd..00000000
--- a/themes/mantra/images/socials/Mail.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/MySpace.png b/themes/mantra/images/socials/MySpace.png
deleted file mode 100644
index 93e457f6..00000000
--- a/themes/mantra/images/socials/MySpace.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Picasa.png b/themes/mantra/images/socials/Picasa.png
deleted file mode 100644
index 9d2bc3ba..00000000
--- a/themes/mantra/images/socials/Picasa.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Pinterest.png b/themes/mantra/images/socials/Pinterest.png
deleted file mode 100644
index cd0294a2..00000000
--- a/themes/mantra/images/socials/Pinterest.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/RSS.png b/themes/mantra/images/socials/RSS.png
deleted file mode 100644
index beae9d0d..00000000
--- a/themes/mantra/images/socials/RSS.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Reddit.png b/themes/mantra/images/socials/Reddit.png
deleted file mode 100644
index 45f6874f..00000000
--- a/themes/mantra/images/socials/Reddit.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Skype.png b/themes/mantra/images/socials/Skype.png
deleted file mode 100644
index edf9284f..00000000
--- a/themes/mantra/images/socials/Skype.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/SoundCloud.png b/themes/mantra/images/socials/SoundCloud.png
deleted file mode 100644
index 645fc269..00000000
--- a/themes/mantra/images/socials/SoundCloud.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Steam.png b/themes/mantra/images/socials/Steam.png
deleted file mode 100644
index 39421b8d..00000000
--- a/themes/mantra/images/socials/Steam.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/StumbleUpon.png b/themes/mantra/images/socials/StumbleUpon.png
deleted file mode 100644
index 356448ac..00000000
--- a/themes/mantra/images/socials/StumbleUpon.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Technorati.png b/themes/mantra/images/socials/Technorati.png
deleted file mode 100644
index 8b457739..00000000
--- a/themes/mantra/images/socials/Technorati.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Tumblr.png b/themes/mantra/images/socials/Tumblr.png
deleted file mode 100644
index e6e7f4d5..00000000
--- a/themes/mantra/images/socials/Tumblr.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Twitter.png b/themes/mantra/images/socials/Twitter.png
deleted file mode 100644
index 41efa998..00000000
--- a/themes/mantra/images/socials/Twitter.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Vimeo.png b/themes/mantra/images/socials/Vimeo.png
deleted file mode 100644
index 99396a59..00000000
--- a/themes/mantra/images/socials/Vimeo.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/WordPress.png b/themes/mantra/images/socials/WordPress.png
deleted file mode 100644
index 60ced4f6..00000000
--- a/themes/mantra/images/socials/WordPress.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/Yahoo.png b/themes/mantra/images/socials/Yahoo.png
deleted file mode 100644
index b73ddae2..00000000
--- a/themes/mantra/images/socials/Yahoo.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/images/socials/YouTube.png b/themes/mantra/images/socials/YouTube.png
deleted file mode 100644
index 2f50f362..00000000
--- a/themes/mantra/images/socials/YouTube.png
+++ /dev/null
Binary files differ
diff --git a/themes/mantra/includes/custom-styles.php b/themes/mantra/includes/custom-styles.php
new file mode 100644
index 00000000..ad83220e
--- /dev/null
+++ b/themes/mantra/includes/custom-styles.php
@@ -0,0 +1,302 @@
+<?php
+
+function cryout_optset($var, $val1, $val2='', $val3='', $val4=''){
+ $vals = array( $val1, $val2, $val3, $val4 );
+ if ( in_array($var, $vals) ) {
+ return false;
+ } else {
+ return true;
+ }
+}
+
+function mantra_custom_styles() {
+ $options = mantra_get_theme_options();
+ extract($options);
+
+ $totalwidth = $mantra_sidewidth+$mantra_sidebar;
+ $contentSize = $mantra_sidewidth;
+ $sidebarSize = $mantra_sidebar;
+
+ ob_start();
+
+ /* LAYOUT CSS */
+
+ ?>
+ #wrapper { <?php echo (($mantra_mobile == 'Enable') ? 'max-' : '');?>width: <?php echo ($totalwidth); ?>px; }
+ #content { width: 100%; max-width:<?php echo absint( $contentSize ) ?>px; max-width: calc( 100% - <?php echo absint( $sidebarSize ) ?>px ); }
+ <?php
+
+ // handle layout page template custom sizes
+
+ if (is_page_template("templates/template-onecolumn.php") ) { ?>
+ #content { width: 100%; margin: 0; }
+ <?php }
+
+ elseif (is_page_template("templates/template-twocolumns-right.php") ) { ?>
+ #primary, #secondary {width:<?php echo absint( $sidebarSize ) ?>px;}
+ #primary .widget-title, #secondary .widget-title { margin-right: -2em; text-align: left;}
+ <?php }
+
+ elseif ( is_page_template("templates/template-twocolumns-left.php") ) { ?>
+ #content {float:right;}
+ #primary,#secondary {width:<?php echo absint( $sidebarSize ) ?>px;float:left;clear:left;border:none;border-right:1px dotted #EEE;}
+ #primary .widget-title, #secondary .widget-title { border-radius:0 15px 0 0 ; text-align:right; margin-left: -2em;}
+ <?php }
+
+ elseif ( is_page_template("templates/template-threecolumns-right.php") ) { ?>
+ #primary,#secondary {width: <?php echo absint( $mantra_sidebar/2 ) ?>px;}
+ #primary .widget-title, #secondary .widget-title { margin-right: -2em; text-align: left;}
+ <?php }
+
+ elseif ( is_page_template("templates/template-threecolumns-left.php") ) { ?>
+ #content {float:right;display:block;}
+ #primary,#secondary {width:<?php echo absint( $sidebarSize/2 ) ?>px;float:left;border:none;border-right:1px dotted #EEE;}
+ #primary .widget-title, #secondary .widget-title { border-radius:0 15px 0 0 ; text-align:right; margin-left: -2em; }
+ <?php }
+
+ elseif ( is_page_template("templates/template-threecolumns-center.php") ) { ?>
+ #content { float:right;margin:0 <?php echo absint( $sidebarSize/2) ?>px 0 <?php echo -(absint( $contentSize + $sidebarSize ) ) ?>px;display:block;}
+ #primary {width:<?php echo absint( $sidebarSize/2 ) ?>px;float:left;border:none;border-right:1px dotted #EEE;}
+ #secondary {width:<?php echo absint( $sidebarSize/2 ) ?>px;float:right;}
+ #primary .widget-title { border-radius:0 15px 0 0 ; text-align:right;padding-right:15px;margin-left: -2em;}
+ #secondary .widget-title { margin-right: -2em; text-align: left;}
+ <?php }
+
+ // end layout page template custom sizes
+ else {
+ // compute sizes based on the general layout
+
+ if ($mantra_side == "1c" ) { ?>
+ #content { max-width:<?php echo absint($totalwidth) ?>px; margin-top:0; }
+ <?php }
+
+ if ($mantra_side == "2cSr" ) { ?>
+ #primary, #secondary { width:<?php echo absint( $sidebarSize ) ?>px; }
+ #primary .widget-title, #secondary .widget-title { margin-right: -2em; text-align: left; }
+ <?php }
+
+ if ($mantra_side == "2cSl" ) { ?>
+ #content { float:right; }
+ #primary, #secondary { width:<?php echo absint( $sidebarSize ) ?>px; float:left; clear:left; border:none; border-right:1px dotted #EEE; }
+ #primary .widget-title, #secondary .widget-title { border-radius:0 15px 0 0; text-align:right; margin-left: -2em; }
+ <?php }
+
+ if ($mantra_side == "3cSr" ) { ?>
+ #primary, #secondary { width: <?php echo absint( $mantra_sidebar/2 ) ?>px; }
+ #primary .widget-title, #secondary .widget-title { margin-right: -2em; text-align: left; }
+ <?php }
+
+ if ($mantra_side == "3cSl" ) { ?>
+ #content { float:right; display:block; }
+ #primary, #secondary { width:<?php echo absint( $sidebarSize/2 ) ?>px; float:left; border:none; border-right: 1px dotted #EEE; }
+ #primary .widget-title, #secondary .widget-title { border-radius:0 15px 0 0 ; text-align:right; margin-left: -2em; }
+ <?php }
+
+ if ($mantra_side == "3cSs") { ?>
+ #content { float:right; margin:0 <?php echo absint( $sidebarSize/2) ?>px 0 <?php echo -(absint( $contentSize + $sidebarSize ) ) ?>px; display:block; }
+ #primary { width:<?php echo absint( $sidebarSize/2 ) ?>px; float:left; border:none; border-right:1px dotted #EEE; }
+ #secondary { width:<?php echo absint( $sidebarSize/2 ) ?>px; float:right; }
+ #primary .widget-title { border-radius:0 15px 0 0 ; text-align:right; padding-right:15px; margin-left: -2em; }
+ #secondary .widget-title { margin-right: -2em; text-align: left; }
+ <?php }
+ // end compute sizes based on the general layout
+ }
+ // end layouts
+
+ /* THE REST OF THE CSS */
+ ?>
+ html {
+ font-size:<?php echo esc_attr($mantra_fontsize) ?>; <?php
+ if ($mantra_lineheight != "Default") { ?>line-height:<?php echo absint( $mantra_lineheight ) ?>; <?php }
+ if ($mantra_wordspace != "Default") { ?>word-spacing:<?php echo esc_attr( $mantra_wordspace ) ?>;<?php }
+ if ($mantra_letterspace != "Default") { ?>letter-spacing:<?php echo esc_attr( $mantra_letterspace ) ?>;<?php }
+ if ($mantra_textalign != "Default") { ?>text-align:<?php echo esc_attr( $mantra_textalign ) ?>;<?php } ?>
+ }
+ <?php
+ if (!empty($mantra_hcenter)) { ?> #bg_image { display:block; margin:0 auto; } <?php }
+ if ($mantra_contentbg != "#FFFFFF") { ?> #main, #access ul li.current_page_item, #access ul li.current-menu-item,
+ #access ul ul li, #nav-toggle { background-color:<?php echo esc_attr( $mantra_contentbg ); ?>} <?php }
+ if ($mantra_menubg != "#FAFAFA") { ?> #access ul li { background-color:<?php echo esc_attr( $mantra_menubg ); ?>} <?php }
+ if (!empty($mantra_s1bg)) { ?> #primary { background-color:<?php echo esc_attr( $mantra_s1bg ); ?>} <?php }
+ if (!empty($mantra_s2bg)) { ?> #secondary { background-color:<?php echo esc_attr( $mantra_s2bg ); ?>} <?php }
+
+ $mantra_googlefont = str_replace('+',' ',preg_replace('/:.*/i','',$mantra_googlefont));
+ $mantra_googlefonttitle = str_replace('+',' ',preg_replace('/:.*/i','',$mantra_googlefonttitle));
+ $mantra_googlefontside = str_replace('+',' ',preg_replace('/:.*/i','',$mantra_googlefontside));
+ $mantra_googlefontsubheader = str_replace('+',' ',preg_replace('/:.*/i','',$mantra_googlefontsubheader));
+
+ if (!empty($mantra_googlefont)){ ?> body, input, textarea {font-family:<?php echo "\"$mantra_googlefont\""; ?>; } <?php }
+ elseif (stripslashes($mantra_fontfamily) != '"Segoe UI", Arial, sans-serif') { ?> body, input, textarea {font-family:<?php echo $mantra_fontfamily; ?>; } <?php }
+
+ if (!empty($mantra_googlefonttitle)) { ?> #content h1.entry-title a, #content h2.entry-title a, #content h1.entry-title, #content h2.entry-title,
+ #front-text1 h2, #front-text2 h2 {font-family: <?php echo "\"$mantra_googlefonttitle\"" ?>; }<?php }
+ elseif ($mantra_fonttitle != "Default") { ?> #content h1.entry-title a, #content h2.entry-title a, #content h1.entry-title, #content h2.entry-title,
+ #front-text1 h2, #front-text2 h2 {font-family:<?php echo $mantra_fonttitle ?>; } <?php }
+
+ if (!empty($mantra_googlefontside)) { ?> .widget-area {font-family:<?php echo "\"$mantra_googlefontside\"" ?>; }<?php }
+ elseif ($mantra_fontside != "Default") { ?> .widget-area {font-family:<?php echo $mantra_fontside ?>; }<?php }
+
+ if (!empty($mantra_googlefontsubheader)) { ?> .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4,
+ .entry-content h5, .entry-content h6 {font-family:<?php echo "\"$mantra_googlefontsubheader\"" ?>; }<?php }
+ elseif ($mantra_fontsubheader != "Default") { ?> .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4,
+ .entry-content h5, .entry-content h6 {font-family:<?php echo $mantra_fontsubheader ?>; }<?php }
+
+ if ($mantra_caption != "Light") { ?> #content .wp-caption { <?php
+ if ($mantra_caption == "White") { ?> background-color:#FFF;<?php }
+ elseif ($mantra_caption == "Light Gray") {?> background-color:#EEE;<?php }
+ elseif ($mantra_caption == "Gray") {?> background-color:#CCC;<?php }
+ elseif ($mantra_caption == "Dark Gray") {?> background-color:#444; color:#CCC;<?php }
+ elseif ($mantra_caption == "Black") {?> background-color:#000; color:#CCC;<?php }
+ ?> }
+ <?php }
+ if ($mantra_menurounded == "Disable") { ?> #access ul li {border-radius:0;}<?php }
+ if ($mantra_metaback == "White") { ?> .entry-meta { background:#FFF;} <?php }
+ elseif ($mantra_metaback == "None") { ?> .entry-meta { background:#FFF;border:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;} <?php }
+
+ if ($mantra_postseparator == "Show") { ?> article.post, article.page { padding-bottom:10px;border-bottom:3px solid #EEE } <?php }
+ if ($mantra_contentlist == "Hide") { ?> .entry-content ul li { background-image:none ; padding-left:0;} .entry-content ul { margin-left:0; } <?php }
+
+ if ($mantra_comtext == "Hide") { ?> #respond .form-allowed-tags { display:none;} <?php }
+ if ($mantra_comclosed == "Hide in posts") { ?> .nocomments { display:none;} <?php }
+ elseif ($mantra_comclosed == "Hide in pages") { ?> .nocomments2 {display:none;} <?php }
+ elseif ($mantra_comclosed == "Hide everywhere") { ?> .nocomments, .nocomments2 {display:none;} <?php }
+ if ($mantra_comoff == "Hide") { ?> .comments-link span { display:none;} <?php }
+
+ if ($mantra_tables == "Enable") { ?> #content table, #content tr td {border:none;} #content tr, #content tr th, #content thead th {background:none;} <?php }
+ if ($mantra_headfontsize != "Default") { ?> #content h1.entry-title, #content h2.entry-title { font-size:<?php echo esc_attr( $mantra_headfontsize ); ?>; }<?php }
+ if ($mantra_sidefontsize != "Default") { ?> .widget-area, .widget-area a:link, .widget-area a:visited { font-size:<?php echo esc_attr( $mantra_sidefontsize ); ?>; }<?php }
+ if ($mantra_headerindent == "Enable") { ?> #content h1, #content h2, #content h3, #content h4, #content h5, #content h6 { margin-left:20px;}
+ .sticky hgroup { background: url(<?php echo get_template_directory_uri().'/resources/images/icon-featured.png' ; ?>) no-repeat 12px 10px transparent; padding-left: 15px; } <?php } ?>
+
+ #header-container > div { margin-top:<?php echo absint( $mantra_headermargintop ); ?>px; }
+ #header-container > div { margin-left:<?php echo absint( $mantra_headermarginleft ); ?>px; } <?php
+ if ($mantra_backcolor != "444444") { ?> body { background-color:<?php echo esc_attr( $mantra_backcolor ); ?> !important; }<?php }
+ if ($mantra_headercolor != "333333") { ?> #header { background-color:<?php echo esc_attr( $mantra_headercolor ); ?>; }<?php }
+ if ($mantra_prefootercolor != "222222") { ?> #footer { background-color:<?php echo esc_attr( $mantra_prefootercolor ); ?>; }<?php }
+ if ($mantra_footercolor != "171717") { ?> #footer2 { background-color:<?php echo esc_attr( $mantra_footercolor ); ?>; }<?php }
+ if ($mantra_titlecolor != "0D85CC") { ?> #site-title span a { color:<?php echo esc_attr( $mantra_titlecolor ); ?>; }<?php }
+ if ($mantra_descriptioncolor != "0D85CC") { ?> #site-description { color:<?php echo esc_attr( $mantra_descriptioncolor ); ?>; }<?php }
+ if ($mantra_contentcolor != "333333") { ?> #content, #content p, #content ul, #content ol { color:<?php echo esc_attr( $mantra_contentcolor ); ?> ;}<?php }
+ if ($mantra_linkscolor != "0D85CC") { ?> .widget-area a:link, .widget-area a:visited, a:link, a:visited ,#searchform #s:hover, #container #s:hover, #access a:hover,
+ #wp-calendar tbody td a, #site-info a, #site-copyright a, #access li:hover > a,
+ #access ul ul:hover > a { color:<?php echo esc_attr( $mantra_linkscolor ); ?>; }<?php }
+ if ($mantra_hovercolor != "333333") { ?> a:hover, .entry-meta a:hover, .entry-utility a:hover,
+ .widget-area a:hover { color:<?php echo esc_attr( $mantra_hovercolor ) ; ?>; }<?php }
+ if ($mantra_headtextcolor != "333333") { ?> #content .entry-title a, #content .entry-title, #content h1, #content h2, #content h3,
+ #content h4, #content h5, #content h6 { color:<?php echo esc_attr( $mantra_headtextcolor ); ?>; }<?php }
+ if ($mantra_headtexthover != "000000") { ?> #content .entry-title a:hover { color:<?php echo esc_attr( $mantra_headtexthover ); ?>; }<?php }
+ if ($mantra_sideheadbackcolor != "444444") { ?> .widget-title { background-color:<?php echo esc_attr( $mantra_sideheadbackcolor ); ?>; }<?php }
+ if ($mantra_sideheadtextcolor != "2EA5FD") { ?> .widget-title { color:<?php echo esc_attr( $mantra_sideheadtextcolor ); ?>; }<?php }
+
+ if ($mantra_magazinelayout == "Enable") { ?> #content article.post{ float:left; width:47%; margin-right:3%; }
+ #content article.sticky { margin-right:3%;padding:0; }
+ #content article.sticky > * {margin:2%;}
+ #content article:nth-of-type(2n+1) {clear: both; } <?php } ?>
+
+ #footer-widget-area .widget-title { color:<?php echo esc_attr( $mantra_footerheader ); ?>; }
+ #footer-widget-area a { color:<?php echo esc_attr( $mantra_footertext ); ?>; }
+ #footer-widget-area a:hover { color:<?php echo esc_attr( $mantra_footerhover ); ?>; } <?php
+
+ switch ($mantra_menualign) {
+ case "center": ?> #access ul { display: table; margin: 0 auto; } <?php break;
+ case "right": ?> #access .menu-header, div.menu { float: right; } <?php break;
+ default: break;
+ } // switch ?>
+
+ #content .wp-caption { background-image:url(<?php echo get_template_directory_uri() . "/resources/images/pins/" . esc_attr($mantra_pin); ?>.png); } <?php
+ if ($mantra_sidebullet != "arrow_white") { ?> .widget-area ul ul li { background-image: url(<?php echo get_template_directory_uri() . "/resources/images/bullets/" . esc_attr($mantra_sidebullet); ?>.png); background-position: left calc(2em / 2 - 4px); } <?php }
+
+ if ($mantra_pagetitle == "Hide") { ?> .page h1.entry-title, .home .page h2.entry-title { display:none; } <?php }
+ if ($mantra_categtitle == "Hide") { ?> h1.page-title { display:none; } <?php }
+ if (($mantra_postdate == "Hide" && $mantra_postcateg == "Hide") || ($mantra_postauthor == "Hide" && $mantra_postcateg == "Hide") ) { ?>.entry-meta .bl_sep { display:none; } <?php }
+ if ($mantra_postdate == "Hide") { ?> .entry-meta time.onDate { display:none; } <?php }
+ if ($mantra_postcomlink == "Hide") { ?> .entry-meta .comments-link, .entry-meta2 .comments-link { display:none; } <?php }
+ if ($mantra_postauthor == "Hide") { ?> .entry-meta .author { display:none; } <?php }
+ if ($mantra_postcateg == "Hide") { ?> .entry-meta span.bl_categ, .entry-meta2 span.bl_categ { display:none; } <?php }
+ if ($mantra_posttag == "Hide") { ?> .entry-utility span.bl_posted, .entry-meta2 span.bl_tagg,.entry-meta3 span.bl_tagg { display:none; } <?php }
+ if ($mantra_postbook == "Hide") { ?> .entry-utility span.bl_bookmark { display:none; } <?php }
+ if ($mantra_parmargin) { ?> #content p:not(:last-child), .entry-content ul, .entry-summary ul,
+ .entry-content ol, .entry-summary ol { margin-bottom:<?php echo esc_attr( $mantra_parmargin ); ?>;} <?php }
+ if ($mantra_parindent != "0px") { ?> p {text-indent: <?php echo esc_attr( $mantra_parindent );?>; } <?php }
+ if ($mantra_posttime == "Hide") { ?> .entry-meta .entry-time { display:none; } <?php }
+ if ($mantra_postmetas == "Hide") { ?> #content .entry-meta, #content .entry-header div.entry-meta2 > * { display:none; } <?php }
+ if (($mantra_mobile == "Enable") && $mantra_hcontain) { ?> #branding { -webkit-background-size: contain !important; -moz-background-size: contain !important; background-size: contain !important; } <?php } ?>
+
+ #branding { height:<?php echo HEADER_IMAGE_HEIGHT; ?>px ;} <?php
+ if ($mantra_hratio) { ?> @media (max-width: 800px) {#branding, #bg_image { min-height:inherit !important; } }<?php }
+
+ return ob_get_clean();
+} // mantra_custom_styles()
+
+if ( ! function_exists( 'mantra_frontpage_css' ) ) :
+function mantra_frontpage_css() {
+ $mantra_options = mantra_get_theme_options();
+ extract( $mantra_options );
+ ob_start(); ?>
+ /* Mantra frontpage CSS */
+ <?php if ($mantra_fronthideheader) {?> #branding { display: none; } <?php }
+ if ($mantra_fronthidemenu) {?> #access { display: none; } <?php }
+ if ($mantra_fronthidewidget) {?> #colophon { display: none; } <?php }
+ if ($mantra_fronthidefooter) {?> #footer2 { display: none; } <?php }
+ if ($mantra_fronthideback) {?> #main { background: none; } <?php } ?>
+
+ #slider {
+ max-width: <?php echo absint( $mantra_fpsliderwidth )?>px;
+ max-height: <?php echo absint( $mantra_fpsliderheight ) ?>px;
+ border: <?php echo absint( $mantra_fpsliderborderwidth ) . 'px solid ' . esc_attr($mantra_fpsliderbordercolor) ?>;
+ }
+
+ .column-image {
+ border: <?php echo absint( $mantra_fpsliderborderwidth/2 ) . 'px solid ' . esc_attr($mantra_fpsliderbordercolor) ?>;
+ }
+
+ #front-text1 h2,
+ #front-text2 h2 {
+ color: <?php echo esc_attr( $mantra_fronttitlecolor ); ?>;
+ }
+
+ .column-image {
+ max-height: <?php echo absint( $mantra_colimageheight ) ?>px;
+ }
+
+ #front-columns h3 a {
+ color: <?php echo esc_attr( $mantra_fronttitlecolor ) ?>;
+ }
+
+ <?php
+ switch($mantra_fpslidernav) {
+ case "Bullets":
+ break;
+ case "Numbers": ?>
+ .theme-default .nivo-controlNav { bottom:-40px; }
+ .theme-default .nivo-controlNav a { background: none; text-decoration:underline; text-indent:0; } <?php
+ break;
+ case "None": ?>
+ .theme-default .nivo-controlNav { display:none; } <?php
+ break;
+ }
+
+ return ob_get_clean();
+} // mantra_frontpage_css()
+endif;
+
+function mantra_customcss() {
+ $options = mantra_get_theme_options();
+
+ if ( !empty($options['mantra_customcss']) ) {
+ return htmlspecialchars_decode( $options['mantra_customcss'], ENT_QUOTES );
+ }
+} // mantra_customcss()
+
+
+function mantra_customjs() {
+ $options = mantra_get_theme_options();
+
+ if ( !empty($options['mantra_customjs']) ) { ?>
+ <script type="text/javascript">
+ <?php echo htmlspecialchars_decode( $options['mantra_customjs'], ENT_QUOTES ); ?>
+ </script> <?php
+ }
+} // mantra_customjs()
+
+// FIN
diff --git a/themes/mantra/includes/theme-comments.php b/themes/mantra/includes/theme-comments.php
index f5186c96..51655495 100644
--- a/themes/mantra/includes/theme-comments.php
+++ b/themes/mantra/includes/theme-comments.php
@@ -1,10 +1,10 @@
<?php /*
- * Comments related functions - comments.php
+ * Comments related functions - comments.php
*
* @package mantra
* @subpackage Functions
*/
-
+
if ( ! function_exists( 'mantra_comment' ) ) :
/**
* Template for comments and pingbacks.
@@ -30,10 +30,6 @@ function mantra_comment( $comment, $args, $depth ) {
</div><!-- .comment-author .vcard -->
- <?php if ( $comment->comment_approved == '0' ) : ?>
- <em><?php _e( 'Your comment is awaiting moderation.', 'mantra' ); ?></em>
- <br />
- <?php endif; ?>
<div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
<?php
@@ -42,7 +38,12 @@ function mantra_comment( $comment, $args, $depth ) {
?>
</div><!-- .comment-meta .commentmetadata -->
- <div class="comment-body"><?php comment_text(); ?></div>
+ <div class="comment-body">
+ <?php if ( $comment->comment_approved == '0' ) : ?>
+ <em><?php _e( 'Your comment is awaiting moderation.', 'mantra' ); ?></em>
+ <br />
+ <?php endif; ?>
+ <?php comment_text(); ?></div>
<div class="reply">
<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
@@ -62,6 +63,7 @@ function mantra_comment( $comment, $args, $depth ) {
}
endif;
+
/**
* Removes the default styles that are packaged with the Recent Comments widget.
*
@@ -74,15 +76,15 @@ function mantra_remove_recent_comments_style() {
global $wp_widget_factory;
remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
}
-
add_action( 'widgets_init', 'mantra_remove_recent_comments_style' );
+
if ( ! function_exists( 'mantra_comments_on' ) ) :
/**
* Number of comments on loop post if comments are enabled.
*/
function mantra_comments_on() {
- printf ( comments_popup_link( __( 'Leave a comment', 'mantra' ), __( '<b>1</b> Comment', 'mantra' ), __( '<b>%</b> Comments', 'mantra' ) ));
+ printf ( comments_popup_link( __( 'Leave a comment', 'mantra' ), __( '1 Comment', 'mantra' ), __( '% Comments', 'mantra' ) ));
}
endif;
@@ -90,54 +92,49 @@ endif;
* The number of comments title
*/
function mantra_number_comments() { ?>
- <h3 id="comments-title">
- <?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'mantra' ),
- number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); ?>
- </h3>
-<?php }
-
+ <h3 id="comments-title">
+ <?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'mantra' ),
+ number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); ?>
+ </h3> <?php
+}
add_action('cryout_before_comments_hook','mantra_number_comments');
/**
* The comments navigation in case of comments on multiple pages (both top and bottom)
*/
function mantra_comments_navigation() {
-if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
- <div class="navigation">
- <div class="nav-previous"><?php previous_comments_link( '<span class="meta-nav">&larr;</span>'.__('Older Comments', 'mantra' ) ); ?></div>
- <div class="nav-next"><?php next_comments_link( __( 'Newer Comments', 'mantra' ).' <span class="meta-nav">&rarr;</span>' ); ?></div>
- </div> <!-- .navigation -->
-<?php endif; // check for comment navigation
+ if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
+ <div class="navigation">
+ <div class="nav-previous"><?php previous_comments_link( '<span class="meta-nav">&larr;</span>'.__('Older Comments', 'mantra' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments', 'mantra' ).' <span class="meta-nav">&rarr;</span>' ); ?></div>
+ </div> <!-- .navigation -->
+ <?php endif; // check for comment navigation
}
-
add_action('cryout_before_comments_hook','mantra_comments_navigation');
add_action('cryout_after_comments_hook','mantra_comments_navigation');
/*
* Listing the actual comments
-*
+*
* Loop through and list the comments. Tell wp_list_comments()
* to use mantra_comment() to format the comments.
* If you want to overload this in a child theme then you can
* define mantra_comment() and that will be used instead.
* See mantra_comment() in mantra/functions.php for more.
*/
-function mantra_list_comments() {
- wp_list_comments( array( 'callback' => 'mantra_comment' ) );
- }
-
-add_action('cryout_comments_hook','mantra_list_comments');
+function mantra_list_comments() {
+ wp_list_comments( array( 'callback' => 'mantra_comment' ) );
+}
+add_action('cryout_comments_hook','mantra_list_comments');
/*
* If there are no comments and comments are closed
*/
-function mantra_comments_off() {
-if ( ! comments_open() ) : ?>
+function mantra_comments_off() {
+ if ( ! comments_open() ) : ?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'mantra' ); ?></p>
-<?php endif; // end ! comments_open()
+ <?php endif; // end ! comments_open()
}
-
-
add_action('cryout_nocomments_hook','mantra_comments_off');
-?> \ No newline at end of file
+// FIN \ No newline at end of file
diff --git a/themes/mantra/includes/theme-frontpage.php b/themes/mantra/includes/theme-frontpage.php
index 558b651c..aaba9bbb 100644
--- a/themes/mantra/includes/theme-frontpage.php
+++ b/themes/mantra/includes/theme-frontpage.php
@@ -7,243 +7,173 @@
* @subpackage Functions
*/
-if ( ! function_exists( 'mantra_frontpage_css' ) ) :
-function mantra_frontpage_css() {
+// Front page generator
+if ( ! function_exists( 'mantra_frontpage_generator' ) ) :
+function mantra_frontpage_generator() {
$mantra_options= mantra_get_theme_options();
- foreach ($mantra_options as $key => $value) { ${"$key"} = $value; }
- ob_start();
- echo '<style type="text/css">/* Mantra frontpage CSS */'; ?>
-<?php if ($mantra_fronthideheader) {?> #branding {display:none;} <?php }
- if ($mantra_fronthidemenu) {?> #access {display:none;} <?php }
- if ($mantra_fronthidewidget) {?> #colophon {display:none;} <?php }
- if ($mantra_fronthidefooter) {?> #footer2 {display:none;} <?php }
- if ($mantra_fronthideback) {?> #main {background:none;} <?php } ?>
-
-.slider-wrapper { display:block; float:none; width:100%; margin:0 auto; }
-
-#slider{
- max-width:<?php echo $mantra_fpsliderwidth ?>px ;
- height:<?php echo $mantra_fpsliderheight ?>px ;
- margin:30px auto 20px; display:block; float:none;
- border:<?php echo $mantra_fpsliderborderwidth.'px solid '.$mantra_fpsliderbordercolor; ?>; }
-
-#front-text1 h1, #front-text2 h1 { display:block; float:none; margin:35px auto; text-align:center; font-size:32px;
- clear:both; line-height:32px; font-weight:bold; color:<?php echo $mantra_fronttitlecolor; ?>; }
-
-#front-text2 h1{ font-size:28px; line-height:28px; margin-top:0px; margin-bottom:25px; }
+ extract($mantra_options);
+ ?>
+
+ <script type="text/javascript">
+ jQuery(document).ready(function() {
+ <?php if ($mantra_slideType!="Slider Shortcode") { ?>
+ /* Slider */
+ jQuery('#slider').nivoSlider({
+ effect: '<?php echo $mantra_fpslideranim; ?>',
+ animSpeed: <?php echo $mantra_fpslidertime ?>,
+ <?php if($mantra_fpsliderarrows=="Hidden") { ?> directionNav: false, <?php }
+ if($mantra_fpsliderarrows=="Always Visible") { ?> directionNav: true, <?php } ?>
+ pauseTime: <?php echo $mantra_fpsliderpause ?>
+ });
+ <?php } ?>
+ });
+ </script>
+
+ <div id="frontpage">
+ <?php
+
+ // First FrontPage Title
+ if(!empty($mantra_fronttext1)) {?><div id="front-text1"> <h2><?php echo esc_attr($mantra_fronttext1) ?> </h2></div><?php }
+
+ // Slider
+ if ($mantra_slideType=="Slider Shortcode") { ?>
+ <div class="slider-wrapper">
+ <?php echo do_shortcode( $mantra_slideShortcode ); ?>
+ </div> <?php
+ } else {
+ // The built-in slider
+
+ // When a post query has been selected from the Slider type in the admin area
+ if ($mantra_slideType != 'Custom Slides') {
+ global $post;
+ // Initiating query
+ $custom_query = new WP_query();
+
+ // Switch for Query type
+ switch ($mantra_slideType) {
+
+ case 'Latest Posts':
+ $custom_query->query('showposts='.$mantra_slideNumber.'&ignore_sticky_posts=1');
+ break;
+
+ case 'Random Posts':
+ $custom_query->query('showposts='.$mantra_slideNumber.'&orderby=rand&ignore_sticky_posts=1');
+ break;
+
+ case 'Latest Posts from Category':
+ $custom_query->query('showposts='.$mantra_slideNumber.'&category_name='.$mantra_slideCateg.'&ignore_sticky_posts=1');
+ break;
+
+ case 'Random Posts from Category':
+ $custom_query->query('showposts='.$mantra_slideNumber.'&category_name='.$mantra_slideCateg.'&orderby=rand&ignore_sticky_posts=1');
+ break;
+
+ case 'Sticky Posts':
+ $custom_query->query(array('post__in' => get_option( 'sticky_posts' ), 'showposts' =>$mantra_slideNumber,'ignore_sticky_posts' => 1));
+ break;
+
+ case 'Specific Posts':
+ // Transform string separated by commas into array
+ $pieces_array = explode(",", $mantra_slideSpecific);
+ $custom_query->query(array( 'post_type' => 'any', 'showposts' => -1, 'post__in' => $pieces_array, 'ignore_sticky_posts' => 1, 'orderby' => 'post__in' ));
+ break;
+
+ } // switch
+
+ // Variables for matching slider number with caption number
+ $mantra_cycle1=0;
+ $mantra_cycle2=0; ?>
+ <div class="slider-wrapper theme-default">
+ <div class="ribbon"></div>
+ <div id="slider" class="nivoSlider <?php if($mantra_fpsliderarrows=="Visible on Hover"): ?>slider-navhover<?php endif; ?>">
+ <?php
+ // Loop for creating the slides
+ if ( $custom_query->have_posts() ) while ( $custom_query->have_posts()) :
+ $custom_query->the_post();
+
+ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),'slider');
+ $mantra_cycle1++; ?>
+ <a href="<?php the_permalink(); ?>"><img src="<?php echo $image[0]; ?>" alt="" title="#caption<?php echo $mantra_cycle1;?>" /></a> <?php
+
+ endwhile; // end of the loop.
+ ?>
+ </div>
+ <?php
+ // Loop for creating the captions
+ if ($custom_query->have_posts() ) while ( $custom_query->have_posts() ) :
+ $custom_query->the_post();
+ $mantra_cycle2++; ?>
-#frontpage blockquote { width:88%; max-width:88% !important; margin-bottom:20px;
- font-size:16px; line-height:22px; color:#444; }
+ <div id="caption<?php echo $mantra_cycle2;?>" class="nivo-html-caption">
+ <?php the_title("<h3>","</h3>"); ?>
+ <?php echo '<div class="nivo-description">' . get_the_excerpt() . '</div>'; ?>
+ </div>
+ <?php
+ endwhile; // end of the loop. ?>
-#frontpage #front-text4 blockquote { font-size:14px; line-height:18px; color:#666; }
+ </div>
+ <?php } else {
-#frontpage blockquote:before, #frontpage blockquote:after { content:none; }
+ // If Custom Slides have been selected
+ ?>
+ <div class="slider-wrapper theme-default">
+ <div class="ribbon"></div>
+ <div id="slider" class="nivoSlider <?php if($mantra_fpsliderarrows=="Visible on Hover"): ?>slider-navhover<?php endif; ?>">
+ <?php
+ for ( $mantra_cycle1=1; $mantra_cycle1<=5; $mantra_cycle1++ )
+ if(${"mantra_sliderimg$mantra_cycle1"}) { ?>
+ <a href='<?php echo esc_url(${"mantra_sliderlink$mantra_cycle1"}) ?>'>
+ <img src='<?php echo esc_url(${"mantra_sliderimg$mantra_cycle1"}) ?>' alt="" <?php if (${"mantra_slidertitle$mantra_cycle1"} || ${"mantra_slidertext$mantra_cycle1"} ) { ?>title="#caption<?php echo $mantra_cycle1;?>" <?php }?> />
+ </a>
+ <?php } ?>
+ </div>
+ <?php
+ for ( $mantra_cycle1=1; $mantra_cycle1<=5; $mantra_cycle1++ ) { ?>
+ <div id="caption<?php echo $mantra_cycle1;?>" class="nivo-html-caption">
+ <?php echo '<h3>'.${"mantra_slidertitle$mantra_cycle1"}.'</h3><div class="nivo-description">'.${"mantra_slidertext$mantra_cycle1"} . '</div>' ?>
+ </div>
+ <?php } ?>
+ </div> <?php
+ } // custom slides
-#front-columns > div { display:block; width:<?php
-switch ($mantra_nrcolumns) {
- case 0: break;
- case 1: echo "95"; break;
- case 2: echo "45"; break;
- case 3: echo "29"; break;
- case 4: echo "21"; break;
-} ?>%; height:auto; margin-left:2%; margin-right:2%; margin-bottom:10px; float:left; }
+ } // built-in slider
-.column-image { height:<?php echo $mantra_colimageheight ?>px; border:3px solid #eee; }
+ // Second FrontPage title
+ if (!empty($mantra_fronttext2)) {?><div id="front-text2"> <h2><?php echo esc_attr($mantra_fronttext2) ?> </h2></div><?php }
-.theme-default .nivo-controlNav {margin-left:0;}
-<?php
-switch($mantra_fpslidernav):
- case "Bullets": break;
- case "Numbers": ?>
-.theme-default .nivo-controlNav {bottom:-40px;}
-.theme-default .nivo-controlNav a { background: none; text-decoration:underline; text-indent:0; }
-<?php break;
- case "None": ?>
-.theme-default .nivo-controlNav { display:none; }
-<?php break;
-endswitch;
- echo "</style>\n";
- $mantra_presentation_page_styling = ob_get_contents();
- ob_end_clean();
- return $mantra_presentation_page_styling;
-} // mantra_frontpage_css()
-endif;
+ // Frontpage columns
+ if ($mantra_nrcolumns) { ?>
+ <div id="front-columns" class="front-columns-<?php echo $mantra_nrcolumns;?>">
+ <?php for ($mantra_cycle = 1; $mantra_cycle <= $mantra_nrcolumns; $mantra_cycle++ ) { ?>
+ <div id="column<?php echo $mantra_cycle ?>">
-if ( ! function_exists( 'mantra_frontpage_generator' ) ) :
-// Front page generator
-function mantra_frontpage_generator() {
-$mantra_options= mantra_get_theme_options();
-foreach ($mantra_options as $key => $value) {
- ${"$key"} = $value ;
-}
-?>
-
-<script type="text/javascript">
-
-jQuery(document).ready(function() {
- <?php if ($mantra_slideType!="Slider Shortcode") { ?>
- /* Slider */
- jQuery('#slider').nivoSlider({
- effect: '<?php echo $mantra_fpslideranim; ?>',
- animSpeed: <?php echo $mantra_fpslidertime ?>,
- <?php if($mantra_fpsliderarrows=="Hidden") { ?> directionNav: false, <?php }
- if($mantra_fpsliderarrows=="Always Visible") { ?> directionNav: true, <?php } ?>
- pauseTime: <?php echo $mantra_fpsliderpause ?>
- });
- <?php } ?>
-
- /* Flash animation for columns */
- jQuery('#front-columns > div img').hover( function() {
- jQuery(this)
- .stop()
- .animate({opacity: 0.5}, 100)
- .fadeOut(100)
- .fadeIn(100)
- .animate({opacity: 0.999}, 100) ;
- }, function() {jQuery(this).stop();} )
-
-});
-</script>
-
-<div id="frontpage">
- <?php
-
- // First FrontPage Title
- if($mantra_fronttext1) {?><div id="front-text1"> <h1><?php echo esc_attr($mantra_fronttext1) ?> </h1></div><?php }
-
- // Slider
- if ($mantra_slideType=="Slider Shortcode") { ?>
- <div class="slider-wrapper">
- <?php echo do_shortcode( $mantra_slideShortcode ); ?>
- </div> <?php
- } else {
- // The built-in slider
-
- // When a post query has been selected from the Slider type in the admin area
- if ($mantra_slideType != 'Custom Slides') {
- global $post;
- // Initiating query
- $custom_query = new WP_query();
-
- // Switch for Query type
- switch ($mantra_slideType) {
-
- case 'Latest Posts':
- $custom_query->query('showposts='.$mantra_slideNumber.'&ignore_sticky_posts=1');
- break;
-
- case 'Random Posts':
- $custom_query->query('showposts='.$mantra_slideNumber.'&orderby=rand&ignore_sticky_posts=1');
- break;
-
- case 'Latest Posts from Category':
- $custom_query->query('showposts='.$mantra_slideNumber.'&category_name='.$mantra_slideCateg.'&ignore_sticky_posts=1');
- break;
-
- case 'Random Posts from Category':
- $custom_query->query('showposts='.$mantra_slideNumber.'&category_name='.$mantra_slideCateg.'&orderby=rand&ignore_sticky_posts=1');
- break;
-
- case 'Sticky Posts':
- $custom_query->query(array('post__in' => get_option( 'sticky_posts' ), 'showposts' =>$mantra_slideNumber,'ignore_sticky_posts' => 1));
- break;
-
- case 'Specific Posts':
- // Transform string separated by commas into array
- $pieces_array = explode(",", $mantra_slideSpecific);
- $custom_query->query(array( 'post_type' => 'any', 'showposts' => -1, 'post__in' => $pieces_array, 'ignore_sticky_posts' => 1, 'orderby' => 'post__in' ));
- break;
-
- } // switch
-
- // Variables for matching slider number with caption number
- $mantra_cycle1=0;
- $mantra_cycle2=0; ?>
- <div class="slider-wrapper theme-default">
- <div class="ribbon"></div>
- <div id="slider" class="nivoSlider <?php if($mantra_fpsliderarrows=="Visible on Hover"): ?>slider-navhover<?php endif; ?>">
- <?php
- // Loop for creating the slides
- if ( $custom_query->have_posts() ) while ( $custom_query->have_posts()) :
- $custom_query->the_post();
-
- $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),'slider');
- $mantra_cycle1++; ?>
- <a href="<?php the_permalink(); ?>"><img src="<?php echo $image[0]; ?>" alt="" title="#caption<?php echo $mantra_cycle1;?>" /></a> <?php
-
- endwhile; // end of the loop.
- ?>
- </div>
- <?php
- // Loop for creating the captions
- if ($custom_query->have_posts() ) while ( $custom_query->have_posts() ) :
- $custom_query->the_post();
- $mantra_cycle2++; ?>
+ <div class="column-image">
+ <a href="<?php echo esc_url(${'mantra_columnlink'.$mantra_cycle}) ?>">
+ <img src="<?php echo esc_url(${'mantra_columnimg'.$mantra_cycle}) ?>" id="columnImage<?php echo $mantra_cycle ?>" alt="" />
+ </a>
+ </div>
- <div id="caption<?php echo $mantra_cycle2;?>" class="nivo-html-caption">
- <?php the_title("<h2>","</h2>"); the_excerpt(); ?>
- </div>
- <?php
- endwhile; // end of the loop. ?>
+ <h3><a href="<?php echo esc_url(${'mantra_columnlink'.$mantra_cycle}) ?>"><?php echo ${'mantra_columntitle'.$mantra_cycle} ?></a></h3>
+ <div class="column-text"><?php echo do_shortcode (${'mantra_columntext'.$mantra_cycle} ); ?></div>
+ <?php if($mantra_columnreadmore) {?>
+ <div class="columnmore">
+ <a href="<?php echo esc_url(${'mantra_columnlink'.$mantra_cycle}) ?>"><?php echo esc_attr($mantra_columnreadmore) ?> &raquo;</a>
+ </div>
+ <?php } // if ?>
+ </div>
+ <?php } // for ?>
</div>
- <?php } else {
+ <?php } // columns
+
+ // Frontpage text areas
+ if (!empty($mantra_fronttext3)) {?><div id="front-text3" class="front-text"><?php echo do_shortcode( $mantra_fronttext3 ) ?></div><?php }
+ if (!empty($mantra_fronttext4)) {?><div id="front-text4" class="front-text"><?php echo do_shortcode( $mantra_fronttext4 ) ?></div><?php }
- // If Custom Slides have been selected
?>
- <div class="slider-wrapper theme-default">
- <div class="ribbon"></div>
- <div id="slider" class="nivoSlider <?php if($mantra_fpsliderarrows=="Visible on Hover"): ?>slider-navhover<?php endif; ?>">
- <?php
- for ( $mantra_cycle1=1; $mantra_cycle1<=5; $mantra_cycle1++ )
- if(${"mantra_sliderimg$mantra_cycle1"}) { ?>
- <a href='<?php echo esc_url(${"mantra_sliderlink$mantra_cycle1"}) ?>'>
- <img src='<?php echo esc_url(${"mantra_sliderimg$mantra_cycle1"}) ?>' alt="" <?php if (${"mantra_slidertitle$mantra_cycle1"} || ${"mantra_slidertext$mantra_cycle1"} ) { ?>title="#caption<?php echo $mantra_cycle1;?>" <?php }?> />
- </a>
- <?php } ?>
- </div>
- <?php
- for ( $mantra_cycle1=1; $mantra_cycle1<=5; $mantra_cycle1++ ) { ?>
- <div id="caption<?php echo $mantra_cycle1;?>" class="nivo-html-caption">
- <?php echo '<h2>'.${"mantra_slidertitle$mantra_cycle1"}.'</h2>'.${"mantra_slidertext$mantra_cycle1"} ?>
- </div>
- <?php } ?>
- </div> <?php
- } // if custom slides
-
- } // if built-in slider
-
- // Second FrontPage title
- if($mantra_fronttext2) {?><div id="front-text2"> <h1><?php echo esc_attr($mantra_fronttext2) ?> </h1></div><?php }
-
- // Frontpage columns
- if($mantra_nrcolumns) { ?>
- <div id="front-columns">
- <?php for ($mantra_cycle = 1; $mantra_cycle <= $mantra_nrcolumns; $mantra_cycle++ ) { ?>
- <div id="column<?php echo $mantra_cycle ?>">
- <a href="<?php echo esc_url(${'mantra_columnlink'.$mantra_cycle}) ?>">
- <div class="column-image">
- <img src="<?php echo esc_url(${'mantra_columnimg'.$mantra_cycle}) ?>" id="columnImage<?php echo $mantra_cycle ?>" alt="" />
- </div>
- <h3><?php echo ${'mantra_columntitle'.$mantra_cycle} ?></h3>
- </a>
- <div class="column-text"><?php echo do_shortcode (${'mantra_columntext'.$mantra_cycle} ); ?></div>
- <?php if($mantra_columnreadmore) {?>
- <div class="columnmore">
- <a href="<?php echo esc_url(${'mantra_columnlink'.$mantra_cycle}) ?>"><?php echo esc_attr($mantra_columnreadmore) ?> &raquo;</a>
- </div>
- <?php } // if ?>
- </div>
- <?php } // for ?>
- </div>
- <?php }
-
- // Frontpage text areas
- if($mantra_fronttext3) {?><div id="front-text3"> <blockquote><?php echo do_shortcode( $mantra_fronttext3 ) ?> </blockquote></div><?php }
- if($mantra_fronttext4) {?><div id="front-text4"> <blockquote><?php echo do_shortcode( $mantra_fronttext4 ) ?> </blockquote></div><?php }
-
- ?>
-</div> <!-- frontpage -->
- <?php } // End of mantra_frontpage_generator
+ </div> <!-- frontpage -->
+ <?php
+} // mantra_frontpage_generator()
endif;
-?>
+
+// FIN
diff --git a/themes/mantra/includes/theme-functions.php b/themes/mantra/includes/theme-functions.php
index 573fd296..5658a254 100644
--- a/themes/mantra/includes/theme-functions.php
+++ b/themes/mantra/includes/theme-functions.php
@@ -7,110 +7,75 @@
*/
- /**
- * Loads necessary scripts
- * Adds HTML5 tags for IE8
- * Used in header.php
+/**
+* Loads necessary scripts
+* Adds HTML5 tags for IE8
+* Used in header.php
*/
- function mantra_header_scripts() {
- $mantra_options= mantra_get_theme_options();
-foreach ($mantra_options as $key => $value) {
- ${"$key"} = $value ;
-}
-?>
-<!--[if lt IE 9]>
-<script>
-document.createElement('header');
-document.createElement('nav');
-document.createElement('section');
-document.createElement('article');
-document.createElement('aside');
-document.createElement('footer');
-document.createElement('hgroup');
-</script>
-<![endif]-->
-<script type="text/javascript">
-function makeDoubleDelegate(function1, function2) {
-// concatenate functions
- return function() { if (function1) function1(); if (function2) function2(); }
-}
-
-function mantra_onload() {
-
-<?php if ($mantra_mobile=="Enable") { // If mobile view is enabled ?>
-
- // Add responsive videos
- if (jQuery(window).width() < 800) jQuery(".entry-content").fitVids();
-<?php }
-if (($mantra_s1bg || $mantra_s2bg) ) { ?>
- // Check if sidebars have user colors and if so equalize their heights
- equalizeHeights();<?php } ?>
-}; // mantra_onload
-
-
-jQuery(document).ready(function(){
- // Add custom borders to images
- jQuery("img.alignnone, img.alignleft, img.aligncenter, img.alignright").addClass("<?php echo 'image'.$mantra_image;?>");
-<?php if ($mantra_mobile=="Enable") { // If mobile view is enabled ?>
-
- // Add select navigation to small screens
- jQuery("#access > .menu > ul").tinyNav({
- header: ' = <?php _e('Menu','mantra'); ?> = '
- });
-<?php } ?>
-});
-
-// make sure not to lose previous onload events
-window.onload = makeDoubleDelegate(window.onload, mantra_onload );
-</script>
-<?php
+function mantra_header_scripts() {
+ ?><!--[if lt IE 9]>
+ <script>
+ document.createElement('header');
+ document.createElement('nav');
+ document.createElement('section');
+ document.createElement('article');
+ document.createElement('aside');
+ document.createElement('footer');
+ document.createElement('hgroup');
+ </script>
+ <![endif]--> <?php
}
-
-add_action('wp_head','mantra_header_scripts',100);
+add_action( 'wp_head', 'mantra_header_scripts', 100 );
/**
* Adds title and description to heaer
* Used in header.php
*/
function mantra_title_and_description() {
- $mantra_options = mantra_get_theme_options();
- foreach ($mantra_options as $key => $value) { ${"$key"} = $value; }
+ global $mantra_options;
+ extract( $mantra_options );
// Header styling and image loading
// Check if this is a post or page, if it has a thumbnail, and if it's a big one
global $post;
- if (get_header_image() != '') { $himgsrc = get_header_image(); }
- if ( is_singular() && has_post_thumbnail( $post->ID ) && ($mantra_fheader == "Enable") && ($image = wp_get_attachment_image_src(get_post_thumbnail_id( $post->ID ), 'header' ) ) && ($image[1] >= HEADER_IMAGE_WIDTH) ):
- $himgsrc = $image[0];
+ if (get_header_image() != '') { $header_image = get_header_image(); }
+ if ( is_singular() && has_post_thumbnail( $post->ID ) && ($mantra_fheader == "Enable") && ($image = wp_get_attachment_image_src(get_post_thumbnail_id( $post->ID ), 'header' ) ) && (intval($image[1]) >= HEADER_IMAGE_WIDTH) ):
+ $header_image = $image[0];
endif;
- if (isset($himgsrc) && ($himgsrc != '')) : echo '<img id="bg_image" alt="" title="" src="'.$himgsrc.'" />'; endif;
-
-?>
-
+ if (isset($header_image) && ($header_image != '')) {
+ printf( '<img id="bg_image" alt="%1$s" title="" src="%2$s" />', esc_attr( get_bloginfo( 'name', 'display' ) ), $header_image );
+ }
+ ?>
+
<div id="header-container">
-
-
-<?php
+
+ <?php
switch ($mantra_siteheader) {
- case 'Site Title and Description':
- echo '<div>';
- $heading_tag = ( ( is_home() || is_front_page() ) && !is_page() ) ? 'h1' : 'div';
- echo '<'.$heading_tag.' id="site-title">';
- echo '<span> <a href="'.esc_url( home_url( '/' ) ).'" title="'.esc_attr( get_bloginfo( 'name', 'display' ) ).'" rel="home">'.get_bloginfo( 'name' ).'</a> </span>';
- echo '</'.$heading_tag.'>';
- echo '<div id="site-description" >'.get_bloginfo( 'description' ).'</div></div>';
+ case 'Site Title and Description':
+ $heading_tag = ( ( is_home() || is_front_page() ) && !is_page() ) ? 'h1' : 'div'; ?>
+ <div>
+ <<?php echo $heading_tag ?> id="site-title">
+ <span> <a href="<?php echo esc_url( home_url( '/' ) ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ) ?>" rel="home"><?php echo esc_attr( get_bloginfo( 'name' ) ) ?></a> </span>
+ </<?php echo $heading_tag ?>>
+ <div id="site-description" ><?php echo esc_attr( get_bloginfo( 'description' ) ) ?></div>
+ </div> <?php
break;
- case 'Clickable header image' :
- echo '<a href="'.esc_url( home_url( '/' ) ).'" id="linky"></a>' ;
+ case 'Clickable header image': ?>
+ <a href="<?php echo esc_url( home_url( '/' ) ) ?>" id="linky"></a>
+ <?php
break;
case 'Custom Logo' :
- if (isset($mantra_logoupload) && ($mantra_logoupload != '')) : echo '<div><a id="logo" href="'.esc_url( home_url( '/' ) ).'" ><img title="" alt="" src="'.$mantra_logoupload.'" /></a></div>'; endif;
+ if (!empty($mantra_logoupload)) { ?>
+ <div>
+ <a id="logo" href="<?php echo esc_url( home_url( '/' ) ) ?>"> <img title="" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ) ?>" src="<?php echo $mantra_logoupload ?>" /> </a>
+ </div>
+ <?php }
break;
case 'Empty' :
@@ -119,254 +84,208 @@ function mantra_title_and_description() {
}
if ($mantra_socialsdisplay0): mantra_header_socials(); endif;
- echo '</div>';
+ ?>
+ </div> <!-- #header-container -->
+ <?php
} // mantra_title_and_description()
+add_action( 'cryout_branding_hook', 'mantra_title_and_description' );
-
-add_action ('cryout_branding_hook','mantra_title_and_description');
-
- /**
- * Add social icons in header / undermneu left / undermenu right / footer
- * Used in header.php and footer.php
+/**
+* Add social icons in header / undermneu left / undermenu right / footer
+* Used in header.php and footer.php
*/
- function mantra_header_socials() {
- mantra_set_social_icons('sheader');
- }
+function mantra_header_socials() {
+ mantra_set_social_icons('sheader');
+}
- function mantra_smenul_socials() {
- mantra_set_social_icons('smenul');
- }
+function mantra_smenul_socials() {
+ mantra_set_social_icons('smenul');
+}
- function mantra_smenur_socials() {
- mantra_set_social_icons('smenur');
- }
+function mantra_smenur_socials() {
+ mantra_set_social_icons('smenur');
+}
- function mantra_footer_socials() {
- mantra_set_social_icons('sfooter');
- }
+function mantra_footer_socials() {
+ mantra_set_social_icons('sfooter');
+}
-//if($mantra_socialsdisplay0) add_action('cryout_branding_hook', 'mantra_header_socials');
-if($mantra_socialsdisplay1) add_action('cryout_forbottom_hook', 'mantra_smenul_socials');
-if($mantra_socialsdisplay2) add_action('cryout_forbottom_hook', 'mantra_smenur_socials');
-if($mantra_socialsdisplay3) add_action('cryout_footer_hook', 'mantra_footer_socials',13);
+//if ($mantra_socialsdisplay0) add_action( 'cryout_branding_hook', 'mantra_header_socials' );
+if ($mantra_socialsdisplay1) add_action( 'cryout_forbottom_hook', 'mantra_smenul_socials' );
+if ($mantra_socialsdisplay2) add_action( 'cryout_forbottom_hook', 'mantra_smenur_socials' );
+if ($mantra_socialsdisplay3) add_action( 'cryout_footer_hook', 'mantra_footer_socials', 13 );
-if ( ! function_exists( 'mantra_set_social_icons' ) ) :
/**
* Social icons function
*/
-function mantra_set_social_icons($id) {
+if ( ! function_exists( 'mantra_set_social_icons' ) ) :
+function mantra_set_social_icons($location){
$cryout_special_keys = array('Mail', 'Skype');
global $mantra_options;
- foreach ($mantra_options as $key => $value) {
- ${"$key"} = $value ;
- }
- echo '<div class="socials" id="'.$id.'">';
+ extract( $mantra_options ); ?>
+ <div class="socials" id="<?php echo $location ?>">
+ <?php
for ($i=1; $i<=9; $i+=2) {
$j=$i+1;
if ( ${"mantra_social$j"} ) {
- if (in_array(${"mantra_social$i"},$cryout_special_keys)) :
+ if ( in_array(${"mantra_social$i"}, $cryout_special_keys) ) :
$cryout_current_social = esc_html( ${"mantra_social$j"} );
else :
$cryout_current_social = esc_url( ${"mantra_social$j"} );
endif; ?>
- <a target="_blank" rel="nofollow" href="<?php echo $cryout_current_social; ?>" class="socialicons social-<?php echo esc_attr(${"mantra_social$i"}); ?>" title="<?php echo esc_attr(${"mantra_social$i"}); ?>"><img alt="<?php echo esc_attr(${"mantra_social$i"}); ?>" src="<?php echo get_template_directory_uri().'/images/socials/'.${"mantra_social$i"}.'.png'; ?>" /></a><?php
- }
- }
- echo '</div>';
+ <a target="_blank" rel="nofollow" href="<?php echo $cryout_current_social; ?>" class="socialicons social-<?php echo esc_attr(${"mantra_social$i"}); ?>" title="<?php echo esc_attr(${"mantra_social$i"}); ?>">
+ <img alt="<?php echo esc_attr(${"mantra_social$i"}); ?>" src="<?php echo get_template_directory_uri().'/resources/images/socials/'.${"mantra_social$i"}.'.png'; ?>" />
+ </a>
+ <?php
+ } // $j
+ } // $i
+ ?>
+ </div>
+ <?php
}
endif;
-
- /**
- * Replaces header image with featured image if there is one for single pages
- * Used in header.php
-*/
-
-/* // Moved to custom-styles.php
-
-function mantra_header_featured_image() {
-global $post;
-global $mantra_options;
-foreach ($mantra_options as $key => $value) {
-${"$key"} = $value ;
-}
-// Check if this is a post or page, if it has a thumbnail, and if it's a big one
-if ( is_singular() && has_post_thumbnail( $post->ID ) && $mantra_fheader == "Enable" &&
- ( $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
- $image[1] >= HEADER_IMAGE_WIDTH ) :
- // Houston, we have a new header image!
- //echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
- $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array(HEADER_IMAGE_WIDTH,HEADER_IMAGE_HEIGHT) );
-endif;
-}
-
-
-
-*/
-
/**
* Mantra back to top button
* Creates div for js
*/
-function mantra_back_top() {
- echo '<div id="toTop"> </div>';
- }
-
-
-if ($mantra_backtop=="Enable") add_action ('cryout_body_hook','mantra_back_top');
-
+function mantra_back_top() {
+ ?>
+ <div id="toTop"><i class="crycon-back2top"></i> </div>
+ <?php
+}
+if ($mantra_backtop=="Enable") add_action( 'cryout_body_hook', 'mantra_back_top' );
/**
* Creates breadcrumns with page sublevels and category sublevels.
*/
function mantra_breadcrumbs() {
-$mantra_options= mantra_get_theme_options();
-foreach ($mantra_options as $key => $value) { ${"$key"} = $value; }
-global $post;
-echo '<div class="breadcrumbs">';
-if (is_page() && !is_front_page() || is_single() || is_category() || is_archive()) {
- echo '<a href="'.esc_url( home_url() ) .'">'.get_bloginfo('name').' &raquo; </a>';
-
- if (is_page()) {
- $ancestors = get_post_ancestors($post);
-
- if ($ancestors) {
- $ancestors = array_reverse($ancestors);
-
- foreach ($ancestors as $crumb) {
- echo '<a href="'.get_permalink($crumb).'">'.get_the_title($crumb).' &raquo; </a>';
- }
- }
- }
+ global $mantra_options;
+ global $post;
+
+ echo '<div class="breadcrumbs">';
+ if (is_page() && !is_front_page() || is_single() || is_category() || is_archive()) {
+ echo '<a href="'.esc_url( home_url() ) .'">' . esc_attr( get_bloginfo('name') ).'</a> &raquo; ';
+
+ if (is_page()) {
+ $ancestors = get_post_ancestors($post);
+ if (!empty($ancestors)) {
+ $ancestors = array_reverse($ancestors);
+ foreach ($ancestors as $crumb) {
+ echo '<a href="' . esc_url( get_permalink($crumb) ) . '">' . esc_attr( get_the_title($crumb) ) . ' </a> &raquo; ';
+ }
+ }
+ }
- if (is_single()) {
- if(has_category()) { $category = get_the_category();
- echo '<a href="'.get_category_link($category[0]->cat_ID).'">'.$category[0]->cat_name.' &raquo; </a>';
- }
- }
+ if (is_single() && has_category()) {
+ $category = get_the_category();
+ echo '<a href="' . get_category_link($category[0]->cat_ID) . '">' . $category[0]->cat_name . '</a> &raquo; ';
+ }
- if (is_category()) {
- $category = get_the_category();
- echo ''.$category[0]->cat_name.'';
- }
+ if (is_category()) {
+ $category = get_the_category();
+ echo $category[0]->cat_name;
+ }
if (is_tag()) {
- echo ''.__('Tag','mantra').' &raquo; '.single_tag_title('', false);
- }
+ echo __('Tag','mantra') . ' &raquo; ' . single_tag_title('', false);
+ }
- // Current page
- if (is_page() || is_single()) {
- echo ''.get_the_title().'';
- }
- echo '';
- } elseif (is_home() && $mantra_frontpage!="Enable" ) {
- // Front page
- echo '';
- echo '<a href="'.esc_url( home_url() ) .'">'.get_bloginfo('name').'</a> '."&raquo; ";
- _e('Home Page','mantra');
- echo '';
- }
-echo '</div>';
+ // Current page
+ if (is_page() || is_single()) {
+ echo get_the_title();
+ }
+ echo '';
+ } elseif (is_home() && $mantra_options['mantra_frontpage']!="Enable" ) {
+ // Front page
+ echo '';
+ echo '<a href="' . esc_url( home_url() ) .'">' . esc_attr( get_bloginfo('name') ).'</a> &raquo; ' . __('Home Page','mantra');
+ echo '';
+ }
+ echo '</div>';
}
+if ($mantra_breadcrumbs=="Enable") add_action( 'cryout_before_content_hook', 'mantra_breadcrumbs', 0 );
-if($mantra_breadcrumbs=="Enable") add_action ('cryout_before_content_hook','mantra_breadcrumbs',0);
-
-if ( ! function_exists( 'mantra_pagination' ) ) :
/**
* Creates pagination for blog pages.
*/
-function mantra_pagination($pages = '', $range = 2, $prefix ='')
-{
- $showitems = ($range * 2)+1;
-
- global $paged;
- if(empty($paged)) $paged = 1;
-
- if($pages == '')
- {
- global $wp_query;
- $pages = $wp_query->max_num_pages;
- if(!$pages)
- {
- $pages = 1;
- }
- }
-
- if(1 != $pages)
- {
+if ( ! function_exists( 'mantra_pagination' ) ) :
+function mantra_pagination($pages = '', $range = 2, $prefix ='') {
+ $showitems = ($range * 2)+1;
+
+ global $paged;
+ if(empty($paged)) $paged = 1;
+
+ if ($pages == '') {
+ global $wp_query;
+ $pages = $wp_query->max_num_pages;
+ if(!$pages) {
+ $pages = 1;
+ }
+ }
+
+ if (1 != $pages) {
echo "<div class='pagination_container'><nav class='pagination'>";
- if ($prefix) {echo "<span id='paginationPrefix'>$prefix </span>";}
- if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>&laquo;</a>";
- if($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>&lsaquo;</a>";
-
- for ($i=1; $i <= $pages; $i++)
- {
- if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
- {
- echo ($paged == $i)? "<span class='current'>".$i."</span>":"<a href='".get_pagenum_link($i)."' class='inactive' >".$i."</a>";
- }
- }
-
- if ($paged < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($paged + 1)."'>&rsaquo;</a>";
- if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>&raquo;</a>";
- echo "</nav></div>\n";
- }
+ if ($prefix) echo "<span id='paginationPrefix'>$prefix </span>";
+ if ($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>&laquo;</a>";
+ if ($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>&lsaquo;</a>";
+
+ for ($i=1; $i <= $pages; $i++) {
+ if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems )) {
+ echo ($paged == $i)? "<span class='current'>".$i."</span>":"<a href='".get_pagenum_link($i)."' class='inactive' >".$i."</a>";
+ }
+ }
+
+ if ($paged < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($paged + 1)."'>&rsaquo;</a>";
+ if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>&raquo;</a>";
+ echo "</nav></div>\n";
+ }
}
endif;
function mantra_nextpage_links($defaults) {
-$args = array(
-'link_before' => '<em>',
-'link_after' => '</em>',
-);
-$r = wp_parse_args($args, $defaults);
-return $r;
+ $args = array(
+ 'link_before' => '<em>',
+ 'link_after' => '</em>',
+ );
+ $r = wp_parse_args($args, $defaults);
+ return $r;
}
-add_filter('wp_link_pages_args','mantra_nextpage_links');
+add_filter( 'wp_link_pages_args', 'mantra_nextpage_links' );
/**
* Site info
*/
-function mantra_site_info() {
-$mantra_options= mantra_get_theme_options();
-foreach ($mantra_options as $key => $value) {
- ${"$key"} = $value ;
-} ?>
- <div style="text-align:center;clear:both;padding-top:4px;" >
- <a href="<?php echo esc_url( home_url( '/' ) ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
- <?php bloginfo( 'name' ); ?></a> | <?php _e('Powered by','mantra')?> <a target="_blank" href="<?php echo 'http://www.cryoutcreations.eu';?>" title="<?php echo 'Mantra Theme by '.
- 'Cryout Creations';?>"><?php echo 'Mantra' ?></a> &amp; <a target="_blank" href="<?php echo esc_url('http://wordpress.org/' ); ?>"
- title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'mantra'); ?>"> <?php printf(' %s.', 'WordPress' ); ?>
- </a>
- </div><!-- #site-info -->
-<?php }
-
-add_action('cryout_footer_hook','mantra_site_info',12);
+function mantra_site_info() { ?>
+<div style="text-align:center;clear:both;padding-top:4px;" >
+ <a href="<?php echo esc_url( home_url( '/' ) ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
+ <?php bloginfo( 'name' ); ?></a> | <?php _e('Powered by','mantra')?> <a target="_blank" href="<?php echo 'http://www.cryoutcreations.eu';?>" title="<?php echo 'Mantra Theme by '.
+ 'Cryout Creations';?>"><?php echo 'Mantra' ?></a> &amp; <a target="_blank" href="<?php echo esc_url('http://wordpress.org/' ); ?>"
+ title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'mantra'); ?>"> <?php printf(' %s.', 'WordPress' ); ?>
+ </a>
+</div><!-- #site-info --> <?php
+}
+add_action( 'cryout_footer_hook', 'mantra_site_info', 12 );
/**
* Copyright text
*/
function mantra_copyright() {
-$mantra_options= mantra_get_theme_options();
-foreach ($mantra_options as $key => $value) {
- ${"$key"} = $value ;
- }
- echo '<div id="site-copyright">'.$mantra_copyright.'</div>';
+ global $mantra_options; ?>
+ <div id="site-copyright">
+ <?php echo $mantra_options['mantra_copyright'] ?>
+ </div>
+ <?php
}
-
-
-if ($mantra_copyright != '') add_action('cryout_footer_hook','mantra_copyright',11);
-
-add_action('wp_ajax_nopriv_do_ajax', 'mantra_ajax_function');
-add_action('wp_ajax_do_ajax', 'mantra_ajax_function');
+if (!empty($mantra_copyright)) add_action( 'cryout_footer_hook', 'mantra_copyright', 11 );
/**
@@ -411,75 +330,23 @@ function mantra_get_gallery_images() {
* @return array list of classes.
*/
function mantra_mobile_body_class($classes){
-$mantra_options = mantra_get_theme_options();
- if ($mantra_options['mantra_mobile']=="Enable"):
- $browser = $_SERVER['HTTP_USER_AGENT'];
- $keys = 'mobile|android|mobi|tablet|ipad|opera mini|series 60|s60|blackberry';
- if (preg_match("/($keys)/i",$browser)): $classes[] = 'mobile'; endif; // mobile browser detected
- endif;
- return $classes;
+ global $mantra_options;
+ if ($mantra_options['mantra_mobile']=="Enable") {
+ $browser = $_SERVER['HTTP_USER_AGENT'];
+ if ( preg_match("/(mobile|android|mobi|tablet|ipad|opera mini|series 60|s60|blackberry)/i", $browser) ) $classes[] = 'mobile'; // mobile browser detected
+ }
+ return $classes;
}
-
add_filter('body_class', 'mantra_mobile_body_class');
-if ( ! function_exists( 'mantra_ajax_function' ) ) :
-
-function mantra_ajax_function(){
-ob_clean();
-
- // the first part is a SWTICHBOARD that fires specific functions
- // according to the value of Query Var 'fn'
-
- switch($_REQUEST['fn']){
- case 'get_latest_posts':
- $output = mantra_ajax_get_latest_posts($_REQUEST['count'],$_REQUEST['categName']);
- break;
- default:
- $output = 'No function specified, check your jQuery.ajax() call';
- break;
-
- }
-
- // at this point, $output contains some sort of valuable data!
- // Now, convert $output to JSON and echo it to the browser
- // That way, we can recapture it with jQuery and run our success function
-
- $output=json_encode($output);
- if(is_array($output)){
- print_r($output);
- }
- else{
- echo $output;
- }
- die;
-}
-endif;
-
-if ( ! function_exists( 'mantra_ajax_get_latest_posts' ) ) :
-function mantra_ajax_get_latest_posts($count,$categName){
- $testVar='';
- // The Query
- query_posts( 'category_name='.$categName);
- // The Loop
- if ( have_posts() ) : while ( have_posts() ) : the_post();
- $testVar .=the_title("<option>","</option>",0);
- endwhile; else: endif;
-
- // Reset Query
- wp_reset_query();
-
- return $testVar;
-}
-endif;
-
-
// Favicon
function mantra_fav_icon() {
global $mantra_options;
- foreach ($mantra_options as $key => $value) { ${"$key"} = $value ;}
- echo '<link rel="shortcut icon" href="'.esc_url($mantra_options['mantra_favicon']).'" />';
- echo '<link rel="apple-touch-icon" href="'.esc_url($mantra_options['mantra_favicon']).'" />';
+ echo '<link rel="shortcut icon" href="'.esc_url($mantra_options['mantra_favicon']).'" />';
+ echo '<link rel="apple-touch-icon" href="'.esc_url($mantra_options['mantra_favicon']).'" />';
}
-if ($mantra_options['mantra_favicon']) add_action ('cryout_header_hook','mantra_fav_icon');
+if ($mantra_options['mantra_favicon']) add_action( 'cryout_header_hook', 'mantra_fav_icon' );
+
+// FIN \ No newline at end of file
diff --git a/themes/mantra/includes/theme-hooks.php b/themes/mantra/includes/theme-hooks.php
index f0d60b97..062452c8 100644
--- a/themes/mantra/includes/theme-hooks.php
+++ b/themes/mantra/includes/theme-hooks.php
@@ -156,4 +156,5 @@ function cryout_before_content_hook() {
function cryout_after_content_hook() {
do_action('cryout_after_content_hook');
}
-?>
+
+// FIN \ No newline at end of file
diff --git a/themes/mantra/includes/theme-loop.php b/themes/mantra/includes/theme-loop.php
index 479d172f..d2a6b8e9 100644
--- a/themes/mantra/includes/theme-loop.php
+++ b/themes/mantra/includes/theme-loop.php
@@ -17,7 +17,7 @@
*/
function mantra_excerpt_length( $length ) {
global $mantra_excerptwords;
- return $mantra_excerptwords;
+ return absint( $mantra_excerptwords );
}
add_filter( 'excerpt_length', 'mantra_excerpt_length' );
@@ -29,7 +29,7 @@ add_filter( 'excerpt_length', 'mantra_excerpt_length' );
*/
function mantra_continue_reading_link() {
global $mantra_excerptcont;
- return ' <a class="continue-reading-link" href="'. get_permalink() . '">' .$mantra_excerptcont.' <span class="meta-nav">&rarr; </span>' . '</a>';
+ return ' <a class="continue-reading-link" href="' . esc_url( get_permalink() ) . '">' . wp_kses_post( $mantra_excerptcont ).' <span class="meta-nav">&rarr; </span>' . '</a>';
}
/**
@@ -43,7 +43,7 @@ function mantra_continue_reading_link() {
*/
function mantra_auto_excerpt_more( $more ) {
global $mantra_excerptdots;
- return $mantra_excerptdots. mantra_continue_reading_link();
+ return wp_kses_post( $mantra_excerptdots ). mantra_continue_reading_link();
}
add_filter( 'excerpt_more', 'mantra_auto_excerpt_more' );
@@ -77,7 +77,7 @@ add_filter( 'get_the_excerpt', 'mantra_custom_excerpt_more' );
*/
function mantra_more_link($more_link, $more_link_text) {
global $mantra_excerptcont;
- $new_link_text = $mantra_excerptcont;
+ $new_link_text = wp_kses_post( $mantra_excerptcont );
if (preg_match("/custom=(.*)/",$more_link_text,$m) ) {
$new_link_text = $m[1];
};
@@ -94,44 +94,40 @@ add_filter('the_content_more_link', 'mantra_more_link',10,2);
*/
function mantra_trim_excerpt($text) {
-global $mantra_excerptwords;
-global $mantra_excerptcont;
-global $mantra_excerptdots;
-$raw_excerpt = $text;
-if ( '' == $text ) {
- //Retrieve the post content.
- $text = get_the_content('');
-
- //Delete all shortcode tags from the content.
- $text = strip_shortcodes( $text );
-
- $text = apply_filters('the_content', $text);
- $text = str_replace(']]>', ']]&gt;', $text);
-
- $allowed_tags = '<a>,<img>,<b>,<strong>,<ul>,<li>,<i>,<h1>,<h2>,<h3>,<h4>,<h5>,<h6>,<pre>,<code>,<em>,<u>,<br>,<p>';
- $text = strip_tags($text, $allowed_tags);
-
- $words = preg_split("/[\n\r\t ]+/", $text, $mantra_excerptwords + 1, PREG_SPLIT_NO_EMPTY);
- if ( count($words) > $mantra_excerptwords ) {
- array_pop($words);
- $text = implode(' ', $words);
- $text = $text .' '.$mantra_excerptdots. ' <a href="'. get_permalink() . '">' .$mantra_excerptcont.' <span class="meta-nav">&rarr; </span>' . '</a>';
- } else {
- $text = implode(' ', $words);
- }
-}
-return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);
+ global $mantra_excerptwords;
+ global $mantra_excerptcont;
+ global $mantra_excerptdots;
+ $raw_excerpt = $text;
+ if ( '' == $text ) {
+ //Retrieve the post content.
+ $text = get_the_content('');
+
+ //Delete all shortcode tags from the content.
+ $text = strip_shortcodes( $text );
+
+ $text = apply_filters('the_content', $text);
+ $text = str_replace(']]>', ']]&gt;', $text);
+
+ $allowed_tags = '<a>,<img>,<b>,<strong>,<ul>,<li>,<i>,<h1>,<h2>,<h3>,<h4>,<h5>,<h6>,<pre>,<code>,<em>,<u>,<br>,<p>';
+ $text = strip_tags($text, $allowed_tags);
+
+ $words = preg_split("/[\n\r\t ]+/", $text, $mantra_excerptwords + 1, PREG_SPLIT_NO_EMPTY);
+ if ( count($words) > $mantra_excerptwords ) {
+ array_pop($words);
+ $text = implode(' ', $words);
+ $text = $text .' '.$mantra_excerptdots. ' <a href="' . esc_url( get_permalink() ) . '">' .$mantra_excerptcont.' <span class="meta-nav">&rarr; </span>' . '</a>';
+ } else {
+ $text = implode(' ', $words);
+ }
+ }
+ return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);
}
-
-
-
if ($mantra_excerpttags=='Enable') {
-remove_filter('get_the_excerpt', 'wp_trim_excerpt');
-add_filter('get_the_excerpt', 'mantra_trim_excerpt');
+ remove_filter('get_the_excerpt', 'wp_trim_excerpt');
+ add_filter('get_the_excerpt', 'mantra_trim_excerpt');
}
-
/**
* Remove inline styles printed when the gallery shortcode is used.
*
@@ -153,28 +149,24 @@ if ( ! function_exists( 'mantra_posted_on' ) ) :
* @since mantra 0.5
*/
function mantra_posted_on() {
-global $mantra_options;
-foreach ($mantra_options as $key => $value) {
- ${"$key"} = $value ;
-}
-
-$date_string = '<time class="onDate date published" datetime="' . get_the_time( 'c' ) . '"> %3$s </time><span class="bl_sep">|</span>';
-$date_string .= '<time class="updated" datetime="' . get_the_modified_date( 'c' ) . '">' . get_the_modified_date() . '</time>';
+ $date_string = '<time class="onDate date published" datetime="' . get_the_time( 'c' ) . '"> %3$s </time><span class="bl_sep">|</span>';
+ $date_string .= '<time class="updated" datetime="' . get_the_modified_date( 'c' ) . '">' . get_the_modified_date() . '</time>';
-// If author is hidden don't give it a value
-$author_string = sprintf( '<span class="author vcard" >'.__( 'By ','mantra'). ' <a class="url fn n" rel="author" href="%1$s" title="%2$s">%3$s</a> <span class="bl_sep">|</span></span>',
- get_author_posts_url( get_the_author_meta( 'ID' ) ),
- sprintf( esc_attr__( 'View all posts by %s', 'mantra' ), get_the_author() ),
- get_the_author()
- );
+ // If author is hidden don't give it a value
+ $author_string = sprintf( '<span class="author vcard" > %4$s <a class="url fn n" rel="author" href="%1$s" title="%2$s">%3$s</a> <span class="bl_sep">|</span></span>',
+ esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
+ sprintf( esc_attr__( 'View all posts by %s', 'mantra' ), get_the_author() ),
+ get_the_author(),
+ __('By ', 'mantra')
+ );
-// Print the meta data
- printf( '&nbsp; %4$s '.$date_string.' <span class="bl_categ"> %2$s </span> ',
+ // Print the meta data
+ printf( ' %4$s '.$date_string.' <span class="bl_categ"> %2$s </span> ',
'meta-prep meta-prep-author',
get_the_category_list( ', ' ),
sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span> <span class="entry-time"> - %2$s</span></a>',
- get_permalink(),
+ esc_url( get_permalink() ),
esc_attr( get_the_time() ),
get_the_date()
), $author_string
@@ -183,13 +175,13 @@ $author_string = sprintf( '<span class="author vcard" >'.__( 'By ','mantra'). '
}
endif;
-// Remove category from rel in categry tags.
-add_filter( 'the_category', 'mantra_remove_category_tag' );
-add_filter( 'get_the_category_list', 'mantra_remove_category_tag' );
+// Remove category from rel in category tags.
function mantra_remove_category_tag( $text ) {
-$text = str_replace('rel="category tag"', 'rel="tag"', $text); return $text;
+ return str_replace('rel="category tag"', 'rel="tag"', $text);
}
+add_filter( 'the_category', 'mantra_remove_category_tag' );
+add_filter( 'get_the_category_list', 'mantra_remove_category_tag' );
if ( ! function_exists( 'mantra_posted_in' ) ) :
@@ -213,7 +205,7 @@ function mantra_posted_in() {
$posted_in,
get_the_category_list( ', ' ),
$tag_list,
- get_permalink(),
+ esc_url( get_permalink() ),
the_title_attribute( 'echo=0' )
);
}
@@ -235,32 +227,26 @@ function mantra_content_nav( $nav_id ) {
}
endif; // mantra_content_nav
-// Custom image size for use with post thumbnails
-if($mantra_fcrop)
-add_image_size( 'custom', $mantra_fwidth, $mantra_fheight, true );
-else
-add_image_size( 'custom', $mantra_fwidth, $mantra_fheight );
-
-
-function cryout_echo_first_image ($postID)
-{
+/**
+ * Returns src of image first attached to the post
+ */
+function cryout_echo_first_image( $postID ) {
$args = array(
- 'numberposts' => 1,
- 'order'=> 'ASC',
- 'post_mime_type' => 'image',
- 'post_parent' => $postID,
- 'post_status' => 'any',
- 'post_type' => 'any'
+ 'numberposts' => 1,
+ 'order'=> 'ASC',
+ 'post_mime_type' => 'image',
+ 'post_parent' => $postID,
+ 'post_status' => 'any',
+ 'post_type' => 'any',
);
$attachments = get_children( $args );
- //print_r($attachments);
if ($attachments) {
foreach($attachments as $attachment) {
$image_attributes = wp_get_attachment_image_src( $attachment->ID, 'custom' ) ? wp_get_attachment_image_src( $attachment->ID, 'custom' ) : wp_get_attachment_image_src( $attachment->ID, 'custom' );
- return $image_attributes[0];
+ return esc_url( $image_attributes[0] );
}
}
@@ -273,29 +259,26 @@ if ( ! function_exists( 'mantra_set_featured_thumb' ) ) :
function mantra_set_featured_thumb() {
global $mantra_options;
- foreach ($mantra_options as $key => $value) {
- ${"$key"} = $value ;
+ extract($mantra_options);
+ global $post;
+ $image_src = cryout_echo_first_image($post->ID);
+
+ if ( function_exists("has_post_thumbnail") && has_post_thumbnail() && $mantra_fpost=='Enable') {
+ the_post_thumbnail( 'custom', array( "class" => "align" . strtolower($mantra_falign) . " post-thumbnail" ) );
+ } elseif ($mantra_fpost=='Enable' && $mantra_fauto=="Enable" && $image_src && ($mantra_excerptarchive != "Full Post" || $mantra_excerpthome != "Full Post")) { ?>
+ <a class="post-thumbnail-link" title="<?php echo the_title_attribute('echo=0') ?>" href="<?php echo esc_url( get_permalink() ) ?>" >
+ <img width="<?php echo $mantra_fwidth ?>" title="" alt="<?php echo the_title_attribute('echo=0') ?>" class="align<?php echo strtolower($mantra_falign) ?> post_thumbnail" src="<?php echo $image_src ?>">
+ </a>
+ <?php }
}
-global $post;
-$image_src = cryout_echo_first_image($post->ID);
-
- if ( function_exists("has_post_thumbnail") && has_post_thumbnail() && $mantra_fpost=='Enable')
- the_post_thumbnail( 'custom', array("class" => "align".strtolower($mantra_falign)." post_thumbnail" ) );
-
- else if ($mantra_fpost=='Enable' && $mantra_fauto=="Enable" && $image_src && ($mantra_excerptarchive != "Full Post" || $mantra_excerpthome != "Full Post"))
- echo '<a title="'.the_title_attribute('echo=0').'" href="'.get_permalink().'" ><img width="'.$mantra_fwidth.'" title="" alt="" class="align'.strtolower($mantra_falign).' post_thumbnail" src="'.$image_src.'"></a>' ;
-
- }
endif; // mantra_set_featured_thumb
-if ($mantra_fpost=='Enable' && $mantra_fpostlink) add_filter( 'post_thumbnail_html', 'mantra_thumbnail_link', 10, 2 );
-
/**
* The thumbnail gets a link to the post's page
*/
-
function mantra_thumbnail_link( $html, $post_id ) {
- $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>';
- return $html;
+ return '<a class="post-thumbnail-link" href="' . esc_url( get_permalink( $post_id ) ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>';
}
-?>
+if ($mantra_fpost=='Enable' && $mantra_fpostlink) add_filter( 'post_thumbnail_html', 'mantra_thumbnail_link', 10, 2 );
+
+// FIN \ No newline at end of file
diff --git a/themes/mantra/includes/theme-setup.php b/themes/mantra/includes/theme-setup.php
index ecf57fdb..5bc922a1 100644
--- a/themes/mantra/includes/theme-setup.php
+++ b/themes/mantra/includes/theme-setup.php
@@ -6,15 +6,8 @@
* @subpackage Functions
*/
-/*
-// Bringing up Mantra Settings page after install
-if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) {
- wp_redirect( 'themes.php?page=mantra-page' );
-}
-*/
+$mantra_totalSize = $mantra_sidebar + $mantra_sidewidth;
-$mantra_totalSize = $mantra_sidebar + $mantra_sidewidth+50;
-
/**
*
@@ -25,9 +18,6 @@ $mantra_totalSize = $mantra_sidebar + $mantra_sidewidth+50;
/**
* Set the content width based on the theme's design and stylesheet.
- *
- * Used to set the width of images and content. Should be equal to the width the theme
- * is designed for, generally via the style.css stylesheet.
*/
if ( ! isset( $content_width ) )
$content_width = $mantra_sidewidth;
@@ -58,10 +48,13 @@ if ( ! function_exists( 'mantra_setup' ) ):
* @since mantra 0.5
*/
function mantra_setup() {
-
+ global $mantra_totalSize;
+ global $mantra_options;
+ extract( $mantra_options );
+
// This theme styles the visual editor with editor-style.css to match the theme style.
add_editor_style();
-
+
// Support title tag since WP 4.1
add_theme_support( 'title-tag' );
@@ -92,37 +85,33 @@ function mantra_setup() {
// This theme allows users to set a custom background
add_theme_support( 'custom-background' );
- // We'll be using post thumbnails for custom header images on posts and pages.
- // We want them to be the same size as the header.
- // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
- global $mantra_hheight;
- $mantra_hheight=(int)$mantra_hheight;
- global $mantra_totalSize;
- add_image_size('header', apply_filters( 'mantra_header_image_width', $mantra_totalSize ), apply_filters( 'mantra_header_image_height', $mantra_hheight), true );
+ // Register image size for the theme's header area
+ $mantra_hheight = intval( $mantra_hheight );
+ add_image_size( 'header', apply_filters( 'mantra_header_image_width', $mantra_totalSize ), apply_filters( 'mantra_header_image_height', $mantra_hheight), true );
+
+ // Register image size for presentation page slider
+ add_image_size( 'slider', apply_filters( 'mantra_slider_image_width', $mantra_fpsliderwidth ), apply_filters( 'mantra_slider_image_height', $mantra_fpsliderheight ), true );
+
+ // Register custom image size for use with post thumbnails
+ add_image_size( 'custom', apply_filters( 'mantra_featured_image_width', $mantra_fwidth ), apply_filters( 'mantra_featured_image_height', $mantra_fheight ), !empty($mantra_fcrop) );
- global $mantra_fpsliderwidth;
- global $mantra_fpsliderheight;
- add_image_size( 'slider', $mantra_fpsliderwidth, $mantra_fpsliderheight, true );
- // Add a way for the custom header to be styled in the admin panel that controls
- // custom headers. See mantra_admin_header_style(), below.
define( 'NO_HEADER_TEXT', true );
- // Add support for flexible headers
$header_args = array(
- 'flex-height' => true,
'height' => $mantra_hheight,
- 'flex-width' => true,
'width' => $mantra_totalSize,
'max-width' => 1920,
'default-image' => '',
- 'admin-head-callback' => 'mantra_admin_header_style',
+ // support flexible (no-crop) headers
+ 'flex-height' => true,
+ 'flex-width' => true,
);
add_theme_support( 'custom-header', $header_args );
// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
register_default_headers( array(
'mantra' => array(
- 'url' => '%s/images/headers/mantra.png',
- 'thumbnail_url' => '%s/images/headers/mantra-thumbnail.png',
+ 'url' => '%s/resources/images/headers/mantra.png',
+ 'thumbnail_url' => '%s/resources/images/headers/mantra-thumbnail.png',
// translators: header image description
'description' => __( 'mantra', 'mantra' )
),
@@ -130,37 +119,28 @@ function mantra_setup() {
}
endif;
-// remove obsolete mantra functions action hooks
-if ( ! function_exists( 'mantra_remove_obsolete_functions' ) ) :
-function mantra_remove_obsolete_functions() {
- remove_filter( 'wp_title', 'mantra_filter_wp_title' );
- remove_filter('wp_title_rss','mantra_filter_wp_title_rss');
-}
-add_action('init','mantra_remove_obsolete_functions');
-endif;
-
// Backwards compatibility for the title-tag
if ( ! function_exists( '_wp_render_title_tag' ) ) :
add_action( 'wp_head', 'mantra_render_title' );
- add_filter( 'wp_title', 'mantra_filter_wp_title2' );
- add_filter('wp_title_rss','mantra_filter_wp_title_rss2');
+ add_filter( 'wp_title', 'mantra_filter_wp_title' );
+ add_filter( 'wp_title_rss', 'mantra_filter_wp_title_rss');
endif;
-function mantra_render_title() { ?>
- <title><?php wp_title( '', true, 'right' ); ?></title>
-<?php }
+function mantra_render_title() {
+ ?><title><?php wp_title( '', true, 'right' ); ?></title><?php
+}
-function mantra_filter_wp_title2( $title ) {
+function mantra_filter_wp_title( $title ) {
// Get the Site Name
$site_name = get_bloginfo( 'name' );
// Prepend name
- $filtered_title = (((strlen($site_name)>0)&&(strlen($title)>0))?$title.' - '.$site_name:$title.$site_name);
+ $filtered_title = ( ( ( strlen($site_name)>0 ) && ( strlen($title)>0) ) ? $title . ' - ' . $site_name : $title . $site_name );
// Get the Site Description
$site_description = get_bloginfo( 'description' );
// If site front page, append description
- if ( (is_home() || is_front_page()) && $site_description ) {
+ if ( ( is_home() || is_front_page() ) && $site_description ) {
// Append Site Description to title
- $filtered_title = ((strlen($site_name)>0)&&(strlen($site_description)>0))?$site_name. " | ".$site_description:$site_name.$site_description;
+ $filtered_title = ( ( strlen($site_name)>0 ) && ( strlen($site_description)>0 ) ) ? $site_name . " | " . $site_description : $site_name . $site_description;
}
// Add pagination if that's the case
global $page, $paged;
@@ -171,35 +151,10 @@ function mantra_filter_wp_title2( $title ) {
return $filtered_title;
}
-function nirvana_filter_wp_title_rss2($title) {
+function mantra_filter_wp_title_rss($title) {
return ' ';
}
-if ( ! function_exists( 'mantra_admin_header_style' ) ) :
-/**
- * Styles the header image displayed on the Appearance > Header admin panel.
- *
- * Referenced via add_custom_image_header() in mantra_setup().
- *
- * @since mantra 0.5
- */
-function mantra_admin_header_style() {
-?>
-<style type="text/css">
-/* Shows the same border as on front end */
-#headimg {
- border-bottom: 1px solid #000;
- border-top: 4px solid #000;
-}
-/* If NO_HEADER_TEXT is false, you would style the text with these selectors:
- #headimg #name { }
- #headimg #desc { }
-*/
-</style>
-<?php
-}
-endif;
-
/**
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
*
@@ -217,32 +172,46 @@ add_filter( 'wp_page_menu_args', 'mantra_page_menu_args' );
/**
* Create menus
*/
-
+
// TOP MENU
function mantra_top_menu() {
- if ( has_nav_menu( 'top' ) ) wp_nav_menu( array( 'container' => 'nav', 'container_class' => 'topmenu', 'theme_location' => 'top', 'depth' => 1 ) );
- }
-
- add_action ('cryout_wrapper_hook','mantra_top_menu');
-
- // MAIN MENU
- function mantra_main_menu() {
- /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
-<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'mantra' ); ?>"><?php _e( 'Skip to content', 'mantra' ); ?></a></div>
-<?php /* Main navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */
-wp_nav_menu( array( 'container_class' => 'menu', 'menu_id' =>'prime_nav', 'theme_location' => 'primary' ) );
+ if ( has_nav_menu( 'top' ) )
+ wp_nav_menu( array(
+ 'container' => 'nav',
+ 'container_class' => 'topmenu',
+ 'theme_location' => 'top',
+ 'depth' => 1,
+ ) );
}
-
-add_action ('cryout_access_hook','mantra_main_menu');
+add_action( 'cryout_wrapper_hook', 'mantra_top_menu' );
+
+// MAIN MENU
+function mantra_main_menu() {
+ ?>
+ <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'mantra' ); ?>"><?php _e( 'Skip to content', 'mantra' ); ?></a></div>
+ <?php
+ /* Main navigation menu. If one isn't selected, wp_nav_menu falls back to wp_page_menu. */
+ wp_nav_menu( array(
+ 'container_class' => 'menu',
+ 'menu_id' =>'prime_nav',
+ 'theme_location' => 'primary'
+ ) );
+}
+add_action( 'cryout_access_hook', 'mantra_main_menu' );
// FOOTER MENU
- function mantra_footer_menu() {
- if ( has_nav_menu( 'footer' ) ) wp_nav_menu( array( 'container' => 'nav', 'container_class' => 'footermenu', 'theme_location' => 'footer', 'depth' => 1 ) );
- }
-
- add_action ('cryout_footer_hook','mantra_footer_menu',10);
+function mantra_footer_menu() {
+ if ( has_nav_menu( 'footer' ) )
+ wp_nav_menu( array(
+ 'container' => 'nav',
+ 'container_class' => 'footermenu',
+ 'theme_location' => 'footer',
+ 'depth' => 1
+ ) );
+}
+add_action( 'cryout_footer_hook', 'mantra_footer_menu' );
+
-
/**
* Register widgetized areas, including two sidebars and four widget-ready columns in the footer.
*
@@ -340,8 +309,8 @@ function mantra_widgets_init() {
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
-
- // Area 9, located above the content area. Empty by default.
+
+ // Area 9, located above the content area. Empty by default.
register_sidebar( array(
'name' => __( 'Above content Widget Area', 'mantra' ),
'id' => 'above-content-widget-area',
@@ -351,8 +320,8 @@ function mantra_widgets_init() {
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
-
- // Area 10, located below the content area. Empty by default.
+
+ // Area 10, located below the content area. Empty by default.
register_sidebar( array(
'name' => __( 'Below Content Widget Area', 'mantra' ),
'id' => 'below-content-widget-area',
@@ -371,7 +340,6 @@ add_action( 'widgets_init', 'mantra_widgets_init' );
* Creates different class names for footer widgets depending on their number.
* This way they can fit the footer area.
*/
-
function mantra_footer_sidebar_class() {
$count = 0;
@@ -409,19 +377,22 @@ function mantra_footer_sidebar_class() {
}
- function mantra_above_widget() {
- if ( is_active_sidebar( 'above-content-widget-area' )) { ?>
- <ul class="yoyo">
- <?php dynamic_sidebar( 'above-content-widget-area' ); ?>
- </ul>
- <?php } }
-
+function mantra_above_widget() {
+ if ( is_active_sidebar( 'above-content-widget-area' )) { ?>
+ <ul class="yoyo">
+ <?php dynamic_sidebar( 'above-content-widget-area' ); ?>
+ </ul>
+ <?php }
+}
+add_action( 'cryout_before_content_hook', 'mantra_above_widget' );
+
function mantra_below_widget() {
- if ( is_active_sidebar( 'below-content-widget-area' )) { ?>
- <ul class="yoyo">
- <?php dynamic_sidebar( 'below-content-widget-area' ); ?>
- </ul>
- <?php } }
-
-add_action ('cryout_before_content_hook','mantra_above_widget');
-add_action ('cryout_after_content_hook','mantra_below_widget'); ?> \ No newline at end of file
+ if ( is_active_sidebar( 'below-content-widget-area' )) { ?>
+ <ul class="yoyo">
+ <?php dynamic_sidebar( 'below-content-widget-area' ); ?>
+ </ul>
+ <?php }
+}
+add_action( 'cryout_after_content_hook', 'mantra_below_widget' );
+
+// FIN \ No newline at end of file
diff --git a/themes/mantra/includes/theme-styles.php b/themes/mantra/includes/theme-styles.php
index 0576d6fc..43f4c5c3 100644
--- a/themes/mantra/includes/theme-styles.php
+++ b/themes/mantra/includes/theme-styles.php
@@ -1,95 +1,90 @@
-<?php
+<?php
/*
- * Styles and scripts registration and enqueuing
+ * Styles and scripts registration and enqueuing
*
* @package mantra
* @subpackage Functions
*/
-
-// Adding the viewport meta if the mobile view has been enabled
+// Adding the viewport meta if the mobile view has been enabled
function mantra_mobile_meta() {
-global $mantra_options;
-if ($mantra_options['mantra_zoom'] == 1)
- return '<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0, minimum-scale=1.0, maximum-scale=3.0">';
-else return '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">';
+ global $mantra_options;
+ if ($mantra_options['mantra_zoom'] == 1) {
+ echo '<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0, minimum-scale=1.0, maximum-scale=3.0">' . PHP_EOL;
+ } else {
+ echo '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">' . PHP_EOL;
+ }
}
+if ($mantra_options['mantra_mobile']) add_action( 'cryout_seo_hook', 'mantra_mobile_meta' );
-function mantra_register_styles() {
+function mantra_enqueue_styles() {
global $mantra_options;
- foreach ($mantra_options as $key => $value) { ${"$key"} = $value ;}
-
- wp_register_style( 'mantras', get_stylesheet_uri(), NULL, _CRYOUT_THEME_VERSION );
-
- if($mantra_mobile=="Enable") { wp_register_style( 'mantra-mobile', get_template_directory_uri() . '/style-mobile.css', NULL, _CRYOUT_THEME_VERSION );}
-
- wp_register_style( 'mantra_googlefont', esc_attr($mantra_googlefont2 ));
- wp_register_style( 'mantra_googlefonttitle', esc_attr($mantra_googlefonttitle2 ));
- wp_register_style( 'mantra_googlefontside',esc_attr($mantra_googlefontside2) );
- wp_register_style( 'mantra_googlefontsubheader', esc_attr($mantra_googlefontsubheader2) );
-
-}
-add_action('init', 'mantra_register_styles' );
+ // Main theme style
+ wp_enqueue_style( 'mantra-style', get_stylesheet_uri(), NULL, _CRYOUT_THEME_VERSION );
+ // Google Fonts
+ if (!empty($mantra_options['mantra_googlefont']))
+ wp_enqueue_style( 'mantra-googlefont', "//fonts.googleapis.com/css?family=" . preg_replace( '/\s+/', '+', esc_attr($mantra_options['mantra_googlefont']) ) );
+ if (!empty($mantra_options['mantra_googlefonttitle']))
+ wp_enqueue_style( 'mantra-googlefont-title', "//fonts.googleapis.com/css?family=" . preg_replace( '/\s+/', '+', esc_attr($mantra_options['mantra_googlefonttitle']) ) );
+ if (!empty($mantra_options['mantra_googlefontside']))
+ wp_enqueue_style( 'mantra-googlefont-side', "//fonts.googleapis.com/css?family=" . preg_replace( '/\s+/', '+', esc_attr($mantra_options['mantra_googlefontside']) ) );
+ if (!empty($mantra_options['mantra_googlefontsubheader']))
+ wp_enqueue_style( 'mantra-googlefont-headings', "//fonts.googleapis.com/css?family=" . preg_replace( '/\s+/', '+', esc_attr($mantra_options['mantra_googlefontsubheader']) ) );
-function mantra_enqueue_styles() {
- global $mantra_options;
- foreach ($mantra_options as $key => $value) { ${"$key"} = $value ;}
-
- wp_enqueue_style( 'mantras');
-
- wp_enqueue_style( 'mantra_googlefont');
- wp_enqueue_style( 'mantra_googlefonttitle');
- wp_enqueue_style( 'mantra_googlefontside');
- wp_enqueue_style( 'mantra_googlefontsubheader');
+ // Options-based generated styling
+ wp_add_inline_style( 'mantra-style', preg_replace( "/[\n\r\t\s]+/", " ", mantra_custom_styles() ) ); // includes/custom-styles.php
+ // Presentation Page options-based styling (only used when needed)
+ if ( ($mantra_options['mantra_frontpage']=="Enable") && is_front_page() ) {
+ wp_add_inline_style( 'mantra-style', preg_replace( "/[\n\r\t\s]+/", " ", mantra_frontpage_css() ) ); // also in includes/custom-styles.php
+ }
+
+ // RTL support
+ if ( is_rtl() ) wp_enqueue_style( 'mantra-rtl', get_template_directory_uri() . '/resources/css/rtl.css', NULL, _CRYOUT_THEME_VERSION );
+
+ // User supplied custom styling
+ wp_add_inline_style( 'mantra-style', preg_replace( "/[\n\r\t\s]+/", " ", mantra_customcss() ) ); // also in includes/custom-styles.php
+
+ /// Responsive styling (loaded last)
+ if ( $mantra_options['mantra_mobile']=="Enable" ) {
+ wp_enqueue_style( 'mantra-mobile', get_template_directory_uri() . '/resources/css/style-mobile.css', NULL, _CRYOUT_THEME_VERSION );
+ }
}
-
add_action('wp_enqueue_scripts', 'mantra_enqueue_styles' );
-
-function mantra_styles_echo() {
- global $mantra_options;
-
- foreach ($mantra_options as $key => $value) { ${"$key"} = $value ;}
-
- echo preg_replace("/[\n\r\t\s]+/"," " ,mantra_custom_styles())."\n";
- if(($mantra_frontpage=="Enable")&&is_front_page()) { echo preg_replace("/[\n\r\t\s]+/"," " ,mantra_frontpage_css())."\n";}
- if($mantra_mobile=="Enable") {wp_enqueue_style( 'mantra-mobile'); echo mantra_mobile_meta();}
- echo preg_replace("/[\n\r\t\s]+/"," " ,mantra_customcss())."\n";
-}
-
-add_action('wp_head', 'mantra_styles_echo');
-
-
-// JS loading and hook into wp_enque_scripts
-
-add_action('wp_head', 'mantra_customjs' );
-
+// JS loading and hook into wp_enque_scripts
+add_action('wp_head', 'mantra_customjs' );
// Scripts loading and hook into wp_enque_scripts
-
function mantra_scripts_method() {
-global $mantra_options;
-foreach ($mantra_options as $key => $value) {
- ${"$key"} = $value ;
- }
+ global $mantra_options;
-// If frontend - load the js for the menu and the social icons animations
+ // If frontend - load the js for the menu and the social icons animations
if ( !is_admin() ) {
- wp_register_script('cryout-frontend',get_template_directory_uri() . '/js/frontend.js', array('jquery'), _CRYOUT_THEME_VERSION );
- wp_enqueue_script('cryout-frontend');
- // If mantra from page is enabled and the current page is home page - load the nivo slider js
- if($mantra_frontpage == "Enable" && is_front_page()) {
- wp_register_script('cryout-nivoSlider',get_template_directory_uri() . '/js/nivo-slider.js', array('jquery'), _CRYOUT_THEME_VERSION );
- wp_enqueue_script('cryout-nivoSlider');
- }
+ wp_enqueue_script( 'mantra-frontend', get_template_directory_uri() . '/resources/js/frontend.js', array('jquery'), _CRYOUT_THEME_VERSION );
+
+ $js_options = array(
+ 'responsive' => 0,
+ 'image_class' => '',
+ 'equalize_sidebars' => 0,
+ );
+ $js_options['image_class'] = 'image' . $mantra_options['mantra_image'];
+ if ( $mantra_options['mantra_mobile'] == "Enable" ) { $js_options['responsive'] = 1; }
+ if ( !empty($mantra_options['mantra_s1bg']) || !empty($mantra_options['mantra_s2bg']) ) { $js_options['equalize_sidebars'] = 1; }
+
+ wp_localize_script( 'mantra-frontend', 'mantra_options', $js_options );
+
+ // If mantra presentation page is enabled and the current page is home page - load the nivo slider js
+ if ( $mantra_options['mantra_frontpage'] == "Enable" && is_front_page() ) {
+ wp_enqueue_script( 'mantra-nivoslider', get_template_directory_uri() . '/resources/js/nivo-slider.js', array('jquery'), _CRYOUT_THEME_VERSION );
+ }
+
}
-
/* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
@@ -97,37 +92,36 @@ foreach ($mantra_options as $key => $value) {
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
}
-
add_action('wp_enqueue_scripts', 'mantra_scripts_method');
/**
* Adding CSS3 PIE behavior to elements that need it
*/
function mantra_ie_pie() {
- echo '
-<!--[if lte IE 8]>
-<style type="text/css" media="screen">
- #access ul li,
-.edit-link a ,
- #footer-widget-area .widget-title, .entry-meta,.entry-meta .comments-link,
-.short-button-light, .short-button-dark ,.short-button-color ,blockquote {
- position:relative;
- behavior: url('.get_template_directory_uri().'/js/PIE/PIE.php);
- }
-
-#access ul ul {
--pie-box-shadow:0px 5px 5px #999;
-}
-
-#access ul li.current_page_item, #access ul li.current-menu-item ,
-#access ul li ,#access ul ul ,#access ul ul li, .commentlist li.comment ,.commentlist .avatar,
- .nivo-caption, .theme-default .nivoSlider {
- behavior: url('.get_template_directory_uri().'/js/PIE/PIE.php);
- }
-</style>
-<![endif]-->
-';
+ ob_start();
+ echo '<!--[if lte IE 8]>
+ <style type="text/css" media="screen">
+ #access ul li,
+ .edit-link a ,
+ #footer-widget-area .widget-title, .entry-meta,.entry-meta .comments-link,
+ .short-button-light, .short-button-dark ,.short-button-color ,blockquote {
+ position:relative;
+ behavior: url('.get_template_directory_uri().'/resources/js/PIE/PIE.php);
+ }
+
+ #access ul ul {
+ -pie-box-shadow:0px 5px 5px #999;
+ }
+
+ #access ul li.current_page_item, #access ul li.current-menu-item ,
+ #access ul li ,#access ul ul ,#access ul ul li, .commentlist li.comment ,.commentlist .avatar,
+ .nivo-caption, .theme-default .nivoSlider {
+ behavior: url('.get_template_directory_uri().'/resources/js/PIE/PIE.php);
+ }
+ </style>
+ <![endif]-->';
+ echo preg_replace( "/[\n\r\t\s]+/", " ", ob_get_clean() );
}
add_action('wp_head', 'mantra_ie_pie', 10);
-?> \ No newline at end of file
+// FIN
diff --git a/themes/mantra/index.php b/themes/mantra/index.php
index 7daad5d9..35300b7c 100644
--- a/themes/mantra/index.php
+++ b/themes/mantra/index.php
@@ -11,16 +11,16 @@
* @package Cryout Creations
* @subpackage Mantra
*/
-get_header();
+get_header();
if ($mantra_frontpage=="Enable" && is_front_page() ):
mantra_frontpage_generator();
- if ($mantra_frontposts=="Enable"): get_template_part('content','frontpage'); endif;
+ if ($mantra_frontposts=="Enable"): get_template_part('content/content','frontpage'); endif;
else:
?>
<section id="container">
-
+
<div id="content" role="main">
-
+
<?php cryout_before_content_hook(); ?><?php if ( have_posts() ) : ?>
<?php mantra_content_nav( 'nav-above' ); ?>
@@ -28,8 +28,8 @@ else:
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', get_post_format() ); ?>
-
+ <?php get_template_part( 'content/content', get_post_format() ); ?>
+
<?php endwhile; ?>
<?php if($mantra_pagination=="Enable") mantra_pagination(); else mantra_content_nav( 'nav-below' ); ?>
@@ -52,6 +52,7 @@ else:
</div><!-- #content -->
<?php get_sidebar(); ?>
</section><!-- #container -->
-<?php
+<?php
endif;
-get_footer(); ?> \ No newline at end of file
+
+get_footer(); \ No newline at end of file
diff --git a/themes/mantra/languages/mantra.pot b/themes/mantra/languages/mantra.pot
index 24eb03ad..2a693a8d 100644
--- a/themes/mantra/languages/mantra.pot
+++ b/themes/mantra/languages/mantra.pot
@@ -1,17 +1,18 @@
+#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Mantra 2.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-05-10 15:49+0200\n"
+"POT-Creation-Date: 2018-01-19 00:53+0200\n"
"PO-Revision-Date: 2017-05-10 15:49+0200\n"
"Last-Translator: Cryout Creations\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Poedit 1.5.5\n"
+"X-Generator: Poedit 1.8.11\n"
"X-Poedit-KeywordsList: __;_e;_x\n"
-"X-Poedit-Basepath: ../\n"
+"X-Poedit-Basepath: ..\n"
"X-Poedit-SearchPath-0: .\n"
#: 404.php:17
@@ -24,809 +25,599 @@ msgid ""
"will help."
msgstr ""
-#: archive.php:27
-#, php-format
-msgid "Daily Archives: %s"
-msgstr ""
-
-#: archive.php:29
-#, php-format
-msgid "Monthly Archives: %s"
-msgstr ""
-
-#: archive.php:29
-msgid "F Y"
-msgstr ""
-
-#: archive.php:31
-#, php-format
-msgid "Yearly Archives: %s"
-msgstr ""
-
-#: archive.php:31
-msgid "Y"
-msgstr ""
-
-#: archive.php:33
-msgid "Blog Archives"
-msgstr ""
-
-#: archive.php:59 author.php:75 category.php:51 content-frontpage.php:26
-#: index.php:41 search.php:41 tag.php:52 template-blog.php:36
-msgid "Nothing Found"
-msgstr ""
-
-#: archive.php:63 author.php:79 category.php:55 content-frontpage.php:30
-#: index.php:45 tag.php:56 template-blog.php:40
-msgid ""
-"Apologies, but no results were found for the requested archive. Perhaps "
-"searching will help find a related post."
-msgstr ""
-
-#: attachment.php:18
-#, php-format
-msgid "Return to %s"
-msgstr ""
-
-#: attachment.php:29
-msgid "By"
-msgstr ""
-
-#: attachment.php:40
-msgid "Published"
-msgstr ""
-
-#: attachment.php:50
-#, php-format
-msgid "Full size is %s pixels"
-msgstr ""
-
-#: attachment.php:53
-msgid "Link to full-size image"
-msgstr ""
-
-#: attachment.php:60 attachment.php:107 content-aside.php:46
-#: content-chat.php:47 content-gallery.php:73 content-image.php:40
-#: content-link.php:47 content-page.php:22 content-quote.php:44
-#: content-status.php:46 content.php:78 single.php:55
-#: template-onecolumn.php:28 template-page-with-intro.php:18
-msgid "Edit"
-msgstr ""
-
-#: attachment.php:100
-msgid "Continue reading"
-msgstr ""
-
-#: attachment.php:101 content-aside.php:37 content-chat.php:36
-#: content-gallery.php:63 content-image.php:31 content-link.php:36
-#: content-page.php:21 content-quote.php:34 content-status.php:37
-#: content.php:51 content.php:67 single.php:33 template-onecolumn.php:27
-#: template-page-with-intro.php:17
-msgid "Pages:"
-msgstr ""
-
-#: author.php:29
-#, php-format
-msgid "Author Archives: %s"
-msgstr ""
-
-#: author.php:50
-#, php-format
-msgid "About %s"
-msgstr ""
-
-#: category.php:20
-#, php-format
-msgid "Category Archives: %s"
-msgstr ""
-
-#: comments.php:18
-msgid ""
-"This post is password protected. Enter the password to view any comments."
-msgstr ""
-
-#: content-aside.php:18
-msgid "Aside"
-msgstr ""
-
-#: content-aside.php:36 content-chat.php:35 content-image.php:30
-#: content-link.php:35 content-quote.php:33 content-status.php:36
-msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
-msgstr ""
-
-#: content-aside.php:44 content-chat.php:43 content-gallery.php:70
-#: content-image.php:37 content-link.php:43 content-quote.php:41
-#: content-status.php:44 content.php:76 includes/theme-loop.php:205
-msgid "Tagged"
-msgstr ""
-
-#: content-chat.php:18
-msgid "Chat"
-msgstr ""
-
-#: content-gallery.php:21
-msgid "Gallery"
-msgstr ""
-
-#: content-image.php:17 admin/settings.php:444 admin/settings.php:459
-#: admin/settings.php:474 admin/settings.php:489 admin/settings.php:504
-#: admin/settings.php:546 admin/settings.php:561 admin/settings.php:576
-#: admin/settings.php:591
-msgid "Image"
-msgstr ""
-
-#: content-link.php:18 admin/settings.php:451 admin/settings.php:466
-#: admin/settings.php:481 admin/settings.php:496 admin/settings.php:511
-#: admin/settings.php:553 admin/settings.php:568 admin/settings.php:583
-#: admin/settings.php:598
-msgid "Link"
-msgstr ""
-
-#: content-page.php:27 includes/theme-comments.php:136
-msgid "Comments are closed."
-msgstr ""
-
-#: content-quote.php:16
-msgid "Quote"
-msgstr ""
-
-#: content-status.php:28 includes/tgm.php:2609
-msgid "Status"
-msgstr ""
-
-#: search.php:20
-#, php-format
-msgid "Search Results for: %s"
-msgstr ""
-
-#: search.php:39
-#, php-format
-msgid "No search results for: %s"
-msgstr ""
-
-#: searchform.php:2
-msgid "Search"
-msgstr ""
-
-#: sidebar.php:26 sidebar.php:92
-msgid "Sidebar 1"
-msgstr ""
-
-#: sidebar.php:28 sidebar.php:94
-#, php-format
-msgid ""
-"You currently have no widgets set in the primary sidebar. You can add "
-"widgets via the <a href=\"%s\">Dashboard</a>."
-msgstr ""
-
-#: sidebar.php:29 sidebar.php:61 sidebar.php:95 sidebar.php:128
-#, php-format
-msgid ""
-"To hide this sidebar, switch to a different Layout via the <a href=\"%s"
-"\">Theme Settings</a>."
-msgstr ""
-
-#: sidebar.php:58 sidebar.php:125
-msgid "Sidebar 2"
-msgstr ""
-
-#: sidebar.php:60 sidebar.php:127
-#, php-format
-msgid ""
-"You currently have no widgets set in the secondary sidebar. You can add "
-"widgets via the <a href=\"%s\">Dashboard</a>."
-msgstr ""
-
-#: single.php:46
-msgid "View all posts by "
-msgstr ""
-
-#: tag.php:21
-#, php-format
-msgid "Tag Archives: %s"
-msgstr ""
-
-#: admin/admin-functions.php:82
+#: admin/admin-functions.php:79
msgid ""
"Before you can upload your import file, you will need to fix the following "
"error:"
msgstr ""
-#: admin/admin-functions.php:90
+#: admin/admin-functions.php:87
msgid "Import Mantra Theme Options"
msgstr ""
-#: admin/admin-functions.php:92
+#: admin/admin-functions.php:89
msgid ""
"Hi! This is where you import the Mantra settings.<i> Please remember that "
"this is still an experimental feature.</i>"
msgstr ""
-#: admin/admin-functions.php:94
+#: admin/admin-functions.php:91
msgid "Just choose a file from your computer:"
msgstr ""
-#: admin/admin-functions.php:96
+#: admin/admin-functions.php:93
#, php-format
msgid "Maximum size: %s"
msgstr ""
-#: admin/admin-functions.php:102
+#: admin/admin-functions.php:99
msgid "And import!"
msgstr ""
-#: admin/admin-functions.php:168
+#: admin/admin-functions.php:165
msgid "Import Mantra Theme Options "
msgstr ""
-#: admin/admin-functions.php:171
+#: admin/admin-functions.php:168
msgid "Great! The options have been imported!"
msgstr ""
-#: admin/admin-functions.php:172
+#: admin/admin-functions.php:169
msgid "Go back to the Mantra options page and check them out!"
msgstr ""
-#: admin/admin-functions.php:175 admin/admin-functions.php:181
-#: admin/admin-functions.php:187
+#: admin/admin-functions.php:172 admin/admin-functions.php:178
+#: admin/admin-functions.php:184
msgid "Oops, there's a small problem."
msgstr ""
-#: admin/admin-functions.php:176
+#: admin/admin-functions.php:173
msgid ""
"The uploaded file does not contain valid Mantra options. Make sure the file "
"is exported from the Mantra Options page."
msgstr ""
-#: admin/admin-functions.php:182
+#: admin/admin-functions.php:179
msgid "The uploaded file could not be read."
msgstr ""
-#: admin/admin-functions.php:188
+#: admin/admin-functions.php:185
msgid ""
"The uploaded file is not supported. Make sure the file was exported from the "
"Mantra page and that it is a text file."
msgstr ""
-#: admin/admin-functions.php:197
+#: admin/admin-functions.php:194
msgid ""
"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."
msgstr ""
-#: admin/admin-functions.php:203
+#: admin/admin-functions.php:200
msgid "ERROR: You are not authorised to perform that operation"
msgstr ""
-#: admin/main.php:98
+#: admin/main.php:87
msgid "Layout Settings"
msgstr ""
-#: admin/main.php:99
+#: admin/main.php:88
msgid "Header Settings"
msgstr ""
-#: admin/main.php:100
+#: admin/main.php:89
msgid "Presentation Page"
msgstr ""
-#: admin/main.php:101
+#: admin/main.php:90
msgid "Text Settings"
msgstr ""
-#: admin/main.php:102
+#: admin/main.php:91
msgid "Color Settings"
msgstr ""
-#: admin/main.php:103
+#: admin/main.php:92
msgid "Graphics Settings"
msgstr ""
-#: admin/main.php:104
+#: admin/main.php:93
msgid "Post Information Settings"
msgstr ""
-#: admin/main.php:105
+#: admin/main.php:94
msgid "Post Excerpt Settings"
msgstr ""
-#: admin/main.php:106
+#: admin/main.php:95
msgid "Featured Image Settings"
msgstr ""
-#: admin/main.php:107
+#: admin/main.php:96
msgid "Social Media Settings"
msgstr ""
-#: admin/main.php:108
+#: admin/main.php:97
msgid "Miscellaneous Settings"
msgstr ""
-#: admin/main.php:111
+#: admin/main.php:100
msgid "Main Layout"
msgstr ""
-#: admin/main.php:112
+#: admin/main.php:101
msgid "Content / Sidebar Width"
msgstr ""
-#: admin/main.php:113
+#: admin/main.php:102
+msgid "Magazine Layout"
+msgstr ""
+
+#: admin/main.php:103
msgid "Responsiveness"
msgstr ""
-#: admin/main.php:116
+#: admin/main.php:106
msgid "Enable Presentation Page"
msgstr ""
-#: admin/main.php:117
+#: admin/main.php:107
msgid "Show Posts on Presentation Page"
msgstr ""
-#: admin/main.php:118
+#: admin/main.php:108
msgid "Slider Settings"
msgstr ""
-#: admin/main.php:119
+#: admin/main.php:109
msgid "Slides"
msgstr ""
-#: admin/main.php:120
+#: admin/main.php:110
msgid "Presentation Page Columns"
msgstr ""
-#: admin/main.php:121
+#: admin/main.php:111
msgid "Extras"
msgstr ""
-#: admin/main.php:124
+#: admin/main.php:114
msgid "Header Height"
msgstr ""
-#: admin/main.php:125
+#: admin/main.php:115
msgid "Header Image"
msgstr ""
-#: admin/main.php:126
+#: admin/main.php:116
msgid "Site Header"
msgstr ""
-#: admin/main.php:127
+#: admin/main.php:117
msgid "Custom Logo Upload"
msgstr ""
-#: admin/main.php:128
+#: admin/main.php:118
msgid "Header Spacing"
msgstr ""
-#: admin/main.php:129
+#: admin/main.php:119
+msgid "Main Menu Alignment"
+msgstr ""
+
+#: admin/main.php:120
msgid "Rounded Menu Corners"
msgstr ""
-#: admin/main.php:130
+#: admin/main.php:121
msgid "FavIcon Upload"
msgstr ""
-#: admin/main.php:132
+#: admin/main.php:124 admin/settings.php:682
msgid "General Font"
msgstr ""
-#: admin/main.php:133
+#: admin/main.php:125
msgid "General Font Size"
msgstr ""
-#: admin/main.php:134
+#: admin/main.php:126
msgid "Post Title Font "
msgstr ""
-#: admin/main.php:135
+#: admin/main.php:127
msgid "Post Title Font Size"
msgstr ""
-#: admin/main.php:136
+#: admin/main.php:128
msgid "Sidebar Font"
msgstr ""
-#: admin/main.php:137
+#: admin/main.php:129
msgid "SideBar Font Size"
msgstr ""
-#: admin/main.php:138
+#: admin/main.php:130
msgid "Headings Font"
msgstr ""
-#: admin/main.php:139
+#: admin/main.php:131
msgid "Force Text Align"
msgstr ""
-#: admin/main.php:140
+#: admin/main.php:132
msgid "Paragraph spacing"
msgstr ""
-#: admin/main.php:141
+#: admin/main.php:133
msgid "Paragraph indent"
msgstr ""
-#: admin/main.php:142
+#: admin/main.php:134
msgid "Header indent"
msgstr ""
-#: admin/main.php:143
+#: admin/main.php:135
msgid "Line Height"
msgstr ""
-#: admin/main.php:144
+#: admin/main.php:136
msgid "Word spacing"
msgstr ""
-#: admin/main.php:145
+#: admin/main.php:137
msgid "Letter spacing"
msgstr ""
-#: admin/main.php:146
-msgid "Text shadow"
-msgstr ""
-
-#: admin/main.php:148
+#: admin/main.php:140
msgid "Background Image"
msgstr ""
-#: admin/main.php:149
+#: admin/main.php:141
msgid "Background Color"
msgstr ""
-#: admin/main.php:150
+#: admin/main.php:142
msgid "Header (Banner and Menu) Background Color"
msgstr ""
-#: admin/main.php:151
+#: admin/main.php:143
msgid "Content Background Color"
msgstr ""
-#: admin/main.php:152
+#: admin/main.php:144
msgid "Menu Items Background Color"
msgstr ""
-#: admin/main.php:153
+#: admin/main.php:145
msgid "First Sidebar Background Color"
msgstr ""
-#: admin/main.php:154
+#: admin/main.php:146
msgid "Second Sidebar Background Color"
msgstr ""
-#: admin/main.php:156
+#: admin/main.php:147
msgid "Site Title Color"
msgstr ""
-#: admin/main.php:157
+#: admin/main.php:148
msgid "Site Description Color"
msgstr ""
-#: admin/main.php:159
+#: admin/main.php:149
msgid "Content Text Color"
msgstr ""
-#: admin/main.php:160
+#: admin/main.php:150
msgid "Links Color"
msgstr ""
-#: admin/main.php:161
+#: admin/main.php:151
msgid "Links Hover Color"
msgstr ""
-#: admin/main.php:162
+#: admin/main.php:152
msgid "Post Title Color"
msgstr ""
-#: admin/main.php:163
+#: admin/main.php:153
msgid "Post Title Hover Color"
msgstr ""
-#: admin/main.php:164
+#: admin/main.php:154
msgid "Sidebar Header Background Color"
msgstr ""
-#: admin/main.php:165
+#: admin/main.php:155
msgid "Sidebar Header Text Color"
msgstr ""
-#: admin/main.php:166
+#: admin/main.php:156
msgid "Footer Widget Background Color"
msgstr ""
-#: admin/main.php:167
+#: admin/main.php:157
msgid "Footer Background Color"
msgstr ""
-#: admin/main.php:168
+#: admin/main.php:158
msgid "Footer Widget Header Text Color"
msgstr ""
-#: admin/main.php:169
+#: admin/main.php:159
msgid "Footer Widget Link Color"
msgstr ""
-#: admin/main.php:170
+#: admin/main.php:160
msgid "Footer Widget Hover Color"
msgstr ""
-#: admin/main.php:172
+#: admin/main.php:163
msgid "Breadcrumbs"
msgstr ""
-#: admin/main.php:173
+#: admin/main.php:164
msgid "Pagination"
msgstr ""
-#: admin/main.php:174
-msgid "Main Menu Alignment"
-msgstr ""
-
-#: admin/main.php:175
+#: admin/main.php:165
msgid "Post Images Border"
msgstr ""
-#: admin/main.php:176
+#: admin/main.php:166
msgid "Caption Border"
msgstr ""
-#: admin/main.php:177
+#: admin/main.php:167
msgid "Caption Pin"
msgstr ""
-#: admin/main.php:178
+#: admin/main.php:168
msgid "Sidebar Menu Bullets"
msgstr ""
-#: admin/main.php:179
+#: admin/main.php:169
msgid "Meta Area Background"
msgstr ""
-#: admin/main.php:180
+#: admin/main.php:170
msgid "Post Separator"
msgstr ""
-#: admin/main.php:181
+#: admin/main.php:171
msgid "Content List Bullets"
msgstr ""
-#: admin/main.php:182
+#: admin/main.php:172
msgid "Page Titles"
msgstr ""
-#: admin/main.php:183
+#: admin/main.php:173
msgid "Category Page Titles"
msgstr ""
-#: admin/main.php:184
+#: admin/main.php:174
msgid "Hide Tables"
msgstr ""
-#: admin/main.php:185
+#: admin/main.php:175
msgid "Back to Top button"
msgstr ""
-#: admin/main.php:186
+#: admin/main.php:176
msgid "Text Under Comments"
msgstr ""
-#: admin/main.php:187
+#: admin/main.php:177
msgid "Comments are closed text"
msgstr ""
-#: admin/main.php:188
+#: admin/main.php:178
msgid "Comments off"
msgstr ""
-#: admin/main.php:190
+#: admin/main.php:181
msgid "Post Comments Link"
msgstr ""
-#: admin/main.php:191
+#: admin/main.php:182
msgid "Post Date"
msgstr ""
-#: admin/main.php:192
+#: admin/main.php:183
msgid "Post Time"
msgstr ""
-#: admin/main.php:193
+#: admin/main.php:184
msgid "Post Author"
msgstr ""
-#: admin/main.php:194
+#: admin/main.php:185
msgid "Post Category"
msgstr ""
-#: admin/main.php:195
+#: admin/main.php:186
msgid "Meta Bar"
msgstr ""
-#: admin/main.php:196
+#: admin/main.php:187
msgid "Post Tags"
msgstr ""
-#: admin/main.php:197
+#: admin/main.php:188
msgid "Post Permalink"
msgstr ""
-#: admin/main.php:199
+#: admin/main.php:191
msgid "Post Excerpts on Home Page"
msgstr ""
-#: admin/main.php:200
+#: admin/main.php:192
msgid "Affect Sticky Posts"
msgstr ""
-#: admin/main.php:201
+#: admin/main.php:193
msgid "Post Excerpts on Archive and Category Pages"
msgstr ""
-#: admin/main.php:202
+#: admin/main.php:194
msgid "Number of Words for Post Excerpts "
msgstr ""
-#: admin/main.php:203
-msgid "Magazine Layout"
-msgstr ""
-
-#: admin/main.php:204
+#: admin/main.php:195
msgid "Excerpt suffix"
msgstr ""
-#: admin/main.php:205
+#: admin/main.php:196
msgid "Continue reading link text "
msgstr ""
-#: admin/main.php:206
+#: admin/main.php:197
msgid "HTML tags in Excerpts"
msgstr ""
-#: admin/main.php:208
+#: admin/main.php:200
msgid "Featured Images as POST Thumbnails "
msgstr ""
-#: admin/main.php:209
+#: admin/main.php:201
msgid "Auto Select Images From Posts "
msgstr ""
-#: admin/main.php:210
+#: admin/main.php:202
msgid "Thumbnails Alignment "
msgstr ""
-#: admin/main.php:211
+#: admin/main.php:203
msgid "Thumbnails Size "
msgstr ""
-#: admin/main.php:212
+#: admin/main.php:204
msgid "Featured Images as HEADER Images "
msgstr ""
-#: admin/main.php:214
+#: admin/main.php:207
msgid "Link nr. 1"
msgstr ""
-#: admin/main.php:215
+#: admin/main.php:208
msgid "Link nr. 2"
msgstr ""
-#: admin/main.php:216
+#: admin/main.php:209
msgid "Link nr. 3"
msgstr ""
-#: admin/main.php:217
+#: admin/main.php:210
msgid "Link nr. 4"
msgstr ""
-#: admin/main.php:218
+#: admin/main.php:211
msgid "Link nr. 5"
msgstr ""
-#: admin/main.php:219
+#: admin/main.php:212
msgid "Socials display"
msgstr ""
-#: admin/main.php:221
+#: admin/main.php:215
msgid "Custom Footer Text"
msgstr ""
-#: admin/main.php:222
+#: admin/main.php:216
msgid "Custom CSS"
msgstr ""
-#: admin/main.php:223
+#: admin/main.php:217
msgid "Custom JavaScript"
msgstr ""
-#: admin/main.php:240
+#: admin/main.php:234
msgid "Sorry, but you do not have sufficient permissions to access this page."
msgstr ""
-#: admin/main.php:261
+#: admin/main.php:255
msgid "Mantra settings updated successfully."
msgstr ""
-#: admin/main.php:309
+#: admin/main.php:312
msgid "Import/Export Settings"
msgstr ""
-#: admin/main.php:315
+#: admin/main.php:318
msgid "Export Theme options"
msgstr ""
-#: admin/main.php:320
+#: admin/main.php:322
msgid "Import Theme options"
msgstr ""
-#: admin/main.php:328
+#: admin/main.php:330
msgid "Mantra Latest News"
msgstr ""
-#: admin/main.php:340
+#: admin/main.php:342
msgid "No news items."
msgstr ""
-#: admin/main.php:344
+#: admin/main.php:346
msgid "Posted on"
msgstr ""
-#: admin/settings.php:26
+#: admin/settings.php:25
msgid "One column (no sidebars)"
msgstr ""
-#: admin/settings.php:27
+#: admin/settings.php:26
msgid "Two columns, sidebar on the right"
msgstr ""
-#: admin/settings.php:28
+#: admin/settings.php:27
msgid "Two columns, sidebar on the left"
msgstr ""
-#: admin/settings.php:29
+#: admin/settings.php:28
msgid "Three columns, sidebars on the right"
msgstr ""
-#: admin/settings.php:30
+#: admin/settings.php:29
msgid "Three columns, sidebars on the left"
msgstr ""
-#: admin/settings.php:31
+#: admin/settings.php:30
msgid "Three columns, one sidebar on each side"
msgstr ""
-#: admin/settings.php:45
+#: admin/settings.php:43
msgid ""
"Choose your layout. Possible options are: <br> No sidebar, a single sidebar "
"on either left of right, two sidebars on either left or\n"
"\t\tright and two sidebars on each side."
msgstr ""
-#: admin/settings.php:53
+#: admin/settings.php:50
msgid "Absolute"
msgstr ""
-#: admin/settings.php:53
-msgid "Relative *NO LONGER SUPPORTED"
-msgstr ""
-
-#: admin/settings.php:59
-msgid "Dimensions to use: "
+#: admin/settings.php:51
+msgid "Dimensions to use:"
msgstr ""
-#: admin/settings.php:141 admin/settings.php:161
+#: admin/settings.php:99
msgid "Content ="
msgstr ""
-#: admin/settings.php:142 admin/settings.php:162
+#: admin/settings.php:100
msgid "Sidebar(s) ="
msgstr ""
-#: admin/settings.php:143 admin/settings.php:163
+#: admin/settings.php:101
msgid "Total width ="
msgstr ""
-#: admin/settings.php:152
+#: admin/settings.php:108
msgid ""
"Select the width of your <b>content</b> and <b>sidebar(s)</b>.\n"
" \t\tWhile the content cannot be less than 500px wide, the sidebar area is "
@@ -835,41 +626,30 @@ msgid ""
"half the selected width."
msgstr ""
-#: admin/settings.php:172
-msgid ""
-"Select the width of your <b>content</b> and <b>sidebar(s)</b>.\n"
-" \t\tThese are realtive dimmensions - relative to the user's browser. The "
-"total width is a percentage of the browser's width.<br />\n"
-"\t While the content cannot be less than 40% wide, the sidebar area is at "
-"least 20% and no more than 50%.<br />\n"
-"\tIf you went for a 3 column area ( with 2 sidebars) they will each have "
-"half the selected width."
-msgstr ""
-
-#: admin/settings.php:186 admin/settings.php:213 admin/settings.php:232
-#: admin/settings.php:707 admin/settings.php:1070 admin/settings.php:1132
-#: admin/settings.php:1320 admin/settings.php:1335 admin/settings.php:1506
-#: admin/settings.php:1568 admin/settings.php:1769 admin/settings.php:1798
-#: admin/settings.php:1821 admin/settings.php:1844 admin/settings.php:1893
+#: admin/settings.php:121 admin/settings.php:145 admin/settings.php:163
+#: admin/settings.php:601 admin/settings.php:816 admin/settings.php:1027
+#: admin/settings.php:1041 admin/settings.php:1198 admin/settings.php:1255
+#: admin/settings.php:1440 admin/settings.php:1466 admin/settings.php:1487
+#: admin/settings.php:1506 admin/settings.php:1547
msgid "Enable"
msgstr ""
-#: admin/settings.php:186 admin/settings.php:213 admin/settings.php:232
-#: admin/settings.php:707 admin/settings.php:1070 admin/settings.php:1132
-#: admin/settings.php:1320 admin/settings.php:1335 admin/settings.php:1506
-#: admin/settings.php:1568 admin/settings.php:1769 admin/settings.php:1798
-#: admin/settings.php:1821 admin/settings.php:1844 admin/settings.php:1893
+#: admin/settings.php:121 admin/settings.php:145 admin/settings.php:163
+#: admin/settings.php:601 admin/settings.php:816 admin/settings.php:1027
+#: admin/settings.php:1041 admin/settings.php:1198 admin/settings.php:1255
+#: admin/settings.php:1440 admin/settings.php:1466 admin/settings.php:1487
+#: admin/settings.php:1506 admin/settings.php:1547
msgid "Disable"
msgstr ""
-#: admin/settings.php:199
+#: admin/settings.php:134
msgid ""
"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.<br> Do not disable unless you have a good reason to."
msgstr ""
-#: admin/settings.php:221
+#: admin/settings.php:153
msgid ""
"Enable the presentation front-page. This will become your new home page. It "
"has a slider and columns for presentation\n"
@@ -879,7 +659,7 @@ msgid ""
"strong> as <Strong>Your Latest Posts</strong>."
msgstr ""
-#: admin/settings.php:224
+#: admin/settings.php:156
#, php-format
msgid ""
"You have enabled the Presentation Page but your WordPress' <em>Front page "
@@ -889,903 +669,919 @@ msgid ""
"latest posts</strong></em> to display the presentation page."
msgstr ""
-#: admin/settings.php:241
+#: admin/settings.php:172
msgid "posts"
msgstr ""
-#: admin/settings.php:242
+#: admin/settings.php:173
msgid ""
"Enable to display latest posts on the presentation page, below the columns. "
"Sticky posts are always displayed and not counted."
msgstr ""
-#: admin/settings.php:250
+#: admin/settings.php:180
msgid "Slider Dimensions:"
msgstr ""
-#: admin/settings.php:251
+#: admin/settings.php:181
msgid "width"
msgstr ""
-#: admin/settings.php:252
+#: admin/settings.php:182
msgid "height"
msgstr ""
-#: admin/settings.php:253
+#: admin/settings.php:183
msgid ""
"The dimensions of your slider. Make sure your images are of the same size."
msgstr ""
-#: admin/settings.php:255
+#: admin/settings.php:185
msgid "Animation:"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "Random"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "Fold"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "Fade"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "SlideInRight"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "SlideInLeft"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "SliceDown"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "SliceDownLeft"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "SliceUp"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "SliceUpLeft"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "SliceUpDown"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "SliceUpDownLeft"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "BoxRandom"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "BoxRain"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "BoxRainReverse"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "BoxRainGrow"
msgstr ""
-#: admin/settings.php:257
+#: admin/settings.php:187
msgid "BoxRainGrowReverse"
msgstr ""
-#: admin/settings.php:265
+#: admin/settings.php:195
msgid "The transition effect your slider will have."
msgstr ""
-#: admin/settings.php:267
+#: admin/settings.php:197
msgid "Border Settings:"
msgstr ""
-#: admin/settings.php:268
+#: admin/settings.php:198
msgid "Width"
msgstr ""
-#: admin/settings.php:269
+#: admin/settings.php:199
msgid "Color"
msgstr ""
-#: admin/settings.php:271
+#: admin/settings.php:201
msgid "The width and color of the slider's border."
msgstr ""
-#: admin/settings.php:273
+#: admin/settings.php:203
msgid "Animation Time:"
msgstr ""
-#: admin/settings.php:274 admin/settings.php:278
+#: admin/settings.php:204 admin/settings.php:208
msgid "milliseconds"
msgstr ""
-#: admin/settings.php:275
+#: admin/settings.php:205
msgid "The time in which the transition animation will take place."
msgstr ""
-#: admin/settings.php:277
+#: admin/settings.php:207
msgid "Pause Time:"
msgstr ""
-#: admin/settings.php:279
+#: admin/settings.php:209
msgid "The time in which a slide will be still and visible."
msgstr ""
-#: admin/settings.php:282
+#: admin/settings.php:212
msgid "Slider navigation:"
msgstr ""
-#: admin/settings.php:284
+#: admin/settings.php:214
msgid "Numbers"
msgstr ""
-#: admin/settings.php:284
+#: admin/settings.php:214
msgid "Bullets"
msgstr ""
-#: admin/settings.php:284 admin/settings.php:1427
+#: admin/settings.php:214 admin/settings.php:1125
msgid "None"
msgstr ""
-#: admin/settings.php:292
+#: admin/settings.php:222
msgid "Your slider navigation type. Shown under the slider."
msgstr ""
-#: admin/settings.php:294
+#: admin/settings.php:224
msgid "Slider arrows:"
msgstr ""
-#: admin/settings.php:296
+#: admin/settings.php:226
msgid "Always Visible"
msgstr ""
-#: admin/settings.php:296
+#: admin/settings.php:226
msgid "Visible on Hover"
msgstr ""
-#: admin/settings.php:296
+#: admin/settings.php:226
msgid "Hidden"
msgstr ""
-#: admin/settings.php:304
+#: admin/settings.php:234
msgid "The Left and Right arrows on your slider"
msgstr ""
-#: admin/settings.php:345 admin/settings.php:419
-msgid "Select Category"
-msgstr ""
-
-#: admin/settings.php:372
+#: admin/settings.php:273
msgid "Slider Shortcode"
msgstr ""
-#: admin/settings.php:372
+#: admin/settings.php:273
msgid "Custom Slides"
msgstr ""
-#: admin/settings.php:372
+#: admin/settings.php:273
msgid "Latest Posts"
msgstr ""
-#: admin/settings.php:372
+#: admin/settings.php:273
msgid "Random Posts"
msgstr ""
-#: admin/settings.php:372
+#: admin/settings.php:273
msgid "Sticky Posts"
msgstr ""
-#: admin/settings.php:372
+#: admin/settings.php:273
msgid "Latest Posts from Category"
msgstr ""
-#: admin/settings.php:372
+#: admin/settings.php:273
msgid "Random Posts from Category"
msgstr ""
-#: admin/settings.php:372
+#: admin/settings.php:273
msgid "Specific Posts"
msgstr ""
-#: admin/settings.php:373
+#: admin/settings.php:274
msgid "Select the content you want to load in your slides:"
msgstr ""
-#: admin/settings.php:381
+#: admin/settings.php:282
msgid ""
"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."
msgstr ""
-#: admin/settings.php:386
+#: admin/settings.php:287
msgid "Enter the desired slider plugin shortcode below:"
msgstr ""
-#: admin/settings.php:391
+#: admin/settings.php:292
msgid "Latest posts will be loaded into the slider."
msgstr ""
-#: admin/settings.php:395
+#: admin/settings.php:296
msgid "Random posts will be loaded into the slider."
msgstr ""
-#: admin/settings.php:399
+#: admin/settings.php:300
msgid "Latest posts from the category you choose will be loaded in the slider."
msgstr ""
-#: admin/settings.php:404
+#: admin/settings.php:305
msgid ""
"Random posts from the category you choose will be loaded into the slider."
msgstr ""
-#: admin/settings.php:408
+#: admin/settings.php:309
msgid "Only sticky posts will be loaded into the slider."
msgstr ""
-#: admin/settings.php:412
+#: admin/settings.php:313
msgid "List the post IDs you want to display (separated by a comma): "
msgstr ""
-#: admin/settings.php:417
+#: admin/settings.php:318
msgid "<br> Choose the cateogry: "
msgstr ""
-#: admin/settings.php:434
+#: admin/settings.php:320
+msgid "Select Category"
+msgstr ""
+
+#: admin/settings.php:335
msgid "Number of posts to show:"
msgstr ""
-#: admin/settings.php:440
+#: admin/settings.php:341
msgid "Custom slides are limited to a maximum of 5."
msgstr ""
-#: admin/settings.php:442
+#: admin/settings.php:343
msgid "Slide 1"
msgstr ""
-#: admin/settings.php:446 admin/settings.php:461 admin/settings.php:476
-#: admin/settings.php:491 admin/settings.php:506 admin/settings.php:548
-#: admin/settings.php:563 admin/settings.php:578 admin/settings.php:593
-#: admin/settings.php:742 admin/settings.php:765
+#: admin/settings.php:345 admin/settings.php:360 admin/settings.php:375
+#: admin/settings.php:390 admin/settings.php:405 admin/settings.php:444
+#: admin/settings.php:459 admin/settings.php:474 admin/settings.php:489
+#: content/content-image.php:17
+msgid "Image"
+msgstr ""
+
+#: admin/settings.php:347 admin/settings.php:362 admin/settings.php:377
+#: admin/settings.php:392 admin/settings.php:407 admin/settings.php:446
+#: admin/settings.php:461 admin/settings.php:476 admin/settings.php:491
+#: admin/settings.php:632 admin/settings.php:651
msgid "Select / Upload Image"
msgstr ""
-#: admin/settings.php:447 admin/settings.php:462 admin/settings.php:477
-#: admin/settings.php:492 admin/settings.php:507 admin/settings.php:549
-#: admin/settings.php:564 admin/settings.php:594
+#: admin/settings.php:348 admin/settings.php:363 admin/settings.php:378
+#: admin/settings.php:393 admin/settings.php:408 admin/settings.php:447
+#: admin/settings.php:462 admin/settings.php:477 admin/settings.php:492
msgid "Title"
msgstr ""
-#: admin/settings.php:449 admin/settings.php:464 admin/settings.php:479
-#: admin/settings.php:494 admin/settings.php:509 admin/settings.php:551
-#: admin/settings.php:566 admin/settings.php:581 admin/settings.php:596
+#: admin/settings.php:350 admin/settings.php:365 admin/settings.php:380
+#: admin/settings.php:395 admin/settings.php:410 admin/settings.php:449
+#: admin/settings.php:464 admin/settings.php:479 admin/settings.php:494
msgid "Text"
msgstr ""
-#: admin/settings.php:457
+#: admin/settings.php:352 admin/settings.php:367 admin/settings.php:382
+#: admin/settings.php:397 admin/settings.php:412 admin/settings.php:451
+#: admin/settings.php:466 admin/settings.php:481 admin/settings.php:496
+#: content/content-link.php:18
+msgid "Link"
+msgstr ""
+
+#: admin/settings.php:358
msgid "Slide 2"
msgstr ""
-#: admin/settings.php:472
+#: admin/settings.php:373
msgid "Slide 3"
msgstr ""
-#: admin/settings.php:487
+#: admin/settings.php:388
msgid "Slide 4"
msgstr ""
-#: admin/settings.php:502
+#: admin/settings.php:403
msgid "Slide 5"
msgstr ""
-#: admin/settings.php:524
+#: admin/settings.php:424
msgid "Number of columns:"
msgstr ""
-#: admin/settings.php:534
+#: admin/settings.php:434
msgid "Image Height:"
msgstr ""
-#: admin/settings.php:537
+#: admin/settings.php:437
msgid "Read more text:"
msgstr ""
-#: admin/settings.php:540
+#: admin/settings.php:439
msgid ""
"The linked text that appears at the bottom of all the columns. You can "
"delete all text inside if you don't want it."
msgstr ""
-#: admin/settings.php:544
+#: admin/settings.php:442
msgid "1st Column"
msgstr ""
-#: admin/settings.php:559
+#: admin/settings.php:457
msgid "2nd Column"
msgstr ""
-#: admin/settings.php:574
+#: admin/settings.php:472
msgid "3rd Column"
msgstr ""
-#: admin/settings.php:589
+#: admin/settings.php:487
msgid "4th Column"
msgstr ""
-#: admin/settings.php:611
+#: admin/settings.php:508
msgid "Extra Text"
msgstr ""
-#: admin/settings.php:613
+#: admin/settings.php:511
+msgid "Text for the Presentation Page"
+msgstr ""
+
+#: admin/settings.php:512
msgid ""
"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.\n"
-"\t\t It's all optional so leave any input field empty if it's not required. "
+"columns.<br>It's all optional so leave any input field empty if it's not "
+"required."
msgstr ""
-#: admin/settings.php:616
+#: admin/settings.php:514
msgid "Top Title"
msgstr ""
-#: admin/settings.php:617
+#: admin/settings.php:516
msgid "Second Title"
msgstr ""
-#: admin/settings.php:620
+#: admin/settings.php:518
msgid "Title color"
msgstr ""
-#: admin/settings.php:624
+#: admin/settings.php:522
msgid "Bottom Text 1"
msgstr ""
-#: admin/settings.php:626
+#: admin/settings.php:524
msgid "Bottom Text 2"
msgstr ""
-#: admin/settings.php:634
+#: admin/settings.php:530
msgid "Hide areas"
msgstr ""
-#: admin/settings.php:636
+#: admin/settings.php:532
msgid "Choose the areas to hide on the first page."
msgstr ""
-#: admin/settings.php:648
+#: admin/settings.php:544
msgid "Hide the header area (image or background color)."
msgstr ""
-#: admin/settings.php:652
+#: admin/settings.php:548
msgid "Hide the main menu (the top navigation tabs)."
msgstr ""
-#: admin/settings.php:656
+#: admin/settings.php:552
msgid "Hide the footer widgets. "
msgstr ""
-#: admin/settings.php:660
+#: admin/settings.php:556
msgid "Hide the footer (copyright area)."
msgstr ""
-#: admin/settings.php:664
+#: admin/settings.php:560
msgid "Hide the white color. Only the background color remains."
msgstr ""
-#: admin/settings.php:684
+#: admin/settings.php:578
+#, php-format
msgid ""
-"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 = "
+"Select the header's height. After saving the settings make sure you re-"
+"upload a new header image (if you're using one). The header's width will be "
+"%s px."
msgstr ""
-#: admin/settings.php:691
+#: admin/settings.php:587
msgid "Define header image"
msgstr ""
-#: admin/settings.php:692
+#: admin/settings.php:588
msgid ""
"The header image should not be used to display logos.<br> Enable ratio "
"preservation to force the header image aspect ratio. Keep in mind that short "
"images will become very small on mobile devices."
msgstr ""
-#: admin/settings.php:715
+#: admin/settings.php:609
msgid "Enable or disable the round corners for the main menu items."
msgstr ""
-#: admin/settings.php:723
+#: admin/settings.php:615
msgid "Site Title and Description"
msgstr ""
-#: admin/settings.php:723
+#: admin/settings.php:615
msgid "Custom Logo"
msgstr ""
-#: admin/settings.php:723
+#: admin/settings.php:615
msgid "Clickable header image"
msgstr ""
-#: admin/settings.php:723
+#: admin/settings.php:615
msgid "Empty"
msgstr ""
-#: admin/settings.php:731
+#: admin/settings.php:623
msgid "Choose what to display inside your header area."
msgstr ""
-#: admin/settings.php:741
+#: admin/settings.php:631
msgid ""
"Custom Logo upload. The logo will appear over the heder image if you have "
"used one."
msgstr ""
-#: admin/settings.php:750
+#: admin/settings.php:639
msgid "top"
msgstr ""
-#: admin/settings.php:751
+#: admin/settings.php:640
msgid "left"
msgstr ""
-#: admin/settings.php:754
+#: admin/settings.php:641
msgid ""
"Select the top spacing for the header. Use it to better position your site "
"title and description or custom logo inside the header. "
msgstr ""
-#: admin/settings.php:764
+#: admin/settings.php:650
msgid ""
"Limitations: It has to be an image. It should be max 64x64 pixels in "
"dimensions. Recommended file extensions .ico and .png. <br/><b>Note that "
"some browsers do not display the changed favicon instantly.</b>"
msgstr ""
-#: admin/settings.php:787
+#: admin/settings.php:671
msgid ""
"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."
msgstr ""
-#: admin/settings.php:831
+#: admin/settings.php:712
msgid ""
"Select the font family you'll use in your blog. All content text will be "
"affected (including menu buttons). "
msgstr ""
-#: admin/settings.php:833 admin/settings.php:883 admin/settings.php:934
-#: admin/settings.php:986
+#: admin/settings.php:714 admin/settings.php:724 admin/settings.php:733
+#: admin/settings.php:742
msgid ""
-"Or insert your Google Font below. Please only isert the <strong>name</"
-"strong> of the font.<br /> Ex: Marko One. Go to <a href='http://www.google."
-"com/webfonts' > google fonts </a> for some font inspiration."
+"Or insert your Google Font identifier. <br /> Ex: Marko One. Go to <a "
+"href='http://www.google.com/webfonts' > Google fonts </a> for some font "
+"inspiration."
msgstr ""
-#: admin/settings.php:880
+#: admin/settings.php:721
msgid ""
"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."
msgstr ""
-#: admin/settings.php:932
+#: admin/settings.php:731
msgid ""
"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."
msgstr ""
-#: admin/settings.php:983
+#: admin/settings.php:740
msgid ""
"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."
msgstr ""
-#: admin/settings.php:995 admin/settings.php:1010 admin/settings.php:1025
-#: admin/settings.php:1085 admin/settings.php:1100 admin/settings.php:1115
+#: admin/settings.php:748 admin/settings.php:762 admin/settings.php:776
+#: admin/settings.php:830 admin/settings.php:844 admin/settings.php:858
msgid "Default"
msgstr ""
-#: admin/settings.php:1003
+#: admin/settings.php:756
msgid ""
"Post Header Font size. Leave 'Default' for normal settings (size value will "
"be as set in the CSS)."
msgstr ""
-#: admin/settings.php:1018
+#: admin/settings.php:770
msgid ""
"Sidebar Font size. Leave 'Default' for normal settings (size value will be "
"as set in the CSS)."
msgstr ""
-#: admin/settings.php:1025 admin/settings.php:1349 admin/settings.php:1860
+#: admin/settings.php:776 admin/settings.php:1055 admin/settings.php:1520
msgid "Left"
msgstr ""
-#: admin/settings.php:1025 admin/settings.php:1349 admin/settings.php:1860
+#: admin/settings.php:776 admin/settings.php:1055 admin/settings.php:1520
msgid "Right"
msgstr ""
-#: admin/settings.php:1025
+#: admin/settings.php:776
msgid "Justify"
msgstr ""
-#: admin/settings.php:1025 admin/settings.php:1349 admin/settings.php:1860
+#: admin/settings.php:776 admin/settings.php:1055 admin/settings.php:1520
msgid "Center"
msgstr ""
-#: admin/settings.php:1033
+#: admin/settings.php:784
msgid ""
"This overwrites the text alignment in posts and pages. Leave 'Default' for "
"normal settings (alignment will remain as declared in posts, comments etc.)."
msgstr ""
-#: admin/settings.php:1047
+#: admin/settings.php:797
msgid "Choose the spacing between paragraphs."
msgstr ""
-#: admin/settings.php:1062
+#: admin/settings.php:810
msgid "Choose the indent for your paragraphs."
msgstr ""
-#: admin/settings.php:1078
+#: admin/settings.php:824
msgid "Disable the default header and title indent (left margin)."
msgstr ""
-#: admin/settings.php:1093
+#: admin/settings.php:838
msgid ""
"Text line height. The height between 2 rows of text. Leave 'Default' for "
"normal settings (size value will be as set in the CSS)."
msgstr ""
-#: admin/settings.php:1108
+#: admin/settings.php:852
msgid ""
"The space between <i>words</i>. Leave 'Default' for normal settings (size "
"value will be as set in the CSS)."
msgstr ""
-#: admin/settings.php:1123
+#: admin/settings.php:866
msgid ""
"The space between <i>letters</i>. Leave 'Default' for normal settings (size "
"value will be as set in the CSS)."
msgstr ""
-#: admin/settings.php:1140
-msgid "Disable the default text shadow on headers and titles."
-msgstr ""
-
-#: admin/settings.php:1148
+#: admin/settings.php:875
msgid "Define background image"
msgstr ""
-#: admin/settings.php:1157
+#: admin/settings.php:882
msgid "Background color (Default value is 444444)."
msgstr ""
-#: admin/settings.php:1165
+#: admin/settings.php:889
msgid ""
"Header background color (Default value is 333333). You can delete all inside "
"text for no background color."
msgstr ""
-#: admin/settings.php:1172
+#: admin/settings.php:896
msgid ""
"Content background color (Default value is FFFFFF). Works best with really "
"light colors."
msgstr ""
-#: admin/settings.php:1179
+#: admin/settings.php:903
msgid ""
"Main menu background color (Default value is FAFAFA). Should be the same "
"color as the content bg or something just as light."
msgstr ""
-#: admin/settings.php:1186
+#: admin/settings.php:910
msgid ""
"First sidebar background color (Default is no color for a transparent "
"sidebar)."
msgstr ""
-#: admin/settings.php:1193
+#: admin/settings.php:917
msgid ""
"Second sidebar background color (Default is no color for a transparent "
"sidebar)."
msgstr ""
-#: admin/settings.php:1201
+#: admin/settings.php:924
msgid "Footer widget-area background color. (Default value is 171717)."
msgstr ""
-#: admin/settings.php:1209
+#: admin/settings.php:931
msgid "Footer background color (Default value is 222222)."
msgstr ""
-#: admin/settings.php:1217
+#: admin/settings.php:938
msgid "Your blog's title color (Default value is 0D85CC)."
msgstr ""
-#: admin/settings.php:1225
+#: admin/settings.php:945
msgid "Your blog's description color(Default value is 222222)."
msgstr ""
-#: admin/settings.php:1233
+#: admin/settings.php:952
msgid "Content Text Color (Default value is 333333)."
msgstr ""
-#: admin/settings.php:1241
+#: admin/settings.php:959
msgid "Links color (Default value is 0D85CC)."
msgstr ""
-#: admin/settings.php:1249
+#: admin/settings.php:966
msgid "Links color on mouse over (Default value is 333333)."
msgstr ""
-#: admin/settings.php:1257
+#: admin/settings.php:973
msgid "Post Header Text Color (Default value is 333333)."
msgstr ""
-#: admin/settings.php:1265
+#: admin/settings.php:980
msgid "Post Header Text Color on Mouse over (Default value is 000000)."
msgstr ""
-#: admin/settings.php:1273
+#: admin/settings.php:987
msgid "Sidebar Header Background color (Default value is 444444)."
msgstr ""
-#: admin/settings.php:1282
+#: admin/settings.php:995
msgid "Sidebar Header Text Color(Default value is 2EA5FD)."
msgstr ""
-#: admin/settings.php:1290
+#: admin/settings.php:1002
msgid "Footer Widget Text Color (Default value is 0D85CC)."
msgstr ""
-#: admin/settings.php:1298
+#: admin/settings.php:1009
msgid "Footer Widget Link Color (Default value is 666666)."
msgstr ""
-#: admin/settings.php:1306
+#: admin/settings.php:1016
msgid "Footer Widget Link Color on Mouse Over (Default value is 888888)."
msgstr ""
-#: admin/settings.php:1328
+#: admin/settings.php:1035
msgid ""
"Show breadcrumbs at the top of the content area. Breadcrumbs are a form of "
"navigation that keeps track of your location withtin the site."
msgstr ""
-#: admin/settings.php:1343
+#: admin/settings.php:1049
msgid ""
"Show numbered pagination. Where there is more than one page, instead of the "
"bottom <b>Older Posts</b> and <b>Newer posts</b> links you have a numbered "
"pagination. "
msgstr ""
-#: admin/settings.php:1357
+#: admin/settings.php:1063
msgid ""
"Select the desired main menu items alignment. Center option is only valid "
"for single line menus."
msgstr ""
-#: admin/settings.php:1364 admin/settings.php:1427
+#: admin/settings.php:1069 admin/settings.php:1125
msgid "White"
msgstr ""
-#: admin/settings.php:1364
+#: admin/settings.php:1069
msgid "Light"
msgstr ""
-#: admin/settings.php:1364
+#: admin/settings.php:1069
msgid "Light Gray"
msgstr ""
-#: admin/settings.php:1364 admin/settings.php:1427
+#: admin/settings.php:1069 admin/settings.php:1125
msgid "Gray"
msgstr ""
-#: admin/settings.php:1364
+#: admin/settings.php:1069
msgid "Dark Gray"
msgstr ""
-#: admin/settings.php:1364
+#: admin/settings.php:1069
msgid "Black"
msgstr ""
-#: admin/settings.php:1372
+#: admin/settings.php:1077
msgid ""
"This setting changes the look of your captions. Images that are not inserted "
"through captions will not be affected."
msgstr ""
-#: admin/settings.php:1388
+#: admin/settings.php:1089
msgid "The border around your inserted images. "
msgstr ""
-#: admin/settings.php:1403
+#: admin/settings.php:1103
msgid "The image on top of your captions. "
msgstr ""
-#: admin/settings.php:1418
+#: admin/settings.php:1117
msgid "The sidebar list bullets. "
msgstr ""
-#: admin/settings.php:1435
+#: admin/settings.php:1133
msgid ""
"The background for your post-metas area (under your post tiltes). Gray by "
"default."
msgstr ""
-#: admin/settings.php:1443 admin/settings.php:1459 admin/settings.php:1476
-#: admin/settings.php:1491 admin/settings.php:1521 admin/settings.php:1536
-#: admin/settings.php:1552 admin/settings.php:1588 admin/settings.php:1603
-#: admin/settings.php:1618 admin/settings.php:1633 admin/settings.php:1648
-#: admin/settings.php:1663 admin/settings.php:1678 admin/settings.php:1693
+#: admin/settings.php:1140 admin/settings.php:1155 admin/settings.php:1170
+#: admin/settings.php:1184 admin/settings.php:1212 admin/settings.php:1226
+#: admin/settings.php:1241 admin/settings.php:1274 admin/settings.php:1288
+#: admin/settings.php:1302 admin/settings.php:1316 admin/settings.php:1330
+#: admin/settings.php:1344 admin/settings.php:1358 admin/settings.php:1372
msgid "Show"
msgstr ""
-#: admin/settings.php:1443 admin/settings.php:1459 admin/settings.php:1476
-#: admin/settings.php:1491 admin/settings.php:1521 admin/settings.php:1552
-#: admin/settings.php:1588 admin/settings.php:1603 admin/settings.php:1618
-#: admin/settings.php:1633 admin/settings.php:1648 admin/settings.php:1663
-#: admin/settings.php:1678 admin/settings.php:1693
+#: admin/settings.php:1140 admin/settings.php:1155 admin/settings.php:1170
+#: admin/settings.php:1184 admin/settings.php:1212 admin/settings.php:1241
+#: admin/settings.php:1274 admin/settings.php:1288 admin/settings.php:1302
+#: admin/settings.php:1316 admin/settings.php:1330 admin/settings.php:1344
+#: admin/settings.php:1358 admin/settings.php:1372
msgid "Hide"
msgstr ""
-#: admin/settings.php:1451
+#: admin/settings.php:1148
msgid "Hide or show a horizontal rule to separate posts."
msgstr ""
-#: admin/settings.php:1467
+#: admin/settings.php:1163
msgid ""
"Hide or show bullets next to lists that are in your content area (posts, "
"pages etc.)."
msgstr ""
-#: admin/settings.php:1484
+#: admin/settings.php:1178
msgid "Hide or show Page titles on any <i>created</i> pages. "
msgstr ""
-#: admin/settings.php:1499
+#: admin/settings.php:1192
msgid "Hide or show Page titles on <i>Category</i> Pages. "
msgstr ""
-#: admin/settings.php:1514
+#: admin/settings.php:1206
msgid "Hide table borders and background color."
msgstr ""
-#: admin/settings.php:1529
+#: admin/settings.php:1220
msgid ""
"Hide the explanatory text under the comments form. (starts with <i>You may "
"use these HTML tags and attributes:...</i>)."
msgstr ""
-#: admin/settings.php:1536
+#: admin/settings.php:1226
msgid "Hide in posts"
msgstr ""
-#: admin/settings.php:1536
+#: admin/settings.php:1226
msgid "Hide in pages"
msgstr ""
-#: admin/settings.php:1536
+#: admin/settings.php:1226
msgid "Hide everywhere"
msgstr ""
-#: admin/settings.php:1544
+#: admin/settings.php:1234
msgid ""
"Hide the <b>Comments are closed</b> text that by default shows up on pages "
"or posts with the comments disabled."
msgstr ""
-#: admin/settings.php:1560
+#: admin/settings.php:1249
msgid ""
"Hide the <b>Comments off</b> text next to posts that have comments disabled."
msgstr ""
-#: admin/settings.php:1576
+#: admin/settings.php:1263
msgid ""
"Enable the Back to Top button. The button appears after scrolling the page "
"down."
msgstr ""
-#: admin/settings.php:1596
+#: admin/settings.php:1282
msgid ""
"Hide or show the <strong>Leave a comment</strong> or <strong>x Comments</"
"strong> next to posts or post excerpts."
msgstr ""
-#: admin/settings.php:1611
+#: admin/settings.php:1296
msgid "Hide or show the post date."
msgstr ""
-#: admin/settings.php:1626
+#: admin/settings.php:1310
msgid ""
"Show the post time with the date. Time will not be visible if the Post Date "
"is hidden."
msgstr ""
-#: admin/settings.php:1641
+#: admin/settings.php:1324
msgid "Hide or show the post author."
msgstr ""
-#: admin/settings.php:1656
+#: admin/settings.php:1338
msgid "Hide the post category."
msgstr ""
-#: admin/settings.php:1671
+#: admin/settings.php:1352
msgid "Hide the 'Bookmark permalink'."
msgstr ""
-#: admin/settings.php:1686
+#: admin/settings.php:1366
msgid "Hide the meta bar. All meta info in it will be hidden."
msgstr ""
-#: admin/settings.php:1701
+#: admin/settings.php:1380
msgid "Hide the post tags."
msgstr ""
-#: admin/settings.php:1714 admin/settings.php:1729 admin/settings.php:1745
+#: admin/settings.php:1391 admin/settings.php:1405 admin/settings.php:1419
msgid "Excerpt"
msgstr ""
-#: admin/settings.php:1714 admin/settings.php:1729 admin/settings.php:1745
+#: admin/settings.php:1391 admin/settings.php:1405 admin/settings.php:1419
msgid "Full Post"
msgstr ""
-#: admin/settings.php:1722
+#: admin/settings.php:1399
msgid ""
"Excerpts on the main page. Only standard posts will be affected. All other "
"post formats (aside, image, chat, quote etc.) have their specific formating."
msgstr ""
-#: admin/settings.php:1737
+#: admin/settings.php:1413
msgid ""
"Choose if you want the sticky posts on your home page to be visible in full "
"or just the excerpts. "
msgstr ""
-#: admin/settings.php:1753
+#: admin/settings.php:1427
msgid ""
"Excerpts on archive, categroy and search pages. Same as above, only standard "
"posts will be affected."
msgstr ""
-#: admin/settings.php:1761
+#: admin/settings.php:1433
msgid ""
"The number of words an excerpt will have. When that number is reached the "
"post will be interrupted by a <i>Continue reading</i> link that\n"
"\t\t\t\t\t\t\twill take the reader to the full post page."
msgstr ""
-#: admin/settings.php:1777
+#: admin/settings.php:1448
msgid ""
"Enable the Magazine Layout. This layout applies to pages with posts and "
"shows 2 posts per row."
msgstr ""
-#: admin/settings.php:1784
+#: admin/settings.php:1454
msgid ""
"Replaces the three dots ('[...])' that are appended automatically to "
"excerpts."
msgstr ""
-#: admin/settings.php:1791
+#: admin/settings.php:1460
msgid "Edit the 'Continue Reading' link added to your post excerpts."
msgstr ""
-#: admin/settings.php:1806
+#: admin/settings.php:1474
#, php-format
msgid ""
"By default WordPress excerpts remove all HTML tags (%s and all others) and "
@@ -1798,31 +1594,31 @@ msgid ""
"contained in that HTML tag. -- Leave 'Disable' if unsure -- </small></div>"
msgstr ""
-#: admin/settings.php:1837
+#: admin/settings.php:1500
msgid ""
"Show featured images as thumbnails on posts. The images must be selected for "
"each post in the Featured Image section."
msgstr ""
-#: admin/settings.php:1852
+#: admin/settings.php:1514
msgid ""
"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."
msgstr ""
-#: admin/settings.php:1868
+#: admin/settings.php:1528
msgid "Thumbnail alignment."
msgstr ""
-#: admin/settings.php:1885
+#: admin/settings.php:1541
msgid ""
"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."
msgstr ""
-#: admin/settings.php:1901
+#: admin/settings.php:1555
msgid ""
"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\n"
@@ -1830,40 +1626,40 @@ msgid ""
"size."
msgstr ""
-#: admin/settings.php:1917
+#: admin/settings.php:1570
msgid ""
"Select your desired Social network from the left dropdown menu and insert "
"your corresponding address in the right input field. (ex: <i>http://www."
"facebook.com/yourname</i> )"
msgstr ""
-#: admin/settings.php:1918
+#: admin/settings.php:1571
msgid "You can insert up to 5 different social sites and addresses."
msgstr ""
-#: admin/settings.php:1919
+#: admin/settings.php:1572
msgid "There are a total of 27 social networks to choose from. "
msgstr ""
-#: admin/settings.php:1920
+#: admin/settings.php:1573
msgid "You can leave any number of inputs empty. "
msgstr ""
-#: admin/settings.php:1921
+#: admin/settings.php:1574
msgid "You can choose the same social media any number of times. "
msgstr ""
-#: admin/settings.php:1996
+#: admin/settings.php:1641
msgid "Choose the <b>areas</b> where to display the social icons."
msgstr ""
-#: admin/settings.php:2009
+#: admin/settings.php:1652
msgid ""
"Insert custom text or HTML code that will appear last in you footer. <br /> "
"You can use HTML to insert links, images and special characters like &copy ."
msgstr ""
-#: admin/settings.php:2017
+#: admin/settings.php:1658
msgid ""
"Insert your custom CSS here. Any CSS declarations made here will overwrite "
"Mantra's (even the custom options specified right here in the Mantra "
@@ -1871,12 +1667,161 @@ msgid ""
"theme.<br> The &ltstyle&gt tags are not needed."
msgstr ""
-#: admin/settings.php:2024
+#: admin/settings.php:1664
msgid ""
"Insert your custom Javascript code here. (Google Analytics and any other "
"forms of Analytic software).<br> The &ltscript&gt tags are not needed."
msgstr ""
+#: archive.php:27
+#, php-format
+msgid "Daily Archives: %s"
+msgstr ""
+
+#: archive.php:29
+#, php-format
+msgid "Monthly Archives: %s"
+msgstr ""
+
+#: archive.php:29
+msgid "F Y"
+msgstr ""
+
+#: archive.php:31
+#, php-format
+msgid "Yearly Archives: %s"
+msgstr ""
+
+#: archive.php:31
+msgid "Y"
+msgstr ""
+
+#: archive.php:33
+msgid "Blog Archives"
+msgstr ""
+
+#: archive.php:59 author.php:75 category.php:51
+#: content/content-frontpage.php:26 index.php:41 search.php:41 tag.php:52
+#: templates/template-blog.php:36
+msgid "Nothing Found"
+msgstr ""
+
+#: archive.php:63 author.php:79 category.php:55
+#: content/content-frontpage.php:30 index.php:45 tag.php:56
+#: templates/template-blog.php:40
+msgid ""
+"Apologies, but no results were found for the requested archive. Perhaps "
+"searching will help find a related post."
+msgstr ""
+
+#: attachment.php:18
+#, php-format
+msgid "Return to %s"
+msgstr ""
+
+#: attachment.php:29
+msgid "By"
+msgstr ""
+
+#: attachment.php:40
+msgid "Published"
+msgstr ""
+
+#: attachment.php:50
+#, php-format
+msgid "Full size is %s pixels"
+msgstr ""
+
+#: attachment.php:53
+msgid "Link to full-size image"
+msgstr ""
+
+#: attachment.php:60 attachment.php:107 content/content-aside.php:46
+#: content/content-chat.php:47 content/content-gallery.php:73
+#: content/content-image.php:40 content/content-link.php:47
+#: content/content-page.php:22 content/content-quote.php:44
+#: content/content-status.php:46 content/content.php:78 single.php:38
+#: templates/template-onecolumn.php:28
+#: templates/template-page-with-intro.php:18
+msgid "Edit"
+msgstr ""
+
+#: attachment.php:100
+msgid "Continue reading"
+msgstr ""
+
+#: attachment.php:101 content/content-aside.php:37 content/content-chat.php:36
+#: content/content-gallery.php:63 content/content-image.php:31
+#: content/content-link.php:36 content/content-page.php:21
+#: content/content-quote.php:34 content/content-status.php:37
+#: content/content.php:51 content/content.php:67 single.php:33
+#: templates/template-onecolumn.php:27
+#: templates/template-page-with-intro.php:17
+msgid "Pages:"
+msgstr ""
+
+#: author.php:29
+#, php-format
+msgid "Author Archives: %s"
+msgstr ""
+
+#: author.php:50
+#, php-format
+msgid "About %s"
+msgstr ""
+
+#: category.php:20
+#, php-format
+msgid "Category Archives: %s"
+msgstr ""
+
+#: comments.php:18
+msgid ""
+"This post is password protected. Enter the password to view any comments."
+msgstr ""
+
+#: content/content-aside.php:18
+msgid "Aside"
+msgstr ""
+
+#: content/content-aside.php:36 content/content-chat.php:35
+#: content/content-image.php:30 content/content-link.php:35
+#: content/content-quote.php:33 content/content-status.php:36
+msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
+msgstr ""
+
+#: content/content-aside.php:44 content/content-chat.php:43
+#: content/content-gallery.php:70 content/content-image.php:37
+#: content/content-link.php:43 content/content-quote.php:41
+#: content/content-status.php:44 content/content.php:76
+#: includes/theme-loop.php:197
+msgid "Tagged"
+msgstr ""
+
+#: content/content-chat.php:18
+msgid "Chat"
+msgstr ""
+
+#: content/content-gallery.php:21
+msgid "Gallery"
+msgstr ""
+
+#: content/content-page.php:27 includes/theme-comments.php:134
+msgid "Comments are closed."
+msgstr ""
+
+#: content/content-quote.php:16
+msgid "Quote"
+msgstr ""
+
+#: content/content-status.php:28 includes/tgm.php:2609
+msgid "Status"
+msgstr ""
+
+#: header.php:41
+msgid "Menu"
+msgstr ""
+
#: includes/tgm.php:29
msgid "Recommended Plugins"
msgstr ""
@@ -2162,16 +2107,16 @@ msgstr ""
msgid "Pingback: "
msgstr ""
-#: includes/theme-comments.php:85
+#: includes/theme-comments.php:86
msgid "Leave a comment"
msgstr ""
-#: includes/theme-comments.php:85
-msgid "<b>1</b> Comment"
+#: includes/theme-comments.php:86
+msgid "1 Comment"
msgstr ""
-#: includes/theme-comments.php:85
-msgid "<b>%</b> Comments"
+#: includes/theme-comments.php:86
+msgid "% Comments"
msgstr ""
#: includes/theme-comments.php:107
@@ -2182,145 +2127,197 @@ msgstr ""
msgid "Newer Comments"
msgstr ""
-#: includes/theme-functions.php:58
-msgid "Menu"
-msgstr ""
-
-#: includes/theme-functions.php:259
+#: includes/theme-functions.php:196
msgid "Tag"
msgstr ""
-#: includes/theme-functions.php:271
+#: includes/theme-functions.php:207
msgid "Home Page"
msgstr ""
-#: includes/theme-functions.php:344
+#: includes/theme-functions.php:269
msgid "Powered by"
msgstr ""
-#: includes/theme-loop.php:166
+#: includes/theme-loop.php:161
msgid "By "
msgstr ""
-#: includes/theme-loop.php:205
+#: includes/theme-loop.php:197
msgid " Bookmark the "
msgstr ""
-#: includes/theme-loop.php:205 includes/theme-loop.php:207
-#: includes/theme-loop.php:209
+#: includes/theme-loop.php:197 includes/theme-loop.php:199
+#: includes/theme-loop.php:201
msgid "Permalink to"
msgstr ""
-#: includes/theme-loop.php:205 includes/theme-loop.php:207
-#: includes/theme-loop.php:209
+#: includes/theme-loop.php:197 includes/theme-loop.php:199
+#: includes/theme-loop.php:201
msgid "permalink"
msgstr ""
-#: includes/theme-loop.php:207 includes/theme-loop.php:209
+#: includes/theme-loop.php:199 includes/theme-loop.php:201
msgid "Bookmark the "
msgstr ""
-#: includes/theme-loop.php:231
+#: includes/theme-loop.php:223
msgid "<span class=\"meta-nav\">&laquo;</span> Older posts"
msgstr ""
-#: includes/theme-loop.php:232
+#: includes/theme-loop.php:224
msgid "Newer posts <span class=\"meta-nav\">&raquo;</span>"
msgstr ""
-#: includes/theme-setup.php:87
+#: includes/theme-setup.php:80
msgid "Primary Navigation"
msgstr ""
-#: includes/theme-setup.php:88
+#: includes/theme-setup.php:81
msgid "Top Navigation"
msgstr ""
-#: includes/theme-setup.php:89
+#: includes/theme-setup.php:82
msgid "Footer Navigation"
msgstr ""
-#: includes/theme-setup.php:127
+#: includes/theme-setup.php:116
msgid "mantra"
msgstr ""
-#: includes/theme-setup.php:168
+#: includes/theme-setup.php:148
#, php-format
msgid "Page %s"
msgstr ""
-#: includes/theme-setup.php:231
+#: includes/theme-setup.php:191
msgid "Skip to content"
msgstr ""
-#: includes/theme-setup.php:258
+#: includes/theme-setup.php:227
msgid "Primary Widget Area - Sidebar 1"
msgstr ""
-#: includes/theme-setup.php:260
+#: includes/theme-setup.php:229
msgid "Primary widget area - Sidebar 1"
msgstr ""
-#: includes/theme-setup.php:269
+#: includes/theme-setup.php:238
msgid "Secondary Widget Area - Sidebar 1"
msgstr ""
-#: includes/theme-setup.php:271
+#: includes/theme-setup.php:240
msgid "Secondary widget area - Sidebar 1"
msgstr ""
-#: includes/theme-setup.php:280
+#: includes/theme-setup.php:249
msgid "Third Widget Area - Sidebar 2"
msgstr ""
-#: includes/theme-setup.php:282
+#: includes/theme-setup.php:251
msgid "Third widget area - Sidebar 2"
msgstr ""
-#: includes/theme-setup.php:291
+#: includes/theme-setup.php:260
msgid "Fourth Widget Area - Sidebar 2"
msgstr ""
-#: includes/theme-setup.php:293
+#: includes/theme-setup.php:262
msgid "Fourth widget area - Sidebar 2"
msgstr ""
-#: includes/theme-setup.php:302
+#: includes/theme-setup.php:271
msgid "First Footer Widget Area"
msgstr ""
-#: includes/theme-setup.php:304
+#: includes/theme-setup.php:273
msgid "First footer widget area"
msgstr ""
-#: includes/theme-setup.php:313
+#: includes/theme-setup.php:282
msgid "Second Footer Widget Area"
msgstr ""
-#: includes/theme-setup.php:315
+#: includes/theme-setup.php:284
msgid "Second footer widget area"
msgstr ""
-#: includes/theme-setup.php:324
+#: includes/theme-setup.php:293
msgid "Third Footer Widget Area"
msgstr ""
-#: includes/theme-setup.php:326
+#: includes/theme-setup.php:295
msgid "The third footer widget area"
msgstr ""
-#: includes/theme-setup.php:335
+#: includes/theme-setup.php:304
msgid "Fourth Footer Widget Area"
msgstr ""
-#: includes/theme-setup.php:337
+#: includes/theme-setup.php:306
msgid "The fourth footer widget area"
msgstr ""
-#: includes/theme-setup.php:346 includes/theme-setup.php:348
+#: includes/theme-setup.php:315 includes/theme-setup.php:317
msgid "Above content Widget Area"
msgstr ""
-#: includes/theme-setup.php:357 includes/theme-setup.php:359
+#: includes/theme-setup.php:326 includes/theme-setup.php:328
msgid "Below Content Widget Area"
msgstr ""
+
+#: search.php:20
+#, php-format
+msgid "Search Results for: %s"
+msgstr ""
+
+#: search.php:39
+#, php-format
+msgid "No search results for: %s"
+msgstr ""
+
+#: searchform.php:11
+msgid "Search for:"
+msgstr ""
+
+#: searchform.php:14
+msgid "Search"
+msgstr ""
+
+#: sidebar.php:25 sidebar.php:92
+msgid "Sidebar 1"
+msgstr ""
+
+#: sidebar.php:27 sidebar.php:94
+#, php-format
+msgid ""
+"You currently have no widgets set in the primary sidebar. You can add "
+"widgets via the <a href=\"%s\">Dashboard</a>."
+msgstr ""
+
+#: sidebar.php:28 sidebar.php:61 sidebar.php:95 sidebar.php:128
+#, php-format
+msgid ""
+"To hide this sidebar, switch to a different Layout via the <a href=\"%s"
+"\">Theme Settings</a>."
+msgstr ""
+
+#: sidebar.php:58 sidebar.php:125
+msgid "Sidebar 2"
+msgstr ""
+
+#: sidebar.php:60 sidebar.php:127
+#, php-format
+msgid ""
+"You currently have no widgets set in the secondary sidebar. You can add "
+"widgets via the <a href=\"%s\">Dashboard</a>."
+msgstr ""
+
+#: single.php:52
+msgid "View all posts by "
+msgstr ""
+
+#: tag.php:21
+#, php-format
+msgid "Tag Archives: %s"
+msgstr ""
diff --git a/themes/mantra/license.txt b/themes/mantra/license.txt
deleted file mode 100644
index 5fbe4a70..00000000
--- a/themes/mantra/license.txt
+++ /dev/null
@@ -1,281 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
-
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
diff --git a/themes/mantra/page.php b/themes/mantra/page.php
index bb8f6190..a12bd57b 100644
--- a/themes/mantra/page.php
+++ b/themes/mantra/page.php
@@ -11,24 +11,25 @@
* @subpackage mantra
* @since mantra 0.5
*/
-get_header();
+get_header();
if ($mantra_frontpage=="Enable" && is_front_page() ) {
-mantra_frontpage_generator();
-}
+ mantra_frontpage_generator();
+}
else {
-?>
- <section id="container">
-
- <div id="content" role="main">
- <?php cryout_before_content_hook(); ?>
+ ?>
+ <section id="container">
- <?php get_template_part( 'content', 'page'); ?>
+ <div id="content" role="main">
+ <?php cryout_before_content_hook(); ?>
- <?php cryout_after_content_hook(); ?>
- </div><!-- #content -->
- <?php get_sidebar(); ?>
- </section><!-- #container -->
+ <?php get_template_part( 'content/content', 'page'); ?>
+ <?php cryout_after_content_hook(); ?>
+ </div><!-- #content -->
+ <?php get_sidebar(); ?>
+ </section><!-- #container -->
-<?php } // else
-get_footer(); ?>
+
+ <?php } // else
+
+get_footer();
diff --git a/themes/mantra/readme.txt b/themes/mantra/readme.txt
index f52485e3..b72c541d 100644
--- a/themes/mantra/readme.txt
+++ b/themes/mantra/readme.txt
@@ -1,16 +1,16 @@
=============
Mantra WordPress Theme
-Copyright 2011-17 Cryout Creations
+Copyright 2011-18 Cryout Creations
Author: Cryout Creations
-Requires at least: 4.0
-Tested up to: 4.8.0
-Stable tag: 2.6.1.1
+Requires at least: 4.2
+Tested up to: 4.9.2
+Stable tag: 3.0.4
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html
Donate link: https://www.cryoutcreations.eu/donate/
-Mantra is a do-it-yourself WordPress theme, featuring a pack of over 100 customization options and easy to use tweaks capable of tuning WordPress to your very specific needs and likes. With the help of a simple and efficient user interface you can customize everything:the layout (1,2 or 3 columns), total and partial site widths, colors (all texts, links, backgrounds etc.), fonts (over 35 font-families plus all Google Fonts), text and header sizes, post metas, post excerpts, post formats, header and background images, custom menus, 27 social media links and icons, pins, bullets and much much more. With a fully responsive layout,a customizable showcase presentation page, animated slider, magazine and blog layouts, 8 widget areas, modern graphics and an easy and intuitive admin section, you can start creating your dream site right now.
+Mantra is a do-it-yourself WordPress theme, featuring a pack of over 100 customization options and easy to use tweaks capable of tuning WordPress to your very specific needs and likes. With the help of a simple and efficient user interface you can customize everything: the layout (1, 2 or 3 columns), total and partial site widths, colors (texts, links, backgrounds etc.), fonts (over 35 font-families plus all Google Fonts), text and header sizes, post metas, post excerpts, post formats, header and background images, custom menus, 52 social media links and icons, pins, bullets and much much more. With a fully responsive layout, a customizable showcase presentation page, animated slider, magazine and blog layouts, 8 widget areas, modern graphics and an easy and intuitive admin section, you can start creating your dream site right now.
== License ==
@@ -33,33 +33,48 @@ along with this program. If not, see http://www.gnu.org/copyleft/gpl.html
Mantra WordPress Theme bundles the following third-party resources:
-Nivo Slider, Copyright Gilbert Pellegrom
-Nivo Slider is licensed under the terms of the MIT license
+Nivo Slider, Copyright Gilbert Pellegrom
+Nivo Slider is licensed under the terms of the MIT license
Source: http://dev7studios.com/nivo-slider
FitVids, Copyright Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
-FitVids is licensed under the terms of the WTFPLlicense
+FitVids is licensed under the terms of the WTFPLlicense
Source: http://fitvidsjs.com/
TGM Plugin Activation, Copyright Thomas Griffin
Licensed under the terms of the GNU GPL v2-or-later license
Source: http://tgmpluginactivation.com/
-tinyNav, Copyright Viljami Salminen
-Licensed under the MIT license
-Source: http://tinynav.viljamis.com/
-
CSS3 PIE, Copyright Sencha Inc.
Dual-licensed under Apache License 2.0 and GPLv2
Source: http://css3pie.com/
-All other images bundled with the theme (used in the demo presentation page and admin section, as well as the social icons) are created by Cryout Creations and released with the theme under GPLv3 as well.
+== Bundled Fonts ==
+
+The extra fonts included with the theme are also under GPLv3 compatible licenses:
+
+Elusive-Icons Webfont, Copyright 2013, Aristeides Stathopoulos
+Licensed under the SIL Open Font License, Version 1.1
+Source: http://shoestrap.org/downloads/elusive-icons-webfont/
+
+== Bundled Images ==
+
+The following bundled images are released into the public domain under Creative Commons CC0:
+https://www.pexels.com/photo/architecture-buildings-business-car-331990/
+https://www.pexels.com/photo/antique-brick-wall-bricks-building-331986/
+https://www.pexels.com/photo/close-up-of-hand-holding-coffee-cup-302902/
+
+https://www.pexels.com/photo/wine-glass-on-restaurant-table-225228/
+https://www.pexels.com/photo/table-in-vintage-restaurant-6267/
+https://www.pexels.com/photo/attractive-bar-barista-breakfast-296888/
+
+All other images bundled with the theme (used in the demo presentation page and admin section) are created by Cryout Creations and released with the theme under GPLv3 as well.
== Original Translations ==
-Chinese (Simplified) - Lín Xuan Li
-Czech - Satapouch
+Chinese (Simplified) - L�n Xuan Li
+Czech - Satapouch
Danish - IT-Fidusen
Dutch - Tim De Keyser
French - Luc Capronnier, Ikiu91
@@ -71,16 +86,79 @@ Italian - Antonio Mercurio
Japanese - Yoshiki Osako
Norwegian (Bokmal) - kandasa
Persian (Farsi) - Sajjad
-Polish - Pawe³ Przytu³a
+Polish - Pawe� Przytu�a
Portuguese (Brazil) - Ivar P. Junior, Joao Lacerda
Russian - Dmitry Kiryanov
-Spanish (Spain) - Raúl Antón Cuadrado, Sonia
-Turkish - Emre Dalkiliç
+Spanish (Spain) - Ra�l Ant�n Cuadrado, Sonia
+Turkish - Emre Dalkili�
== Changelog ==
-= 2.6.1.1 =
+= 3.0.4 =
+* Fixed menu alignment option not working
+* Fixed 'one column no sidebar' template using broken layout
+* Fixed sided layout/template responsiveness issues
+* Fixed presentation page extra text fields losing values in settings page
+* Adjusted built-in slider to display slide titles on mobile devices
+* Redesigned back-to-top button
+
+= 3.0.3 =
+* Cleaned up leftover +50px hardcoded rules on header image width (thanks stormcrow)
+* Fixed slider not working in v3.0.2 due to incorrect script path (thanks Tezzer)
+* Improved image overflow handling in the content/sidebars
+* Improved failsafe layout styling for older/unsupported page template
+* Added filters for slider and featured image size registrations
+* Adjusted empty sidebar warnings to only be visible to logged in users with sufficient permissions
+* Cleaned up and optimized code in theme-setup.php, theme-comments.php, theme-frontpage.php, theme-loop.php, sidebar.php, settings.php
+* Renamed fonts and socials global variables to avoid name collisions
+* Cleaned up obsolete relative dimensions code
+* Changed social icons defaults to indicate the use of full URL
+
+= 3.0.2 =
+* Fixed magazine layout applying to single posts
+* Cleaned up theme generated styling code and moved custom-styles.php to includes/ subfolder
+* Rewritten theme styles enqueue code to use current WordPress standards ***this can result in styles loading in incorrect order if you're using a child theme with old code
+* Updated options-based CSS generated functions to use wp_add_inline_style()
+* Optimized meta viewport code and switched to cryout_seo_hook
+* Cleaned up some inline JS and options JS code
+* Fixed Google fonts failing to enqueue until first theme options save
+* Fixed bullet vertical alignment for widget items
+* Fixed minor design issues in the theme settings page
+* Fixed post formats displaying format images on single posts
+
+= 3.0.1 =
+* Fixed parse error in header.php in 3.0
+
+= 3.0 =
+* PERFORMED A VISUAL REVAMP OF THE THEME TO BRING IT UP TO DATE WITH CURRENT DESIGN TRENDS
+* Changed default site width, default content, headings and meta font sizes and font families, some default colors
+* Revamped the presentation page with new images, new columns design, layout and animations, removed blockquote from text areas for better shortcut/HTML tags support
+* Moved all template files into the templates/ subfolder ***this will require re-assigning all page templates after updating
+* Moved all content-*.php files into content/ subfolder for consistency
+* Moved JavaScript, images and CSS folders into resources/ subfolder ***this can cause issues with caching
+* Updated all social images with new images and added 14 extra socials: AboutMe, AIM, Contact, Discord, Dribble, FriendFeed, Github, MindVox, Newsvine, Patreon, PayPal, Phone, ShareThis, TripAdvisor - unfortunately we had to remove DailyMotion because we don't have an image matching the new image set
+* Replaced "under the menu" social locations with site absolute left/right
+* Improved responsiveness (by rewriting from scratch)
+* Improved RTL support (by rewriting from scratch)
+* Entirely revamped mobile menu
+* Dropped text shadow and box shadow effect usage from different elements like site title, post titles, meta areas, images etc.
+* Increased padding and font size for inputs/selects/textareas
+* Increased padding for content, sidebars and article containers
+* Changed comments list appearance
+* New "back to top" button and animation
+* Removed single post top navigation (bottom navigation remains)
+* Removed footer widgets title background and padding
+* Edited main menu padding and switched to using relative font sizes
+* Added extra padding and margins to footer elements
+* Cleaned up compatibility CSS for old browsers
+* Increased H1-H6 default headings sizes, made H5 and H6 uppercase
+* Added label for search in searchform.php for accessibility
+* Escaped all theme options and URLs on output
+* Improved settings page aspect (padding, font sizes, buttons, layout)
+* Updated theme screenshot to reflect the new look
+
+= 2.6.1.1 =
* Fixed TinyMCE editor error on WordPress 4.8
= 2.6.1 =
@@ -97,7 +175,7 @@ Turkish - Emre Dalkiliç
= 2.6.0 =
* Optimized CSS layout and updated for latest browser versions
-* Removed unused third parameter $post_image_id from nirvana_thumbnail_link()
+* Removed unused third parameter $post_image_id from mantra_thumbnail_link()
* Added author role meta to improve microformats
* Added time updated and published meta to improve microformats
* Removed deprecated hgroup HTML tags
@@ -139,7 +217,7 @@ Turkish - Emre Dalkiliç
* added option to enable/disable zoom for mobile devices
* added Dailymotion social icon (thanks to Jean-Louis Rosolen)
* fixed breadcrumbs not handling tag pages
-* replaced get_bloginfo(‘url’) with home_url() per latest WordPress guidelines
+* replaced get_bloginfo('url') with home_url() per latest WordPress guidelines
* replaced wp_convert_bytes_to_hr() (deprecated) with size_format()
* fixed layout/image border option non-clickable on IE 11
* fixed title tag issue
@@ -156,7 +234,7 @@ Turkish - Emre Dalkiliç
* updated French translation
= 2.3.3 =
-* updated to the new WP 3.8 “fluid-layout” and “fixed-layout” tags
+* updated to the new WP 3.8 'fluid-layout' and 'fixed-layout' tags
* 3 social icons are now enabled by default in two theme areas
* fixed import/export settings not working on some rare occasions
* hopefully fixed smileys getting huge in captions
@@ -179,26 +257,26 @@ Turkish - Emre Dalkiliç
= 2.3.1 =
* added Steam social icon
-* disabled auto-redirect to theme’s settings page after install (requested by WordPress)
+* disabled auto-redirect to theme's settings page after install (requested by WordPress)
* some cosmetic changes (multi-page pages/posts pagination, stikcy posts, post metas and author info)
* restored comments boxed styling
* fixes search form broken in 2.3.0
= 2.3.0 =
* added mobile browser detection and added a new step of responsiveness for mobile browsers
-* updated the media uploader; hopefully this fixes all reported issues with the media selector for slide/column images (the new media uploader is the one introduced in WordPress 3.5 so if you’re using an older version of WordPress now would be a good time to update).
-* resized social images to 26×26 pixels
+* updated the media uploader; hopefully this fixes all reported issues with the media selector for slide/column images (the new media uploader is the one introduced in WordPress 3.5 so if you're using an older version of WordPress now would be a good time to update).
+* resized social images to 26x26 pixels
* fixed an image with caption size too big issue (reported by Ferran)
* fixed image sizing issue on Chrome
* updated comments and form elements design
* updated admin interface design
* beautified jQuery warning to make it less scary and intrusive
* cleaned up some ghosts of the past
-
+
= 2.2.2 =
-* fixed mobile menu items are reversed on right align menus (because the right align menu items needed to be arranged reversed); you’ll need to re-order your menu items if using right align after this update
+* fixed mobile menu items are reversed on right align menus (because the right align menu items needed to be arranged reversed); you'll need to re-order your menu items if using right align after this update
* fixed new shortcodes still closed with the old shortcodes mantra tag
-* fixed stray “1” in the secondary sidebar
+* fixed stray '1' in the secondary sidebar
* fixed presentation page column images wrong aspect ration on some Android devices (and hopefully did not break anything for iDevices)
* fixed notices related to empty Google fonts fields in sanitize.php under PHP 5.4
@@ -211,7 +289,7 @@ Turkish - Emre Dalkiliç
* fixed presentation page posts to use the correct excerpt length (reported by Edward & MrAwesome)
* fixed incorrect featured images size on presentation page posts (reported by Deby & Scott)
* theme auto featured images now adhere to the set featured image size
-
+
= 2.2.0 =
* added option to display latest posts on presentation page below the columns, with configurable post count
* added menu items alignment option
@@ -220,15 +298,15 @@ Turkish - Emre Dalkiliç
= 2.1.1 =
* breadcrumbs text size increase from .8em to 1em and moved inside content
* fixed presentation page columns responsiveness
-* added support for WordPress’ 3.6 new galleries
+* added support for WordPress' 3.6 new galleries
* updated jQuery warning message to be more clear on when and why it is visible
* fixed footer links to open in new windows
* fixed the (supposedly previously) fixed lists bullets positioning
-
+
= 2.1 =
* cosmetic update of the admin interface; sub-section settings should be easier to spot now
* updated NivoSlider (fixes a double-load of the frontpage which may increase site loading time)
-* fixed the <!–more–> tag functionality on blog page template (reported by Olrik)
+* fixed the <!--more--> tag functionality on blog page template (reported by Olrik)
* added header image Keep aspect ratio option for responsiveness
* fixed Featured image as header image functionality to display the correctly sized image in the header (reported by Fulco)
* fixed mobile menu not working with automatically generated menus
@@ -245,9 +323,9 @@ Turkish - Emre Dalkiliç
* fixed/improved mobile menu where it used to select incorrect item when the viewed page was not in the menu
= 2.0.7 =
-* reverted the #content / .entry-content plugin compatibility “improvement” implemented in 2.0.4 as it was causing more issues than it solved
+* reverted the #content / .entry-content plugin compatibility 'improvement' implemented in 2.0.4 as it was causing more issues than it solved
* fixed a couple of code typos (reported by Gary)
-* improved drop down sub(-sub-sub…)menus usability by adding hoverintent and hiding delay (reported by Joel)
+* improved drop down sub(-sub-sub...)menus usability by adding hoverintent and hiding delay (reported by Joel)
* fixed back-to-top button movement glitch on Firefox 17+
* fixed jQuery version checking on WP 3.6 (reported by Detlef)
* fixed admin accordion compatibility with WP 3.6
@@ -258,7 +336,7 @@ Turkish - Emre Dalkiliç
* fixed one column layout right side spacing
* fixed top menu items being displayed in the reverse order
* fixed footer social icons sometimes being becoming partially hidden on mobile devices
-* renamed “sub-header” to “headings” (according to W3C standards)
+* renamed 'sub-header' to 'headings' (according to W3C standards)
* added IMDb social icon
* improved compatibility with WordPress 3.4
@@ -273,15 +351,15 @@ Turkish - Emre Dalkiliç
* Fixed optset(), echo_first_image() functions not being properly prefixed
= 2.0.4 =
-* Added a new setting for the header: left margin to complement the existing top margin setting. You’ll find them both in the Header Settings. Now you should be able to position your logo or site tile just the way you want to.
+* Added a new setting for the header: left margin to complement the existing top margin setting. You'll find them both in the Header Settings. Now you should be able to position your logo or site tile just the way you want to.
* Fixed the content header sizes (h1-h6)
* Fixed the searchbar on 404 pages
* Added buttons linking to the Background and Header pages (under Appearance) from the Mantra settings page
* Fixed the presentation page columns animation quirk on FireFox
* Added 3 new social icons: Xing, VK and Twitch TV
-* Added an edit button to the ‘category page with intro’ template
-* Added custom fields catid/slug/key to ‘category page with intro’ template
-* Changed ‘Mobile view’ setting name to ‘Responsiveness’ (this was such a radical change that we almost made this Mantra v3.0. Almost. )
+* Added an edit button to the 'category page with intro' template
+* Added custom fields catid/slug/key to 'category page with intro' template
+* Changed 'Mobile view' setting name to 'Responsiveness' (this was such a radical change that we almost made this Mantra v3.0. Almost.)
= 2.0.3.1 =
* Fixed font-related issue introduced in 2.0.3
@@ -296,7 +374,7 @@ Turkish - Emre Dalkiliç
* new .pot file (for translators)
* fixed blog page template had no meta description (now displays the description set in the theme for the homepage)
* separated post meta bar and meta tags control in Post Meta Settings
-* implemented workaround for iSomething devices’ browser incomplete support for responsive images inside relative dimension containers
+* implemented workaround for iSomething devices' browser incomplete support for responsive images inside relative dimension containers
* fixed unequal content column spacing on the sidebar on each side layout
* updated shortcode buttons look and added target attribute for them (see demo page for examples)
* added support for google fonts custom styles (and broke standard fonts functionality)
@@ -307,9 +385,9 @@ Turkish - Emre Dalkiliç
* Fixed site width being 0 in some rare, x-files related occurrences
* Fixed multiple issues with the new header in IE
* Fixed caption opacity for IE
-* Fixed issue where the ‘Custom logo’ option was selected for the header but no logo was uploaded and an empty image place-holder was displayed in some browsers
+* Fixed issue where the 'Custom logo' option was selected for the header but no logo was uploaded and an empty image place-holder was displayed in some browsers
* Relative dimensions are now labelled as DEPRECATED. We recommend using absolute dimensions with mobile view enabled (full responsiveness)
-* Fixed ‘column’ shortcode widths
+* Fixed 'column' shortcode widths
= 2.0.1 =
* Fixed missing social icons in the header
@@ -329,7 +407,7 @@ Turkish - Emre Dalkiliç
* Improved mobile view
* Fixed social mail link
* Fixed columns shortcodes
-* Fixed HTML layout on the ‘Category page with intro’ template
+* Fixed HTML layout on the 'Category page with intro' template
* Undefined amount of small bug fixes
-
+
Earlier changelogs are available at http://www.cryoutcreations.eu/mantra
diff --git a/themes/mantra/editor-style-rtl.css b/themes/mantra/resources/css/editor-style-rtl.css
index e44679af..e44679af 100644
--- a/themes/mantra/editor-style-rtl.css
+++ b/themes/mantra/resources/css/editor-style-rtl.css
diff --git a/themes/mantra/editor-style.css b/themes/mantra/resources/css/editor-style.css
index 9eefb8bc..9eefb8bc 100644
--- a/themes/mantra/editor-style.css
+++ b/themes/mantra/resources/css/editor-style.css
diff --git a/themes/mantra/resources/css/rtl.css b/themes/mantra/resources/css/rtl.css
new file mode 100644
index 00000000..83f7bd6d
--- /dev/null
+++ b/themes/mantra/resources/css/rtl.css
@@ -0,0 +1,528 @@
+/*
+ * Right To Left Styling
+*/
+
+body {
+ direction:rtl;
+ unicode-bidi:embed;
+}
+
+/* =Fonts
+-------------------------------------------------------------- */
+
+.entry-content code {
+ border-left: none;
+ border-right: 3px solid #EEEEEE;
+
+}
+
+/* =Structure
+-------------------------------------------------------------- */
+
+#branding {
+ float: right;
+}
+
+.footerfour .widget-area {
+ float: right;
+ margin-right: 0;
+ margin-left: 6%;
+}
+
+.footerthree .widget-area {
+ float: right;
+ margin-right: 0;
+ margin-left: 8%;
+}
+
+.footertwo .widget-area {
+ float: right;
+ margin-right: 0;
+ margin-left: 5%;
+}
+
+.footerone .widget-area {
+ float: right;
+}
+
+#footer-widget-area .widget-area:last-child {
+ margin-left: 0;
+}
+
+#site-generator {
+ float: left;
+}
+
+.entry-content ul, .entry-summary ul {
+ margin-left: 0;
+ margin-right: 1.5em;
+}
+
+.entry-content ul > li {
+ padding-left: 0;
+ padding-right: 20px;
+}
+
+.entry-content li li {
+ margin-left: 0;
+ margin-right: 15px;
+}
+
+ol {
+ margin-left: 0;
+ margin-right: 1.5em;
+}
+
+input[type="text"],
+input[type="password"],
+input[type="email"],
+textarea {
+ padding-right: .5em;
+}
+
+/* Text meant only for screen readers */
+.screen-reader-text {
+ position: absolute;
+ left: auto;
+ right: -9000px;
+}
+
+
+/* =Header
+-------------------------------------------------------------- */
+
+#site-description {
+ float: right;
+}
+
+#header-container > div {
+ margin-left: 0;
+ margin-right: 40px;
+}
+
+/* =Menu -PRIMARY
+-------------------------------------------------------------- */
+
+#access {
+ float: right;
+}
+
+#access ul li {
+ float: right;
+}
+
+#access ul ul {
+ margin-right: 0;
+}
+
+#access ul ul li { /* level 2 */
+ float: right;
+}
+
+#access ul ul ul {
+ left: auto;
+ right: 100%;
+}
+
+/* =Menu -SECONDARY
+-------------------------------------------------------------- */
+
+.topmenu ul {
+ float: left;
+}
+
+.topmenu ul li {
+ float: right;
+}
+
+.footermenu ul li{
+ float: right;
+}
+
+
+/* =Content
+-------------------------------------------------------------- */
+
+.entry-content table {
+ text-align: right;
+}
+
+.entry-meta .comments-link {
+ float: left;
+}
+
+.entry-content blockquote.left {
+ float: right;
+ margin-left: 24px;
+ margin-right: 0;
+ text-align: left;
+}
+.entry-content blockquote.right {
+ float: left;
+ margin-right: 24px;
+ margin-left: 0;
+ text-align: right;
+}
+
+.tag-links {
+ margin-left: 0;
+ margin-right: 30px;
+}
+
+.page-link {
+ margin: 20px 0 20px 10px;
+}
+
+#entry-author-info #author-avatar,
+#author-info #author-avatar {
+ float: right;
+ margin: 0 0 0 -104px;
+
+}
+
+#entry-author-info #author-description,
+#author-info #author-description {
+ float: right;
+ margin: 0 104px 0 0;
+}
+
+article.format-link header,
+article.format-quote header,
+article.format-image header,
+article.format-chat header,
+article.format-aside header {
+ padding-left: 0;
+ padding-right: 60px;
+}
+
+
+/**
+ * 5.4 Galleries
+ * ----------------------------------------------------------------------------
+ */
+
+.gallery-item {
+ float: right;
+ margin: 0 0 4px 4px;
+}
+
+.gallery-columns-1 .gallery-item:nth-of-type(1n),
+.gallery-columns-2 .gallery-item:nth-of-type(2n),
+.gallery-columns-3 .gallery-item:nth-of-type(3n),
+.gallery-columns-4 .gallery-item:nth-of-type(4n),
+.gallery-columns-5 .gallery-item:nth-of-type(5n),
+.gallery-columns-6 .gallery-item:nth-of-type(6n),
+.gallery-columns-7 .gallery-item:nth-of-type(7n),
+.gallery-columns-8 .gallery-item:nth-of-type(8n),
+.gallery-columns-9 .gallery-item:nth-of-type(9n) {
+ margin-left: 0;
+}
+
+.gallery-caption {
+ left: auto;
+ right: 0;
+}
+
+/* =Status
+-------------------------------------------------------------- */
+
+#content .format-status .entry-meta2 {
+ float: right;
+ clear: left;
+ padding-right: 0;
+}
+
+.status_content {
+ float: right;
+}
+
+#content .format-status h3.entry-format {
+ margin-right: 0;
+ padding-right: 0;
+}
+
+.format-status .avatar {
+ float: right;
+ margin-left: 10px;
+ margin-right: 0;
+}
+
+#content .alignleft,
+#content img.alignleft {
+ float: right;
+ margin-left: 24px;
+ margin-right: 0;
+}
+
+#content .alignright,
+#content img.alignright {
+ float: left;
+ margin-left: 0;
+ margin-right: 24px;
+}
+
+
+/* =Navigation
+-------------------------------------------------------------- */
+
+.nav-previous {
+ float: right;
+}
+
+.nav-next {
+ float: left;
+ text-align: left;
+}
+
+
+/* =Comments
+-------------------------------------------------------------- */
+
+.commentlist img.avatar {
+ left: auto;
+ right: 0;
+}
+
+.comment-author {
+ float: right;
+}
+
+.comment-meta {
+ float: right;
+ margin-left: 0;
+ margin-right: 10px;
+}
+
+.commentlist .children {
+ margin: 0 -40px 0 0;
+}
+
+.children #respond {
+ margin: 0 0 0 48px;
+ min-width: 400px;
+}
+
+#commentform {
+ float: right;
+}
+
+.comment-form-comment textarea {
+ float: left;
+ margin-left: 0;
+ margin-right: 12px;
+}
+
+.comment-form-author label,
+.comment-form-email label,
+.comment-form-email label,
+.comment-form-url label,
+.comment-form-comment label {
+ float: left;
+}
+
+.comment-form-author input,
+.comment-form-email input,
+.comment-form-email input,
+.comment-form-url input,
+.comment-form-comment input {
+ float: left;
+}
+
+#respond .form-allowed-tags {
+ margin-left: 0;
+ margin-right: 12px;
+}
+
+#respond .form-submit {
+ text-align: left;
+}
+
+
+/* =Widget Areas
+-------------------------------------------------------------- */
+
+.widget-area ul {
+ margin-right: 0;
+}
+
+.widget-area ul ul {
+ margin-right: 0;
+}
+
+.widget-area ul li {
+ margin-right: 0;
+}
+
+.contentsearch .s {
+ float: right;
+ padding-left: 0;
+ padding-right: 1em;
+}
+
+.contentsearch .searchsubmit {
+ left: auto;
+ right: -40px;
+ float: right;
+}
+#main #searchform,
+#footer #searchform {
+ margin-right: 0;
+ margin-left: 10px;
+}
+
+.widget_search .s,
+#search .s {/* This keeps the search inputs in line This is the Sidebar Search*/
+ right: auto;
+ left: 0;
+ padding-left: 0;
+ padding-right: 1em;
+}
+
+.widget_search .searchsubmit {
+ right: auto;
+ left: 0;
+ border-radius: 100px 0 0 100px;
+}
+
+#footer-widget-area ul ul li {
+ padding-right: 0;
+ margin-right: 0;
+}
+
+#calendar_wrap {
+ margin-left: 0;
+ margin-right: 10px;
+}
+
+#wp-calendar caption {
+ text-align: right;
+ margin-left: 0;
+ margin-right: 10px;
+}
+
+/* Main sidebars */
+#main .widget-area ul {
+ margin-right: 0;
+}
+
+#main .widget-area ul ul {
+ margin-right: 0;
+}
+
+.widget-area ul ul li {
+ padding-left: 0;
+ padding-right: 15px;
+ background-position: right calc(2em / 2 - 4px);
+}
+
+/* =Footer
+-------------------------------------------------------------- */
+
+/* SOCIALS */
+.socials {
+ float: left;
+}
+
+.socials a {
+ float: right;
+ margin-right: 0;
+ margin-left: 5px;
+}
+
+#header-container > div#sheader {
+ right: auto;
+ left: 10px;
+}
+
+#sfooter {
+ float: left;
+}
+
+#sfooter a {
+ margin-left: 0;
+ margin-right: 5px;
+}
+
+/* ARTICLES */
+#toTop {
+ right: auto;
+ left: 20px;
+}
+
+/* EDIT POST LINK */
+.edit-link {
+ float: left;
+}
+
+.pagination span,
+.pagination a {
+ float: right;
+ margin-right: 0;
+ margin-left: 10px;
+}
+
+/* PRESENTATION PAGE */
+
+#front-columns > div {
+ float: right;
+}
+
+#front-columns.front-columns-4 > div {
+ margin-right: 0;
+ margin-left: 4%;
+}
+
+#front-columns.front-columns-3 > div {
+ margin-right: 0;
+ margin-left: 5.5%;
+}
+
+#front-columns.front-columns-2 > div {
+ margin-right: 0;
+ margin-left: 5%;
+}
+
+#front-columns.front-columns-4 > div:last-child,
+#front-columns.front-columns-3 > div:last-child,
+#front-columns.front-columns-2 > div:last-child {
+ margin-left: 0;
+}
+
+/* Front page columns */
+.nivoSlider img {
+ left: auto;
+ right: 0;
+}
+
+/* If an image is wrapped in a link */
+.nivoSlider a.nivo-imageLink {
+ left: auto;
+ right: 0;
+}
+
+.nivo-prevNav {
+ left: auto;
+ right: 0;
+}
+
+.nivo-nextNav {
+ right: auto;
+ left: 0;
+}
+
+.theme-default .nivoSlider img {
+ left: auto;
+ right: 0;
+}
+
+.theme-default a.nivo-nextNav {
+ right: auto;
+ left: 30px;
+}
+
+.theme-default a.nivo-prevNav {
+ left: auto;
+ right: 30px;
+}
+
+/* FIN! */
diff --git a/themes/mantra/resources/css/style-mobile.css b/themes/mantra/resources/css/style-mobile.css
new file mode 100644
index 00000000..44d09164
--- /dev/null
+++ b/themes/mantra/resources/css/style-mobile.css
@@ -0,0 +1,339 @@
+/* =Responsive Structure
+----------------------------------------------- */
+
+@media (max-width: 960px) {
+
+ #content,
+ #frontpage,
+ #frontpage + #container > #content,
+ #footer-widget-area {
+ padding: 2em;
+ }
+
+
+ #primary,
+ #secondary {
+ padding-top: 2em;
+ }
+
+}
+
+@media (max-width: 800px) {
+
+ body {
+ font-size: .95em;
+ }
+
+ #content,
+ #frontpage,
+ #frontpage + #container > #content,
+ #footer-widget-area {
+ max-width: 100%;
+ padding: 1.5em;
+ }
+
+ #content {
+ margin: 0;
+ }
+
+ #primary,
+ #secondary {
+ padding-left: 1.5em;
+ padding-right: 1.5em;
+ }
+
+ .widget-title {
+ border-radius: 15px 15px 0 0;
+ }
+
+ #access,
+ #branding {
+ width: 100%;
+ }
+
+ #linky {
+ width: auto;
+ }
+
+ #branding {
+ height: auto;
+ min-height: 90px;
+ }
+
+ #bg_image {
+ min-height: 90px;
+ width: 100%;
+ }
+
+ #header-container > div {
+ margin-top: 7px;
+ margin-left: 14px;
+ height: 100%;
+ }
+
+ a#logo {
+ height: 100%;
+ display: block !important;
+ }
+
+ a#logo img {
+ height: 80%;
+ width: auto;
+ max-width: 90%;
+ }
+
+ .safari a#logo img {
+ max-height: 80px;
+ height: auto;
+ }
+
+ .socials a {
+ margin: 0;
+ padding-left: 5px;
+ display: block;
+ }
+
+ .socials a img {
+ width: 24px;
+ }
+
+ #smenur,
+ #smenul {
+ display: none;
+ }
+
+ #access .menu-header,
+ div.menu {
+ margin: 0;
+ }
+
+ #primary,
+ #secondary {
+ width: 100%;
+ height: auto;
+ }
+
+ #slider,
+ #slider img {
+ width: 100%;
+ }
+
+ #site-title {
+ margin-top: 20px;
+ font-size: 28px;
+ line-height: 35px;
+ padding-left: 15px;
+ }
+
+ #site-description {
+ margin-top: 5px;
+ font-size: 13px;
+ line-height: 18px;
+ padding-left: 15px;
+ }
+
+ #site-copyright {
+ max-width: 90%
+ }
+
+ .entry-meta .bl_sep {
+ margin: 0;
+ }
+
+ .nivo-caption {
+ left: 0;
+ right: 0;
+ bottom: 0;
+ padding: 20px;
+ line-height: 1.4;
+ }
+
+ #nav-toggle {
+ display: block;
+ float: left;
+ margin: 20px auto 0;
+ cursor:pointer;
+ width: 100%;
+ padding: 5px 4%;
+ letter-spacing: 2px;
+ text-transform: uppercase;
+ }
+
+ #nav-toggle span:before {
+ content: "\e820";
+ font-family: "elusive";
+ font-size: 16px;
+ height: 40px;
+ line-height: 40px;
+ }
+
+ #access {
+ display: none;
+ margin-top: 0;
+ margin-bottom: 20px;
+ padding-bottom: 5px;
+ font-size: 15px;
+ }
+
+ #access .menu ul,
+ #access .menu ul li {
+ width: 100%;
+ margin: 0;
+ box-shadow: none;
+ }
+
+ #access .menu ul li {
+ border-radius: 0;
+ padding-top: 5px;
+ box-shadow: none !important;
+ }
+
+ #access > .menu > ul > li {
+ border-top: 1px solid rgba(0,0,0,.07);
+ }
+
+ #access > .menu li ul {
+ position: inherit;
+ margin-top: 0;
+ }
+
+ #access > .menu ul ul {
+ width: 95%;
+ left: 5%;
+ }
+
+ #access > .menu > ul > li > a > span {
+ border-width: 0 0 1px 0;
+ border-style: solid;
+ border-color: rgba(128,128,128,0.3);
+ }
+
+ .mantra-menu-center #access > .menu > ul > li > a > span {
+ text-align: left;
+ }
+
+ #access > .menu ul li > a:not(:only-child) > span:after {
+ font-family:"Elusive";
+ content: '\e80a';
+ position: absolute;
+ right: 5px;
+ top: 10px;
+ z-index: 251;
+ -webkit-transition:all .2s ease-in-out;
+ transition:all .2s ease-in-out;
+ }
+
+ #access > .menu ul li:hover > a:not(:only-child) > span:after {
+ top: 20px;
+ opacity: 0;
+ }
+
+ #access > .menu > ul ul > li a:not(:only-child) > span:after {
+ -webkit-transform: rotate(0);
+ -ms-transform: rotate(0);
+ transform: rotate(0);
+ }
+
+ #access > .menu ul li > a:not(:only-child) > span {
+ padding-right: 18px;
+ }
+
+}
+
+@media (max-width: 640px) {
+
+ #front-text1 h1,
+ #front-text2 h1 {
+ font-size: 2em;
+ line-height: 2em;
+ }
+
+ .entry-meta {
+ display: table;
+ width: 100%;
+ padding: 0;
+ }
+
+ .short-columns {
+ width: 100%;
+ }
+
+ #footer-widget-area .widget-area {
+ width: 100%;
+ float: none;
+ }
+
+ #front-columns > div[id^=column],
+ #front-columns > div[id^=column]:last-child {
+ float: none;
+ width: 100%;
+ margin: 0 auto 48px;
+ max-width: 400px;
+ text-align: center;
+ }
+
+ #front-columns .column-image {
+ max-height: none;
+ margin: 0 auto;
+ }
+
+ #front-columns .column-text {
+ text-align: center;
+ }
+
+ .nivo-caption {
+ padding: 10px;
+ font-size: 0.9em;
+ }
+
+ .nivo-directionNav {
+ display: none;
+ }
+
+}
+
+@media (max-width: 480px) {
+
+ body {
+ font-size: .9em;
+ }
+
+ #branding {
+ border-top: none;
+ }
+
+ #site-title {
+ font-size: 26px;
+ line-height: 30px;
+ padding-left: 5px;
+ }
+
+ #site-description {
+ font-size: 13px;
+ line-height: 18px;
+ padding-left: 5px;
+ letter-spacing: 1px;
+ }
+
+ .post-thumbnail-link,
+ .post-thumbnail {
+ display: table;
+ margin: 0.5em auto;
+ overflow: hidden;
+ text-align: center;
+ }
+
+ .nivo-caption .nivo-description {
+ display: none;
+ }
+
+
+ .nivo-caption h3 {
+ margin-bottom: 0;
+ }
+
+ #toTop {
+ opacity: 0;
+ }
+
+}
diff --git a/themes/mantra/resources/fonts/elusive.eot b/themes/mantra/resources/fonts/elusive.eot
new file mode 100644
index 00000000..97768a70
--- /dev/null
+++ b/themes/mantra/resources/fonts/elusive.eot
Binary files differ
diff --git a/themes/mantra/resources/fonts/elusive.svg b/themes/mantra/resources/fonts/elusive.svg
new file mode 100644
index 00000000..725733ff
--- /dev/null
+++ b/themes/mantra/resources/fonts/elusive.svg
@@ -0,0 +1,111 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg">
+<metadata>Copyright (C) 2014 by original authors @ fontello.com</metadata>
+<defs>
+<font id="elusive" horiz-adv-x="1000" >
+<font-face font-family="elusive" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
+<missing-glyph horiz-adv-x="1000" />
+<glyph glyph-name="comment" unicode="&#xe800;" d="m0 96l0 713 1000 0 0-713-473 0-320-205 0 205-207 0z" horiz-adv-x="1000" />
+<glyph glyph-name="user" unicode="&#xe801;" d="m0-150l0 156q0 24 58 58t159 71q99 35 137 73t37 101q0 29-27 72t-32 59q-12 35-29 135-10 52-14 93-2 22 6 50t28 60 67 51 110 21 110-21 67-51 28-60 6-50q-4-41-14-93-17-100-29-135-6-16-32-59t-27-72q0-64 37-101t137-73q217-80 217-129l0-156-1000 0z" horiz-adv-x="1000" />
+<glyph glyph-name="tag" unicode="&#xe802;" d="m0 483l0 287q2 31 24 54t52 22l287 0q88-6 133-55l426-472q19-28 19-58t-19-52l-334-334q-25-21-57-21t-52 21l-424 475q-55 64-55 133z m125 164q2-31 23-52t51-20q32 0 52 22t21 50q0 33-23 54t-50 20q-33-2-53-23t-21-51z" horiz-adv-x="941" />
+<glyph glyph-name="down-dir" unicode="&#xe803;" d="m571 457q0-14-10-25l-250-250q-11-11-25-11t-25 11l-250 250q-11 11-11 25t11 25 25 11h500q14 0 25-11t10-25z" horiz-adv-x="571.4" />
+<glyph glyph-name="edit" unicode="&#xe804;" d="m0-143l68 343 274-273z m137 392l422 422 259-260-421-422z m531 494q2 39 31 69t69 31 66-26l131-130q25-26 24-66t-30-69-69-30-66 24l-131 131q-27 27-25 66z" horiz-adv-x="989" />
+<glyph glyph-name="category" unicode="&#xe805;" d="m0-150l0 438 438 0 0-438-438 0z m0 563l0 437 438 0 0-437-438 0z m563-563l0 438 437 0 0-438-437 0z m0 563l0 437 437 0 0-437-437 0z" horiz-adv-x="1000" />
+<glyph glyph-name="right-dir" unicode="&#xe806;" d="m321 350q0-14-10-25l-250-250q-11-11-25-11t-25 11-11 25v500q0 15 11 25t25 11 25-11l250-250q10-10 10-25z" horiz-adv-x="357.1" />
+<glyph glyph-name="angle-left" unicode="&#xe807;" d="m350 546q0-7-6-12l-219-220 219-219q6-6 6-13t-6-13l-28-28q-5-5-12-5t-13 5l-260 260q-6 6-6 13t6 13l260 260q5 6 13 6t12-6l28-28q6-5 6-13z" horiz-adv-x="357.1" />
+<glyph glyph-name="angle-right" unicode="&#xe808;" d="m332 314q0-7-6-13l-260-260q-5-5-12-5t-13 5l-28 28q-6 6-6 13t6 13l219 219-219 220q-6 5-6 12t6 13l28 28q5 6 13 6t12-6l260-260q6-5 6-13z" horiz-adv-x="357.1" />
+<glyph glyph-name="angle-up" unicode="&#xe809;" d="m600 189q0-7-6-13l-28-27q-5-6-12-6t-13 6l-220 219-219-219q-5-6-13-6t-13 6l-27 27q-6 6-6 13t6 13l260 260q5 6 12 6t13-6l260-260q6-5 6-13z" horiz-adv-x="642.9" />
+<glyph glyph-name="angle-down" unicode="&#xe80a;" d="m600 439q0-7-6-13l-260-260q-5-5-13-5t-12 5l-260 260q-6 6-6 13t6 13l27 28q6 6 13 6t13-6l219-219 220 219q5 6 13 6t12-6l28-28q6-5 6-13z" horiz-adv-x="642.9" />
+<glyph glyph-name="minus" unicode="&#xe80b;" d="m0 209l0 282 1000 0 0-282-1000 0z" horiz-adv-x="1000" />
+<glyph glyph-name="left-open" unicode="&#xe80c;" d="m0 350l148 149 352 351 148-148-351-352 351-352-148-148-352 352z" horiz-adv-x="648" />
+<glyph glyph-name="time" unicode="&#xe80d;" d="m0 349q0 188 134 322t322 134 321-134 133-322-133-321-321-133-322 133-134 321z m119 0q0-140 99-238t238-99 238 99 99 238-99 238-238 99-238-99-99-238z m172-69l0 117 117 0 0 213 117 0 0-330-234 0z" horiz-adv-x="910" />
+<glyph glyph-name="up" unicode="&#xe80e;" d="m0 264l391 586 390-586-211 0 0-414-359 0 0 414-211 0z" horiz-adv-x="781" />
+<glyph glyph-name="quote" unicode="&#xe80f;" d="m0-62l0 437q0 71 15 129t38 97 61 67 72 45 83 28 82 14 81 7l37-176q-49-9-81-20t-66-31-48-53-10-77l131 0 0-467-395 0z m529 0l0 437q0 71 16 129t38 97 61 67 72 45 83 28 81 14 81 7l39-176q-51-9-83-20t-65-31-47-53-12-77l131 0 0-467-395 0z" horiz-adv-x="1000" />
+<glyph glyph-name="bookmark" unicode="&#xe810;" d="m0-56l0 906 609 0 0-1000-304 305-305-305 0 94z" horiz-adv-x="609" />
+<glyph glyph-name="left-dir" unicode="&#xe811;" d="m357 600v-500q0-14-10-25t-26-11-25 11l-250 250q-10 11-10 25t10 25l250 250q11 11 25 11t26-11 10-25z" horiz-adv-x="357.1" />
+<glyph glyph-name="up-open" unicode="&#xe812;" d="m0 174l352 352 148 148 148-148 352-352-148-148-352 351-352-351z" horiz-adv-x="1000" />
+<glyph glyph-name="ok" unicode="&#xe813;" d="m0 260l162 162 166-164 508 510 164-164-510-510-162-162-162 164z" horiz-adv-x="1000" />
+<glyph glyph-name="cancel" unicode="&#xe814;" d="m0 71l279 279-279 279 221 221 279-279 279 279 221-221-279-279 279-279-221-221-279 279-279-279z" horiz-adv-x="1000" />
+<glyph glyph-name="comments" unicode="&#xe815;" d="m0 192l0 607 854 0 0-607-405 0-273-176 0 176-176 0z m348-112l119 77 129 0 9-6 170-112 0 118 149 0 0 433-31 0 0 76 107 0 0-586-148 0 0-179-59 37-221 142-224 0z" horiz-adv-x="1000" />
+<glyph glyph-name="search" unicode="&#xe816;" d="m335 246l25-25q-28-28-85-86t-73-74l-27 27q16 15 74 73t86 85z m245 551q136 0 234-97t97-234-97-234-234-96q-64 0-123 24l-255-257-184 185 256 255q-26 63-26 123 0 137 98 234t234 97z m0-551q91 0 155 64t64 156-64 155-155 64-156-64-64-155 64-156 156-64z" horiz-adv-x="928" />
+<glyph glyph-name="category2" unicode="&#xe817;" d="m0-150l0 250 250 0 0-250-250 0z m0 375l0 250 250 0 0-250-250 0z m0 375l0 250 250 0 0-250-250 0z m391-750l0 250 609 0 0-250-609 0z m0 375l0 250 609 0 0-250-609 0z m0 375l0 250 609 0 0-250-609 0z" horiz-adv-x="1000" />
+<glyph glyph-name="link" unicode="&#xe818;" d="m812 171q0 23-15 38l-116 116q-16 16-38 16-24 0-40-18 1-1 10-10t12-12 9-11 7-14 2-15q0-23-16-38t-38-16q-8 0-15 2t-14 7-11 9-12 12-10 10q-19-17-19-40 0-23 16-38l115-116q15-15 38-15 22 0 38 15l82 81q15 16 15 37z m-392 394q0 22-15 38l-115 115q-16 16-38 16-22 0-38-15l-82-82q-16-15-16-37 0-22 16-38l116-116q15-15 38-15 23 0 40 17-2 2-11 11t-12 12-8 10-7 14-2 16q0 22 15 38t38 15q9 0 16-2t14-7 10-8 12-12 11-11q18 17 18 41z m500-394q0-67-48-113l-82-81q-46-47-113-47-68 0-114 48l-115 115q-46 47-46 114 0 68 49 116l-49 49q-48-49-116-49-67 0-114 47l-116 116q-47 47-47 114t47 113l82 82q47 46 114 46 67 0 114-47l114-116q47-46 47-113 0-69-49-117l49-49q48 49 116 49 67 0 114-47l116-116q47-47 47-114z" horiz-adv-x="928.6" />
+<glyph glyph-name="up-dir" unicode="&#xe819;" d="m571 171q0-14-10-25t-25-10h-500q-15 0-25 10t-11 25 11 26l250 250q10 10 25 10t25-10l250-250q10-11 10-26z" horiz-adv-x="571.4" />
+<glyph glyph-name="info" unicode="&#xe81a;" d="m357 100v-71q0-15-10-25t-26-11h-285q-15 0-25 11t-11 25v71q0 15 11 25t25 11h35v214h-35q-15 0-25 11t-11 25v71q0 15 11 25t25 11h214q15 0 25-11t11-25v-321h35q15 0 26-11t10-25z m-71 643v-107q0-15-11-25t-25-11h-143q-14 0-25 11t-11 25v107q0 14 11 25t25 11h143q15 0 25-11t11-25z" horiz-adv-x="357.1" />
+<glyph glyph-name="share" unicode="&#xe81b;" d="m0-121q0 143 24 256t60 186 95 124 107 76 122 38 114 15 107 2l0 245 371-372-371-371 0 268q-102 0-151-1t-126-10-114-26-86-51-74-83-47-124-31-172z" horiz-adv-x="1000" />
+<glyph glyph-name="folder-close" unicode="&#xe81c;" d="m0-52l0 560 1000 0 0-560-1000 0z m0 594l0 121 139 0 68 90 217 0 68-90 508 0 0-121-1000 0z" horiz-adv-x="1000" />
+<glyph glyph-name="folder-open" unicode="&#xe81d;" d="m0-52l0 55 147 505 853 0-172-560-828 0z m0 205l0 510 139 0 68 90 217 0 68-90 336 0 0-121-724 0z" horiz-adv-x="1000" />
+<glyph glyph-name="right-open" unicode="&#xe81e;" d="m0-2l352 352-352 352 148 148 352-351 148-149-148-148-352-352z" horiz-adv-x="648" />
+<glyph glyph-name="home" unicode="&#xe81f;" d="m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z" horiz-adv-x="928.6" />
+<glyph glyph-name="menu" unicode="&#xe820;" d="m0 850v-200h1000v200h-1000z m0-400v-200h1000v200h-1000z m0-400v-200h1000v200h-1000z" horiz-adv-x="1000" />
+<glyph glyph-name="plus" unicode="&#xe821;" d="m0 209l0 282 359 0 0 359 282 0 0-359 359 0 0-282-359 0 0-359-282 0 0 359-359 0z" horiz-adv-x="1000" />
+<glyph glyph-name="down-open" unicode="&#xe822;" d="m0 526l148 148 352-351 352 351 148-148-352-352-148-148-148 148z" horiz-adv-x="1000" />
+<glyph glyph-name="audio" unicode="&#xe823;" d="m1-16q-8 57 38 103t118 57q64 10 119-17l25 652 690 53q-32-727-34-756-1-51-45-91t-109-50q-72-10-129 22t-64 89 37 105 117 58q68 9 125-22l25 465-539-55-5-131q-6-131-12-277t-8-176l0-6q-6-50-49-89t-107-47q-70-10-127 23t-66 90z" horiz-adv-x="991" />
+<glyph glyph-name="image" unicode="&#xe824;" d="m0-68l0 836 1000 0 0-836-1000 0z m76 78l848 0 0 680-848 0 0-680z m90 80l0 59 150 195 102-86 193 291 223-228 0-231-668 0z m0 416q0 37 24 62t62 24q33 0 58-24t24-62q0-33-24-57t-58-25q-37 0-62 25t-24 57z" horiz-adv-x="1000" />
+<glyph glyph-name="camera" unicode="&#xe825;" d="m0-27l0 627 295 0 31 127 362 0 31-127 281 0 0-627-1000 0z m221 346q0-117 83-199t199-82 198 82 82 199-82 199-198 82-199-82-83-199z m84 0q0 82 57 140t140 59 141-59 58-140-58-140-141-57-140 57-57 140z m527 139l143 0 0 82-143 0 0-82z" horiz-adv-x="1000" />
+<glyph glyph-name="down" unicode="&#xe826;" d="m0 436l211 0 0 414 359 0 0-414 211 0-390-586z" horiz-adv-x="781" />
+<glyph glyph-name="left" unicode="&#xe827;" d="m0 350l586 391 0-211 414 0 0-360-414 0 0-211z" horiz-adv-x="1000" />
+<glyph glyph-name="right" unicode="&#xe828;" d="m0 170l0 360 414 0 0 211 586-391-586-391 0 211-414 0z" horiz-adv-x="1000" />
+<glyph glyph-name="video" unicode="&#xe829;" d="m0-150l0 1000 883 0 0-1000-883 0z m45 119l109 0 0 82-109 0 0-82z m0 184l109 0 0 84-109 0 0-84z m0 185l109 0 0 82-109 0 0-82z m0 186l109 0 0 82-109 0 0-82z m0 183l109 0 0 83-109 0 0-83z m156-826l481 0 0 436-481 0 0-436z m0 467l481 0 0 436-481 0 0-436z m528-379l109 0 0 82-109 0 0-82z m0 184l109 0 0 84-109 0 0-84z m0 185l109 0 0 82-109 0 0-82z m0 186l109 0 0 82-109 0 0-82z m0 183l109 0 0 83-109 0 0-83z" horiz-adv-x="883" />
+<glyph glyph-name="aside" unicode="&#xe82a;" d="m0 344l0 123q2 35 26 60t58 24l270 0q138 8 272 65t229 152q36-2 59-26t23-58l0-199q28-8 45-30t18-50q-2-30-19-51t-44-27l0-201q-1-36-26-59t-56-24q-207 184-449 211-66-33-53-127t77-142q-28-47-96-52t-105 30q-16 45-25 76t-16 71-7 78 10 72l-107 0q-35 2-60 27t-24 57z m438-10q240-44 419-183l0 508q-203-151-419-182l0-143z" horiz-adv-x="1000" />
+<glyph glyph-name="date" unicode="&#xe82b;" d="m0-150l0 649 893 0 0-649-893 0z m0 705l0 221 109 0 0-141 200 0 0 141 275 0 0-141 199 0 0 141 110 0 0-221-893 0z m168 139l0 156 82 0 0-156-82 0z m59-619q0-112 123-112 47 0 84 32 39 31 39 80 0 68-78 90 48 15 64 48 12 28-2 73-27 62-107 62-51 0-86-26t-37-77l72 0q0 45 49 46 43 0 45-52 0-49-84-47l0-57q48 0 68-8 23-11 23-46 0-57-54-61-43 0-47 55l-72 0z m281 146q49 14 88 47l0-297 70 0 0 371-64 0q-38-37-94-58l0-63z m135 473l0 156 82 0 0-156-82 0z" horiz-adv-x="893" />
+<glyph glyph-name="star-empty" unicode="&#xe82c;" d="m0 471l94 0 285-2 96 270 29 90 29-92 88-272 285-6 94-2-76-54-233-166 82-274 28-91-76 56-231 168-232-162-78-53 29 90 90 270-227 174z m189-64l168-129 20-14-8-21-66-203 176 123 17 11 18-13 172-125-61 203-6 21 18 14 174 125-215 4-22 2-8 21-64 201-70-199-8-21-235 0z" horiz-adv-x="1000" />
+<glyph glyph-name="star" unicode="&#xe82d;" d="m0 471l379-2 125 360 117-364 379-8-309-220 110-366-307 225-310-215 119 360z" horiz-adv-x="1000" />
+<glyph glyph-name="mail" unicode="&#xe82e;" d="m0-29l324 342 176-100 176 100 324-342-1000 0z m0 114l0 414 254-147z m0 503l0 141 1000 0 0-141-500-285z m746-236l254 147 0-414z" horiz-adv-x="1000" />
+<glyph glyph-name="home-1" unicode="&#xe82f;" d="m0-150l0 649 453 351 453-351 0-649-312 0 0 391-281 0 0-391-313 0z" horiz-adv-x="906" />
+<glyph glyph-name="attach" unicode="&#xe830;" d="m0 65q8 68 67 127l383 383q117 115 211 33 84-86-36-209l-353-351-66 70 349 349q2 0 8 6l8 8t7 9 6 10 6 9 4 11l0 10t-2 12q-19 17-74-37l-381-381q-37-35-41-69-4-39 35-78 41-33 70-28t71 46q82 80 218 215t194 195q2 2 18 17t17 17 15 16 15 17 12 17 13 19 11 20 10 25q16 57-33 123t-115 75q-68 7-152-73l-418-418-69 67 418 420q98 95 199 100t190-83q105-107 74-236-19-74-94-151-86-83-246-244l-209-209q-70-70-150-72-68 0-125 57-70 70-64 156z" horiz-adv-x="896" />
+<glyph glyph-name="eye" unicode="&#xe831;" d="m0 350q6 49 64 110 79 80 176 129 129 60 260 60 137-2 260-60 103-53 176-129 64-73 64-110-6-49-64-109-79-80-176-129-129-61-260-61-137 2-260 61-103 53-176 129-64 72-64 109z m264 0q0-94 69-159t167-65 167 65 69 159-69 159-167 66-167-66-69-159z m86 1q0 60 44 102t106 42 106-42 44-102-44-102-106-43-106 43-44 102z" horiz-adv-x="1000" />
+<glyph glyph-name="eye-off" unicode="&#xe832;" d="m0 326q6 49 64 110 79 80 176 128 129 61 260 61 29 0 59-2l74 129q10 16 23 18 4 0 8-2l51-32q17-7 2-33l-57-102-47-78-41-72-144-250-41-72-47-80-57-100q-15-25-31-15l-53 31q-15 8 0 33l49 86-8 4q-103 53-176 129-64 72-64 109z m264 0q0-74 47-133l48 84q-9 24-9 49 0 51 34 91t85 50l49 84-18 0q-98 0-167-66t-69-159z m177-295l41 71 18 0q98 0 167 65t69 159q0 74-47 133l63 109q2-2 4-3t4-1q103-52 176-129 64-72 64-109-6-49-64-109-79-80-176-129-129-61-260-61-25 0-59 4z m90 155l110 189q9-25 9-49 0-51-34-90t-85-50z" horiz-adv-x="1000" />
+<glyph glyph-name="tags" unicode="&#xe833;" d="m0 460l0 240q2 27 21 46t43 19l241 0q43 0 88-28l377-414q17-23 17-48t-17-44l-280-277q-21-18-47-18t-43 18l-355 397q-45 54-45 109z m104 138q0-25 17-42 22-20 46-19t42 19q18 19 18 44t-18 43q-20 18-45 17t-43-17q-17-21-17-45z m316 165l92 0q72-4 109-45l356-397q17-21 17-48t-17-44l-280-277q-60-35-95 8l271 271q18 22 18 47t-18 45l-318 356q-24 31-71 56t-64 28z" horiz-adv-x="994" />
+<glyph glyph-name="flag" unicode="&#xe834;" d="m0-79l0 803q68 41 136 51t124-3 112-35 112-43 114-31 124 2 137 59l0-459q-52-53-109-67t-110 1-117 40-124 51-135 35-151-11l0-393-113 0z" horiz-adv-x="859" />
+<glyph glyph-name="warning" unicode="&#xe835;" d="m0-150l500 1000 500-1000-1000 0z m461 180l78 0 0 82-78 0 0-82z m0 342l19-186 40 0 19 186 0 130-78 0 0-130z" horiz-adv-x="1000" />
+<glyph glyph-name="location" unicode="&#xe836;" d="m0 473q0 156 110 267t267 110 267-110 110-267q0-123-53-193l-324-430-324 430q-53 70-53 193z m219 0q0-66 46-112t112-46 112 46 46 112-46 112-112 46-112-46-46-112z" horiz-adv-x="754" />
+<glyph glyph-name="trash" unicode="&#xe837;" d="m0 633l0 141 289 0 0 76 246 0 0-76 289 0 0-141-824 0z m43-783l0 676 738 0 0-676-738 0z" horiz-adv-x="824" />
+<glyph glyph-name="doc" unicode="&#xe838;" d="m0-150l0 674 338 0 0 326 371 0 0-1000-709 0z m0 756l0 62 189 182 65 0 0-244-254 0z" horiz-adv-x="709" />
+<glyph glyph-name="phone" unicode="&#xe839;" d="m0 615q0 50 28 76l138 138q45 37 77-13l113-211q18-39-14-71l-51-52q-5-6-5-14 25-98 132-195l31-30t36-34 34-26 41-25 40-14q20-6 27 2l61 60q39 30 72 12l203-121q22-14 25-37t-13-39l-141-139q-27-27-74-27-140 4-318 121-258 185-375 406-72 151-67 233z" horiz-adv-x="988" />
+<glyph glyph-name="cog" unicode="&#xe83a;" d="m0 272l0 156 150 16q14 45 38 88l-96 117 109 109 117-95q41 23 88 37l16 150 156 0 16-150q45-14 88-37l117 95 109-109-96-117q24-43 38-88l150-16 0-156-150-16q-14-47-38-88l96-117-109-109-117 96q-43-24-88-38l-16-150-156 0-16 150q-47 14-88 38l-117-96-109 109 96 117q-24 41-38 88z m355 78q0-60 42-102t103-42 103 42 42 102-42 103-103 42-103-42-42-103z" horiz-adv-x="1000" />
+<glyph glyph-name="basket" unicode="&#xe83b;" d="m2 791q8 20 27 29t38 4l150-48q32-10 35-43l10-84 686-77q23-5 35-22t10-38l-43-238q-8-43-49-43l-608 0-11-69 578 0q21 0 36-14t15-36q-2-22-17-37t-34-14l-641 0q-25 2-39 19t-12 41l28 149-41 418-119 39q-45 17-34 64z m217-839q0 32 24 56t55 23 56-23 23-56-23-55-56-24-55 24-24 55z m469 0q0 32 23 56t56 23 56-23 23-56-23-55-56-24-56 24-23 55z" horiz-adv-x="993" />
+<glyph glyph-name="basket-circled" unicode="&#xe83c;" d="m0 350q0 207 147 354t353 146 354-146 146-354-146-354-354-146-353 146-147 354z m213 246q6-12 18-15l68-22 25-246-15-88q-2-14 6-23t23-12l377 0q12 0 20 9t9 20-9 21-20 10l-342 0 8 40 357 0q24 0 30 25l25 141q2 11-6 22t-21 13l-403 45-6 48q-2 20-19 28l-90 27q-12 4-23-2-26-15-12-41z m123-471q0-19 14-33t33-13 33 13 14 33-14 34-33 13-33-13-14-34z m275 0q0-19 14-33t33-13 33 13 14 33-14 34-33 13-33-13-14-34z" horiz-adv-x="1000" />
+<glyph glyph-name="wrench" unicode="&#xe83d;" d="m0 21l463 463q-25 68-10 145t72 134 133 72 147-10l-162-162 45-117 115-45 164 164q25-70 9-147t-73-133-132-72-148 8l-463-462z m113-2q0-20 14-34t33-13 33 13 14 34-14 33-33 14-33-14-14-33z" horiz-adv-x="982" />
+<glyph glyph-name="wrench-circled" unicode="&#xe83e;" d="m0 350q0 207 147 354t353 146 354-146 146-354-146-354-354-146-353 146-147 354z m199-201l100-100 283 284q41-16 89-6t82 44 44 81-6 89l-100-99-72 27-27 72 99 100q-25 10-54 10-69 0-115-49-36-33-45-81t5-89z m77-23q-20 21 1 42 20 20 41 0 20-21-1-42t-41 0z" horiz-adv-x="1000" />
+<glyph glyph-name="mic" unicode="&#xe83f;" d="m0 131l0 282 64 0 0-248q120-96 270-96t270 96l0 248 64 0 0-282q-31-27-64-50-82-53-178-71l0 32-184 0 0-32q-95 18-178 71-33 23-64 50z m109 90l0 549q30 25 69 45l0-113 54 0 0 134q38 12 75 14l0-148 54 0 0 148q37-4 77-14l0-134 54 0 0 111q37-18 67-43l0-549q-98-80-225-80t-225 80z m26-303l107 0 0 92q45-8 92-8t92 8l0-92 107 0 0-68-398 0 0 68z" horiz-adv-x="668" />
+<glyph glyph-name="volume" unicode="&#xe840;" d="m0 142l0 416 236 0 354 289 0-994-354 289-236 0z m652 35q73 74 73 176t-73 178l71 74q105-106 107-254 0-145-107-246z m118-119q123 119 123 295t-123 299l76 74q154-154 154-372t-154-372z" horiz-adv-x="1000" />
+<glyph glyph-name="volume-down" unicode="&#xe841;" d="m0 141l0 418 236 0 358 291 0-1000-358 291-236 0z m656 37q74 74 74 174 0 104-74 180l73 74q103-106 107-256 0-144-107-246z" horiz-adv-x="836" />
+<glyph glyph-name="volume-off" unicode="&#xe842;" d="m0 551l305 0 345 282 0-965-345 279-229 0z m713-283q0 4 2 6l76 76-76 76q-2 2-2 6t2 6l53 53q2 2 5 2t6-2l76-76 77 76q4 2 6 2t5-2l55-53q2-2 2-6t-2-6l-76-76 76-76q2-4 2-7t-2-5l-55-55q-2-1-5-1t-6 1l-77 79-76-79q-2-1-5-1t-6 1l-53 55q-2 2-2 6z" horiz-adv-x="1000" />
+<glyph glyph-name="headphones" unicode="&#xe843;" d="m0 69l0 250q0 207 147 353t353 147 354-147 146-353l0-250q-4-41-35-54t-61 5-29 49l0 250q0 156-109 265t-266 110-266-110-109-265l0-250q-4-41-35-54t-61 5-29 49z m188-157l0 313q0 14 8 22t23 9l62 0q14 0 23-9t9-22l0-313q0-13-9-22t-23-9l-62 0q-14 0-23 9t-8 22z m500 0l0 313q0 14 8 22t23 9l62 0q14 0 23-9t9-22l0-313q0-13-9-22t-23-9l-62 0q-14 0-23 9t-8 22z" horiz-adv-x="1000" />
+<glyph glyph-name="lightbulb" unicode="&#xe844;" d="m1 309q-2 12 7 22t22 11l90 16q14 2 26-5t13-20-7-23-24-13l-88-13q-14-2-25 5t-14 20z m2 251q-6 13 0 24t19 16 26-4l82-35q14-6 19-18t0-23-18-16-26 0l-82 39q-14 4-20 17z m160 207q2 13 14 21 10 5 22 2t21-16l49-76q7-12 5-26t-11-19-23-3-20 15l-51 76q-8 13-6 26z m57-241q17 39 49 66t75 41 94 14l4 0q51 0 94-14t75-41 50-66q43-104-15-227-22-43-47-92-14-25-25-73t-16-61q-4-12-16-14l-203 0q-12 2-18 14-29 111-39 134-25 49-47 92-58 131-15 227z m99-623q0 8 5 12t13 5l209 0q6 0 11-5t5-12l0-35q0-8-5-13t-11-5l-209 0q-18 0-18 18l0 35z m0 68l0 35q0 18 18 18l209 0q6 0 11-5t5-13l0-35q0-8-5-13t-11-4l-209 0q-8 0-13 4t-5 13z m94 754l0 90q0 16 8 25t21 10q12 0 21-10t9-25l0-90q0-14-9-23t-21-10q-13 0-21 10t-8 23z m193-53q-1 14 6 26l49 76q10 12 22 16t23-2q10-8 12-21t-6-26l-49-76q-10-12-21-15t-23 3-13 19z m118-339q2 13 12 20t25 5l90-16q13-2 22-12t7-21q-2-14-13-21t-26-4l-90 13q-14 2-22 13t-5 23z m8 187q-4 12 1 23t18 18l84 35q12 8 24 4t19-16 0-24-20-17l-82-39q-13-4-26 0t-18 16z" horiz-adv-x="881" />
+<glyph glyph-name="resize-full" unicode="&#xe845;" d="m0-150l0 441 148-148 202 201 144-144-201-202 148-148-441 0z m506 650l201 202-148 148 441 0 0-441-148 148-202-201z" horiz-adv-x="1000" />
+<glyph glyph-name="resize-full-alt" unicode="&#xe846;" d="m0-150l0 342 119-119 278 277-276 275-121-121 0 346 342 0-119-119 277-277 275 275-121 121 346 0 0-342-119 119-277-277 275-275 121 121 0-346-342 0 119 119-277 278-275-276 121-121-346 0z" horiz-adv-x="1000" />
+<glyph glyph-name="resize-small" unicode="&#xe847;" d="m0-4l201 202-148 146 441 0 0-441-146 148-201-201z m506 360l0 441 146-148 202 201 146-146-201-202 148-146-441 0z" horiz-adv-x="1000" />
+<glyph glyph-name="resize-vertical" unicode="&#xe848;" d="m0 104l170 0 0 492-170 0 254 254 254-254-170 0 0-492 170 0-254-254z" horiz-adv-x="508" />
+<glyph glyph-name="resize-horizontal" unicode="&#xe849;" d="m0 350l254 254 0-170 492 0 0 170 254-254-254-254 0 170-492 0 0-170z" horiz-adv-x="1000" />
+<glyph glyph-name="move" unicode="&#xe84a;" d="m0 350l172 172 0-119 275 0 0 275-119 0 172 172 172-172-119 0 0-275 275 0 0 119 172-172-172-172 0 119-275 0 0-275 119 0-172-172-172 172 119 0 0 275-275 0 0-119z" horiz-adv-x="1000" />
+<glyph glyph-name="zoom-in" unicode="&#xe84b;" d="m0 403q0 185 131 316t316 131 318-131 131-316q0-141-82-256l186-186-111-111-186 186q-115-82-256-82-185 0-316 131t-131 318z m127 0q0-133 94-227t226-93 227 93 94 227-94 225-227 93-226-93-94-225z m129-65l0 127 129 0 0 129 127 0 0-129 129 0 0-127-129 0 0-129-127 0 0 129-129 0z" horiz-adv-x="1000" />
+<glyph glyph-name="zoom-out" unicode="&#xe84c;" d="m0 403q0 185 131 316t316 131 318-131 131-316q0-141-82-256l186-186-111-111-186 186q-115-82-256-82-185 0-316 131t-131 318z m127 0q0-133 94-227t226-93 227 93 94 227-94 225-227 93-226-93-94-225z m129-65l0 127 385 0 0-127-385 0z" horiz-adv-x="1000" />
+<glyph glyph-name="arrows-cw" unicode="&#xe84d;" d="m0-150l0 402 402 0-160-160q108-107 258-107 125 0 222 75t130 192l138 0q-35-173-173-288t-317-114q-207 0-353 146z m10 598q35 174 173 288t317 114q207 0 354-146l146 146 0-402-402 0 160 160q-108 107-258 107-125 0-222-75t-130-192l-138 0z" horiz-adv-x="1000" />
+<glyph glyph-name="desktop" unicode="&#xe84e;" d="m0 104l0 660 1000 0 0-660-363 0 0-96 88 0 0-72-450 0 0 72 88 0 0 96-363 0z m123 125l754 0 0 410-754 0 0-410z" horiz-adv-x="1000" />
+<glyph glyph-name="inbox" unicode="&#xe84f;" d="m0-150l0 483 328 0q0-73 51-123t121-49 121 49 51 123l328 0 0-483-1000 0z m279 768l119 0 0 232 204 0 0-232 119 0-221-332z" horiz-adv-x="1000" />
+<glyph glyph-name="cloud" unicode="&#xe850;" d="m0 241q4 69 33 125t87 85 124 14q53 85 128 114t145 6 126-81 78-137q49 6 89-22t56-68 9-90-47-82l-791 0q-41 67-37 136z" horiz-adv-x="877" />
+<glyph glyph-name="book" unicode="&#xe851;" d="m0 147l0 543q0 31 14 53 29 45 102 77t116 9l471-242 0-590-86-47 0 590-420 224q-29 10-65-9t-58-47l469-270 0-529-86-47z" horiz-adv-x="703" />
+<glyph glyph-name="certificate" unicode="&#xe852;" d="m0 219l94 139-86 146 154 67 6 168 166-28 96 139 125-113 156 64 43-162 166-29-51-160 123-116-129-107 43-164-168-20-52-160-153 75-131-108-88 145-167-20 3 170z" horiz-adv-x="992" />
+<glyph glyph-name="tasks" unicode="&#xe853;" d="m0-41l0 196 1000 0 0-196-1000 0z m0 293l0 196 1000 0 0-196-1000 0z m0 293l0 196 1000 0 0-196-1000 0z m406-244l543 0 0 100-543 0 0-100z m221 293l322 0 0 100-322 0 0-100z m119-586l203 0 0 100-203 0 0-100z" horiz-adv-x="1000" />
+<glyph glyph-name="thumbs-up" unicode="&#xe854;" d="m0-63l0 552q0 16 10 25t25 11l147 0q33 0 35-36l0-552q0-14-10-24t-25-12l-147 0q-13 0-23 10t-12 26z m277 27l0 500q0 22 14 35t37 16l113 0 114 252q13 31 41 31 37 2 93-61 18-25 25-55t6-48-9-64-10-55l248 0q26 0 38-17t11-44l-70-429q-12-42-53-74t-88-38l-459 0q-21 0-35 14t-16 37z" horiz-adv-x="998" />
+<glyph glyph-name="thumbs-down" unicode="&#xe855;" d="m0 212l0 552q2 34 35 34l147 0q35-2 35-34l0-552q-2-16-12-26t-23-10l-147 0q-13 2-24 12t-11 24z m277 23l0 502q2 21 16 35t33 14l459 0q35-2 70-22 55-33 71-88l70-429q2-26-13-43t-36-18l-248 0q8-58 22-117 6-90-94-158-20-14-43-6-20 6-31 29l-112 252-115 0q-21 2-35 16t-14 33z" horiz-adv-x="996" />
+<glyph glyph-name="help-circled" unicode="&#xe856;" d="m0 350q0 207 147 354t353 146 354-146 146-354-146-354-354-146-353 146-147 354z m316 264q-3-49 12-57l57 0q21 47 70 45 33 0 58-32t10-66q-9-23-29-55t-31-56q-20-41-21-90t21-97l70-2q-8 41 9 79t58 89 45 56q25 39 32 62t7 59q0 71-49 121-53 55-145 55-47 0-109-37t-65-74z m94-553q0-35 25-61t59-25 61 25 25 61-25 60-61 24-59-24-25-60z" horiz-adv-x="1000" />
+<glyph glyph-name="star-circled" unicode="&#xe857;" d="m0 350q0 207 147 354t353 146 354-146 146-354-146-354-354-146-353 146-147 354z m160 82l205-156-80-246 211 148 209-152-74 246 209 152-258 4-78 246-86-242-258 0z" horiz-adv-x="1000" />
+<glyph glyph-name="bell" unicode="&#xe858;" d="m0 10l0 45 197 170 0 266q0 107 68 190t171 105l0 62 130 0 0-62q102-22 170-105t69-190l0-266 195-170 0-45-1000 0z m428-87q0 30 21 52t52 21 52-21 21-52-21-51-52-20-52 20-21 51z" horiz-adv-x="1000" />
+<glyph glyph-name="rss" unicode="&#xe859;" d="m0-150l0 199q82 0 141-58t58-141l-199 0z m0 400l0 200q248 0 424-176t176-424l-200 0q0 166-117 283t-283 117z m0 401l0 199q203 0 389-79t319-213 213-319 79-389l-199 0q0 217-108 401t-292 292-401 108z" horiz-adv-x="1000" />
+<glyph glyph-name="trash-circled" unicode="&#xe85a;" d="m0 350q0 207 147 354t353 146 354-146 146-354-146-354-354-146-353 146-147 354z m242 178l516 0 0 88-180 0 0 46-156 0 0-46-180 0 0-88z m28-490l460 0 0 421-460 0 0-421z" horiz-adv-x="1000" />
+<glyph glyph-name="cogs" unicode="&#xe85b;" d="m0 245l0 97 94 8q8 30 23 55l-60 74 68 69 74-61q26 16 55 23l8 94 97 0 10-94q29-7 55-23l74 61 68-69-60-74q16-25 23-55l94-8 0-97-94-10q-7-29-23-55l60-72-68-70-74 60q-26-15-55-23l-10-94-97 0-8 94q-29 8-55 23l-74-60-68 70 60 72q-15 26-23 55z m221 49q0-37 26-64t64-26 63 26 26 64-26 63-63 26-64-26-26-63z m318 238l8 72 70-2q8 22 20 39l-37 57 54 45 49-49q20 10 41 14l14 66 72-8-2-68q22-8 39-22l57 39 45-54-49-49q10-20 12-43l68-14-8-70-68 0q-8-20-22-37l39-59-56-45-47 49q-22-8-43-12l-14-66-70 6 0 70q-20 8-37 20l-59-37-45 54 49 49q-8 20-12 41z m31-446l6 51 49 0q6 16 14 28l-26 43 37 33 36-37q13 7 29 9l10 49 48-6 0-48q16-6 28-16l41 27 31-41-35-35q6-14 10-29l47-12-6-51-49 0q-4-15-14-27l28-43-40-33-35 37q-13-8-29-10l-10-49-49 6 0 51q-13 4-27 14l-41-28-31 41 35 35q-6 14-8 30z m118 14q-4-21 8-36t32-18 34 10 17 33-10 36-31 18l-6 0q-17 0-31-13t-13-30z m17 451q-4-27 14-49t45-24 48 15 23 45-14 47-44 25l-7 0q-26 0-44-17t-21-42z" horiz-adv-x="1000" />
+<glyph glyph-name="cog-circled" unicode="&#xe85c;" d="m0 350q0 207 147 354t353 146 354-146 146-354-146-354-354-146-353 146-147 354z m195-47l92-10q8-29 22-52l-59-73 68-68 73 59q23-14 52-22l10-92 94 0 10 92q29 8 52 22l73-59 68 68-59 73q14 23 22 52l92 10 0 94-92 10q-8 29-22 52l59 73-68 68-73-59q-23 14-52 22l-10 92-94 0-10-92q-29-8-52-22l-73 59-68-68 59-73q-14-23-22-52l-92-10 0-94z m217 47q0 37 26 63t62 25 63-25 25-63-25-62-63-26-62 26-26 62z" horiz-adv-x="1000" />
+<glyph glyph-name="calendar-circled" unicode="&#xe85d;" d="m0 350q0 207 147 354t353 146 354-146 146-354-146-354-354-146-353 146-147 354z m219-314l562 0 0 408-562 0 0-408z m0 443l562 0 0 139-68 0 0-88-127 0 0 88-172 0 0-88-127 0 0 88-68 0 0-139z m105 88l53 0 0 98-53 0 0-98z m37-391l47 0q2-35 30-35 33 2 33 39 0 24-16 29-12 6-43 6l0 35q53-2 53 30 0 33-27 33-32-2-32-29l-45 0q2 31 25 47t53 17q51 0 67-39 10-27 2-45-10-21-39-31 49-14 49-57-2-31-26-51t-53-19q-78 0-78 70z m178 92l0 39q35 16 59 37l41 0 0-234-45 0 0 189q-24-21-55-31z m84 299l53 0 0 98-53 0 0-98z" horiz-adv-x="1000" />
+<glyph glyph-name="mic-circled" unicode="&#xe85e;" d="m0 350q0 207 147 354t353 146 354-146 146-354-146-354-354-146-353 146-147 354z m283-142q20-18 43-32 53-35 115-47l0 22 118 0 0-22q62 12 115 47 23 14 43 32l0 183-43 0 0-162q-76-63-174-63t-174 63l0 162-43 0 0-183z m71 58q64-53 146-53t146 53l0 358q-19 15-44 27l0-72-36 0 0 87q-23 6-48 8l0-95-36 0 0 95q-25 0-48-8l0-87-36 0 0 74q-25-14-44-29l0-358z m15-240l262 0 0 43-72 0 0 60q-30-5-59-5t-59 5l0-60-72 0 0-43z" horiz-adv-x="1000" />
+<glyph glyph-name="volume-up" unicode="&#xe85f;" d="m0 169l0 360 203 0 307 250 0-858-307 248-203 0z m563 33q62 63 62 151t-62 152l60 65q90-90 92-219 0-125-92-213z m101-105q106 105 106 256t-106 258l66 62q131-133 131-319t-131-321z m100-98q146 147 146 354t-146 353l62 65q82-82 128-190t46-227-46-229-128-190z" horiz-adv-x="1000" />
+<glyph glyph-name="print" unicode="&#xe860;" d="m0 176l0 305 1000 0 0-305-154 0 54-265-800 0 54 265-154 0z m33 362l235 99 39 0 0 153 386 0 0-153 39 0 235-99-934 0z m131-553l672 0-78 381-516 0z" horiz-adv-x="1000" />
+<glyph glyph-name="edit-alt" unicode="&#xe861;" d="m0-150l0 1000 646 0-164-164-318 0 0-672 672 0 0 319 164 164 0-647-1000 0z m363 363l0 118 6 0q39 2 72-30 39-39 39-88l-117 0z m51 176l367 367 125-125-367-367z m397 397l64 64 125-125-64-64z" horiz-adv-x="1000" />
+<glyph glyph-name="edit-2" unicode="&#xe862;" d="m0-150l0 818 188 182 521 0 0-226 31 31 162-160-380-381-239-78 76 238 262 262 0 226-369 0 0-156-164 0 0-668 533 0 0 143 88 87 0-318-709 0z m361 264l119 39-80 82z" horiz-adv-x="902" />
+<glyph glyph-name="block" unicode="&#xe863;" d="m0 349q0 188 134 322t322 134 321-134 133-322-133-321-321-133-322 133-134 321z m115 27q-9-126 63-225l476 476q-99 73-225 63t-215-99-99-215z m143-305q99-73 224-63t215 100 100 215-63 224z" horiz-adv-x="910" />
+</font>
+</defs>
+</svg> \ No newline at end of file
diff --git a/themes/mantra/resources/fonts/elusive.ttf b/themes/mantra/resources/fonts/elusive.ttf
new file mode 100644
index 00000000..b79c6863
--- /dev/null
+++ b/themes/mantra/resources/fonts/elusive.ttf
Binary files differ
diff --git a/themes/mantra/resources/fonts/elusive.woff b/themes/mantra/resources/fonts/elusive.woff
new file mode 100644
index 00000000..8ae2c974
--- /dev/null
+++ b/themes/mantra/resources/fonts/elusive.woff
Binary files differ
diff --git a/themes/mantra/images/back2top.png b/themes/mantra/resources/images/back2top.png
index 64e246f3..64e246f3 100644
--- a/themes/mantra/images/back2top.png
+++ b/themes/mantra/resources/images/back2top.png
Binary files differ
diff --git a/themes/mantra/images/bullet.png b/themes/mantra/resources/images/bullet.png
index 39c7df90..39c7df90 100644
--- a/themes/mantra/images/bullet.png
+++ b/themes/mantra/resources/images/bullet.png
Binary files differ
diff --git a/themes/mantra/images/bullets/arrow_black.png b/themes/mantra/resources/images/bullets/arrow_black.png
index 8c06cc05..8c06cc05 100644
--- a/themes/mantra/images/bullets/arrow_black.png
+++ b/themes/mantra/resources/images/bullets/arrow_black.png
Binary files differ
diff --git a/themes/mantra/images/bullets/arrow_white.png b/themes/mantra/resources/images/bullets/arrow_white.png
index e5ded70b..e5ded70b 100644
--- a/themes/mantra/images/bullets/arrow_white.png
+++ b/themes/mantra/resources/images/bullets/arrow_white.png
Binary files differ
diff --git a/themes/mantra/images/bullets/bullet_dark.png b/themes/mantra/resources/images/bullets/bullet_dark.png
index 53b959d4..53b959d4 100644
--- a/themes/mantra/images/bullets/bullet_dark.png
+++ b/themes/mantra/resources/images/bullets/bullet_dark.png
Binary files differ
diff --git a/themes/mantra/images/bullets/bullet_gray.png b/themes/mantra/resources/images/bullets/bullet_gray.png
index f71c645d..f71c645d 100644
--- a/themes/mantra/images/bullets/bullet_gray.png
+++ b/themes/mantra/resources/images/bullets/bullet_gray.png
Binary files differ
diff --git a/themes/mantra/images/bullets/bullet_light.png b/themes/mantra/resources/images/bullets/bullet_light.png
index b41a6023..b41a6023 100644
--- a/themes/mantra/images/bullets/bullet_light.png
+++ b/themes/mantra/resources/images/bullets/bullet_light.png
Binary files differ
diff --git a/themes/mantra/images/bullets/mantra_dot2.png b/themes/mantra/resources/images/bullets/mantra_dot2.png
index 4d20a004..4d20a004 100644
--- a/themes/mantra/images/bullets/mantra_dot2.png
+++ b/themes/mantra/resources/images/bullets/mantra_dot2.png
Binary files differ
diff --git a/themes/mantra/images/bullets/square_dark.png b/themes/mantra/resources/images/bullets/square_dark.png
index 471f894f..471f894f 100644
--- a/themes/mantra/images/bullets/square_dark.png
+++ b/themes/mantra/resources/images/bullets/square_dark.png
Binary files differ
diff --git a/themes/mantra/images/bullets/square_white.png b/themes/mantra/resources/images/bullets/square_white.png
index c489c514..c489c514 100644
--- a/themes/mantra/images/bullets/square_white.png
+++ b/themes/mantra/resources/images/bullets/square_white.png
Binary files differ
diff --git a/themes/mantra/images/bullets/triangle_dark.png b/themes/mantra/resources/images/bullets/triangle_dark.png
index b4eb725c..b4eb725c 100644
--- a/themes/mantra/images/bullets/triangle_dark.png
+++ b/themes/mantra/resources/images/bullets/triangle_dark.png
Binary files differ
diff --git a/themes/mantra/images/bullets/triangle_gray.png b/themes/mantra/resources/images/bullets/triangle_gray.png
index d0c8edd4..d0c8edd4 100644
--- a/themes/mantra/images/bullets/triangle_gray.png
+++ b/themes/mantra/resources/images/bullets/triangle_gray.png
Binary files differ
diff --git a/themes/mantra/images/bullets/triangle_white.png b/themes/mantra/resources/images/bullets/triangle_white.png
index 2276d387..2276d387 100644
--- a/themes/mantra/images/bullets/triangle_white.png
+++ b/themes/mantra/resources/images/bullets/triangle_white.png
Binary files differ
diff --git a/themes/mantra/images/headers/mantra.png b/themes/mantra/resources/images/headers/mantra.png
index 45e9bb0b..45e9bb0b 100644
--- a/themes/mantra/images/headers/mantra.png
+++ b/themes/mantra/resources/images/headers/mantra.png
Binary files differ
diff --git a/themes/mantra/images/headers/mantra_thumbnail.png b/themes/mantra/resources/images/headers/mantra_thumbnail.png
index c2342994..c2342994 100644
--- a/themes/mantra/images/headers/mantra_thumbnail.png
+++ b/themes/mantra/resources/images/headers/mantra_thumbnail.png
Binary files differ
diff --git a/themes/mantra/images/icon-back.png b/themes/mantra/resources/images/icon-back.png
index 74621e5c..74621e5c 100644
--- a/themes/mantra/images/icon-back.png
+++ b/themes/mantra/resources/images/icon-back.png
Binary files differ
diff --git a/themes/mantra/images/icon-featured.png b/themes/mantra/resources/images/icon-featured.png
index 2b137b80..2b137b80 100644
--- a/themes/mantra/images/icon-featured.png
+++ b/themes/mantra/resources/images/icon-featured.png
Binary files differ
diff --git a/themes/mantra/images/icon-tooltip.png b/themes/mantra/resources/images/icon-tooltip.png
index f925d33d..f925d33d 100644
--- a/themes/mantra/images/icon-tooltip.png
+++ b/themes/mantra/resources/images/icon-tooltip.png
Binary files differ
diff --git a/themes/mantra/images/nivoslider/arrows.png b/themes/mantra/resources/images/nivoslider/arrows.png
index 8f562bd8..8f562bd8 100644
--- a/themes/mantra/images/nivoslider/arrows.png
+++ b/themes/mantra/resources/images/nivoslider/arrows.png
Binary files differ
diff --git a/themes/mantra/images/nivoslider/bullets.png b/themes/mantra/resources/images/nivoslider/bullets.png
index a84c9c0b..a84c9c0b 100644
--- a/themes/mantra/images/nivoslider/bullets.png
+++ b/themes/mantra/resources/images/nivoslider/bullets.png
Binary files differ
diff --git a/themes/mantra/images/nivoslider/loading.gif b/themes/mantra/resources/images/nivoslider/loading.gif
index 1560b646..1560b646 100644
--- a/themes/mantra/images/nivoslider/loading.gif
+++ b/themes/mantra/resources/images/nivoslider/loading.gif
Binary files differ
diff --git a/themes/mantra/images/pins/Pin1.png b/themes/mantra/resources/images/pins/Pin1.png
index a08ae4c3..a08ae4c3 100644
--- a/themes/mantra/images/pins/Pin1.png
+++ b/themes/mantra/resources/images/pins/Pin1.png
Binary files differ
diff --git a/themes/mantra/images/pins/Pin2.png b/themes/mantra/resources/images/pins/Pin2.png
index 3de309a5..3de309a5 100644
--- a/themes/mantra/images/pins/Pin2.png
+++ b/themes/mantra/resources/images/pins/Pin2.png
Binary files differ
diff --git a/themes/mantra/images/pins/Pin3.png b/themes/mantra/resources/images/pins/Pin3.png
index 43fc6b66..43fc6b66 100644
--- a/themes/mantra/images/pins/Pin3.png
+++ b/themes/mantra/resources/images/pins/Pin3.png
Binary files differ
diff --git a/themes/mantra/images/pins/Pin4.png b/themes/mantra/resources/images/pins/Pin4.png
index c6d92807..c6d92807 100644
--- a/themes/mantra/images/pins/Pin4.png
+++ b/themes/mantra/resources/images/pins/Pin4.png
Binary files differ
diff --git a/themes/mantra/images/pins/Pin5.png b/themes/mantra/resources/images/pins/Pin5.png
index 8927b6b8..8927b6b8 100644
--- a/themes/mantra/images/pins/Pin5.png
+++ b/themes/mantra/resources/images/pins/Pin5.png
Binary files differ
diff --git a/themes/mantra/images/pins/mantra_dot.png b/themes/mantra/resources/images/pins/mantra_dot.png
index 4d20a004..4d20a004 100644
--- a/themes/mantra/images/pins/mantra_dot.png
+++ b/themes/mantra/resources/images/pins/mantra_dot.png
Binary files differ
diff --git a/themes/mantra/images/post-formats/brackets.png b/themes/mantra/resources/images/post-formats/brackets.png
index 95c8a3a9..95c8a3a9 100644
--- a/themes/mantra/images/post-formats/brackets.png
+++ b/themes/mantra/resources/images/post-formats/brackets.png
Binary files differ
diff --git a/themes/mantra/images/post-formats/brackets2.png b/themes/mantra/resources/images/post-formats/brackets2.png
index 130783c9..130783c9 100644
--- a/themes/mantra/images/post-formats/brackets2.png
+++ b/themes/mantra/resources/images/post-formats/brackets2.png
Binary files differ
diff --git a/themes/mantra/images/post-formats/bubble.png b/themes/mantra/resources/images/post-formats/bubble.png
index 0d1a1a56..0d1a1a56 100644
--- a/themes/mantra/images/post-formats/bubble.png
+++ b/themes/mantra/resources/images/post-formats/bubble.png
Binary files differ
diff --git a/themes/mantra/images/post-formats/link.png b/themes/mantra/resources/images/post-formats/link.png
index 189e463d..189e463d 100644
--- a/themes/mantra/images/post-formats/link.png
+++ b/themes/mantra/resources/images/post-formats/link.png
Binary files differ
diff --git a/themes/mantra/images/post-formats/picture.png b/themes/mantra/resources/images/post-formats/picture.png
index ae07e735..ae07e735 100644
--- a/themes/mantra/images/post-formats/picture.png
+++ b/themes/mantra/resources/images/post-formats/picture.png
Binary files differ
diff --git a/themes/mantra/images/post-formats/quotes.png b/themes/mantra/resources/images/post-formats/quotes.png
index 4fa4e7fd..4fa4e7fd 100644
--- a/themes/mantra/images/post-formats/quotes.png
+++ b/themes/mantra/resources/images/post-formats/quotes.png
Binary files differ
diff --git a/themes/mantra/resources/images/slider/mantra-column-1.jpg b/themes/mantra/resources/images/slider/mantra-column-1.jpg
new file mode 100644
index 00000000..d7196d60
--- /dev/null
+++ b/themes/mantra/resources/images/slider/mantra-column-1.jpg
Binary files differ
diff --git a/themes/mantra/resources/images/slider/mantra-column-2.jpg b/themes/mantra/resources/images/slider/mantra-column-2.jpg
new file mode 100644
index 00000000..2980d952
--- /dev/null
+++ b/themes/mantra/resources/images/slider/mantra-column-2.jpg
Binary files differ
diff --git a/themes/mantra/resources/images/slider/mantra-column-3.jpg b/themes/mantra/resources/images/slider/mantra-column-3.jpg
new file mode 100644
index 00000000..edcab17b
--- /dev/null
+++ b/themes/mantra/resources/images/slider/mantra-column-3.jpg
Binary files differ
diff --git a/themes/mantra/resources/images/slider/mantra-slider-1.jpg b/themes/mantra/resources/images/slider/mantra-slider-1.jpg
new file mode 100644
index 00000000..1997ff01
--- /dev/null
+++ b/themes/mantra/resources/images/slider/mantra-slider-1.jpg
Binary files differ
diff --git a/themes/mantra/resources/images/slider/mantra-slider-2.jpg b/themes/mantra/resources/images/slider/mantra-slider-2.jpg
new file mode 100644
index 00000000..dda5976c
--- /dev/null
+++ b/themes/mantra/resources/images/slider/mantra-slider-2.jpg
Binary files differ
diff --git a/themes/mantra/resources/images/slider/mantra-slider-3.jpg b/themes/mantra/resources/images/slider/mantra-slider-3.jpg
new file mode 100644
index 00000000..cb831c53
--- /dev/null
+++ b/themes/mantra/resources/images/slider/mantra-slider-3.jpg
Binary files differ
diff --git a/themes/mantra/resources/images/socials/AIM.png b/themes/mantra/resources/images/socials/AIM.png
new file mode 100644
index 00000000..feed4b34
--- /dev/null
+++ b/themes/mantra/resources/images/socials/AIM.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/AboutMe.png b/themes/mantra/resources/images/socials/AboutMe.png
new file mode 100644
index 00000000..67ccb130
--- /dev/null
+++ b/themes/mantra/resources/images/socials/AboutMe.png
Binary files differ
diff --git a/themes/mantra/images/socials/VK.png b/themes/mantra/resources/images/socials/Amazon.png
index 9341f73a..28268779 100644
--- a/themes/mantra/images/socials/VK.png
+++ b/themes/mantra/resources/images/socials/Amazon.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Contact.png b/themes/mantra/resources/images/socials/Contact.png
new file mode 100644
index 00000000..77f380df
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Contact.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Delicious.png b/themes/mantra/resources/images/socials/Delicious.png
new file mode 100644
index 00000000..4b68a58f
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Delicious.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/DeviantArt.png b/themes/mantra/resources/images/socials/DeviantArt.png
new file mode 100644
index 00000000..3d87b7ea
--- /dev/null
+++ b/themes/mantra/resources/images/socials/DeviantArt.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Digg.png b/themes/mantra/resources/images/socials/Digg.png
new file mode 100644
index 00000000..3fc6d350
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Digg.png
Binary files differ
diff --git a/themes/mantra/images/socials/Yelp.png b/themes/mantra/resources/images/socials/Discord.png
index d23d8289..0b121637 100644
--- a/themes/mantra/images/socials/Yelp.png
+++ b/themes/mantra/resources/images/socials/Discord.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Dribbble.png b/themes/mantra/resources/images/socials/Dribbble.png
new file mode 100644
index 00000000..d83f386f
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Dribbble.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Etsy.png b/themes/mantra/resources/images/socials/Etsy.png
new file mode 100644
index 00000000..1cd0e4eb
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Etsy.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Facebook.png b/themes/mantra/resources/images/socials/Facebook.png
new file mode 100644
index 00000000..0d1a45bd
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Facebook.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Flickr.png b/themes/mantra/resources/images/socials/Flickr.png
new file mode 100644
index 00000000..c43ede6d
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Flickr.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/FriendFeed.png b/themes/mantra/resources/images/socials/FriendFeed.png
new file mode 100644
index 00000000..d469fee3
--- /dev/null
+++ b/themes/mantra/resources/images/socials/FriendFeed.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Github.png b/themes/mantra/resources/images/socials/Github.png
new file mode 100644
index 00000000..4f1c793f
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Github.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/GoodReads.png b/themes/mantra/resources/images/socials/GoodReads.png
new file mode 100644
index 00000000..3f54da45
--- /dev/null
+++ b/themes/mantra/resources/images/socials/GoodReads.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/GooglePlus.png b/themes/mantra/resources/images/socials/GooglePlus.png
new file mode 100644
index 00000000..4e93c540
--- /dev/null
+++ b/themes/mantra/resources/images/socials/GooglePlus.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/IMDb.png b/themes/mantra/resources/images/socials/IMDb.png
new file mode 100644
index 00000000..bc072444
--- /dev/null
+++ b/themes/mantra/resources/images/socials/IMDb.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Instagram.png b/themes/mantra/resources/images/socials/Instagram.png
new file mode 100644
index 00000000..2762556e
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Instagram.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/LastFM.png b/themes/mantra/resources/images/socials/LastFM.png
new file mode 100644
index 00000000..0a1bc9a3
--- /dev/null
+++ b/themes/mantra/resources/images/socials/LastFM.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/LinkedIn.png b/themes/mantra/resources/images/socials/LinkedIn.png
new file mode 100644
index 00000000..eec64935
--- /dev/null
+++ b/themes/mantra/resources/images/socials/LinkedIn.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Mail.png b/themes/mantra/resources/images/socials/Mail.png
new file mode 100644
index 00000000..77f380df
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Mail.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/MindVox.png b/themes/mantra/resources/images/socials/MindVox.png
new file mode 100644
index 00000000..eedd746a
--- /dev/null
+++ b/themes/mantra/resources/images/socials/MindVox.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/MySpace.png b/themes/mantra/resources/images/socials/MySpace.png
new file mode 100644
index 00000000..7d4d2757
--- /dev/null
+++ b/themes/mantra/resources/images/socials/MySpace.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Newsvine.png b/themes/mantra/resources/images/socials/Newsvine.png
new file mode 100644
index 00000000..9620801e
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Newsvine.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Patreon.png b/themes/mantra/resources/images/socials/Patreon.png
new file mode 100644
index 00000000..ac000a38
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Patreon.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/PayPal.png b/themes/mantra/resources/images/socials/PayPal.png
new file mode 100644
index 00000000..2ffa3ce6
--- /dev/null
+++ b/themes/mantra/resources/images/socials/PayPal.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Phone.png b/themes/mantra/resources/images/socials/Phone.png
new file mode 100644
index 00000000..d3f4f20d
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Phone.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Picasa.png b/themes/mantra/resources/images/socials/Picasa.png
new file mode 100644
index 00000000..c13e8a43
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Picasa.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Pinterest.png b/themes/mantra/resources/images/socials/Pinterest.png
new file mode 100644
index 00000000..8dd63de3
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Pinterest.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/RSS.png b/themes/mantra/resources/images/socials/RSS.png
new file mode 100644
index 00000000..344cddbf
--- /dev/null
+++ b/themes/mantra/resources/images/socials/RSS.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Reddit.png b/themes/mantra/resources/images/socials/Reddit.png
new file mode 100644
index 00000000..7a541bac
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Reddit.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/ShareThis.png b/themes/mantra/resources/images/socials/ShareThis.png
new file mode 100644
index 00000000..c1cb8d41
--- /dev/null
+++ b/themes/mantra/resources/images/socials/ShareThis.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Skype.png b/themes/mantra/resources/images/socials/Skype.png
new file mode 100644
index 00000000..7ecbf993
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Skype.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/SoundCloud.png b/themes/mantra/resources/images/socials/SoundCloud.png
new file mode 100644
index 00000000..2e46319e
--- /dev/null
+++ b/themes/mantra/resources/images/socials/SoundCloud.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Steam-old.png b/themes/mantra/resources/images/socials/Steam-old.png
new file mode 100644
index 00000000..5b363c73
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Steam-old.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Steam-round.png b/themes/mantra/resources/images/socials/Steam-round.png
new file mode 100644
index 00000000..ce5b71d3
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Steam-round.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Steam.png b/themes/mantra/resources/images/socials/Steam.png
new file mode 100644
index 00000000..ce5b71d3
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Steam.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/StumbleUpon.png b/themes/mantra/resources/images/socials/StumbleUpon.png
new file mode 100644
index 00000000..a454faad
--- /dev/null
+++ b/themes/mantra/resources/images/socials/StumbleUpon.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Technorati.png b/themes/mantra/resources/images/socials/Technorati.png
new file mode 100644
index 00000000..2d40d883
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Technorati.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/TripAdvisor.png b/themes/mantra/resources/images/socials/TripAdvisor.png
new file mode 100644
index 00000000..6b74f9d5
--- /dev/null
+++ b/themes/mantra/resources/images/socials/TripAdvisor.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Tumblr.png b/themes/mantra/resources/images/socials/Tumblr.png
new file mode 100644
index 00000000..4198bcb4
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Tumblr.png
Binary files differ
diff --git a/themes/mantra/images/socials/Twitch.png b/themes/mantra/resources/images/socials/Twitch.png
index 9c641a45..76022131 100644
--- a/themes/mantra/images/socials/Twitch.png
+++ b/themes/mantra/resources/images/socials/Twitch.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Twitter-old.png b/themes/mantra/resources/images/socials/Twitter-old.png
new file mode 100644
index 00000000..6ad0fdbb
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Twitter-old.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Twitter.png b/themes/mantra/resources/images/socials/Twitter.png
new file mode 100644
index 00000000..8e2d0aa0
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Twitter.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/VK.png b/themes/mantra/resources/images/socials/VK.png
new file mode 100644
index 00000000..8192205d
--- /dev/null
+++ b/themes/mantra/resources/images/socials/VK.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Vimeo.png b/themes/mantra/resources/images/socials/Vimeo.png
new file mode 100644
index 00000000..c17ddf57
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Vimeo.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/WordPress.png b/themes/mantra/resources/images/socials/WordPress.png
new file mode 100644
index 00000000..24617ea5
--- /dev/null
+++ b/themes/mantra/resources/images/socials/WordPress.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Xing.png b/themes/mantra/resources/images/socials/Xing.png
new file mode 100644
index 00000000..3d593587
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Xing.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/Yahoo.png b/themes/mantra/resources/images/socials/Yahoo.png
new file mode 100644
index 00000000..295f5fd0
--- /dev/null
+++ b/themes/mantra/resources/images/socials/Yahoo.png
Binary files differ
diff --git a/themes/mantra/images/socials/Xing.png b/themes/mantra/resources/images/socials/Yelp.png
index 62d0959f..025f5f00 100644
--- a/themes/mantra/images/socials/Xing.png
+++ b/themes/mantra/resources/images/socials/Yelp.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/YouTube-old.png b/themes/mantra/resources/images/socials/YouTube-old.png
new file mode 100644
index 00000000..d61d7c60
--- /dev/null
+++ b/themes/mantra/resources/images/socials/YouTube-old.png
Binary files differ
diff --git a/themes/mantra/resources/images/socials/YouTube.png b/themes/mantra/resources/images/socials/YouTube.png
new file mode 100644
index 00000000..0fd7c628
--- /dev/null
+++ b/themes/mantra/resources/images/socials/YouTube.png
Binary files differ
diff --git a/themes/mantra/js/PIE/PIE.htc b/themes/mantra/resources/js/PIE/PIE.htc
index ca3b5470..ca3b5470 100644
--- a/themes/mantra/js/PIE/PIE.htc
+++ b/themes/mantra/resources/js/PIE/PIE.htc
diff --git a/themes/mantra/js/PIE/PIE.js b/themes/mantra/resources/js/PIE/PIE.js
index d36448a9..d36448a9 100644
--- a/themes/mantra/js/PIE/PIE.js
+++ b/themes/mantra/resources/js/PIE/PIE.js
diff --git a/themes/mantra/js/PIE/PIE.php b/themes/mantra/resources/js/PIE/PIE.php
index 58a6f0a6..58a6f0a6 100644
--- a/themes/mantra/js/PIE/PIE.php
+++ b/themes/mantra/resources/js/PIE/PIE.php
diff --git a/themes/mantra/js/PIE/PIE_uncompressed.htc b/themes/mantra/resources/js/PIE/PIE_uncompressed.htc
index bf1a010b..bf1a010b 100644
--- a/themes/mantra/js/PIE/PIE_uncompressed.htc
+++ b/themes/mantra/resources/js/PIE/PIE_uncompressed.htc
diff --git a/themes/mantra/js/PIE/PIE_uncompressed.js b/themes/mantra/resources/js/PIE/PIE_uncompressed.js
index 85f6785e..85f6785e 100644
--- a/themes/mantra/js/PIE/PIE_uncompressed.js
+++ b/themes/mantra/resources/js/PIE/PIE_uncompressed.js
diff --git a/themes/mantra/js/frontend.js b/themes/mantra/resources/js/frontend.js
index 27b22a59..391a5550 100644
--- a/themes/mantra/js/frontend.js
+++ b/themes/mantra/resources/js/frontend.js
@@ -8,41 +8,31 @@
jQuery(document).ready(function() {
-/* standard menu touch support for tablets */
- var isTouch = ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch; /* check touch support */
- jQuery('#access .menu > ul > li a').click(function(e){
+/* Standard menu touch support for tablets */
+var custom_event = ('ontouchstart' in window) ? 'touchstart' : 'click'; /* check touch support */
+var ios = /iPhone|iPad|iPod/i.test(navigator.userAgent);
+ jQuery('#access .menu > ul > li a').on('click', function(e){
var $link_id = jQuery(this).attr('href');
if (jQuery(this).parent().data('clicked') == $link_id) { /* second touch */
jQuery(this).parent().data('clicked', null);
- return true;
}
else { /* first touch */
- if (isTouch && (jQuery(this).parent().children('ul').length >0)) e.preventDefault();
+ if (custom_event != 'click' && !ios && (jQuery(this).parent().children('ul').length >0)) {e.preventDefault();}
jQuery(this).parent().data('clicked', $link_id);
}
- });
+ });
/* Back to top button animation */
jQuery(function() {
jQuery(window).scroll(function() {
var x=jQuery(this).scrollTop();
- var ver = getInternetExplorerVersion();
- /* no fade animation (transparency) if IE8 or below */
- if ( ver > -1 && ver <= 8 ) {
- if(x != 0) {
- jQuery('#toTop').show();
- } else {
- jQuery('#toTop').hide();
- }
- }
- /* fade animation if not IE8 or below */
- else {
+
if(x != 0) {
- jQuery('#toTop').fadeIn(3000);
+ jQuery('#toTop').addClass('showtop')
} else {
- jQuery('#toTop').fadeOut();
+ jQuery('#toTop').removeClass('showtop');
}
- }
+
});
jQuery('#toTop').click(function() { jQuery('body,html').animate({scrollTop:0},800); });
});
@@ -52,107 +42,35 @@ jQuery(function() {
jQuery("#access ul ul").css({display: "none"}); /* Opera Fix */
jQuery("#access").removeClass("jssafe"); /* JS failsafe */
jQuery("#access .menu ul li").hoverIntent({
- over: function(){jQuery(this).children("ul").show(400);},
- out: function(){ jQuery(this).children('ul').hide();},
- timeout:400}
+ over: function(){jQuery(this).children("ul").fadeIn(300);},
+ out: function(){ jQuery(this).children('ul').fadeOut();},
+ timeout:300}
);
-/* Social Icons Animation */
-jQuery(".socialicons").hover(
- function(){ jQuery(this).animate({"top": "-3px" },{ queue: false, duration:125}); },
- function(){ jQuery(this).animate({ "top": "0px" }, { queue: false, duration:125 });
-});
-
-
-/*! http://tinynav.viljamis.com v1.03 by @viljamis
- mod 0.1.1 by cryout creations */
-(function ($, window, i) {
- $.fn.tinyNav = function (options) {
-
- /* Default settings */
- var settings = $.extend({
- 'active' : 'selected', /* String: Set the "active" class */
- 'header' : '' /* Show header instead of the active item */
- }, options);
-
- return this.each(function () {
-
- i++; /* Used for namespacing */
-
- var $nav = $(this),
- /* Namespacing */
- namespace = 'tinynav',
- namespace_i = namespace + i,
- l_namespace_i = '.l_' + namespace_i,
- $select = $('<select/>').addClass(namespace + ' ' + namespace_i);
-
- if ($nav.is('ul,ol')) {
-
- if (settings.header) {
- $select.append( $('<option/>').text(settings.header) );
- }
-
- /* Build options */
- var options = '';
- var indent = 0;
- var indented = ["&nbsp;"];
- for ( var i = 0; i < 10; i++) { indented.push(indented[indented.length-1]+'-&nbsp;'); }
- indented[0] = "";
- $nav
- .addClass('l_' + namespace_i)
- .children('li')
- .each(buildNavTree=function () {
- var a = $(this).children('a').first();
-
- options += '<option value="' + a.attr('href') + '">' + indented[indent] + a.text() + '</option>';
- indent++;
- $(this).children('ul,ol').children('li').each(buildNavTree);
- indent--;
- });
-
- /* Append options into a select */
- $select.append(options);
-
- /* Select the active item */
- if (!settings.header) {
- $select
- .find(':eq(' + $(l_namespace_i + ' li')
- .index($(l_namespace_i + ' li.' + settings.active)) + ')')
- .attr('selected', true);
- }
-
- /* Change window location */
- $select.change(function () {
- var loc = $(this).val(); loc = loc.replace(/[\s\t]/gi,'');
- var menu = settings.header; menu = menu.replace(/[\s\t]/gi,'');
- if ((loc!==menu)) { window.location.href = $(this).val(); } else return false;
- });
-
- /* Inject select */
- $(l_namespace_i).after($select);
-
- }
-
- var current_url = location.protocol + '//' + location.host + location.pathname;
- $('option[value="'+current_url+'"]').attr("selected","selected");
-
- });
-
- };
-})(jQuery, this, 0);
-/* end tinynav */
-
-
/* detect and apply custom class for safari */
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
jQuery('body').addClass('safari');
}
+/* Add custom borders to images */
+jQuery("img.alignnone, img.alignleft, img.aligncenter, img.alignright").addClass(mantra_options.image_class);
+
});
/* end document.ready */
+/* Mobile Menu v2 */
+function mantra_mobilemenu_init() {
+ var state = false;
+ jQuery("#nav-toggle").click(function(){
+ jQuery("#access").slideToggle(function(){ if (state) {jQuery(this).removeAttr( 'style' )}; state = ! state; } );
+ });
+}
+
+jQuery(window).load(function() {
+ mantra_mobilemenu_init();
+});
/* Columns equalizer, used if at least one sidebar has a bg color */
function equalizeHeights(){
@@ -162,9 +80,27 @@ function equalizeHeights(){
var max = Math.max(h1,h2,h3);
if (h1<max) { jQuery("#primary").height(max); };
if (h2<max) { jQuery("#secondary").height(max); };
+}
+function makeDoubleDelegate(function1, function2) {
+// concatenate functions
+ return function() { if (function1) function1(); if (function2) function2(); }
}
+function mantra_onload() {
+ if ( mantra_options.responsive == 1 ) {
+ /* Add responsive videos */
+ if (jQuery(window).width() < 800) jQuery(".entry-content").fitVids();
+ }
+ if ( mantra_options.equalizesidebars = 1 ) {
+ /* Check if sidebars have user colors and if so equalize their heights */
+ equalizeHeights();
+ }
+}; // mantra_onload
+
+// make sure not to lose previous onload events
+window.onload = makeDoubleDelegate(window.onload, mantra_onload );
+
/*!
* FitVids 1.0
*
@@ -238,7 +174,7 @@ function equalizeHeights(){
/* Returns the version of Internet Explorer or a -1
- * (indicating the use of another browser).
+ * (indicating the use of another browser).
*/
function getInternetExplorerVersion()
{
@@ -252,5 +188,3 @@ function getInternetExplorerVersion()
}
return rv;
}
-
-
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
index 954e22db..954e22db 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
index 64ece570..64ece570 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
index abdc0108..abdc0108 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
index 9b383f4d..9b383f4d 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
index a23baad2..a23baad2 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
index 42ccba26..42ccba26 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
index 39d5824d..39d5824d 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
index f1273672..f1273672 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
index 359397ac..359397ac 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_222222_256x240.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_222222_256x240.png
index b273ff11..b273ff11 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_222222_256x240.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_222222_256x240.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_228ef1_256x240.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_228ef1_256x240.png
index a641a371..a641a371 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_228ef1_256x240.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_228ef1_256x240.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
index 85e63e9f..85e63e9f 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
index e117effa..e117effa 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_ffffff_256x240.png b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_ffffff_256x240.png
index 42f8f992..42f8f992 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/images/ui-icons_ffffff_256x240.png
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/images/ui-icons_ffffff_256x240.png
Binary files differ
diff --git a/themes/mantra/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css b/themes/mantra/resources/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css
index 5547c7b9..5547c7b9 100644
--- a/themes/mantra/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css
+++ b/themes/mantra/resources/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css
diff --git a/themes/mantra/js/nivo-slider.js b/themes/mantra/resources/js/nivo-slider.js
index f18e2f99..039f3cfb 100644
--- a/themes/mantra/js/nivo-slider.js
+++ b/themes/mantra/resources/js/nivo-slider.js
@@ -7,4 +7,4 @@
* http://www.opensource.org/licenses/mit-license.php
*/
-(function(e){var t=function(t,n){var r=e.extend({},e.fn.nivoSlider.defaults,n);var i={currentSlide:0,currentImage:"",totalSlides:0,running:false,paused:false,stop:false,controlNavEl:false};var s=e(t);s.data("nivo:vars",i).addClass("nivoSlider");var o=s.children();o.each(function(){var t=e(this);var n="";if(!t.is("img")){if(t.is("a")){t.addClass("nivo-imageLink");n=t}t=t.find("img:first")}var r=r===0?t.attr("width"):t.width(),s=s===0?t.attr("height"):t.height();if(n!==""){n.css("display","none")}t.css("display","none");i.totalSlides++});if(r.randomStart){r.startSlide=Math.floor(Math.random()*i.totalSlides)}if(r.startSlide>0){if(r.startSlide>=i.totalSlides){r.startSlide=i.totalSlides-1}i.currentSlide=r.startSlide}if(e(o[i.currentSlide]).is("img")){i.currentImage=e(o[i.currentSlide])}else{i.currentImage=e(o[i.currentSlide]).find("img:first")}if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}var u=e("<img/>").addClass("nivo-main-image");u.attr("src",i.currentImage.attr("src")).show();s.append(u);e(window).resize(function(){s.children("img").width(s.width());u.attr("src",i.currentImage.attr("src"));u.stop().height("auto");e(".nivo-slice").remove();e(".nivo-box").remove()});s.append(e('<div class="nivo-caption"></div>'));var a=function(t){var n=e(".nivo-caption",s);if(i.currentImage.attr("title")!=""&&i.currentImage.attr("title")!=undefined){var r=i.currentImage.attr("title");if(r.substr(0,1)=="#")r=e(r).html();if(n.css("display")=="block"){setTimeout(function(){n.html(r)},t.animSpeed)}else{n.html(r);n.stop().fadeIn(t.animSpeed)}}else{n.stop().fadeOut(t.animSpeed)}};a(r);var f=0;if(!r.manualAdvance&&o.length>1){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}if(r.directionNav){s.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+r.prevText+'</a><a class="nivo-nextNav">'+r.nextText+"</a></div>");e(s).on("click","a.nivo-prevNav",function(){if(i.running){return false}clearInterval(f);f="";i.currentSlide-=2;d(s,o,r,"prev")});e(s).on("click","a.nivo-nextNav",function(){if(i.running){return false}clearInterval(f);f="";d(s,o,r,"next")})}if(r.controlNav){i.controlNavEl=e('<div class="nivo-controlNav"></div>');s.after(i.controlNavEl);for(var l=0;l<o.length;l++){if(r.controlNavThumbs){i.controlNavEl.addClass("nivo-thumbs-enabled");var c=o.eq(l);if(!c.is("img")){c=c.find("img:first")}if(c.attr("data-thumb"))i.controlNavEl.append('<a class="nivo-control" rel="'+l+'"><img src="'+c.attr("data-thumb")+'" alt="" /></a>')}else{i.controlNavEl.append('<a class="nivo-control" rel="'+l+'">'+(l+1)+"</a>")}}e("a:eq("+i.currentSlide+")",i.controlNavEl).addClass("active");e("a",i.controlNavEl).bind("click",function(){if(i.running)return false;if(e(this).hasClass("active"))return false;clearInterval(f);f="";u.attr("src",i.currentImage.attr("src"));i.currentSlide=e(this).attr("rel")-1;d(s,o,r,"control")})}if(r.pauseOnHover){s.hover(function(){i.paused=true;clearInterval(f);f=""},function(){i.paused=false;if(f===""&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}})}s.bind("nivo:animFinished",function(){u.attr("src",i.currentImage.attr("src"));i.running=false;e(o).each(function(){if(e(this).is("a")){e(this).css("display","none")}});if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}if(f===""&&!i.paused&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}r.afterChange.call(this)});var h=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().height():e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height();for(var s=0;s<n.slices;s++){var o=Math.round(t.width()/n.slices);if(s===n.slices-1){t.append(e('<div class="nivo-slice" name="'+s+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:t.width()-o*s+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}else{t.append(e('<div class="nivo-slice" name="'+s+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:o+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}}e(".nivo-slice",t).height(i);u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var p=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=Math.round(t.width()/n.boxCols),s=Math.round(e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height()/n.boxRows);for(var o=0;o<n.boxRows;o++){for(var a=0;a<n.boxCols;a++){if(a===n.boxCols-1){t.append(e('<div class="nivo-box" name="'+a+'" rel="'+o+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+i*a+'px;" /></div>').css({opacity:0,left:i*a+"px",top:s*o+"px",width:t.width()-i*a+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}else{t.append(e('<div class="nivo-box" name="'+a+'" rel="'+o+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+i*a+'px;" /></div>').css({opacity:0,left:i*a+"px",top:s*o+"px",width:i+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}}}u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var d=function(t,n,r,i){var s=t.data("nivo:vars");if(s&&s.currentSlide===s.totalSlides-1){r.lastSlide.call(this)}if((!s||s.stop)&&!i){return false}r.beforeChange.call(this);if(!i){u.attr("src",s.currentImage.attr("src"))}else{if(i==="prev"){u.attr("src",s.currentImage.attr("src"))}if(i==="next"){u.attr("src",s.currentImage.attr("src"))}}s.currentSlide++;if(s.currentSlide===s.totalSlides){s.currentSlide=0;r.slideshowEnd.call(this)}if(s.currentSlide<0){s.currentSlide=s.totalSlides-1}if(e(n[s.currentSlide]).is("img")){s.currentImage=e(n[s.currentSlide])}else{s.currentImage=e(n[s.currentSlide]).find("img:first")}if(r.controlNav){e("a",s.controlNavEl).removeClass("active");e("a:eq("+s.currentSlide+")",s.controlNavEl).addClass("active")}a(r);e(".nivo-slice",t).remove();e(".nivo-box",t).remove();var o=r.effect,f="";if(r.effect==="random"){f=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");o=f[Math.floor(Math.random()*(f.length+1))];if(o===undefined){o="fade"}}if(r.effect.indexOf(",")!==-1){f=r.effect.split(",");o=f[Math.floor(Math.random()*f.length)];if(o===undefined){o="fade"}}if(s.currentImage.attr("data-transition")){o=s.currentImage.attr("data-transition")}s.running=true;var l=0,c=0,d="",m="",g="",y="";if(o==="sliceDown"||o==="sliceDownRight"||o==="sliceDownLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({top:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUp"||o==="sliceUpRight"||o==="sliceUpLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceUpLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({bottom:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUpDown"||o==="sliceUpDownRight"||o==="sliceUpDownLeft"){h(t,r,s);l=0;c=0;var b=0;d=e(".nivo-slice",t);if(o==="sliceUpDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);if(c===0){n.css("top","0px");c++}else{n.css("bottom","0px");c=0}if(b===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;b++})}else if(o==="fold"){h(t,r,s);l=0;c=0;e(".nivo-slice",t).each(function(){var n=e(this);var i=n.width();n.css({top:"0px",width:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="fade"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:t.width()+"px"});m.animate({opacity:"1.0"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInRight"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInLeft"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1",left:"",right:"0px"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){m.css({left:"0px",right:""});t.trigger("nivo:animFinished")})}else if(o==="boxRandom"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;y=v(e(".nivo-box",t));y.each(function(){var n=e(this);if(c===g-1){setTimeout(function(){n.animate({opacity:"1"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1"},r.animSpeed)},100+l)}l+=20;c++})}else if(o==="boxRain"||o==="boxRainReverse"||o==="boxRainGrow"||o==="boxRainGrowReverse"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;var w=0;var E=0;var S=[];S[w]=[];y=e(".nivo-box",t);if(o==="boxRainReverse"||o==="boxRainGrowReverse"){y=e(".nivo-box",t)._reverse()}y.each(function(){S[w][E]=e(this);E++;if(E===r.boxCols){w++;E=0;S[w]=[]}});for(var x=0;x<r.boxCols*2;x++){var T=x;for(var N=0;N<r.boxRows;N++){if(T>=0&&T<r.boxCols){(function(n,i,s,u,a){var f=e(S[n][i]);var l=f.width();var c=f.height();if(o==="boxRainGrow"||o==="boxRainGrowReverse"){f.width(0).height(0)}if(u===a-1){setTimeout(function(){f.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3,"",function(){t.trigger("nivo:animFinished")})},100+s)}else{setTimeout(function(){f.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3)},100+s)}})(N,T,l,c,g);c++}T--}l+=100}}};var v=function(e){for(var t,n,r=e.length;r;t=parseInt(Math.random()*r,10),n=e[--r],e[r]=e[t],e[t]=n);return e};var m=function(e){if(this.console&&typeof console.log!=="undefined"){console.log(e)}};this.stop=function(){if(!e(t).data("nivo:vars").stop){e(t).data("nivo:vars").stop=true;m("Stop Slider")}};this.start=function(){if(e(t).data("nivo:vars").stop){e(t).data("nivo:vars").stop=false;m("Start Slider")}};r.afterLoad.call(this);return this};e.fn.nivoSlider=function(n){return this.each(function(r,i){var s=e(this);if(s.data("nivoslider")){return s.data("nivoslider")}var o=new t(this,n);s.data("nivoslider",o)})};e.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:true,controlNav:true,controlNavThumbs:false,pauseOnHover:true,manualAdvance:false,prevText:"Prev",nextText:"Next",randomStart:false,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};e.fn._reverse=[].reverse})(jQuery) \ No newline at end of file
+(function(e){var t=function(t,n){var r=e.extend({},e.fn.nivoSlider.defaults,n);var i={currentSlide:0,currentImage:"",totalSlides:0,running:false,paused:false,stop:false,controlNavEl:false};var s=e(t);s.data("nivo:vars",i).addClass("nivoSlider");var o=s.children();o.each(function(){var t=e(this);var n="";if(!t.is("img")){if(t.is("a")){t.addClass("nivo-imageLink");n=t}t=t.find("img:first")}var r=r===0?t.attr("width"):t.width(),s=s===0?t.attr("height"):t.height();if(n!==""){n.css("display","none")}t.css("display","none");i.totalSlides++});if(r.randomStart){r.startSlide=Math.floor(Math.random()*i.totalSlides)}if(r.startSlide>0){if(r.startSlide>=i.totalSlides){r.startSlide=i.totalSlides-1}i.currentSlide=r.startSlide}if(e(o[i.currentSlide]).is("img")){i.currentImage=e(o[i.currentSlide])}else{i.currentImage=e(o[i.currentSlide]).find("img:first")}if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}var u=e("<img/>").addClass("nivo-main-image");u.attr("src",i.currentImage.attr("src")).show();s.append(u);e(window).resize(function(){s.children("img").width(s.width());u.attr("src",i.currentImage.attr("src"));u.stop().height("auto");e(".nivo-slice").remove();e(".nivo-box").remove()});s.append(e('<div class="nivo-caption"></div>'));var a=function(t){var n=e(".nivo-caption",s);if(i.currentImage.attr("title")!=""&&i.currentImage.attr("title")!=undefined){var r=i.currentImage.attr("title");if(r.substr(0,1)=="#")r=e(r).html();if(n.css("display")=="block"){setTimeout(function(){n.html(r)},t.animSpeed)}else{n.html(r);n.stop().fadeIn(t.animSpeed)}}else{n.stop().fadeOut(t.animSpeed)}};a(r);var f=0;if(!r.manualAdvance&&o.length>1){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}if(r.directionNav){s.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+r.prevText+'</a><a class="nivo-nextNav">'+r.nextText+"</a></div>");e(s).on("click","a.nivo-prevNav",function(){if(i.running){return false}clearInterval(f);f="";i.currentSlide-=2;d(s,o,r,"prev")});e(s).on("click","a.nivo-nextNav",function(){if(i.running){return false}clearInterval(f);f="";d(s,o,r,"next")})}if(r.controlNav){i.controlNavEl=e('<div class="nivo-controlNav"></div>');s.after(i.controlNavEl);for(var l=0;l<o.length;l++){if(r.controlNavThumbs){i.controlNavEl.addClass("nivo-thumbs-enabled");var c=o.eq(l);if(!c.is("img")){c=c.find("img:first")}if(c.attr("data-thumb"))i.controlNavEl.append('<a class="nivo-control" rel="'+l+'"><img src="'+c.attr("data-thumb")+'" alt="" /></a>')}else{i.controlNavEl.append('<a class="nivo-control" rel="'+l+'">'+(l+1)+"</a>")}}e("a:eq("+i.currentSlide+")",i.controlNavEl).addClass("active");e("a",i.controlNavEl).bind("click",function(){if(i.running)return false;if(e(this).hasClass("active"))return false;clearInterval(f);f="";u.attr("src",i.currentImage.attr("src"));i.currentSlide=e(this).attr("rel")-1;d(s,o,r,"control")})}if(r.pauseOnHover){s.hover(function(){i.paused=true;clearInterval(f);f=""},function(){i.paused=false;if(f===""&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}})}s.bind("nivo:animFinished",function(){u.attr("src",i.currentImage.attr("src"));i.running=false;e(o).each(function(){if(e(this).is("a")){e(this).css("display","none")}});if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}if(f===""&&!i.paused&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}r.afterChange.call(this)});var h=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().height():e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height();for(var s=0;s<n.slices;s++){var o=Math.round(t.width()/n.slices);if(s===n.slices-1){t.append(e('<div class="nivo-slice" name="'+s+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:t.width()-o*s+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}else{t.append(e('<div class="nivo-slice" name="'+s+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:o+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}}e(".nivo-slice",t).height(i);u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var p=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=Math.round(t.width()/n.boxCols),s=Math.round(e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height()/n.boxRows);for(var o=0;o<n.boxRows;o++){for(var a=0;a<n.boxCols;a++){if(a===n.boxCols-1){t.append(e('<div class="nivo-box" name="'+a+'" rel="'+o+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+i*a+'px;" /></div>').css({opacity:0,left:i*a+"px",top:s*o+"px",width:t.width()-i*a+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}else{t.append(e('<div class="nivo-box" name="'+a+'" rel="'+o+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+i*a+'px;" /></div>').css({opacity:0,left:i*a+"px",top:s*o+"px",width:i+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}}}u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var d=function(t,n,r,i){var s=t.data("nivo:vars");if(s&&s.currentSlide===s.totalSlides-1){r.lastSlide.call(this)}if((!s||s.stop)&&!i){return false}r.beforeChange.call(this);if(!i){u.attr("src",s.currentImage.attr("src"))}else{if(i==="prev"){u.attr("src",s.currentImage.attr("src"))}if(i==="next"){u.attr("src",s.currentImage.attr("src"))}}s.currentSlide++;if(s.currentSlide===s.totalSlides){s.currentSlide=0;r.slideshowEnd.call(this)}if(s.currentSlide<0){s.currentSlide=s.totalSlides-1}if(e(n[s.currentSlide]).is("img")){s.currentImage=e(n[s.currentSlide])}else{s.currentImage=e(n[s.currentSlide]).find("img:first")}if(r.controlNav){e("a",s.controlNavEl).removeClass("active");e("a:eq("+s.currentSlide+")",s.controlNavEl).addClass("active")}a(r);e(".nivo-slice",t).remove();e(".nivo-box",t).remove();var o=r.effect,f="";if(r.effect==="random"){f=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");o=f[Math.floor(Math.random()*(f.length+1))];if(o===undefined){o="fade"}}if(r.effect.indexOf(",")!==-1){f=r.effect.split(",");o=f[Math.floor(Math.random()*f.length)];if(o===undefined){o="fade"}}if(s.currentImage.attr("data-transition")){o=s.currentImage.attr("data-transition")}s.running=true;var l=0,c=0,d="",m="",g="",y="";if(o==="sliceDown"||o==="sliceDownRight"||o==="sliceDownLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({top:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUp"||o==="sliceUpRight"||o==="sliceUpLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceUpLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({bottom:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUpDown"||o==="sliceUpDownRight"||o==="sliceUpDownLeft"){h(t,r,s);l=0;c=0;var b=0;d=e(".nivo-slice",t);if(o==="sliceUpDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);if(c===0){n.css("top","0px");c++}else{n.css("bottom","0px");c=0}if(b===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;b++})}else if(o==="fold"){h(t,r,s);l=0;c=0;e(".nivo-slice",t).each(function(){var n=e(this);var i=n.width();n.css({top:"0px",width:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="fade"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:t.width()+"px"});m.animate({opacity:"1.0"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInRight"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInLeft"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1",left:"",right:"0px"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){m.css({left:"0px",right:""});t.trigger("nivo:animFinished")})}else if(o==="boxRandom"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;y=v(e(".nivo-box",t));y.each(function(){var n=e(this);if(c===g-1){setTimeout(function(){n.animate({opacity:"1"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1"},r.animSpeed)},100+l)}l+=20;c++})}else if(o==="boxRain"||o==="boxRainReverse"||o==="boxRainGrow"||o==="boxRainGrowReverse"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;var w=0;var E=0;var S=[];S[w]=[];y=e(".nivo-box",t);if(o==="boxRainReverse"||o==="boxRainGrowReverse"){y=e(".nivo-box",t)._reverse()}y.each(function(){S[w][E]=e(this);E++;if(E===r.boxCols){w++;E=0;S[w]=[]}});for(var x=0;x<r.boxCols*2;x++){var T=x;for(var N=0;N<r.boxRows;N++){if(T>=0&&T<r.boxCols){(function(n,i,s,u,a){var f=e(S[n][i]);var l=f.width();var c=f.height();if(o==="boxRainGrow"||o==="boxRainGrowReverse"){f.width(0).height(0)}if(u===a-1){setTimeout(function(){f.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3,"",function(){t.trigger("nivo:animFinished")})},100+s)}else{setTimeout(function(){f.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3)},100+s)}})(N,T,l,c,g);c++}T--}l+=100}}};var v=function(e){for(var t,n,r=e.length;r;t=parseInt(Math.random()*r,10),n=e[--r],e[r]=e[t],e[t]=n);return e};var m=function(e){if(this.console&&typeof console.log!=="undefined"){console.log(e)}};this.stop=function(){if(!e(t).data("nivo:vars").stop){e(t).data("nivo:vars").stop=true;m("Stop Slider")}};this.start=function(){if(e(t).data("nivo:vars").stop){e(t).data("nivo:vars").stop=false;m("Start Slider")}};r.afterLoad.call(this);return this};e.fn.nivoSlider=function(n){return this.each(function(r,i){var s=e(this);if(s.data("nivoslider")){return s.data("nivoslider")}var o=new t(this,n);s.data("nivoslider",o)})};e.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:true,controlNav:true,controlNavThumbs:false,pauseOnHover:true,manualAdvance:false,prevText:"Prev",nextText:"Next",randomStart:false,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};e.fn._reverse=[].reverse})(jQuery)
diff --git a/themes/mantra/rtl.css b/themes/mantra/rtl.css
deleted file mode 100644
index ec28788e..00000000
--- a/themes/mantra/rtl.css
+++ /dev/null
@@ -1,403 +0,0 @@
-/*
-Theme Name: Mantra
-*/
-
-
-/*
-RTL Basics
-*/
-
-body {
- direction:rtl;
- unicode-bidi:embed;
-}
-
-.socials, #sfooter {
- float:left;
-}
-
-ol {margin-left:0;margin-right:1.5em;}
-
-.entry-content ul > li {padding-left:0;padding-right:20px;}
-.entry-content ul, .entry-summary ul {margin-right:0;}
-
-/*
-LAYOUT: Two-Column (Right)
-DESCRIPTION: Two-column fixed layout with one sidebar right of content
-*/
-
-#container {
- float: right;
-}
-
-
-/* =Structure
--------------------------------------------------------------- */
-
-/* The main theme structure */
-#footer-widget-area .widget-area {
- float: right;
-}
-#footer-widget-area #fourth {
-}
-#site-info {
-}
-#site-generator {
- float: left;
-}
-
-
-/* =Global Elements
--------------------------------------------------------------- */
-
-/* Text elements */
-ul {
- margin: 0 1.5em 18px 0;
-}
-
-.widget-area ul ul li {
-background:url("images/bullets/arrow_white.png") no-repeat scroll right 8px transparent;
-padding-right:12px;
-}
-#calendar_wrap {
- margin-right: 10px;
-}
-
-.widget_search #s, #search #s {
- border-radius: 0 10px 0 0;
- display: block;
- float: right;
- font-family: Arial !important;
- font-size: 14px;
- margin-bottom: 20px;
- margin-right: 10%;
- padding-bottom: 4px;
- padding-right: 10px;
- padding-top: 6px;
- width: 60%;
-}
-
-.widget_search #searchsubmit {
- background: none repeat scroll 0 0 #777777;
- border: medium none;
- color: #EEEEEE;
- cursor: pointer;
- display: block;
- float: right;
- font-family: Arial !important;
- font-size: 12px;
- height: 28px;
- right: -28px;
- margin: 0;
- padding: 0;
- position: relative;
- text-shadow: 0 -1px 0 #000000;
- top: 0;
- width: 27px;
-}
-
-blockquote {
- font-style: normal;
-}
-
-/* Text meant only for screen readers */
-.screen-reader-text {
- left: 9000px;
- text-indent:-9000px;
- overflow:hidden;
-}
-
-
-/* =Header
--------------------------------------------------------------- */
-
-#site-title {
- float: right;
- margin-right: 20px;
- padding-right: 20px;
-}
-
-#site-description {
- clear: left;
- float: right;
- font-style: normal;
-}
-
-/* =Menu
--------------------------------------------------------------- */
-
-#access {
- float:right;
-}
-
-#access .menu-header,
-div.menu {
- margin-right: 12px;
- margin-left: 0;
-}
-
-#access .menu-header li,
-div.menu li{
- float:right;
-}
-
-#access ul ul {
-margin-right:0;
-}
-
-#access ul li {
- float:right;
-}
-
-
-/* =Content
--------------------------------------------------------------- */
-
-#content table {
- text-align: right;
- margin: 0 0 24px -1px;
-}
-.page-title span {
- font-style:normal;
-}
-
-#content ul > li {
- background-position: right 10px;
-}
-
-.entry-title,
-.entry-meta{
- clear: right;
- float: right;
-}
-
-.entry-meta {
- width: 100%;
- -webkit-box-sizing:border-box;
- -moz-box-sizing:border-box;
- box-sizing:border-box;
-}
-
-.entry-meta .comments-link {float: left;}
-
-#content .format-status .entry-meta2 {
-clear:left;
-float:right;
-margin-right:0;
-padding-right:0;
-}
-
-.status_content {
-float:right;
-}
-
-.entry-meta span, .entry-meta2 span{
- float: right;
- padding-left:3px;
-}
-
-.entry-meta2 .edit-link, .entry-meta3 .edit-link, .edit-link {
- float: left;
-}
-
-.entry-meta span .bl_sep, .entry-meta2 span .bl_sep {
- float: left ;
-padding-right:5px;
-}
-
-.format-status .avatar {
-float:right;
-margin-left:10px;
-margin-right:0;
-}
-
-#content h3.entry-format {
-line-height:1em ;
-margin-top:5px;
-margin-left:10px;
-margin-bottom:0px;
-float:right;
-}
-
-#content .format-status h3.entry-format {
-margin-left:10px;
-}
-
-
-.entry-content input.file,
-.entry-content input.button {
- margin-left: 24px;
- margin-right:0;
-}
-.entry-content blockquote.left {
- float: right;
- margin-right: 0;
- margin-left: 24px;
- text-align: left;
-}
-.entry-content blockquote.right {
- float: left;
- margin-right: 24px;
- margin-left: 0;
- text-align: right;
-}
-#entry-author-info #author-avatar {
- float: right;
- margin: 0 0 0 -104px;
-}
-#entry-author-info #author-description {
- float: right;
- margin: 0 104px 0 0;
-}
-
-.continue-reading-link {
- display:inline-block;
-}
-
-.continue-reading-link .meta-nav {
- display:inline-block;
- float:left;
- -webkit-transform:rotate(180deg);
- -moz-transform:rotate(180deg);
- transform:rotate(180deg);
-}
-
-.sticky hgroup {
- background: url("images/icon-featured.png") no-repeat scroll right 10px transparent;
- padding-right: 35px;
-}
-
-.pagination span, .pagination a {
-float:right;
-}
-
-article.format-link, article.format-quote, article.format-image, article.format-chat, article.format-aside {
- background-position: right 10px;
-}
-
-article.format-link header, article.format-quote header, article.format-image header, article.format-chat header, article.format-aside header {
- padding-left: 0;
- padding-right: 60px;
-}
-
-
-#respond label {
-float:right;
-}
-#commentform {
-float:right;
-}
-
-#commentform label {
-width:15%;
-}
-
-#respond .required {
-float:right;
-}
-
-#respond .comment-notes {
-float:right;
-text-align:right;
-}
-/* Gallery listing
--------------------------------------------------------------- */
-
-.category-gallery .gallery-thumb {
- float: right;
- margin-left:20px;
- margin-right:0;
-}
-
-
-/* Images
--------------------------------------------------------------- */
-
-#content .gallery .gallery-caption {
- margin-right: 0;
-}
-
-#content .gallery .gallery-item {
- float: right;
-}
-
-#content .entry-title {
- float:none;
-}
-
-/* =Navigation
--------------------------------------------------------------- */
-.nav-previous {
- float: right;
-}
-.nav-next {
- float: left;
- text-align:left;
-}
-
-.theme-default .nivo-controlNav {
- direction:ltr;
-}
-
-/* =Comments
--------------------------------------------------------------- */
-
-.commentlist li.comment {
- padding: 0 66px 0 0;
-}
-.commentlist .avatar {
- right: 0;
- left: auto;
-}
-.comment-author .says, #comments .pingback .url {
- font-style: normal;
-}
-
-/* Comments form */
-.children #respond {
- margin: 0 0 0 48px;
-}
-
-/* =Widget Areas
--------------------------------------------------------------- */
-
-.widget-title {
-text-align:right;
-padding-left:0 !important;
-padding-right:20px !important;
-}
-
-.widget-area ul {
- margin-right: 0;
-}
-.widget-area ul ul {
- margin-right: 1.3em;
- margin-left: 0;
-}
-#wp-calendar caption {
- text-align: right;
-}
-#wp-calendar tfoot #next {
- text-align: left;
-}
-
-/* Main sidebars */
-#main .widget-area ul {
- margin-right: 0;
- padding: 0 0 0 20px;
-}
-#main .widget-area ul ul {
- margin-right: 1.3em;
- margin-left: 0;
-}
-
-/* =Footer
--------------------------------------------------------------- */
-#site-generator {
- font-style:normal;
-}
-#site-generator a {
- background-position: right center;
- padding-right: 20px;
- padding-left: 0;
-} \ No newline at end of file
diff --git a/themes/mantra/screenshot.png b/themes/mantra/screenshot.png
index 9d636905..f630f9e1 100644
--- a/themes/mantra/screenshot.png
+++ b/themes/mantra/screenshot.png
Binary files differ
diff --git a/themes/mantra/search.php b/themes/mantra/search.php
index c5ec2e42..a94c68e0 100644
--- a/themes/mantra/search.php
+++ b/themes/mantra/search.php
@@ -12,10 +12,10 @@ get_header(); ?>
<section id="container">
<div id="content" role="main">
<?php cryout_before_content_hook(); ?>
-
+
<?php if ( have_posts() ) : ?>
-
+
<?php mantra_content_nav( 'nav-above' ); ?>
<span class="page-title"><?php printf( __( 'Search Results for: %s', 'mantra' ), '<span>' . get_search_query() . '</span>' ); ?></span>
<div class="contentsearch"><?php get_search_form(); ?></div>
@@ -27,7 +27,7 @@ get_header(); ?>
* If you want to overload this in a child theme then include a file
* called loop-search.php and that will be used instead.
*/
- get_template_part( 'content', get_post_format() );
+ get_template_part( 'content/content', get_post_format() );
?>
<?php endwhile; ?>
@@ -50,4 +50,5 @@ get_header(); ?>
<?php get_sidebar(); ?>
</section><!-- #primary -->
-<?php get_footer(); ?>
+<?php
+get_footer();
diff --git a/themes/mantra/searchform.php b/themes/mantra/searchform.php
index 7d3972a6..dd40f0cc 100644
--- a/themes/mantra/searchform.php
+++ b/themes/mantra/searchform.php
@@ -1,4 +1,15 @@
+<?php
+/**
+ * The searchform
+ *
+ * @package Mantra
+ */
+
+?>
<form method="get" id="searchform" action="<?php echo esc_url(home_url( '/' )); ?>">
- <input type="text" value="<?php _e( 'Search', 'mantra' ) ?>" name="s" id="s" onblur="if (this.value == '') {this.value = '<?php _e( 'Search', 'mantra' ) ?>';}" onfocus="if (this.value == '<?php _e( 'Search', 'mantra' ) ?>') {this.value = '';}" />
- <input type="submit" id="searchsubmit" value="OK" />
-</form> \ No newline at end of file
+ <label>
+ <span class="screen-reader-text"><?php echo _e( 'Search for:', 'mantra' ); ?></span>
+ <input type="search" class="s" placeholder="<?php echo esc_attr_e( 'Search', 'mantra' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
+ </label>
+ <button type="submit" class="searchsubmit"><span class="screen-reader-text"><?php echo _e( 'Search', 'mantra' ); ?></span>OK</button>
+</form>
diff --git a/themes/mantra/sidebar-footer.php b/themes/mantra/sidebar-footer.php
index ba95abd0..7ea36d76 100644
--- a/themes/mantra/sidebar-footer.php
+++ b/themes/mantra/sidebar-footer.php
@@ -18,42 +18,43 @@
&& ! is_active_sidebar( 'second-footer-widget-area' )
&& ! is_active_sidebar( 'third-footer-widget-area' )
&& ! is_active_sidebar( 'fourth-footer-widget-area' )
- )
+ )
return;
// If we get this far, we have widgets. Let do this.
?>
- <div id="footer-widget-area" role="complementary" <?php mantra_footer_sidebar_class(); ?> >
+ <div id="footer-widget-area" role="complementary" <?php mantra_footer_sidebar_class(); ?> >
-<?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
- <div id="first" class="widget-area">
- <ul class="xoxo">
- <?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
- </ul>
- </div><!-- #first .widget-area -->
-<?php endif; ?>
+ <?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
+ <div id="first" class="widget-area">
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
+ </ul>
+ </div><!-- #first .widget-area -->
+ <?php endif; ?>
-<?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?>
- <div id="second" class="widget-area">
- <ul class="xoxo">
- <?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
- </ul>
- </div><!-- #second .widget-area -->
-<?php endif; ?>
+ <?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?>
+ <div id="second" class="widget-area">
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
+ </ul>
+ </div><!-- #second .widget-area -->
+ <?php endif; ?>
-<?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?>
- <div id="third" class="widget-area">
- <ul class="xoxo">
- <?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
- </ul>
- </div><!-- #third .widget-area -->
-<?php endif; ?>
+ <?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?>
+ <div id="third" class="widget-area">
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
+ </ul>
+ </div><!-- #third .widget-area -->
+ <?php endif; ?>
-<?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?>
- <div id="fourth" class="widget-area">
- <ul class="xoxo">
- <?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
- </ul>
- </div><!-- #fourth .widget-area -->
-<?php endif; ?>
- </div><!-- #footer-widget-area -->
+ <?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?>
+ <div id="fourth" class="widget-area">
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
+ </ul>
+ </div><!-- #fourth .widget-area -->
+ <?php endif; ?>
+
+ </div><!-- #footer-widget-area -->
diff --git a/themes/mantra/sidebar.php b/themes/mantra/sidebar.php
index 6a4f2cf8..5bd0fa62 100644
--- a/themes/mantra/sidebar.php
+++ b/themes/mantra/sidebar.php
@@ -7,97 +7,97 @@
* @since mantra 0.5
*/
-/* This retrieves admin options. */
-$mantra_options= mantra_get_theme_options();
-foreach ($mantra_options as $key => $value) {
- ${"$key"} = esc_attr($value) ;
-}
-
-if (is_page_template() && !is_page_template('template-blog.php') && !is_page_template('template-onecolumn.php') && !is_page_template('template-page-with-intro.php') ) {
-?>
- <div id="primary" class="widget-area" role="complementary">
-
- <?php cryout_before_primary_widgets_hook(); ?>
-
-
- <?php if (!is_active_sidebar('primary-widget-area') && !is_active_sidebar('secondary-widget-area')): ?>
- <ul class="xoxo">
- <li class="widget-container widget-placeholder">
- <h3 class="widget-title"><?php _e('Sidebar 1','mantra'); ?></h3>
- <p><?php
- printf( __('You currently have no widgets set in the primary sidebar. You can add widgets via the <a href="%s">Dashboard</a>.','mantra'),esc_url( admin_url()."widgets.php") ); echo "<br/>";
- printf( __('To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Settings</a>.','mantra'), esc_url( admin_url()."themes.php?page=mantra-page") );
- ?></p>
- </li>
- </ul>
- <?php endif; ?>
-
-
- <ul class="xoxo">
- <?php dynamic_sidebar( 'primary-widget-area' ); ?>
- </ul>
+$mantra_options = mantra_get_theme_options();
+extract($mantra_options);
- <ul class="xoxo">
- <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
- </ul>
-
- <?php cryout_after_primary_widgets_hook(); ?>
-
- </div><!-- #primary .widget-area -->
-
- <?php
- if (is_page_template("template-threecolumns-right.php") || is_page_template("template-threecolumns-left.php") || is_page_template("template-threecolumns-center.php")) { ?>
+if ( is_page_template() &&
+ !is_page_template('templates/template-blog.php') &&
+ !is_page_template('templates/template-onecolumn.php') &&
+ !is_page_template('templates/template-page-with-intro.php') ) {
+ ?>
+ <div id="primary" class="widget-area" role="complementary">
- <div id="secondary" class="widget-area" role="complementary" >
-
- <?php cryout_before_secondary_widgets_hook(); ?>
-
- <?php if (!is_active_sidebar('third-widget-area') && !is_active_sidebar('fourth-widget-area')): ?>
- <ul class="xoxo">
- <li class="widget-container widget-placeholder">
- <h3 class="widget-title"><?php _e('Sidebar 2','mantra'); ?></h3>
- <p><?php
- printf( __('You currently have no widgets set in the secondary sidebar. You can add widgets via the <a href="%s">Dashboard</a>.','mantra'),esc_url( admin_url()."widgets.php") ); echo "<br/>";
- printf( __('To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Settings</a>.','mantra'), esc_url( admin_url()."themes.php?page=mantra-page") );
- ?></p>
- </li>
- </ul>
- <?php endif; ?>
-
- <ul class="xoxo">
- <?php dynamic_sidebar( 'third-widget-area' ); ?>
- </ul>
-
- <ul class="xoxo">
- <?php dynamic_sidebar( 'fourth-widget-area' ); ?>
- </ul>
-
- <?php cryout_after_secondary_widgets_hook(); ?>
-
- </div><!-- #secondary .widget-area -->
+ <?php cryout_before_primary_widgets_hook(); ?>
+
+ <?php if (!is_active_sidebar('primary-widget-area') && !is_active_sidebar('secondary-widget-area')): ?>
+ <ul class="xoxo">
+ <li class="widget-container widget-placeholder">
+ <h3 class="widget-title"><?php _e('Sidebar 1','mantra'); ?></h3>
+ <p><?php if (current_user_can('manage_options')) {
+ printf( __('You currently have no widgets set in the primary sidebar. You can add widgets via the <a href="%s">Dashboard</a>.','mantra'), esc_url( admin_url() . "widgets.php") ); echo "<br/>";
+ printf( __('To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Settings</a>.','mantra'), esc_url( admin_url() . "themes.php?page=mantra-page") );
+ } ?></p>
+ </li>
+ </ul>
+ <?php endif; ?>
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'primary-widget-area' ); ?>
+ </ul>
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
+ </ul>
- <?php } // second sidebar
-} // if page_template
+ <?php cryout_after_primary_widgets_hook(); ?>
+
+ </div><!-- #primary .widget-area -->
+
+ <?php
+ if ( is_page_template("templates/template-threecolumns-right.php") ||
+ is_page_template("templates/template-threecolumns-left.php") ||
+ is_page_template("templates/template-threecolumns-center.php")) { ?>
+
+ <div id="secondary" class="widget-area" role="complementary" >
+
+ <?php cryout_before_secondary_widgets_hook(); ?>
+
+ <?php if (!is_active_sidebar('third-widget-area') && !is_active_sidebar('fourth-widget-area')): ?>
+ <ul class="xoxo">
+ <li class="widget-container widget-placeholder">
+ <h3 class="widget-title"><?php _e('Sidebar 2','mantra'); ?></h3>
+ <p><?php if (current_user_can('manage_options')) {
+ printf( __('You currently have no widgets set in the secondary sidebar. You can add widgets via the <a href="%s">Dashboard</a>.','mantra'), esc_url( admin_url() . "widgets.php") ); echo "<br/>";
+ printf( __('To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Settings</a>.','mantra'), esc_url( admin_url() . "themes.php?page=mantra-page") );
+ } ?></p>
+ </li>
+ </ul>
+ <?php endif; ?>
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'third-widget-area' ); ?>
+ </ul>
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'fourth-widget-area' ); ?>
+ </ul>
+
+ <?php cryout_after_secondary_widgets_hook(); ?>
+
+ </div><!-- #secondary .widget-area -->
-else
-if ($mantra_side != "1c") { ?>
+ <?php
+ } // second sidebar
+ } // if page_template
+
+ elseif ($mantra_side != "1c") { ?>
<div id="primary" class="widget-area" role="complementary">
-
+
<?php cryout_before_primary_widgets_hook(); ?>
-
- <?php
+
+ <?php
if (!is_active_sidebar('primary-widget-area') && !is_active_sidebar('secondary-widget-area')): ?>
- <ul class="xoxo">
+ <ul class="xoxo">
<li class="widget-container widget-placeholder">
<h3 class="widget-title"><?php _e('Sidebar 1','mantra'); ?></h3>
- <p><?php
- printf( __('You currently have no widgets set in the primary sidebar. You can add widgets via the <a href="%s">Dashboard</a>.','mantra'),esc_url( admin_url()."widgets.php") ); echo "<br/>";
- printf( __('To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Settings</a>.','mantra'), esc_url( admin_url()."themes.php?page=mantra-page") );
- ?></p>
+ <p><?php if (current_user_can('manage_options')) {
+ printf( __('You currently have no widgets set in the primary sidebar. You can add widgets via the <a href="%s">Dashboard</a>.','mantra'), esc_url( admin_url() . "widgets.php") ); echo "<br/>";
+ printf( __('To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Settings</a>.','mantra'), esc_url( admin_url() . "themes.php?page=mantra-page") );
+ } ?></p>
</li>
</ul>
<?php endif; ?>
-
+
<ul class="xoxo">
<?php dynamic_sidebar( 'primary-widget-area' ) ; ?>
</ul>
@@ -105,42 +105,44 @@ if ($mantra_side != "1c") { ?>
<ul class="xoxo">
<?php dynamic_sidebar( 'secondary-widget-area' ); ?>
</ul>
-
-
+
<?php cryout_after_primary_widgets_hook(); ?>
-
+
</div><!-- #primary .widget-area -->
-<?php
+ <?php
// A second sidebar for widgets, just because.
-
+
if ( $mantra_side != "2cSr" && $mantra_side != "2cSl") { ?>
-
- <div id="secondary" class="widget-area" role="complementary" >
-
+
+ <div id="secondary" class="widget-area" role="complementary">
+
<?php cryout_before_secondary_widgets_hook(); ?>
+
<?php if (!is_active_sidebar('third-widget-area') && !is_active_sidebar('fourth-widget-area')): ?>
- <ul class="xoxo">
+ <ul class="xoxo">
<li class="widget-container widget-placeholder">
<h3 class="widget-title"><?php _e('Sidebar 2','mantra'); ?></h3>
- <p><?php
- printf( __('You currently have no widgets set in the secondary sidebar. You can add widgets via the <a href="%s">Dashboard</a>.','mantra'),esc_url( admin_url()."widgets.php") ); echo "<br/>";
- printf( __('To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Settings</a>.','mantra'), esc_url( admin_url()."themes.php?page=mantra-page") );
- ?></p>
+ <p><?php if (current_user_can('manage_options')) {
+ printf( __('You currently have no widgets set in the secondary sidebar. You can add widgets via the <a href="%s">Dashboard</a>.','mantra'), esc_url( admin_url() . "widgets.php") ); echo "<br/>";
+ printf( __('To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Settings</a>.','mantra'), esc_url( admin_url() . "themes.php?page=mantra-page") );
+ } ?></p>
</li>
</ul>
<?php endif; ?>
-
+
<ul class="xoxo">
<?php dynamic_sidebar( 'third-widget-area' ); ?>
</ul>
-
+
<ul class="xoxo">
<?php dynamic_sidebar( 'fourth-widget-area' ); ?>
</ul>
-
- <?php cryout_after_secondary_widgets_hook(); ?>
-
+
+ <?php cryout_after_secondary_widgets_hook(); ?>
+
</div><!-- #secondary .widget-area -->
<?php }
- }?> <!-- 1c --> \ No newline at end of file
+ } // 1c
+
+// FIN \ No newline at end of file
diff --git a/themes/mantra/single.php b/themes/mantra/single.php
index 94d6b579..f93a327a 100644
--- a/themes/mantra/single.php
+++ b/themes/mantra/single.php
@@ -11,9 +11,9 @@ get_header(); ?>
<section id="container">
<div id="content" role="main">
-
+
<?php cryout_before_content_hook(); ?>
-
+
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="nav-above" class="navigation">
@@ -21,7 +21,7 @@ get_header(); ?>
<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ); ?></div>
</div><!-- #nav-above -->
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+ <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php cryout_post_title_hook(); ?>
<div class="entry-meta">
@@ -33,28 +33,28 @@ get_header(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'mantra' ), 'after' => '</span></div>' ) ); ?>
</div><!-- .entry-content -->
-<?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
- <div id="entry-author-info">
- <div id="author-avatar">
- <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'mantra_author_bio_avatar_size', 60 ) ); ?>
- </div><!-- #author-avatar -->
- <div id="author-description">
- <h2><?php printf( esc_attr__( 'About %s', 'mantra' ), get_the_author() ); ?></h2>
- <?php the_author_meta( 'description' ); ?>
- <div id="author-link">
- <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
- <?php printf( __( 'View all posts by ','mantra').'%s <span class="meta-nav">&rarr;</span>', get_the_author() ); ?>
- </a>
- </div><!-- #author-link -->
- </div><!-- #author-description -->
- </div><!-- #entry-author-info -->
-<?php endif; ?>
-
<div class="entry-utility">
<?php mantra_posted_in(); ?>
<?php edit_post_link( __( 'Edit', 'mantra' ), '<span class="edit-link">', '</span>' ); cryout_post_footer_hook(); ?>
</div><!-- .entry-utility -->
- </div><!-- #post-## -->
+ </article><!-- #post-## -->
+
+<?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
+ <div id="entry-author-info">
+ <div id="author-avatar">
+ <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'mantra_author_bio_avatar_size', 60 ) ); ?>
+ </div><!-- #author-avatar -->
+ <div id="author-description">
+ <h2><?php printf( esc_attr__( 'About %s', 'mantra' ), get_the_author() ); ?></h2>
+ <?php the_author_meta( 'description' ); ?>
+ <div id="author-link">
+ <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
+ <?php printf( __( 'View all posts by ','mantra').'%s <span class="meta-nav">&rarr;</span>', get_the_author() ); ?>
+ </a>
+ </div><!-- #author-link -->
+ </div><!-- #author-description -->
+ </div><!-- #entry-author-info -->
+<?php endif; ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ); ?></div>
@@ -70,4 +70,5 @@ get_header(); ?>
<?php get_sidebar(); ?>
</section><!-- #container -->
-<?php get_footer(); ?>
+<?php
+get_footer();
diff --git a/themes/mantra/style-mobile.css b/themes/mantra/style-mobile.css
deleted file mode 100644
index 74d31373..00000000
--- a/themes/mantra/style-mobile.css
+++ /dev/null
@@ -1,194 +0,0 @@
-/* =Responsive Structure
------------------------------------------------ */
-
-@media (max-width: 1100px) {
- body.mobile #content {
- float:none;
- margin:0 2%;
- width:96%;
- height:auto; }
- body.mobile #access, body.mobile #branding {width:100%;}
- body.mobile #wrapper, body.mobile #colophon, body.mobile #main, body.mobile article.post, body.mobile #container, body.mobile #linky { width: auto; }
- body.mobile #branding { height:auto; min-height:90px; }
- body.mobile #bg_image { min-height:90px; width:100%; }
-
- body.mobile #header-container > div {
- margin-top:7px;
- margin-left:14px;
- height:100%; }
-
- body.mobile a#logo { height:100%; display: block !important; }
-
- body.mobile a#logo img { height:80%; width:auto; max-width:90%; }
- body.mobile #site-title {margin-top:22px;}
- body.mobile #site-description {clear:both;margin-left:0;}
- body.mobile.safari a#logo img { max-height: 80px; height:auto;}
-
- body.mobile #smenul, body.mobile #smenur { margin-top:0; }
-
- body.mobile .socials a { margin:0; padding-left:5px; display: block; }
- body.mobile .socials a img { width:22px; }
- body.mobile #wrapper { margin:10px; }
- body.mobile #access .menu-header, body.mobile div.menu { width:95%; }
- body.mobile #primary, body.mobile #secondary { width:100%; height:auto !important; }
-
- body.mobile #content img, body.mobile content article.post img, body.mobile #content article .wp-caption, body.mobile article embed {
- max-width:90% !important; }
- body.mobile #access { /*background:#ddd;*/ }
- body.mobile #slider { width:auto; height:auto; }
- body.mobile #footer-widget-area .widget-title { background:none !important; padding-left:10px; }
- body.mobile .widget-title { -moz-border-radius:0; -webkit-border-radius:0; border-radius:0; }
- body.mobile .xoxo .widget-title { margin-left:-10px !important; text-align:left !important; }
- body.mobile #site-title { font-size:30px; line-height: 30px; padding-left:0; }
- body.mobile #site-description { margin-top:5px; font-size:15px; line-height: 15px; }
-
- body.mobile #main .widget-area ul.xoxo { padding-left:10px; }
-
- body.mobile .footertwo .widget-area, body.mobile .footerthree .widget-area, body.mobile .footerfour .widget-area {
- width:95%; margin-left:2.5%; }
- body.mobile #sfooter { display:table; float:none; text-align:center; margin:0 auto; padding:0; top:0; margin-top:10px; }
-}
-
-@media (max-width: 800px) {
- #content {
- float:none;
- margin:0 2%;
- width:96%;
- height:auto; }
- #access, #branding {width:100%;}
- #wrapper, #colophon, #main, article.post, #container, #linky { width: auto; }
- #branding { height:auto; min-height:90px; }
- #bg_image { min-height:90px; width:100%; }
-
- #header-container > div {
- margin-top:7px;
- margin-left:14px;
- height:100%; }
-
- a#logo { height:100%; display: block !important; }
-
- a#logo img { height:80%; width:auto; max-width:90%; }
- #site-title {margin-top:22px;}
- #site-description {clear:both;margin-left:0;}
- .safari a#logo img { max-height: 80px; height:auto;}
-
- #smenul, #smenur { margin-top:0; }
-
- .socials a { margin:0; padding-left:5px; display: block; }
- .socials a img { width:22px; }
- #wrapper { margin:10px; }
- #access .menu-header, div.menu { width:95%; }
- #primary, #secondary { width:100%; height:auto !important; }
-
- .slider-wrapper { width:95%; }
- #slider, #slider img { width:100%; }
- #front-columns > div { width:45%; }
- #front-columns .column-image, #front-columns .column-image img { height:inherit; }
-
- #content img, #content article.post img, #content .wp-caption, article embed { max-width:100% !important;}
- #access { /*background:#ddd;*/ }
- #column3 { clear:left; }
- #slider { width:auto; height:auto; }
- #footer-widget-area .widget-title { background:none !important; padding-left:10px; }
- .widget-title { -moz-border-radius:0; -webkit-border-radius:0; border-radius:0; }
- .xoxo .widget-title { margin-left:-10px !important; text-align:left !important; }
- #site-title { font-size:30px; line-height: 30px; padding-left:0; }
- #site-description { margin-top:5px; font-size:15px; line-height: 15px; }
-
- #main .widget-area ul.xoxo { padding-left:10px; }
-
- .footertwo .widget-area, .footerthree .widget-area, .footerfour .widget-area {
- width:95%; margin-left:2.5%; }
-
- #sfooter { display:table; float:none; text-align:center; margin:0 auto; padding:0; top:0; margin-top:10px; }
-}
-
-@media (max-width: 650px) {
- /* @media (max-width: 650px) Reduce font-sizes for better readability on smaller devices */
- body, #content p, #content ul, #content ol,#content code, #content pre, #content blockquote {
- font-size: 13px !important;
- }
- #front-text1 h1, #front-text2 h1 {
- font-size:2em;
- line-height:2em;
- }
- #access ul {
- font-size: 12px;
- }
- article.intro .entry-content {
- font-size: 12px;
- }
- .entry-title {
- font-size: 21px;
- }
- .featured-post .entry-title {
- font-size: 14px;
- }
- .singular .entry-title {
- font-size: 28px;
- }
- .entry-meta {border:none;padding:0;}
- .entry-meta a , .entry-meta, .comments-link{
- font-size: 10px !important;
- background:none !important;
- -moz-box-shadow:none !important;
- -webkit-box-shadow:none !important;
- box-shadow:none !important;
- }
- #content .entry-title {
- font-size:20px !important;
- }
- #content h1, #content h2, #content h3, #content h4, #content h5, #content h6 {
- margin-left:0 !important;
- }
- .widget-area a:link, .widget-area a:visited {
- font-size:10px !important;
- }
- .tinynav {
- display: block;
- }
- #access .menu ul:first-child {
- display: none;
- }
- .theme-default .nivo-caption {
- font-size:9px;
- }
- .short-columns {
- width:100%;
- }
-}
-
-
-
-@media (max-width: 480px) {
- /* @media (max-width: 450px) Reduce font-sizes for better readability on the smalles of devices */
-
-
-body, #content p, #content ul, #content ol,#content code, #content pre, #content blockquote {
- font-size: 12px !important;
- }
-
- #site-title span a{
- font-size: 18px;
- line-height:18px;
- }
- #site-description {
- font-size: 11px;
- line-height:10px;
- }
- #front-columns > div {
- width:90% ;
- }
-
- body {
- padding: 0;
- }
- #page {
- margin-top: 0;
- }
- #branding {
- border-top: none;
- }
-
-}
-
diff --git a/themes/mantra/style.css b/themes/mantra/style.css
index 67896c0a..a64030b0 100644
--- a/themes/mantra/style.css
+++ b/themes/mantra/style.css
@@ -4,13 +4,13 @@ Theme URI: https://www.cryoutcreations.eu/wordpress-themes/mantra
Description: Mantra is a do-it-yourself WordPress theme, featuring a pack of over 100 customization options and easy to use tweaks capable of tuning WordPress to your very specific needs and likes. With the help of a simple and efficient user interface you can customize everything:the layout (1,2 or 3 columns), total and partial site widths, colors (all texts, links, backgrounds etc.), fonts (over 35 font-families plus all Google Fonts), text and header sizes, post metas, post excerpts, post formats, header and background images, custom menus, 27 social media links and icons, pins, bullets and much much more. With a fully responsive layout,a customizable showcase presentation page, animated slider, magazine and blog layouts, 8 widget areas, modern graphics and an easy and intuitive admin section, you can start creating your dream site right now.
Author: Cryout Creations
Author URI: https://www.cryoutcreations.eu
-Version: 2.6.1.1
+Version: 3.0.4
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, three-columns, right-sidebar, left-sidebar, footer-widgets, grid-layout, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, front-page-post-form, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce, entertainment, news
Text domain: mantra
-Copyright (c) 2011-2013 Cryout Creations
+Copyright (c) 2011-2018 Cryout Creations
https://www.cryoutcreations.eu
*/
@@ -35,11 +35,9 @@ small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend{
- background: transparent;
border: 0;
margin: 0;
padding: 0;
- vertical-align: baseline;
}
table, tbody, tfoot, thead, tr, th, td {
@@ -49,6 +47,16 @@ table, tbody, tfoot, thead, tr, th, td {
padding: 0;
}
+*, *:before, *:after {
+ box-sizing: border-box;
+}
+
+/* HTML5 display-role reset for older browsers */
+article, aside, details, figcaption, figure,
+footer, header, hgroup, menu, nav, section {
+ display: block;
+}
+
body {
line-height: 1;
}
@@ -75,15 +83,13 @@ blockquote {
display: block;
float: none;
clear: both;
- max-width: 90% !important;
+ max-width: 90%;
margin: 0 auto;
- padding: 15px ;
- border : 1px solid #EEE;
- background-color: #FAFAFA;
+ padding: 25px ;
+ background-color: #F8F8F8;
+ font-size: 1.1em;
font-style: italic;
- color: #999;
- border-radius: 5px;
- box-shadow: 0px 0px 3px #FFF inset;
+ border-radius: 2px;
}
del {
@@ -98,15 +104,162 @@ a img {
border: none;
}
+/* ICON FONT - ELUSIVE */
+@font-face {
+ font-family: 'elusive';
+ src: url('resources/fonts/elusive.eot');
+ src: url('resources/fonts/elusive.eot?#iefix') format('embedded-opentype'),
+ url('resources/fonts/elusive.woff') format('woff'),
+ url('resources/fonts/elusive.ttf') format('truetype'),
+ url('resources/fonts/elusive.svg?#elusive') format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+
+[class^="crycon-"]:before,
+[class*=" crycon-"]:before {
+ font-family: "elusive";
+ font-style: normal;
+ font-weight: normal;
+ speak: none;
+ display: inline-block;
+ text-decoration: inherit;
+ width: 1em;
+ margin-right: .2em;
+ text-align: center;
+ font-variant: normal;
+ text-transform: none;
+ line-height: inherit;
+ margin-left: .2em;
+ cursor:inherit;
+ font-size:inherit;
+}
+
+/* Post info */
+.crycon-author:before { content: '\e801'; } /* '?' */
+.crycon-category:before { content: '\e805'; } /* '?' */
+.crycon-category2:before { content: '\e817'; } /* '?' */
+.crycon-folder-close:before { content: '\e81c'; } /* '?' */
+.crycon-folder-open:before { content: '\e81d'; } /* '?' */
+.crycon-tag:before { content: '\e802'; } /* '?' */
+.crycon-bookmark:before { content: '\e810'; } /* '?' */
+.crycon-edit:before { content: '\e804'; } /* '?' */
+.crycon-comment:before { content: '\e800'; } /* '?' */
+.crycon-comments:before { content: '\e815';} /* '?' */
+.crycon-date:before { content: '\e82b'; } /* '?' */
+.crycon-time:before { content: '\e80d'; } /* '?' */
+.crycon-forward:before { content: '\e81b';-webkit-transform:rotate(180deg) scale(-1, 1);-ms-transform:rotate(180deg) scale(-1, 1);transform:rotate(180deg) scale(-1, 1);margin-left:5px;font-size:10px;
+-moz-transition:.2s margin ease; -o-transition:.2s margin ease; -webkit-transition:.2s margin ease; transition:.2s margin ease; } /* '?' */
+.crycon-reply:before { content: '\e81b';transform:rotate(180deg);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);margin-right:5px;font-size:10px;
+-moz-transition:.2s margin ease; -o-transition:.2s margin ease; -webkit-transition:.2s margin ease; transition:.2s margin ease; } /* '?' */
+
+/* Post metas */
+.crycon-metas:before {
+ font-size: 13px;
+ line-height: 1;
+ cursor: default;
+ margin-right: 8px;
+ color: #555;
+}
+
+.crycon-time:before,.crycon-folder-close:before, .crycon-folder-open:before {font-size:14px; } /* '?' */
+.crycon-time:before {margin-top:1px; } /* '?' */
+.crycon-edit:before {margin-right:1px; } /* '?' */
+
+/* Post formats */
+.crycon-status:before { content: '\e81a'; } /* '?' */
+.crycon-aside:before { content: '\e82a'; } /* '?' */
+.crycon-link:before { content: '\e818'; } /* '?' */
+.crycon-audio:before { content: '\e823'; } /* '?' */
+.crycon-video:before { content: '\e829'; } /* '?' */
+.crycon-image:before { content: '\e824'; } /* '?' */
+.crycon-gallery:before { content: '\e825'; } /* '?' */
+.crycon-quote:before { content: '\e80f'; } /* '?' */
+
+/* Misc */
+.crycon-search:before { content: '\e816'; } /* '?' */
+.crycon-down-dir:before { content: '\e803'; } /* '?' */
+.crycon-right-dir:before { content: '\e806'; } /* '?' */
+.crycon-angle-left:before { content: '\e807'; } /* '?' */
+.crycon-angle-right:before { content: '\e808'; } /* '?' */
+.crycon-angle-up:before { content: '\e809'; } /* '?' */
+.crycon-angle-down:before { content: '\e80a'; } /* '?' */
+.crycon-minus:before { content: '\e80b'; } /* '?' */
+.crycon-left-open:before { content: '\e80c'; } /* '?' */
+.crycon-up:before { content: '\e80e'; } /* '?' */
+.crycon-left-dir:before { content: '\e811'; } /* '?' */
+.crycon-up-open:before { content: '\e812'; } /* '?' */
+.crycon-ok:before { content: '\e813'; } /* '?' */
+.crycon-cancel:before { content: '\e814'; } /* '?' */
+.crycon-up-dir:before { content: '\e819'; } /* '?' */
+.crycon-right-open:before { content: '\e81e'; } /* '?' */
+.crycon-home:before { content: '\e81f'; } /* '?' */
+.crycon-menu:before { content: '\e820'; } /* '?' */
+.crycon-plus:before { content: '\e821'; } /* '?' */
+.crycon-down-open:before { content: '\e822'; } /* '?' */
+.crycon-down:before { content: '\e826'; } /* '?' */
+.crycon-left:before { content: '\e827'; } /* '?' */
+.crycon-right:before { content: '\e828'; } /* '?' */
+.crycon-star-empty:before { content: '\e82c'; } /* '?' */
+.crycon-star:before { content: '\e82d'; } /* '?' */
+.crycon-mail:before { content: '\e82e'; } /* '?' */
+.crycon-home-1:before { content: '\e82f'; } /* '?' */
+.crycon-attach:before { content: '\e830'; } /* '?' */
+.crycon-eye:before { content: '\e831'; } /* '?' */
+.crycon-eye-off:before { content: '\e832'; } /* '?' */
+.crycon-tags:before { content: '\e833'; } /* '?' */
+.crycon-flag:before { content: '\e834'; } /* '?' */
+.crycon-warning:before { content: '\e835'; } /* '?' */
+.crycon-location:before { content: '\e836'; } /* '?' */
+.crycon-trash:before { content: '\e837'; } /* '?' */
+.crycon-doc:before { content: '\e838'; } /* '?' */
+.crycon-phone:before { content: '\e839'; } /* '?' */
+.crycon-cog:before { content: '\e83a'; } /* '?' */
+.crycon-basket:before { content: '\e83b'; } /* '?' */
+.crycon-basket-circled:before { content: '\e83c'; } /* '?' */
+.crycon-wrench:before { content: '\e83d'; } /* '?' */
+.crycon-wrench-circled:before { content: '\e83e'; } /* '?' */
+.crycon-mic:before { content: '\e83f'; } /* '?' */
+.crycon-volume:before { content: '\e840'; } /* '?' */
+.crycon-volume-down:before { content: '\e841'; } /* '?' */
+.crycon-volume-off:before { content: '\e842'; } /* '?' */
+.crycon-headphones:before { content: '\e843'; } /* '?' */
+.crycon-lightbulb:before { content: '\e844'; } /* '?' */
+.crycon-resize-full:before { content: '\e845'; } /* '?' */
+.crycon-resize-full-alt:before { content: '\e846'; } /* '?' */
+.crycon-resize-small:before { content: '\e847'; } /* '?' */
+.crycon-resize-vertical:before { content: '\e848'; } /* '?' */
+.crycon-resize-horizontal:before { content: '\e849'; } /* '?' */
+.crycon-move:before { content: '\e84a'; } /* '?' */
+.crycon-zoom-in:before { content: '\e84b'; } /* '?' */
+.crycon-zoom-out:before { content: '\e84c'; } /* '?' */
+.crycon-arrows-cw:before { content: '\e84d'; } /* '?' */
+.crycon-desktop:before { content: '\e84e'; } /* '?' */
+.crycon-inbox:before { content: '\e84f'; } /* '?' */
+.crycon-cloud:before { content: '\e850'; } /* '?' */
+.crycon-book:before { content: '\e851'; } /* '?' */
+.crycon-certificate:before { content: '\e852'; } /* '?' */
+.crycon-tasks:before { content: '\e853'; } /* '?' */
+.crycon-thumbs-up:before { content: '\e854'; } /* '?' */
+.crycon-thumbs-down:before { content: '\e855'; } /* '?' */
+.crycon-help-circled:before { content: '\e856'; } /* '?' */
+.crycon-star-circled:before { content: '\e857'; } /* '?' */
+.crycon-bell:before { content: '\e858'; } /* '?' */
+.crycon-rss:before { content: '\e859'; } /* '?' */
+.crycon-trash-circled:before { content: '\e85a'; } /* '?' */
+.crycon-cogs:before { content: '\e85b'; } /* '?' */
+.crycon-cog-circled:before { content: '\e85c'; } /* '?' */
+.crycon-calendar-circled:before { content: '\e85d'; } /* '?' */
+.crycon-mic-circled:before { content: '\e85e'; } /* '?' */
+.crycon-volume-up:before { content: '\e85f'; } /* '?' */
+.crycon-print:before { content: '\e860'; } /* '?' */
+.crycon-edit-alt:before { content: '\e861'; } /* '?' */
+.crycon-edit-2:before { content: '\e862'; } /* '?' */
+.crycon-block:before { content: '\e863'; } /* '?' */
/* =Layout
-------------------------------------------------------------- */
-/*
-LAYOUT: Two columns
-DESCRIPTION: Two-column fixed layout with one sidebar right of content
-*/
-
#container {
float: none;
width: 100%;
@@ -116,8 +269,8 @@ DESCRIPTION: Two-column fixed layout with one sidebar right of content
#content {
display: block;
float: left;
- margin: 0px 0px 0 20px;
- padding-top: 10px;
+ margin: 0;
+ padding: 3em;
}
#primary,
@@ -126,72 +279,53 @@ DESCRIPTION: Two-column fixed layout with one sidebar right of content
float: right;
overflow: hidden;
width: 125px;
- border-left: 1px dashed #EAEAEA;
- padding-left: 20px;
- padding-top: 10px;
+ border-left: 1px dotted #EAEAEA;
+ padding: 3em 2em 2em;
}
#primary {
- min-height:200px;
+ min-height: 200px;
}
#secondary {
/*clear: right;*/
}
+
#footer {
clear: both;
width: 100%;
}
-/*
-LAYOUT: One column, no sidebar
-DESCRIPTION: One centered column with no sidebar
-*/
-
.one-column #content {
float: none;
width: auto;
- margin: 0 20px;
+ max-width: 100%;
}
-/*
-LAYOUT: Full width, no sidebar
-DESCRIPTION: Full width content with no sidebar; used for attachment pages
-*/
-
.single-attachment #content {
display: block;
float: none;
- width: 96%;
- margin: 0px auto;
+ max-width: 100%;
+ margin: 0 auto;
}
/* =Fonts
-------------------------------------------------------------- */
-body {
- font-family: "Segoe UI", Arial, sans-serif;
-}
pre {
font-family: "Courier 10 Pitch", Courier, monospace;
}
+
code {
- font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace !important;
+ font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
.entry-content code {
- display: block;
- float: none;
- clear: both;
- width: 95% !important;
- margin: 0 auto;
- padding: 10px !important;
- overflow: auto;
- border-left: 5px solid #EEEEEE;
+ display: inline-block;
+ padding: 2px 10px;
+ border-left: 3px solid #EEEEEE;
color: #1B1B1B;
- text-indent: 0;
- white-space: nowrap;
background-color: #FAFAFA;
}
@@ -209,6 +343,7 @@ code {
#branding {
position: relative;
display: block;
+ width: 100%;
float: left;
clear: both;
height: 75px;
@@ -243,31 +378,29 @@ a#logo {
.footerfour .widget-area {
float: left;
- width: 22%;
- margin-left: 1.5%;
- margin-right: 1.5%;
+ width: 20.5%;
+ margin-right: 6%;
}
+
.footerthree .widget-area {
float: left;
- width: 30%;
- margin-left: 1.5%;
- margin-right: 1.5%;
+ width: 28%;
+ margin-right: 8%;
}
.footertwo .widget-area {
float: left;
- width: 47%;
- margin-left: 2.5%;
+ width: 47.5%;
+ margin-right: 5%;
}
.footerone .widget-area {
float: left;
- width: 98%;
- margin-left: 2%;
+ width: 100%;
}
-#footer-widget-area #fourth {
+#footer-widget-area .widget-area:last-child {
margin-right: 0;
}
@@ -280,19 +413,19 @@ a#logo {
/* =Global Elements
-------------------------------------------------------------- */
-/* Main global 'theme' and typographic styles */
+html {
+ color: #666;
+ font-size: 15px;
+ line-height: 1.7;
+}
+
body {
+ font-size: inherit;
+ line-height: inherit;
padding-bottom: 10px;
background: #333;
}
-body,
-input,
-textarea {
- color: #666;
- font-size: 12px;
- line-height: 18px;
-}
hr {
clear: both;
height: 1px;
@@ -302,15 +435,14 @@ hr {
}
/* Text elements */
-#content {
- font-size: 15px;
- line-height: 1.7em;
+#content {
color: #333;
}
-#content p{
- margin-bottom: 1.5em;
+#content p:not(:last-child) {
+ margin-bottom: 1em;
}
+
.entry-content ul, .entry-summary ul {
margin-left: 1.5em;
}
@@ -321,7 +453,7 @@ hr {
}
.entry-content ul > li {
- background: url(images/bullet.png) left 10px no-repeat;
+ background: url(resources/images/bullet.png) left 10px no-repeat;
padding-left: 20px;
}
@@ -361,10 +493,9 @@ ins {
}
pre {
- background: #F8F8F8;
color: #222;
padding: 1.5em;
- border: 1px dashed #ddd;
+ border: 1px dotted #ddd;
}
abbr,
acronym {
@@ -388,38 +519,67 @@ input:focus,
textarea:focus {
outline: none;
}
+
input[type="text"],
input[type="password"],
input[type="email"],
-textarea {
- box-sizing: border-box;
- padding-left: 5px;
+input[type="color"],
+input[type="date"],
+input[type="datetime"],
+input[type="datetime-local"],
+input[type="month"],
+input[type="number"],
+input[type="range"],
+input[type="search"],
+input[type="tel"],
+input[type="time"],
+input[type="url"],
+input[type="week"],
+textarea,
+select {
+ font-size: inherit;
+ padding: 10px;
border: 1px solid #DDD;
- background: #fff;
border-radius: 2px;
-webkit-transition: .2s border ease;
transition: .2s border ease;
}
-input[type="text"],
-input[type="password"],
-input[type="email"] {
- height: 32px;
-}
input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
-textarea:hover {
+input[type="color"]:hover,
+input[type="date"]:hover,
+input[type="datetime"]:hover,
+input[type="datetime-local"]:hover,
+input[type="month"]:hover,
+input[type="number"]:hover,
+input[type="range"]:hover,
+input[type="search"]:hover,
+input[type="tel"]:hover,
+input[type="time"]:hover,
+input[type="url"]:hover,
+input[type="week"]:hover,
+textarea:hover,
+select:hover {
border: 1px solid #CCC;
}
+
+input[type="submit"],
+input[type="reset"] {
+ padding: .5em 1em;
+}
+
a:link {
color: #0D85CC;
text-decoration: none;
}
+
a:visited {
color: #0D85CC;
text-decoration: none;;
}
+
a:active,
a:hover {
color: #000;
@@ -434,14 +594,15 @@ a:hover {
/* =Header
-------------------------------------------------------------- */
-
#header {
background: none;
}
+
#site-title {
- float: left;
+ display: block;
+ float: none;
font-size: 36px;
- line-height: 60px;
+ line-height: 50px;
}
#site-title a {
@@ -451,18 +612,23 @@ a:hover {
font-variant: small-caps;
letter-spacing: -0.02em;
color: #EEE;
- text-shadow: -2px -2px 0px #000;
+ opacity: 1;
+ -webkit-transition: .3s ease opacity;
+ transition: .3s ease opacity;
}
+
+#site-title:hover a {
+ opacity: .8;
+}
+
#site-description {
- display: inline;
+ display: block;
+ clear: both;
float: left;
- margin-left: 20px;
- padding-left: 0;
- font-size: 15px;
- line-height: 60px;
- letter-spacing: 0.1em;
+ font-size: .8em;
+ text-transform: uppercase;
+ letter-spacing: 2px;
color: #999;
- text-shadow: 0px -1px 0px #000;
}
#header-container {
@@ -482,16 +648,23 @@ a:hover {
/* =Menu -PRIMARY
-------------------------------------------------------------- */
+#nav-toggle {
+ display: none;
+ background: #FFF;
+ box-shadow: 0 0 5px rgba(0,0,0,.5);
+}
+
#access {
display: block;
float: left;
margin: 0 auto;
margin-top: 10px;
+ width: 100%;
}
#access .menu-header,
div.menu {
- margin: 0 6px;
+ margin: 0 1em;
}
#access ul {
@@ -504,11 +677,25 @@ div.menu {
box-shadow: none;
}
+#access a,
+.entry-meta a,
+.entry-meta2 a,
+.entry-meta3 a,
+.entry-utility a,
+.topmenu a,
+a.continue-reading-link,
+.widget-area a,
+#footer2 a,
+.columnmore a,
+#nav-below a {
+ -webkit-transition: .3s ease color;
+ transition: .3s ease color;
+}
#access a {
display: block;
- padding: 0.2em 1.2em;
- font-size: 14px;
+ padding: 0.5em 1.5em;
+ font-size: 0.95em;
text-decoration: none;
color: #5F5B5B;
}
@@ -518,10 +705,9 @@ div.menu {
float: left;
background: #FAFAFA;
margin: 0 3px;
- padding: 3px 0;
white-space: nowrap;
border-radius: 7px 7px 0 0;
- box-shadow: 0 -3px 4px rgba(0,0,0,0.1) inset;
+ box-shadow: 0 -.2em 4px rgba(0,0,0,0.1) inset;
}
#access a:hover {
@@ -534,7 +720,7 @@ div.menu {
display: none;
clear: both;
margin-left: 0;
- box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
+ box-shadow: 0 6px 5px rgba(0, 0, 0, 0.1);
}
#access ul ul li { /* level 2 */
@@ -566,12 +752,13 @@ div.menu {
border-bottom: 1px solid rgba(220,220,220,0.3);
}
-#access ul ul a, #access ul ul ul a {
+#access ul ul a,
+#access ul ul ul a {
display: block;
float: none;
width: 100% ;
- padding-top: 0.6em ;
- padding-bottom: 0.6em ;
+ padding-top: 0.75em ;
+ padding-bottom: 0.75em ;
color: #5F5B5B;
}
@@ -630,16 +817,17 @@ div.menu {
overflow: hidden;
}
-.topmenu ul{
+.topmenu ul {
float: right;
margin: 0;
padding: 0;
}
-.topmenu ul li{
+.topmenu ul li {
display: block;
float: left;
- margin: 3px 5px;
+ margin: 5px 10px;
+ font-size: 0.9em;
}
.footermenu {
@@ -653,7 +841,7 @@ div.menu {
.footermenu ul li{
display: block;
float: left;
- margin: 0 5px;
+ margin: 0 10px;
text-align: center;
}
@@ -664,6 +852,7 @@ div.menu {
#main {
clear: both;
overflow: hidden;
+ width: 100%;
padding: 0;
background: #FFF;
}
@@ -692,11 +881,6 @@ div.menu {
font-family: "Courier New",Courier,monospace;
}
-.entry-content dt,
-.entry-content th {
- color: #000;
-}
-
.entry-content h1,
.entry-content h2,
.entry-content h3,
@@ -704,13 +888,34 @@ div.menu {
.entry-content h5,
.entry-content h6 {
margin: 20px 0 5px 0;
- color: #0E85CD;
}
.entry-content h1 {
+ font-size: 2.5em;
+}
+
+.entry-content h2 {
+ font-size: 2.2em;
+}
+
+.entry-content h3 {
font-size: 1.9em;
}
+.entry-content h4 {
+ font-size: 1.5em;
+}
+
+.entry-content h5 {
+ font-size: 1.25em;
+ text-transform: uppercase;
+}
+
+.entry-content h6 {
+ font-size: 1em;
+ text-transform: uppercase;
+}
+
.entry-content table {
width: 100%;
margin: 0 0 24px 0;
@@ -745,21 +950,23 @@ div.menu {
}
.hentry {
- margin: 0 0 28px 0;
+ margin: 0 0 48px 0;
}
.single .hentry {
- margin: 0 0 36px 0;
+ margin: 0 0 48px 0;
}
+
.page-title {
+ display: block;
margin: 0 0 10px 0;
- font-size: 16px;
+ font-size: 1.1em;
font-weight: bold;
color: #000;
}
.page-title span {
- font-size: 16px;
+ font-size: 1.1em;
font-style: italic;
font-weight: normal;
color: #333;
@@ -780,9 +987,8 @@ div.menu {
margin-bottom: 0;
font-size: 30px;
font-weight: normal;
- line-height: 1.3em;
+ line-height: 1.3;
color: #000000;
- text-shadow: 2px 2px 0px #FFF,-2px -2px 0px #FFF,3px 3px 1px #ccc;
}
.entry-title a:link,
@@ -800,25 +1006,32 @@ div.menu {
margin-bottom: 10px;
}
+.page-header {
+ margin: 1em 0 2em;
+}
+
.entry-meta {
display: block;
clear:both;
margin: 0 1px;
- padding: 0 6px;
- border: 2px solid #FFF;
- color: #666666;
- font-size: 12px;
- line-height: 2em;
- background-color: #F5F5F5;
- box-shadow: 0 0 1px #DDD;
+ padding: 0 5px;
+ font-size: .9em;
+ line-height: 2.5;
+ background-color: #F8F8F8;
+ color: #AAA;
+}
+
+.entry-meta > span {
+ display: inline-block;
}
#content .entry-meta2,
#content .entry-meta3 {
- font-size: 12px ;
+ font-size: .9em;
padding: 0;
clear: both;
display: block;
+ color: #AAA;
}
.entry-meta .updated {
@@ -828,20 +1041,18 @@ div.menu {
.entry-meta .comments-link {
float: right;
margin-top: 0;
- padding: 0 10px 0;
- font-size: 12px;
- line-height: 1.9em;
+ padding: 0 10px;
background: #FFF;
- box-shadow: inset 1px 1px 0px #DDD;
+ margin-right: 10px;
}
#content h3.entry-format {
display: inline;
margin-left: 0;
padding-left: 4px;
- font-size: 14px;
+ font-size: .95em;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- color: #666;
+ color: #AAA;
text-decoration: underline;
text-transform: uppercase;
text-shadow: none;
@@ -851,7 +1062,11 @@ div.menu {
float: right;
padding: 0 10px;
border-bottom: 1px solid #EEEEEE;
- font-size: 12px;
+}
+
+.entry-meta .bl_sep {
+ margin: 0 3px;
+ opacity: 0.5;
}
.entry-meta abbr,
@@ -867,11 +1082,11 @@ div.menu {
.entry-content,
.entry-summary {
clear: both;
- padding: 8px 0 10px;
+ padding: 2em 0 1em;
}
-#content .entry-summary p:last-child {
- margin-bottom: 12px;
+.entry-summary {
+ padding: 1em 0 1em;
}
.entry-content fieldset {
@@ -914,15 +1129,17 @@ div.menu {
.page-link {
clear: both;
- margin: 20px 0;
- font-size: 12px;
- line-height: 14px;
+ margin: 20px 10px 20px 0;
+ font-size: .9em;
}
.page-link em {
+ display: inline-block;
margin: 0;
- padding: 2px 8px;
- border-bottom: 1px solid #eee;
+ height: 3em;
+ width: 3em;
+ line-height: 3;
+ text-align: center;
font-weight: normal;
font-style: normal;
text-decoration: none;
@@ -940,54 +1157,53 @@ body.page .edit-link {
clear: both;
}
-#entry-author-info {
+#entry-author-info,
+#author-info {
clear: both;
- margin: 24px 0;
- padding: 18px 20px;
+ margin-bottom: 48px;
+ padding: 1.5em;
overflow: hidden;
- border-top: 4px solid #333;
- font-size: 14px;
- line-height: 20px;
- background: #FFF;
+ line-height: 1.5;
+ background: #F7F7F7;
}
-#entry-author-info #author-avatar {
+#entry-author-info #author-avatar,
+#author-info #author-avatar {
float: left;
- height: 60px;
margin: 0 -104px 0 0;
padding: 11px;
- border: 1px solid #e7e7e7;
- background: #fff;
- box-shadow: 0 0 10px #EEEEEE inset;
+ border: 1px solid #E7E7E7;
+ line-height: 0;
+ background: #FFF;
}
-#entry-author-info #author-description {
+#entry-author-info #author-description,
+#author-info #author-description {
float: left;
margin: 0 0 0 104px;
}
-#entry-author-info h2 {
- margin-bottom: 0;
+#entry-author-info h2,
+#author-info h2 {
+ margin-bottom: 0.5em;
font-size: 100%;
font-weight: bold;
color: #000;
}
+#author-link {
+ margin-top: 0.5em
+}
+
.entry-utility {
clear: both;
- color: #666;
- font-size: 12px;
- line-height: 18px;
+ font-size: .9em;
+ color: #AAA;
}
a,
.entry-utility a {
- color: #666;
-}
-
-.entry-meta a:hover,
-.entry-utility a:hover {
- color: #000;
+ color: inherit;
}
#content .video-player {
@@ -1006,11 +1222,11 @@ article.format-aside {
}
article.format-aside { background-position: 10px -7px; }
-article.format-link { background-image: url(images/post-formats/link.png); }
-article.format-quote { background-image: url(images/post-formats/quotes.png); }
-article.format-image { background-image: url(images/post-formats/picture.png); }
-article.format-chat { background-image: url(images/post-formats/bubble.png); }
-article.format-aside { background-image: url(images/post-formats/brackets.png); }
+article.format-link { background-image: url(resources/images/post-formats/link.png); }
+article.format-quote { background-image: url(resources/images/post-formats/quotes.png); }
+article.format-image { background-image: url(resources/images/post-formats/picture.png); }
+article.format-chat { background-image: url(resources/images/post-formats/bubble.png); }
+article.format-aside { background-image: url(resources/images/post-formats/brackets.png); }
article.format-link header,
article.format-quote header,
@@ -1028,7 +1244,16 @@ article.format-quote h3.entry-format,
article.format-image h3.entry-format,
article.format-chat h3.entry-format,
article.format-aside h3.entry-format {
- display: none !important;
+ display: none;
+}
+
+/* post formats bg image undo for single posts */
+.single article.format-link,
+.single article.format-quote,
+.single article.format-image,
+.single article.format-chat,
+.single article.format-aside {
+ background-image: none;
}
@@ -1062,6 +1287,8 @@ article.format-aside h3.entry-format {
display: none;
}
+.bypostauthor {}
+
/**
* 5.4 Galleries
* ----------------------------------------------------------------------------
@@ -1152,7 +1379,6 @@ article.format-aside h3.entry-format {
position: absolute;
bottom: 0;
left: 0;
- box-sizing: border-box;
width: 90%;
max-height: 50%;
margin: 0 0 16px;
@@ -1246,9 +1472,9 @@ article.format-aside h3.entry-format {
#content img {
margin: 0;
height: auto;
- max-width:100%;
- box-sizing: border-box;
+ max-width: 100%;
}
+
#content table img {
max-width: initial;
}
@@ -1287,29 +1513,24 @@ article.format-aside h3.entry-format {
#content .wp-caption {
max-width: 100%;
- box-sizing: border-box;
margin-bottom: 20px;
- padding: 22px 7px 4px;
- border: 1px solid #DDD;
+ padding: 34px 0 4px;
text-align: center;
- line-height: 18px;
- color: #333;
- background: url(images/pins/Pin2.png) no-repeat center 1px #F9F9F9;
- border-radius: 4px;
+ background: url(resources/images/pins/Pin2.png) no-repeat center 5px #F9F9F9;
+ border-radius: 2px;
}
#content .wp-caption img {
width: 100%;
- margin: 5px 0 0;
+ margin: 0 auto;
padding: 0;
border: none;
- border-radius:4px;
box-shadow: none;
}
#content .wp-caption p.wp-caption-text {
- margin: 5px;
- font-size: 12px;
+ padding: 10px;
+ font-size: .9em;
text-align: center;
text-indent: 0;
}
@@ -1323,21 +1544,25 @@ article.format-aside h3.entry-format {
-moz-box-shadow: none !important;
}
+.size-auto, .size-full, .size-large, .size-medium, .size-thumbnail {
+ max-width: 100%;
+ height: auto;
+}
+
/* =Navigation
-------------------------------------------------------------- */
.navigation {
overflow: hidden;
- font-size: 12px;
- line-height: 18px;
- color: #666;
+ font-size: .9em;
+ color: inherit;
}
.navigation a:link,
.navigation a:visited {
text-decoration: none;
- color: #666;
+ color: inherit;
}
.navigation a:active,
@@ -1365,7 +1590,7 @@ article.format-aside h3.entry-format {
}
#nav-above {
- margin: 0 0 18px 0;
+ margin: 0 0 3em 0;
}
#nav-above {
@@ -1374,12 +1599,12 @@ article.format-aside h3.entry-format {
.paged #nav-above,
.single #nav-above {
- display: block;
+ display: none;
}
#nav-below {
clear:both;
- margin-bottom: 10px;
+ margin-bottom: 48px;
}
@@ -1402,11 +1627,8 @@ h3#reply-title {
}
h3#comments-title {
- padding-top: 4px;
- padding-bottom: 4px;
- padding-left: 10px;
- margin-top: 20px;
- margin-bottom: 20px;;
+ padding-top: 30px;
+ padding-bottom: 30px;
}
.commentlist {
@@ -1424,7 +1646,7 @@ h3#comments-title {
background-image:none;
}
-.reply a.comment-reply-link {
+#comments .reply a.comment-reply-link {
padding: 0 3px;
color: #CCC;
font-weight: bold;
@@ -1455,8 +1677,8 @@ h3#comments-title {
.commentlist img.avatar {
position: absolute;
top: 4px;
- left: 5px;
- border: 1px solid #EEE ;
+ left: 0;
+ border: 1px solid #EEE;
border-radius: 0;
background: #FFF;
}
@@ -1479,13 +1701,16 @@ h3#comments-title {
display: block;
float: left;
margin-bottom: 5px;
- margin-left: 5px;
- font-size: 12px;
+ margin-left: 10px;
+ font-size: .8em;
+ text-transform: uppercase;
+ opacity: 0.5;
+ letter-spacing: 1px;
}
.comment-meta a:link,
.comment-meta a:visited {
- color: #999;
+ color: inherit;
text-decoration: none;
}
@@ -1494,29 +1719,28 @@ h3#comments-title {
color: #0D85CC;
}
+.comment-edit-link {
+ border-bottom: 1px dotted;
+}
+
.comment-body {
clear: both;
- padding: 5px 10px;
+ padding: 1em;
border: 1px solid #EEE;
- background: #F9F9F9;
}
-.commentlist .even {}
-
-.commentlist .bypostauthor {}
-
-.reply {
+#comments .reply {
padding: 0 0 10px 0;
- font-size: 12px;
+ font-size: .9em;
text-align: right;
}
-.reply a,
+#comments .reply a,
a.comment-edit-link {
color: #666;
}
-.reply a:hover,
+#comments .reply a:hover,
a.comment-edit-link:hover {
color: #0D85CC;
}
@@ -1574,23 +1798,24 @@ input[type="submit"] {
margin: 24px 0;
}
-#respond p {
- margin: 0;
+#content #respond p {
+ margin: 0 0 10px;
+ overflow: hidden;
}
#respond .comment-notes {
margin-bottom: 1.5em;
- font-size: 0.8em;
- color: #999;
+ font-size: 0.9em;
+ opacity: .7;
}
.form-allowed-tags {
- line-height: 1em;
+ line-height: 1.2;
}
.children #respond {
margin: 0 48px 0 0;
- min-width:400px;
+ min-width: 400px;
}
h3#reply-title {
@@ -1625,8 +1850,7 @@ h3#reply-title {
}
#respond label {
- font-size: 12px;
- color: #666;
+ font-size: .9em;
}
#respond input {
@@ -1687,22 +1911,18 @@ h3#reply-title {
}
#respond .form-submit input {
- font-size: 14px;
width: auto;
}
#respond .form-submit input#submit {
- padding: 2px 5px;
+ padding: 10px 20px;
border: 1px solid #CCC;
- background-color: #FFF;
- color: #555;
- border-radius: 5px;
- box-shadow: inset 0px -10px 10px 0px #EEE;
+ border-radius: 2px;
+ font-size: .9em;
}
#respond .form-submit input#submit:hover {
background-color: #F6F6F6;
- color: #444;
}
@@ -1726,13 +1946,14 @@ h3#reply-title {
list-style-image: none;
}
-.widget-area ul ul li{
- background: url(images/bullets/arrow_white.png) left 8px no-repeat;
- margin: 4px 3px;
+.widget-area ul ul li {
+ background: url(resources/images/bullets/arrow_white.png) left calc( 2em / 2 - 4px ) no-repeat;
+ margin: 5px 3px;
display: block;
float: none;
width: auto;
- padding: 3px 0 0 12px;
+ padding-left: 15px;
+ line-height: 2;
}
.contentsearch {
@@ -1741,118 +1962,110 @@ h3#reply-title {
overflow: hidden;
}
-.contentsearch #s {
+.contentsearch .s {
display: block;
float: left;
- height: 40px;
- min-width: 250px;
- margin-bottom: 20px;
- padding-left: 10px;
- font-size: 15px;
- border-radius:0 10px 10px 0;
+ height: 3em;
+ min-width: 300px;
+ margin-bottom: 2em;
+ padding-left: 1em;
+ border-radius: 100px;
-webkit-transition: .2s background ease-in;
transition: .2s background ease-in;
+ border: 1px solid #CCC;
}
-.contentsearch #searchsubmit {
+.contentsearch .searchsubmit {
position: relative;
left: -40px;
top: 0;
display: block;
float: left;
- width: 40px;
- height: 40px;
+ width: 3.5em;
+ height: 100%;
+ line-height: inherit;
margin: 0;
padding: 0;
border: none;
- font-size: 12px;
text-align: center;
cursor: pointer;
- background: #777;
+ background: #444;
color: #EEE;
- border-radius: 0 10px 10px 0;
+ border-radius: 0 100px 100px 0;
+ text-indent: -5px;
+ font-size: 1em;
+ letter-spacing: 1px;
+ -webkit-transition: .2s background ease-in;
+ transition:.2s background ease-in;
}
#searchform {
position: relative;
display: block;
- height: 20px;
- margin-bottom: 20px;
-}
-
-#main #searchform,
-#footer #searchform {
- margin-right: 10px;
+ height: 3em;
}
-.widget_search #s, #search #s {/* This keeps the search inputs in line This is the Sidebar Search*/
+.widget_search .s,
+#search .s {/* This keeps the search inputs in line This is the Sidebar Search*/
position: absolute;
right: 0;
top: 0;
- box-sizing:border-box;
display: block;
width: 100%;
+ height: 3em;
+ line-height: 3;
margin: 0;
- padding-left: 10px;
- font-family: Arial;
- font-size: 14px;
- border-radius: 0 6px 6px 0;
-}
-
-#searchform #s:hover , #container #s:hover {
- color: #0D85CC;
+ padding-left: 1em;
+ border-radius: 100px;
+ border: 1px solid #CCC;
}
-.widget_search #searchsubmit {
+.widget_search .searchsubmit {
position: absolute;
top: 0;
right: 0;
display: block;
margin: 0;
padding: 0;
- width: 36px;
- height: 32px;
+ width: 3.5em;
+ height: 100%;
+ line-height: inherit;
border:none;
cursor:pointer;
- font-size:12px;
- color:#FFF;
- background: #999;
- border-radius:0px 6px 6px 0;
+ color: #FFF;
+ background: #444;
+ border-radius: 0 100px 100px 0;
-webkit-transition: .2s background ease-in;
transition:.2s background ease-in;
+ text-indent: -5px;
+ font-size: 1em;
+ letter-spacing: 1px;
}
-#searchsubmit:hover {
- background: #AAA;
-}
-
-.widget_search label {
- display: none;
+.searchsubmit:hover {
+ background: #777;
}
.widget-container {
- margin: 0 0 18px 0;
+ margin: 0 0 40px 0;
}
.widget-title {
+ position: relative;
width: 100%;
- margin-left: -10px;
+ width: calc( 100% + 2em );
margin-bottom: 10px;
- padding: 4px 10px 4px 15px;
- font-size: 16px;
- text-align: left;
- background-color: #333;
- color: #2EA5FD;
- border-radius:10px 0 0 0;
+ padding: 6px 15px;
+ border-radius: 15px 0 0 0;
+ font-size: 1.1em;
}
#footer-widget-area .widget-title {
- width: 95%;
- text-align: left;
- color: #0D85CC;
- background: none;
+ background: transparent;
box-shadow: none;
- border-radius: 10px;
+ margin-bottom: 5px;
+ padding: 0;
+ border-radius: 0;
}
#footer-widget-area a {
@@ -1884,30 +2097,23 @@ h3#reply-title {
}
.widget-area {
- font-size: 14px;
- line-height: 1.5;
+ font-size: 15px;
}
.widget-area a:link,
.widget-area a:visited {
- font-size: 14px;
- line-height: 1.5;
text-decoration: none;
word-wrap: break-word;
- color: #0D85CC;
-}
-
-.widget-area a:active,
-.widget-area a:hover {
- color: #333;
}
.widget-area .entry-meta {
font-size: 11px;
}
+
#wp_tag_cloud div {
- line-height: 1.6em;
+ line-height: 1.6;
}
+
#wp-calendar {
width: 100%;
}
@@ -1957,7 +2163,7 @@ h3#reply-title {
margin: 0;
}
-#wp- tbody .pad {
+#wp-tbody .pad {
background: none;
}
#wp-calendar tfoot #next {
@@ -1979,13 +2185,15 @@ h3#reply-title {
margin-left: 0;
padding: 0;
}
+
#main .widget-area ul ul {
- margin-left: 0px;
+ margin-left: 0;
padding: 0;
border: none;
}
+
#main .widget-area ul.xoxo{
- padding-right: 10px;
+ /* padding-right: 10px; */
}
/* Before and after content widgets */
@@ -1997,7 +2205,7 @@ h3#reply-title {
/* Footer widget areas */
#footer-widget-area {
- margin-top: 10px;
+ padding: 2em 3em;
}
#footer-widget-area a{
@@ -2022,8 +2230,9 @@ h3#reply-title {
#footer2 {
display: block;
- padding-bottom: 10px;
+ padding: 30px 0 30px;
overflow: visible;
+ font-size: .9em;
background: #171717;
}
@@ -2037,7 +2246,8 @@ h3#reply-title {
display: block;
float: none;
clear: both;
- margin: 0 auto;
+ max-width: 50%;
+ margin: 1em auto;
padding-top: 4px;
text-align: center;
font-style: italic;
@@ -2084,40 +2294,57 @@ img#wpstats {
display: block;
float: left;
margin-right: 5px;
- position: relative;
}
.socials img {
- width: 26px;
+ width: 30px;
+ padding: 3px;
+ border-radius: 100px;
+ top: 0;
+ position: relative;
+ background-color: rgba(255,255,255,.1);
+ -webkit-transition: .2s ease-out all;
+ transition: .2s ease-out all;
+}
+
+.socials a:hover img {
+ background-color: transparent;
+ top: -4px;
}
-#header-container >div#sheader {
+#header-container > div#sheader {
position: absolute;
- top: 5px;
- right: 5px;
+ top: 10px;
+ right: 10px;
margin: 0;
}
#smenul,
#smenur {
- margin-top: 3px;
- margin-bottom: -6px;
+ position: fixed;
+ left: 0;
+ top: 50%;
+ -webkit-transform: translateY(-50%);
+ transform: translateY(-50%);
}
-#smenul a img,
-#smenur a img {
- width: 34px;
+#smenul a,
+#smenur a {
+ display: block;
+ float: none;
+ clear: both;
+ margin-bottom: 5px;
}
-#smenul {
- float: left;
- padding-left: 20px;
+#smenur {
+ left: auto;
+ right: 0;
}
#sfooter {
float: right;
padding-top: 5px;
- top: -24px;
+ top: -15px;
overflow: visible;
}
@@ -2135,42 +2362,69 @@ article.post {
}
article.sticky {
- padding: 10px;
- background: #fafafa;
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(7%,#f7f7f7), color-stop(61%,#ffffff), color-stop(100%,#ffffff));
- background: -webkit-linear-gradient(top, #eeeeee 0%,#f7f7f7 7%,#ffffff 61%,#ffffff 100%);
- background: linear-gradient(to bottom, #eeeeee 0%,#f7f7f7 7%,#ffffff 61%,#ffffff 100%);
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0 );
- border-radius:10px;
+ padding: 2em;
+ border: 1px solid #E7E7E7;
}
+/* magazine layout undo on single posts */
+.single #content article.post{ float:left; width:100%; margin-right:0; }
+.single #content article.sticky { margin-right:0 }
+.single #content article:nth-of-type(2n+1) {clear: none; }
+
/* BACK TO TOP BUTTON */
#toTop {
position: fixed;
z-index: 9999;
- display: none;
- right: 20px;
- bottom: 20px;
- width: 37px;
- height: 39px;
+ right: 30px;
+ bottom: 30px;
cursor: pointer;
- background: url(images/back2top.png) bottom center no-repeat;
- -webkit-transition: .2s background;
- transition: .2s background;
+ opacity: 0;
+ right: 30px;
+ -webkit-transition: .3s ease-out all;
+ transition: .3s ease-out all;
}
-#toTop:hover {
- background-position: top center;
+#toTop.showtop {
+ opacity: 1;
+}
+
+#toTop i:before {
+ content: '\e809';
+ color: #DDD;
+ position: relative;
+ display: block;
+ font-size: 1.2;
+ line-height: 2.75;
+ width: 2.75em;
+ height: 2.75em;
+ border-radius: 100px;
+ background: rgba(0,0,0,.5);
+ opacity: 0.5;
+ -webkit-transition: .3s ease-out all;
+ transition: .3s ease-out all;
+ -webkit-transform: scale(2);
+ transform: scale(2);
+}
+
+#toTop.showtop i:before {
+ -webkit-transform: scale(1);
+ transform: scale(1);
+}
+
+#toTop:hover i:before {
+ opacity: 1;
}
/* CUSTOM IMAGE BORDER */
-.imageOne {
+.entry-content .imageOne,
+.entry-summary .imageOne {
height: auto;
padding: 3px;
border: 1px solid #DDD !important;
}
-.imageTwo {
+.entry-content .imageTwo,
+.entry-summary .imageTwo {
padding: 3px;
border: 1px solid #EEE;
background-color: #FFFFFF;
@@ -2178,28 +2432,33 @@ article.sticky {
box-shadow: 0 0 4px #CCC;
}
-.imageThree {
+.entry-content .imageThree,
+.entry-summary .imageThree {
padding: 3px;
border: 6px solid #EEEEEE;
border-radius: 5px;
background-color: #FFFFFF;
}
-.imageFour {
+.entry-content .imageFour,
+.entry-summary .imageFour {
border: 1px solid #666 !important;
box-shadow: 0 3px 4px #999;
}
-.imageFive {
+.entry-content .imageFive,
+.entry-summary .imageFive {
border: 3px solid #DDD !important;
}
-.imageSix {
+.entry-content .imageSix,
+.entry-summary .imageSix {
border: 8px solid #BBB !important;
box-shadow: 0 0 5px #333;
}
-.imageSeven {
+.entry-content .imageSeven,
+.entry-summary .imageSeven {
padding: 7px;
border: 1px solid #CCC;
background-color: #FFFFFF;
@@ -2207,22 +2466,38 @@ article.sticky {
}
/* EDIT POST LINK */
+.edit-link {
+ float: right;
+}
.edit-link a {
- padding: 0 10px;
- border: 1px solid #DDD;
- font-size:12px;
+ padding: 3px 15px;
background: #F3F3F3;
- border-radius: 10px;
+ border-radius: 2px;
}
.edit-link a:hover {
- border: 1px solid #CCC;
background: #FAFAFA;
}
-/* BREADCRUMBS */
+/* Continue Reading Link */
+.continue-reading-link {
+ display: inline-block;
+ font-weight: bold;
+}
+
+/* Post thumbnail */
+.post-thumbnail {
+ opacity: 1;
+ -webkit-transition: .2s ease-out opacity;
+ transition: .2s ease-out opacity;
+}
+.post-thumbnail:hover {
+ opacity: .8;
+}
+
+/* BREADCRUMBS */
.breadcrumbs {
padding-top: .5em;
font-size: 1em;
@@ -2235,19 +2510,19 @@ article.sticky {
margin: 20px auto;
text-align: center;
clear: both;
- font-size: 12px;
- line-height: 12px;
}
-.pagination span, .pagination a {
+.pagination span,
+.pagination a {
display: block;
float: left;
width: auto;
- margin: 2px 2px 2px 0;
- padding: 12px 16px 10px;
+ margin-right: 10px;
+ height: 3em;
+ width: 3em;
+ line-height: 3;
text-decoration: none;
- color: #fff;
- background: #EEE;
+ background: #f5f5f5;
-webkit-transition: background .5s ease-in-out;
transition: background .5s ease-in-out;
}
@@ -2263,31 +2538,155 @@ article.sticky {
}
-/* CUSTOM FRONT PAGE */
+/* PRESENTATION PAGE */
+#frontpage {
+ padding: 3em;
+}
-/*
- * jQuery Nivo Slider v2.7.1
- */
+.slider-wrapper {
+ display: block;
+ float: none;
+ width: 100%;
+ margin: 0 auto;
+}
+
+#slider {
+ display:block;
+ float:none;
+ margin: 0 auto 20px;
+}
+
+#front-text1 h2,
+#front-text2 h2 {
+ display: block;
+ float: none;
+ margin: 20px auto 35px;
+ text-align: center;
+ font-size: 32px;
+ clear: both;
+ line-height: 1.3;
+ font-weight: bold;
+}
+
+#front-text2 h2 {
+ font-size: 28px;
+ margin-bottom: 65px;
+}
+
+#frontpage .front-text {
+ margin-bottom: 35px;
+ padding: 2em;
+ box-shadow: 0 0 10px rgba(0,0,0,.07);
+ font-size: 1em;
+}
+
+#frontpage #front-text3 {
+ font-size: 1.1em;
+}
+
+#front-columns > div {
+ display: block;
+ float: left;
+ height: auto;
+ margin-bottom: 10px;
+}
+
+#front-columns.front-columns-4 > div {
+ width: 22%;
+ margin-right: 4%;
+}
+
+#front-columns.front-columns-3 > div {
+ width: 29.6666%;
+ margin-right: 5.5%;
+}
+
+#front-columns.front-columns-2 > div {
+ width: 47.5%;
+ margin-right: 5%;
+}
+
+#front-columns.front-columns-1 > div {
+ width: 100%;
+}
+
+#front-columns.front-columns-4 > div:last-child,
+#front-columns.front-columns-3 > div:last-child,
+#front-columns.front-columns-2 > div:last-child {
+ margin-right: 0;
+}
+
+#frontpage + #container > #content {
+ padding: 0 3em;
+ width: 100%;
+ max-width: 100%;
+ margin: 0;
+}
+
+/* Front page columns */
+#front-columns {
+ display: block;
+ float: none;
+ width: auto;
+ margin-bottom: 40px;
+}
+
+#front-columns::after {
+ content: "";
+ display: block;
+ clear: both;
+}
+
+.column-image {
+ display: inline-block;
+ overflow: hidden;
+ margin-bottom: 10px;
+ box-shadow: 0 0 30px rgba(0,0,0,.2);
+}
+
+.column-text {
+ text-align: justify;
+}
+.column-image img {
+ display: block;
+ opacity: 1;
+ max-width: 100%;
+ -webkit-transition: .2s ease-out all;
+ transition: .2s ease-out all;
+}
+
+.column-image:hover img {
+ opacity: 0.8;
+}
-/* The Nivo Slider styles */
+#front-columns h3 {
+ margin: 0 0 5px;
+ font-size: 20px;
+ font-weight: bold;
+}
+
+.columnmore {
+ margin-top: 10px;
+ font-size: .8em;
+ text-transform: uppercase;
+ letter-spacing: 2px;
+}
+
+/* jQuery Nivo Slider v2.7.1 */
.nivoSlider {
position: relative;
width: 100%;
height: auto;
overflow: hidden;
-}
-.nivoSlider img {
- position: absolute;
- top: 0;
- left: 0;
+ line-height: 0;
}
.nivo-main-image {
- display: block !important;
- position: relative !important;
- width: 100% !important;
+ display: block;
+ position: relative;
+ width: 100%;
}
/* If an image is wrapped in a link */
@@ -2328,16 +2727,23 @@ article.sticky {
.nivo-caption {
position: absolute;
z-index: 8;
- left: 0;
- bottom: 0;
- box-sizing: border-box;
+ left: 20px;
+ right: 20px;
+ bottom: 20px;
display: none;
overflow: hidden;
- width: 100%;
- padding: 5px 10px;
- opacity: 0.8;
- background: #000;
+ padding: 30px;
+ background: rgba(0,0,0,.5);
color: #fff;
+ line-height: 1.5;
+}
+
+.nivo-caption > h3 {
+ margin-bottom: 7px;
+ font-size: 1.1em;
+ letter-spacing: 1px;
+ font-weight: bold;
+ text-transform: uppercase;
}
.nivo-caption p {
@@ -2346,7 +2752,7 @@ article.sticky {
}
.nivo-caption a {
- display: inline !important;
+ display: inline;
}
.nivo-html-caption {
@@ -2396,7 +2802,7 @@ article.sticky {
}
.slider-wrapper {
- padding-bottom: 20px;
+ padding-bottom: 35px;
}
/*
@@ -2405,39 +2811,41 @@ Skin Name: Nivo Slider Default Theme
.theme-default .nivoSlider {
position: relative;
margin-bottom: 50px;
- background: #fff url(images/nivoslider/loading.gif) no-repeat 50% 50%;
- box-shadow: 0px 1px 5px 0px #4a4a4a;
-}
-
-.theme-default .nivoSlider img {
- position: absolute;
- top: 0;
- left: 0;
- display: none;
+ background: #fff url(resources/images/nivoslider/loading.gif) no-repeat 50% 50%;
+ box-shadow: 0 0 30px rgba(0,0,0,.2);
}
.theme-default .nivoSlider a {
- display: block;
+ display: inline-block;
border: 0;
}
.theme-default .nivo-controlNav {
+ margin-left: 0;
padding: 0;
text-align: center;
}
.theme-default .nivo-controlNav a {
display: inline-block;
- width: 22px;
- height: 22px;
- margin: 0 2px;
+ width: 12px;
+ height: 12px;
+ margin: 0 5px;
border: 0;
+ border-radius: 100px;
text-indent: -9999px;
- background: url(images/nivoslider/bullets.png) no-repeat;
+ background-color: #444;
+ opacity: 0.8;
+ -webkit-transition: .3s ease all;
+ transition: .3s ease all;
+}
+
+.theme-default .nivo-controlNav a:hover {
+ opacity: 1;
}
.theme-default .nivo-controlNav a.active {
- background-position: 0 -22px;
+ opacity: 1;
}
.theme-default .nivo-directionNav a {
@@ -2445,17 +2853,17 @@ Skin Name: Nivo Slider Default Theme
width: 30px;
height: 30px;
border: 0;
- background: url(images/nivoslider/arrows.png) no-repeat;
+ background: url(resources/images/nivoslider/arrows.png) no-repeat;
text-indent: -9999px;
}
.theme-default a.nivo-nextNav {
- right: 15px;
+ right: 30px;
background-position: -30px 0;
}
.theme-default a.nivo-prevNav {
- left: 15px;
+ left: 30px;
}
.theme-default .nivo-caption {
@@ -2494,58 +2902,7 @@ a.nivo-imageLink {
background-color: #fff;
}
-/* Front page columns */
-#front-columns {
- display: block;
- float: none;
- width: auto;
- margin: 0 30px;
- padding-top: 20px;
- overflow: hidden;
-}
-.column-image {
- display: block;
- width: 100%;
- margin-bottom: 10px;
- border: 1px solid #EEE;
- overflow: hidden;
- background: #CCC;
- box-shadow:0 0 3px #333;
-}
-
-.column-text {
- text-align: justify;
-}
-
-.column-image img {
- display: block;
- width: 100%;
- height: 100%;
-}
-
-#front-columns h3 {
- margin: 7px 0;
- font-size: 20px;
-}
-
-.columnmore {
- margin-top: 10px;
- padding-right: 10px;
- font-size: 14px;
- text-align: right;
-}
-
-/* Style HTML5 tags for IE8 and lower */
-header,
-nav,
-section,
-article,
-aside,
-footer,
-hgroup {
- display: block;
-}
.tinynav {
display: none;
@@ -2573,22 +2930,22 @@ hgroup {
/* Pull quotes short code*/
.pullquote {
width: 33%;
- margin-top: 15px !important;
- margin-bottom: 10px !important;
- font-size: 1.2em !important;
+ margin-top: 15px;
+ margin-bottom: 10px;
+ font-size: 1.2em;
font-family: Verdana, Arial, sans-serif;
color: #000;
}
-.pullquote p{
+.pullquote p {
font-family: "Pontano Sans", arial, sans-serif;
- font-size: 1.2em !important;
+ font-size: 1.2em;
color: #000;
}
/* buttons */
.short-button-light {
- color: #454545 !important;
+ color: #454545;
padding: 1px 10px;
padding-bottom:3px;
background: -moz-linear-gradient(
@@ -2610,7 +2967,7 @@ hgroup {
}
.short-button-dark {
- color: #ffffff !important;
+ color: #ffffff;
padding: 1px 7px;
padding-bottom:3px;
background: -moz-linear-gradient(
@@ -2632,7 +2989,7 @@ hgroup {
}
.short-button-color {
- color: #ffffff !important;
+ color: #ffffff;
padding: 1px 7px;
padding-bottom:3px;
background: #47afff;
diff --git a/themes/mantra/tag.php b/themes/mantra/tag.php
index 5a1ded3e..3cb2d799 100644
--- a/themes/mantra/tag.php
+++ b/themes/mantra/tag.php
@@ -10,10 +10,10 @@
get_header(); ?>
<section id="container">
-
+
<div id="content" role="main">
<?php cryout_before_content_hook(); ?>
-
+
<?php if ( have_posts() ) : ?>
<header class="page-header">
@@ -38,7 +38,7 @@ get_header(); ?>
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
- get_template_part( 'content', get_post_format() );
+ get_template_part( 'content/content', get_post_format() );
?>
<?php endwhile; ?>
@@ -59,10 +59,11 @@ get_header(); ?>
</article><!-- #post-0 -->
<?php endif; ?>
-
+
<?php cryout_after_content_hook(); ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
</section><!-- #container -->
-<?php get_footer(); ?>
+<?php
+get_footer();
diff --git a/themes/mantra/template-blog.php b/themes/mantra/templates/template-blog.php
index 438859fe..a1b985e5 100644
--- a/themes/mantra/template-blog.php
+++ b/themes/mantra/templates/template-blog.php
@@ -8,10 +8,10 @@ Template Name: Blog Template ( Posts Page)
<div id="container">
<div id="content" role="main">
<?php cryout_before_content_hook(); ?>
-
- <?php
+
+ <?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged);?>
@@ -23,7 +23,7 @@ query_posts('post_status=publish&orderby=date&order=desc&posts_per_page='.get_op
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php global $more; $more=0; ?>
- <?php get_template_part( 'content', get_post_format() ); ?>
+ <?php get_template_part( 'content/content', get_post_format() ); ?>
<?php endwhile; ?>
diff --git a/themes/mantra/template-onecolumn.php b/themes/mantra/templates/template-onecolumn.php
index 59188d89..59188d89 100644
--- a/themes/mantra/template-onecolumn.php
+++ b/themes/mantra/templates/template-onecolumn.php
diff --git a/themes/mantra/template-page-with-intro.php b/themes/mantra/templates/template-page-with-intro.php
index 92fe4b80..a3ba4228 100644
--- a/themes/mantra/template-page-with-intro.php
+++ b/themes/mantra/templates/template-page-with-intro.php
@@ -20,35 +20,35 @@ Template Name: Category page with intro
<div style="clear: both;"></div>
</div>
<?php
- $slug = basename(get_permalink());
+ $slug = basename( esc_url( get_permalink() ) );
$meta_slug = get_post_meta(get_the_ID(), "slug", $single); // slug custom field
$meta_catid = get_post_meta(get_the_ID(), "catid", $single); // category_id custom field
$key = get_post_meta(get_the_ID(), "key", $single); // either slug or category_id custom field
- $slug = ($key?$key:($meta_catid?$meta_catid:($meta_slug?$meta_slug:($slug?$slug:0)))); // select one value out of the custom fields
+ $slug = ($key?$key:($meta_catid?$meta_catid:($meta_slug?$meta_slug:($slug?$slug:0)))); // select one value out of the custom fields
?>
<?php endwhile; else: endif; ?>
<hr>
<br />
- <?php
+ <?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- if (is_numeric($slug)&&($slug>0)):
- $the_query = new WP_Query( 'cat='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged );
- else:
- $the_query = new WP_Query( 'category_name='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged );
- endif;
- /* Start the Loop */
+ if (is_numeric($slug)&&($slug>0)):
+ $the_query = new WP_Query( 'cat='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged );
+ else:
+ $the_query = new WP_Query( 'category_name='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged );
+ endif;
+ /* Start the Loop */
while ( $the_query->have_posts() ) : $the_query->the_post();
global $more; $more=0; // more gets lost inside page templates
- get_template_part( 'content', get_post_format() );
+ get_template_part( 'content/content', get_post_format() );
endwhile;
- if($mantra_pagination=="Enable") mantra_pagination($the_query->max_num_pages); else mantra_content_nav( 'nav-below' );
+ if($mantra_pagination=="Enable") mantra_pagination($the_query->max_num_pages); else mantra_content_nav( 'nav-below' );
?>
-
- <?php cryout_after_content_hook(); ?>
+
+ <?php cryout_after_content_hook(); ?>
</div><!-- #content -->
-
+
<?php get_sidebar(); ?>
-
+
</section><!-- #container -->
<?php get_footer(); ?>
diff --git a/themes/mantra/template-threecolumns-center.php b/themes/mantra/templates/template-threecolumns-center.php
index cadf8c79..5f33b2ed 100644
--- a/themes/mantra/template-threecolumns-center.php
+++ b/themes/mantra/templates/template-threecolumns-center.php
@@ -8,19 +8,19 @@
get_header(); ?>
<section id="container">
-
+
<div id="content" role="main">
-
+
<?php cryout_before_content_hook(); ?>
- <?php get_template_part( 'content', 'page'); ?>
-
+ <?php get_template_part( 'content/content', 'page'); ?>
+
<?php cryout_after_content_hook(); ?>
-
+
</div><!-- #content -->
-
+
<?php get_sidebar(); ?>
</section><!-- #container -->
-<?php get_footer(); ?> \ No newline at end of file
+<?php get_footer(); ?>
diff --git a/themes/mantra/template-threecolumns-left.php b/themes/mantra/templates/template-threecolumns-left.php
index 0e9bfe8b..2f2f2eb8 100644
--- a/themes/mantra/template-threecolumns-left.php
+++ b/themes/mantra/templates/template-threecolumns-left.php
@@ -8,19 +8,19 @@
get_header(); ?>
<section id="container">
-
- <div id="content" role="main">
-
+
+ <div id="content" role="main">
+
<?php cryout_before_content_hook(); ?>
- <?php get_template_part( 'content', 'page'); ?>
+ <?php get_template_part( 'content/content', 'page'); ?>
<?php cryout_after_content_hook(); ?>
-
+
</div><!-- #content -->
-
+
<?php get_sidebar(); ?>
</section><!-- #container -->
-<?php get_footer(); ?> \ No newline at end of file
+<?php get_footer(); ?>
diff --git a/themes/mantra/template-threecolumns-right.php b/themes/mantra/templates/template-threecolumns-right.php
index f6a43c32..81a8df9b 100644
--- a/themes/mantra/template-threecolumns-right.php
+++ b/themes/mantra/templates/template-threecolumns-right.php
@@ -8,19 +8,19 @@
get_header(); ?>
<section id="container">
-
+
<div id="content" role="main">
-
+
<?php cryout_before_content_hook(); ?>
- <?php get_template_part( 'content', 'page'); ?>
-
+ <?php get_template_part( 'content/content', 'page'); ?>
+
<?php cryout_after_content_hook(); ?>
-
+
</div><!-- #content -->
-
+
<?php get_sidebar(); ?>
</section><!-- #container -->
-<?php get_footer(); ?> \ No newline at end of file
+<?php get_footer(); ?>
diff --git a/themes/mantra/template-twocolumns-left.php b/themes/mantra/templates/template-twocolumns-left.php
index 887ab05f..befad48c 100644
--- a/themes/mantra/template-twocolumns-left.php
+++ b/themes/mantra/templates/template-twocolumns-left.php
@@ -8,19 +8,19 @@
get_header(); ?>
<section id="container">
-
+
<div id="content" role="main">
<?php cryout_before_content_hook(); ?>
- <?php get_template_part( 'content', 'page'); ?>
-
+ <?php get_template_part( 'content/content', 'page'); ?>
+
<?php cryout_after_content_hook(); ?>
</div><!-- #content -->
-
+
<?php get_sidebar(); ?>
</section><!-- #container -->
-<?php get_footer(); ?> \ No newline at end of file
+<?php get_footer(); ?>
diff --git a/themes/mantra/template-twocolumns-right.php b/themes/mantra/templates/template-twocolumns-right.php
index 6580e362..a071b1a2 100644
--- a/themes/mantra/template-twocolumns-right.php
+++ b/themes/mantra/templates/template-twocolumns-right.php
@@ -8,19 +8,19 @@
get_header(); ?>
<section id="container">
-
+
<div id="content" role="main">
<?php cryout_before_content_hook(); ?>
- <?php get_template_part( 'content', 'page'); ?>
-
+ <?php get_template_part( 'content/content', 'page'); ?>
+
<?php cryout_after_content_hook(); ?>
</div><!-- #content -->
-
+
<?php get_sidebar(); ?>
</section><!-- #container -->
-<?php get_footer(); ?> \ No newline at end of file
+<?php get_footer(); ?>