From: Zachary Vance Date: Sun, 4 Oct 2015 00:50:40 +0000 (-0700) Subject: Add two more themes and remove two I'll never use X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=a16d40c34625c495219b65a70c08a2f2040b7477;p=za3k_blog.git Add two more themes and remove two I'll never use --- diff --git a/wp-content/themes/mantra/404.php b/wp-content/themes/mantra/404.php new file mode 100644 index 0000000..cd47c44 --- /dev/null +++ b/wp-content/themes/mantra/404.php @@ -0,0 +1,32 @@ + + +
+ +
+ +
+

+
+

+
+
+
+ +
+ +
+ + + \ No newline at end of file diff --git a/wp-content/themes/mantra/admin/admin-functions.php b/wp-content/themes/mantra/admin/admin-functions.php new file mode 100644 index 0000000..bc70fa1 --- /dev/null +++ b/wp-content/themes/mantra/admin/admin-functions.php @@ -0,0 +1,206 @@ +

+

+ +
+
+

+

+
+

Please remember that this is still an experimental feature.', 'mantra'); ?>

+

+ + + ( ) + + + + +

+ +
+
+
+ + 0) ) ) { + + $form_fields = array('import'); + $method = ''; + + $url = wp_nonce_url('themes.php?page=mantra-page', 'mantra-import'); + + // Get file writing credentials + if (false === ($creds = request_filesystem_credentials($url, $method, false, false, $form_fields) ) ) { + return true; + } + + if ( ! WP_Filesystem($creds) ) { + // our credentials were no good, ask the user for them again + request_filesystem_credentials($url, $method, true, false, $form_fields); + return true; + } + + // Write the file if credentials are good + $upload_dir = wp_upload_dir(); + $filename = trailingslashit($upload_dir['path']).'mantra_options.txt'; + + // by this point, the $wp_filesystem global should be working, so let's use it to create a file + global $wp_filesystem; + if ( ! $wp_filesystem->move($_FILES['import']['tmp_name'], $filename, true) ) { + echo 'Error saving file!'; + return; + } + + $file = $_FILES['import']; + + if ($file['type'] == 'text/plain') { + $data = $wp_filesystem->get_contents($filename); + // try to read the file + if ($data !== FALSE){ + $settings = json_decode($data, true); + // try to read the settings array + if (isset($settings['mantra_db'])){ ?> +
+

+

'. __('Great! The options have been imported!', 'mantra').'
'; + echo ''.__('Go back to the Mantra options page and check them out!', 'mantra').'

'; + } + else { // else: try to read the settings array + echo '

'.__('Oops, there\'s a small problem.', 'mantra').'
'; + echo __('The uploaded file does not contain valid Mantra options. Make sure the file is exported from the Mantra Options page.', 'mantra').'

'; + mantra_import_form(); + } + } + else { // else: try to read the file + echo '

'.__('Oops, there\'s a small problem.', 'mantra').'
'; + echo __('The uploaded file could not be read.', 'mantra').'

'; + mantra_import_form(); + } + } + else { // else: make sure the file uploaded was a plain text file + echo '

'.__('Oops, there\'s a small problem.', 'mantra').'
'; + echo __('The uploaded file is not supported. Make sure the file was exported from the Mantra page and that it is a text file.', 'mantra').'

'; + mantra_import_form(); + } + + // Delete the file after we're done + $wp_filesystem->delete($filename); + + } + else { // else: make sure there is an import file uploaded + echo '

'.__( 'Oops! The file is empty or there was no file. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.', 'mantra' ).'

'; + mantra_import_form(); + } + echo ' '; + } + else { + wp_die(__('ERROR: You are not authorised to perform that operation', 'mantra')); + } +} // Closes the mantra_import_file() function definition + +// Truncate function for use in the Admin RSS feed +function mantra_truncate_words($string,$words=20, $ellipsis=' ...') { + $new = preg_replace('/((\w+\W+\'*){'.($words-1).'}(\w+))(.*)/', '${1}', $string); + return $new.$ellipsis; +} + +// Synchronizing the tinymce width with the content width +add_filter('tiny_mce_before_init', 'mantra_dynamic_editor_styles', 10); +function mantra_dynamic_editor_styles($settings){ + $settings['content_css'] .= ",".admin_url('admin-ajax.php') ."/?action=dynamic_styles"; + return $settings; +} + +// add wp_ajax callback +add_action('wp_ajax_dynamic_styles', 'mantra_dynamic_styles_callback'); +function mantra_dynamic_styles_callback(){ + global $mantra_options; + echo "html .mceContentBody , .mceContentBody img {max-width:".$mantra_options['mantra_sidewidth']."px;}"; +} +?> \ No newline at end of file diff --git a/wp-content/themes/mantra/admin/css/admin.css b/wp-content/themes/mantra/admin/css/admin.css new file mode 100644 index 0000000..115334c --- /dev/null +++ b/wp-content/themes/mantra/admin/css/admin.css @@ -0,0 +1,632 @@ + /* Farbtastic overwrites */ + +.farbtastic { + position: absolute !important; + z-index:2; +margin-left:50px; +margin-top:-110px; +background-color:#F7F7F7; +border:1px solid #CCC; +} +.farbtastic * { + position: absolute; + cursor: crosshair; +} +.farbtastic, .farbtastic .wheel { + width: 195px; + height: 195px; +} +.farbtastic .color, .farbtastic .overlay { + top: 47px; + left: 47px; + width: 101px; + height: 101px; +} + + +/* end of Farbtastic overwrites */ + +.form-table, .form-table td, .form-table th, .form-table td p, .form-wrap label { +font-size:13px; +} + + +#lefty { +clear:left; +float:left; +width:60%; +min-width:500px; +max-width:820px; +margin-right:1%; +} + +#main-options { +width:100%; +display:block; +clear:left; +/*border:1px solid #DFDFDF; +background:#F5F5F5; +border-radius:5px; +-moz-border-radius:5px; +-webkit-border-radius:5px; +*/ +padding-top:10px; +font-family: Segoe UI !important; +font-size: 12px; +margin-bottom:10px; + +} + + #righty { +float:left; +width:39%; +margin-top:10px; +} +#righty p, #righty span, .form-table small, #righty ul li, #righty h3 { +font-size: 12px; +color:#444; +font-family:Segoe UI; +} + +.form-table small { +font-style:italic; +display:block; +float:none; +clear:both; +} + + .donate, .support { +width:100%; +} + +.postbox .hndle { + cursor: auto; + font-size: 13px; + margin: 0; + padding: 6px 10px 7px; +} + + +.wrap h2 { +font-family: Calibri, Arial !important; +margin-bottom:5px; +} + +#accordion { +margin:0px auto; +font-family:Segoe UI,Calibri, Arial !important; +display:block; +float:none; +border:10px solid #FFF; +-moz-box-sizing:border-box; +-webkit-box-sizing:border-box; +box-sizing:border-box; +} + +#submitDiv { +display:block; +float:none; +height:30px; +margin:10px 40px; +font-family:Segoe UI,Calibri, Arial !important; +} + +#version { +display:block; +float:none; +clear:both; +padding-top:10px; +margin-left:20px; +color:#666; +} + +#accordion h3 { +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 { +background:#FFF; +} + +#accordion select option { +font-size:1.1em; +} + +.form-table th, .form-wrap label { + color: #444 !important; +font-size: 15px; +font-weight:normal; +text-transform:uppercase; +background:#F7F7F7; +border-bottom:1px solid #FFF; +padding:10px; +} + +.form-table tr { +border-bottom:1px solid #F7F7F7; +} + +.form-table tr:last-child { +border-bottom:none; +} + +.form-table td { +vertical-align:middle; +} + +input[type="text"] , select { +border:1px solid #AAA !important; +border-radius:2px; +-moz-border-radius:2px; +-webkit-border-radius:2px; +} + +.submit { +text-align:right; +margin-right:20px; +} + + #accordion select { +min-width:120px; +max-width:200px; +padding:3px 5px; +} + + #accordion textarea, #mantra_favicon { +max-width:90%; +} + +.googlefonts { +width:200px; +} + +/* Images */ + + +.images { +display:inline-block; +} + +#imageOne { +border:1px solid #DDD !important; +padding:3px; + height: auto; +} + +#imageTwo{ + background-color: #FFFFFF; + border: 1px solid #EEE; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + padding: 3px; + -moz-box-shadow:0px 0px 4px #CCC; + -webkit-box-shadow:0px 0px 4px #CCC; + box-shadow:0px 0px 4px #CCC; +} + +#imageThree{ + background-color: #FFFFFF; + border: 6px solid #EEEEEE; + -moz-border-radius: 5px 5px 5px 5px; + -webkit-border-radius: 5px 5px 5px 5px; + border-radius: 5px 5px 5px 5px; + padding: 3px; +} + + + +#imageFour{ +border:1px solid #666 !important; + -moz-box-shadow:0px 0px 4px #666; + -webkit-box-shadow:0px 0px 4px #666; + box-shadow:0px 3px 4px #999; +} + +#imageFive{ +border:3px solid #DDD !important; +} + +#imageSix{ +border:8px solid #BBB !important; + -moz-box-shadow:0px 0px 5px #333; + -webkit-box-shadow:0px 0px 5px #333; + box-shadow: 0px 0px 5px #333; +} + +#imageSeven{ + background-color: #FFFFFF; + border: 1px solid #CCC; + padding: 7px; + -moz-box-shadow:2px 2px 2px #CCC; + -webkit-box-shadow:2px 2px 2px #CCC; + box-shadow:inset 0px 0px 7px #CCC; +} + +/* Labels */ + +label { +display:inline-block; +width:auto; +border:2px solid #FFF; +text-align:center; +background-color:#FFF; +padding:5px 2px; +-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; +filter: alpha(opacity=80); +opacity:0.8; +} + +label.hideareas { +display:block; +float:none; +text-align:left; + +} + +label:hover { + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + filter: alpha(opacity=100); + opacity:1; +background-color:#EEE; +} + + +label input[type=radio] { +display:none; +} + +label.layouts { +display:block; +float:left; +padding:3px; +height:55px; +} + +label.layouts:hover { +background:none; +border:2px solid #CCC; +} + + +.layouts img { +width:60px; +} + +.layouts img, .images img { +pointer-events: none; +} + + +.borderful { +border-color:#F6A828 ; + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + filter: alpha(opacity=100); + opacity:1; +} + + label.layouts.checkedClass, label.images.checkedClass, label.pins.checkedClass, label.sidebullets.checkedClass { +border-color:#F6A828; +-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; +filter: alpha(opacity=100); +opacity:1; +} + + +#accordion input[type="text"] { +font-family:"Lucida Console", Monaco, monospace !important; +font-size:12px; +padding:6px; +} + +#accordion > * { +display:none; +} + +#accrodion > h3 { +display:block; +} + +.ui-accordion-content { +background:#FFF !important; +margin-bottom:10px !important; +border:none !important; +overflow: hidden; +padding:1em !important; +} +.ui-accordion .ui-accordion-content { overflow: hidden !important;padding:0 !important; } +.ui-accordion .ui-accordion-content-overflow { overflow: visible !important; } + +.ui-state-active { + background:#444 !important; + color:#FFF !important; + border:none !important; +} + +.darkbg{ + background:#ddd !important; +} +#status{ + font-family:Arial; padding:5px; +} +ul#files{ list-style:none; padding:0; margin:0; } +ul#files li{ padding:10px; margin-bottom:2px; width:400px; float:left; margin-right:10px;} +ul#files li img{ max-width:180px; max-height:150px; } +.success{ background:#99f099; border:1px solid #339933; } +.error{ background:#f0c6c3; border:1px solid #cc6622; } + +#uploadpreview { +max-width:64px; +display:block;float:left; +border:1px solid #DDD; +padding:2px; +} + +#filename { +display:block; +width:auto; +float:left; +margin-left:10px; +font-weight:bold; +} + +#uploadarea { +margin-top:10px; +} + +#absolutedim, #relativedim { +margin-top:30px; +position:relative; +} +#absolutedim small, #relativedim small{ +margin-top:20px;} + +.slmini, #cdimensions { +display:block; +float:none; +} + +.slmini { +background:#F9F9F9; +border-bottom:1px solid #E7E7E7; +padding:15px 5px 15px 10px; +} + +.slmini b { +width:130px; +display:inline-block; +float:left; +text-transform:uppercase; +font-weight:normal; +font-style:italic; +} + +.slidebox { +background:#F7F7F7; +border-bottom:2px solid #eaeaea; +transition:border-color .3s ease-in-out; +} + +.slidebox:hover { +border-color:#8CB3B3; +} + +.slidercontent{ +display:none; +padding:0 10px 10px; +} + + +.slidetitle{ +color:#777; +background:#F7F7F7; +padding: 2px 10px; +margin:3px; +cursor:pointer; +} + +.slidetitle:after { +content:"\25BC"; +float:right; +margin-right:5px; +color:#AAA; +font-size:10px; +} + +.slidetitle:hover{ +background:#F6F6F6; +} + +.slidetitle:hover:after { +color:#6C9393; +} + +.slidebox h5 { +display:inline-block; +float:none; +font-size:12px; +background:#FFF; +color:#777; +padding:0 10px; +margin:10px 0px 0 10px; +position:relative; +top:2px; +border:1px solid #DFDFDF; +border-bottom:none; +-moz-border-radius:4px; +-webkit-border-radius:4px; +border-radius:4px; +} + +.slidebox .description { +display:block; +float:none; +} + +.slidebox input[type="text"], .slidebox textarea { +width:100%; +border-color:#DFDFDF !important; +color:#444; +} + +#sliderCustomSlides {margin-top:10px;} + +a.upload_image_button { +text-decoration:none; +clear:both; +padding:2px 4px; +display:block; +float:none; +} + + +.wp-core-ui .button, .wp-core-ui .button-secondary { +background:#FFF; +text-transform:uppercase; +-moz-border-radius:0; +-webkit-border-radius:0; +border-radius:0; +border-bottom:1px solid #555; +} + +.wp-core-ui .button:hover, .wp-core-ui .button-secondary:hover { +border-bottom:1px solid #000; +} + +#submitDiv input.button { +font-size:13px !important; +padding:4px 10px !important; +height:auto; +text-transform:uppercase; +border-bottom:3px solid #555; +} + +.header_upload_inputs { +width:300px; +} + +/* NEWS LISTS */ + +#righty .news-list li { +background:#FFF; +padding:7px; +border:1px solid #EEE; +} + +#righty span.news-item-date { +color:#999; +font-size:11px; +} + +a.news-header { +text-decoration:none; +color:#4C7373; +font-size:14px; +font-weight:bold; +text-transform:uppercase; +} + +a.news-header:hover, a.news-read:hover { +color:#C47D09 !important; +} + +/*Tooltip */ + +.tooltip_div{ +display:inline-block; +clear:none; +height:22px; +line-height:22px; +} + +a.tooltip{ +display:inline-block; +clear:none; +height:22px; +line-height:22px; +margin-left:7px; +} + +a.tooltip img { +vertical-align:bottom; +} + +.ui-tooltip { +display:block; +max-width:300px; +padding:5px; +z-index:3; +} + +/* ADMIN HEADER AND LINKS */ + +#admin_header { + padding-top:10px; + padding-left:20px; + display:block; + float:left; + } +#admin_links { + display:block; + float:left; + clear:both; + text-align:left; + margin-left:97px; + margin-top:-17px; + } + +#admin_links a { +display:block; +float:left; +margin-left:3px; +margin-right:9px; +text-decoration:none; +font-family:Segoe UI, Arial; +font-size:11px; +color:#000000; +text-transform:uppercase; +} + +#admin_links a:hover { +color:#C47D09; +} + +.wrap div.updated, .wrap div.error { +margin-left: 15px; margin-right: 15px; +margin-top: 20px; } + +#jsAlert { +margin: 0 15px 10px; +background-color: #F4F8FA; +border-color: #BCE8F1; border-style: solid; border-radius: 0; border-width: 0 0 0 3px; +padding:5px 10px; +} + +/* FB button fix */ + +.fb-like.fb_iframe_widget > span { + vertical-align: baseline !important; +} +.twitter-follow-button.twitter-follow-button { + margin:0 8px; +} + diff --git a/wp-content/themes/mantra/admin/custom-styles.php b/wp-content/themes/mantra/admin/custom-styles.php new file mode 100644 index 0000000..0e59bd8 --- /dev/null +++ b/wp-content/themes/mantra/admin/custom-styles.php @@ -0,0 +1,299 @@ + $value) { + ${"$key"} = esc_attr($value) ; +} +if ($mantra_dimselect=="Absolute") { +$totalwidth = $mantra_sidewidth+$mantra_sidebar+50; +$contentSize = $mantra_sidewidth; +$sidebarSize = $mantra_sidebar; +} +else if ($mantra_dimselect=="Relative") { +$totalwidth = $mantra_sidewidthRel+$mantra_sidebarRel; +$contentSize = intval(($mantra_sidewidthRel/$totalwidth*100)-2); +$sidebarSize = intval(($mantra_sidebarRel/$totalwidth*100)-2); +} +ob_start(); ?> + + + + $value) { + ${"$key"} = esc_attr($value) ; } + +if ($mantra_customcss != "") { + return ''; + } +} + +function mantra_customjs() { +$mantra_options= mantra_get_theme_options(); +foreach ($mantra_options as $key => $value) { + ${"$key"} = esc_attr($value) ; } + +if ($mantra_customjs != "") { + echo ''; + } +} +?> \ No newline at end of file diff --git a/wp-content/themes/mantra/admin/defaults.php b/wp-content/themes/mantra/admin/defaults.php new file mode 100644 index 0000000..00c15d9 --- /dev/null +++ b/wp-content/themes/mantra/admin/defaults.php @@ -0,0 +1,217 @@ + "1.0", + +"mantra_side" => "2cSr", +"mantra_dimselect" => 'Absolute', +"mantra_sidewidth" => 800, +"mantra_sidebar" => 250, +"mantra_sidewidthRel" => 60, +"mantra_sidebarRel" => 20, +"mantra_mobile" => "Enable", +"mantra_zoom" => 0, +"mantra_hcontain" => "", + + +"mantra_frontpage" => "Disable", +"mantra_frontposts" => "Disable", +"mantra_frontpostscount" => 5, +"mantra_menualign" => "left", +"mantra_fpsliderwidth" => "800", +"mantra_fpsliderheight" => "250", +"mantra_fpslideranim" => "random", +"mantra_fpsliderborderwidth" => "10", +"mantra_fpsliderbordercolor" => "#EEEEEE", +"mantra_fpslidertime" => "750", +"mantra_fpsliderpause" => "5000", +"mantra_fpslidernav" => "Bullets", +"mantra_fpsliderarrows" => "Visible on Hover", + +"mantra_slideType" => "Custom Slides", +"mantra_slideCateg" => "", +"mantra_slideNumber" => "5", +"mantra_slideSpecific" => "", + +"mantra_sliderimg1" => get_template_directory_uri()."/images/slider/mantra-slide1.jpg", +"mantra_slidertitle1" => "This is the caption title", +"mantra_slidertext1" => "And this is the text that could accompany it. It is all optional so if you delete it in the Mantra Settings there will be no more caption with the black background.", +"mantra_sliderlink1" => "", +"mantra_sliderimg2" => get_template_directory_uri()."/images/slider/mantra-slide2.jpg", +"mantra_slidertitle2" => "This is yet another caption title", +"mantra_slidertext2" => 'And some more text to give you as an example. You can use
links and other type of HTML formats.', +"mantra_sliderlink2" => "", +"mantra_sliderimg3" => "", +"mantra_slidertitle3" => "", +"mantra_slidertext3" => "", +"mantra_sliderlink3" => "", +"mantra_sliderimg4" => "", +"mantra_slidertitle4" => "", +"mantra_slidertext4" => "", +"mantra_sliderlink4" => "", +"mantra_sliderimg5" => "", +"mantra_slidertitle5" => "", +"mantra_slidertext5" => "", +"mantra_sliderlink5" => "", + +"mantra_nrcolumns" => "4", +"mantra_colimageheight" => "120", +"mantra_columnreadmore" => "Read more", + +"mantra_columnimg1" => get_template_directory_uri()."/images/slider/mantra-column.jpg", +"mantra_columntitle1" => "Hi there!", +"mantra_columntext1" => "You can also have some text here. Just like with the slider, it is all optional (including the title and the link inputs). All you need is an image, unless you want the Mantra image above to follow you everywhere.", +"mantra_columnlink1" => "", +"mantra_columnimg2" => get_template_directory_uri()."/images/slider/mantra-column.jpg", +"mantra_columntitle2" => " HTML tags", +"mantra_columntext2" => 'You can also have links here as well as some HTML tags.', +"mantra_columnlink2" => "", +"mantra_columnimg3" => get_template_directory_uri()."/images/slider/mantra-column.jpg", +"mantra_columntitle3" => "", +"mantra_columntext3" => "", +"mantra_columnlink3" => "", +"mantra_columnimg4" => get_template_directory_uri()."/images/slider/mantra-column.jpg", +"mantra_columntitle4" => "", +"mantra_columntext4" => "", +"mantra_columnlink4" => "", + +"mantra_fronttext1" => "This could be a title", +"mantra_fronttext2" => "And this is a second title", +"mantra_fronttitlecolor" => "#333333", +"mantra_fronttext3" => "And here you could have a whole lot of text. Or not. It is all up to you. Deleting all text inside the appropriate input in the Mantra Settings will remove this whole text zone. It can also contain some HTML tags.
Just try everything out and see what suits you. Have fun and good luck! ", +"mantra_fronttext4" => "", + +"mantra_fronthideheader" => "", +"mantra_fronthidemenu" => "", +"mantra_fronthidewidget" => "", +"mantra_fronthidefooter" => "", +"mantra_fronthideback" => "", + + +"mantra_hheight" => "75", +"mantra_hcenter" => "", +"mantra_hratio" => "", +"mantra_menurounded" => "Enable", +"mantra_logoupload" => "", +"mantra_favicon" => "", +"mantra_siteheader" => "Site Title and Description", +"mantra_headermargintop" => "20", +"mantra_headermarginleft" => "40", + +"mantra_fontfamily" => 'Segoe UI, Arial, sans-serif', +"mantra_googlefont" => '', +"mantra_googlefont2" => '', +"mantra_fontsize" => "14px", +"mantra_fonttitle" => 'Georgia, Times New Roman, Times, serif', +"mantra_googlefonttitle" => '', +"mantra_googlefonttitle2" => '', +"mantra_headfontsize" => "Default", +"mantra_fontside" => 'Helvetica, sans-serif', +"mantra_googlefontside" => '', +"mantra_googlefontside2" => '', +"mantra_sidefontsize" => "Default", +"mantra_fontsubheader" => 'Georgia, Times New Roman, Times, serif', +"mantra_googlefontsubheader" => '', +"mantra_googlefontsubheader2" => '', +"mantra_textalign" => "Default", +"mantra_parmargin" => "1.5em", +"mantra_parindent" => "0px", +"mantra_headerindent" => "Disable", +"mantra_lineheight" => "Default", +"mantra_wordspace" => "Default", +"mantra_letterspace" => "Default", +"mantra_textshadow" => "Enable", + +"mantra_contentbg" => "#FFFFFF", +"mantra_menubg" => "#FAFAFA", +"mantra_s1bg" => "", +"mantra_s2bg" => "", +"mantra_backcolor" => "#444444", +"mantra_headercolor" => "#333333", +"mantra_prefootercolor" => "#222222", +"mantra_footercolor" => "#171717", +"mantra_titlecolor" => "#0D85CC", +"mantra_descriptioncolor" => "#999999", +"mantra_contentcolor" => "#333333", +"mantra_linkscolor" => "#0D85CC", +"mantra_hovercolor" => "#12a7ff", +"mantra_headtextcolor" => "#444444", +"mantra_headtexthover" => "#000000", +"mantra_sideheadbackcolor" => "#444444", +"mantra_sideheadtextcolor" => "#2EA5FD", + +"mantra_footerheader" => "#0C85CD", +"mantra_footertext" => "#666666", +"mantra_footerhover" => "#888888", + +"mantra_breadcrumbs" => "Disable", +"mantra_pagination" => "Enable", +"mantra_caption" => "Light", +"mantra_image" => "Seven", +"mantra_pin" => "Pin2", +"mantra_sidebullet" => "arrow_white", +"mantra_metaback" => "Gray", +"mantra_postseparator" => "Hide", +"mantra_contentlist" => "Show", +"mantra_pagetitle" => "Show", +"mantra_categtitle" => "Show", +"mantra_tables" => "Disable", +"mantra_backtop" => "Enable", +"mantra_comtext" => "Show", +"mantra_comclosed" => "Hide everywhere", +"mantra_comoff" => "Show", + +"mantra_postcomlink" => "Show", +"mantra_postdate" => "Show", +"mantra_posttime" => "Hide", +"mantra_postauthor" => "Show", +"mantra_postcateg" => "Show", +"mantra_posttag" => "Show", +"mantra_postbook" => "Show", +"mantra_postmetas" => "Show", + +"mantra_excerpthome" => "Full Post", +"mantra_excerptsticky" => "Full Post", +"mantra_excerptarchive" => "Full Post", +"mantra_excerptwords" => "50", +"mantra_magazinelayout" => "Disable", +"mantra_excerptdots" => " …", +"mantra_excerptcont" => " Continue reading", +"mantra_excerpttags" => "Disable", + +"mantra_fpost" => "Disable", +"mantra_fpostlink" => "1", +"mantra_fauto" => "Disable", +"mantra_falign" => "Left", +"mantra_fwidth" => "250", +"mantra_fheight" => "150", +"mantra_fcrop" => "", +"mantra_fheader" => "Disable", + +"mantra_social1" => "Facebook", +"mantra_social2" => "#", +"mantra_social3" => "Twitter", +"mantra_social4" => "#", +"mantra_social5" => "RSS", +"mantra_social6" => "#", +"mantra_social7" => "", +"mantra_social8" => "", +"mantra_social9" => "", +"mantra_social10" => "", +"mantra_socialsdisplay0" => "1", +"mantra_socialsdisplay1" => "", +"mantra_socialsdisplay2" => "", +"mantra_socialsdisplay3" => "1", + +"mantra_copyright" => "", +"mantra_customcss" => "/* Mantra Custom CSS */ ", +"mantra_customjs" => "", +"mantra_seo" => "Enable", +"mantra_seo_home_desc" => "", +"mantra_seo_gen_desc" => "Auto", +"mantra_seo_author" => "Do not use"); + +?> \ No newline at end of file diff --git a/wp-content/themes/mantra/admin/images/1c.png b/wp-content/themes/mantra/admin/images/1c.png new file mode 100644 index 0000000..29891b1 Binary files /dev/null and b/wp-content/themes/mantra/admin/images/1c.png differ diff --git a/wp-content/themes/mantra/admin/images/2cSl.png b/wp-content/themes/mantra/admin/images/2cSl.png new file mode 100644 index 0000000..61ca2ef Binary files /dev/null and b/wp-content/themes/mantra/admin/images/2cSl.png differ diff --git a/wp-content/themes/mantra/admin/images/2cSr.png b/wp-content/themes/mantra/admin/images/2cSr.png new file mode 100644 index 0000000..1392844 Binary files /dev/null and b/wp-content/themes/mantra/admin/images/2cSr.png differ diff --git a/wp-content/themes/mantra/admin/images/3cSl.png b/wp-content/themes/mantra/admin/images/3cSl.png new file mode 100644 index 0000000..f47dbab Binary files /dev/null and b/wp-content/themes/mantra/admin/images/3cSl.png differ diff --git a/wp-content/themes/mantra/admin/images/3cSr.png b/wp-content/themes/mantra/admin/images/3cSr.png new file mode 100644 index 0000000..a21b6d9 Binary files /dev/null and b/wp-content/themes/mantra/admin/images/3cSr.png differ diff --git a/wp-content/themes/mantra/admin/images/3cSs.png b/wp-content/themes/mantra/admin/images/3cSs.png new file mode 100644 index 0000000..0e6b5fe Binary files /dev/null and b/wp-content/themes/mantra/admin/images/3cSs.png differ diff --git a/wp-content/themes/mantra/admin/images/coffee.png b/wp-content/themes/mantra/admin/images/coffee.png new file mode 100644 index 0000000..6a94cc8 Binary files /dev/null and b/wp-content/themes/mantra/admin/images/coffee.png differ diff --git a/wp-content/themes/mantra/admin/images/mantra-logo.png b/wp-content/themes/mantra/admin/images/mantra-logo.png new file mode 100644 index 0000000..4e86190 Binary files /dev/null and b/wp-content/themes/mantra/admin/images/mantra-logo.png differ diff --git a/wp-content/themes/mantra/admin/images/placeholder.gif b/wp-content/themes/mantra/admin/images/placeholder.gif new file mode 100644 index 0000000..7e063df Binary files /dev/null and b/wp-content/themes/mantra/admin/images/placeholder.gif differ diff --git a/wp-content/themes/mantra/admin/images/testimg.png b/wp-content/themes/mantra/admin/images/testimg.png new file mode 100644 index 0000000..9b2bcbf Binary files /dev/null and b/wp-content/themes/mantra/admin/images/testimg.png differ diff --git a/wp-content/themes/mantra/admin/js/accordion-slider.js b/wp-content/themes/mantra/admin/js/accordion-slider.js new file mode 100644 index 0000000..e43b28a --- /dev/null +++ b/wp-content/themes/mantra/admin/js/accordion-slider.js @@ -0,0 +1,96 @@ +/*! + * jQuery UI Widget 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Widget + */ +(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)try{b(d).triggerHandler("remove")}catch(e){}k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(d){}});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]= +function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)): +d;if(e&&d.charAt(0)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options= +b.extend(true,{},this.options,this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+ +"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled", +c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery); +;/*! + * jQuery UI Mouse 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Mouse + * + * Depends: + * jquery.ui.widget.js + */ +(function(b){var d=false;b(document).mouseup(function(){d=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(true===b.data(c.target,a.widgetName+".preventClickEvent")){b.removeData(c.target,a.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+ +this.widgetName)},_mouseDown:function(a){if(!d){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,f=a.which==1,g=typeof this.options.cancel=="string"&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:false;if(!f||g||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted= +this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}true===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return d=true}},_mouseMove:function(a){if(b.browser.msie&& +!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted= +false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery); +;/* + * jQuery UI Accordion 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Accordion + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + */ +(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"); +a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"); +if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var h=d.closest(".ui-accordion-header");a.active=h.length?h:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion", +function(f){return a._keydown(f)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(f){a._clickHandler.call(a,f,this);f.preventDefault()})},_createIcons:function(){var a= +this.options;if(a.icons){c("").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"); +this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons(); +b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,h=this.headers.index(a.target),f=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(h+1)%d];break;case b.LEFT:case b.UP:f=this.headers[(h-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target); +a.preventDefault()}if(f){c(a.target).attr("tabIndex",-1);c(f).attr("tabIndex",0);f.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+ +c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options; +if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){var h=this.active;j=a.next();g=this.active.next();e={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):j,oldContent:g};var f=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(j,g,e,b,f);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header); +if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);a.next().addClass("ui-accordion-content-active")}}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(), +e={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:g},j=this.active=c([]);this._toggle(j,g,e)}},_toggle:function(a,b,d,h,f){var g=this,e=g.options;g.toShow=a;g.toHide=b;g.data=d;var j=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&h?{toShow:c([]),toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:f,autoHeight:e.autoHeight|| +e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;h=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!h[k]&&!c.easing[k])k="slide";h[k]||(h[k]=function(l){this.slide(l,{easing:k,duration:i||700})});h[k](d)}else{if(e.collapsible&&h)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false", +"aria-selected":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.16", +animations:{slide:function(a,b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),h=0,f={},g={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){g[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/); +f[i]={value:j[1],unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,i){if(i.prop=="height")h=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=h*f[i.prop].value+f[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide", +paddingTop:"hide",paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery); +;/* + * jQuery UI Slider 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Slider + * + * Depends: + * jquery.ui.core.js + * jquery.ui.mouse.js + * jquery.ui.widget.js + */ +(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,b=this.options,c=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=b.values&&b.values.length||1,e=[];this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+ +this.orientation+" ui-widget ui-widget-content ui-corner-all"+(b.disabled?" ui-slider-disabled ui-disabled":""));this.range=d([]);if(b.range){if(b.range===true){if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}this.range=d("
").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(b.range==="min"||b.range==="max"?" ui-slider-range-"+b.range:""))}for(var j=c.length;j"); +this.handles=c.add(d(e.join("")).appendTo(a.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(g){g.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(g){d(this).data("index.ui-slider-handle", +g)});this.handles.keydown(function(g){var k=true,l=d(this).data("index.ui-slider-handle"),i,h,m;if(!a.options.disabled){switch(g.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:k=false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");i=a._start(g,l);if(i===false)return}break}m=a.options.step;i=a.options.values&&a.options.values.length? +(h=a.values(l)):(h=a.value());switch(g.keyCode){case d.ui.keyCode.HOME:h=a._valueMin();break;case d.ui.keyCode.END:h=a._valueMax();break;case d.ui.keyCode.PAGE_UP:h=a._trimAlignValue(i+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:h=a._trimAlignValue(i-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(i===a._valueMax())return;h=a._trimAlignValue(i+m);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(i===a._valueMin())return;h=a._trimAlignValue(i- +m);break}a._slide(g,l,h);return k}}).keyup(function(g){var k=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(g,k);a._change(g,k);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy(); +return this},_mouseCapture:function(a){var b=this.options,c,f,e,j,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});f=this._valueMax()-this._valueMin()+1;j=this;this.handles.each(function(k){var l=Math.abs(c-j.values(k));if(f>l){f=l;e=d(this);g=k}});if(b.range===true&&this.values(1)===b.min){g+=1;e=d(this.handles[g])}if(this._start(a,g)===false)return false; +this._mouseSliding=true;j._handleIndex=g;e.addClass("ui-state-active").focus();b=e.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-e.width()/2,top:a.pageY-b.top-e.height()/2-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"),10)||0)+(parseInt(e.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b= +this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b= +this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b); +c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var f;if(this.options.values&&this.options.values.length){f=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>f||b===1&&c1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}else if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;f=arguments[0];for(e=0;e=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a= +this.options.range,b=this.options,c=this,f=!this._animateOff?b.animate:false,e,j={},g,k,l,i;if(this.options.values&&this.options.values.length)this.handles.each(function(h){e=(c.values(h)-c._valueMin())/(c._valueMax()-c._valueMin())*100;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";d(this).stop(1,1)[f?"animate":"css"](j,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(h===0)c.range.stop(1,1)[f?"animate":"css"]({left:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({width:e- +g+"%"},{queue:false,duration:b.animate})}else{if(h===0)c.range.stop(1,1)[f?"animate":"css"]({bottom:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({height:e-g+"%"},{queue:false,duration:b.animate})}g=e});else{k=this.value();l=this._valueMin();i=this._valueMax();e=i!==l?(k-l)/(i-l)*100:0;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[f?"animate":"css"](j,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:e+"%"}, +b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-e+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:e+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-e+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.16"})})(jQuery); +; \ No newline at end of file diff --git a/wp-content/themes/mantra/admin/js/admin.js b/wp-content/themes/mantra/admin/js/admin.js new file mode 100644 index 0000000..4b55466 --- /dev/null +++ b/wp-content/themes/mantra/admin/js/admin.js @@ -0,0 +1,207 @@ +/*! + * Admin js + */ + +function media_upload( button_class) { + if (!window.wp || !window.wp.media || !window.wp.media.editor || !window.wp.media.editor.send || !window.wp.media.editor.send.attachment) return; + var _custom_media = true, + _orig_send_attachment = wp.media.editor.send.attachment; + jQuery('body').on('click',button_class, function(e) { + uploadparent = jQuery(this).closest('div'); + var button_id ='#'+jQuery(this).attr('id'); + /* console.log(button_id); */ + var self = jQuery(button_id); + var send_attachment_bkp = wp.media.editor.send.attachment; + var button = jQuery(button_id); + /* var id = button.attr('id').replace('_button', ''); */ + _custom_media = true; + wp.media.editor.send.attachment = function(props, attachment){ + if ( _custom_media ) { + /* jQuery('.custom_media_id').val(attachment.id); */ + uploadparent.find('.slideimages').val(attachment.url); + uploadparent.find('.imagebox').attr('src',attachment.url); + /* jQuery('.custom_media_image').attr('src',attachment.url).css('display','block'); */ + } else { + return _orig_send_attachment.apply( button_id, [props, attachment] ); + } + } + wp.media.editor.open(button); + return false; + }); +} + +jQuery(document).ready(function() { + +var uploadparent = 0; + media_upload( '.upload_image_button' ); + +// Show/hide slides + jQuery('.slidetitle').click(function() { + jQuery(this).next().toggle("fast"); + }); + + +// Jquery confim window on reset to defaults +jQuery('#mantra_defaults').click (function() { + if (!confirm('Reset Mantra Settings to Defaults?')) { return false;} + }); + +// Hide or show dimmensions +jQuery('#mantra_dimselect').change(function() { + if (jQuery('#mantra_dimselect option:selected').val()=="Absolute") { + jQuery('#relativedim').hide("normal");jQuery('#absolutedim').show("normal"); + } + else { + jQuery('#relativedim').show("normal");jQuery('#absolutedim').hide("normal"); + } + }); + +if (jQuery('#mantra_dimselect option:selected').val()=="Absolute") { + jQuery('#relativedim').hide("normal");jQuery('#absolutedim').show("normal");} +else { + jQuery('#relativedim').show("normal");jQuery('#absolutedim').hide("normal"); + } + + +// Hide or show slider settings +jQuery('#mantra_slideType').change(function() { + jQuery('.slideDivs').hide("normal"); + switch (jQuery('#mantra_slideType option:selected').val()) { + + case "Custom Slides" : + jQuery('#sliderCustomSlides').show("normal"); + break; + + case "Latest Posts" : + jQuery('#sliderLatestPosts').show("normal"); + break; + + case "Random Posts" : + jQuery('#sliderRandomPosts').show("normal"); + break; + + case "Sticky Posts" : + jQuery('#sliderStickyPosts').show("normal"); + break; + + case "Latest Posts from Category" : + jQuery('#sliderLatestCateg').show("normal"); + break; + + case "Random Posts from Category" : + jQuery('#sliderRandomCateg').show("normal"); + break; + + case "Specific Posts" : + jQuery('#sliderSpecificPosts').show("normal"); + break; + + }//switch + +});//function + +jQuery('.slideDivs').hide("normal"); + switch (jQuery('#mantra_slideType option:selected').val()) { + + case "Custom Slides" : + jQuery('#sliderCustomSlides').show("normal"); + break; + + case "Latest Posts" : + jQuery('#sliderLatestPosts').show("normal"); + break; + + case "Random Posts" : + jQuery('#sliderRandomPosts').show("normal"); + break; + + case "Sticky Posts" : + jQuery('#sliderStickyPosts').show("normal"); + break; + + case "Latest Posts from Category" : + jQuery('#sliderLatestCateg').show("normal"); + break; + + case "Random Posts from Category" : + jQuery('#sliderRandomCateg').show("normal"); + break; + + case "Specific Posts" : + jQuery('#sliderSpecificPosts').show("normal"); + break; +};//switch + +//Slide type value +$sliderNr=jQuery('#mantra_slideType').val(); + +//Show category if a category type is selected +if ($sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" ) + jQuery('#slider-category').show(); +else jQuery('#slider-category').hide(); + +//Show number of slides if that's the case +if ($sliderNr=="Latest Posts" || $sliderNr =="Random Posts" || $sliderNr =="Sticky Posts" || $sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" ) + jQuery('#slider-post-number').show(); +else jQuery('#slider-post-number').hide(); + +//On change +jQuery('#mantra_slideType').change(function(){ + $sliderNr=jQuery('#mantra_slideType').val(); +//Show category if a category type is selected + if ($sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" ) + jQuery('#slider-category').show(); + else jQuery('#slider-category').hide(); +//Show number of slides if that's the case + if ($sliderNr=="Latest Posts" || $sliderNr =="Random Posts" || $sliderNr =="Sticky Posts" || $sliderNr=="Latest Posts from Category" || $sliderNr=="Random Posts from Category" ) + jQuery('#slider-post-number').show(); +else jQuery('#slider-post-number').hide(); + });//onchange funciton + + + +// Create accordion from existing settings table + jQuery('.form-table').wrap('
'); + jQuery(function() { + jQuery( "#accordion" ).accordion({ + header: 'h3', + autoHeight: false, // for jQueryUI <1.10 + heightStyle: "content", // required in jQueryUI 1.10 + collapsible: true, + navigation: true, + active: false + }); + }); + + + });// ready + + // Change border for selecte inputs +function changeBorder (idName, className) { + jQuery('.'+className).removeClass( 'checkedClass' ); + jQuery('.'+className).removeClass( 'borderful' ); + jQuery('#'+idName).addClass( 'borderful' ); + +return 0; +} + +/* FB like button */ +(function(d, s, id) { + var js, fjs = d.getElementsByTagName(s)[0]; + if (d.getElementById(id)) return; + js = d.createElement(s); js.id = id; + js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0"; + fjs.parentNode.insertBefore(js, fjs); +}(document, 'script', 'facebook-jssdk')); + +/* Twitter follow button */ +window.twttr = (function (d, s, id) { + var t, js, fjs = d.getElementsByTagName(s)[0]; + if (d.getElementById(id)) return; + js = d.createElement(s); js.id = id; + js.src= "https://platform.twitter.com/widgets.js"; + fjs.parentNode.insertBefore(js, fjs); + return window.twttr || (t = { _e: [], ready: function (f) { t._e.push(f) } }); +}(document, "script", "twitter-wjs")); + +/* FIN */ \ No newline at end of file diff --git a/wp-content/themes/mantra/admin/main.php b/wp-content/themes/mantra/admin/main.php new file mode 100644 index 0000000..96bb826 --- /dev/null +++ b/wp-content/themes/mantra/admin/main.php @@ -0,0 +1,494 @@ + $value) { + ${"$key"} = $value ; +} + + +// Hooks/Filters +add_action('admin_init', 'mantra_init_fn' ); +add_action('admin_menu', 'mantra_add_page_fn'); +add_action('init', 'mantra_init'); + + +$mantra_options= mantra_get_theme_options(); + +// Registering and enqueuing all scripts and styles for the init hook +function mantra_init() { +//Loading Mantra text domain into the admin section + load_theme_textdomain( 'mantra', get_template_directory_uri() . '/languages' ); +} + +// Creating the mantra subpage +function mantra_add_page_fn() { +$page = add_theme_page('Mantra Settings', 'Mantra Settings', 'edit_theme_options', 'mantra-page', 'mantra_page_fn'); + add_action( 'admin_print_styles-'.$page, 'mantra_admin_styles' ); + add_action('admin_print_scripts-'.$page, 'mantra_admin_scripts'); + +} + +// Adding the styles for the Mantra admin page used when mantra_add_page_fn() is launched +function mantra_admin_styles() { + + wp_register_style( 'mantra-admin-style',get_template_directory_uri() . '/admin/css/admin.css' ); + wp_register_style( 'jquery-ui-style',get_template_directory_uri() . '/js/jqueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css' ); + wp_enqueue_style( 'mantra-admin-style' ); + wp_enqueue_style( 'jquery-ui-style' ); + +} + +// Adding the styles for the Mantra admin page used when mantra_add_page_fn() is launched +function mantra_admin_scripts() { +// The farbtastic color selector already included in WP + wp_enqueue_script("farbtastic"); + wp_enqueue_style( 'farbtastic' ); + +//Jquery accordion and slider libraries alreay included in WP + wp_enqueue_script('jquery-ui-accordion'); + wp_enqueue_script('jquery-ui-slider'); + wp_enqueue_script('jquery-ui-tooltip'); +// For backwards compatibility where Mantra is installed on older versions of WP where the ui accordion and slider are not included + if (!wp_script_is('jquery-ui-accordion',$list='registered')) { + wp_register_script('cryout_accordion',get_template_directory_uri() . '/admin/js/accordion-slider.js', array('jquery') ); + wp_enqueue_script('cryout_accordion'); + } + // For the WP uploader + if(function_exists('wp_enqueue_media')) { + wp_enqueue_media(); + } + else { + wp_enqueue_script('media-upload'); + wp_enqueue_script('thickbox'); + wp_enqueue_style('thickbox'); + } +// The js used in the admin + wp_register_script('cryout-admin-js',get_template_directory_uri() . '/admin/js/admin.js' ); + wp_enqueue_script('cryout-admin-js'); +} + +// The settings sectoions. All the referenced functions are found in admin-functions.php +function mantra_init_fn(){ + + + register_setting('ma_options', 'ma_options', 'ma_options_validate' ); + +/************** + sections +**************/ + + add_settings_section('layout_section', __('Layout Settings','mantra'), 'cryout_section_layout_fn', __FILE__); + add_settings_section('header_section', __('Header Settings','mantra'), 'cryout_section_header_fn', __FILE__); + add_settings_section('presentation_section', __('Presentation Page','mantra'), 'cryout_section_presentation_fn', __FILE__); + add_settings_section('text_section', __('Text Settings','mantra'), 'cryout_section_text_fn', __FILE__); + add_settings_section('appereance_section',__('Color Settings','mantra') , 'cryout_section_appereance_fn', __FILE__); + add_settings_section('graphics_section', __('Graphics Settings','mantra') , 'cryout_section_graphics_fn', __FILE__); + add_settings_section('post_section', __('Post Information Settings','mantra') , 'cryout_section_post_fn', __FILE__); + add_settings_section('excerpt_section', __('Post Excerpt Settings','mantra') , 'cryout_section_excerpt_fn', __FILE__); + add_settings_section('featured_section', __('Featured Image Settings','mantra') , 'cryout_section_featured_fn', __FILE__); + add_settings_section('socials_section', __('Social Media Settings','mantra') , 'cryout_section_social_fn', __FILE__); + add_settings_section('misc_section', __('Miscellaneous Settings','mantra') , 'cryout_section_misc_fn', __FILE__); + +/*** layout ***/ + add_settings_field('mantra_side', __('Main Layout','mantra') , 'cryout_setting_side_fn', __FILE__, 'layout_section'); + add_settings_field('mantra_sidewidth', __('Content / Sidebar Width','mantra') , 'cryout_setting_sidewidth_fn', __FILE__, 'layout_section'); + add_settings_field('mantra_mobile', __('Responsiveness','mantra') , 'cryout_setting_mobile_fn', __FILE__, 'layout_section'); +/*** presentation ***/ + + add_settings_field('mantra_frontpage', __('Enable Presentation Page','mantra') , 'cryout_setting_frontpage_fn', __FILE__, 'presentation_section'); + add_settings_field('mantra_frontposts', __('Show Posts on Presentation Page','mantra') , 'cryout_setting_frontposts_fn', __FILE__, 'presentation_section'); + add_settings_field('mantra_frontslider', __('Slider Settings','mantra') , 'cryout_setting_frontslider_fn', __FILE__, 'presentation_section'); + add_settings_field('mantra_frontslider2', __('Slides','mantra') , 'cryout_setting_frontslider2_fn', __FILE__, 'presentation_section'); + add_settings_field('mantra_frontcolumns', __('Presentation Page Columns','mantra') , 'cryout_setting_frontcolumns_fn', __FILE__, 'presentation_section'); + add_settings_field('mantra_fronttext', __('Extras','mantra') , 'cryout_setting_fronttext_fn', __FILE__, 'presentation_section'); + +/*** header ***/ + add_settings_field('mantra_hheight', __('Header Height','mantra') , 'cryout_setting_hheight_fn', __FILE__, 'header_section'); + add_settings_field('mantra_himage', __('Header Image','mantra') , 'cryout_setting_himage_fn', __FILE__, 'header_section'); + add_settings_field('mantra_siteheader', __('Site Header','mantra') , 'cryout_setting_siteheader_fn', __FILE__, 'header_section'); + add_settings_field('mantra_logoupload', __('Custom Logo Upload','mantra') , 'cryout_setting_logoupload_fn', __FILE__, 'header_section'); + add_settings_field('mantra_headermargin', __('Header Spacing','mantra') , 'cryout_setting_headermargin_fn', __FILE__, 'header_section'); + add_settings_field('mantra_menurounded', __('Rounded Menu Corners','mantra') , 'cryout_setting_menurounded_fn', __FILE__, 'header_section'); + add_settings_field('mantra_favicon', __('FavIcon Upload','mantra') , 'cryout_setting_favicon_fn', __FILE__, 'header_section'); +/*** text ***/ + add_settings_field('mantra_fontfamily', __('General Font','mantra') , 'cryout_setting_fontfamily_fn', __FILE__, 'text_section'); + add_settings_field('mantra_fontsize', __('General Font Size','mantra') , 'cryout_setting_fontsize_fn', __FILE__, 'text_section'); + add_settings_field('mantra_fonttitle', __('Post Title Font ','mantra') , 'cryout_setting_fonttitle_fn', __FILE__, 'text_section'); + add_settings_field('mantra_headfontsize', __('Post Title Font Size','mantra') , 'cryout_setting_headfontsize_fn', __FILE__, 'text_section'); + add_settings_field('mantra_fontside', __('Sidebar Font','mantra') , 'cryout_setting_fontside_fn', __FILE__, 'text_section'); + add_settings_field('mantra_sidefontsize', __('SideBar Font Size','mantra') , 'cryout_setting_sidefontsize_fn', __FILE__, 'text_section'); + add_settings_field('mantra_fontsubheader', __('Headings Font','mantra') , 'cryout_setting_fontsubheader_fn', __FILE__, 'text_section'); + add_settings_field('mantra_textalign', __('Force Text Align','mantra') , 'cryout_setting_textalign_fn', __FILE__, 'text_section'); + add_settings_field('mantra_parmargin', __('Paragraph spacing','mantra') , 'cryout_setting_parmargin_fn', __FILE__, 'text_section'); + add_settings_field('mantra_parindent', __('Paragraph indent','mantra') , 'cryout_setting_parindent_fn', __FILE__, 'text_section'); + add_settings_field('mantra_headerindent', __('Header indent','mantra') , 'cryout_setting_headerindent_fn', __FILE__, 'text_section'); + add_settings_field('mantra_lineheight', __('Line Height','mantra') , 'cryout_setting_lineheight_fn', __FILE__, 'text_section'); + add_settings_field('mantra_wordspace', __('Word spacing','mantra') , 'cryout_setting_wordspace_fn', __FILE__, 'text_section'); + add_settings_field('mantra_letterspace', __('Letter spacing','mantra') , 'cryout_setting_letterspace_fn', __FILE__, 'text_section'); + add_settings_field('mantra_textshadow', __('Text shadow','mantra') , 'cryout_setting_textshadow_fn', __FILE__, 'text_section'); +/*** appereance ***/ + add_settings_field('mantra_sitebackground', __('Background Image','mantra') , 'cryout_setting_sitebackground_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_backcolor', __('Background Color','mantra') , 'cryout_setting_backcolor_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_headercolor', __('Header (Banner and Menu) Background Color','mantra') , 'cryout_setting_headercolor_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_contentbg', __('Content Background Color','mantra') , 'cryout_setting_contentbg_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_menubg', __('Menu Items Background Color','mantra') , 'cryout_setting_menubg_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_s1bg', __('First Sidebar Background Color','mantra') , 'cryout_setting_first_sidebar_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_s2bg', __('Second Sidebar Background Color','mantra') , 'cryout_setting_second_sidebar_fn', __FILE__, 'appereance_section'); + + add_settings_field('mantra_titlecolor', __('Site Title Color','mantra') , 'cryout_setting_titlecolor_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_descriptioncolor', __('Site Description Color','mantra') , 'cryout_setting_descriptioncolor_fn', __FILE__, 'appereance_section'); + + add_settings_field('mantra_contentcolor', __('Content Text Color','mantra') , 'cryout_setting_contentcolor_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_linkscolor', __('Links Color','mantra') , 'cryout_setting_linkscolor_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_hovercolor', __('Links Hover Color','mantra') , 'cryout_setting_hovercolor_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_headtextcolor',__( 'Post Title Color','mantra') , 'cryout_setting_headtextcolor_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_headtexthover', __('Post Title Hover Color','mantra') , 'cryout_setting_headtexthover_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_sideheadbackcolor', __('Sidebar Header Background Color','mantra') , 'cryout_setting_sideheadbackcolor_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_sideheadtextcolor', __('Sidebar Header Text Color','mantra') , 'cryout_setting_sideheadtextcolor_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_prefootercolor', __('Footer Widget Background Color','mantra') , 'cryout_setting_prefootercolor_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_footercolor', __('Footer Background Color','mantra') , 'cryout_setting_footercolor_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_footerheader', __('Footer Widget Header Text Color','mantra') , 'cryout_setting_footerheader_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_footertext', __('Footer Widget Link Color','mantra') , 'cryout_setting_footertext_fn', __FILE__, 'appereance_section'); + add_settings_field('mantra_footerhover', __('Footer Widget Hover Color','mantra') , 'cryout_setting_footerhover_fn', __FILE__, 'appereance_section'); +/*** graphics ***/ + add_settings_field('mantra_breadcrumbs', __('Breadcrumbs','mantra') , 'cryout_setting_breadcrumbs_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_pagination', __('Pagination','mantra') , 'cryout_setting_pagination_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_menualign', __('Main Menu Alignment','mantra') , 'cryout_setting_menualign_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_image', __('Post Images Border','mantra') , 'cryout_setting_image_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_caption', __('Caption Border','mantra') , 'cryout_setting_caption_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_pin', __('Caption Pin','mantra') , 'cryout_setting_pin_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_sidebullet', __('Sidebar Menu Bullets','mantra') , 'cryout_setting_sidebullet_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_metaback', __('Meta Area Background','mantra') , 'cryout_setting_metaback_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_postseparator', __('Post Separator','mantra') , 'cryout_setting_postseparator_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_contentlist', __('Content List Bullets','mantra') , 'cryout_setting_contentlist_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_pagetitle', __('Page Titles','mantra') , 'cryout_setting_pagetitle_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_categetitle', __('Category Page Titles','mantra') , 'cryout_setting_categtitle_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_tables', __('Hide Tables','mantra') , 'cryout_setting_tables_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_backtop', __('Back to Top button','mantra') , 'cryout_setting_backtop_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_comtext', __('Text Under Comments','mantra') , 'cryout_setting_comtext_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_comclosed', __('Comments are closed text','mantra') , 'cryout_setting_comclosed_fn', __FILE__, 'graphics_section'); + add_settings_field('mantra_comoff', __('Comments off','mantra') , 'cryout_setting_comoff_fn', __FILE__, 'graphics_section'); +/*** post metas***/ + add_settings_field('mantra_postcomlink', __('Post Comments Link','mantra') , 'cryout_setting_postcomlink_fn', __FILE__, 'post_section'); + add_settings_field('mantra_postdate', __('Post Date','mantra') , 'cryout_setting_postdate_fn', __FILE__, 'post_section'); + add_settings_field('mantra_posttime', __('Post Time','mantra') , 'cryout_setting_posttime_fn', __FILE__, 'post_section'); + add_settings_field('mantra_postauthor', __('Post Author','mantra') , 'cryout_setting_postauthor_fn', __FILE__, 'post_section'); + add_settings_field('mantra_postcateg', __('Post Category','mantra') , 'cryout_setting_postcateg_fn', __FILE__, 'post_section'); + add_settings_field('mantra_postmetas', __('Meta Bar','mantra') , 'cryout_setting_postmetas_fn', __FILE__, 'post_section'); + add_settings_field('mantra_posttag', __('Post Tags','mantra') , 'cryout_setting_posttag_fn', __FILE__, 'post_section'); + add_settings_field('mantra_postbook', __('Post Permalink','mantra') , 'cryout_setting_postbook_fn', __FILE__, 'post_section'); +/*** post exceprts***/ + add_settings_field('mantra_excerpthome', __('Post Excerpts on Home Page','mantra') , 'cryout_setting_excerpthome_fn', __FILE__, 'excerpt_section'); + add_settings_field('mantra_excerptsticky', __('Affect Sticky Posts','mantra') , 'cryout_setting_excerptsticky_fn', __FILE__, 'excerpt_section'); + add_settings_field('mantra_excerptarchive', __('Post Excerpts on Archive and Category Pages','mantra') , 'cryout_setting_excerptarchive_fn', __FILE__, 'excerpt_section'); + add_settings_field('mantra_excerptwords', __('Number of Words for Post Excerpts ','mantra') , 'cryout_setting_excerptwords_fn', __FILE__, 'excerpt_section'); + add_settings_field('mantra_magazinelayout', __('Magazine Layout','mantra') , 'cryout_setting_magazinelayout_fn', __FILE__, 'excerpt_section'); + add_settings_field('mantra_excerptdots', __('Excerpt suffix','mantra') , 'cryout_setting_excerptdots_fn', __FILE__, 'excerpt_section'); + add_settings_field('mantra_excerptcont', __('Continue reading link text ','mantra') , 'cryout_setting_excerptcont_fn', __FILE__, 'excerpt_section'); + add_settings_field('mantra_excerpttags', __('HTML tags in Excerpts','mantra') , 'cryout_setting_excerpttags_fn', __FILE__, 'excerpt_section'); +/*** featured ***/ + add_settings_field('mantra_fpost', __('Featured Images as POST Thumbnails ','mantra') , 'cryout_setting_fpost_fn', __FILE__, 'featured_section'); + add_settings_field('mantra_fauto', __('Auto Select Images From Posts ','mantra') , 'cryout_setting_fauto_fn', __FILE__, 'featured_section'); + add_settings_field('mantra_falign', __('Thumbnails Alignment ','mantra') , 'cryout_setting_falign_fn', __FILE__, 'featured_section'); + add_settings_field('mantra_fsize', __('Thumbnails Size ','mantra') , 'cryout_setting_fsize_fn', __FILE__, 'featured_section'); + add_settings_field('mantra_fheader', __('Featured Images as HEADER Images ','mantra') , 'cryout_setting_fheader_fn', __FILE__, 'featured_section'); +/*** socials ***/ + add_settings_field('mantra_socials1', __('Link nr. 1','mantra') , 'cryout_setting_socials1_fn', __FILE__, 'socials_section'); + add_settings_field('mantra_socials2', __('Link nr. 2','mantra') , 'cryout_setting_socials2_fn', __FILE__, 'socials_section'); + add_settings_field('mantra_socials3', __('Link nr. 3','mantra') , 'cryout_setting_socials3_fn', __FILE__, 'socials_section'); + add_settings_field('mantra_socials4', __('Link nr. 4','mantra') , 'cryout_setting_socials4_fn', __FILE__, 'socials_section'); + add_settings_field('mantra_socials5', __('Link nr. 5','mantra') , 'cryout_setting_socials5_fn', __FILE__, 'socials_section'); + add_settings_field('mantra_socialshow', __('Socials display','mantra') , 'cryout_setting_socialsdisplay_fn', __FILE__, 'socials_section'); +/*** misc ***/ + add_settings_field('mantra_seo', __('SEO Settings','mantra') , 'cryout_setting_seo_fn', __FILE__, 'misc_section'); + add_settings_field('mantra_copyright', __('Custom Footer Text','mantra') , 'cryout_setting_copyright_fn', __FILE__, 'misc_section'); + add_settings_field('mantra_customcss', __('Custom CSS','mantra') , 'cryout_setting_customcss_fn', __FILE__, 'misc_section'); + add_settings_field('mantra_customjs', __('Custom JavaScript','mantra') , 'cryout_setting_customjs_fn', __FILE__, 'misc_section'); +} + + // Display the admin options page +function mantra_page_fn() { + // Load the import form page if the import button has been pressed + if (isset($_POST['mantra_import'])) { + mantra_import_form(); + return; + } + // Load the import form page after upload button has been pressed + if (isset($_POST['mantra_import_confirmed'])) { + mantra_import_file(); + return; + } + + if (!current_user_can('edit_theme_options')) { + wp_die( __('Sorry, but you do not have sufficient permissions to access this page.','mantra') ); + }?> + + +
+ +
+ + +

"; + echo _e('Mantra settings updated successfully.','mantra'); + echo "

"; +} ?> + +
Checking jQuery functionality...
If this message remains visible after the page has loaded then there is a problem with your WordPress jQuery library. This can have several causes, including incompatible plugins. +The Parabola Settings page cannot function without jQuery.
+ +
+
+
+ + +
+
+
+ + +
+
+ + + Mantra v by Cryout Creations + +
+
+ + +
+ + +
+
+

+

+
+
+
+ + + +

+
+
+
+ + +

+
+
+
+ + +
+
+

+
+
+ get_item_quantity( 10 ); + $news_items = $mantra_news->get_items( 0, $maxitems ); + } + ?> +
    + ' . __( 'No news items.', 'mantra' ) . ''; else : + foreach( $news_items as $news_item ) : ?> +
  • + get_title() ); ?>
    + get_date(' j F Y'); ?>
    + Read more » +
  • + +
+
+
+ + +
+
+ + + + diff --git a/wp-content/themes/mantra/admin/sanitize.php b/wp-content/themes/mantra/admin/sanitize.php new file mode 100644 index 0000000..bc25e3a --- /dev/null +++ b/wp-content/themes/mantra/admin/sanitize.php @@ -0,0 +1,240 @@ +=500 && $input['mantra_sidewidth'] <=1760) {} else {$input['mantra_sidewidth']=$mantra_defaults['mantra_sidewidth']; } + if(isset($input['mantra_sidebar']) && is_numeric($input['mantra_sidebar']) && $input['mantra_sidebar']>=220 && $input['mantra_sidebar'] <=800) {} else {$input['mantra_sidebar']=$mantra_defaults['mantra_sidebar']; } + + if(isset($input['mantra_sidewidthRel']) && is_numeric($input['mantra_sidewidthRel']) && $input['mantra_sidewidthRel']>=40 && $input['mantra_sidewidthRel'] <=80) {} else {$input['mantra_sidewidthRel']=$mantra_defaults['mantra_sidewidthRel']; } + if(isset($input['mantra_sidebarRel']) && is_numeric($input['mantra_sidebarRel']) && $input['mantra_sidebarRel']>=20 && $input['mantra_sidebarRel'] <=50) {} else {$input['mantra_sidebarRel']=$mantra_defaults['mantra_sidebarRel']; } + + if (isset($input['mantra_zoom'])) $input['mantra_zoom'] = "1"; else $input['mantra_zoom'] = 0; + + $input['mantra_hheight'] = intval(wp_kses_data($input['mantra_hheight'])); + + $input['mantra_copyright'] = trim(wp_kses_post($input['mantra_copyright'])); + + $input['mantra_backcolor'] = wp_kses_data($input['mantra_backcolor']); + $input['mantra_headercolor'] = wp_kses_data($input['mantra_headercolor']); + $input['mantra_contentbg'] = wp_kses_data($input['mantra_contentbg']); + $input['mantra_menubg'] = wp_kses_data($input['mantra_menubg']); + $input['mantra_s1bg'] = wp_kses_data($input['mantra_s1bg']); + $input['mantra_s2bg'] = wp_kses_data($input['mantra_s2bg']); + $input['mantra_prefootercolor'] = wp_kses_data($input['mantra_prefootercolor']); + $input['mantra_footercolor'] = wp_kses_data($input['mantra_footercolor']); + $input['mantra_titlecolor'] = wp_kses_data($input['mantra_titlecolor']); + $input['mantra_descriptioncolor'] = wp_kses_data($input['mantra_descriptioncolor']); + $input['mantra_contentcolor'] = wp_kses_data($input['mantra_contentcolor']); + $input['mantra_linkscolor'] = wp_kses_data($input['mantra_linkscolor']); + $input['mantra_hovercolor'] = wp_kses_data($input['mantra_hovercolor']); + $input['mantra_headtextcolor'] = wp_kses_data($input['mantra_headtextcolor']); + $input['mantra_headtexthover'] = wp_kses_data($input['mantra_headtexthover']); + $input['mantra_sideheadbackcolor'] = wp_kses_data($input['mantra_sideheadbackcolor']); + $input['mantra_sideheadtextcolor'] = wp_kses_data($input['mantra_sideheadtextcolor']); + $input['mantra_footerheader'] = wp_kses_data($input['mantra_footerheader']); + $input['mantra_footertext'] = wp_kses_data($input['mantra_footertext']); + $input['mantra_footerhover'] = wp_kses_data($input['mantra_footerhover']); + + $input['mantra_excerptwords'] = intval(wp_kses_data($input['mantra_excerptwords'])); + $input['mantra_excerptdots'] = wp_kses_data($input['mantra_excerptdots']); + $input['mantra_excerptcont'] = wp_kses_data($input['mantra_excerptcont']); + + $input['mantra_fwidth'] = intval(wp_kses_data($input['mantra_fwidth'])); + $input['mantra_fheight'] = intval(wp_kses_data($input['mantra_fheight'])); + +/*** 2 ***/ + + $cryout_special_terms = array('mailto:','callto://'); + $cryout_special_keys = array('Mail', 'Skype'); + for ($i=1;$i<10;$i+=2) { + $j=$i+1; + if (in_array($input['mantra_social'.$i],$cryout_special_keys)) : + $input['mantra_social'.$j] = wp_kses_data(str_replace($cryout_special_terms,'',$input['mantra_social'.$j])); + if ($input['mantra_social'.$i]=='Mail') {$input['mantra_social'.$j]='mailto:'.$input['mantra_social'.$j];}; + if ($input['mantra_social'.$i]=='Skype') {$input['mantra_social'.$j]='callto://'.$input['mantra_social'.$j];}; + else : + $input['mantra_social'.$j] = esc_url_raw($input['mantra_social'.$j]); + endif; + } + for ($i=0;$i<=5;$i++) { + if (!isset($input['mantra_socialsdisplay'.$i])) {$input['mantra_socialsdisplay'.$i] = "0";} + } + + $input['mantra_favicon'] = esc_url_raw($input['mantra_favicon']); + $input['mantra_logoupload'] = esc_url_raw($input['mantra_logoupload']); + $input['mantra_headermargintop'] = intval(wp_kses_data($input['mantra_headermargintop'])); + $input['mantra_headermarginleft'] = intval(wp_kses_data($input['mantra_headermarginleft'])); + + $input['mantra_customcss'] = wp_kses_post(trim($input['mantra_customcss'])); + $input['mantra_customjs'] = wp_kses_post(trim($input['mantra_customjs'])); + $input['mantra_seo_home_desc'] = wp_kses_post(trim($input['mantra_seo_home_desc'])); + + $input['mantra_googlefont'] = trim(wp_kses_data($input['mantra_googlefont'])); + $input['mantra_googlefonttitle'] = trim(wp_kses_data($input['mantra_googlefonttitle'])); + $input['mantra_googlefontside'] = trim(wp_kses_data($input['mantra_googlefontside'])); + $input['mantra_googlefontsubheader'] = trim(wp_kses_data($input['mantra_googlefontsubheader'])); + + if($input['mantra_googlefont']) { + $mantra_googlefont2 = $input['mantra_googlefont']; + $mantra_googlefont2= preg_replace( '/\s+/', '+', $mantra_googlefont2 ); + $mantra_googlefont2= "//fonts.googleapis.com/css?family=".$mantra_googlefont2; + $input['mantra_googlefont2'] = $mantra_googlefont2; + } else $input['mantra_googlefont2'] = ''; + if($input['mantra_googlefonttitle']) { + $mantra_googlefonttitle2 = $input['mantra_googlefonttitle']; + $mantra_googlefonttitle2= preg_replace( '/\s+/', '+', $mantra_googlefonttitle2 ); + $mantra_googlefonttitle2= "//fonts.googleapis.com/css?family=".$mantra_googlefonttitle2; + $input['mantra_googlefonttitle2'] = $mantra_googlefonttitle2; + } else $input['mantra_googlefonttitle2'] = ''; + if($input['mantra_googlefontside']) { + $mantra_googlefontside2 = $input['mantra_googlefontside']; + $mantra_googlefontside2= preg_replace( '/\s+/', '+', $mantra_googlefontside2 ); + $mantra_googlefontside2= "//fonts.googleapis.com/css?family=".$mantra_googlefontside2; + $input['mantra_googlefontside2'] = $mantra_googlefontside2; + } else $input['mantra_googlefontside2'] = ''; + if($input['mantra_googlefontsubheader']) { + $mantra_googlefontsubheader2 = $input['mantra_googlefontsubheader']; + $mantra_googlefontsubheader2= preg_replace( '/\s+/', '+', $mantra_googlefontsubheader2 ); + $mantra_googlefontsubheader2= "//fonts.googleapis.com/css?family=".$mantra_googlefontsubheader2; + $input['mantra_googlefontsubheader2'] = $mantra_googlefontsubheader2; + } else $input['mantra_googlefontsubheader2'] = ''; + + + $input['mantra_frontpostscount'] = intval(wp_kses_data($input['mantra_frontpostscount'])); + + $input['mantra_fpsliderborderwidth'] = intval(wp_kses_data($input['mantra_fpsliderborderwidth'])); + + $input['mantra_slideNumber'] = intval(wp_kses_data($input['mantra_slideNumber'])); + $input['mantra_slideSpecific'] = wp_kses_data($input['mantra_slideSpecific']); + + $input['mantra_fpsliderwidth'] = intval(wp_kses_data($input['mantra_fpsliderwidth'])); + $input['mantra_fpsliderheight'] = intval(wp_kses_data($input['mantra_fpsliderheight'])); + +/** 3 ***/ + $input['mantra_sliderimg1'] = wp_kses_data($input['mantra_sliderimg1']); + $input['mantra_slidertitle1'] = wp_kses_data($input['mantra_slidertitle1']); + $input['mantra_slidertext1'] = wp_kses_post($input['mantra_slidertext1']); + $input['mantra_sliderlink1'] = esc_url_raw($input['mantra_sliderlink1']); + $input['mantra_sliderimg2'] = wp_kses_data($input['mantra_sliderimg2']); + $input['mantra_slidertitle2'] = wp_kses_data($input['mantra_slidertitle2']); + $input['mantra_slidertext2'] = wp_kses_post($input['mantra_slidertext2']); + $input['mantra_sliderlink2'] = esc_url_raw($input['mantra_sliderlink2']); + $input['mantra_sliderimg3'] = wp_kses_data($input['mantra_sliderimg3']); + $input['mantra_slidertitle3'] = wp_kses_data($input['mantra_slidertitle3']); + $input['mantra_slidertext3'] = wp_kses_post($input['mantra_slidertext3']); + $input['mantra_sliderlink3'] = esc_url_raw($input['mantra_sliderlink3']); + $input['mantra_sliderimg4'] = wp_kses_data($input['mantra_sliderimg4']); + $input['mantra_slidertitle4'] = wp_kses_data($input['mantra_slidertitle4']); + $input['mantra_slidertext4'] = wp_kses_post($input['mantra_slidertext4']); + $input['mantra_sliderlink4'] = esc_url_raw($input['mantra_sliderlink4']); + $input['mantra_sliderimg5'] = wp_kses_data($input['mantra_sliderimg5']); + $input['mantra_slidertitle5'] = wp_kses_data($input['mantra_slidertitle5']); + $input['mantra_slidertext5'] = wp_kses_post($input['mantra_slidertext5']); + $input['mantra_sliderlink5'] = esc_url_raw($input['mantra_sliderlink5']); + + $input['mantra_colimageheight'] = intval(wp_kses_data($input['mantra_colimageheight'])); + +/** 4 **/ + $input['mantra_columnimg1'] = wp_kses_data($input['mantra_columnimg1']); + $input['mantra_columntitle1'] = wp_kses_data($input['mantra_columntitle1']); + $input['mantra_columntext1'] = wp_kses_post($input['mantra_columntext1']); + $input['mantra_columnlink1'] = esc_url_raw($input['mantra_columnlink1']); + $input['mantra_columnimg2'] = wp_kses_data($input['mantra_columnimg2']); + $input['mantra_columntitle2'] = wp_kses_data($input['mantra_columntitle2']); + $input['mantra_columntext2'] = wp_kses_post($input['mantra_columntext2']); + $input['mantra_columnlink2'] = esc_url_raw($input['mantra_columnlink2']); + $input['mantra_columnimg3'] = wp_kses_data($input['mantra_columnimg3']); + $input['mantra_columntitle3'] = wp_kses_data($input['mantra_columntitle3']); + $input['mantra_columntext3'] = wp_kses_post($input['mantra_columntext3']); + $input['mantra_columnlink3'] = esc_url_raw($input['mantra_columnlink3']); + $input['mantra_columnimg4'] = wp_kses_data($input['mantra_columnimg4']); + $input['mantra_columntitle4'] = wp_kses_data($input['mantra_columntitle4']); + $input['mantra_columntext4'] = wp_kses_post($input['mantra_columntext4']); + $input['mantra_columnlink4'] = esc_url_raw($input['mantra_columnlink4']); + + $input['mantra_columnreadmore'] = wp_kses($input['mantra_columnreadmore'],''); + + $input['mantra_fronttext1'] = wp_kses_data($input['mantra_fronttext1']); + $input['mantra_fronttext2'] = wp_kses_data($input['mantra_fronttext2']); + $input['mantra_fpsliderbordercolor'] = wp_kses_data($input['mantra_fpsliderbordercolor']); + $input['mantra_fronttitlecolor'] = wp_kses_data($input['mantra_fronttitlecolor']); + $input['mantra_fronttext3'] = trim( wp_kses_post($input['mantra_fronttext3'])); + $input['mantra_fronttext4'] = trim (wp_kses_post($input['mantra_fronttext4'])); + + $resetDefault = ( ! empty( $input['mantra_defaults']) ? true : false ); + + if ($resetDefault) {$input=$mantra_defaults;} + + return $input; // return validated input + +} + +endif; +?> diff --git a/wp-content/themes/mantra/admin/settings.php b/wp-content/themes/mantra/admin/settings.php new file mode 100644 index 0000000..3f73a4d --- /dev/null +++ b/wp-content/themes/mantra/admin/settings.php @@ -0,0 +1,2108 @@ +".__("Settings for adjusting your blog's layout.", "mantra")."

"; +} + +function cryout_section_presentation_fn() { + +// echo "

".__("Settings for adjusting your blog's layout.", "mantra")."

"; +} + +function cryout_section_header_fn() { + +// echo "

".__("Settings for adjusting your blog's layout.", "mantra")."

"; +} + + +function cryout_section_text_fn() { + //echo "

".__("All text related customization options.", "mantra")."

"; +} + +function cryout_section_graphics_fn() { +// echo "

".__("Settings for hiding or showing different graphics.", "mantra")."

"; +} + +function cryout_section_post_fn() { + //echo "

".__("Settings for hiding or showing different post tags.", "mantra")."

"; +} + +function cryout_section_excerpt_fn() { +// echo "

".__("Settings for post excerpts", "mantra")."

"; +} + +function cryout_section_appereance_fn() { +// echo "

".__("Set text and background colors.", "mantra")."

"; +} + + +function cryout_section_featured_fn() { +// echo "

".__("Insert the addreses for your social media. Leave blank if not the case. +// Please type the whole address (including http:// ) Example : http://www.facebook.com.", "mantra")."

"; +} + +function cryout_section_social_fn() { +// echo "

".__("Insert the addreses for your social media. Leave blank if not the case. +// Please type the whole address (including http:// ) Example : http://www.facebook.com.", "mantra")."

"; +} + +function cryout_section_misc_fn() { + +} + +//////////////////////////////// +//// LAYOUT SETTINGS /////////// +//////////////////////////////// + + +// RADIO-BUTTON - Name: ma_options[side] +function cryout_setting_side_fn() { +global $mantra_options; + $items = array("1c", "2cSr", "2cSl", "3cSr" , "3cSl", "3cSs"); + $layout_text["1c"] = __("One column (no sidebars)","mantra"); + $layout_text["2cSr"] = __("Two columns, sidebar on the right","mantra"); + $layout_text["2cSl"] = __("Two columns, sidebar on the left","mantra"); + $layout_text["3cSr"] = __("Three columns, sidebars on the right","mantra"); + $layout_text["3cSl"] = __("Three columns, sidebars on the left","mantra"); + $layout_text["3cSs"] = __("Three columns, one sidebar on each side","mantra"); + +// For backward compatibility; + if ($mantra_options['mantra_side'] == 'Disable') $mantra_options['mantra_side'] = '1c'; + if ($mantra_options['mantra_side'] == 'Right') $mantra_options['mantra_side'] = '2cSr'; + if ($mantra_options['mantra_side'] == 'Left') $mantra_options['mantra_side'] = '2cSl'; + + + foreach($items as $item) { + + $checkedClass = ($mantra_options['mantra_side']==$item) ? ' checkedClass' : ''; + echo ""; + } + echo "
".__("Choose your layout. Possible options are:
No sidebar, a single sidebar on either left of right, two sidebars on either left or + right and two sidebars on each side.","mantra")."
"; +} + + //SLIDER - Name: ma_options[sidewidth] +function cryout_setting_sidewidth_fn() + { +global $mantra_options; + $items = array ("Absolute" , "Relative"); + $itemsare = array( __("Absolute","mantra"), __("Relative *DEPRECATED","mantra")); + echo __("Dimensions to use: ","mantra")." "; +?> + + +
+ + px + px + ^——— px ———^ + +

+ "; + echo "";?> +

+
+ +
".__("Select the width of your content and sidebar(s). + While the content cannot be less than 500px wide, the sidebar area is at least 220px and no more than 800px.
+ If you went for a 3 column area ( with 2 sidebars) they will each have half the selected width.","mantra")."
"; ?> + + +
+ +
+ + % + % + ^——— % ———^ + +

+ "; + echo "";?> + +

+
+
".__("Select the width of your content and sidebar(s). + These are realtive dimmensions - relative to the user's browser. The total width is a percentage of the browser's width.
+ While the content cannot be less than 40% wide, the sidebar area is at least 20% and no more than 50%.
+ If you went for a 3 column area ( with 2 sidebars) they will each have half the selected width.","mantra")."
"; ?> +
+"; + foreach($items as $id=>$item) { + echo ""; + } + echo ""; + + echo " "; + + echo "
".__("Enable to make Mantra fully responsive. The layout and general sizes of your blog will adjust depending on what device and what resolution it is viewed in.
Do not disable unless you have a good reason to.","mantra")."
"; +} + + + +//////////////////////////////// +//// PRESENTATION SETTINGS ///////////// +//////////////////////////////// + + +//CHECKBOX - Name: ma_options[frontpage] +function cryout_setting_frontpage_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Enable the presentation front-page. This will become your new home page. It has a slider and columns for presentation + text and images.
If you have this enabled but don't see a Presentation page then go to Settings » Reading and make sure you have selected Front Page Displays as Your Latest Posts.","mantra")."
"; + +} + +function cryout_setting_frontposts_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo " "; + echo " ".__('posts','mantra'); + echo "
".__("Enable to display latest posts on the presentation page, below the columns. Sticky posts are always displayed and not counted.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[frontslider] +function cryout_setting_frontslider_fn() { + global $mantra_options; + + + echo "
".__("Slider Dimensions:","mantra")." "; + echo " px (".__("width","mantra").") X "; + echo " px (".__("height","mantra").")"; + echo "".__("The dimensions of your slider. Make sure your images are of the same size.","mantra")."
"; + + echo "
".__("Animation:","mantra")." "; + $items = array ("random" , "fold", "fade", "slideInRight", "slideInLeft", "sliceDown", "sliceDownLeft", "sliceUp", "sliceUpLeft", "sliceUpDown" , "sliceUpDownLeft", "boxRandom", "boxRain", "boxRainReverse", "boxRainGrow" , "boxRainGrowReverse"); + $itemsare = array( __("Random","mantra"), __("Fold","mantra"), __("Fade","mantra"), __("SlideInRight","mantra"), __("SlideInLeft","mantra"), __("SliceDown","mantra"), __("SliceDownLeft","mantra"), __("SliceUp","mantra"), __("SliceUpLeft","mantra"), __("SliceUpDown","mantra"), __("SliceUpDownLeft","mantra"), __("BoxRandom","mantra"), __("BoxRain","mantra"), __("BoxRainReverse","mantra"), __("BoxRainGrow","mantra"), __("BoxRainGrowReverse","mantra")); + echo ""; + echo "".__("The transition effect your slider will have.","mantra")."
"; + + echo "
".__("Border Settings:","mantra")." "; + echo __('Width' ,'mantra').": px / "; + echo __('Color','mantra').': '; + echo '
'; + echo "".__("The width and color of the slider's border.","mantra")."
"; + + echo "
".__("Animation Time:","mantra")." "; + echo " ".__("milliseconds","mantra"); + echo "".__("The time in which the transition animation will take place.","mantra")."
"; + + echo "
".__("Pause Time:","mantra")." "; + echo " ".__("milliseconds","mantra"); + echo "".__("The time in which a slide will be still and visible.","mantra")."
"; + + + echo "
".__("Slider navigation:","mantra")." "; + $items = array ("Numbers" , "Bullets" ,"None"); + $itemsare = array( __("Numbers","mantra"), __("Bullets","mantra"), __("None","mantra")); + echo ""; + echo "".__("Your slider navigation type. Shown under the slider.","mantra")."
"; + + echo "
".__("Slider arrows:","mantra")." "; + $items = array ("Always Visible" , "Visible on Hover" ,"Hidden"); + $itemsare = array( __("Always Visible","mantra"), __("Visible on Hover","mantra"), __("Hidden","mantra")); + echo ""; + echo "".__("The Left and Right arrows on your slider","mantra")."
"; + +?> + + + + + + +".__("Select the content you want to load in your slides:","mantra")." "; + echo ""; + echo "
".__("Your slides' content. Only the image is required, all other fields are optional. Only the slides with an image selected will become acitve and visible in the live slider.","mantra")."
"; + +?> + +
+ +
+ +
+ +
+ +
+ + +
+ +
+ +
+ +
+ +
+ +
+ + ' /> +
+ +
+ Choose the cateogry: ','mantra'); ?> + +
+ + + ' /> + + + +
+
+

+
+
+ + +
+' /> +
+ +
+' /> +
+
+ +
+

+
+
+ + +
+' /> +
+ +
+' /> +
+
+ +
+

+
+
+ + +
+' /> +
+ +
+' /> +
+
+ +
+

+
+
+ + +
+' /> +
+ +
+' /> +
+
+ +
+

+
+
+ + +
+' /> +
+ +
+' /> +
+
+ +
+".__("Number of columns:","mantra")." "; + $items = array ("0" ,"1", "2" , "3" , "4"); + echo ""; + +echo "
".__("Image Height:","mantra")." "; + echo " px
"; +?> +
+' /> +".__("The linked text that appears at the bottom of all the columns. You can delete all text inside if you don't want it.","mantra")."
"; + +?> +
+

+
+
+ + +
+' /> +
+ +
+' /> +
+
+ +
+

+
+
+ + +
+' /> +
+ +
+' /> +
+
+ +
+

+
+
+ + +
Title
+' /> +
+ +
+' /> +
+
+ +
+

+
+
+ + +
+' /> +
+ +
+' /> +
+
+ +

".__("Extra Text","mantra")."

"; + +echo "
Text for the Presentation Page".__("More text for your front page. The top title is above the slider, the second title between the slider and the columns and 2 more rows of text under the columns. + It's all optional so leave any input field empty if it's not required. ","mantra")."
"; + + echo "
".__("Top Title","mantra")."

"; +echo "
".__("Second Title","mantra")."
"; + echo ""; + +echo "
".__("Title color","mantra")."
"; + echo ''; + echo '
'; + +echo "
".__("Bottom Text 1","mantra")."
"; + echo ""; +echo "
".__("Bottom Text 2","mantra")."
"; + echo "
"; + + + + + + +echo "

".__("Hide areas","mantra")."

"; + +echo "
".__("Choose the areas to hide on the first page.","mantra")."
"; + + $items = array( "FronHeader", "FrontMenu", "FrontWidget" , "FrontFooter","FrontBack"); + + $checkedClass0 = ($mantra_options['mantra_fronthideheader']=='1') ? ' checkedClass0' : ''; + $checkedClass1 = ($mantra_options['mantra_fronthidemenu']=='1') ? ' checkedClass1' : ''; + $checkedClass2 = ($mantra_options['mantra_fronthidewidget']=='1') ? ' checkedClass2' : ''; + $checkedClass3 = ($mantra_options['mantra_fronthidefooter']=='1') ? ' checkedClass3' : ''; + $checkedClass4 = ($mantra_options['mantra_fronthideback']=='1') ? ' checkedClass4' : ''; + + echo " "; + + echo " "; + + echo " "; + + echo " "; + + echo " "; + + +echo "
"; + + +} + + +////////////////////////////// +/////HEADER SETTINGS////////// +///////////////////////////// + + //SELECT - Name: ma_options[hheight] +function cryout_setting_hheight_fn() { + global $mantra_options;?> +' /> px +".__("Select the header's height. After saving the settings make sure you reupload a new header image (if you're using one). The header's width will be = ","mantra").$totally."px."; +} + +function cryout_setting_himage_fn() { + global $mantra_options; + $checkedClass = ($mantra_options['mantra_hcenter']=='1') ? ' checkedClass' : ''; + $checkedClass2 = ($mantra_options['mantra_hratio']=='1') ? ' checkedClass' : ''; + echo "".__('Define header image','mantra').""; + echo "
".__("The header image should not be used to display logos.
Enable ratio preservation to force the header image aspect ratio. Keep in mind that short images will become very small on mobile devices.","mantra")."
"; + echo "
"; + + echo " "; + +} + +//CHECKBOX - Name: ma_options[menurounded] +function cryout_setting_menurounded_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Enable or disable the round corners for the main menu items.","mantra")."
"; + +} + +//CHECKBOX - Name: ma_options[linkheader] +function cryout_setting_siteheader_fn() { + global $mantra_options; + $items = array ("Site Title and Description" , "Custom Logo" , "Clickable header image" , "Empty"); + $itemsare = array( __("Site Title and Description","mantra"), __("Custom Logo","mantra"), __("Clickable header image","mantra"), __("Empty","mantra")); + echo ""; + echo "
".__("Choose what to display inside your header area.","mantra")."
"; +} + +// TEXTBOX - Name: ma_options[favicon] +function cryout_setting_logoupload_fn() { + global $mantra_options; + echo '
'; +?> + ' class="imagebox" style="display:;max-height:60px" />
+ +".__("Custom Logo upload. The logo will appear over the heder image if you have used one.","mantra")."
"; ?> +
+ + + +' /> px     +' /> px +".__("Select the top spacing for the header. Use it to better position your site title and description or custom logo inside the header. ","mantra").""; +} + +// TEXTBOX - Name: ma_options[favicon] +function cryout_setting_favicon_fn() { + global $mantra_options; + echo '
'; +?> + ' class="imagebox" width="64" height="64"/>
+ +".__("Limitations: It has to be an image. It should be max 64x64 pixels in dimensions. Recommended file extensions .ico and .png.
Note that some browsers do not display the changed favicon instantly.","mantra")."
"; ?> +
+ + +"; + foreach($items as $item) { + echo ""; +} + echo ""; + echo "
".__("Select the font size you'll use in your blog. Pages, posts and comments will be affected. Buttons, Headers and Side menus will remain the same.","mantra")."
"; +} + + +//SELECT - Name: ma_options[fontfamily] +function cryout_setting_fontfamily_fn() { + global $mantra_options; + global $fontSans, $fontSerif, $fontMono, $fontCursive; + + echo ""; + + echo "
".__("Select the font family you'll use in your blog. All content text will be affected (including menu buttons). ","mantra")."

"; + echo ''; + echo "
".__("Or insert your Google Font below. Please only isert the name of the font.
Ex: Marko One. Go to google fonts for some font inspiration.","mantra")."
"; + + +} + +//SELECT - Name: ma_options[fonttitle] +function cryout_setting_fonttitle_fn() { + global $mantra_options; + global $fontSans, $fontSerif, $fontMono, $fontCursive; + + echo ""; + echo "
".__("Select the font family you want for your titles. It will affect post titles and page titles. Leave 'Default' and the general font you selected will be used.","mantra")."

"; + + echo ''; + echo "
".__("Or insert your Google Font below. Please only isert the name of the font.
Ex: Marko One. Go to google fonts for some font inspiration.","mantra")."
"; + + + + +} + +//SELECT - Name: ma_options[fontside] +function cryout_setting_fontside_fn() { + global $mantra_options; + global $fontSans, $fontSerif, $fontMono, $fontCursive; + + echo ""; + echo "
".__("Select the font family you want your sidebar(s) to have. Text in sidebars will be affected, including any widgets. Leave 'Default' and the general font you selected will be used.","mantra")."

"; + echo ''; + echo "
".__("Or insert your Google Font below. Please only isert the name of the font.
Ex: Marko One. Go to google fonts for some font inspiration.","mantra")."
"; + + + +} + + +//SELECT - Name: ma_options[fontsubheader] +function cryout_setting_fontsubheader_fn() { + global $mantra_options; + global $fontSans, $fontSerif, $fontMono, $fontCursive; + + echo ""; + echo "
".__("Select the font family you want your headings to have (h1 - h6 tags will be affected). Leave 'Default' and the general font you selected will be used.","mantra")."

"; + + echo ''; + echo "
".__("Or insert your Google Font below. Please only isert the name of the font.
Ex: Marko One. Go to google fonts for some font inspiration.","mantra")."
"; + + +} + +//SELECT - Name: ma_options[headfontsize] +function cryout_setting_headfontsize_fn() { + global $mantra_options; + $items = array ("Default" , "14px" , "16px" , "18px" , "20px", "22px" , "24px" , "26px" , "28px" , "30px" , "32px" , "34px" , "36px", "38px" , "40px"); + $itemsare = array( __("Default","mantra") ,"14px" , "16px" , "18px" , "20px", "22px" , "24px" , "26px" , "28px" , "30px" , "32px" , "34px" , "36px", "38px" , "40px"); + echo ""; + echo "
".__("Post Header Font size. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
"; +} + +//SELECT - Name: ma_options[sidefontsize] +function cryout_setting_sidefontsize_fn() { + global $mantra_options; + $items = array ("Default" , "8px" , "9px" , "10px" , "11px", "12px" , "13px" , "14px" , "15px" , "16px" , "17px" , "18px"); + $itemsare = array( __("Default","mantra") , "8px" , "9px" , "10px" , "11px", "12px" , "13px" , "14px" , "15px" , "16px" , "17px" , "18px"); + echo ""; + echo "
".__("Sidebar Font size. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
"; +} + +//SELECT - Name: ma_options[textalign] +function cryout_setting_textalign_fn() { + global $mantra_options; + $items = array ("Default" , "Left" , "Right" , "Justify" , "Center"); + $itemsare = array( __("Default","mantra"), __("Left","mantra"), __("Right","mantra"), __("Justify","mantra"), __("Center","mantra")); + echo ""; + echo "
".__("This overwrites the text alignment in posts and pages. Leave 'Default' for normal settings (alignment will remain as declared in posts, comments etc.).","mantra")."
"; +} + +//SELECT - Name: ma_options[parindent] +function cryout_setting_parmargin_fn() { + global $mantra_options; + $items = array ("0.0em", "0.5em", "1.0em" , "1.1em" , "1.2em" , "1.3em" , "1.4em", "1.5em", "1.6em", "1.7em"); + echo ""; + echo "
".__("Choose the spacing between paragraphs.","mantra")."
"; +} + + +//SELECT - Name: ma_options[parindent] +function cryout_setting_parindent_fn() { + global $mantra_options; + $items = array ("0px" , "5px" , "10px" , "15px" , "20px"); + echo ""; + echo "
".__("Choose the indent for your paragraphs.","mantra")."
"; +} + + +//CHECKBOX - Name: ma_options[headerindent] +function cryout_setting_headerindent_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Disable the default header and title indent (left margin).","mantra")."
"; +} + +//SELECT - Name: ma_options[lineheight] +function cryout_setting_lineheight_fn() { + global $mantra_options; + $items = array ("Default" ,"0.8em" , "0.9em", "1.0em" , "1.1em" , "1.2em" , "1.3em", "1.4em" , "1.5em" , "1.6em" , "1.7em" , "1.8em" , "1.9em" , "2.0em"); + $itemsare = array( __("Default","mantra"),"0.8em" , "0.9em", "1.0em" , "1.1em" , "1.2em" , "1.3em", "1.4em" , "1.5em" , "1.6em" , "1.7em" , "1.8em" , "1.9em" , "2.0em"); + echo ""; + echo "
".__("Text line height. The height between 2 rows of text. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
"; +} + +//SELECT - Name: ma_options[wordspace] +function cryout_setting_wordspace_fn() { + global $mantra_options; + $items = array ("Default" ,"-3px" , "-2px", "-1px" , "0px" , "1px" , "2px", "3px" , "4px" , "5px" , "10px"); + $itemsare = array( __("Default","mantra"),"-3px" , "-2px", "-1px" , "0px" , "1px" , "2px", "3px" , "4px" , "5px" , "10px"); + echo ""; + echo "
".__("The space between words. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
"; +} + +//SELECT - Name: ma_options[letterspace] +function cryout_setting_letterspace_fn() { + global $mantra_options; + $items = array ("Default" ,"-0.05em" , "-0.04em", "-0.03em" , "-0.02em" , "-0.01em" , "0.01em", "0.02em" , "0.03em" , "0.04em" , "0.05em"); + $itemsare = array( __("Default","mantra"),"-0.05em" , "-0.04em", "-0.03em" , "-0.02em" , "-0.01em" , "0.01em", "0.02em" , "0.03em" , "0.04em" , "0.05em"); + echo ""; + echo "
".__("The space between letters. Leave 'Default' for normal settings (size value will be as set in the CSS).","mantra")."
"; +} + + + +//CHECKBOX - Name: ma_options[textshadow] +function cryout_setting_textshadow_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Disable the default text shadow on headers and titles.","mantra")."
"; +} + +//////////////////////////////// +//// APPEREANCE SETTINGS /////// +//////////////////////////////// + +function cryout_setting_sitebackground_fn() { + echo "".__('Define background image','mantra').""; +} // cryout_setting_sitebackground_fn() + + +//TEXT - Name: ma_options[backcolor] +function cryout_setting_backcolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Background color (Default value is 444444).","mantra")."
"; +} + +//TEXT - Name: ma_options[headercolor] +function cryout_setting_headercolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Header background color (Default value is 333333). You can delete all inside text for no background color.","mantra")."
"; +} + +function cryout_setting_contentbg_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Content background color (Default value is FFFFFF). Works best with really light colors.","mantra")."
"; +} + +function cryout_setting_menubg_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Main menu background color (Default value is FAFAFA). Should be the same color as the content bg or something just as light.","mantra")."
"; +} + +function cryout_setting_first_sidebar_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("First sidebar background color (Default is no color for a transparent sidebar).","mantra")."
"; +} + +function cryout_setting_second_sidebar_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Second sidebar background color (Default is no color for a transparent sidebar).","mantra")."
"; +} + +//TEXT - Name: ma_options[prefootercolor] +function cryout_setting_prefootercolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Footer widget-area background color. (Default value is 171717).","mantra")."
"; +} + +//TEXT - Name: ma_options[footercolor] +function cryout_setting_footercolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Footer background color (Default value is 222222).","mantra")."
"; +} + +//TEXT - Name: ma_options[titlecolor] +function cryout_setting_titlecolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Your blog's title color (Default value is 0D85CC).","mantra")."
"; +} + +//TEXT - Name: ma_options[descriptioncolor] +function cryout_setting_descriptioncolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Your blog's description color(Default value is 222222).","mantra")."
"; +} + +//TEXT - Name: ma_options[contentcolor] +function cryout_setting_contentcolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Content Text Color (Default value is 333333).","mantra")."
"; +} + +//TEXT - Name: ma_options[linkscolor] +function cryout_setting_linkscolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Links color (Default value is 0D85CC).","mantra")."
"; +} + +//TEXT - Name: ma_options[hovercolor] +function cryout_setting_hovercolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Links color on mouse over (Default value is 333333).","mantra")."
"; +} + +//TEXT - Name: ma_options[headtextcolor] +function cryout_setting_headtextcolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Post Header Text Color (Default value is 333333).","mantra")."
"; +} + +//TEXT - Name: ma_options[headtexthover] +function cryout_setting_headtexthover_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Post Header Text Color on Mouse over (Default value is 000000).","mantra")."
"; +} + +//TEXT - Name: ma_options[sideheadbackcolor] +function cryout_setting_sideheadbackcolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Sidebar Header Background color (Default value is 444444).","mantra")."
"; + +} + +//TEXT - Name: ma_options[sideheadtextcolor] +function cryout_setting_sideheadtextcolor_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Sidebar Header Text Color(Default value is 2EA5FD).","mantra")."
"; +} + +//TEXT - Name: ma_options[footerheader] +function cryout_setting_footerheader_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Footer Widget Text Color (Default value is 0D85CC).","mantra")."
"; +} + +//TEXT - Name: ma_options[footertext] +function cryout_setting_footertext_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Footer Widget Link Color (Default value is 666666).","mantra")."
"; +} + +//TEXT - Name: ma_options[footerhover] +function cryout_setting_footerhover_fn() { + global $mantra_options; + echo ''; + echo '
'; + echo "
".__("Footer Widget Link Color on Mouse Over (Default value is 888888).","mantra")."
"; +} + + +//////////////////////////////// +//// GRAPHICS SETTINGS ///////// +//////////////////////////////// + + + +//CHECKBOX - Name: ma_options[breadcrumbs] +function cryout_setting_breadcrumbs_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Show breadcrumbs at the top of the content area. Breadcrumbs are a form of navigation that keeps track of your location withtin the site.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[pagination] +function cryout_setting_pagination_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Show numbered pagination. Where there is more than one page, instead of the bottom Older Posts and Newer posts links you have a numbered pagination. ","mantra")."
"; +} + +function cryout_setting_menualign_fn() { + global $mantra_options; + $items = array ("left", "center", "right"); + $itemsare = array( __("Left","mantra"), __("Center","mantra"), __("Right","mantra")); + echo ""; + echo "
".__("Select the desired main menu items alignment. Center option is only valid for single line menus.","mantra")."
"; +} + +//SELECT - Name: ma_options[caption] +function cryout_setting_caption_fn() { +global $mantra_options; + $items = array ("White" , "Light" , "Light Gray" , "Gray" , "Dark Gray" , "Black"); + $itemsare = array( __("White","mantra"), __("Light","mantra"), __("Light Gray","mantra"), __("Gray","mantra"), __("Dark Gray","mantra"), __("Black","mantra")); + echo ""; + echo "
".__("This setting changes the look of your captions. Images that are not inserted through captions will not be affected.","mantra")."
"; +} + +// RADIO-BUTTON - Name: ma_options[image] +function cryout_setting_image_fn() { + global $mantra_options; + $items = array("None", "One", "Two", "Three" , "Four", "Five", "Six", "Seven"); + foreach($items as $item) { + + $checkedClass = ($mantra_options['mantra_image']==$item) ? ' checkedClass' : ''; + + echo " "; + } + + echo "
".__("The border around your inserted images. ","mantra")."
"; +} + +// RADIO-BUTTON - Name: ma_options[pin] +function cryout_setting_pin_fn() { +global $mantra_options; + $items = array("mantra_dot", "Pin1", "Pin2", "Pin3" , "Pin4", "Pin5"); + foreach($items as $item) { + $none=''; + if ($item == 'mantra_dot') { $none='None'; } + $checkedClass = ($mantra_options['mantra_pin']==$item) ? ' checkedClass' : ''; + echo ""; + } + echo "
".__("The image on top of your captions. ","mantra")."
"; +} + +// RADIO-BUTTON - Name: ma_options[sidebullet] +function cryout_setting_sidebullet_fn() { + global $mantra_options; + $items = array("mantra_dot2", "arrow_black", "arrow_white", "bullet_dark" , "bullet_gray", "bullet_light", "square_dark", "square_white", "triangle_dark" , "triangle_gray", "triangle_white"); + foreach($items as $item) { + $none=''; + if ($item == 'mantra_dot2') { $none='None'; } + $checkedClass = ($mantra_options['mantra_sidebullet']==$item) ? ' checkedClass' : ''; + echo ""; + } + echo "
".__("The sidebar list bullets. ","mantra")."
"; +} + + + +//CHECKBOX - Name: ma_options[metaback] +function cryout_setting_metaback_fn() { + global $mantra_options; + $items = array ("Gray" , "White", "None"); + $itemsare = array( __("Gray","mantra"), __("White","mantra"), __("None","mantra")); + echo ""; + echo "
".__("The background for your post-metas area (under your post tiltes). Gray by default.","mantra")."
"; + +} + +//CHECKBOX - Name: ma_options[postseparator] +function cryout_setting_postseparator_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide or show a horizontal rule to separate posts.","mantra")."
"; + +} + +//CHECKBOX - Name: ma_options[contentlist] +function cryout_setting_contentlist_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide or show bullets next to lists that are in your content area (posts, pages etc.).","mantra")."
"; + +} + + +//CHECKBOX - Name: ma_options[pagetitle] +function cryout_setting_pagetitle_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide or show Page titles on any created pages. ","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[categtitle] +function cryout_setting_categtitle_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide or show Page titles on Category Pages. ","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[tables] +function cryout_setting_tables_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Hide table borders and background color.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[comtext] +function cryout_setting_comtext_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide the explanatory text under the comments form. (starts with You may use these HTML tags and attributes:...).","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[comclosed] +function cryout_setting_comclosed_fn() { + global $mantra_options; + $items = array ("Show" , "Hide in posts", "Hide in pages", "Hide everywhere"); + $itemsare = array( __("Show","mantra"), __("Hide in posts","mantra"), __("Hide in pages","mantra"), __("Hide everywhere","mantra")); + echo ""; + echo "
".__("Hide the Comments are closed text that by default shows up on pages or posts with the comments disabled.","mantra")."
"; +} + + +//CHECKBOX - Name: ma_options[comoff] +function cryout_setting_comoff_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide the Comments off text next to posts that have comments disabled.","mantra")."
"; +} + + +//CHECKBOX - Name: ma_options[backtop] +function cryout_setting_backtop_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Enable the Back to Top button. The button appears after scrolling the page down.","mantra")."
"; +} + + +//////////////////////////////// +//// POST SETTINGS ///////////// +//////////////////////////////// + +//CHECKBOX - Name: ma_options[postdate] +function cryout_setting_postcomlink_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide or show the Leave a comment or x Comments next to posts or post excerpts.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[postdate] +function cryout_setting_postdate_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide or show the post date.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[posttime] +function cryout_setting_posttime_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Show the post time with the date. Time will not be visible if the Post Date is hidden.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[postauthor] +function cryout_setting_postauthor_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide or show the post author.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[postcateg] +function cryout_setting_postcateg_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide the post category.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[postbook] +function cryout_setting_postbook_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide the 'Bookmark permalink'.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[postmetas] +function cryout_setting_postmetas_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide the meta bar. All meta info in it will be hidden.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[posttag] +function cryout_setting_posttag_fn() { + global $mantra_options; + $items = array ("Show" , "Hide"); + $itemsare = array( __("Show","mantra"), __("Hide","mantra")); + echo ""; + echo "
".__("Hide the post tags.","mantra")."
"; +} + + +//////////////////////////////// +//// EXCERPT SETTINGS ///////////// +//////////////////////////////// + + +//CHECKBOX - Name: ma_options[excerpthome] +function cryout_setting_excerpthome_fn() { + global $mantra_options; + $items = array ("Excerpt" , "Full Post"); + $itemsare = array( __("Excerpt","mantra"), __("Full Post","mantra")); + echo ""; + echo "
".__("Excerpts on the main page. Only standard posts will be affected. All other post formats (aside, image, chat, quote etc.) have their specific formating.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[excerptsticky] +function cryout_setting_excerptsticky_fn() { + global $mantra_options; + $items = array ("Excerpt" , "Full Post"); + $itemsare = array( __("Excerpt","mantra"), __("Full Post","mantra")); + echo ""; + echo "
".__("Choose if you want the sticky posts on your home page to be visible in full or just the excerpts. ","mantra")."
"; +} + + +//CHECKBOX - Name: ma_options[excerptarchive] +function cryout_setting_excerptarchive_fn() { + global $mantra_options; + $items = array ("Excerpt" , "Full Post"); + $itemsare = array( __("Excerpt","mantra"), __("Full Post","mantra")); + echo ""; + echo "
".__("Excerpts on archive, categroy and search pages. Same as above, only standard posts will be affected.","mantra")."
"; +} + + +// TEXTBOX - Name: ma_options[excerptwords] +function cryout_setting_excerptwords_fn() { + global $mantra_options; + echo ""; + echo "
".__("The number of words an excerpt will have. When that number is reached the post will be interrupted by a Continue reading link that + will take the reader to the full post page.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[magazinelayout] +function cryout_setting_magazinelayout_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Enable the Magazine Layout. This layout applies to pages with posts and shows 2 posts per row.","mantra")."
"; +} + +// TEXTBOX - Name: ma_options[excerptdots] +function cryout_setting_excerptdots_fn() { + global $mantra_options; + echo ""; + echo "
".__("Replaces the three dots ('[...])' that are appended automatically to excerpts.","mantra")."
"; +} + +// TEXTBOX - Name: ma_options[excerptcont] +function cryout_setting_excerptcont_fn() { + global $mantra_options; + echo ""; + echo "
".__("Edit the 'Continue Reading' link added to your post excerpts.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[excerpttags] +function cryout_setting_excerpttags_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".sprintf(__("By default WordPress excerpts remove all HTML tags (%s and all others) and only clean text is left in the excerpt. +Enabling this option allows HTML tags to remain in excerpts so all your default formating will be kept.
Just a warning: If HTML tags are enabled, you have to make sure +they are not left open. So if within your post you have an opened HTML tag but the except ends before that tag closes, the rest of the site will be contained in that HTML tag. -- Leave 'Disable' if unsure --
","mantra"),htmlspecialchars('
, , ') );
+}
+
+
+////////////////////////////////
+/// FEATURED IMAGE SETTINGS ////
+////////////////////////////////
+
+
+//CHECKBOX - Name: ma_options[fpost]
+function cryout_setting_fpost_fn() {
+	global $mantra_options;
+	$items = array ("Enable" , "Disable");
+	$itemsare = array( __("Enable","mantra"), __("Disable","mantra"));
+	echo "";
+	$checkedClass = ($mantra_options['mantra_fpostlink']=='1') ? ' checkedClass' : '';
+
+
+		echo " ";
+
+
+	echo "
".__("Show featured images as thumbnails on posts. The images must be selected for each post in the Featured Image section.","mantra")."
"; +} + +//CHECKBOX - Name: ma_options[fauto] +function cryout_setting_fauto_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Show the first image that you inserted in a post as a thumbnail. If you enable this option, the first image in your post will be used even if you selected a Featured Image in you post.","mantra")."
"; +} + + +//CHECKBOX - Name: ma_options[falign] +function cryout_setting_falign_fn() { + global $mantra_options; + $items = array ("Left" , "Center", "Right"); + $itemsare = array( __("Left","mantra"), __("Center","mantra"), __("Right","mantra")); + echo ""; + echo "
".__("Thumbnail alignment.","mantra")."
"; +} + + +// TEXTBOX - Name: ma_options[fwidth] +function cryout_setting_fsize_fn() { + global $mantra_options; + echo "px (width) X "; + echo "px (height)"; + + $checkedClass = ($mantra_options['mantra_fcrop']=='1') ? ' checkedClass' : ''; + + echo " "; + + + echo "
".__("The size you want the thumbnails to have (in pixels). By default imges will be scaled with aspect ratio kept. Choose to crop the images if you want the exact size.","mantra")."
"; +} + + +//CHECKBOX - Name: ma_options[fheader] +function cryout_setting_fheader_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Show featured images on headers. The header will be replaced with a featured image if you selected it as a Featured Image in the post and + and if it is bigger or at least equal to the current header size.","mantra")."
"; +} + + +//////////////////////// +/// SOCIAL SETTINGS //// +//////////////////////// + +// TEXTBOX - Name: ma_options[social1] + + + +function cryout_setting_social_master($i) { + $cryout_special_keys = array('Mail', 'Skype'); + $cryout_social_small = array ( + '',__('Select your desired Social network from the left dropdown menu and insert your corresponding address in the right input field. (ex: http://www.facebook.com/yourname )','mantra'), + '',__("You can insert up to 5 different social sites and addresses.",'mantra'), + '',__("There are a total of 27 social networks to choose from. ",'mantra'), + '',__("You can leave any number of inputs empty. " ,'mantra'), + '',__("You can choose the same social media any number of times. ",'mantra') + ); + $j=$i+1; + global $mantra_options, $socialNetworks; + echo " » "; + + if (in_array($mantra_options['mantra_social'.$i],$cryout_special_keys)) : + $cryout_current_social = esc_html( $mantra_options['mantra_social'.$j] ); + else : + $cryout_current_social = esc_url( $mantra_options['mantra_social'.$j] ); + endif; + + echo ""; + echo "
".$cryout_social_small[$i]."
"; +} + + + +function cryout_setting_socials1_fn() { + cryout_setting_social_master(1); +} + +function cryout_setting_socials2_fn() { + cryout_setting_social_master(3); +} + +// TEXTBOX - Name: ma_options[social3] +function cryout_setting_socials3_fn() { +cryout_setting_social_master(5); +} + +// TEXTBOX - Name: ma_options[social4] +function cryout_setting_socials4_fn() { +cryout_setting_social_master(7); +} + +// TEXTBOX - Name: ma_options[social5] +function cryout_setting_socials5_fn() { +cryout_setting_social_master(9); +} + +// TEXTBOX - Name: ma_options[socialsdisplay] +function cryout_setting_socialsdisplay_fn() { +global $mantra_options; + $items = array( "Header", "CLeft", "CRight" , "Footer"); + + $checkedClass0 = ($mantra_options['mantra_socialsdisplay0']=='1') ? ' checkedClass0' : ''; + $checkedClass1 = ($mantra_options['mantra_socialsdisplay1']=='1') ? ' checkedClass1' : ''; + $checkedClass2 = ($mantra_options['mantra_socialsdisplay2']=='1') ? ' checkedClass2' : ''; + $checkedClass3 = ($mantra_options['mantra_socialsdisplay3']=='1') ? ' checkedClass3' : ''; + + echo " "; + + echo " "; + + echo " "; + + echo " "; + + + + echo "

".__("Choose the areas where to display the social icons.","mantra")."

"; +} + + +//////////////////////// +/// MISC SETTINGS //// +//////////////////////// + + +// TEXTBOX - Name: ma_options[copyright] +function cryout_setting_copyright_fn() { + global $mantra_options; + echo ""; + echo "
".__("Insert custom text or HTML code that will appear last in you footer.
You can use HTML to insert links, images and special characters like © .","mantra")."
"; +} + + +// TEXTBOX - Name: ma_options[customcss] +function cryout_setting_customcss_fn() { + global $mantra_options; + echo ""; + echo "
".__("Insert your custom CSS here. Any CSS declarations made here will overwrite Mantra's (even the custom options specified right here in the Mantra Settings page).
Your custom CSS will be preserved when updating the theme.
The <style> tags are not needed.","mantra")."
"; +} + +// TEXTBOX - Name: ma_options[customjs] +function cryout_setting_customjs_fn() { + global $mantra_options; + echo ""; + echo "
".__("Insert your custom Javascript code here. (Google Analytics and any other forms of Analytic software).
The <script> tags are not needed.","mantra")."
"; +} +function cryout_setting_seo_fn() { + global $mantra_options; + $items = array ("Enable" , "Disable"); + $itemsare = array( __("Enable","mantra"), __("Disable","mantra")); + echo ""; + echo "
".__("Enable Mantra's Search Engine Optimization. This is enabled by default and should only be disabled if you are using a SEO plugin.","mantra")."
"; + echo "
".__("All title tags are handled automatically by Mantra.","mantra").""; + + echo "
"; + echo "".__("Homepage Meta Description","mantra").""; + echo ""; + echo "".__("This is unique and you should fill this in. Describe your site the best you can and try not to go over 160 characters.","mantra").""; + echo "
"; + + echo "
"; + echo " Meta Descriptions for all other pages: "; + $moreitems = array ("Auto" , "Manual"); + $moreitemsare = array( __("Auto","mantra"), __("Manual","mantra")); + echo ""; + echo "".__("Auto - Mantra will automatically add post expcerpts to 'page' and 'post' meta descriptions.
+ Manual - you will enable a new custom field in your post/page admin section where you can type the exact description you want for every post and page.
+ For category pages, the actual category descriptions will be used. Go to Posts > Categories and you can fill in a description for every category you have.","mantra")."
"; + echo "
"; + + echo "
"; + echo "".__("Post Author","mantra").""; + $authors=wp_list_authors (array("echo"=>false,"html"=> false)); + $authors_array = explode ("," , $authors); + array_unshift($authors_array,__("Do not use","mantra")); + echo ""; + + + echo "".__("If you want to show an author in the meta tags.","mantra").""; + echo "
"; + +} +?> \ No newline at end of file diff --git a/wp-content/themes/mantra/archive.php b/wp-content/themes/mantra/archive.php new file mode 100644 index 0000000..bd14c3e --- /dev/null +++ b/wp-content/themes/mantra/archive.php @@ -0,0 +1,76 @@ + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+

+
+ +
+

+ +
+
+ + + + +
+ +
+ + + \ No newline at end of file diff --git a/wp-content/themes/mantra/attachment.php b/wp-content/themes/mantra/attachment.php new file mode 100644 index 0000000..6d2d3f7 --- /dev/null +++ b/wp-content/themes/mantra/attachment.php @@ -0,0 +1,119 @@ + + +
+
+ + + + post_parent ) ) : ?> +

« %s', get_the_title( $post->post_parent ) ); + ?>

+ + +
> +

+ + + +
+
+ $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); + foreach ( $attachments as $k => $attachment ) { + if ( $attachment->ID == $post->ID ) + break; + } + $k++; + // If there is more than 1 image attachment in a gallery + if ( count( $attachments ) > 1 ) { + if ( isset( $attachments[ $k ] ) ) + // get the URL of the next image attachment + $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); + else + // or get the URL of the first image attachment + $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); + } else { + // or, if there's only 1 image attachment, get the URL of the image + $next_attachment_url = wp_get_attachment_url(); + } +?> +

ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height. + ?>

+ + + + + +
+
post_excerpt ) ) the_excerpt(); ?>
+ +→' ); ?> + '' ) ); ?> + +
+ +
+ + ', '' ); ?> +
+
+ + + + + +
+ +
+ + diff --git a/wp-content/themes/mantra/author.php b/wp-content/themes/mantra/author.php new file mode 100644 index 0000000..393a429 --- /dev/null +++ b/wp-content/themes/mantra/author.php @@ -0,0 +1,92 @@ + + +
+
+ + + + + + + + + + + + + +
+
+ +
+
+

+ +
+
+ + + + + + + + + + + + + +
+
+

+
+ +
+

+ +
+
+ + + + +
+ +
+ + + \ No newline at end of file diff --git a/wp-content/themes/mantra/category.php b/wp-content/themes/mantra/category.php new file mode 100644 index 0000000..efe03b6 --- /dev/null +++ b/wp-content/themes/mantra/category.php @@ -0,0 +1,67 @@ + + +
+
+ + + + +
' ); + ?> + + + + + + + + + + + + + + + +
+
+

+
+ +
+

+ +
+
+ + + + + + +
+ + diff --git a/wp-content/themes/mantra/comments.php b/wp-content/themes/mantra/comments.php new file mode 100644 index 0000000..4459314 --- /dev/null +++ b/wp-content/themes/mantra/comments.php @@ -0,0 +1,53 @@ + + +
+ +

+
+ + + + + + +
    + + + +
+ + + + + + diff --git a/wp-content/themes/mantra/content-aside.php b/wp-content/themes/mantra/content-aside.php new file mode 100644 index 0000000..22ecf32 --- /dev/null +++ b/wp-content/themes/mantra/content-aside.php @@ -0,0 +1,51 @@ + + +
> +
+
+

+
+ + + +
+ +
+ +
+ +
+ →', 'mantra' ) ); ?> + '' ) ); ?> +
+ +
+ + + + ', '' ); ?> +
+
diff --git a/wp-content/themes/mantra/content-chat.php b/wp-content/themes/mantra/content-chat.php new file mode 100644 index 0000000..5b629ab --- /dev/null +++ b/wp-content/themes/mantra/content-chat.php @@ -0,0 +1,52 @@ + + +
> +
+
+

+
+ + +
+ +
+ +
+ +
+ →', 'mantra' ) ); ?> + '' ) ); ?> +
+ +
+ + + + + + ', '' ); ?> +
+
diff --git a/wp-content/themes/mantra/content-frontpage.php b/wp-content/themes/mantra/content-frontpage.php new file mode 100644 index 0000000..b4784ab --- /dev/null +++ b/wp-content/themes/mantra/content-frontpage.php @@ -0,0 +1,37 @@ + +
+
+ + + $mantra_options['mantra_frontpostscount']) ); ?> + have_posts() ) : $the_query->the_post(); ?> + + + + + + + +
+
+

+
+ +
+

+ +
+
+ +
+ +
\ No newline at end of file diff --git a/wp-content/themes/mantra/content-gallery.php b/wp-content/themes/mantra/content-gallery.php new file mode 100644 index 0000000..0404679 --- /dev/null +++ b/wp-content/themes/mantra/content-gallery.php @@ -0,0 +1,78 @@ + $value) { ${"$key"} = $value ; } +?> + +
> +
+
+

+
+ + +
+ +
+ +
+ +
+ $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); + if ( $images ) : + $total_images = count( $images ); + $image = array_shift( $images ); + $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' );*/ + $images = mantra_get_gallery_images(); + if ( $images ) : $total_images = count( $images ); + $image = array_shift( $images ); + + if (is_sticky() && $mantra_excerptsticky == "Full Post") $sticky_test=1; else $sticky_test=0; + if ($mantra_excerpthome != "Full Post" && $sticky_test==0): + /*?> + + + */ + mantra_set_featured_thumb(); + ?> +

%2$s photo.', 'This gallery contains %2$s photos.', $total_images, 'mantra' ), + 'href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'mantra' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', + number_format_i18n( $total_images ) + ); ?>

+ + + '' ) ); ?> +
+ +
+ + + + + ', '' ); ?> +
+
diff --git a/wp-content/themes/mantra/content-image.php b/wp-content/themes/mantra/content-image.php new file mode 100644 index 0000000..86bf5ca --- /dev/null +++ b/wp-content/themes/mantra/content-image.php @@ -0,0 +1,45 @@ + +
> +
+
+

+ +
+ + +
+ +
+ →', 'mantra' ) ); ?> + '' ) ); ?> +
+ +
+ + + + + ', '' ); ?> +
+
diff --git a/wp-content/themes/mantra/content-link.php b/wp-content/themes/mantra/content-link.php new file mode 100644 index 0000000..4b309f2 --- /dev/null +++ b/wp-content/themes/mantra/content-link.php @@ -0,0 +1,52 @@ + + +
> +
+
+

+
+ + +
+ +
+ +
+ +
+ →', 'mantra' ) ); ?> + '' ) ); ?> +
+ +
+ + + + + + ', '' ); ?> +
+
diff --git a/wp-content/themes/mantra/content-page.php b/wp-content/themes/mantra/content-page.php new file mode 100644 index 0000000..85eaaae --- /dev/null +++ b/wp-content/themes/mantra/content-page.php @@ -0,0 +1,30 @@ + + +
> + +

+ +

+ + +
+ + '' ) ); ?> + ', '' ); ?> +
+
+ + +

+ + + diff --git a/wp-content/themes/mantra/content-quote.php b/wp-content/themes/mantra/content-quote.php new file mode 100644 index 0000000..102f291 --- /dev/null +++ b/wp-content/themes/mantra/content-quote.php @@ -0,0 +1,49 @@ + + +
> +
+
+

+
+ + +
+ +
+ +
+ +
+ →', 'mantra' ) ); ?> + '' ) ); ?> +
+ +
+ + + + + ', '' ); ?> +
+
diff --git a/wp-content/themes/mantra/content-status.php b/wp-content/themes/mantra/content-status.php new file mode 100644 index 0000000..45ee3f0 --- /dev/null +++ b/wp-content/themes/mantra/content-status.php @@ -0,0 +1,51 @@ + + +
> +
+
+

+
+ +
+ +
+ +
+ +
+
+ +
+ +
→', 'mantra' ) ); ?>
+ '' ) ); ?> +
+ +
+ + + + ', '' ); ?> +
+
diff --git a/wp-content/themes/mantra/content.php b/wp-content/themes/mantra/content.php new file mode 100644 index 0000000..b23e5ef --- /dev/null +++ b/wp-content/themes/mantra/content.php @@ -0,0 +1,83 @@ + $value) { + ${"$key"} = $value ; +} + +?> + +
> +
+
+

+
+ + + + + +
+ + + +
+ + +
+ +
+ + + '' ) ); ?> +
+ + + + + +
+ + +
+ +
+ + '' ) ); ?> +
+ +
+ + + + ', '' ); ?> +
+ +
+ + + \ No newline at end of file diff --git a/wp-content/themes/mantra/editor-style-rtl.css b/wp-content/themes/mantra/editor-style-rtl.css new file mode 100644 index 0000000..7dd138e --- /dev/null +++ b/wp-content/themes/mantra/editor-style-rtl.css @@ -0,0 +1,56 @@ +/* +Theme Name: Mantra +*/ +/* +Used to style the TinyMCE editor. +*/ +html .mceContentBody{ + direction:rtl; + unicode-bidi:embed; + float:right; +} +* { + font-family: Arial, Tahoma, sans-serif; +} +/* Text elements */ +ul { + margin: 0 -18px 18px 0; +} +ol { + margin: 0 -18px 18px 0; +} +dd { + margin-right: 0; +} +blockquote { + font-style: normal; +} +table { + text-align: right; + margin: 0 0 24px -1px; +} +html .mceContentBody{ + direction:rtl; + unicode-bidi:embed; + float:right; +} +* { + font-family: Arial, Tahoma, sans-serif; +} +/* Text elements */ +ul { + margin: 0 -18px 18px 0; +} +ol { + margin: 0 -18px 18px 0; +} +dd { + margin-right: 0; +} +blockquote { + font-style: normal; +} +table { + text-align: right; + margin: 0 0 24px -1px; +} \ No newline at end of file diff --git a/wp-content/themes/mantra/editor-style.css b/wp-content/themes/mantra/editor-style.css new file mode 100644 index 0000000..7e0cfe6 --- /dev/null +++ b/wp-content/themes/mantra/editor-style.css @@ -0,0 +1,287 @@ +/* +Theme Name: Mantra +*/ +/* +Used to style the TinyMCE editor. +*/ + +* { + font-family: Georgia, "Bitstream Charter", serif; + color: #444; + line-height: 1.5; +} +p, +dl, +td, +th, +ul, +ol, +blockquote { + font-size: 16px; +} +tr th, +thead th, +label, +tr th, +thead th { + font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; +} +pre { + font-family: "Courier 10 Pitch", Courier, monospace; +} +code, code var { + font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; +} +body, input, textarea { + font-size: 12px; + line-height: 18px; +} +hr { + background-color: #e7e7e7; + border:0; + height: 1px; + margin-bottom: 18px; + clear:both; +} +/* Text elements */ +p { + margin-bottom: 18px; +} +ul { + list-style: square; + margin: 0 0 18px 1.5em; +} +ol { + list-style: decimal; + margin: 0 0 18px 1.5em; +} +ol ol { + list-style:upper-alpha; +} +ol ol ol { + list-style:lower-roman; +} +ol ol ol ol { + list-style:lower-alpha; +} +ul ul, +ol ol, +ul ol, +ol ul { + margin-bottom:0; +} +dl { + margin:0 0 24px 0; +} +dt { + font-weight: bold; +} +dd { + margin-bottom: 18px; +} +strong { + font-weight: bold; + color: #000; +} +cite, +em, +i { + font-style: italic; + border: none; +} +big { + font-size: 131.25%; +} +ins { + background: #ffffcc; + border: none; + color: #333; +} +del { + text-decoration: line-through; + color: #555; +} +blockquote { + font-style: italic; + padding: 0 3em; +} +blockquote cite, +blockquote em, +blockquote i { + font-style: normal; +} +pre { + background: #f7f7f7; + color: #222; + line-height: 18px; + margin-bottom: 18px; + padding: 1.5em; +} +abbr, +acronym { + border-bottom: 1px dotted #666; + cursor: help; +} +ins { + text-decoration: none; +} +sup, +sub { + height: 0; + line-height: 1; + vertical-align: baseline; + position: relative; + font-size: 10px; +} +sup { + bottom: 1ex; +} +sub { + top: .5ex; +} +a:link { + color:#0066cc; +} +a:visited { + color:#743399; +} +a:active, +a:hover { + color: #ff4b33; +} +p, +ul, +ol, +dd, +pre, +hr { + margin-bottom:24px; +} +ul ul, +ol ol, +ul ol, +ol ul { + margin-bottom:0; +} +pre, +kbd, +tt, +var { + font-size: 15px; + line-height: 21px; +} +code { + font-size: 13px; +} +strong, +b, +dt, +th { + color: #000; +} +h1, +h2, +h3, +h4, +h5, +h6 { + color: #000; + margin: 0 0 20px 0; + line-height: 1.5em; + font-weight: normal; +} +h1 { + font-size: 2.4em; +} +h2 { + font-size: 1.8em; +} +h3 { + font-size: 1.4em; +} +h4 { + font-size: 1.2em; +} +h5 { + font-size: 1em; +} +h6 { + font-size: 0.9em; +} +table { + border: 1px solid #e7e7e7 !important; + text-align: left; + margin: 0 -1px 24px 0; + width: 100%; + border-collapse: collapse; + border-spacing: 0; +} +tr th, +thead th { + border: none !important; + color: #888; + font-size: 12px; + font-weight: bold; + line-height: 18px; + padding: 9px 24px; +} +tr td { + border: none !important; + border-top: 1px solid #e7e7e7 !important; + padding: 6px 24px; +} + + +img { + margin: 0; + height:auto; +} +.alignleft, +img.alignleft { + display: inline; + float: left; + margin-right: 24px; + margin-top: 4px; +} +.alignright, +img.alignright { + display: inline; + float: right; + margin-left: 24px; + margin-top: 4px; +} +.aligncenter, +img.aligncenter { + clear: both; + display: block; + margin-left: auto; + margin-right: auto; +} +img.alignleft, +img.alignright, +img.aligncenter { + margin-bottom: 12px; +} +.wp-caption { + border: none; + background: #f1f1f1; + color: #888; + font-size: 12px; + line-height: 18px; + text-align: center; + margin-bottom: 20px; + padding: 4px; + -moz-border-radius: 0; + -khtml-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0; +} +.wp-caption img { + margin: 5px; +} +.wp-caption p.wp-caption-text { + margin: 0 0 4px; +} +.wp-smiley { + margin:0; +} \ No newline at end of file diff --git a/wp-content/themes/mantra/footer.php b/wp-content/themes/mantra/footer.php new file mode 100644 index 0000000..90b877c --- /dev/null +++ b/wp-content/themes/mantra/footer.php @@ -0,0 +1,38 @@ +
+ + + + + +
+
+ + + +
+ +
+ + + +
+ +
+ + + + + + + diff --git a/wp-content/themes/mantra/functions.php b/wp-content/themes/mantra/functions.php new file mode 100644 index 0000000..19301e7 --- /dev/null +++ b/wp-content/themes/mantra/functions.php @@ -0,0 +1,25 @@ + \ No newline at end of file diff --git a/wp-content/themes/mantra/header.php b/wp-content/themes/mantra/header.php new file mode 100644 index 0000000..abbe539 --- /dev/null +++ b/wp-content/themes/mantra/header.php @@ -0,0 +1,59 @@ + section and everything up till
+ * + * @package Cryout Creations + * @subpackage mantra + * @since mantra 0.5 + */ + ?> +> + + + + + + + +> + + + +
+ + + + +
+
+ + +
+ + + \ No newline at end of file diff --git a/wp-content/themes/mantra/images/back2top.png b/wp-content/themes/mantra/images/back2top.png new file mode 100644 index 0000000..64e246f Binary files /dev/null and b/wp-content/themes/mantra/images/back2top.png differ diff --git a/wp-content/themes/mantra/images/bullet.png b/wp-content/themes/mantra/images/bullet.png new file mode 100644 index 0000000..39c7df9 Binary files /dev/null and b/wp-content/themes/mantra/images/bullet.png differ diff --git a/wp-content/themes/mantra/images/bullets/arrow_black.png b/wp-content/themes/mantra/images/bullets/arrow_black.png new file mode 100644 index 0000000..8c06cc0 Binary files /dev/null and b/wp-content/themes/mantra/images/bullets/arrow_black.png differ diff --git a/wp-content/themes/mantra/images/bullets/arrow_white.png b/wp-content/themes/mantra/images/bullets/arrow_white.png new file mode 100644 index 0000000..e5ded70 Binary files /dev/null and b/wp-content/themes/mantra/images/bullets/arrow_white.png differ diff --git a/wp-content/themes/mantra/images/bullets/bullet_dark.png b/wp-content/themes/mantra/images/bullets/bullet_dark.png new file mode 100644 index 0000000..53b959d Binary files /dev/null and b/wp-content/themes/mantra/images/bullets/bullet_dark.png differ diff --git a/wp-content/themes/mantra/images/bullets/bullet_gray.png b/wp-content/themes/mantra/images/bullets/bullet_gray.png new file mode 100644 index 0000000..f71c645 Binary files /dev/null and b/wp-content/themes/mantra/images/bullets/bullet_gray.png differ diff --git a/wp-content/themes/mantra/images/bullets/bullet_light.png b/wp-content/themes/mantra/images/bullets/bullet_light.png new file mode 100644 index 0000000..b41a602 Binary files /dev/null and b/wp-content/themes/mantra/images/bullets/bullet_light.png differ diff --git a/wp-content/themes/mantra/images/bullets/mantra_dot2.png b/wp-content/themes/mantra/images/bullets/mantra_dot2.png new file mode 100644 index 0000000..4d20a00 Binary files /dev/null and b/wp-content/themes/mantra/images/bullets/mantra_dot2.png differ diff --git a/wp-content/themes/mantra/images/bullets/square_dark.png b/wp-content/themes/mantra/images/bullets/square_dark.png new file mode 100644 index 0000000..471f894 Binary files /dev/null and b/wp-content/themes/mantra/images/bullets/square_dark.png differ diff --git a/wp-content/themes/mantra/images/bullets/square_white.png b/wp-content/themes/mantra/images/bullets/square_white.png new file mode 100644 index 0000000..c489c51 Binary files /dev/null and b/wp-content/themes/mantra/images/bullets/square_white.png differ diff --git a/wp-content/themes/mantra/images/bullets/triangle_dark.png b/wp-content/themes/mantra/images/bullets/triangle_dark.png new file mode 100644 index 0000000..b4eb725 Binary files /dev/null and b/wp-content/themes/mantra/images/bullets/triangle_dark.png differ diff --git a/wp-content/themes/mantra/images/bullets/triangle_gray.png b/wp-content/themes/mantra/images/bullets/triangle_gray.png new file mode 100644 index 0000000..d0c8edd Binary files /dev/null and b/wp-content/themes/mantra/images/bullets/triangle_gray.png differ diff --git a/wp-content/themes/mantra/images/bullets/triangle_white.png b/wp-content/themes/mantra/images/bullets/triangle_white.png new file mode 100644 index 0000000..2276d38 Binary files /dev/null and b/wp-content/themes/mantra/images/bullets/triangle_white.png differ diff --git a/wp-content/themes/mantra/images/headers/mantra.png b/wp-content/themes/mantra/images/headers/mantra.png new file mode 100644 index 0000000..45e9bb0 Binary files /dev/null and b/wp-content/themes/mantra/images/headers/mantra.png differ diff --git a/wp-content/themes/mantra/images/headers/mantra_thumbnail.png b/wp-content/themes/mantra/images/headers/mantra_thumbnail.png new file mode 100644 index 0000000..c234299 Binary files /dev/null and b/wp-content/themes/mantra/images/headers/mantra_thumbnail.png differ diff --git a/wp-content/themes/mantra/images/icon-back.png b/wp-content/themes/mantra/images/icon-back.png new file mode 100644 index 0000000..74621e5 Binary files /dev/null and b/wp-content/themes/mantra/images/icon-back.png differ diff --git a/wp-content/themes/mantra/images/icon-featured.png b/wp-content/themes/mantra/images/icon-featured.png new file mode 100644 index 0000000..2b137b8 Binary files /dev/null and b/wp-content/themes/mantra/images/icon-featured.png differ diff --git a/wp-content/themes/mantra/images/icon-tooltip.png b/wp-content/themes/mantra/images/icon-tooltip.png new file mode 100644 index 0000000..f925d33 Binary files /dev/null and b/wp-content/themes/mantra/images/icon-tooltip.png differ diff --git a/wp-content/themes/mantra/images/nivoslider/arrows.png b/wp-content/themes/mantra/images/nivoslider/arrows.png new file mode 100644 index 0000000..8f562bd Binary files /dev/null and b/wp-content/themes/mantra/images/nivoslider/arrows.png differ diff --git a/wp-content/themes/mantra/images/nivoslider/bullets.png b/wp-content/themes/mantra/images/nivoslider/bullets.png new file mode 100644 index 0000000..a84c9c0 Binary files /dev/null and b/wp-content/themes/mantra/images/nivoslider/bullets.png differ diff --git a/wp-content/themes/mantra/images/nivoslider/loading.gif b/wp-content/themes/mantra/images/nivoslider/loading.gif new file mode 100644 index 0000000..1560b64 Binary files /dev/null and b/wp-content/themes/mantra/images/nivoslider/loading.gif differ diff --git a/wp-content/themes/mantra/images/pins/Pin1.png b/wp-content/themes/mantra/images/pins/Pin1.png new file mode 100644 index 0000000..a08ae4c Binary files /dev/null and b/wp-content/themes/mantra/images/pins/Pin1.png differ diff --git a/wp-content/themes/mantra/images/pins/Pin2.png b/wp-content/themes/mantra/images/pins/Pin2.png new file mode 100644 index 0000000..3de309a Binary files /dev/null and b/wp-content/themes/mantra/images/pins/Pin2.png differ diff --git a/wp-content/themes/mantra/images/pins/Pin3.png b/wp-content/themes/mantra/images/pins/Pin3.png new file mode 100644 index 0000000..43fc6b6 Binary files /dev/null and b/wp-content/themes/mantra/images/pins/Pin3.png differ diff --git a/wp-content/themes/mantra/images/pins/Pin4.png b/wp-content/themes/mantra/images/pins/Pin4.png new file mode 100644 index 0000000..c6d9280 Binary files /dev/null and b/wp-content/themes/mantra/images/pins/Pin4.png differ diff --git a/wp-content/themes/mantra/images/pins/Pin5.png b/wp-content/themes/mantra/images/pins/Pin5.png new file mode 100644 index 0000000..8927b6b Binary files /dev/null and b/wp-content/themes/mantra/images/pins/Pin5.png differ diff --git a/wp-content/themes/mantra/images/pins/mantra_dot.png b/wp-content/themes/mantra/images/pins/mantra_dot.png new file mode 100644 index 0000000..4d20a00 Binary files /dev/null and b/wp-content/themes/mantra/images/pins/mantra_dot.png differ diff --git a/wp-content/themes/mantra/images/post-formats/brackets.png b/wp-content/themes/mantra/images/post-formats/brackets.png new file mode 100644 index 0000000..95c8a3a Binary files /dev/null and b/wp-content/themes/mantra/images/post-formats/brackets.png differ diff --git a/wp-content/themes/mantra/images/post-formats/brackets2.png b/wp-content/themes/mantra/images/post-formats/brackets2.png new file mode 100644 index 0000000..130783c Binary files /dev/null and b/wp-content/themes/mantra/images/post-formats/brackets2.png differ diff --git a/wp-content/themes/mantra/images/post-formats/bubble.png b/wp-content/themes/mantra/images/post-formats/bubble.png new file mode 100644 index 0000000..0d1a1a5 Binary files /dev/null and b/wp-content/themes/mantra/images/post-formats/bubble.png differ diff --git a/wp-content/themes/mantra/images/post-formats/link.png b/wp-content/themes/mantra/images/post-formats/link.png new file mode 100644 index 0000000..189e463 Binary files /dev/null and b/wp-content/themes/mantra/images/post-formats/link.png differ diff --git a/wp-content/themes/mantra/images/post-formats/picture.png b/wp-content/themes/mantra/images/post-formats/picture.png new file mode 100644 index 0000000..ae07e73 Binary files /dev/null and b/wp-content/themes/mantra/images/post-formats/picture.png differ diff --git a/wp-content/themes/mantra/images/post-formats/quotes.png b/wp-content/themes/mantra/images/post-formats/quotes.png new file mode 100644 index 0000000..4fa4e7f Binary files /dev/null and b/wp-content/themes/mantra/images/post-formats/quotes.png differ diff --git a/wp-content/themes/mantra/images/slider/mantra-column.jpg b/wp-content/themes/mantra/images/slider/mantra-column.jpg new file mode 100644 index 0000000..dfbf186 Binary files /dev/null and b/wp-content/themes/mantra/images/slider/mantra-column.jpg differ diff --git a/wp-content/themes/mantra/images/slider/mantra-slide1.jpg b/wp-content/themes/mantra/images/slider/mantra-slide1.jpg new file mode 100644 index 0000000..76d82d6 Binary files /dev/null and b/wp-content/themes/mantra/images/slider/mantra-slide1.jpg differ diff --git a/wp-content/themes/mantra/images/slider/mantra-slide2.jpg b/wp-content/themes/mantra/images/slider/mantra-slide2.jpg new file mode 100644 index 0000000..5c1c800 Binary files /dev/null and b/wp-content/themes/mantra/images/slider/mantra-slide2.jpg differ diff --git a/wp-content/themes/mantra/images/socials/Amazon.png b/wp-content/themes/mantra/images/socials/Amazon.png new file mode 100644 index 0000000..f6a79c6 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Amazon.png differ diff --git a/wp-content/themes/mantra/images/socials/Dailymotion.png b/wp-content/themes/mantra/images/socials/Dailymotion.png new file mode 100644 index 0000000..cb6a302 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Dailymotion.png differ diff --git a/wp-content/themes/mantra/images/socials/Delicious.png b/wp-content/themes/mantra/images/socials/Delicious.png new file mode 100644 index 0000000..271aa3a Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Delicious.png differ diff --git a/wp-content/themes/mantra/images/socials/DeviantArt.png b/wp-content/themes/mantra/images/socials/DeviantArt.png new file mode 100644 index 0000000..43ac929 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/DeviantArt.png differ diff --git a/wp-content/themes/mantra/images/socials/Digg.png b/wp-content/themes/mantra/images/socials/Digg.png new file mode 100644 index 0000000..d8a6956 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Digg.png differ diff --git a/wp-content/themes/mantra/images/socials/Etsy.png b/wp-content/themes/mantra/images/socials/Etsy.png new file mode 100644 index 0000000..57e610b Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Etsy.png differ diff --git a/wp-content/themes/mantra/images/socials/Facebook.png b/wp-content/themes/mantra/images/socials/Facebook.png new file mode 100644 index 0000000..947a6af Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Facebook.png differ diff --git a/wp-content/themes/mantra/images/socials/Flickr.png b/wp-content/themes/mantra/images/socials/Flickr.png new file mode 100644 index 0000000..f955aee Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Flickr.png differ diff --git a/wp-content/themes/mantra/images/socials/GoodReads.png b/wp-content/themes/mantra/images/socials/GoodReads.png new file mode 100644 index 0000000..a889d38 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/GoodReads.png differ diff --git a/wp-content/themes/mantra/images/socials/Google.png b/wp-content/themes/mantra/images/socials/Google.png new file mode 100644 index 0000000..fb3a9ba Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Google.png differ diff --git a/wp-content/themes/mantra/images/socials/GooglePlus.png b/wp-content/themes/mantra/images/socials/GooglePlus.png new file mode 100644 index 0000000..cc45e40 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/GooglePlus.png differ diff --git a/wp-content/themes/mantra/images/socials/IMDb.png b/wp-content/themes/mantra/images/socials/IMDb.png new file mode 100644 index 0000000..858a802 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/IMDb.png differ diff --git a/wp-content/themes/mantra/images/socials/Instagram.png b/wp-content/themes/mantra/images/socials/Instagram.png new file mode 100644 index 0000000..b203e1b Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Instagram.png differ diff --git a/wp-content/themes/mantra/images/socials/LastFM.png b/wp-content/themes/mantra/images/socials/LastFM.png new file mode 100644 index 0000000..5e0ab2b Binary files /dev/null and b/wp-content/themes/mantra/images/socials/LastFM.png differ diff --git a/wp-content/themes/mantra/images/socials/LinkedIn.png b/wp-content/themes/mantra/images/socials/LinkedIn.png new file mode 100644 index 0000000..a4e20d1 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/LinkedIn.png differ diff --git a/wp-content/themes/mantra/images/socials/Mail.png b/wp-content/themes/mantra/images/socials/Mail.png new file mode 100644 index 0000000..8dfa3eb Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Mail.png differ diff --git a/wp-content/themes/mantra/images/socials/MySpace.png b/wp-content/themes/mantra/images/socials/MySpace.png new file mode 100644 index 0000000..93e457f Binary files /dev/null and b/wp-content/themes/mantra/images/socials/MySpace.png differ diff --git a/wp-content/themes/mantra/images/socials/Picasa.png b/wp-content/themes/mantra/images/socials/Picasa.png new file mode 100644 index 0000000..9d2bc3b Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Picasa.png differ diff --git a/wp-content/themes/mantra/images/socials/Pinterest.png b/wp-content/themes/mantra/images/socials/Pinterest.png new file mode 100644 index 0000000..cd0294a Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Pinterest.png differ diff --git a/wp-content/themes/mantra/images/socials/RSS.png b/wp-content/themes/mantra/images/socials/RSS.png new file mode 100644 index 0000000..beae9d0 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/RSS.png differ diff --git a/wp-content/themes/mantra/images/socials/Reddit.png b/wp-content/themes/mantra/images/socials/Reddit.png new file mode 100644 index 0000000..45f6874 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Reddit.png differ diff --git a/wp-content/themes/mantra/images/socials/Skype.png b/wp-content/themes/mantra/images/socials/Skype.png new file mode 100644 index 0000000..edf9284 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Skype.png differ diff --git a/wp-content/themes/mantra/images/socials/SoundCloud.png b/wp-content/themes/mantra/images/socials/SoundCloud.png new file mode 100644 index 0000000..645fc26 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/SoundCloud.png differ diff --git a/wp-content/themes/mantra/images/socials/Steam.png b/wp-content/themes/mantra/images/socials/Steam.png new file mode 100644 index 0000000..39421b8 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Steam.png differ diff --git a/wp-content/themes/mantra/images/socials/StumbleUpon.png b/wp-content/themes/mantra/images/socials/StumbleUpon.png new file mode 100644 index 0000000..356448a Binary files /dev/null and b/wp-content/themes/mantra/images/socials/StumbleUpon.png differ diff --git a/wp-content/themes/mantra/images/socials/Technorati.png b/wp-content/themes/mantra/images/socials/Technorati.png new file mode 100644 index 0000000..8b45773 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Technorati.png differ diff --git a/wp-content/themes/mantra/images/socials/Tumblr.png b/wp-content/themes/mantra/images/socials/Tumblr.png new file mode 100644 index 0000000..e6e7f4d Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Tumblr.png differ diff --git a/wp-content/themes/mantra/images/socials/Twitch.png b/wp-content/themes/mantra/images/socials/Twitch.png new file mode 100644 index 0000000..9c641a4 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Twitch.png differ diff --git a/wp-content/themes/mantra/images/socials/Twitter.png b/wp-content/themes/mantra/images/socials/Twitter.png new file mode 100644 index 0000000..41efa99 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Twitter.png differ diff --git a/wp-content/themes/mantra/images/socials/VK.png b/wp-content/themes/mantra/images/socials/VK.png new file mode 100644 index 0000000..9341f73 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/VK.png differ diff --git a/wp-content/themes/mantra/images/socials/Vimeo.png b/wp-content/themes/mantra/images/socials/Vimeo.png new file mode 100644 index 0000000..99396a5 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Vimeo.png differ diff --git a/wp-content/themes/mantra/images/socials/WordPress.png b/wp-content/themes/mantra/images/socials/WordPress.png new file mode 100644 index 0000000..60ced4f Binary files /dev/null and b/wp-content/themes/mantra/images/socials/WordPress.png differ diff --git a/wp-content/themes/mantra/images/socials/Xing.png b/wp-content/themes/mantra/images/socials/Xing.png new file mode 100644 index 0000000..62d0959 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Xing.png differ diff --git a/wp-content/themes/mantra/images/socials/Yahoo.png b/wp-content/themes/mantra/images/socials/Yahoo.png new file mode 100644 index 0000000..b73ddae Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Yahoo.png differ diff --git a/wp-content/themes/mantra/images/socials/Yelp.png b/wp-content/themes/mantra/images/socials/Yelp.png new file mode 100644 index 0000000..d23d828 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/Yelp.png differ diff --git a/wp-content/themes/mantra/images/socials/YouTube.png b/wp-content/themes/mantra/images/socials/YouTube.png new file mode 100644 index 0000000..2f50f36 Binary files /dev/null and b/wp-content/themes/mantra/images/socials/YouTube.png differ diff --git a/wp-content/themes/mantra/includes/theme-comments.php b/wp-content/themes/mantra/includes/theme-comments.php new file mode 100644 index 0000000..d53532a --- /dev/null +++ b/wp-content/themes/mantra/includes/theme-comments.php @@ -0,0 +1,143 @@ +comment_type ) : + case '' : + ?> +
  • id="li-comment-"> +
    +
    + '.__('says:', 'mantra' ).'', sprintf( '%s', get_comment_author_link() ) ); ?> + + + +
    + comment_approved == '0' ) : ?> + +
    + + + + +
    + +
    + $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> +
    +
    + + +
  • +

    + 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' ), __( '1 Comment', 'mantra' ), __( '% Comments', 'mantra' ) )); +} +endif; + +/** + * The number of comments title + */ +function mantra_number_comments() { ?> +

    + ' . get_the_title() . '' ); ?> +

    + 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> + + '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() ) : ?> +

    + \ No newline at end of file diff --git a/wp-content/themes/mantra/includes/theme-frontpage.php b/wp-content/themes/mantra/includes/theme-frontpage.php new file mode 100644 index 0000000..1a09322 --- /dev/null +++ b/wp-content/themes/mantra/includes/theme-frontpage.php @@ -0,0 +1,237 @@ + $value) { ${"$key"} = $value; } + ob_start(); + echo '\n"; + $mantra_presentation_page_styling = ob_get_contents(); + ob_end_clean(); + return $mantra_presentation_page_styling; +} // mantra_frontpage_css() +endif; + +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 ; +} +?> + + + +
    +

    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' : + // Transofm 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; + +} + // Variables i and j for matching slider number with caption number +$i=0; $j=0;?> +
    +
    +
    slider-navhover"> + + have_posts() ) while ( $custom_query->have_posts()) : $custom_query->the_post(); + + $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),'slider'); + $i++; ?> + + + +
    + have_posts() ) while ( $custom_query->have_posts() ) : $custom_query->the_post(); + $j++; ?> + +
    + ","");the_excerpt(); ?> +
    + + + +
    + + +
    +
    +
    slider-navhover"> + title="#caption" /> +
    + +
    + '.${"mantra_slidertitle$i"}.''.${"mantra_slidertext$i"} ?> +
    + +
    +

    +
    +
    +

    + +
    + +
    +

    + +
    + +
    +

    + +
    + +
    +

    + +
    + +
    +
    +
    + diff --git a/wp-content/themes/mantra/includes/theme-functions.php b/wp-content/themes/mantra/includes/theme-functions.php new file mode 100644 index 0000000..e19b5c5 --- /dev/null +++ b/wp-content/themes/mantra/includes/theme-functions.php @@ -0,0 +1,475 @@ + $value) { + ${"$key"} = $value ; +} +?> + + + $value) { ${"$key"} = $value; } + + // 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]; + endif; + + if (isset($himgsrc) && ($himgsrc != '')) : echo ''; endif; + +?> + +
    + + +'; + $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; + echo '<'.$heading_tag.' id="site-title">'; + echo ' '.get_bloginfo( 'name' ).' '; + echo ''; + echo '
    '.get_bloginfo( 'description' ).'
    '; + break; + + case 'Clickable header image' : + echo '' ; + break; + + case 'Custom Logo' : + if (isset($mantra_logoupload) && ($mantra_logoupload != '')) : echo '
    '; endif; + break; + + case 'Empty' : + // nothing to do here + break; + } + + if ($mantra_socialsdisplay0): mantra_header_socials(); endif; + echo '
  • '; + +} // 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 +*/ + function mantra_header_socials() { + mantra_set_social_icons('sheader'); + } + + function mantra_smenul_socials() { + mantra_set_social_icons('smenul'); + } + + function mantra_smenur_socials() { + mantra_set_social_icons('smenur'); + } + + 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 ( ! function_exists( 'mantra_set_social_icons' ) ) : +/** + * Social icons function + */ +function mantra_set_social_icons($id) { + $cryout_special_keys = array('Mail', 'Skype'); + global $mantra_options; + foreach ($mantra_options as $key => $value) { + ${"$key"} = $value ; + } + echo '
    '; + for ($i=1; $i<=9; $i+=2) { + $j=$i+1; + if ( ${"mantra_social$j"} ) { + 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; ?> + + '; +} +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 '
    '; + } + + +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 ''; +} + +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) + { + echo "
    \n"; + } +} +endif; + +function mantra_nextpage_links($defaults) { +$args = array( +'link_before' => '', +'link_after' => '', +); +$r = wp_parse_args($args, $defaults); +return $r; +} +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 ; +} ?> +
    + + | & + +
    + $value) { + ${"$key"} = $value ; + } + echo ''; +} + + +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'); + + +/** +* Retrieves the IDs for images in a gallery. +* @since mantra 2.1.1 +* @return array List of image IDs from the post gallery. +*/ +function mantra_get_gallery_images() { + $images = array(); + + if ( function_exists( 'get_post_galleries' ) ) { + $galleries = get_post_galleries( get_the_ID(), false ); + if ( isset( $galleries[0]['ids'] ) ) + $images = explode( ',', $galleries[0]['ids'] ); + } else { + $pattern = get_shortcode_regex(); + preg_match( "/$pattern/s", get_the_content(), $match ); + $atts = shortcode_parse_atts( $match[3] ); + if ( isset( $atts['ids'] ) ) + $images = explode( ',', $atts['ids'] ); + } + + if ( ! $images ) { + $images = get_posts( array( + 'fields' => 'ids', + 'numberposts' => 999, + 'order' => 'ASC', + 'orderby' => 'menu_order', + 'post_mime_type' => 'image', + 'post_parent' => get_the_ID(), + 'post_type' => 'attachment', + ) ); + } + + return $images; +} // mantra_get_gallery_images() + + +/** +* Checks the browser agent string for mobile ids and adds "mobile" class to body if true +* @since mantra 2.2.3 +* @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; +} + +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("",0); + endwhile; else: endif; + + // Reset Query + wp_reset_query(); + + return $testVar; +} +endif; +?> \ No newline at end of file diff --git a/wp-content/themes/mantra/includes/theme-hooks.php b/wp-content/themes/mantra/includes/theme-hooks.php new file mode 100644 index 0000000..14ca3bb --- /dev/null +++ b/wp-content/themes/mantra/includes/theme-hooks.php @@ -0,0 +1,159 @@ + diff --git a/wp-content/themes/mantra/includes/theme-loop.php b/wp-content/themes/mantra/includes/theme-loop.php new file mode 100644 index 0000000..77debce --- /dev/null +++ b/wp-content/themes/mantra/includes/theme-loop.php @@ -0,0 +1,306 @@ +' .$mantra_excerptcont.' ' . ''; +} + +/** + * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and mantra_continue_reading_link(). + * + * To override this in a child theme, remove the filter and add your own + * function tied to the excerpt_more filter hook. + * + * @since mantra 0.5 + * @return string An ellipsis + */ +function mantra_auto_excerpt_more( $more ) { + global $mantra_excerptdots; + return $mantra_excerptdots. mantra_continue_reading_link(); +} +add_filter( 'excerpt_more', 'mantra_auto_excerpt_more' ); + + +/** + * Adds a pretty "Continue Reading" link to custom post excerpts. + * + * To override this link in a child theme, remove the filter and add your own + * function tied to the get_the_excerpt filter hook. + * + * @since mantra 0.5 + * @return string Excerpt with a pretty "Continue Reading" link + */ +function mantra_custom_excerpt_more( $output ) { + if ( has_excerpt() && ! is_attachment() ) { + $output .= mantra_continue_reading_link(); + } + return $output; +} + +add_filter( 'get_the_excerpt', 'mantra_custom_excerpt_more' ); + +/** + * Adds a "Continue Reading" link to post excerpts created using the tag. + * + * To override this link in a child theme, remove the filter and add your own + * function tied to the the_content_more_link filter hook. + * + * @since mantra 2.1 + * @return string Excerpt with a pretty "Continue Reading" link + */ +function mantra_more_link($more_link, $more_link_text) { + global $mantra_excerptcont; + $new_link_text = $mantra_excerptcont; + if (preg_match("/custom=(.*)/",$more_link_text,$m) ) { + $new_link_text = $m[1]; + }; + $more_link = str_replace($more_link_text, $new_link_text.' ', $more_link); + $more_link = str_replace('more-link', 'continue-reading-link', $more_link); + return $more_link; +} +add_filter('the_content_more_link', 'mantra_more_link',10,2); + +/** + * Allows post excerpts to contain HTML tags + * @since mantra 1.8.7 + * @return string Excerpt with most HTML tags intact + */ + +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(']]>', ']]>', $text); + + $allowed_tags = ',,,,
      ,
    • ,,

      ,

      ,

      ,

      ,

      ,
      ,
      ,,,,
      ,

      '; + $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. ' ' .$mantra_excerptcont.' ' . ''; + } 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 inline styles printed when the gallery shortcode is used. + * + * Galleries are styled by the theme in Mantra's style.css. + * + * @since mantra 0.5 + * @return string The gallery style filter, with the styles themselves removed. + */ +function mantra_remove_gallery_css( $css ) { + return preg_replace( "##s", '', $css ); +} +add_filter( 'gallery_style', 'mantra_remove_gallery_css' ); + + +if ( ! function_exists( 'mantra_posted_on' ) ) : +/** + * Prints HTML with meta information for the current post—date/time and author. + * + * @since mantra 0.5 + */ +function mantra_posted_on() { +global $mantra_options; +foreach ($mantra_options as $key => $value) { + ${"$key"} = $value ; +} + +// If date is hidden don't give it a value +$date_string=' %3$s | '; +if ($mantra_postdate == "Hide") $date_string=''; + +// If author is hidden don't give it a value +$author_string = sprintf( ''.__( 'By ','mantra'). ' %3$s |', + get_author_posts_url( get_the_author_meta( 'ID' ) ), + sprintf( esc_attr__( 'View all posts by %s', 'mantra' ), get_the_author() ), + get_the_author() + ) ; +if ($mantra_postauthor == "Hide") $author_string=''; + +// Print the meta data + printf( '  %4$s '.$date_string.' %2$s ', + 'meta-prep meta-prep-author', + get_the_category_list( ', ' ), + sprintf( ' - %2$s', + get_permalink(), + esc_attr( get_the_time() ), + get_the_date() + ), $author_string + + ); +} +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' ); + +function mantra_remove_category_tag( $text ) { +$text = str_replace('rel="category tag"', 'rel="tag"', $text); return $text; +} + + +if ( ! function_exists( 'mantra_posted_in' ) ) : +/** + * Prints HTML with meta information for the current post (category, tags and permalink). + * + * @since mantra 0.5 + */ +function mantra_posted_in() { + // Retrieves tag list of current post, separated by commas. + $tag_list = get_the_tag_list( '', ', ' ); + if ( $tag_list ) { + $posted_in = ''.__( 'Tagged','mantra').' %2$s.'.__(' Bookmark the ','mantra').' '.__('permalink','mantra').'.'; + } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { + $posted_in = ''.__( 'Bookmark the ','mantra'). ' '.__('permalink','mantra').'. '; + } else { + $posted_in = ''.__( 'Bookmark the ','mantra'). ' '.__('permalink','mantra').'. '; + } + // Prints the string, replacing the placeholders. + printf( + $posted_in, + get_the_category_list( ', ' ), + $tag_list, + get_permalink(), + the_title_attribute( 'echo=0' ) + ); +} +endif; + +if ( ! function_exists( 'mantra_content_nav' ) ) : +/** + * Display navigation to next/previous pages when applicable + */ +function mantra_content_nav( $nav_id ) { + global $wp_query; + + if ( $wp_query->max_num_pages > 1 ) : ?> +

      + 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]; + + } + } +} + +if ( ! function_exists( 'mantra_set_featured_thumb' ) ) : +/** + * Adds a post thumbnail and if one doesn't exist the first image from the post is used. + */ + +function mantra_set_featured_thumb() { + global $mantra_options; + foreach ($mantra_options as $key => $value) { + ${"$key"} = $value ; +} +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 '' ; + + } +endif; // mantra_set_featured_thumb + + + +if ($mantra_fpost=='Enable' && $mantra_fpostlink) add_filter( 'post_thumbnail_html', 'mantra_thumbnail_link', 10, 3 ); + +/** + * The thumbnail gets a link to the post's page + */ + +function mantra_thumbnail_link( $html, $post_id, $post_image_id ) { + + $html = '' . $html . ''; + return $html; + +} +?> \ No newline at end of file diff --git a/wp-content/themes/mantra/includes/theme-seo.php b/wp-content/themes/mantra/includes/theme-seo.php new file mode 100644 index 0000000..09b3540 --- /dev/null +++ b/wp-content/themes/mantra/includes/theme-seo.php @@ -0,0 +1,194 @@ +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 ) { + // Append Site Description to title + $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; + if ( $paged >= 2 || $page >= 2 ) + $filtered_title .= ' | ' . sprintf( __( 'Page %s', 'mantra' ), max( $paged, $page ) ); + + // Return the modified title + return $filtered_title; +} + +function mantra_filter_wp_title_rss($title) { +return ' '; +} +add_filter( 'wp_title', 'mantra_filter_wp_title' ); +add_filter('wp_title_rss','mantra_filter_wp_title_rss'); + + /** + * Meta description + */ +function mantra_seo_description() { + global $mantra_options; + foreach ($mantra_options as $key => $value) { + ${"$key"} = $value ;} + + if ( (is_home() && $mantra_seo_home_desc) || (is_page_template('template-blog.php') && $mantra_seo_home_desc) ) { + echo PHP_EOL.''; } + else if ((is_single() || is_page()) && !is_404()) { + if ($mantra_seo_gen_desc =="Auto") { + global $post; + $content_post = get_post($post->ID); + $content = strip_shortcodes($content_post->post_content); + $content = preg_replace(array('/\s{2,}/', '/[\t\n]/'), ' ', $content); + $content = strip_tags($content); + $content = str_replace('"','',$content); + $content = preg_replace('/((\w+\W+\'*){'.(33).'}(\w+))(.*)/', '${1}', $content); + } + else if ($mantra_seo_gen_desc=="Manual") { + global $post,$mantra_meta_box_description; + $content = get_post_meta($post->ID,'SEOdescription_value',true); + } + + echo PHP_EOL.''; } + else if (is_category() && category_description() != "") { + echo PHP_EOL.''; } + +} + + /** + * Meta author + */ +function mantra_seo_name() { + global $mantra_options; + foreach ($mantra_options as $key => $value) { + ${"$key"} = $value ;} +echo ''; +} + +/** + * Meta Title + */ +function mantra_seo_title() { +echo ''; +} + + +// Mantra main seo function +function mantra_seo_generator() { +global $mantra_options; +foreach ($mantra_options as $key => $value) { +${"$key"} = $value ;} +add_action ('cryout_seo_hook','mantra_seo_title'); +add_action ('cryout_seo_hook','mantra_seo_description'); + +if($mantra_seo_author && $mantra_seo_author!="Do not use") + add_action ('cryout_seo_hook','mantra_seo_name'); +} + +if($mantra_seo=="Enable") mantra_seo_generator() ; + else add_action ('cryout_seo_hook','mantra_seo_title',0); + +// Mantra favicon +function mantra_fav_icon() { +global $mantra_options; +foreach ($mantra_options as $key => $value) { +${"$key"} = $value ;} + echo ''; + echo ''; + } + +if ($mantra_options['mantra_favicon']) add_action ('cryout_header_hook','mantra_fav_icon'); + + +/* +Plugin Name: Custom Write Panel +Plugin URI: http://wefunction.com/2008/10/tutorial-create-custom-write-panels-in-wordpress +Description: Allows custom fields to be added to the WordPress Post Page +Version: 1.0 +Author: Spencer +Author URI: http://wefunction.com +/* ----------------------------------------------*/ + +$mantra_meta_box_description = +array( +"image" => array( +"name" => "SEOdescription", +"std" => "", +"title" => "Input the SEO description for this post/page here (about 160 characters): ", +"description" => "This description is for SEO purposes only. It will be used as a meta in your HTML header. It won't be vislbe anywhere else.
      More SEO options in the Mantra Settings Page >> Misc Options >> SEO.") +); + +function mantra_meta_box_description() { +global $post, $mantra_meta_box_description; + +foreach($mantra_meta_box_description as $meta_box) { +$meta_box_value = get_post_meta($post->ID, $meta_box['name'].'_value', true); + +if($meta_box_value == "") +$meta_box_value = $meta_box['std']; + +echo ''; + +echo '

      '.$meta_box['title'].'

      '; + +echo '
      '; + +echo '

      '; +} +} + +function mantra_create_meta_box() { +global $theme_name; +add_meta_box( 'new-meta-boxes', 'Mantra SEO - Description', 'mantra_meta_box_description', 'post', 'normal', 'high' ); +add_meta_box( 'new-meta-boxes', 'Mantra SEO - Description', 'mantra_meta_box_description', 'page', 'normal', 'high' ); +} + +function mantra_save_postdata( $post_id ) { +global $post, $mantra_meta_box_description; + +foreach($mantra_meta_box_description as $meta_box) { +// Verify +if ( !wp_verify_nonce( $_POST[$meta_box['name'].'_noncename'], plugin_basename(__FILE__) )) { +return $post_id; +} + +if ( 'page' == $_POST['post_type'] ) { +if ( !current_user_can( 'edit_page', $post_id )) +return $post_id; +} else { +if ( !current_user_can( 'edit_post', $post_id )) +return $post_id; +} + +$data = $_POST[$meta_box['name'].'_value']; + +if(get_post_meta($post_id, $meta_box['name'].'_value') == "") +add_post_meta($post_id, $meta_box['name'].'_value', $data, true); +elseif($data != get_post_meta($post_id, $meta_box['name'].'_value', true)) +update_post_meta($post_id, $meta_box['name'].'_value', $data); +elseif($data == "") +delete_post_meta($post_id, $meta_box['name'].'_value', get_post_meta($post_id, $meta_box['name'].'_value', true)); +} +} +if ($mantra_seo_gen_desc=="Manual") { + add_action('admin_menu', 'mantra_create_meta_box'); + add_action('save_post', 'mantra_save_postdata'); +} +?> \ No newline at end of file diff --git a/wp-content/themes/mantra/includes/theme-setup.php b/wp-content/themes/mantra/includes/theme-setup.php new file mode 100644 index 0000000..3502621 --- /dev/null +++ b/wp-content/themes/mantra/includes/theme-setup.php @@ -0,0 +1,432 @@ + __( 'Primary Navigation', 'mantra' ), + 'top' => __( 'Top Navigation', 'mantra' ), + 'footer' => __( 'Footer Navigation', 'mantra' ), + ) ); + + // 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; + define( 'HEADER_IMAGE_WIDTH', apply_filters( 'mantra_header_image_width', $mantra_totalSize ) ); + define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'mantra_header_image_height', $mantra_hheight) ); + //set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); + add_image_size('header',HEADER_IMAGE_WIDTH,HEADER_IMAGE_HEIGHT,true); + + 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_theme_support( 'custom-header' ); + + // ... and thus ends the changeable header business. + + +// Backwards compatibility with pre 3.4 versions for custom background and header + + // 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', + // translators: header image description + 'description' => __( 'mantra', 'mantra' ) + ), + ) ); +} +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'); +endif; + +function mantra_render_title() { ?> + <?php wp_title( '', true, 'right' ); ?> +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 ) { + // Append Site Description to title + $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; + if ( $paged >= 2 || $page >= 2 ) + $filtered_title .= ' | ' . sprintf( __( 'Page %s', 'mantra' ), max( $paged, $page ) ); + + // Return the modified title + return $filtered_title; +} + +function nirvana_filter_wp_title_rss2($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() { +?> + + '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 */ ?> + + '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); + + +/** + * Register widgetized areas, including two sidebars and four widget-ready columns in the footer. + * + * To override mantra_widgets_init() in a child theme, remove the action hook and add your own + * function tied to the init hook. + * + * @since mantra 0.5 + * @uses register_sidebar + */ +function mantra_widgets_init() { + // Area 1, located at the top of the sidebar. + register_sidebar( array( + 'name' => __( 'Primary Widget Area - Sidebar 1', 'mantra' ), + 'id' => 'primary-widget-area', + 'description' => __( 'Primary widget area - Sidebar 1', 'mantra' ), + 'before_widget' => '
    • ', + 'after_widget' => '
    • ', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); + + // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. + register_sidebar( array( + 'name' => __( 'Secondary Widget Area - Sidebar 1', 'mantra' ), + 'id' => 'secondary-widget-area', + 'description' => __( 'Secondary widget area - Sidebar 1', 'mantra' ), + 'before_widget' => '
    • ', + 'after_widget' => '
    • ', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); + + // Area 3 for the second sidebar. Empty be default + register_sidebar( array( + 'name' => __( 'Third Widget Area - Sidebar 2', 'mantra' ), + 'id' => 'third-widget-area', + 'description' => __( 'Third widget area - Sidebar 2', 'mantra' ), + 'before_widget' => '
    • ', + 'after_widget' => '
    • ', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); + + // Area 4, located below the Third Widget Area in the second sidebar. Empty by default. + register_sidebar( array( + 'name' => __( 'Fourth Widget Area - Sidebar 2', 'mantra' ), + 'id' => 'fourth-widget-area', + 'description' => __( 'Fourth widget area - Sidebar 2', 'mantra' ), + 'before_widget' => '
    • ', + 'after_widget' => '
    • ', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); + + // Area 5, located in the footer. Empty by default. + register_sidebar( array( + 'name' => __( 'First Footer Widget Area', 'mantra' ), + 'id' => 'first-footer-widget-area', + 'description' => __( 'First footer widget area', 'mantra' ), + 'before_widget' => '
    • ', + 'after_widget' => '
    • ', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); + + // Area 6, located in the footer. Empty by default. + register_sidebar( array( + 'name' => __( 'Second Footer Widget Area', 'mantra' ), + 'id' => 'second-footer-widget-area', + 'description' => __( 'Second footer widget area', 'mantra' ), + 'before_widget' => '
    • ', + 'after_widget' => '
    • ', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); + + // Area 7, located in the footer. Empty by default. + register_sidebar( array( + 'name' => __( 'Third Footer Widget Area', 'mantra' ), + 'id' => 'third-footer-widget-area', + 'description' => __( 'The third footer widget area', 'mantra' ), + 'before_widget' => '
    • ', + 'after_widget' => '
    • ', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); + + // Area 8, located in the footer. Empty by default. + register_sidebar( array( + 'name' => __( 'Fourth Footer Widget Area', 'mantra' ), + 'id' => 'fourth-footer-widget-area', + 'description' => __( 'The fourth footer widget area', 'mantra' ), + 'before_widget' => '
    • ', + 'after_widget' => '
    • ', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); + + // Area 9, located above the content area. Empty by default. + register_sidebar( array( + 'name' => __( 'Above content Widget Area', 'mantra' ), + 'id' => 'above-content-widget-area', + 'description' => __( 'Above content Widget Area', 'mantra' ), + 'before_widget' => '
    • ', + 'after_widget' => '
    • ', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); + + // Area 10, located below the content area. Empty by default. + register_sidebar( array( + 'name' => __( 'Below Content Widget Area', 'mantra' ), + 'id' => 'below-content-widget-area', + 'description' => __( 'Below Content Widget Area', 'mantra' ), + 'before_widget' => '
    • ', + 'after_widget' => '
    • ', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); +} +/** Register sidebars by running mantra_widgets_init() on the widgets_init hook. */ +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; + + if ( is_active_sidebar( 'first-footer-widget-area' ) ) + $count++; + + if ( is_active_sidebar( 'second-footer-widget-area' ) ) + $count++; + + if ( is_active_sidebar( 'third-footer-widget-area' ) ) + $count++; + + if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) + $count++; + + $class = ''; + + switch ( $count ) { + case '1': + $class = 'one'; + break; + case '2': + $class = 'two'; + break; + case '3': + $class = 'three'; + break; + case '4': + $class = 'four'; + break; + } + + if ( $class ) + echo 'class="footer' . $class . '"'; +} + + + function mantra_above_widget() { + if ( is_active_sidebar( 'above-content-widget-area' )) { ?> +
        + +
      + +
        + +
      + \ No newline at end of file diff --git a/wp-content/themes/mantra/includes/theme-styles.php b/wp-content/themes/mantra/includes/theme-styles.php new file mode 100644 index 0000000..430c5a0 --- /dev/null +++ b/wp-content/themes/mantra/includes/theme-styles.php @@ -0,0 +1,133 @@ +'; +else return ''; +} + + +function mantra_register_styles() { + global $mantra_options; + foreach ($mantra_options as $key => $value) { ${"$key"} = $value ;} + + wp_register_style( 'mantras', get_stylesheet_uri() ); + + if($mantra_mobile=="Enable") { wp_register_style( 'mantra-mobile', get_template_directory_uri() . '/style-mobile.css' );} + + 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' ); + + +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'); + + +} + +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' ); + + + + +// Scripts loading and hook into wp_enque_scripts + +function mantra_scripts_method() { +global $mantra_options; +foreach ($mantra_options as $key => $value) { + ${"$key"} = $value ; + } + +// 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') ); + 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')); + wp_enqueue_script('cryout-nivoSlider'); + } + } + + + /* We add some JavaScript to pages with the comment form + * to support sites with threaded comments (when in use). + */ + 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 ' + +'; +} +add_action('wp_head', 'mantra_ie_pie', 10); + +?> \ No newline at end of file diff --git a/wp-content/themes/mantra/index.php b/wp-content/themes/mantra/index.php new file mode 100644 index 0000000..4cd42e7 --- /dev/null +++ b/wp-content/themes/mantra/index.php @@ -0,0 +1,57 @@ + +
      + +
      + + + + + + + + + + + + + + + + +
      +
      +

      +
      + +
      +

      + +
      +
      + + + +
      + +
      + \ No newline at end of file diff --git a/wp-content/themes/mantra/js/PIE/PIE.htc b/wp-content/themes/mantra/js/PIE/PIE.htc new file mode 100644 index 0000000..ca3b547 --- /dev/null +++ b/wp-content/themes/mantra/js/PIE/PIE.htc @@ -0,0 +1,96 @@ + + + + + + + + + diff --git a/wp-content/themes/mantra/js/PIE/PIE.js b/wp-content/themes/mantra/js/PIE/PIE.js new file mode 100644 index 0000000..72165b2 --- /dev/null +++ b/wp-content/themes/mantra/js/PIE/PIE.js @@ -0,0 +1,88 @@ +/* +PIE: CSS3 rendering for IE +Version 1.0.0 +http://css3pie.com +Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2. +*/ +(function(){ +var doc = document;var f=window.PIE; +if(!f){f=window.PIE={F:"-pie-",nb:"Pie",La:"pie_",Ac:{TD:1,TH:1},cc:{TABLE:1,THEAD:1,TBODY:1,TFOOT:1,TR:1,INPUT:1,TEXTAREA:1,SELECT:1,OPTION:1,IMG:1,HR:1},fc:{A:1,INPUT:1,TEXTAREA:1,SELECT:1,BUTTON:1},Gd:{submit:1,button:1,reset:1},aa:function(){}};try{doc.execCommand("BackgroundImageCache",false,true)}catch(aa){}for(var ba=4,Z=doc.createElement("div"),ca=Z.getElementsByTagName("i"),ga;Z.innerHTML=" + + + + + + + + diff --git a/wp-content/themes/mantra/js/PIE/PIE_uncompressed.js b/wp-content/themes/mantra/js/PIE/PIE_uncompressed.js new file mode 100644 index 0000000..c29cc7d --- /dev/null +++ b/wp-content/themes/mantra/js/PIE/PIE_uncompressed.js @@ -0,0 +1,4474 @@ +/* +PIE: CSS3 rendering for IE +Version 1.0.0 +http://css3pie.com +Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2. +*/ +(function(){ +var doc = document;var PIE = window['PIE']; + +if( !PIE ) { + PIE = window['PIE'] = { + CSS_PREFIX: '-pie-', + STYLE_PREFIX: 'Pie', + CLASS_PREFIX: 'pie_', + tableCellTags: { + 'TD': 1, + 'TH': 1 + }, + + /** + * Lookup table of elements which cannot take custom children. + */ + childlessElements: { + 'TABLE':1, + 'THEAD':1, + 'TBODY':1, + 'TFOOT':1, + 'TR':1, + 'INPUT':1, + 'TEXTAREA':1, + 'SELECT':1, + 'OPTION':1, + 'IMG':1, + 'HR':1 + }, + + /** + * Elements that can receive user focus + */ + focusableElements: { + 'A':1, + 'INPUT':1, + 'TEXTAREA':1, + 'SELECT':1, + 'BUTTON':1 + }, + + /** + * Values of the type attribute for input elements displayed as buttons + */ + inputButtonTypes: { + 'submit':1, + 'button':1, + 'reset':1 + }, + + emptyFn: function() {} + }; + + // Force the background cache to be used. No reason it shouldn't be. + try { + doc.execCommand( 'BackgroundImageCache', false, true ); + } catch(e) {} + + (function() { + /* + * IE version detection approach by James Padolsey, with modifications -- from + * http://james.padolsey.com/javascript/detect-ie-in-js-using-conditional-comments/ + */ + var ieVersion = 4, + div = doc.createElement('div'), + all = div.getElementsByTagName('i'), + shape; + while ( + div.innerHTML = '', + all[0] + ) {} + PIE.ieVersion = ieVersion; + + // Detect IE6 + if( ieVersion === 6 ) { + // IE6 can't access properties with leading dash, but can without it. + PIE.CSS_PREFIX = PIE.CSS_PREFIX.replace( /^-/, '' ); + } + + PIE.ieDocMode = doc.documentMode || PIE.ieVersion; + + // Detect VML support (a small number of IE installs don't have a working VML engine) + div.innerHTML = ''; + shape = div.firstChild; + shape.style['behavior'] = 'url(#default#VML)'; + PIE.supportsVML = (typeof shape['adj'] === "object"); + }()); +/** + * Utility functions + */ +(function() { + var vmlCreatorDoc, + idNum = 0, + imageSizes = {}; + + + PIE.Util = { + + /** + * To create a VML element, it must be created by a Document which has the VML + * namespace set. Unfortunately, if you try to add the namespace programatically + * into the main document, you will get an "Unspecified error" when trying to + * access document.namespaces before the document is finished loading. To get + * around this, we create a DocumentFragment, which in IE land is apparently a + * full-fledged Document. It allows adding namespaces immediately, so we add the + * namespace there and then have it create the VML element. + * @param {string} tag The tag name for the VML element + * @return {Element} The new VML element + */ + createVmlElement: function( tag ) { + var vmlPrefix = 'css3vml'; + if( !vmlCreatorDoc ) { + vmlCreatorDoc = doc.createDocumentFragment(); + vmlCreatorDoc.namespaces.add( vmlPrefix, 'urn:schemas-microsoft-com:vml' ); + } + return vmlCreatorDoc.createElement( vmlPrefix + ':' + tag ); + }, + + + /** + * Generate and return a unique ID for a given object. The generated ID is stored + * as a property of the object for future reuse. + * @param {Object} obj + */ + getUID: function( obj ) { + return obj && obj[ '_pieId' ] || ( obj[ '_pieId' ] = '_' + ++idNum ); + }, + + + /** + * Simple utility for merging objects + * @param {Object} obj1 The main object into which all others will be merged + * @param {...Object} var_args Other objects which will be merged into the first, in order + */ + merge: function( obj1 ) { + var i, len, p, objN, args = arguments; + for( i = 1, len = args.length; i < len; i++ ) { + objN = args[i]; + for( p in objN ) { + if( objN.hasOwnProperty( p ) ) { + obj1[ p ] = objN[ p ]; + } + } + } + return obj1; + }, + + + /** + * Execute a callback function, passing it the dimensions of a given image once + * they are known. + * @param {string} src The source URL of the image + * @param {function({w:number, h:number})} func The callback function to be called once the image dimensions are known + * @param {Object} ctx A context object which will be used as the 'this' value within the executed callback function + */ + withImageSize: function( src, func, ctx ) { + var size = imageSizes[ src ], img, queue; + if( size ) { + // If we have a queue, add to it + if( Object.prototype.toString.call( size ) === '[object Array]' ) { + size.push( [ func, ctx ] ); + } + // Already have the size cached, call func right away + else { + func.call( ctx, size ); + } + } else { + queue = imageSizes[ src ] = [ [ func, ctx ] ]; //create queue + img = new Image(); + img.onload = function() { + size = imageSizes[ src ] = { w: img.width, h: img.height }; + for( var i = 0, len = queue.length; i < len; i++ ) { + queue[ i ][ 0 ].call( queue[ i ][ 1 ], size ); + } + img.onload = null; + }; + img.src = src; + } + } + }; +})();/** + * Utility functions for handling gradients + */ +PIE.GradientUtil = { + + getGradientMetrics: function( el, width, height, gradientInfo ) { + var angle = gradientInfo.angle, + startPos = gradientInfo.gradientStart, + startX, startY, + endX, endY, + startCornerX, startCornerY, + endCornerX, endCornerY, + deltaX, deltaY, + p, UNDEF; + + // Find the "start" and "end" corners; these are the corners furthest along the gradient line. + // This is used below to find the start/end positions of the CSS3 gradient-line, and also in finding + // the total length of the VML rendered gradient-line corner to corner. + function findCorners() { + startCornerX = ( angle >= 90 && angle < 270 ) ? width : 0; + startCornerY = angle < 180 ? height : 0; + endCornerX = width - startCornerX; + endCornerY = height - startCornerY; + } + + // Normalize the angle to a value between [0, 360) + function normalizeAngle() { + while( angle < 0 ) { + angle += 360; + } + angle = angle % 360; + } + + // Find the start and end points of the gradient + if( startPos ) { + startPos = startPos.coords( el, width, height ); + startX = startPos.x; + startY = startPos.y; + } + if( angle ) { + angle = angle.degrees(); + + normalizeAngle(); + findCorners(); + + // If no start position was specified, then choose a corner as the starting point. + if( !startPos ) { + startX = startCornerX; + startY = startCornerY; + } + + // Find the end position by extending a perpendicular line from the gradient-line which + // intersects the corner opposite from the starting corner. + p = PIE.GradientUtil.perpendicularIntersect( startX, startY, angle, endCornerX, endCornerY ); + endX = p[0]; + endY = p[1]; + } + else if( startPos ) { + // Start position but no angle specified: find the end point by rotating 180deg around the center + endX = width - startX; + endY = height - startY; + } + else { + // Neither position nor angle specified; create vertical gradient from top to bottom + startX = startY = endX = 0; + endY = height; + } + deltaX = endX - startX; + deltaY = endY - startY; + + if( angle === UNDEF ) { + // Get the angle based on the change in x/y from start to end point. Checks first for horizontal + // or vertical angles so they get exact whole numbers rather than what atan2 gives. + angle = ( !deltaX ? ( deltaY < 0 ? 90 : 270 ) : + ( !deltaY ? ( deltaX < 0 ? 180 : 0 ) : + -Math.atan2( deltaY, deltaX ) / Math.PI * 180 + ) + ); + normalizeAngle(); + findCorners(); + } + + return { + angle: angle, + startX: startX, + startY: startY, + endX: endX, + endY: endY, + startCornerX: startCornerX, + startCornerY: startCornerY, + endCornerX: endCornerX, + endCornerY: endCornerY, + deltaX: deltaX, + deltaY: deltaY, + lineLength: PIE.GradientUtil.distance( startX, startY, endX, endY ) + } + }, + + /** + * Find the point along a given line (defined by a starting point and an angle), at which + * that line is intersected by a perpendicular line extending through another point. + * @param x1 - x coord of the starting point + * @param y1 - y coord of the starting point + * @param angle - angle of the line extending from the starting point (in degrees) + * @param x2 - x coord of point along the perpendicular line + * @param y2 - y coord of point along the perpendicular line + * @return [ x, y ] + */ + perpendicularIntersect: function( x1, y1, angle, x2, y2 ) { + // Handle straight vertical and horizontal angles, for performance and to avoid + // divide-by-zero errors. + if( angle === 0 || angle === 180 ) { + return [ x2, y1 ]; + } + else if( angle === 90 || angle === 270 ) { + return [ x1, y2 ]; + } + else { + // General approach: determine the Ax+By=C formula for each line (the slope of the second + // line is the negative inverse of the first) and then solve for where both formulas have + // the same x/y values. + var a1 = Math.tan( -angle * Math.PI / 180 ), + c1 = a1 * x1 - y1, + a2 = -1 / a1, + c2 = a2 * x2 - y2, + d = a2 - a1, + endX = ( c2 - c1 ) / d, + endY = ( a1 * c2 - a2 * c1 ) / d; + return [ endX, endY ]; + } + }, + + /** + * Find the distance between two points + * @param {Number} p1x + * @param {Number} p1y + * @param {Number} p2x + * @param {Number} p2y + * @return {Number} the distance + */ + distance: function( p1x, p1y, p2x, p2y ) { + var dx = p2x - p1x, + dy = p2y - p1y; + return Math.abs( + dx === 0 ? dy : + dy === 0 ? dx : + Math.sqrt( dx * dx + dy * dy ) + ); + } + +};/** + * + */ +PIE.Observable = function() { + /** + * List of registered observer functions + */ + this.observers = []; + + /** + * Hash of function ids to their position in the observers list, for fast lookup + */ + this.indexes = {}; +}; +PIE.Observable.prototype = { + + observe: function( fn ) { + var id = PIE.Util.getUID( fn ), + indexes = this.indexes, + observers = this.observers; + if( !( id in indexes ) ) { + indexes[ id ] = observers.length; + observers.push( fn ); + } + }, + + unobserve: function( fn ) { + var id = PIE.Util.getUID( fn ), + indexes = this.indexes; + if( id && id in indexes ) { + delete this.observers[ indexes[ id ] ]; + delete indexes[ id ]; + } + }, + + fire: function() { + var o = this.observers, + i = o.length; + while( i-- ) { + o[ i ] && o[ i ](); + } + } + +};/* + * Simple heartbeat timer - this is a brute-force workaround for syncing issues caused by IE not + * always firing the onmove and onresize events when elements are moved or resized. We check a few + * times every second to make sure the elements have the correct position and size. See Element.js + * which adds heartbeat listeners based on the custom -pie-poll flag, which defaults to true in IE8-9 + * and false elsewhere. + */ + +PIE.Heartbeat = new PIE.Observable(); +PIE.Heartbeat.run = function() { + var me = this, + interval; + if( !me.running ) { + interval = doc.documentElement.currentStyle.getAttribute( PIE.CSS_PREFIX + 'poll-interval' ) || 250; + (function beat() { + me.fire(); + setTimeout(beat, interval); + })(); + me.running = 1; + } +}; +/** + * Create an observable listener for the onunload event + */ +(function() { + PIE.OnUnload = new PIE.Observable(); + + function handleUnload() { + PIE.OnUnload.fire(); + window.detachEvent( 'onunload', handleUnload ); + window[ 'PIE' ] = null; + } + + window.attachEvent( 'onunload', handleUnload ); + + /** + * Attach an event which automatically gets detached onunload + */ + PIE.OnUnload.attachManagedEvent = function( target, name, handler ) { + target.attachEvent( name, handler ); + this.observe( function() { + target.detachEvent( name, handler ); + } ); + }; +})()/** + * Create a single observable listener for window resize events. + */ +PIE.OnResize = new PIE.Observable(); + +PIE.OnUnload.attachManagedEvent( window, 'onresize', function() { PIE.OnResize.fire(); } ); +/** + * Create a single observable listener for scroll events. Used for lazy loading based + * on the viewport, and for fixed position backgrounds. + */ +(function() { + PIE.OnScroll = new PIE.Observable(); + + function scrolled() { + PIE.OnScroll.fire(); + } + + PIE.OnUnload.attachManagedEvent( window, 'onscroll', scrolled ); + + PIE.OnResize.observe( scrolled ); +})(); +/** + * Listen for printing events, destroy all active PIE instances when printing, and + * restore them afterward. + */ +(function() { + + var elements; + + function beforePrint() { + elements = PIE.Element.destroyAll(); + } + + function afterPrint() { + if( elements ) { + for( var i = 0, len = elements.length; i < len; i++ ) { + PIE[ 'attach' ]( elements[i] ); + } + elements = 0; + } + } + + if( PIE.ieDocMode < 9 ) { + PIE.OnUnload.attachManagedEvent( window, 'onbeforeprint', beforePrint ); + PIE.OnUnload.attachManagedEvent( window, 'onafterprint', afterPrint ); + } + +})();/** + * Create a single observable listener for document mouseup events. + */ +PIE.OnMouseup = new PIE.Observable(); + +PIE.OnUnload.attachManagedEvent( doc, 'onmouseup', function() { PIE.OnMouseup.fire(); } ); +/** + * Wrapper for length and percentage style values. The value is immutable. A singleton instance per unique + * value is returned from PIE.getLength() - always use that instead of instantiating directly. + * @constructor + * @param {string} val The CSS string representing the length. It is assumed that this will already have + * been validated as a valid length or percentage syntax. + */ +PIE.Length = (function() { + var lengthCalcEl = doc.createElement( 'length-calc' ), + parent = doc.body || doc.documentElement, + s = lengthCalcEl.style, + conversions = {}, + units = [ 'mm', 'cm', 'in', 'pt', 'pc' ], + i = units.length, + instances = {}; + + s.position = 'absolute'; + s.top = s.left = '-9999px'; + + parent.appendChild( lengthCalcEl ); + while( i-- ) { + s.width = '100' + units[i]; + conversions[ units[i] ] = lengthCalcEl.offsetWidth / 100; + } + parent.removeChild( lengthCalcEl ); + + // All calcs from here on will use 1em + s.width = '1em'; + + + function Length( val ) { + this.val = val; + } + Length.prototype = { + /** + * Regular expression for matching the length unit + * @private + */ + unitRE: /(px|em|ex|mm|cm|in|pt|pc|%)$/, + + /** + * Get the numeric value of the length + * @return {number} The value + */ + getNumber: function() { + var num = this.num, + UNDEF; + if( num === UNDEF ) { + num = this.num = parseFloat( this.val ); + } + return num; + }, + + /** + * Get the unit of the length + * @return {string} The unit + */ + getUnit: function() { + var unit = this.unit, + m; + if( !unit ) { + m = this.val.match( this.unitRE ); + unit = this.unit = ( m && m[0] ) || 'px'; + } + return unit; + }, + + /** + * Determine whether this is a percentage length value + * @return {boolean} + */ + isPercentage: function() { + return this.getUnit() === '%'; + }, + + /** + * Resolve this length into a number of pixels. + * @param {Element} el - the context element, used to resolve font-relative values + * @param {(function():number|number)=} pct100 - the number of pixels that equal a 100% percentage. This can be either a number or a + * function which will be called to return the number. + */ + pixels: function( el, pct100 ) { + var num = this.getNumber(), + unit = this.getUnit(); + switch( unit ) { + case "px": + return num; + case "%": + return num * ( typeof pct100 === 'function' ? pct100() : pct100 ) / 100; + case "em": + return num * this.getEmPixels( el ); + case "ex": + return num * this.getEmPixels( el ) / 2; + default: + return num * conversions[ unit ]; + } + }, + + /** + * The em and ex units are relative to the font-size of the current element, + * however if the font-size is set using non-pixel units then we get that value + * rather than a pixel conversion. To get around this, we keep a floating element + * with width:1em which we insert into the target element and then read its offsetWidth. + * For elements that won't accept a child we insert into the parent node and perform + * additional calculation. If the font-size *is* specified in pixels, then we use that + * directly to avoid the expensive DOM manipulation. + * @param {Element} el + * @return {number} + */ + getEmPixels: function( el ) { + var fs = el.currentStyle.fontSize, + px, parent, me; + + if( fs.indexOf( 'px' ) > 0 ) { + return parseFloat( fs ); + } + else if( el.tagName in PIE.childlessElements ) { + me = this; + parent = el.parentNode; + return PIE.getLength( fs ).pixels( parent, function() { + return me.getEmPixels( parent ); + } ); + } + else { + el.appendChild( lengthCalcEl ); + px = lengthCalcEl.offsetWidth; + if( lengthCalcEl.parentNode === el ) { //not sure how this could be false but it sometimes is + el.removeChild( lengthCalcEl ); + } + return px; + } + } + }; + + + /** + * Retrieve a PIE.Length instance for the given value. A shared singleton instance is returned for each unique value. + * @param {string} val The CSS string representing the length. It is assumed that this will already have + * been validated as a valid length or percentage syntax. + */ + PIE.getLength = function( val ) { + return instances[ val ] || ( instances[ val ] = new Length( val ) ); + }; + + return Length; +})(); +/** + * Wrapper for a CSS3 bg-position value. Takes up to 2 position keywords and 2 lengths/percentages. + * @constructor + * @param {Array.} tokens The tokens making up the background position value. + */ +PIE.BgPosition = (function() { + + var length_fifty = PIE.getLength( '50%' ), + vert_idents = { 'top': 1, 'center': 1, 'bottom': 1 }, + horiz_idents = { 'left': 1, 'center': 1, 'right': 1 }; + + + function BgPosition( tokens ) { + this.tokens = tokens; + } + BgPosition.prototype = { + /** + * Normalize the values into the form: + * [ xOffsetSide, xOffsetLength, yOffsetSide, yOffsetLength ] + * where: xOffsetSide is either 'left' or 'right', + * yOffsetSide is either 'top' or 'bottom', + * and x/yOffsetLength are both PIE.Length objects. + * @return {Array} + */ + getValues: function() { + if( !this._values ) { + var tokens = this.tokens, + len = tokens.length, + Tokenizer = PIE.Tokenizer, + identType = Tokenizer.Type, + length_zero = PIE.getLength( '0' ), + type_ident = identType.IDENT, + type_length = identType.LENGTH, + type_percent = identType.PERCENT, + type, value, + vals = [ 'left', length_zero, 'top', length_zero ]; + + // If only one value, the second is assumed to be 'center' + if( len === 1 ) { + tokens.push( new Tokenizer.Token( type_ident, 'center' ) ); + len++; + } + + // Two values - CSS2 + if( len === 2 ) { + // If both idents, they can appear in either order, so switch them if needed + if( type_ident & ( tokens[0].tokenType | tokens[1].tokenType ) && + tokens[0].tokenValue in vert_idents && tokens[1].tokenValue in horiz_idents ) { + tokens.push( tokens.shift() ); + } + if( tokens[0].tokenType & type_ident ) { + if( tokens[0].tokenValue === 'center' ) { + vals[1] = length_fifty; + } else { + vals[0] = tokens[0].tokenValue; + } + } + else if( tokens[0].isLengthOrPercent() ) { + vals[1] = PIE.getLength( tokens[0].tokenValue ); + } + if( tokens[1].tokenType & type_ident ) { + if( tokens[1].tokenValue === 'center' ) { + vals[3] = length_fifty; + } else { + vals[2] = tokens[1].tokenValue; + } + } + else if( tokens[1].isLengthOrPercent() ) { + vals[3] = PIE.getLength( tokens[1].tokenValue ); + } + } + + // Three or four values - CSS3 + else { + // TODO + } + + this._values = vals; + } + return this._values; + }, + + /** + * Find the coordinates of the background image from the upper-left corner of the background area. + * Note that these coordinate values are not rounded. + * @param {Element} el + * @param {number} width - the width for percentages (background area width minus image width) + * @param {number} height - the height for percentages (background area height minus image height) + * @return {Object} { x: Number, y: Number } + */ + coords: function( el, width, height ) { + var vals = this.getValues(), + pxX = vals[1].pixels( el, width ), + pxY = vals[3].pixels( el, height ); + + return { + x: vals[0] === 'right' ? width - pxX : pxX, + y: vals[2] === 'bottom' ? height - pxY : pxY + }; + } + }; + + return BgPosition; +})(); +/** + * Wrapper for a CSS3 background-size value. + * @constructor + * @param {String|PIE.Length} w The width parameter + * @param {String|PIE.Length} h The height parameter, if any + */ +PIE.BgSize = (function() { + + var CONTAIN = 'contain', + COVER = 'cover', + AUTO = 'auto'; + + + function BgSize( w, h ) { + this.w = w; + this.h = h; + } + BgSize.prototype = { + + pixels: function( el, areaW, areaH, imgW, imgH ) { + var me = this, + w = me.w, + h = me.h, + areaRatio = areaW / areaH, + imgRatio = imgW / imgH; + + if ( w === CONTAIN ) { + w = imgRatio > areaRatio ? areaW : areaH * imgRatio; + h = imgRatio > areaRatio ? areaW / imgRatio : areaH; + } + else if ( w === COVER ) { + w = imgRatio < areaRatio ? areaW : areaH * imgRatio; + h = imgRatio < areaRatio ? areaW / imgRatio : areaH; + } + else if ( w === AUTO ) { + h = ( h === AUTO ? imgH : h.pixels( el, areaH ) ); + w = h * imgRatio; + } + else { + w = w.pixels( el, areaW ); + h = ( h === AUTO ? w / imgRatio : h.pixels( el, areaH ) ); + } + + return { w: w, h: h }; + } + + }; + + BgSize.DEFAULT = new BgSize( AUTO, AUTO ); + + return BgSize; +})(); +/** + * Wrapper for angle values; handles conversion to degrees from all allowed angle units + * @constructor + * @param {string} val The raw CSS value for the angle. It is assumed it has been pre-validated. + */ +PIE.Angle = (function() { + function Angle( val ) { + this.val = val; + } + Angle.prototype = { + unitRE: /[a-z]+$/i, + + /** + * @return {string} The unit of the angle value + */ + getUnit: function() { + return this._unit || ( this._unit = this.val.match( this.unitRE )[0].toLowerCase() ); + }, + + /** + * Get the numeric value of the angle in degrees. + * @return {number} The degrees value + */ + degrees: function() { + var deg = this._deg, u, n; + if( deg === undefined ) { + u = this.getUnit(); + n = parseFloat( this.val, 10 ); + deg = this._deg = ( u === 'deg' ? n : u === 'rad' ? n / Math.PI * 180 : u === 'grad' ? n / 400 * 360 : u === 'turn' ? n * 360 : 0 ); + } + return deg; + } + }; + + return Angle; +})();/** + * Abstraction for colors values. Allows detection of rgba values. A singleton instance per unique + * value is returned from PIE.getColor() - always use that instead of instantiating directly. + * @constructor + * @param {string} val The raw CSS string value for the color + */ +PIE.Color = (function() { + var instances = {}; + + function Color( val ) { + this.val = val; + } + + /** + * Regular expression for matching rgba colors and extracting their components + * @type {RegExp} + */ + Color.rgbaRE = /\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d+|\d*\.\d+)\s*\)\s*/; + + Color.names = { + "aliceblue":"F0F8FF", "antiquewhite":"FAEBD7", "aqua":"0FF", + "aquamarine":"7FFFD4", "azure":"F0FFFF", "beige":"F5F5DC", + "bisque":"FFE4C4", "black":"000", "blanchedalmond":"FFEBCD", + "blue":"00F", "blueviolet":"8A2BE2", "brown":"A52A2A", + "burlywood":"DEB887", "cadetblue":"5F9EA0", "chartreuse":"7FFF00", + "chocolate":"D2691E", "coral":"FF7F50", "cornflowerblue":"6495ED", + "cornsilk":"FFF8DC", "crimson":"DC143C", "cyan":"0FF", + "darkblue":"00008B", "darkcyan":"008B8B", "darkgoldenrod":"B8860B", + "darkgray":"A9A9A9", "darkgreen":"006400", "darkkhaki":"BDB76B", + "darkmagenta":"8B008B", "darkolivegreen":"556B2F", "darkorange":"FF8C00", + "darkorchid":"9932CC", "darkred":"8B0000", "darksalmon":"E9967A", + "darkseagreen":"8FBC8F", "darkslateblue":"483D8B", "darkslategray":"2F4F4F", + "darkturquoise":"00CED1", "darkviolet":"9400D3", "deeppink":"FF1493", + "deepskyblue":"00BFFF", "dimgray":"696969", "dodgerblue":"1E90FF", + "firebrick":"B22222", "floralwhite":"FFFAF0", "forestgreen":"228B22", + "fuchsia":"F0F", "gainsboro":"DCDCDC", "ghostwhite":"F8F8FF", + "gold":"FFD700", "goldenrod":"DAA520", "gray":"808080", + "green":"008000", "greenyellow":"ADFF2F", "honeydew":"F0FFF0", + "hotpink":"FF69B4", "indianred":"CD5C5C", "indigo":"4B0082", + "ivory":"FFFFF0", "khaki":"F0E68C", "lavender":"E6E6FA", + "lavenderblush":"FFF0F5", "lawngreen":"7CFC00", "lemonchiffon":"FFFACD", + "lightblue":"ADD8E6", "lightcoral":"F08080", "lightcyan":"E0FFFF", + "lightgoldenrodyellow":"FAFAD2", "lightgreen":"90EE90", "lightgrey":"D3D3D3", + "lightpink":"FFB6C1", "lightsalmon":"FFA07A", "lightseagreen":"20B2AA", + "lightskyblue":"87CEFA", "lightslategray":"789", "lightsteelblue":"B0C4DE", + "lightyellow":"FFFFE0", "lime":"0F0", "limegreen":"32CD32", + "linen":"FAF0E6", "magenta":"F0F", "maroon":"800000", + "mediumauqamarine":"66CDAA", "mediumblue":"0000CD", "mediumorchid":"BA55D3", + "mediumpurple":"9370D8", "mediumseagreen":"3CB371", "mediumslateblue":"7B68EE", + "mediumspringgreen":"00FA9A", "mediumturquoise":"48D1CC", "mediumvioletred":"C71585", + "midnightblue":"191970", "mintcream":"F5FFFA", "mistyrose":"FFE4E1", + "moccasin":"FFE4B5", "navajowhite":"FFDEAD", "navy":"000080", + "oldlace":"FDF5E6", "olive":"808000", "olivedrab":"688E23", + "orange":"FFA500", "orangered":"FF4500", "orchid":"DA70D6", + "palegoldenrod":"EEE8AA", "palegreen":"98FB98", "paleturquoise":"AFEEEE", + "palevioletred":"D87093", "papayawhip":"FFEFD5", "peachpuff":"FFDAB9", + "peru":"CD853F", "pink":"FFC0CB", "plum":"DDA0DD", + "powderblue":"B0E0E6", "purple":"800080", "red":"F00", + "rosybrown":"BC8F8F", "royalblue":"4169E1", "saddlebrown":"8B4513", + "salmon":"FA8072", "sandybrown":"F4A460", "seagreen":"2E8B57", + "seashell":"FFF5EE", "sienna":"A0522D", "silver":"C0C0C0", + "skyblue":"87CEEB", "slateblue":"6A5ACD", "slategray":"708090", + "snow":"FFFAFA", "springgreen":"00FF7F", "steelblue":"4682B4", + "tan":"D2B48C", "teal":"008080", "thistle":"D8BFD8", + "tomato":"FF6347", "turquoise":"40E0D0", "violet":"EE82EE", + "wheat":"F5DEB3", "white":"FFF", "whitesmoke":"F5F5F5", + "yellow":"FF0", "yellowgreen":"9ACD32" + }; + + Color.prototype = { + /** + * @private + */ + parse: function() { + if( !this._color ) { + var me = this, + v = me.val, + vLower, + m = v.match( Color.rgbaRE ); + if( m ) { + me._color = 'rgb(' + m[1] + ',' + m[2] + ',' + m[3] + ')'; + me._alpha = parseFloat( m[4] ); + } + else { + if( ( vLower = v.toLowerCase() ) in Color.names ) { + v = '#' + Color.names[vLower]; + } + me._color = v; + me._alpha = ( v === 'transparent' ? 0 : 1 ); + } + } + }, + + /** + * Retrieve the value of the color in a format usable by IE natively. This will be the same as + * the raw input value, except for rgba values which will be converted to an rgb value. + * @param {Element} el The context element, used to get 'currentColor' keyword value. + * @return {string} Color value + */ + colorValue: function( el ) { + this.parse(); + return this._color === 'currentColor' ? el.currentStyle.color : this._color; + }, + + /** + * Retrieve the alpha value of the color. Will be 1 for all values except for rgba values + * with an alpha component. + * @return {number} The alpha value, from 0 to 1. + */ + alpha: function() { + this.parse(); + return this._alpha; + } + }; + + + /** + * Retrieve a PIE.Color instance for the given value. A shared singleton instance is returned for each unique value. + * @param {string} val The CSS string representing the color. It is assumed that this will already have + * been validated as a valid color syntax. + */ + PIE.getColor = function(val) { + return instances[ val ] || ( instances[ val ] = new Color( val ) ); + }; + + return Color; +})();/** + * A tokenizer for CSS value strings. + * @constructor + * @param {string} css The CSS value string + */ +PIE.Tokenizer = (function() { + function Tokenizer( css ) { + this.css = css; + this.ch = 0; + this.tokens = []; + this.tokenIndex = 0; + } + + /** + * Enumeration of token type constants. + * @enum {number} + */ + var Type = Tokenizer.Type = { + ANGLE: 1, + CHARACTER: 2, + COLOR: 4, + DIMEN: 8, + FUNCTION: 16, + IDENT: 32, + LENGTH: 64, + NUMBER: 128, + OPERATOR: 256, + PERCENT: 512, + STRING: 1024, + URL: 2048 + }; + + /** + * A single token + * @constructor + * @param {number} type The type of the token - see PIE.Tokenizer.Type + * @param {string} value The value of the token + */ + Tokenizer.Token = function( type, value ) { + this.tokenType = type; + this.tokenValue = value; + }; + Tokenizer.Token.prototype = { + isLength: function() { + return this.tokenType & Type.LENGTH || ( this.tokenType & Type.NUMBER && this.tokenValue === '0' ); + }, + isLengthOrPercent: function() { + return this.isLength() || this.tokenType & Type.PERCENT; + } + }; + + Tokenizer.prototype = { + whitespace: /\s/, + number: /^[\+\-]?(\d*\.)?\d+/, + url: /^url\(\s*("([^"]*)"|'([^']*)'|([!#$%&*-~]*))\s*\)/i, + ident: /^\-?[_a-z][\w-]*/i, + string: /^("([^"]*)"|'([^']*)')/, + operator: /^[\/,]/, + hash: /^#[\w]+/, + hashColor: /^#([\da-f]{6}|[\da-f]{3})/i, + + unitTypes: { + 'px': Type.LENGTH, 'em': Type.LENGTH, 'ex': Type.LENGTH, + 'mm': Type.LENGTH, 'cm': Type.LENGTH, 'in': Type.LENGTH, + 'pt': Type.LENGTH, 'pc': Type.LENGTH, + 'deg': Type.ANGLE, 'rad': Type.ANGLE, 'grad': Type.ANGLE + }, + + colorFunctions: { + 'rgb': 1, 'rgba': 1, 'hsl': 1, 'hsla': 1 + }, + + + /** + * Advance to and return the next token in the CSS string. If the end of the CSS string has + * been reached, null will be returned. + * @param {boolean} forget - if true, the token will not be stored for the purposes of backtracking with prev(). + * @return {PIE.Tokenizer.Token} + */ + next: function( forget ) { + var css, ch, firstChar, match, val, + me = this; + + function newToken( type, value ) { + var tok = new Tokenizer.Token( type, value ); + if( !forget ) { + me.tokens.push( tok ); + me.tokenIndex++; + } + return tok; + } + function failure() { + me.tokenIndex++; + return null; + } + + // In case we previously backed up, return the stored token in the next slot + if( this.tokenIndex < this.tokens.length ) { + return this.tokens[ this.tokenIndex++ ]; + } + + // Move past leading whitespace characters + while( this.whitespace.test( this.css.charAt( this.ch ) ) ) { + this.ch++; + } + if( this.ch >= this.css.length ) { + return failure(); + } + + ch = this.ch; + css = this.css.substring( this.ch ); + firstChar = css.charAt( 0 ); + switch( firstChar ) { + case '#': + if( match = css.match( this.hashColor ) ) { + this.ch += match[0].length; + return newToken( Type.COLOR, match[0] ); + } + break; + + case '"': + case "'": + if( match = css.match( this.string ) ) { + this.ch += match[0].length; + return newToken( Type.STRING, match[2] || match[3] || '' ); + } + break; + + case "/": + case ",": + this.ch++; + return newToken( Type.OPERATOR, firstChar ); + + case 'u': + if( match = css.match( this.url ) ) { + this.ch += match[0].length; + return newToken( Type.URL, match[2] || match[3] || match[4] || '' ); + } + } + + // Numbers and values starting with numbers + if( match = css.match( this.number ) ) { + val = match[0]; + this.ch += val.length; + + // Check if it is followed by a unit + if( css.charAt( val.length ) === '%' ) { + this.ch++; + return newToken( Type.PERCENT, val + '%' ); + } + if( match = css.substring( val.length ).match( this.ident ) ) { + val += match[0]; + this.ch += match[0].length; + return newToken( this.unitTypes[ match[0].toLowerCase() ] || Type.DIMEN, val ); + } + + // Plain ol' number + return newToken( Type.NUMBER, val ); + } + + // Identifiers + if( match = css.match( this.ident ) ) { + val = match[0]; + this.ch += val.length; + + // Named colors + if( val.toLowerCase() in PIE.Color.names || val === 'currentColor' || val === 'transparent' ) { + return newToken( Type.COLOR, val ); + } + + // Functions + if( css.charAt( val.length ) === '(' ) { + this.ch++; + + // Color values in function format: rgb, rgba, hsl, hsla + if( val.toLowerCase() in this.colorFunctions ) { + function isNum( tok ) { + return tok && tok.tokenType & Type.NUMBER; + } + function isNumOrPct( tok ) { + return tok && ( tok.tokenType & ( Type.NUMBER | Type.PERCENT ) ); + } + function isValue( tok, val ) { + return tok && tok.tokenValue === val; + } + function next() { + return me.next( 1 ); + } + + if( ( val.charAt(0) === 'r' ? isNumOrPct( next() ) : isNum( next() ) ) && + isValue( next(), ',' ) && + isNumOrPct( next() ) && + isValue( next(), ',' ) && + isNumOrPct( next() ) && + ( val === 'rgb' || val === 'hsa' || ( + isValue( next(), ',' ) && + isNum( next() ) + ) ) && + isValue( next(), ')' ) ) { + return newToken( Type.COLOR, this.css.substring( ch, this.ch ) ); + } + return failure(); + } + + return newToken( Type.FUNCTION, val ); + } + + // Other identifier + return newToken( Type.IDENT, val ); + } + + // Standalone character + this.ch++; + return newToken( Type.CHARACTER, firstChar ); + }, + + /** + * Determine whether there is another token + * @return {boolean} + */ + hasNext: function() { + var next = this.next(); + this.prev(); + return !!next; + }, + + /** + * Back up and return the previous token + * @return {PIE.Tokenizer.Token} + */ + prev: function() { + return this.tokens[ this.tokenIndex-- - 2 ]; + }, + + /** + * Retrieve all the tokens in the CSS string + * @return {Array.} + */ + all: function() { + while( this.next() ) {} + return this.tokens; + }, + + /** + * Return a list of tokens from the current position until the given function returns + * true. The final token will not be included in the list. + * @param {function():boolean} func - test function + * @param {boolean} require - if true, then if the end of the CSS string is reached + * before the test function returns true, null will be returned instead of the + * tokens that have been found so far. + * @return {Array.} + */ + until: function( func, require ) { + var list = [], t, hit; + while( t = this.next() ) { + if( func( t ) ) { + hit = true; + this.prev(); + break; + } + list.push( t ); + } + return require && !hit ? null : list; + } + }; + + return Tokenizer; +})();/** + * Handles calculating, caching, and detecting changes to size and position of the element. + * @constructor + * @param {Element} el the target element + */ +PIE.BoundsInfo = function( el ) { + this.targetElement = el; +}; +PIE.BoundsInfo.prototype = { + + _locked: 0, + + positionChanged: function() { + var last = this._lastBounds, + bounds; + return !last || ( ( bounds = this.getBounds() ) && ( last.x !== bounds.x || last.y !== bounds.y ) ); + }, + + sizeChanged: function() { + var last = this._lastBounds, + bounds; + return !last || ( ( bounds = this.getBounds() ) && ( last.w !== bounds.w || last.h !== bounds.h ) ); + }, + + getLiveBounds: function() { + var el = this.targetElement, + rect = el.getBoundingClientRect(), + isIE9 = PIE.ieDocMode === 9, + isIE7 = PIE.ieVersion === 7, + width = rect.right - rect.left; + return { + x: rect.left, + y: rect.top, + // In some cases scrolling the page will cause IE9 to report incorrect dimensions + // in the rect returned by getBoundingClientRect, so we must query offsetWidth/Height + // instead. Also IE7 is inconsistent in using logical vs. device pixels in measurements + // so we must calculate the ratio and use it in certain places as a position adjustment. + w: isIE9 || isIE7 ? el.offsetWidth : width, + h: isIE9 || isIE7 ? el.offsetHeight : rect.bottom - rect.top, + logicalZoomRatio: ( isIE7 && width ) ? el.offsetWidth / width : 1 + }; + }, + + getBounds: function() { + return this._locked ? + ( this._lockedBounds || ( this._lockedBounds = this.getLiveBounds() ) ) : + this.getLiveBounds(); + }, + + hasBeenQueried: function() { + return !!this._lastBounds; + }, + + lock: function() { + ++this._locked; + }, + + unlock: function() { + if( !--this._locked ) { + if( this._lockedBounds ) this._lastBounds = this._lockedBounds; + this._lockedBounds = null; + } + } + +}; +(function() { + +function cacheWhenLocked( fn ) { + var uid = PIE.Util.getUID( fn ); + return function() { + if( this._locked ) { + var cache = this._lockedValues || ( this._lockedValues = {} ); + return ( uid in cache ) ? cache[ uid ] : ( cache[ uid ] = fn.call( this ) ); + } else { + return fn.call( this ); + } + } +} + + +PIE.StyleInfoBase = { + + _locked: 0, + + /** + * Create a new StyleInfo class, with the standard constructor, and augmented by + * the StyleInfoBase's members. + * @param proto + */ + newStyleInfo: function( proto ) { + function StyleInfo( el ) { + this.targetElement = el; + this._lastCss = this.getCss(); + } + PIE.Util.merge( StyleInfo.prototype, PIE.StyleInfoBase, proto ); + StyleInfo._propsCache = {}; + return StyleInfo; + }, + + /** + * Get an object representation of the target CSS style, caching it for each unique + * CSS value string. + * @return {Object} + */ + getProps: function() { + var css = this.getCss(), + cache = this.constructor._propsCache; + return css ? ( css in cache ? cache[ css ] : ( cache[ css ] = this.parseCss( css ) ) ) : null; + }, + + /** + * Get the raw CSS value for the target style + * @return {string} + */ + getCss: cacheWhenLocked( function() { + var el = this.targetElement, + ctor = this.constructor, + s = el.style, + cs = el.currentStyle, + cssProp = this.cssProperty, + styleProp = this.styleProperty, + prefixedCssProp = ctor._prefixedCssProp || ( ctor._prefixedCssProp = PIE.CSS_PREFIX + cssProp ), + prefixedStyleProp = ctor._prefixedStyleProp || ( ctor._prefixedStyleProp = PIE.STYLE_PREFIX + styleProp.charAt(0).toUpperCase() + styleProp.substring(1) ); + return s[ prefixedStyleProp ] || cs.getAttribute( prefixedCssProp ) || s[ styleProp ] || cs.getAttribute( cssProp ); + } ), + + /** + * Determine whether the target CSS style is active. + * @return {boolean} + */ + isActive: cacheWhenLocked( function() { + return !!this.getProps(); + } ), + + /** + * Determine whether the target CSS style has changed since the last time it was used. + * @return {boolean} + */ + changed: cacheWhenLocked( function() { + var currentCss = this.getCss(), + changed = currentCss !== this._lastCss; + this._lastCss = currentCss; + return changed; + } ), + + cacheWhenLocked: cacheWhenLocked, + + lock: function() { + ++this._locked; + }, + + unlock: function() { + if( !--this._locked ) { + delete this._lockedValues; + } + } +}; + +})();/** + * Handles parsing, caching, and detecting changes to background (and -pie-background) CSS + * @constructor + * @param {Element} el the target element + */ +PIE.BackgroundStyleInfo = PIE.StyleInfoBase.newStyleInfo( { + + cssProperty: PIE.CSS_PREFIX + 'background', + styleProperty: PIE.STYLE_PREFIX + 'Background', + + attachIdents: { 'scroll':1, 'fixed':1, 'local':1 }, + repeatIdents: { 'repeat-x':1, 'repeat-y':1, 'repeat':1, 'no-repeat':1 }, + originAndClipIdents: { 'padding-box':1, 'border-box':1, 'content-box':1 }, + positionIdents: { 'top':1, 'right':1, 'bottom':1, 'left':1, 'center':1 }, + sizeIdents: { 'contain':1, 'cover':1 }, + propertyNames: { + CLIP: 'backgroundClip', + COLOR: 'backgroundColor', + IMAGE: 'backgroundImage', + ORIGIN: 'backgroundOrigin', + POSITION: 'backgroundPosition', + REPEAT: 'backgroundRepeat', + SIZE: 'backgroundSize' + }, + + /** + * For background styles, we support the -pie-background property but fall back to the standard + * backround* properties. The reason we have to use the prefixed version is that IE natively + * parses the standard properties and if it sees something it doesn't know how to parse, for example + * multiple values or gradient definitions, it will throw that away and not make it available through + * currentStyle. + * + * Format of return object: + * { + * color: , + * bgImages: [ + * { + * imgType: 'image', + * imgUrl: 'image.png', + * imgRepeat: <'no-repeat' | 'repeat-x' | 'repeat-y' | 'repeat'>, + * bgPosition: , + * bgAttachment: <'scroll' | 'fixed' | 'local'>, + * bgOrigin: <'border-box' | 'padding-box' | 'content-box'>, + * bgClip: <'border-box' | 'padding-box'>, + * bgSize: , + * origString: 'url(img.png) no-repeat top left' + * }, + * { + * imgType: 'linear-gradient', + * gradientStart: , + * angle: , + * stops: [ + * { color: , offset: }, + * { color: , offset: }, ... + * ] + * } + * ] + * } + * @param {String} css + * @override + */ + parseCss: function( css ) { + var el = this.targetElement, + cs = el.currentStyle, + tokenizer, token, image, + tok_type = PIE.Tokenizer.Type, + type_operator = tok_type.OPERATOR, + type_ident = tok_type.IDENT, + type_color = tok_type.COLOR, + tokType, tokVal, + beginCharIndex = 0, + positionIdents = this.positionIdents, + gradient, stop, width, height, + props = { bgImages: [] }; + + function isBgPosToken( token ) { + return token && token.isLengthOrPercent() || ( token.tokenType & type_ident && token.tokenValue in positionIdents ); + } + + function sizeToken( token ) { + return token && ( ( token.isLengthOrPercent() && PIE.getLength( token.tokenValue ) ) || ( token.tokenValue === 'auto' && 'auto' ) ); + } + + // If the CSS3-specific -pie-background property is present, parse it + if( this.getCss3() ) { + tokenizer = new PIE.Tokenizer( css ); + image = {}; + + while( token = tokenizer.next() ) { + tokType = token.tokenType; + tokVal = token.tokenValue; + + if( !image.imgType && tokType & tok_type.FUNCTION && tokVal === 'linear-gradient' ) { + gradient = { stops: [], imgType: tokVal }; + stop = {}; + while( token = tokenizer.next() ) { + tokType = token.tokenType; + tokVal = token.tokenValue; + + // If we reached the end of the function and had at least 2 stops, flush the info + if( tokType & tok_type.CHARACTER && tokVal === ')' ) { + if( stop.color ) { + gradient.stops.push( stop ); + } + if( gradient.stops.length > 1 ) { + PIE.Util.merge( image, gradient ); + } + break; + } + + // Color stop - must start with color + if( tokType & type_color ) { + // if we already have an angle/position, make sure that the previous token was a comma + if( gradient.angle || gradient.gradientStart ) { + token = tokenizer.prev(); + if( token.tokenType !== type_operator ) { + break; //fail + } + tokenizer.next(); + } + + stop = { + color: PIE.getColor( tokVal ) + }; + // check for offset following color + token = tokenizer.next(); + if( token.isLengthOrPercent() ) { + stop.offset = PIE.getLength( token.tokenValue ); + } else { + tokenizer.prev(); + } + } + // Angle - can only appear in first spot + else if( tokType & tok_type.ANGLE && !gradient.angle && !stop.color && !gradient.stops.length ) { + gradient.angle = new PIE.Angle( token.tokenValue ); + } + else if( isBgPosToken( token ) && !gradient.gradientStart && !stop.color && !gradient.stops.length ) { + tokenizer.prev(); + gradient.gradientStart = new PIE.BgPosition( + tokenizer.until( function( t ) { + return !isBgPosToken( t ); + }, false ) + ); + } + else if( tokType & type_operator && tokVal === ',' ) { + if( stop.color ) { + gradient.stops.push( stop ); + stop = {}; + } + } + else { + // Found something we didn't recognize; fail without adding image + break; + } + } + } + else if( !image.imgType && tokType & tok_type.URL ) { + image.imgUrl = tokVal; + image.imgType = 'image'; + } + else if( isBgPosToken( token ) && !image.bgPosition ) { + tokenizer.prev(); + image.bgPosition = new PIE.BgPosition( + tokenizer.until( function( t ) { + return !isBgPosToken( t ); + }, false ) + ); + } + else if( tokType & type_ident ) { + if( tokVal in this.repeatIdents && !image.imgRepeat ) { + image.imgRepeat = tokVal; + } + else if( tokVal in this.originAndClipIdents && !image.bgOrigin ) { + image.bgOrigin = tokVal; + if( ( token = tokenizer.next() ) && ( token.tokenType & type_ident ) && + token.tokenValue in this.originAndClipIdents ) { + image.bgClip = token.tokenValue; + } else { + image.bgClip = tokVal; + tokenizer.prev(); + } + } + else if( tokVal in this.attachIdents && !image.bgAttachment ) { + image.bgAttachment = tokVal; + } + else { + return null; + } + } + else if( tokType & type_color && !props.color ) { + props.color = PIE.getColor( tokVal ); + } + else if( tokType & type_operator && tokVal === '/' && !image.bgSize && image.bgPosition ) { + // background size + token = tokenizer.next(); + if( token.tokenType & type_ident && token.tokenValue in this.sizeIdents ) { + image.bgSize = new PIE.BgSize( token.tokenValue ); + } + else if( width = sizeToken( token ) ) { + height = sizeToken( tokenizer.next() ); + if ( !height ) { + height = width; + tokenizer.prev(); + } + image.bgSize = new PIE.BgSize( width, height ); + } + else { + return null; + } + } + // new layer + else if( tokType & type_operator && tokVal === ',' && image.imgType ) { + image.origString = css.substring( beginCharIndex, tokenizer.ch - 1 ); + beginCharIndex = tokenizer.ch; + props.bgImages.push( image ); + image = {}; + } + else { + // Found something unrecognized; chuck everything + return null; + } + } + + // leftovers + if( image.imgType ) { + image.origString = css.substring( beginCharIndex ); + props.bgImages.push( image ); + } + } + + // Otherwise, use the standard background properties; let IE give us the values rather than parsing them + else { + this.withActualBg( PIE.ieDocMode < 9 ? + function() { + var propNames = this.propertyNames, + posX = cs[propNames.POSITION + 'X'], + posY = cs[propNames.POSITION + 'Y'], + img = cs[propNames.IMAGE], + color = cs[propNames.COLOR]; + + if( color !== 'transparent' ) { + props.color = PIE.getColor( color ) + } + if( img !== 'none' ) { + props.bgImages = [ { + imgType: 'image', + imgUrl: new PIE.Tokenizer( img ).next().tokenValue, + imgRepeat: cs[propNames.REPEAT], + bgPosition: new PIE.BgPosition( new PIE.Tokenizer( posX + ' ' + posY ).all() ) + } ]; + } + } : + function() { + var propNames = this.propertyNames, + splitter = /\s*,\s*/, + images = cs[propNames.IMAGE].split( splitter ), + color = cs[propNames.COLOR], + repeats, positions, origins, clips, sizes, i, len, image, sizeParts; + + if( color !== 'transparent' ) { + props.color = PIE.getColor( color ) + } + + len = images.length; + if( len && images[0] !== 'none' ) { + repeats = cs[propNames.REPEAT].split( splitter ); + positions = cs[propNames.POSITION].split( splitter ); + origins = cs[propNames.ORIGIN].split( splitter ); + clips = cs[propNames.CLIP].split( splitter ); + sizes = cs[propNames.SIZE].split( splitter ); + + props.bgImages = []; + for( i = 0; i < len; i++ ) { + image = images[ i ]; + if( image && image !== 'none' ) { + sizeParts = sizes[i].split( ' ' ); + props.bgImages.push( { + origString: image + ' ' + repeats[ i ] + ' ' + positions[ i ] + ' / ' + sizes[ i ] + ' ' + + origins[ i ] + ' ' + clips[ i ], + imgType: 'image', + imgUrl: new PIE.Tokenizer( image ).next().tokenValue, + imgRepeat: repeats[ i ], + bgPosition: new PIE.BgPosition( new PIE.Tokenizer( positions[ i ] ).all() ), + bgOrigin: origins[ i ], + bgClip: clips[ i ], + bgSize: new PIE.BgSize( sizeParts[ 0 ], sizeParts[ 1 ] ) + } ); + } + } + } + } + ); + } + + return ( props.color || props.bgImages[0] ) ? props : null; + }, + + /** + * Execute a function with the actual background styles (not overridden with runtimeStyle + * properties set by the renderers) available via currentStyle. + * @param fn + */ + withActualBg: function( fn ) { + var isIE9 = PIE.ieDocMode > 8, + propNames = this.propertyNames, + rs = this.targetElement.runtimeStyle, + rsImage = rs[propNames.IMAGE], + rsColor = rs[propNames.COLOR], + rsRepeat = rs[propNames.REPEAT], + rsClip, rsOrigin, rsSize, rsPosition, ret; + + if( rsImage ) rs[propNames.IMAGE] = ''; + if( rsColor ) rs[propNames.COLOR] = ''; + if( rsRepeat ) rs[propNames.REPEAT] = ''; + if( isIE9 ) { + rsClip = rs[propNames.CLIP]; + rsOrigin = rs[propNames.ORIGIN]; + rsPosition = rs[propNames.POSITION]; + rsSize = rs[propNames.SIZE]; + if( rsClip ) rs[propNames.CLIP] = ''; + if( rsOrigin ) rs[propNames.ORIGIN] = ''; + if( rsPosition ) rs[propNames.POSITION] = ''; + if( rsSize ) rs[propNames.SIZE] = ''; + } + + ret = fn.call( this ); + + if( rsImage ) rs[propNames.IMAGE] = rsImage; + if( rsColor ) rs[propNames.COLOR] = rsColor; + if( rsRepeat ) rs[propNames.REPEAT] = rsRepeat; + if( isIE9 ) { + if( rsClip ) rs[propNames.CLIP] = rsClip; + if( rsOrigin ) rs[propNames.ORIGIN] = rsOrigin; + if( rsPosition ) rs[propNames.POSITION] = rsPosition; + if( rsSize ) rs[propNames.SIZE] = rsSize; + } + + return ret; + }, + + getCss: PIE.StyleInfoBase.cacheWhenLocked( function() { + return this.getCss3() || + this.withActualBg( function() { + var cs = this.targetElement.currentStyle, + propNames = this.propertyNames; + return cs[propNames.COLOR] + ' ' + cs[propNames.IMAGE] + ' ' + cs[propNames.REPEAT] + ' ' + + cs[propNames.POSITION + 'X'] + ' ' + cs[propNames.POSITION + 'Y']; + } ); + } ), + + getCss3: PIE.StyleInfoBase.cacheWhenLocked( function() { + var el = this.targetElement; + return el.style[ this.styleProperty ] || el.currentStyle.getAttribute( this.cssProperty ); + } ), + + /** + * Tests if style.PiePngFix or the -pie-png-fix property is set to true in IE6. + */ + isPngFix: function() { + var val = 0, el; + if( PIE.ieVersion < 7 ) { + el = this.targetElement; + val = ( '' + ( el.style[ PIE.STYLE_PREFIX + 'PngFix' ] || el.currentStyle.getAttribute( PIE.CSS_PREFIX + 'png-fix' ) ) === 'true' ); + } + return val; + }, + + /** + * The isActive logic is slightly different, because getProps() always returns an object + * even if it is just falling back to the native background properties. But we only want + * to report is as being "active" if either the -pie-background override property is present + * and parses successfully or '-pie-png-fix' is set to true in IE6. + */ + isActive: PIE.StyleInfoBase.cacheWhenLocked( function() { + return (this.getCss3() || this.isPngFix()) && !!this.getProps(); + } ) + +} );/** + * Handles parsing, caching, and detecting changes to border CSS + * @constructor + * @param {Element} el the target element + */ +PIE.BorderStyleInfo = PIE.StyleInfoBase.newStyleInfo( { + + sides: [ 'Top', 'Right', 'Bottom', 'Left' ], + namedWidths: { + 'thin': '1px', + 'medium': '3px', + 'thick': '5px' + }, + + parseCss: function( css ) { + var w = {}, + s = {}, + c = {}, + active = false, + colorsSame = true, + stylesSame = true, + widthsSame = true; + + this.withActualBorder( function() { + var el = this.targetElement, + cs = el.currentStyle, + i = 0, + style, color, width, lastStyle, lastColor, lastWidth, side, ltr; + for( ; i < 4; i++ ) { + side = this.sides[ i ]; + + ltr = side.charAt(0).toLowerCase(); + style = s[ ltr ] = cs[ 'border' + side + 'Style' ]; + color = cs[ 'border' + side + 'Color' ]; + width = cs[ 'border' + side + 'Width' ]; + + if( i > 0 ) { + if( style !== lastStyle ) { stylesSame = false; } + if( color !== lastColor ) { colorsSame = false; } + if( width !== lastWidth ) { widthsSame = false; } + } + lastStyle = style; + lastColor = color; + lastWidth = width; + + c[ ltr ] = PIE.getColor( color ); + + width = w[ ltr ] = PIE.getLength( s[ ltr ] === 'none' ? '0' : ( this.namedWidths[ width ] || width ) ); + if( width.pixels( this.targetElement ) > 0 ) { + active = true; + } + } + } ); + + return active ? { + widths: w, + styles: s, + colors: c, + widthsSame: widthsSame, + colorsSame: colorsSame, + stylesSame: stylesSame + } : null; + }, + + getCss: PIE.StyleInfoBase.cacheWhenLocked( function() { + var el = this.targetElement, + cs = el.currentStyle, + css; + + // Don't redraw or hide borders for cells in border-collapse:collapse tables + if( !( el.tagName in PIE.tableCellTags && el.offsetParent.currentStyle.borderCollapse === 'collapse' ) ) { + this.withActualBorder( function() { + css = cs.borderWidth + '|' + cs.borderStyle + '|' + cs.borderColor; + } ); + } + return css; + } ), + + /** + * Execute a function with the actual border styles (not overridden with runtimeStyle + * properties set by the renderers) available via currentStyle. + * @param fn + */ + withActualBorder: function( fn ) { + var rs = this.targetElement.runtimeStyle, + rsWidth = rs.borderWidth, + rsColor = rs.borderColor, + ret; + + if( rsWidth ) rs.borderWidth = ''; + if( rsColor ) rs.borderColor = ''; + + ret = fn.call( this ); + + if( rsWidth ) rs.borderWidth = rsWidth; + if( rsColor ) rs.borderColor = rsColor; + + return ret; + } + +} ); +/** + * Handles parsing, caching, and detecting changes to border-radius CSS + * @constructor + * @param {Element} el the target element + */ +(function() { + +PIE.BorderRadiusStyleInfo = PIE.StyleInfoBase.newStyleInfo( { + + cssProperty: 'border-radius', + styleProperty: 'borderRadius', + + parseCss: function( css ) { + var p = null, x, y, + tokenizer, token, length, + hasNonZero = false; + + if( css ) { + tokenizer = new PIE.Tokenizer( css ); + + function collectLengths() { + var arr = [], num; + while( ( token = tokenizer.next() ) && token.isLengthOrPercent() ) { + length = PIE.getLength( token.tokenValue ); + num = length.getNumber(); + if( num < 0 ) { + return null; + } + if( num > 0 ) { + hasNonZero = true; + } + arr.push( length ); + } + return arr.length > 0 && arr.length < 5 ? { + 'tl': arr[0], + 'tr': arr[1] || arr[0], + 'br': arr[2] || arr[0], + 'bl': arr[3] || arr[1] || arr[0] + } : null; + } + + // Grab the initial sequence of lengths + if( x = collectLengths() ) { + // See if there is a slash followed by more lengths, for the y-axis radii + if( token ) { + if( token.tokenType & PIE.Tokenizer.Type.OPERATOR && token.tokenValue === '/' ) { + y = collectLengths(); + } + } else { + y = x; + } + + // Treat all-zero values the same as no value + if( hasNonZero && x && y ) { + p = { x: x, y : y }; + } + } + } + + return p; + } +} ); + +var zero = PIE.getLength( '0' ), + zeros = { 'tl': zero, 'tr': zero, 'br': zero, 'bl': zero }; +PIE.BorderRadiusStyleInfo.ALL_ZERO = { x: zeros, y: zeros }; + +})();/** + * Handles parsing, caching, and detecting changes to border-image CSS + * @constructor + * @param {Element} el the target element + */ +PIE.BorderImageStyleInfo = PIE.StyleInfoBase.newStyleInfo( { + + cssProperty: 'border-image', + styleProperty: 'borderImage', + + repeatIdents: { 'stretch':1, 'round':1, 'repeat':1, 'space':1 }, + + parseCss: function( css ) { + var p = null, tokenizer, token, type, value, + slices, widths, outsets, + slashCount = 0, + Type = PIE.Tokenizer.Type, + IDENT = Type.IDENT, + NUMBER = Type.NUMBER, + PERCENT = Type.PERCENT; + + if( css ) { + tokenizer = new PIE.Tokenizer( css ); + p = {}; + + function isSlash( token ) { + return token && ( token.tokenType & Type.OPERATOR ) && ( token.tokenValue === '/' ); + } + + function isFillIdent( token ) { + return token && ( token.tokenType & IDENT ) && ( token.tokenValue === 'fill' ); + } + + function collectSlicesEtc() { + slices = tokenizer.until( function( tok ) { + return !( tok.tokenType & ( NUMBER | PERCENT ) ); + } ); + + if( isFillIdent( tokenizer.next() ) && !p.fill ) { + p.fill = true; + } else { + tokenizer.prev(); + } + + if( isSlash( tokenizer.next() ) ) { + slashCount++; + widths = tokenizer.until( function( token ) { + return !token.isLengthOrPercent() && !( ( token.tokenType & IDENT ) && token.tokenValue === 'auto' ); + } ); + + if( isSlash( tokenizer.next() ) ) { + slashCount++; + outsets = tokenizer.until( function( token ) { + return !token.isLength(); + } ); + } + } else { + tokenizer.prev(); + } + } + + while( token = tokenizer.next() ) { + type = token.tokenType; + value = token.tokenValue; + + // Numbers and/or 'fill' keyword: slice values. May be followed optionally by width values, followed optionally by outset values + if( type & ( NUMBER | PERCENT ) && !slices ) { + tokenizer.prev(); + collectSlicesEtc(); + } + else if( isFillIdent( token ) && !p.fill ) { + p.fill = true; + collectSlicesEtc(); + } + + // Idents: one or values for 'repeat' + else if( ( type & IDENT ) && this.repeatIdents[value] && !p.repeat ) { + p.repeat = { h: value }; + if( token = tokenizer.next() ) { + if( ( token.tokenType & IDENT ) && this.repeatIdents[token.tokenValue] ) { + p.repeat.v = token.tokenValue; + } else { + tokenizer.prev(); + } + } + } + + // URL of the image + else if( ( type & Type.URL ) && !p.src ) { + p.src = value; + } + + // Found something unrecognized; exit. + else { + return null; + } + } + + // Validate what we collected + if( !p.src || !slices || slices.length < 1 || slices.length > 4 || + ( widths && widths.length > 4 ) || ( slashCount === 1 && widths.length < 1 ) || + ( outsets && outsets.length > 4 ) || ( slashCount === 2 && outsets.length < 1 ) ) { + return null; + } + + // Fill in missing values + if( !p.repeat ) { + p.repeat = { h: 'stretch' }; + } + if( !p.repeat.v ) { + p.repeat.v = p.repeat.h; + } + + function distributeSides( tokens, convertFn ) { + return { + 't': convertFn( tokens[0] ), + 'r': convertFn( tokens[1] || tokens[0] ), + 'b': convertFn( tokens[2] || tokens[0] ), + 'l': convertFn( tokens[3] || tokens[1] || tokens[0] ) + }; + } + + p.slice = distributeSides( slices, function( tok ) { + return PIE.getLength( ( tok.tokenType & NUMBER ) ? tok.tokenValue + 'px' : tok.tokenValue ); + } ); + + if( widths && widths[0] ) { + p.widths = distributeSides( widths, function( tok ) { + return tok.isLengthOrPercent() ? PIE.getLength( tok.tokenValue ) : tok.tokenValue; + } ); + } + + if( outsets && outsets[0] ) { + p.outset = distributeSides( outsets, function( tok ) { + return tok.isLength() ? PIE.getLength( tok.tokenValue ) : tok.tokenValue; + } ); + } + } + + return p; + } + +} );/** + * Handles parsing, caching, and detecting changes to box-shadow CSS + * @constructor + * @param {Element} el the target element + */ +PIE.BoxShadowStyleInfo = PIE.StyleInfoBase.newStyleInfo( { + + cssProperty: 'box-shadow', + styleProperty: 'boxShadow', + + parseCss: function( css ) { + var props, + getLength = PIE.getLength, + Type = PIE.Tokenizer.Type, + tokenizer; + + if( css ) { + tokenizer = new PIE.Tokenizer( css ); + props = { outset: [], inset: [] }; + + function parseItem() { + var token, type, value, color, lengths, inset, len; + + while( token = tokenizer.next() ) { + value = token.tokenValue; + type = token.tokenType; + + if( type & Type.OPERATOR && value === ',' ) { + break; + } + else if( token.isLength() && !lengths ) { + tokenizer.prev(); + lengths = tokenizer.until( function( token ) { + return !token.isLength(); + } ); + } + else if( type & Type.COLOR && !color ) { + color = value; + } + else if( type & Type.IDENT && value === 'inset' && !inset ) { + inset = true; + } + else { //encountered an unrecognized token; fail. + return false; + } + } + + len = lengths && lengths.length; + if( len > 1 && len < 5 ) { + ( inset ? props.inset : props.outset ).push( { + xOffset: getLength( lengths[0].tokenValue ), + yOffset: getLength( lengths[1].tokenValue ), + blur: getLength( lengths[2] ? lengths[2].tokenValue : '0' ), + spread: getLength( lengths[3] ? lengths[3].tokenValue : '0' ), + color: PIE.getColor( color || 'currentColor' ) + } ); + return true; + } + return false; + } + + while( parseItem() ) {} + } + + return props && ( props.inset.length || props.outset.length ) ? props : null; + } +} ); +/** + * Retrieves the state of the element's visibility and display + * @constructor + * @param {Element} el the target element + */ +PIE.VisibilityStyleInfo = PIE.StyleInfoBase.newStyleInfo( { + + getCss: PIE.StyleInfoBase.cacheWhenLocked( function() { + var cs = this.targetElement.currentStyle; + return cs.visibility + '|' + cs.display; + } ), + + parseCss: function() { + var el = this.targetElement, + rs = el.runtimeStyle, + cs = el.currentStyle, + rsVis = rs.visibility, + csVis; + + rs.visibility = ''; + csVis = cs.visibility; + rs.visibility = rsVis; + + return { + visible: csVis !== 'hidden', + displayed: cs.display !== 'none' + } + }, + + /** + * Always return false for isActive, since this property alone will not trigger + * a renderer to do anything. + */ + isActive: function() { + return false; + } + +} ); +PIE.RendererBase = { + + /** + * Create a new Renderer class, with the standard constructor, and augmented by + * the RendererBase's members. + * @param proto + */ + newRenderer: function( proto ) { + function Renderer( el, boundsInfo, styleInfos, parent ) { + this.targetElement = el; + this.boundsInfo = boundsInfo; + this.styleInfos = styleInfos; + this.parent = parent; + } + PIE.Util.merge( Renderer.prototype, PIE.RendererBase, proto ); + return Renderer; + }, + + /** + * Flag indicating the element has already been positioned at least once. + * @type {boolean} + */ + isPositioned: false, + + /** + * Determine if the renderer needs to be updated + * @return {boolean} + */ + needsUpdate: function() { + return false; + }, + + /** + * Run any preparation logic that would affect the main update logic of this + * renderer or any of the other renderers, e.g. things that might affect the + * element's size or style properties. + */ + prepareUpdate: PIE.emptyFn, + + /** + * Tell the renderer to update based on modified properties + */ + updateProps: function() { + this.destroy(); + if( this.isActive() ) { + this.draw(); + } + }, + + /** + * Tell the renderer to update based on modified element position + */ + updatePos: function() { + this.isPositioned = true; + }, + + /** + * Tell the renderer to update based on modified element dimensions + */ + updateSize: function() { + if( this.isActive() ) { + this.draw(); + } else { + this.destroy(); + } + }, + + + /** + * Add a layer element, with the given z-order index, to the renderer's main box element. We can't use + * z-index because that breaks when the root rendering box's z-index is 'auto' in IE8+ standards mode. + * So instead we make sure they are inserted into the DOM in the correct order. + * @param {number} index + * @param {Element} el + */ + addLayer: function( index, el ) { + this.removeLayer( index ); + for( var layers = this._layers || ( this._layers = [] ), i = index + 1, len = layers.length, layer; i < len; i++ ) { + layer = layers[i]; + if( layer ) { + break; + } + } + layers[index] = el; + this.getBox().insertBefore( el, layer || null ); + }, + + /** + * Retrieve a layer element by its index, or null if not present + * @param {number} index + * @return {Element} + */ + getLayer: function( index ) { + var layers = this._layers; + return layers && layers[index] || null; + }, + + /** + * Remove a layer element by its index + * @param {number} index + */ + removeLayer: function( index ) { + var layer = this.getLayer( index ), + box = this._box; + if( layer && box ) { + box.removeChild( layer ); + this._layers[index] = null; + } + }, + + + /** + * Get a VML shape by name, creating it if necessary. + * @param {string} name A name identifying the element + * @param {string=} subElName If specified a subelement of the shape will be created with this tag name + * @param {Element} parent The parent element for the shape; will be ignored if 'group' is specified + * @param {number=} group If specified, an ordinal group for the shape. 1 or greater. Groups are rendered + * using container elements in the correct order, to get correct z stacking without z-index. + */ + getShape: function( name, subElName, parent, group ) { + var shapes = this._shapes || ( this._shapes = {} ), + shape = shapes[ name ], + s; + + if( !shape ) { + shape = shapes[ name ] = PIE.Util.createVmlElement( 'shape' ); + if( subElName ) { + shape.appendChild( shape[ subElName ] = PIE.Util.createVmlElement( subElName ) ); + } + + if( group ) { + parent = this.getLayer( group ); + if( !parent ) { + this.addLayer( group, doc.createElement( 'group' + group ) ); + parent = this.getLayer( group ); + } + } + + parent.appendChild( shape ); + + s = shape.style; + s.position = 'absolute'; + s.left = s.top = 0; + s['behavior'] = 'url(#default#VML)'; + } + return shape; + }, + + /** + * Delete a named shape which was created by getShape(). Returns true if a shape with the + * given name was found and deleted, or false if there was no shape of that name. + * @param {string} name + * @return {boolean} + */ + deleteShape: function( name ) { + var shapes = this._shapes, + shape = shapes && shapes[ name ]; + if( shape ) { + shape.parentNode.removeChild( shape ); + delete shapes[ name ]; + } + return !!shape; + }, + + + /** + * For a given set of border radius length/percentage values, convert them to concrete pixel + * values based on the current size of the target element. + * @param {Object} radii + * @return {Object} + */ + getRadiiPixels: function( radii ) { + var el = this.targetElement, + bounds = this.boundsInfo.getBounds(), + w = bounds.w, + h = bounds.h, + tlX, tlY, trX, trY, brX, brY, blX, blY, f; + + tlX = radii.x['tl'].pixels( el, w ); + tlY = radii.y['tl'].pixels( el, h ); + trX = radii.x['tr'].pixels( el, w ); + trY = radii.y['tr'].pixels( el, h ); + brX = radii.x['br'].pixels( el, w ); + brY = radii.y['br'].pixels( el, h ); + blX = radii.x['bl'].pixels( el, w ); + blY = radii.y['bl'].pixels( el, h ); + + // If any corner ellipses overlap, reduce them all by the appropriate factor. This formula + // is taken straight from the CSS3 Backgrounds and Borders spec. + f = Math.min( + w / ( tlX + trX ), + h / ( trY + brY ), + w / ( blX + brX ), + h / ( tlY + blY ) + ); + if( f < 1 ) { + tlX *= f; + tlY *= f; + trX *= f; + trY *= f; + brX *= f; + brY *= f; + blX *= f; + blY *= f; + } + + return { + x: { + 'tl': tlX, + 'tr': trX, + 'br': brX, + 'bl': blX + }, + y: { + 'tl': tlY, + 'tr': trY, + 'br': brY, + 'bl': blY + } + } + }, + + /** + * Return the VML path string for the element's background box, with corners rounded. + * @param {Object.<{t:number, r:number, b:number, l:number}>} shrink - if present, specifies number of + * pixels to shrink the box path inward from the element's four sides. + * @param {number=} mult If specified, all coordinates will be multiplied by this number + * @param {Object=} radii If specified, this will be used for the corner radii instead of the properties + * from this renderer's borderRadiusInfo object. + * @return {string} the VML path + */ + getBoxPath: function( shrink, mult, radii ) { + mult = mult || 1; + + var r, str, + bounds = this.boundsInfo.getBounds(), + w = bounds.w * mult, + h = bounds.h * mult, + radInfo = this.styleInfos.borderRadiusInfo, + floor = Math.floor, ceil = Math.ceil, + shrinkT = shrink ? shrink.t * mult : 0, + shrinkR = shrink ? shrink.r * mult : 0, + shrinkB = shrink ? shrink.b * mult : 0, + shrinkL = shrink ? shrink.l * mult : 0, + tlX, tlY, trX, trY, brX, brY, blX, blY; + + if( radii || radInfo.isActive() ) { + r = this.getRadiiPixels( radii || radInfo.getProps() ); + + tlX = r.x['tl'] * mult; + tlY = r.y['tl'] * mult; + trX = r.x['tr'] * mult; + trY = r.y['tr'] * mult; + brX = r.x['br'] * mult; + brY = r.y['br'] * mult; + blX = r.x['bl'] * mult; + blY = r.y['bl'] * mult; + + str = 'm' + floor( shrinkL ) + ',' + floor( tlY ) + + 'qy' + floor( tlX ) + ',' + floor( shrinkT ) + + 'l' + ceil( w - trX ) + ',' + floor( shrinkT ) + + 'qx' + ceil( w - shrinkR ) + ',' + floor( trY ) + + 'l' + ceil( w - shrinkR ) + ',' + ceil( h - brY ) + + 'qy' + ceil( w - brX ) + ',' + ceil( h - shrinkB ) + + 'l' + floor( blX ) + ',' + ceil( h - shrinkB ) + + 'qx' + floor( shrinkL ) + ',' + ceil( h - blY ) + ' x e'; + } else { + // simplified path for non-rounded box + str = 'm' + floor( shrinkL ) + ',' + floor( shrinkT ) + + 'l' + ceil( w - shrinkR ) + ',' + floor( shrinkT ) + + 'l' + ceil( w - shrinkR ) + ',' + ceil( h - shrinkB ) + + 'l' + floor( shrinkL ) + ',' + ceil( h - shrinkB ) + + 'xe'; + } + return str; + }, + + + /** + * Get the container element for the shapes, creating it if necessary. + */ + getBox: function() { + var box = this.parent.getLayer( this.boxZIndex ), s; + + if( !box ) { + box = doc.createElement( this.boxName ); + s = box.style; + s.position = 'absolute'; + s.top = s.left = 0; + this.parent.addLayer( this.boxZIndex, box ); + } + + return box; + }, + + + /** + * Hide the actual border of the element. In IE7 and up we can just set its color to transparent; + * however IE6 does not support transparent borders so we have to get tricky with it. Also, some elements + * like form buttons require removing the border width altogether, so for those we increase the padding + * by the border size. + */ + hideBorder: function() { + var el = this.targetElement, + cs = el.currentStyle, + rs = el.runtimeStyle, + tag = el.tagName, + isIE6 = PIE.ieVersion === 6, + sides, side, i; + + if( ( isIE6 && ( tag in PIE.childlessElements || tag === 'FIELDSET' ) ) || + tag === 'BUTTON' || ( tag === 'INPUT' && el.type in PIE.inputButtonTypes ) ) { + rs.borderWidth = ''; + sides = this.styleInfos.borderInfo.sides; + for( i = sides.length; i--; ) { + side = sides[ i ]; + rs[ 'padding' + side ] = ''; + rs[ 'padding' + side ] = ( PIE.getLength( cs[ 'padding' + side ] ) ).pixels( el ) + + ( PIE.getLength( cs[ 'border' + side + 'Width' ] ) ).pixels( el ) + + ( PIE.ieVersion !== 8 && i % 2 ? 1 : 0 ); //needs an extra horizontal pixel to counteract the extra "inner border" going away + } + rs.borderWidth = 0; + } + else if( isIE6 ) { + // Wrap all the element's children in a custom element, set the element to visiblity:hidden, + // and set the wrapper element to visiblity:visible. This hides the outer element's decorations + // (background and border) but displays all the contents. + // TODO find a better way to do this that doesn't mess up the DOM parent-child relationship, + // as this can interfere with other author scripts which add/modify/delete children. Also, this + // won't work for elements which cannot take children, e.g. input/button/textarea/img/etc. Look into + // using a compositor filter or some other filter which masks the border. + if( el.childNodes.length !== 1 || el.firstChild.tagName !== 'ie6-mask' ) { + var cont = doc.createElement( 'ie6-mask' ), + s = cont.style, child; + s.visibility = 'visible'; + s.zoom = 1; + while( child = el.firstChild ) { + cont.appendChild( child ); + } + el.appendChild( cont ); + rs.visibility = 'hidden'; + } + } + else { + rs.borderColor = 'transparent'; + } + }, + + unhideBorder: function() { + + }, + + + /** + * Destroy the rendered objects. This is a base implementation which handles common renderer + * structures, but individual renderers may override as necessary. + */ + destroy: function() { + this.parent.removeLayer( this.boxZIndex ); + delete this._shapes; + delete this._layers; + } +}; +/** + * Root renderer; creates the outermost container element and handles keeping it aligned + * with the target element's size and position. + * @param {Element} el The target element + * @param {Object} styleInfos The StyleInfo objects + */ +PIE.RootRenderer = PIE.RendererBase.newRenderer( { + + isActive: function() { + var children = this.childRenderers; + for( var i in children ) { + if( children.hasOwnProperty( i ) && children[ i ].isActive() ) { + return true; + } + } + return false; + }, + + needsUpdate: function() { + return this.styleInfos.visibilityInfo.changed(); + }, + + updatePos: function() { + if( this.isActive() ) { + var el = this.getPositioningElement(), + par = el, + docEl, + parRect, + tgtCS = el.currentStyle, + tgtPos = tgtCS.position, + boxPos, + s = this.getBox().style, cs, + x = 0, y = 0, + elBounds = this.boundsInfo.getBounds(), + logicalZoomRatio = elBounds.logicalZoomRatio; + + if( tgtPos === 'fixed' && PIE.ieVersion > 6 ) { + x = elBounds.x * logicalZoomRatio; + y = elBounds.y * logicalZoomRatio; + boxPos = tgtPos; + } else { + // Get the element's offsets from its nearest positioned ancestor. Uses + // getBoundingClientRect for accuracy and speed. + do { + par = par.offsetParent; + } while( par && ( par.currentStyle.position === 'static' ) ); + if( par ) { + parRect = par.getBoundingClientRect(); + cs = par.currentStyle; + x = ( elBounds.x - parRect.left ) * logicalZoomRatio - ( parseFloat(cs.borderLeftWidth) || 0 ); + y = ( elBounds.y - parRect.top ) * logicalZoomRatio - ( parseFloat(cs.borderTopWidth) || 0 ); + } else { + docEl = doc.documentElement; + x = ( elBounds.x + docEl.scrollLeft - docEl.clientLeft ) * logicalZoomRatio; + y = ( elBounds.y + docEl.scrollTop - docEl.clientTop ) * logicalZoomRatio; + } + boxPos = 'absolute'; + } + + s.position = boxPos; + s.left = x; + s.top = y; + s.zIndex = tgtPos === 'static' ? -1 : tgtCS.zIndex; + this.isPositioned = true; + } + }, + + updateSize: PIE.emptyFn, + + updateVisibility: function() { + var vis = this.styleInfos.visibilityInfo.getProps(); + this.getBox().style.display = ( vis.visible && vis.displayed ) ? '' : 'none'; + }, + + updateProps: function() { + if( this.isActive() ) { + this.updateVisibility(); + } else { + this.destroy(); + } + }, + + getPositioningElement: function() { + var el = this.targetElement; + return el.tagName in PIE.tableCellTags ? el.offsetParent : el; + }, + + getBox: function() { + var box = this._box, el; + if( !box ) { + el = this.getPositioningElement(); + box = this._box = doc.createElement( 'css3-container' ); + box.style['direction'] = 'ltr'; //fix positioning bug in rtl environments + + this.updateVisibility(); + + el.parentNode.insertBefore( box, el ); + } + return box; + }, + + finishUpdate: PIE.emptyFn, + + destroy: function() { + var box = this._box, par; + if( box && ( par = box.parentNode ) ) { + par.removeChild( box ); + } + delete this._box; + delete this._layers; + } + +} ); +/** + * Renderer for element backgrounds. + * @constructor + * @param {Element} el The target element + * @param {Object} styleInfos The StyleInfo objects + * @param {PIE.RootRenderer} parent + */ +PIE.BackgroundRenderer = PIE.RendererBase.newRenderer( { + + boxZIndex: 2, + boxName: 'background', + + needsUpdate: function() { + var si = this.styleInfos; + return si.backgroundInfo.changed() || si.borderRadiusInfo.changed(); + }, + + isActive: function() { + var si = this.styleInfos; + return si.borderImageInfo.isActive() || + si.borderRadiusInfo.isActive() || + si.backgroundInfo.isActive() || + ( si.boxShadowInfo.isActive() && si.boxShadowInfo.getProps().inset ); + }, + + /** + * Draw the shapes + */ + draw: function() { + var bounds = this.boundsInfo.getBounds(); + if( bounds.w && bounds.h ) { + this.drawBgColor(); + this.drawBgImages(); + } + }, + + /** + * Draw the background color shape + */ + drawBgColor: function() { + var props = this.styleInfos.backgroundInfo.getProps(), + bounds = this.boundsInfo.getBounds(), + el = this.targetElement, + color = props && props.color, + shape, w, h, s, alpha; + + if( color && color.alpha() > 0 ) { + this.hideBackground(); + + shape = this.getShape( 'bgColor', 'fill', this.getBox(), 1 ); + w = bounds.w; + h = bounds.h; + shape.stroked = false; + shape.coordsize = w * 2 + ',' + h * 2; + shape.coordorigin = '1,1'; + shape.path = this.getBoxPath( null, 2 ); + s = shape.style; + s.width = w; + s.height = h; + shape.fill.color = color.colorValue( el ); + + alpha = color.alpha(); + if( alpha < 1 ) { + shape.fill.opacity = alpha; + } + } else { + this.deleteShape( 'bgColor' ); + } + }, + + /** + * Draw all the background image layers + */ + drawBgImages: function() { + var props = this.styleInfos.backgroundInfo.getProps(), + bounds = this.boundsInfo.getBounds(), + images = props && props.bgImages, + img, shape, w, h, s, i; + + if( images ) { + this.hideBackground(); + + w = bounds.w; + h = bounds.h; + + i = images.length; + while( i-- ) { + img = images[i]; + shape = this.getShape( 'bgImage' + i, 'fill', this.getBox(), 2 ); + + shape.stroked = false; + shape.fill.type = 'tile'; + shape.fillcolor = 'none'; + shape.coordsize = w * 2 + ',' + h * 2; + shape.coordorigin = '1,1'; + shape.path = this.getBoxPath( 0, 2 ); + s = shape.style; + s.width = w; + s.height = h; + + if( img.imgType === 'linear-gradient' ) { + this.addLinearGradient( shape, img ); + } + else { + shape.fill.src = img.imgUrl; + this.positionBgImage( shape, i ); + } + } + } + + // Delete any bgImage shapes previously created which weren't used above + i = images ? images.length : 0; + while( this.deleteShape( 'bgImage' + i++ ) ) {} + }, + + + /** + * Set the position and clipping of the background image for a layer + * @param {Element} shape + * @param {number} index + */ + positionBgImage: function( shape, index ) { + var me = this; + PIE.Util.withImageSize( shape.fill.src, function( size ) { + var el = me.targetElement, + bounds = me.boundsInfo.getBounds(), + elW = bounds.w, + elH = bounds.h; + + // It's possible that the element dimensions are zero now but weren't when the original + // update executed, make sure that's not the case to avoid divide-by-zero error + if( elW && elH ) { + var fill = shape.fill, + si = me.styleInfos, + border = si.borderInfo.getProps(), + bw = border && border.widths, + bwT = bw ? bw['t'].pixels( el ) : 0, + bwR = bw ? bw['r'].pixels( el ) : 0, + bwB = bw ? bw['b'].pixels( el ) : 0, + bwL = bw ? bw['l'].pixels( el ) : 0, + bg = si.backgroundInfo.getProps().bgImages[ index ], + bgPos = bg.bgPosition ? bg.bgPosition.coords( el, elW - size.w - bwL - bwR, elH - size.h - bwT - bwB ) : { x:0, y:0 }, + repeat = bg.imgRepeat, + pxX, pxY, + clipT = 0, clipL = 0, + clipR = elW + 1, clipB = elH + 1, //make sure the default clip region is not inside the box (by a subpixel) + clipAdjust = PIE.ieVersion === 8 ? 0 : 1; //prior to IE8 requires 1 extra pixel in the image clip region + + // Positioning - find the pixel offset from the top/left and convert to a ratio + // The position is shifted by half a pixel, to adjust for the half-pixel coordorigin shift which is + // needed to fix antialiasing but makes the bg image fuzzy. + pxX = Math.round( bgPos.x ) + bwL + 0.5; + pxY = Math.round( bgPos.y ) + bwT + 0.5; + fill.position = ( pxX / elW ) + ',' + ( pxY / elH ); + + // Set the size of the image. We have to actually set it to px values otherwise it will not honor + // the user's browser zoom level and always display at its natural screen size. + fill['size']['x'] = 1; //Can be any value, just has to be set to "prime" it so the next line works. Weird! + fill['size'] = size.w + 'px,' + size.h + 'px'; + + // Repeating - clip the image shape + if( repeat && repeat !== 'repeat' ) { + if( repeat === 'repeat-x' || repeat === 'no-repeat' ) { + clipT = pxY + 1; + clipB = pxY + size.h + clipAdjust; + } + if( repeat === 'repeat-y' || repeat === 'no-repeat' ) { + clipL = pxX + 1; + clipR = pxX + size.w + clipAdjust; + } + shape.style.clip = 'rect(' + clipT + 'px,' + clipR + 'px,' + clipB + 'px,' + clipL + 'px)'; + } + } + } ); + }, + + + /** + * Draw the linear gradient for a gradient layer + * @param {Element} shape + * @param {Object} info The object holding the information about the gradient + */ + addLinearGradient: function( shape, info ) { + var el = this.targetElement, + bounds = this.boundsInfo.getBounds(), + w = bounds.w, + h = bounds.h, + fill = shape.fill, + stops = info.stops, + stopCount = stops.length, + PI = Math.PI, + GradientUtil = PIE.GradientUtil, + perpendicularIntersect = GradientUtil.perpendicularIntersect, + distance = GradientUtil.distance, + metrics = GradientUtil.getGradientMetrics( el, w, h, info ), + angle = metrics.angle, + startX = metrics.startX, + startY = metrics.startY, + startCornerX = metrics.startCornerX, + startCornerY = metrics.startCornerY, + endCornerX = metrics.endCornerX, + endCornerY = metrics.endCornerY, + deltaX = metrics.deltaX, + deltaY = metrics.deltaY, + lineLength = metrics.lineLength, + vmlAngle, vmlGradientLength, vmlColors, + stopPx, vmlOffsetPct, + p, i, j, before, after; + + // In VML land, the angle of the rendered gradient depends on the aspect ratio of the shape's + // bounding box; for example specifying a 45 deg angle actually results in a gradient + // drawn diagonally from one corner to its opposite corner, which will only appear to the + // viewer as 45 degrees if the shape is equilateral. We adjust for this by taking the x/y deltas + // between the start and end points, multiply one of them by the shape's aspect ratio, + // and get their arctangent, resulting in an appropriate VML angle. If the angle is perfectly + // horizontal or vertical then we don't need to do this conversion. + vmlAngle = ( angle % 90 ) ? Math.atan2( deltaX * w / h, deltaY ) / PI * 180 : ( angle + 90 ); + + // VML angles are 180 degrees offset from CSS angles + vmlAngle += 180; + vmlAngle = vmlAngle % 360; + + // Add all the stops to the VML 'colors' list, including the first and last stops. + // For each, we find its pixel offset along the gradient-line; if the offset of a stop is less + // than that of its predecessor we increase it to be equal. We then map that pixel offset to a + // percentage along the VML gradient-line, which runs from shape corner to corner. + p = perpendicularIntersect( startCornerX, startCornerY, angle, endCornerX, endCornerY ); + vmlGradientLength = distance( startCornerX, startCornerY, p[0], p[1] ); + vmlColors = []; + p = perpendicularIntersect( startX, startY, angle, startCornerX, startCornerY ); + vmlOffsetPct = distance( startX, startY, p[0], p[1] ) / vmlGradientLength * 100; + + // Find the pixel offsets along the CSS3 gradient-line for each stop. + stopPx = []; + for( i = 0; i < stopCount; i++ ) { + stopPx.push( stops[i].offset ? stops[i].offset.pixels( el, lineLength ) : + i === 0 ? 0 : i === stopCount - 1 ? lineLength : null ); + } + // Fill in gaps with evenly-spaced offsets + for( i = 1; i < stopCount; i++ ) { + if( stopPx[ i ] === null ) { + before = stopPx[ i - 1 ]; + j = i; + do { + after = stopPx[ ++j ]; + } while( after === null ); + stopPx[ i ] = before + ( after - before ) / ( j - i + 1 ); + } + // Make sure each stop's offset is no less than the one before it + stopPx[ i ] = Math.max( stopPx[ i ], stopPx[ i - 1 ] ); + } + + // Convert to percentage along the VML gradient line and add to the VML 'colors' value + for( i = 0; i < stopCount; i++ ) { + vmlColors.push( + ( vmlOffsetPct + ( stopPx[ i ] / vmlGradientLength * 100 ) ) + '% ' + stops[i].color.colorValue( el ) + ); + } + + // Now, finally, we're ready to render the gradient fill. Set the start and end colors to + // the first and last stop colors; this just sets outer bounds for the gradient. + fill['angle'] = vmlAngle; + fill['type'] = 'gradient'; + fill['method'] = 'sigma'; + fill['color'] = stops[0].color.colorValue( el ); + fill['color2'] = stops[stopCount - 1].color.colorValue( el ); + if( fill['colors'] ) { //sometimes the colors object isn't initialized so we have to assign it directly (?) + fill['colors'].value = vmlColors.join( ',' ); + } else { + fill['colors'] = vmlColors.join( ',' ); + } + }, + + + /** + * Hide the actual background image and color of the element. + */ + hideBackground: function() { + var rs = this.targetElement.runtimeStyle; + rs.backgroundImage = 'url(about:blank)'; //ensures the background area reacts to mouse events + rs.backgroundColor = 'transparent'; + }, + + destroy: function() { + PIE.RendererBase.destroy.call( this ); + var rs = this.targetElement.runtimeStyle; + rs.backgroundImage = rs.backgroundColor = ''; + } + +} ); +/** + * Renderer for element borders. + * @constructor + * @param {Element} el The target element + * @param {Object} styleInfos The StyleInfo objects + * @param {PIE.RootRenderer} parent + */ +PIE.BorderRenderer = PIE.RendererBase.newRenderer( { + + boxZIndex: 4, + boxName: 'border', + + needsUpdate: function() { + var si = this.styleInfos; + return si.borderInfo.changed() || si.borderRadiusInfo.changed(); + }, + + isActive: function() { + var si = this.styleInfos; + return si.borderRadiusInfo.isActive() && + !si.borderImageInfo.isActive() && + si.borderInfo.isActive(); //check BorderStyleInfo last because it's the most expensive + }, + + /** + * Draw the border shape(s) + */ + draw: function() { + var el = this.targetElement, + props = this.styleInfos.borderInfo.getProps(), + bounds = this.boundsInfo.getBounds(), + w = bounds.w, + h = bounds.h, + shape, stroke, s, + segments, seg, i, len; + + if( props ) { + this.hideBorder(); + + segments = this.getBorderSegments( 2 ); + for( i = 0, len = segments.length; i < len; i++) { + seg = segments[i]; + shape = this.getShape( 'borderPiece' + i, seg.stroke ? 'stroke' : 'fill', this.getBox() ); + shape.coordsize = w * 2 + ',' + h * 2; + shape.coordorigin = '1,1'; + shape.path = seg.path; + s = shape.style; + s.width = w; + s.height = h; + + shape.filled = !!seg.fill; + shape.stroked = !!seg.stroke; + if( seg.stroke ) { + stroke = shape.stroke; + stroke['weight'] = seg.weight + 'px'; + stroke.color = seg.color.colorValue( el ); + stroke['dashstyle'] = seg.stroke === 'dashed' ? '2 2' : seg.stroke === 'dotted' ? '1 1' : 'solid'; + stroke['linestyle'] = seg.stroke === 'double' && seg.weight > 2 ? 'ThinThin' : 'Single'; + } else { + shape.fill.color = seg.fill.colorValue( el ); + } + } + + // remove any previously-created border shapes which didn't get used above + while( this.deleteShape( 'borderPiece' + i++ ) ) {} + } + }, + + + /** + * Get the VML path definitions for the border segment(s). + * @param {number=} mult If specified, all coordinates will be multiplied by this number + * @return {Array.} + */ + getBorderSegments: function( mult ) { + var el = this.targetElement, + bounds, elW, elH, + borderInfo = this.styleInfos.borderInfo, + segments = [], + floor, ceil, wT, wR, wB, wL, + round = Math.round, + borderProps, radiusInfo, radii, widths, styles, colors; + + if( borderInfo.isActive() ) { + borderProps = borderInfo.getProps(); + + widths = borderProps.widths; + styles = borderProps.styles; + colors = borderProps.colors; + + if( borderProps.widthsSame && borderProps.stylesSame && borderProps.colorsSame ) { + if( colors['t'].alpha() > 0 ) { + // shortcut for identical border on all sides - only need 1 stroked shape + wT = widths['t'].pixels( el ); //thickness + wR = wT / 2; //shrink + segments.push( { + path: this.getBoxPath( { t: wR, r: wR, b: wR, l: wR }, mult ), + stroke: styles['t'], + color: colors['t'], + weight: wT + } ); + } + } + else { + mult = mult || 1; + bounds = this.boundsInfo.getBounds(); + elW = bounds.w; + elH = bounds.h; + + wT = round( widths['t'].pixels( el ) ); + wR = round( widths['r'].pixels( el ) ); + wB = round( widths['b'].pixels( el ) ); + wL = round( widths['l'].pixels( el ) ); + var pxWidths = { + 't': wT, + 'r': wR, + 'b': wB, + 'l': wL + }; + + radiusInfo = this.styleInfos.borderRadiusInfo; + if( radiusInfo.isActive() ) { + radii = this.getRadiiPixels( radiusInfo.getProps() ); + } + + floor = Math.floor; + ceil = Math.ceil; + + function radius( xy, corner ) { + return radii ? radii[ xy ][ corner ] : 0; + } + + function curve( corner, shrinkX, shrinkY, startAngle, ccw, doMove ) { + var rx = radius( 'x', corner), + ry = radius( 'y', corner), + deg = 65535, + isRight = corner.charAt( 1 ) === 'r', + isBottom = corner.charAt( 0 ) === 'b'; + return ( rx > 0 && ry > 0 ) ? + ( doMove ? 'al' : 'ae' ) + + ( isRight ? ceil( elW - rx ) : floor( rx ) ) * mult + ',' + // center x + ( isBottom ? ceil( elH - ry ) : floor( ry ) ) * mult + ',' + // center y + ( floor( rx ) - shrinkX ) * mult + ',' + // width + ( floor( ry ) - shrinkY ) * mult + ',' + // height + ( startAngle * deg ) + ',' + // start angle + ( 45 * deg * ( ccw ? 1 : -1 ) // angle change + ) : ( + ( doMove ? 'm' : 'l' ) + + ( isRight ? elW - shrinkX : shrinkX ) * mult + ',' + + ( isBottom ? elH - shrinkY : shrinkY ) * mult + ); + } + + function line( side, shrink, ccw, doMove ) { + var + start = ( + side === 't' ? + floor( radius( 'x', 'tl') ) * mult + ',' + ceil( shrink ) * mult : + side === 'r' ? + ceil( elW - shrink ) * mult + ',' + floor( radius( 'y', 'tr') ) * mult : + side === 'b' ? + ceil( elW - radius( 'x', 'br') ) * mult + ',' + floor( elH - shrink ) * mult : + // side === 'l' ? + floor( shrink ) * mult + ',' + ceil( elH - radius( 'y', 'bl') ) * mult + ), + end = ( + side === 't' ? + ceil( elW - radius( 'x', 'tr') ) * mult + ',' + ceil( shrink ) * mult : + side === 'r' ? + ceil( elW - shrink ) * mult + ',' + ceil( elH - radius( 'y', 'br') ) * mult : + side === 'b' ? + floor( radius( 'x', 'bl') ) * mult + ',' + floor( elH - shrink ) * mult : + // side === 'l' ? + floor( shrink ) * mult + ',' + floor( radius( 'y', 'tl') ) * mult + ); + return ccw ? ( doMove ? 'm' + end : '' ) + 'l' + start : + ( doMove ? 'm' + start : '' ) + 'l' + end; + } + + + function addSide( side, sideBefore, sideAfter, cornerBefore, cornerAfter, baseAngle ) { + var vert = side === 'l' || side === 'r', + sideW = pxWidths[ side ], + beforeX, beforeY, afterX, afterY; + + if( sideW > 0 && styles[ side ] !== 'none' && colors[ side ].alpha() > 0 ) { + beforeX = pxWidths[ vert ? side : sideBefore ]; + beforeY = pxWidths[ vert ? sideBefore : side ]; + afterX = pxWidths[ vert ? side : sideAfter ]; + afterY = pxWidths[ vert ? sideAfter : side ]; + + if( styles[ side ] === 'dashed' || styles[ side ] === 'dotted' ) { + segments.push( { + path: curve( cornerBefore, beforeX, beforeY, baseAngle + 45, 0, 1 ) + + curve( cornerBefore, 0, 0, baseAngle, 1, 0 ), + fill: colors[ side ] + } ); + segments.push( { + path: line( side, sideW / 2, 0, 1 ), + stroke: styles[ side ], + weight: sideW, + color: colors[ side ] + } ); + segments.push( { + path: curve( cornerAfter, afterX, afterY, baseAngle, 0, 1 ) + + curve( cornerAfter, 0, 0, baseAngle - 45, 1, 0 ), + fill: colors[ side ] + } ); + } + else { + segments.push( { + path: curve( cornerBefore, beforeX, beforeY, baseAngle + 45, 0, 1 ) + + line( side, sideW, 0, 0 ) + + curve( cornerAfter, afterX, afterY, baseAngle, 0, 0 ) + + + ( styles[ side ] === 'double' && sideW > 2 ? + curve( cornerAfter, afterX - floor( afterX / 3 ), afterY - floor( afterY / 3 ), baseAngle - 45, 1, 0 ) + + line( side, ceil( sideW / 3 * 2 ), 1, 0 ) + + curve( cornerBefore, beforeX - floor( beforeX / 3 ), beforeY - floor( beforeY / 3 ), baseAngle, 1, 0 ) + + 'x ' + + curve( cornerBefore, floor( beforeX / 3 ), floor( beforeY / 3 ), baseAngle + 45, 0, 1 ) + + line( side, floor( sideW / 3 ), 1, 0 ) + + curve( cornerAfter, floor( afterX / 3 ), floor( afterY / 3 ), baseAngle, 0, 0 ) + : '' ) + + + curve( cornerAfter, 0, 0, baseAngle - 45, 1, 0 ) + + line( side, 0, 1, 0 ) + + curve( cornerBefore, 0, 0, baseAngle, 1, 0 ), + fill: colors[ side ] + } ); + } + } + } + + addSide( 't', 'l', 'r', 'tl', 'tr', 90 ); + addSide( 'r', 't', 'b', 'tr', 'br', 0 ); + addSide( 'b', 'r', 'l', 'br', 'bl', -90 ); + addSide( 'l', 'b', 't', 'bl', 'tl', -180 ); + } + } + + return segments; + }, + + destroy: function() { + var me = this; + if (me.finalized || !me.styleInfos.borderImageInfo.isActive()) { + me.targetElement.runtimeStyle.borderColor = ''; + } + PIE.RendererBase.destroy.call( me ); + } + + +} ); +/** + * Renderer for border-image + * @constructor + * @param {Element} el The target element + * @param {Object} styleInfos The StyleInfo objects + * @param {PIE.RootRenderer} parent + */ +PIE.BorderImageRenderer = PIE.RendererBase.newRenderer( { + + boxZIndex: 5, + pieceNames: [ 't', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl', 'c' ], + + needsUpdate: function() { + return this.styleInfos.borderImageInfo.changed(); + }, + + isActive: function() { + return this.styleInfos.borderImageInfo.isActive(); + }, + + draw: function() { + this.getBox(); //make sure pieces are created + + var props = this.styleInfos.borderImageInfo.getProps(), + borderProps = this.styleInfos.borderInfo.getProps(), + bounds = this.boundsInfo.getBounds(), + el = this.targetElement, + pieces = this.pieces; + + PIE.Util.withImageSize( props.src, function( imgSize ) { + var elW = bounds.w, + elH = bounds.h, + zero = PIE.getLength( '0' ), + widths = props.widths || ( borderProps ? borderProps.widths : { 't': zero, 'r': zero, 'b': zero, 'l': zero } ), + widthT = widths['t'].pixels( el ), + widthR = widths['r'].pixels( el ), + widthB = widths['b'].pixels( el ), + widthL = widths['l'].pixels( el ), + slices = props.slice, + sliceT = slices['t'].pixels( el ), + sliceR = slices['r'].pixels( el ), + sliceB = slices['b'].pixels( el ), + sliceL = slices['l'].pixels( el ); + + // Piece positions and sizes + function setSizeAndPos( piece, w, h, x, y ) { + var s = pieces[piece].style, + max = Math.max; + s.width = max(w, 0); + s.height = max(h, 0); + s.left = x; + s.top = y; + } + setSizeAndPos( 'tl', widthL, widthT, 0, 0 ); + setSizeAndPos( 't', elW - widthL - widthR, widthT, widthL, 0 ); + setSizeAndPos( 'tr', widthR, widthT, elW - widthR, 0 ); + setSizeAndPos( 'r', widthR, elH - widthT - widthB, elW - widthR, widthT ); + setSizeAndPos( 'br', widthR, widthB, elW - widthR, elH - widthB ); + setSizeAndPos( 'b', elW - widthL - widthR, widthB, widthL, elH - widthB ); + setSizeAndPos( 'bl', widthL, widthB, 0, elH - widthB ); + setSizeAndPos( 'l', widthL, elH - widthT - widthB, 0, widthT ); + setSizeAndPos( 'c', elW - widthL - widthR, elH - widthT - widthB, widthL, widthT ); + + + // image croppings + function setCrops( sides, crop, val ) { + for( var i=0, len=sides.length; i < len; i++ ) { + pieces[ sides[i] ]['imagedata'][ crop ] = val; + } + } + + // corners + setCrops( [ 'tl', 't', 'tr' ], 'cropBottom', ( imgSize.h - sliceT ) / imgSize.h ); + setCrops( [ 'tl', 'l', 'bl' ], 'cropRight', ( imgSize.w - sliceL ) / imgSize.w ); + setCrops( [ 'bl', 'b', 'br' ], 'cropTop', ( imgSize.h - sliceB ) / imgSize.h ); + setCrops( [ 'tr', 'r', 'br' ], 'cropLeft', ( imgSize.w - sliceR ) / imgSize.w ); + + // edges and center + // TODO right now this treats everything like 'stretch', need to support other schemes + //if( props.repeat.v === 'stretch' ) { + setCrops( [ 'l', 'r', 'c' ], 'cropTop', sliceT / imgSize.h ); + setCrops( [ 'l', 'r', 'c' ], 'cropBottom', sliceB / imgSize.h ); + //} + //if( props.repeat.h === 'stretch' ) { + setCrops( [ 't', 'b', 'c' ], 'cropLeft', sliceL / imgSize.w ); + setCrops( [ 't', 'b', 'c' ], 'cropRight', sliceR / imgSize.w ); + //} + + // center fill + pieces['c'].style.display = props.fill ? '' : 'none'; + }, this ); + }, + + getBox: function() { + var box = this.parent.getLayer( this.boxZIndex ), + s, piece, i, + pieceNames = this.pieceNames, + len = pieceNames.length; + + if( !box ) { + box = doc.createElement( 'border-image' ); + s = box.style; + s.position = 'absolute'; + + this.pieces = {}; + + for( i = 0; i < len; i++ ) { + piece = this.pieces[ pieceNames[i] ] = PIE.Util.createVmlElement( 'rect' ); + piece.appendChild( PIE.Util.createVmlElement( 'imagedata' ) ); + s = piece.style; + s['behavior'] = 'url(#default#VML)'; + s.position = "absolute"; + s.top = s.left = 0; + piece['imagedata'].src = this.styleInfos.borderImageInfo.getProps().src; + piece.stroked = false; + piece.filled = false; + box.appendChild( piece ); + } + + this.parent.addLayer( this.boxZIndex, box ); + } + + return box; + }, + + prepareUpdate: function() { + if (this.isActive()) { + var me = this, + el = me.targetElement, + rs = el.runtimeStyle, + widths = me.styleInfos.borderImageInfo.getProps().widths; + + // Force border-style to solid so it doesn't collapse + rs.borderStyle = 'solid'; + + // If widths specified in border-image shorthand, override border-width + // NOTE px units needed here as this gets used by the IE9 renderer too + if ( widths ) { + rs.borderTopWidth = widths['t'].pixels( el ) + 'px'; + rs.borderRightWidth = widths['r'].pixels( el ) + 'px'; + rs.borderBottomWidth = widths['b'].pixels( el ) + 'px'; + rs.borderLeftWidth = widths['l'].pixels( el ) + 'px'; + } + + // Make the border transparent + me.hideBorder(); + } + }, + + destroy: function() { + var me = this, + rs = me.targetElement.runtimeStyle; + rs.borderStyle = ''; + if (me.finalized || !me.styleInfos.borderInfo.isActive()) { + rs.borderColor = rs.borderWidth = ''; + } + PIE.RendererBase.destroy.call( this ); + } + +} ); +/** + * Renderer for outset box-shadows + * @constructor + * @param {Element} el The target element + * @param {Object} styleInfos The StyleInfo objects + * @param {PIE.RootRenderer} parent + */ +PIE.BoxShadowOutsetRenderer = PIE.RendererBase.newRenderer( { + + boxZIndex: 1, + boxName: 'outset-box-shadow', + + needsUpdate: function() { + var si = this.styleInfos; + return si.boxShadowInfo.changed() || si.borderRadiusInfo.changed(); + }, + + isActive: function() { + var boxShadowInfo = this.styleInfos.boxShadowInfo; + return boxShadowInfo.isActive() && boxShadowInfo.getProps().outset[0]; + }, + + draw: function() { + var me = this, + el = this.targetElement, + box = this.getBox(), + styleInfos = this.styleInfos, + shadowInfos = styleInfos.boxShadowInfo.getProps().outset, + radii = styleInfos.borderRadiusInfo.getProps(), + len = shadowInfos.length, + i = len, j, + bounds = this.boundsInfo.getBounds(), + w = bounds.w, + h = bounds.h, + clipAdjust = PIE.ieVersion === 8 ? 1 : 0, //workaround for IE8 bug where VML leaks out top/left of clip region by 1px + corners = [ 'tl', 'tr', 'br', 'bl' ], corner, + shadowInfo, shape, fill, ss, xOff, yOff, spread, blur, shrink, color, alpha, path, + totalW, totalH, focusX, focusY, isBottom, isRight; + + + function getShadowShape( index, corner, xOff, yOff, color, blur, path ) { + var shape = me.getShape( 'shadow' + index + corner, 'fill', box, len - index ), + fill = shape.fill; + + // Position and size + shape['coordsize'] = w * 2 + ',' + h * 2; + shape['coordorigin'] = '1,1'; + + // Color and opacity + shape['stroked'] = false; + shape['filled'] = true; + fill.color = color.colorValue( el ); + if( blur ) { + fill['type'] = 'gradienttitle'; //makes the VML gradient follow the shape's outline - hooray for undocumented features?!?! + fill['color2'] = fill.color; + fill['opacity'] = 0; + } + + // Path + shape.path = path; + + // This needs to go last for some reason, to prevent rendering at incorrect size + ss = shape.style; + ss.left = xOff; + ss.top = yOff; + ss.width = w; + ss.height = h; + + return shape; + } + + + while( i-- ) { + shadowInfo = shadowInfos[ i ]; + xOff = shadowInfo.xOffset.pixels( el ); + yOff = shadowInfo.yOffset.pixels( el ); + spread = shadowInfo.spread.pixels( el ); + blur = shadowInfo.blur.pixels( el ); + color = shadowInfo.color; + // Shape path + shrink = -spread - blur; + if( !radii && blur ) { + // If blurring, use a non-null border radius info object so that getBoxPath will + // round the corners of the expanded shadow shape rather than squaring them off. + radii = PIE.BorderRadiusStyleInfo.ALL_ZERO; + } + path = this.getBoxPath( { t: shrink, r: shrink, b: shrink, l: shrink }, 2, radii ); + + if( blur ) { + totalW = ( spread + blur ) * 2 + w; + totalH = ( spread + blur ) * 2 + h; + focusX = totalW ? blur * 2 / totalW : 0; + focusY = totalH ? blur * 2 / totalH : 0; + if( blur - spread > w / 2 || blur - spread > h / 2 ) { + // If the blur is larger than half the element's narrowest dimension, we cannot do + // this with a single shape gradient, because its focussize would have to be less than + // zero which results in ugly artifacts. Instead we create four shapes, each with its + // gradient focus past center, and then clip them so each only shows the quadrant + // opposite the focus. + for( j = 4; j--; ) { + corner = corners[j]; + isBottom = corner.charAt( 0 ) === 'b'; + isRight = corner.charAt( 1 ) === 'r'; + shape = getShadowShape( i, corner, xOff, yOff, color, blur, path ); + fill = shape.fill; + fill['focusposition'] = ( isRight ? 1 - focusX : focusX ) + ',' + + ( isBottom ? 1 - focusY : focusY ); + fill['focussize'] = '0,0'; + + // Clip to show only the appropriate quadrant. Add 1px to the top/left clip values + // in IE8 to prevent a bug where IE8 displays one pixel outside the clip region. + shape.style.clip = 'rect(' + ( ( isBottom ? totalH / 2 : 0 ) + clipAdjust ) + 'px,' + + ( isRight ? totalW : totalW / 2 ) + 'px,' + + ( isBottom ? totalH : totalH / 2 ) + 'px,' + + ( ( isRight ? totalW / 2 : 0 ) + clipAdjust ) + 'px)'; + } + } else { + // TODO delete old quadrant shapes if resizing expands past the barrier + shape = getShadowShape( i, '', xOff, yOff, color, blur, path ); + fill = shape.fill; + fill['focusposition'] = focusX + ',' + focusY; + fill['focussize'] = ( 1 - focusX * 2 ) + ',' + ( 1 - focusY * 2 ); + } + } else { + shape = getShadowShape( i, '', xOff, yOff, color, blur, path ); + alpha = color.alpha(); + if( alpha < 1 ) { + // shape.style.filter = 'alpha(opacity=' + ( alpha * 100 ) + ')'; + // ss.filter = 'progid:DXImageTransform.Microsoft.BasicImage(opacity=' + ( alpha ) + ')'; + shape.fill.opacity = alpha; + } + } + } + } + +} ); +/** + * Renderer for re-rendering img elements using VML. Kicks in if the img has + * a border-radius applied, or if the -pie-png-fix flag is set. + * @constructor + * @param {Element} el The target element + * @param {Object} styleInfos The StyleInfo objects + * @param {PIE.RootRenderer} parent + */ +PIE.ImgRenderer = PIE.RendererBase.newRenderer( { + + boxZIndex: 6, + boxName: 'imgEl', + + needsUpdate: function() { + var si = this.styleInfos; + return this.targetElement.src !== this._lastSrc || si.borderRadiusInfo.changed(); + }, + + isActive: function() { + var si = this.styleInfos; + return si.borderRadiusInfo.isActive() || si.backgroundInfo.isPngFix(); + }, + + draw: function() { + this._lastSrc = src; + this.hideActualImg(); + + var shape = this.getShape( 'img', 'fill', this.getBox() ), + fill = shape.fill, + bounds = this.boundsInfo.getBounds(), + w = bounds.w, + h = bounds.h, + borderProps = this.styleInfos.borderInfo.getProps(), + borderWidths = borderProps && borderProps.widths, + el = this.targetElement, + src = el.src, + round = Math.round, + cs = el.currentStyle, + getLength = PIE.getLength, + s, zero; + + // In IE6, the BorderRenderer will have hidden the border by moving the border-width to + // the padding; therefore we want to pretend the borders have no width so they aren't doubled + // when adding in the current padding value below. + if( !borderWidths || PIE.ieVersion < 7 ) { + zero = PIE.getLength( '0' ); + borderWidths = { 't': zero, 'r': zero, 'b': zero, 'l': zero }; + } + + shape.stroked = false; + fill.type = 'frame'; + fill.src = src; + fill.position = (w ? 0.5 / w : 0) + ',' + (h ? 0.5 / h : 0); + shape.coordsize = w * 2 + ',' + h * 2; + shape.coordorigin = '1,1'; + shape.path = this.getBoxPath( { + t: round( borderWidths['t'].pixels( el ) + getLength( cs.paddingTop ).pixels( el ) ), + r: round( borderWidths['r'].pixels( el ) + getLength( cs.paddingRight ).pixels( el ) ), + b: round( borderWidths['b'].pixels( el ) + getLength( cs.paddingBottom ).pixels( el ) ), + l: round( borderWidths['l'].pixels( el ) + getLength( cs.paddingLeft ).pixels( el ) ) + }, 2 ); + s = shape.style; + s.width = w; + s.height = h; + }, + + hideActualImg: function() { + this.targetElement.runtimeStyle.filter = 'alpha(opacity=0)'; + }, + + destroy: function() { + PIE.RendererBase.destroy.call( this ); + this.targetElement.runtimeStyle.filter = ''; + } + +} ); +/** + * Root renderer for IE9; manages the rendering layers in the element's background + * @param {Element} el The target element + * @param {Object} styleInfos The StyleInfo objects + */ +PIE.IE9RootRenderer = PIE.RendererBase.newRenderer( { + + updatePos: PIE.emptyFn, + updateSize: PIE.emptyFn, + updateVisibility: PIE.emptyFn, + updateProps: PIE.emptyFn, + + outerCommasRE: /^,+|,+$/g, + innerCommasRE: /,+/g, + + setBackgroundLayer: function(zIndex, bg) { + var me = this, + bgLayers = me._bgLayers || ( me._bgLayers = [] ), + undef; + bgLayers[zIndex] = bg || undef; + }, + + finishUpdate: function() { + var me = this, + bgLayers = me._bgLayers, + bg; + if( bgLayers && ( bg = bgLayers.join( ',' ).replace( me.outerCommasRE, '' ).replace( me.innerCommasRE, ',' ) ) !== me._lastBg ) { + me._lastBg = me.targetElement.runtimeStyle.background = bg; + } + }, + + destroy: function() { + this.targetElement.runtimeStyle.background = ''; + delete this._bgLayers; + } + +} ); +/** + * Renderer for element backgrounds, specific for IE9. Only handles translating CSS3 gradients + * to an equivalent SVG data URI. + * @constructor + * @param {Element} el The target element + * @param {Object} styleInfos The StyleInfo objects + */ +PIE.IE9BackgroundRenderer = PIE.RendererBase.newRenderer( { + + bgLayerZIndex: 1, + + needsUpdate: function() { + var si = this.styleInfos; + return si.backgroundInfo.changed(); + }, + + isActive: function() { + var si = this.styleInfos; + return si.backgroundInfo.isActive() || si.borderImageInfo.isActive(); + }, + + draw: function() { + var me = this, + props = me.styleInfos.backgroundInfo.getProps(), + bg, images, i = 0, img, bgAreaSize, bgSize; + + if ( props ) { + bg = []; + + images = props.bgImages; + if ( images ) { + while( img = images[ i++ ] ) { + if (img.imgType === 'linear-gradient' ) { + bgAreaSize = me.getBgAreaSize( img.bgOrigin ); + bgSize = ( img.bgSize || PIE.BgSize.DEFAULT ).pixels( + me.targetElement, bgAreaSize.w, bgAreaSize.h, bgAreaSize.w, bgAreaSize.h + ), + bg.push( + 'url(data:image/svg+xml,' + escape( me.getGradientSvg( img, bgSize.w, bgSize.h ) ) + ') ' + + me.bgPositionToString( img.bgPosition ) + ' / ' + bgSize.w + 'px ' + bgSize.h + 'px ' + + ( img.bgAttachment || '' ) + ' ' + ( img.bgOrigin || '' ) + ' ' + ( img.bgClip || '' ) + ); + } else { + bg.push( img.origString ); + } + } + } + + if ( props.color ) { + bg.push( props.color.val ); + } + + me.parent.setBackgroundLayer(me.bgLayerZIndex, bg.join(',')); + } + }, + + bgPositionToString: function( bgPosition ) { + return bgPosition ? bgPosition.tokens.map(function(token) { + return token.tokenValue; + }).join(' ') : '0 0'; + }, + + getBgAreaSize: function( bgOrigin ) { + var me = this, + el = me.targetElement, + bounds = me.boundsInfo.getBounds(), + elW = bounds.w, + elH = bounds.h, + w = elW, + h = elH, + borders, getLength, cs; + + if( bgOrigin !== 'border-box' ) { + borders = me.styleInfos.borderInfo.getProps(); + if( borders && ( borders = borders.widths ) ) { + w -= borders[ 'l' ].pixels( el ) + borders[ 'l' ].pixels( el ); + h -= borders[ 't' ].pixels( el ) + borders[ 'b' ].pixels( el ); + } + } + + if ( bgOrigin === 'content-box' ) { + getLength = PIE.getLength; + cs = el.currentStyle; + w -= getLength( cs.paddingLeft ).pixels( el ) + getLength( cs.paddingRight ).pixels( el ); + h -= getLength( cs.paddingTop ).pixels( el ) + getLength( cs.paddingBottom ).pixels( el ); + } + + return { w: w, h: h }; + }, + + getGradientSvg: function( info, bgWidth, bgHeight ) { + var el = this.targetElement, + stopsInfo = info.stops, + stopCount = stopsInfo.length, + metrics = PIE.GradientUtil.getGradientMetrics( el, bgWidth, bgHeight, info ), + startX = metrics.startX, + startY = metrics.startY, + endX = metrics.endX, + endY = metrics.endY, + lineLength = metrics.lineLength, + stopPx, + i, j, before, after, + svg; + + // Find the pixel offsets along the CSS3 gradient-line for each stop. + stopPx = []; + for( i = 0; i < stopCount; i++ ) { + stopPx.push( stopsInfo[i].offset ? stopsInfo[i].offset.pixels( el, lineLength ) : + i === 0 ? 0 : i === stopCount - 1 ? lineLength : null ); + } + // Fill in gaps with evenly-spaced offsets + for( i = 1; i < stopCount; i++ ) { + if( stopPx[ i ] === null ) { + before = stopPx[ i - 1 ]; + j = i; + do { + after = stopPx[ ++j ]; + } while( after === null ); + stopPx[ i ] = before + ( after - before ) / ( j - i + 1 ); + } + } + + svg = [ + '' + + '' + + '' + ]; + + // Convert to percentage along the SVG gradient line and add to the stops list + for( i = 0; i < stopCount; i++ ) { + svg.push( + '' + ); + } + + svg.push( + '' + + '' + + '' + + '' + ); + + return svg.join( '' ); + }, + + destroy: function() { + this.parent.setBackgroundLayer( this.bgLayerZIndex ); + } + +} ); +/** + * Renderer for border-image + * @constructor + * @param {Element} el The target element + * @param {Object} styleInfos The StyleInfo objects + * @param {PIE.RootRenderer} parent + */ +PIE.IE9BorderImageRenderer = PIE.RendererBase.newRenderer( { + + REPEAT: 'repeat', + STRETCH: 'stretch', + ROUND: 'round', + + bgLayerZIndex: 0, + + needsUpdate: function() { + return this.styleInfos.borderImageInfo.changed(); + }, + + isActive: function() { + return this.styleInfos.borderImageInfo.isActive(); + }, + + draw: function() { + var me = this, + props = me.styleInfos.borderImageInfo.getProps(), + borderProps = me.styleInfos.borderInfo.getProps(), + bounds = me.boundsInfo.getBounds(), + repeat = props.repeat, + repeatH = repeat.h, + repeatV = repeat.v, + el = me.targetElement, + isAsync = 0; + + PIE.Util.withImageSize( props.src, function( imgSize ) { + var elW = bounds.w, + elH = bounds.h, + imgW = imgSize.w, + imgH = imgSize.h, + + // The image cannot be referenced as a URL directly in the SVG because IE9 throws a strange + // security exception (perhaps due to cross-origin policy within data URIs?) Therefore we + // work around this by converting the image data into a data URI itself using a transient + // canvas. This unfortunately requires the border-image src to be within the same domain, + // which isn't a limitation in true border-image, so we need to try and find a better fix. + imgSrc = me.imageToDataURI( props.src, imgW, imgH ), + + REPEAT = me.REPEAT, + STRETCH = me.STRETCH, + ROUND = me.ROUND, + ceil = Math.ceil, + + zero = PIE.getLength( '0' ), + widths = props.widths || ( borderProps ? borderProps.widths : { 't': zero, 'r': zero, 'b': zero, 'l': zero } ), + widthT = widths['t'].pixels( el ), + widthR = widths['r'].pixels( el ), + widthB = widths['b'].pixels( el ), + widthL = widths['l'].pixels( el ), + slices = props.slice, + sliceT = slices['t'].pixels( el ), + sliceR = slices['r'].pixels( el ), + sliceB = slices['b'].pixels( el ), + sliceL = slices['l'].pixels( el ), + centerW = elW - widthL - widthR, + middleH = elH - widthT - widthB, + imgCenterW = imgW - sliceL - sliceR, + imgMiddleH = imgH - sliceT - sliceB, + + // Determine the size of each tile - 'round' is handled below + tileSizeT = repeatH === STRETCH ? centerW : imgCenterW * widthT / sliceT, + tileSizeR = repeatV === STRETCH ? middleH : imgMiddleH * widthR / sliceR, + tileSizeB = repeatH === STRETCH ? centerW : imgCenterW * widthB / sliceB, + tileSizeL = repeatV === STRETCH ? middleH : imgMiddleH * widthL / sliceL, + + svg, + patterns = [], + rects = [], + i = 0; + + // For 'round', subtract from each tile's size enough so that they fill the space a whole number of times + if (repeatH === ROUND) { + tileSizeT -= (tileSizeT - (centerW % tileSizeT || tileSizeT)) / ceil(centerW / tileSizeT); + tileSizeB -= (tileSizeB - (centerW % tileSizeB || tileSizeB)) / ceil(centerW / tileSizeB); + } + if (repeatV === ROUND) { + tileSizeR -= (tileSizeR - (middleH % tileSizeR || tileSizeR)) / ceil(middleH / tileSizeR); + tileSizeL -= (tileSizeL - (middleH % tileSizeL || tileSizeL)) / ceil(middleH / tileSizeL); + } + + + // Build the SVG for the border-image rendering. Add each piece as a pattern, which is then stretched + // or repeated as the fill of a rect of appropriate size. + svg = [ + '' + ]; + + function addImage( x, y, w, h, cropX, cropY, cropW, cropH, tileW, tileH ) { + patterns.push( + '' + + '' + + '' + + '' + + '' + ); + rects.push( + '' + ); + i++; + } + addImage( 0, 0, widthL, widthT, 0, 0, sliceL, sliceT, widthL, widthT ); // top left + addImage( widthL, 0, centerW, widthT, sliceL, 0, imgCenterW, sliceT, tileSizeT, widthT ); // top center + addImage( elW - widthR, 0, widthR, widthT, imgW - sliceR, 0, sliceR, sliceT, widthR, widthT ); // top right + addImage( 0, widthT, widthL, middleH, 0, sliceT, sliceL, imgMiddleH, widthL, tileSizeL ); // middle left + if ( props.fill ) { // center fill + addImage( widthL, widthT, centerW, middleH, sliceL, sliceT, imgCenterW, imgMiddleH, + tileSizeT || tileSizeB || imgCenterW, tileSizeL || tileSizeR || imgMiddleH ); + } + addImage( elW - widthR, widthT, widthR, middleH, imgW - sliceR, sliceT, sliceR, imgMiddleH, widthR, tileSizeR ); // middle right + addImage( 0, elH - widthB, widthL, widthB, 0, imgH - sliceB, sliceL, sliceB, widthL, widthB ); // bottom left + addImage( widthL, elH - widthB, centerW, widthB, sliceL, imgH - sliceB, imgCenterW, sliceB, tileSizeB, widthB ); // bottom center + addImage( elW - widthR, elH - widthB, widthR, widthB, imgW - sliceR, imgH - sliceB, sliceR, sliceB, widthR, widthB ); // bottom right + + svg.push( + '' + + patterns.join('\n') + + '' + + rects.join('\n') + + '' + ); + + me.parent.setBackgroundLayer( me.bgLayerZIndex, 'url(data:image/svg+xml,' + escape( svg.join( '' ) ) + ') no-repeat border-box border-box' ); + + // If the border-image's src wasn't immediately available, the SVG for its background layer + // will have been created asynchronously after the main element's update has finished; we'll + // therefore need to force the root renderer to sync to the final background once finished. + if( isAsync ) { + me.parent.finishUpdate(); + } + }, me ); + + isAsync = 1; + }, + + /** + * Convert a given image to a data URI + */ + imageToDataURI: (function() { + var uris = {}; + return function( src, width, height ) { + var uri = uris[ src ], + image, canvas; + if ( !uri ) { + image = new Image(); + canvas = doc.createElement( 'canvas' ); + image.src = src; + canvas.width = width; + canvas.height = height; + canvas.getContext( '2d' ).drawImage( image, 0, 0 ); + uri = uris[ src ] = canvas.toDataURL(); + } + return uri; + } + })(), + + prepareUpdate: PIE.BorderImageRenderer.prototype.prepareUpdate, + + destroy: function() { + var me = this, + rs = me.targetElement.runtimeStyle; + me.parent.setBackgroundLayer( me.bgLayerZIndex ); + rs.borderColor = rs.borderStyle = rs.borderWidth = ''; + } + +} ); + +PIE.Element = (function() { + + var wrappers = {}, + lazyInitCssProp = PIE.CSS_PREFIX + 'lazy-init', + pollCssProp = PIE.CSS_PREFIX + 'poll', + trackActiveCssProp = PIE.CSS_PREFIX + 'track-active', + trackHoverCssProp = PIE.CSS_PREFIX + 'track-hover', + hoverClass = PIE.CLASS_PREFIX + 'hover', + activeClass = PIE.CLASS_PREFIX + 'active', + focusClass = PIE.CLASS_PREFIX + 'focus', + firstChildClass = PIE.CLASS_PREFIX + 'first-child', + ignorePropertyNames = { 'background':1, 'bgColor':1, 'display': 1 }, + classNameRegExes = {}, + dummyArray = []; + + + function addClass( el, className ) { + el.className += ' ' + className; + } + + function removeClass( el, className ) { + var re = classNameRegExes[ className ] || + ( classNameRegExes[ className ] = new RegExp( '\\b' + className + '\\b', 'g' ) ); + el.className = el.className.replace( re, '' ); + } + + function delayAddClass( el, className /*, className2*/ ) { + var classes = dummyArray.slice.call( arguments, 1 ), + i = classes.length; + setTimeout( function() { + if( el ) { + while( i-- ) { + addClass( el, classes[ i ] ); + } + } + }, 0 ); + } + + function delayRemoveClass( el, className /*, className2*/ ) { + var classes = dummyArray.slice.call( arguments, 1 ), + i = classes.length; + setTimeout( function() { + if( el ) { + while( i-- ) { + removeClass( el, classes[ i ] ); + } + } + }, 0 ); + } + + + + function Element( el ) { + var renderers, + rootRenderer, + boundsInfo = new PIE.BoundsInfo( el ), + styleInfos, + styleInfosArr, + initializing, + initialized, + eventsAttached, + eventListeners = [], + delayed, + destroyed, + poll; + + /** + * Initialize PIE for this element. + */ + function init() { + if( !initialized ) { + var docEl, + bounds, + ieDocMode = PIE.ieDocMode, + cs = el.currentStyle, + lazy = cs.getAttribute( lazyInitCssProp ) === 'true', + trackActive = cs.getAttribute( trackActiveCssProp ) !== 'false', + trackHover = cs.getAttribute( trackHoverCssProp ) !== 'false', + childRenderers; + + // Polling for size/position changes: default to on in IE8, off otherwise, overridable by -pie-poll + poll = cs.getAttribute( pollCssProp ); + poll = ieDocMode > 7 ? poll !== 'false' : poll === 'true'; + + // Force layout so move/resize events will fire. Set this as soon as possible to avoid layout changes + // after load, but make sure it only gets called the first time through to avoid recursive calls to init(). + if( !initializing ) { + initializing = 1; + el.runtimeStyle.zoom = 1; + initFirstChildPseudoClass(); + } + + boundsInfo.lock(); + + // If the -pie-lazy-init:true flag is set, check if the element is outside the viewport and if so, delay initialization + if( lazy && ( bounds = boundsInfo.getBounds() ) && ( docEl = doc.documentElement || doc.body ) && + ( bounds.y > docEl.clientHeight || bounds.x > docEl.clientWidth || bounds.y + bounds.h < 0 || bounds.x + bounds.w < 0 ) ) { + if( !delayed ) { + delayed = 1; + PIE.OnScroll.observe( init ); + } + } else { + initialized = 1; + delayed = initializing = 0; + PIE.OnScroll.unobserve( init ); + + // Create the style infos and renderers + if ( ieDocMode === 9 ) { + styleInfos = { + backgroundInfo: new PIE.BackgroundStyleInfo( el ), + borderImageInfo: new PIE.BorderImageStyleInfo( el ), + borderInfo: new PIE.BorderStyleInfo( el ) + }; + styleInfosArr = [ + styleInfos.backgroundInfo, + styleInfos.borderImageInfo + ]; + rootRenderer = new PIE.IE9RootRenderer( el, boundsInfo, styleInfos ); + childRenderers = [ + new PIE.IE9BackgroundRenderer( el, boundsInfo, styleInfos, rootRenderer ), + new PIE.IE9BorderImageRenderer( el, boundsInfo, styleInfos, rootRenderer ) + ]; + } else { + + styleInfos = { + backgroundInfo: new PIE.BackgroundStyleInfo( el ), + borderInfo: new PIE.BorderStyleInfo( el ), + borderImageInfo: new PIE.BorderImageStyleInfo( el ), + borderRadiusInfo: new PIE.BorderRadiusStyleInfo( el ), + boxShadowInfo: new PIE.BoxShadowStyleInfo( el ), + visibilityInfo: new PIE.VisibilityStyleInfo( el ) + }; + styleInfosArr = [ + styleInfos.backgroundInfo, + styleInfos.borderInfo, + styleInfos.borderImageInfo, + styleInfos.borderRadiusInfo, + styleInfos.boxShadowInfo, + styleInfos.visibilityInfo + ]; + rootRenderer = new PIE.RootRenderer( el, boundsInfo, styleInfos ); + childRenderers = [ + new PIE.BoxShadowOutsetRenderer( el, boundsInfo, styleInfos, rootRenderer ), + new PIE.BackgroundRenderer( el, boundsInfo, styleInfos, rootRenderer ), + //new PIE.BoxShadowInsetRenderer( el, boundsInfo, styleInfos, rootRenderer ), + new PIE.BorderRenderer( el, boundsInfo, styleInfos, rootRenderer ), + new PIE.BorderImageRenderer( el, boundsInfo, styleInfos, rootRenderer ) + ]; + if( el.tagName === 'IMG' ) { + childRenderers.push( new PIE.ImgRenderer( el, boundsInfo, styleInfos, rootRenderer ) ); + } + rootRenderer.childRenderers = childRenderers; // circular reference, can't pass in constructor; TODO is there a cleaner way? + } + renderers = [ rootRenderer ].concat( childRenderers ); + + // Add property change listeners to ancestors if requested + initAncestorEventListeners(); + + // Add to list of polled elements in IE8 + if( poll ) { + PIE.Heartbeat.observe( update ); + PIE.Heartbeat.run(); + } + + // Trigger rendering + update( 1 ); + } + + if( !eventsAttached ) { + eventsAttached = 1; + if( ieDocMode < 9 ) { + addListener( el, 'onmove', handleMoveOrResize ); + } + addListener( el, 'onresize', handleMoveOrResize ); + addListener( el, 'onpropertychange', propChanged ); + if( trackHover ) { + addListener( el, 'onmouseenter', mouseEntered ); + } + if( trackHover || trackActive ) { + addListener( el, 'onmouseleave', mouseLeft ); + } + if( trackActive ) { + addListener( el, 'onmousedown', mousePressed ); + } + if( el.tagName in PIE.focusableElements ) { + addListener( el, 'onfocus', focused ); + addListener( el, 'onblur', blurred ); + } + PIE.OnResize.observe( handleMoveOrResize ); + + PIE.OnUnload.observe( removeEventListeners ); + } + + boundsInfo.unlock(); + } + } + + + + + /** + * Event handler for onmove and onresize events. Invokes update() only if the element's + * bounds have previously been calculated, to prevent multiple runs during page load when + * the element has no initial CSS3 properties. + */ + function handleMoveOrResize() { + if( boundsInfo && boundsInfo.hasBeenQueried() ) { + update(); + } + } + + + /** + * Update position and/or size as necessary. Both move and resize events call + * this rather than the updatePos/Size functions because sometimes, particularly + * during page load, one will fire but the other won't. + */ + function update( force ) { + if( !destroyed ) { + if( initialized ) { + var i, len = renderers.length; + + lockAll(); + for( i = 0; i < len; i++ ) { + renderers[i].prepareUpdate(); + } + if( force || boundsInfo.positionChanged() ) { + /* TODO just using getBoundingClientRect (used internally by BoundsInfo) for detecting + position changes may not always be accurate; it's possible that + an element will actually move relative to its positioning parent, but its position + relative to the viewport will stay the same. Need to come up with a better way to + track movement. The most accurate would be the same logic used in RootRenderer.updatePos() + but that is a more expensive operation since it does some DOM walking, and we want this + check to be as fast as possible. */ + for( i = 0; i < len; i++ ) { + renderers[i].updatePos(); + } + } + if( force || boundsInfo.sizeChanged() ) { + for( i = 0; i < len; i++ ) { + renderers[i].updateSize(); + } + } + rootRenderer.finishUpdate(); + unlockAll(); + } + else if( !initializing ) { + init(); + } + } + } + + /** + * Handle property changes to trigger update when appropriate. + */ + function propChanged() { + var i, len = renderers.length, + renderer, + e = event; + + // Some elements like fire onpropertychange events for old-school background properties + // ('background', 'bgColor') when runtimeStyle background properties are changed, which + // results in an infinite loop; therefore we filter out those property names. Also, 'display' + // is ignored because size calculations don't work correctly immediately when its onpropertychange + // event fires, and because it will trigger an onresize event anyway. + if( !destroyed && !( e && e.propertyName in ignorePropertyNames ) ) { + if( initialized ) { + lockAll(); + for( i = 0; i < len; i++ ) { + renderers[i].prepareUpdate(); + } + for( i = 0; i < len; i++ ) { + renderer = renderers[i]; + // Make sure position is synced if the element hasn't already been rendered. + // TODO this feels sloppy - look into merging propChanged and update functions + if( !renderer.isPositioned ) { + renderer.updatePos(); + } + if( renderer.needsUpdate() ) { + renderer.updateProps(); + } + } + rootRenderer.finishUpdate(); + unlockAll(); + } + else if( !initializing ) { + init(); + } + } + } + + + /** + * Handle mouseenter events. Adds a custom class to the element to allow IE6 to add + * hover styles to non-link elements, and to trigger a propertychange update. + */ + function mouseEntered() { + //must delay this because the mouseenter event fires before the :hover styles are added. + delayAddClass( el, hoverClass ); + } + + /** + * Handle mouseleave events + */ + function mouseLeft() { + //must delay this because the mouseleave event fires before the :hover styles are removed. + delayRemoveClass( el, hoverClass, activeClass ); + } + + /** + * Handle mousedown events. Adds a custom class to the element to allow IE6 to add + * active styles to non-link elements, and to trigger a propertychange update. + */ + function mousePressed() { + //must delay this because the mousedown event fires before the :active styles are added. + delayAddClass( el, activeClass ); + + // listen for mouseups on the document; can't just be on the element because the user might + // have dragged out of the element while the mouse button was held down + PIE.OnMouseup.observe( mouseReleased ); + } + + /** + * Handle mouseup events + */ + function mouseReleased() { + //must delay this because the mouseup event fires before the :active styles are removed. + delayRemoveClass( el, activeClass ); + + PIE.OnMouseup.unobserve( mouseReleased ); + } + + /** + * Handle focus events. Adds a custom class to the element to trigger a propertychange update. + */ + function focused() { + //must delay this because the focus event fires before the :focus styles are added. + delayAddClass( el, focusClass ); + } + + /** + * Handle blur events + */ + function blurred() { + //must delay this because the blur event fires before the :focus styles are removed. + delayRemoveClass( el, focusClass ); + } + + + /** + * Handle property changes on ancestors of the element; see initAncestorEventListeners() + * which adds these listeners as requested with the -pie-watch-ancestors CSS property. + */ + function ancestorPropChanged() { + var name = event.propertyName; + if( name === 'className' || name === 'id' ) { + propChanged(); + } + } + + function lockAll() { + boundsInfo.lock(); + for( var i = styleInfosArr.length; i--; ) { + styleInfosArr[i].lock(); + } + } + + function unlockAll() { + for( var i = styleInfosArr.length; i--; ) { + styleInfosArr[i].unlock(); + } + boundsInfo.unlock(); + } + + + function addListener( targetEl, type, handler ) { + targetEl.attachEvent( type, handler ); + eventListeners.push( [ targetEl, type, handler ] ); + } + + /** + * Remove all event listeners from the element and any monitored ancestors. + */ + function removeEventListeners() { + if (eventsAttached) { + var i = eventListeners.length, + listener; + + while( i-- ) { + listener = eventListeners[ i ]; + listener[ 0 ].detachEvent( listener[ 1 ], listener[ 2 ] ); + } + + PIE.OnUnload.unobserve( removeEventListeners ); + eventsAttached = 0; + eventListeners = []; + } + } + + + /** + * Clean everything up when the behavior is removed from the element, or the element + * is manually destroyed. + */ + function destroy() { + if( !destroyed ) { + var i, len; + + removeEventListeners(); + + destroyed = 1; + + // destroy any active renderers + if( renderers ) { + for( i = 0, len = renderers.length; i < len; i++ ) { + renderers[i].finalized = 1; + renderers[i].destroy(); + } + } + + // Remove from list of polled elements in IE8 + if( poll ) { + PIE.Heartbeat.unobserve( update ); + } + // Stop onresize listening + PIE.OnResize.unobserve( update ); + + // Kill references + renderers = boundsInfo = styleInfos = styleInfosArr = el = null; + } + } + + + /** + * If requested via the custom -pie-watch-ancestors CSS property, add onpropertychange and + * other event listeners to ancestor(s) of the element so we can pick up style changes + * based on CSS rules using descendant selectors. + */ + function initAncestorEventListeners() { + var watch = el.currentStyle.getAttribute( PIE.CSS_PREFIX + 'watch-ancestors' ), + i, a; + if( watch ) { + watch = parseInt( watch, 10 ); + i = 0; + a = el.parentNode; + while( a && ( watch === 'NaN' || i++ < watch ) ) { + addListener( a, 'onpropertychange', ancestorPropChanged ); + addListener( a, 'onmouseenter', mouseEntered ); + addListener( a, 'onmouseleave', mouseLeft ); + addListener( a, 'onmousedown', mousePressed ); + if( a.tagName in PIE.focusableElements ) { + addListener( a, 'onfocus', focused ); + addListener( a, 'onblur', blurred ); + } + a = a.parentNode; + } + } + } + + + /** + * If the target element is a first child, add a pie_first-child class to it. This allows using + * the added class as a workaround for the fact that PIE's rendering element breaks the :first-child + * pseudo-class selector. + */ + function initFirstChildPseudoClass() { + var tmpEl = el, + isFirst = 1; + while( tmpEl = tmpEl.previousSibling ) { + if( tmpEl.nodeType === 1 ) { + isFirst = 0; + break; + } + } + if( isFirst ) { + addClass( el, firstChildClass ); + } + } + + + // These methods are all already bound to this instance so there's no need to wrap them + // in a closure to maintain the 'this' scope object when calling them. + this.init = init; + this.update = update; + this.destroy = destroy; + this.el = el; + } + + Element.getInstance = function( el ) { + var id = PIE.Util.getUID( el ); + return wrappers[ id ] || ( wrappers[ id ] = new Element( el ) ); + }; + + Element.destroy = function( el ) { + var id = PIE.Util.getUID( el ), + wrapper = wrappers[ id ]; + if( wrapper ) { + wrapper.destroy(); + delete wrappers[ id ]; + } + }; + + Element.destroyAll = function() { + var els = [], wrapper; + if( wrappers ) { + for( var w in wrappers ) { + if( wrappers.hasOwnProperty( w ) ) { + wrapper = wrappers[ w ]; + els.push( wrapper.el ); + wrapper.destroy(); + } + } + wrappers = {}; + } + return els; + }; + + return Element; +})(); + +/* + * This file exposes the public API for invoking PIE. + */ + + +/** + * @property supportsVML + * True if the current IE browser environment has a functioning VML engine. Should be true + * in most IEs, but in rare cases may be false. If false, PIE will exit immediately when + * attached to an element; this property may be used for debugging or by external scripts + * to perform some special action when VML support is absent. + * @type {boolean} + */ +PIE[ 'supportsVML' ] = PIE.supportsVML; + + +/** + * Programatically attach PIE to a single element. + * @param {Element} el + */ +PIE[ 'attach' ] = function( el ) { + if (PIE.ieDocMode < 10 && PIE.supportsVML) { + PIE.Element.getInstance( el ).init(); + } +}; + + +/** + * Programatically detach PIE from a single element. + * @param {Element} el + */ +PIE[ 'detach' ] = function( el ) { + PIE.Element.destroy( el ); +}; + + +} // if( !PIE ) +})(); \ No newline at end of file diff --git a/wp-content/themes/mantra/js/frontend.js b/wp-content/themes/mantra/js/frontend.js new file mode 100644 index 0000000..387c751 --- /dev/null +++ b/wp-content/themes/mantra/js/frontend.js @@ -0,0 +1,255 @@ +/****************************** + Mantra Theme + custom scripting + (c) Cryout Creations + www.cryoutcreations.eu +*******************************/ + + +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){ + 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('.sub-menu').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); + } else { + jQuery('#toTop').fadeOut(); + } + } + }); + jQuery('#toTop').click(function() { jQuery('body,html').animate({scrollTop:0},800); }); +}); + + +// Menu animation +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} +); + + +// 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 = $(' + + \ No newline at end of file diff --git a/wp-content/themes/mantra/sidebar-footer.php b/wp-content/themes/mantra/sidebar-footer.php new file mode 100644 index 0000000..4845485 --- /dev/null +++ b/wp-content/themes/mantra/sidebar-footer.php @@ -0,0 +1,59 @@ + + + + + diff --git a/wp-content/themes/mantra/sidebar.php b/wp-content/themes/mantra/sidebar.php new file mode 100644 index 0000000..387ba4b --- /dev/null +++ b/wp-content/themes/mantra/sidebar.php @@ -0,0 +1,146 @@ + $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') ) { +?> + + + + + + + + + + + + + \ No newline at end of file diff --git a/wp-content/themes/mantra/single.php b/wp-content/themes/mantra/single.php new file mode 100644 index 0000000..62cde79 --- /dev/null +++ b/wp-content/themes/mantra/single.php @@ -0,0 +1,73 @@ + + +
      +
      + + + + + + + +
      > +

      + + + +
      + + '' ) ); ?> +
      + + +
      +
      + +
      + +
      + + +
      + + ', '' ); cryout_post_footer_hook(); ?> +
      +
      + + + + + + + + +
      + +
      + + diff --git a/wp-content/themes/mantra/style-mobile.css b/wp-content/themes/mantra/style-mobile.css new file mode 100644 index 0000000..7b937a0 --- /dev/null +++ b/wp-content/themes/mantra/style-mobile.css @@ -0,0 +1,194 @@ +/* =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/wp-content/themes/mantra/style.css b/wp-content/themes/mantra/style.css new file mode 100644 index 0000000..50fa642 --- /dev/null +++ b/wp-content/themes/mantra/style.css @@ -0,0 +1,2679 @@ +/* + * Theme Name: Mantra + * Theme URI: http://www.cryoutcreations.eu/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: http://www.cryoutcreations.eu + * Version: 2.4.1.1 + * License: GNU General Public License v2.0 + * License URI: http://www.gnu.org/licenses/gpl-2.0.html + * Tags: black, red, blue, white, silver, light, dark, one-column, two-columns, three-columns, right-sidebar, left-sidebar, fixed-layout, fluid-layout, responsive-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 + * + * Copyright (c) 2011-2013 Cryout Creations + * http://www.cryoutcreations.eu +*/ + + +/* +IMPORTANT! + +Any changes made to this or any other of the theme's files will be lost at the next update. + +To safely make customizations to the theme, for CSS-only consider using the theme's dedicated +"Custom CSS" field found under the Miscellaneous section of the theme settings page; +for advanced CSS and other customizations, consider using a child theme. +*/ + + +/* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html +-------------------------------------------------------------- */ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +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 { + background: transparent; + border: 0; + margin: 0; + padding: 0; +} + +body { + line-height: 1; +} +h1, h2, h3, h4, h5, h6 { + clear: both; + font-weight: normal; +} +#content h1,#content h2,#content h3,#content h4,#content h5,#content h6 { + clear: none; +} +ol, ul { + list-style: none; +} + +blockquote { + border : 1px solid #EEE; + padding:15px ; + display:block; + background-color: #FAFAFA; + font-style: italic; + max-width:90% !important; + margin:0 auto; + clear:both; + float:none; + color:#999; + -webkit-border-radius:5px; + -moz-border-radius:5px; + border-radius:5px; + -webkit-box-shadow: 0px 0px 3px #FFF inset; + -moz-box-shadow: 0px 0px 3px #FFF inset; + box-shadow: 0px 0px 3px #FFF inset; + } + +del { + text-decoration: line-through; +} +/* tables still need 'cellspacing="0"' in the markup */ +table { + border-collapse: collapse; + border-spacing: 0; +} +a img { + border: none; +} + + + +/* =Layout +-------------------------------------------------------------- */ + +/* +LAYOUT: Two columns +DESCRIPTION: Two-column fixed layout with one sidebar right of content +*/ + +#container { + float: none; + margin:0; + width: 100%; +} +#content { + display:block; + float:left; + margin: 0px 0px 0 20px; + padding-top:10px; +} +#primary, +#secondary { + display:block; + float: right; + overflow: hidden; + width:125px; + border-left:1px dashed #EAEAEA; + padding-left:20px; + padding-top:10px; +} +#primary { +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 { + margin: 0 20px; + width:auto; + float:none; +} + +/* +LAYOUT: Full width, no sidebar +DESCRIPTION: Full width content with no sidebar; used for attachment pages +*/ + +.single-attachment #content { + margin: 0px auto; + width:96%; + display:block; + float:none; +} + + +/* =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; +} + +.entry-content code { + background-color: #FAFAFA; + border-left: 5px solid #EEEEEE; + clear: both; + color: #1B1B1B; + display: block; + float: none; + margin: 0 auto; + overflow: auto; + padding: 10px !important; + text-indent: 0; + white-space: nowrap; + width: 95% !important; +} + +/* =Structure +-------------------------------------------------------------- */ + +/* The main theme structure */ +#colophon, +#branding, +#main, +#wrapper { + margin: 0 auto; +} + +#branding { +display:block; +float:left; +clear:both; +height:75px; +padding:0; +position:relative; +overflow:hidden; +} + +a#logo { +display:inline; +height:100%; +} + +#linky { +background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICR‌​AEAOw=='); +display:block; +width:100%; +height:100%; +} + +#forbottom { +min-height:200px; +} + +#wrapper { + padding: 10px 0 0; +} + +/* Structure the footer area */ +#footer-widget-area { + overflow: hidden; +} + +.footerfour .widget-area { + float: left; + margin-left: 1.5%; + margin-right:1.5%; + width: 22%; +} +.footerthree .widget-area { + float: left; + margin-left: 1.5%; + margin-right:1.5%; + width: 30%; +} + +.footertwo .widget-area { + float: left; + margin-left: 2.5%; + width: 47%; +} + +.footerone .widget-area { + float: left; + margin-left: 2%; + width: 98%; +} + + +#footer-widget-area #fourth { + margin-right: 0; +} + +#site-generator { + float: right; + width: 220px; +} + + +/* =Global Elements +-------------------------------------------------------------- */ + +/* Main global 'theme' and typographic styles */ +body { + padding-bottom:10px; + background: #333; +} + +body, +input, +textarea { + color: #666; + font-size: 12px; + line-height: 18px; + +} +hr { + background-color: #d7d7d7; + border: 0; + clear: both; + height: 1px; + margin-bottom: 18px; +} + +/* Text elements */ +#content { + font-size:15px; + line-height:1.7em; + color: #333; +} + +#content p{ + margin-bottom: 1.5em; +} +.entry-content ul, .entry-summary ul { + margin-left: 1.5em; +} + +.entry-content ul, .entry-summary ul , +.entry-content ol, .entry-summary ol { +margin-bottom:1.5em; +} + +.entry-content ul > li { + background: url(images/bullet.png) left 10px no-repeat; + padding-left: 20px; +} + +.entry-content li li { + margin-left: 15px; +} + +ol { + list-style: decimal; + margin-left: 1.5em; + +} +ol ol { + list-style: upper-alpha; +} +ol ol ol { + list-style: lower-roman; +} +ol ol ol ol { + list-style: lower-alpha; +} +ul ul, +ol ol, +ul ol, +ol ul { + margin-bottom: 0; +} +dt { + font-weight: bold; +} +big { + font-size: 131.25%; +} +ins { + background: #D9EFFD; + text-decoration: none; +} + +pre { + background: #F8F8F8; + color: #222; + padding: 1.5em; + border:1px dashed #ddd; +} +abbr, +acronym { + border-bottom: 1px dotted #666; + cursor: help; +} +sup, +sub { + height: 0; + line-height: 1; + position: relative; + vertical-align: baseline; +} +sup { + bottom: 1ex; +} +sub { + top: .5ex; +} +input[type="text"],input[type="password"],input[type="email"], +textarea { + background: #fff; + border: 1px solid #DDD; + padding-left:5px; + border-radius:2px; + -moz-border-radius:2px; + -webkit-border-radius:2px; + height:32px; + -webkit-transition:.2s border ease; + -moz-transition:.2s border ease; + -o-transition:.2s border ease; + transition:.2s border ease; + -moz-box-sizing:border-box; + -webkit-box-sizing:border-box; + box-sizing:border-box; +} + +input[type="text"]:hover,input[type="password"]:hover,input[type="email"]:hover, +textarea:hover { +border:1px solid #CCC !important; +} +a:link { + color: #0D85CC;text-decoration:none; +} +a:visited { + color: #0D85CC;text-decoration:none;; +} +a:active, +a:hover { + color: #000; +} + +/* Text meant only for screen readers */ +.screen-reader-text { + position: absolute; + left: -9000px; +} + + +/* =Header +-------------------------------------------------------------- */ + +#header { + background:none; + +} +#site-title { + float: left; + font-size: 36px; + line-height: 60px; +} +#site-title a { + color: #EEE; + font-weight: bold; + text-decoration: none; + font-variant: small-caps; + letter-spacing: -0.02em; + -moz-text-shadow: -2px -2px 0px #000; + -webkit-text-shadow: -2px -2px 0px #000; + text-shadow: -2px -2px 0px #000; + display:block; +} +#site-description { + display:inline; + float: left; + font-size: 15px; + line-height:60px; + margin-left:20px; + color:#999; + padding-left:0px; + letter-spacing: 0.1em; + -moz-text-shadow: 0px -1px 0px #000; + -webkit-text-shadow: 0px -1px 0px #000; + text-shadow: 0px -1px 0px #000; +} + +#header-container { +display:block; +float:none; +position:absolute; +top:0px; +width:100%; +height:100%; +} + +#header-container > div { +margin-top: 20px; +margin-left: 40px; +} + +/* =Menu -PRIMARY +-------------------------------------------------------------- */ + +#access { + display: block; + float: left; + margin: 0 auto; + margin-top:10px; +} + +#access .menu-header, div.menu { +margin:0 6px; +} + +#access ul { +margin-bottom:0px; +} + + #access ul li.current_page_item, #access ul li.current-menu-item { +-moz-box-shadow:none; +-webkit-box-shadow:none; +box-shadow:none; +background:#fff; +} + + +#access a { + display:block; + color: #5F5B5B; + text-decoration: none; + padding:0.2em 1.2em; + font-size:14px; +} + +#access ul li { +display:block; +float:left; +background:#FAFAFA; +-webkit-border-radius:7px 7px 0 0; +-moz-border-radius:7px 7px 0 0; +border-radius:7px 7px 0 0; +margin:0 3px; +padding:3px 0; +-moz-box-shadow:0 -3px 4px rgba(0,0,0,0.1) inset; +-webkit-box-shadow:0 -3px 4px rgba(0,0,0,0.1) inset; +box-shadow:0 -3px 4px rgba(0,0,0,0.1) inset; +white-space: nowrap; +} + +#access a:hover { + color:#0C85CD ; +} + +#access ul ul { + display: none; + position: absolute; + clear:both; + z-index: 99999; + margin-left:0px; + -moz-box-shadow:0 10px 10px rgba(0, 0, 0, 0.3) ; + -webkit-box-shadow:0 10px 10px rgba(0, 0, 0, 0.3); + box-shadow:0 10px 10px rgba(0, 0, 0, 0.3); +} +#access ul ul li { /* level 2 */ + margin:0; + width: 100%; /* submenu width fix */ + border-bottom: 1px solid rgba(220,220,220,0.3); + position:relative; + background:#FFF; + -webkit-border-radius: 0; + -moz-border-radius:0; + border-radius: 0; + -moz-box-shadow:none ; + -webkit-box-shadow:none ; + box-shadow:none; + display:block; + float:left; + clear:both; + min-width:150px; +} + + +#access ul ul ul { +position:absolute; + left: 100%; + top: 0px; + margin:0; +} + + +#access ul ul ul li { /* level 3 */ + border: 0; + width: 100%; + display: block; + float: none; + border-bottom: 1px solid rgba(220,220,220,0.3); + } + + +#access ul ul a, #access ul ul ul a { + display:block; + float:none; + color:#5F5B5B; + width:100% ; + padding-top: 0.6em ; + padding-bottom: 0.6em ; + } + +#access ul ul li:hover, #access ul ul ul li:hover { + background:#FCFCFC ; + } + + + +#access li:hover > a { + color:#0E85CD ; +} + +#access ul ul :hover > a { + color:#0E85CD; +} + +#access.jssafe ul li > ul { + display: none; +} + +#access.jssafe ul li:hover > ul { + display: block; +} +#access ul li.current_page_item > a, +#access ul li.current-menu-item > a{ + + color: #000 !important; +} + +#access ul ul li.current_page_item , +#access ul ul li.current-menu-ancestor, +#access ul ul li.current-menu-item , +#access ul ul li.current-menu-parent { + color: #000 !important; + background:#FFF !important; +} + + +* html #access ul li.current_page_item a, +* html #access ul li.current-menu-ancestor a, +* html #access ul li.current-menu-item a, +* html #access ul li.current-menu-parent a, +* html #access ul li a:hover { + color: #5F5B5B ; +} + +/* =Menu -SECONDARY +-------------------------------------------------------------- */ + +.footermenu { + display:block; + overflow:visible; + float:none; +} + +.topmenu { +overflow:hidden; + } + +.topmenu ul{ + margin:0; + padding:0; + float:right; +} + +.topmenu ul li{ + display:block; + float:left; + margin:3px 5px; +} + +.footermenu { + text-align:center; + overflow:hidden; + display:table; + float:none; + margin:0 auto; +} + +.footermenu ul li{ + display:block; + float:left; + margin:0px 5px; + text-align:center; +} + + +/* =Content +-------------------------------------------------------------- */ + +#main { + background:#FFF; + clear: both; + overflow: hidden; + padding: 0px ; +} +#content { + margin-bottom: 0px; +} + +.entry-content pre, +.entry-content hr { + margin-bottom: 8px; +} +.entry-content ul ul, +.entry-content ol ol, +.entry-content ul ol, +.entry-content ol ul { + margin-bottom: 0; +} +.entry-content pre, +.entry-content kbd, +.entry-content tt, +.entry-content var { + overflow:auto; + font-family: "Courier New",Courier,monospace !important; +} + +.entry-content dt, +.entry-content th { + color: #000; +} +.entry-content h1, +.entry-content h2, +.entry-content h3, +.entry-content h4, +.entry-content h5, +.entry-content h6 { + color: #0E85CD; + margin:20px 0px 5px 0px; +} + +.entry-content h1 { +font-size:1.9em; +} + +.entry-content table { + border: 1px solid #e7e7e7; + margin: 0 0 24px 0; + text-align: left; + width: 100%; +} +.entry-content tr { + background-color:#FFF; + vertical-align:top; +} +.entry-content .alternate { + background-color:#FFF; +} + +.entry-content tr th, +.entry-content thead th { + color: #000; + font-weight: bold; + padding: 9px 24px; + background-color:#f8f8f8; +} +.entry-content tr td { + border-top: 1px solid #e7e7e7; + padding: 6px 24px; + vertical-align:top; +} +.entry-content tr.odd td { + background: #f2f7fc; +} +.hentry { + margin: 0 0 28px 0; +} + +.single .hentry { + margin: 0 0 36px 0; +} +.page-title { + color: #000; + font-size: 16px; + font-weight: bold; + margin: 0 0 10px 0; +} +.page-title span { + color: #333; + font-size: 16px; + font-style: italic; + font-weight: normal; +} +.page-title a:link, +.page-title a:visited { + color: #666; + text-decoration: none; +} +.page-title a:active, +.page-title a:hover { + color: #0D85CC; +} +#content .entry-title { + color: #000000; + font-size: 30px; + font-weight: normal; + line-height: 1.3em; + margin-bottom: 0; + -moz-text-shadow:2px 2px 0px #FFF,-2px -2px 0px #FFF,3px 3px 1px #ccc; + -webkit-text-shadow:2px 2px 0px #FFF,-2px -2px 0px #FFF,3px 3px 1px #ccc; + text-shadow:2px 2px 0px #FFF,-2px -2px 0px #FFF,3px 3px 1px #ccc; +} +.entry-title a:link, +.entry-title a:visited { + color:inherit; + text-decoration: none; +} +.entry-title a:active, +.entry-title a:hover { + color: #333; +} + +#content > h1.entry-title { + margin-bottom: 10px; +} + +.entry-meta { + background-color: #F5F5F5; + border: 2px solid #FFF; + color: #666666; + display: block; + font-size: 12px; + margin: 0px 1px; + padding: 0 6px; + box-shadow:0px 0px 1px #DDD; + -moz-box-shadow:0px 0px 1px #DDD; + -webkit-box-shadow:0px 0px 1px #DDD; + clear:both; + line-height:2em; +} + +#content .entry-meta2, +#content .entry-meta3 { + font-size:12px ; + padding: 0; + clear:both; + display:block; +} + +.entry-meta .comments-link { + float:right; + background:#FFF; + padding:0px 10px; + padding-bottom:0px; + font-size:12px; + box-shadow: inset 1px 1px 0px #DDD; + -moz-box-shadow: inset 1px 1px 0px #DDD; + -webkit-box-shadow: inset 1px 1px 0px #DDD; + line-height:1.9em; + margin-top:0px; +} + +#content h3.entry-format { + margin-left:0px; + padding-left:4px; + display:inline; + font-size:14px; + color:#666 !important; + text-decoration:underline; + text-transform: uppercase; + text-shadow: none; + -moz-text-shadow: none; + -webkit-text-shadow:none; + font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; +} + +.entry-meta2 .comments-link { + border-bottom: 1px solid #EEEEEE; + float: right; + font-size: 12px; + padding: 0 10px; +} + + +.entry-meta abbr, +.entry-utility abbr { + border: none; +} +.entry-meta abbr:hover, +.entry-utility abbr:hover { + border-bottom: 1px dotted #666; +} +.entry-content, +.entry-summary { + clear: both; + padding: 8px 0px 10px; +} +#content .entry-summary p:last-child { + margin-bottom: 12px; +} +.entry-content fieldset { + border: 1px solid #e7e7e7; + margin: 0 0 24px 0; + padding: 24px; +} +.entry-content fieldset legend { + background: #fff; + color: #000; + font-weight: bold; + padding: 0 24px; +} + +.entry-content label {} +.entry-content sup, +.entry-content sub { + font-size: 10px; +} + +.entry-content blockquote.left { + float: left; + margin-left: 0; + margin-right: 24px; + text-align: right; + width: 33%; +} +.entry-content blockquote.right { + float: right; + margin-left: 24px; + margin-right: 0; + text-align: left; + width: 33%; +} + +.tag-links { + margin-left:30px; +} + +.page-link { + margin: 20px 0; + clear:both; + font-size: 12px; + line-height: 14px; +} + + .page-link em { + font-weight: normal; + font-style:normal; + text-decoration: none; + margin:0px; + padding: 2px 8px; + background:#f7f7f7; + border-bottom:1px solid #eee; + -moz-transition:.2s background ease-in; + -o-transition:.2s background ease-in; + -webkit-transition:.2s background ease-in; + transition:.2s background ease-in; +} + + .page-link a:hover em { + background:#eee; +} + +body.page .edit-link { + clear: both; + display: block; +} +#entry-author-info { + background: #FFF; + border-top: 4px solid #333; + clear: both; + font-size: 14px; + line-height: 20px; + margin: 24px 0; + overflow: hidden; + padding: 18px 20px; +} +#entry-author-info #author-avatar { + background: #fff; + border: 1px solid #e7e7e7; + float: left; + height: 60px; + margin: 0 -104px 0 0; + padding: 11px; + -moz-box-shadow:0 0 10px #EEEEEE inset; + -webkit-box-shadow:0 0 10px #EEEEEE inset; + box-shadow:0 0 10px #EEEEEE inset; + +} +#entry-author-info #author-description { + float: left; + margin: 0 0 0 104px; +} +#entry-author-info h2 { + color: #000; + font-size: 100%; + font-weight: bold; + margin-bottom: 0; +} +.entry-utility { + clear: both; + color: #666; + font-size: 12px; + line-height: 18px; +} + a, +.entry-utility a { + color: #666; +} +.entry-meta a:hover, +.entry-utility a:hover { + color: #000; +} +#content .video-player { + padding: 0; +} + +/* POST FORMATS */ + +article.format-link, article.format-quote, article.format-image, article.format-chat, article.format-aside { + background-position: 0px 10px; + background-repeat: no-repeat; } +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 header, article.format-quote header, article.format-image header, +article.format-chat header, article.format-aside header { + padding-left: 60px; } +article.format-aside header { margin-top: 7px; } +article.format-link h3.entry-format, 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; } + + +/* =Asides +-------------------------------------------------------------- */ + +.home #content .format-aside p, +.home #content .category-asides p { + line-height: 20px; + margin-bottom: 10px; + margin-top: 0; +} +.home .hentry.format-aside, +.home .hentry.category-asides { + padding: 0; +} +.home #content .format-aside .entry-content, +.home #content .category-asides .entry-content { + padding-top: 0; +} + + +#content .format-aside .entry-title { + display:none; +} + +#content .format-aside .author , +#content .format-aside .bl_categ, +#content .format-aside .bl_sep { + display:none; +} + +/** + * 5.4 Galleries + * ---------------------------------------------------------------------------- + */ + +#content .gallery br+br { + display: none; +} +#content .attachment img { /* single attachment images should be centered */ + display: block; + margin: 0 auto; + max-width:96%; +} + +.gallery { + margin: 0 auto 20px; +} + +.gallery img { + /*border: 10px solid #f1f1f1;*/ +} + +.gallery-item { + float: left; + margin: 0 4px 4px 0; + overflow: hidden; + position: relative; +} + +.gallery-columns-1.gallery-size-medium, +.gallery-columns-1.gallery-size-thumbnail, +.gallery-columns-2.gallery-size-thumbnail, +.gallery-columns-3.gallery-size-thumbnail { + display: table; + margin: 0 auto 20px; +} + +.gallery-columns-1 .gallery-item, +.gallery-columns-2 .gallery-item, +.gallery-columns-3 .gallery-item { + text-align: center; +} + +.gallery-columns-4 .gallery-item { + max-width: 23%; + max-width: -webkit-calc(25% - 4px); + max-width: calc(25% - 4px); +} + +.gallery-columns-5 .gallery-item { + max-width: 19%; + max-width: -webkit-calc(20% - 4px); + max-width: calc(20% - 4px); +} + +.gallery-columns-6 .gallery-item { + max-width: 15%; + max-width: -webkit-calc(16.7% - 4px); + max-width: calc(16.7% - 4px); +} + +.gallery-columns-7 .gallery-item { + max-width: 13%; + max-width: -webkit-calc(14.28% - 4px); + max-width: calc(14.28% - 4px); +} + +.gallery-columns-8 .gallery-item { + max-width: 11%; + max-width: -webkit-calc(12.5% - 4px); + max-width: calc(12.5% - 4px); +} + +.gallery-columns-9 .gallery-item { + max-width: 9%; + max-width: -webkit-calc(11.1% - 4px); + max-width: calc(11.1% - 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-right: 0; +} + +.gallery-caption { + background-color: rgba(0, 0, 0, 0.7); + box-sizing: border-box; + color: #fff; + font-size: 14px; + line-height: 1.3; + margin: 0; + max-height: 50%; + opacity: 0; + padding: 2px 5%; + position: absolute; + bottom: 0; + left: 0; + text-align: left; + -webkit-transition: opacity 400ms ease; + transition: opacity 400ms ease; + width: 90%; + cursor: default; + margin: 0 0 16px; +} + +.gallery-item:hover .gallery-caption { + opacity: 1; +} + +.gallery-columns-7 .gallery-caption, +.gallery-columns-8 .gallery-caption, +.gallery-columns-9 .gallery-caption { + display: none; +} + +/* =Chat +-------------------------------------------------------------- */ +.format-chat p { + font-family:Monaco, Courier New, monospace !important; +} + +/* =Quote +-------------------------------------------------------------- */ +.format-quote blockquote, +.format-quote blockquote p{ + font-family: Georgia,"Bitstream Charter",serif !important; + font-size:1.1em !important; +} + + +/* =Status +-------------------------------------------------------------- */ + +.format-status .entry-title { + display:none; +} + +#content .format-status .entry-meta2 { + float:left; + clear:right; + padding-left:0px; +} + +.status_content { + display:block; + float:left; + width:80%; +} + +#content .format-status h3.entry-format { + margin-left:0px; + padding-left:0px; + text-indent:0; +} + +.format-status .avatar { + display:block; + width:auto; + float:left; + margin-right:10px; +} + +/* =Attachment pages +-------------------------------------------------------------- */ + +.attachment .entry-content .entry-caption { + font-size: 140%; + margin-top: 24px; +} +/*.attachment .entry-content .nav-previous a:before { + content: '\2190\00a0'; +} +.attachment .entry-content .nav-next a:after { + content: '\00a0\2192'; +}*/ + + +/* =Images +-------------------------------------------------------------- */ + +#content img { + margin: 0; + height: auto; + max-width:100%; + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + box-sizing:border-box; +} +#content table img { + max-width: initial; } + +#content img:hover { + +} + +#content .alignleft, +#content img.alignleft { + display: inline; + float: left; + margin-right: 24px; + margin-top: 4px; +} +#content .alignright, +#content img.alignright { + display: inline; + float: right; + margin-left: 24px; + margin-top: 4px; +} +#content .aligncenter, +#content img.aligncenter { + clear: both; + display: block; + margin-left: auto; + margin-right: auto; +} +#content img.alignleft, +#content img.alignright, +#content img.aligncenter { + margin-bottom: 12px; +} +#content .wp-caption { + background:url(images/pins/Pin2.png) no-repeat center 1px #F9F9F9; + border: 1px solid #DDD; + border-radius:4px; + -moz-border-radius:4px; + -webkit-border-radius:4px; + line-height: 18px; + margin-bottom: 20px; + padding:22px 7px 4px; + text-align: center; + color: #333; + max-width:100%; + -moz-box-sizing:border-box; + -webkit-box-sizing:border-box; + box-sizing:border-box; +} +#content .wp-caption img { + margin: 5px 0 0; + border:none !important; + padding:0px; + box-shadow: none !important; + -moz-box-shadow: none !important; + -webkit-box-shadow: none !important; + border-radius:4px; + -moz-border-radius:4px; + -webkit-border-radius:4px; + width:100%; +} +#content .wp-caption p.wp-caption-text { + font-size: 12px; + margin: 5px; + text-align:center; + text-indent:0px; +} +#content .wp-smiley { + margin: 0; + -moz-box-shadow: none !important; + -webkit-box-shadow: none !important ; + box-shadow: none !important; + background: none !important; + border: 0 !important; + vertical-align: middle; + width:auto !important; +} + + +/* =Navigation +-------------------------------------------------------------- */ + +.navigation { + color: #666; + font-size: 12px; + line-height: 18px; + overflow: hidden; + +} +.navigation a:link, +.navigation a:visited { + text-decoration: none; + color:#666; +} +.navigation a:active, +.navigation a:hover { + color: #0D85CC; +} +.nav-previous { + float: left; + max-width: 47%; + padding:0 1%; + border-bottom:1px dashed #DDD; +} +.nav-next { + float: right; + text-align: right; + max-width: 47%; + padding:0 1%; + border-bottom:1px dashed #DDD; +} + +.nav-next:hover, .nav-previous:hover { + border-color:#999; +} + +#nav-above { + margin: 0 0 18px 0; +} +#nav-above { + display: none; +} +.paged #nav-above, +.single #nav-above { + display: block; +} +#nav-below { + margin-bottom: 10px; + clear:both; +} + + +/* =Comments +-------------------------------------------------------------- */ +#comments { + clear: both; +} +#comments .navigation { + padding: 0 0 18px 0; +} +h3#comments-title, +h3#reply-title { + color: #000; + font-size: 20px; + font-weight: bold; + margin-bottom: 0; +} +h3#comments-title { + padding-top:4px; + padding-bottom:4px; + padding-left:10px; + margin-top: 20px; + margin-bottom:20px;; +} +.commentlist { + list-style: none; + margin: 0; +} +.commentlist li.comment { + padding:10px; + line-height: 24px; + margin: 0 0 10px 0; + padding: 0 0px 10px 56px; + position: relative; + background:#FFF; + background-image:none; + list-style:none; +} + +.reply a.comment-reply-link { +padding:0 3px; +color:#CCC; +font-weight:bold; +-moz-transition:.2s color ease; +-webkit-transition:.2s color ease; +transition:.2s color ease; +} + +.commentlist li:last-child { + margin-bottom: 0; +} +#comments .comment-body ul, +#comments .comment-body ol { +} +#comments .comment-body p:last-child { + margin-bottom: 0px; +} +#comments .comment-body blockquote p:last-child { + margin-bottom: 24px; +} +.commentlist ol { + list-style: decimal; +} +.commentlist img.avatar { + position: absolute; + top: 4px; + left: 5px; + border:1px solid #EEE ; + -moz-border-radius:0 ; + -webkit-border-radius:0; + border-radius:0; + background:#FFF; +} +.comment-author { + display:block; + float:left; +} +.comment-author cite { + color: #000; +} +.comment-author .says { + font-style: italic; + display:none; +} +.comment-meta { + font-size: 12px; + margin-bottom: 5px; + display:block; + float:left; + margin-left:5px; +} +.comment-meta a:link, +.comment-meta a:visited { + color: #999; + text-decoration: none; +} +.comment-meta a:active, +.comment-meta a:hover { + color: #0D85CC; +} + +.comment-body { +padding:5px 10px; +background:#F9F9F9; +border:1px solid #EEE; +clear:both; +} +.commentlist .even { +} +.commentlist .bypostauthor { +} +.reply { + font-size: 12px; + padding: 0 0 10px 0; + text-align:right; +} +.reply a, +a.comment-edit-link { + color: #666; +} + +.reply a:hover, +a.comment-edit-link:hover { + color: #0D85CC; +} +.commentlist .children { + background-image:none; + list-style: none; + margin: 0; + margin-left:-40px; + +} +.commentlist .children li { + border: none; + background-image:none !important; + margin: 0; + text-indent:0px !important; +} + +.nopassword, +.nocomments, .nocomments2 { +/* display: block;*/ +} + +#comments .pingback { + border-bottom: 1px solid #e7e7e7; + margin-bottom: 18px; + padding-bottom: 18px; +} +.commentlist li.comment+li.pingback { + margin-top: -6px; +} +#comments .pingback p { + color: #666; + display: block; + font-size: 12px; + line-height: 18px; + margin: 0; +} +#comments .pingback .url { + font-size: 13px; + font-style: italic; +} + +/* Comments form */ +input[type="submit"] { + color: #333; +} +#respond { + margin: 24px 0; + overflow: hidden; + position: relative; +} +#respond p { + margin: 0; +} +#respond .comment-notes { + margin-bottom: 1.5em; + font-size:0.8em; + color:#999; +} +.form-allowed-tags { + line-height: 1em; +} +.children #respond { + margin: 0 48px 0 0; + min-width:400px; +} +h3#reply-title { + margin: 18px 0 0 0; +} +#comments-list #respond { + margin: 0 0 18px 0; +} +#comments-list ul #respond { + margin: 0; +} +#cancel-comment-reply-link { + font-size: 12px; + font-weight: normal; + line-height: 18px; +} +#respond .required { + color: #0D85CC; + display:inline; +} + +#commentform { + width:90%; + max-width:550px; + display:block; + float:left; + margin:0 auto; +} + +#respond label { + color: #666; + font-size: 12px; +} + +#respond input { + margin: 0 0 9px; +} + + + +.comment-form-comment textarea { + width:80%; + display:block; + float:right; + margin-left:12px; + height:150px; +} + +.comment-form-author label, .comment-form-email label, .comment-form-email label, .comment-form-url label, .comment-form-comment label { +display:block; + float:left; + clear:both; + padding-top:3px; + width:10%; +} + +.comment-form-author input, .comment-form-email input, .comment-form-email input, .comment-form-url input, .comment-form-comment input { + width:80%; + display:block; + float:right; + margin-left:12px; +} + +#respond .form-allowed-tags { + color: #666; + font-size: 12px; + line-height: 18px; + width: 100%; + margin-left:12px; + clear:both; + display:block; + float:none; + padding-top:8px; +} +#respond .form-allowed-tags code { + font-size: 11px; +} +#respond .form-submit { + margin: 12px 0; + text-align:right; + clear:both; +} +#respond .form-submit input { + font-size: 14px; + width: auto; +} + +#respond .form-submit input#submit { + color:#555; + border:1px solid #CCC; + border-radius:5px; + -moz-border-radius:5px; + -webkit-border-radius:5px; + padding:2px 5px; + background-color:#FFF; + -moz-box-shadow: inset 0px -10px 10px 0px #EEE; + -webkit-box-shadow: inset 0px -10px 10px 0px #EEE; + box-shadow: inset 0px -10px 10px 0px #EEE; +} + +#respond .form-submit input#submit:hover { + background-color:#F6F6F6; + color:#444; +} + + +/* =Widget Areas +-------------------------------------------------------------- */ + +.widget-area ul { + list-style: none !important; + margin-left: 0; + list-style-image:none; +} +.widget-area ul ul { + list-style: none !important; + margin-left: 0; +} + +.widget-area ul li{ + background-image: none; + margin-left: 0; + list-style-image:none; +} +.widget-area ul ul li{ + background:url(images/bullets/arrow_white.png) left 8px no-repeat; + margin:4px 3px; + display:block; + float:none; + width:auto; + padding:3px 0 0 12px; +} + +.contentsearch { +display:block; +float:none; +overflow:hidden; +} + +.contentsearch #s { + display:block;float:left; + margin-bottom:20px; + padding-left:10px; + font-size:15px; + height:40px; + min-width:250px; + -moz-border-radius:0 10px 10px 0; + -webkit-border-radius:0 10px 10px 0; + border-radius:0 10px 10px 0; + -moz-transition:background .2s ease-in; + -o-transition:background .2s ease-in; + -webkit-transition:background .2s ease-in; + transition:background .2s ease-in; + } +.contentsearch #searchsubmit { +display:block; +float:left; +padding:0; +margin:0; +text-align:center; +position:relative; +left:-40px; top:0px; +background: #777; +width:40px;height:40px; +border:none; +cursor:pointer; +font-size:12px; +color:#EEE; +-moz-border-radius:0 10px 10px 0; +-webkit-border-radius:0 10px 10px 0; +border-radius:0 10px 10px 0; +} + +#searchform { +display:block; +position:relative; +height:20px; +margin-bottom:20px; +} + +#main #searchform, #footer #searchform { +margin-right:10px; +} + +.widget_search #s, #search #s {/* This keeps the search inputs in line This is the Sidebar Search*/ + position:absolute; + right:0;top:0; + display:block; + width:100%; + padding-left:10px; + margin:0; + -moz-border-radius:0px 0 0 0; + -webkit-border-radius:0px 0 0 0; + border-radius:0px 6px 6px 0; + font-family:Arial !important; + font-size:14px; + -moz-box-sizing:border-box; + -webkit-box-sizing:border-box; + box-sizing:border-box; +} + +#searchform #s:hover , #container #s:hover { +color:#0D85CC; +} + +.widget_search #searchsubmit { +display:block; +padding:0;margin:0; +position:absolute; +top:0px;right:0px; +width:36px;height:32px; +border:none;cursor:pointer; +color:#FFF;background: #999; +font-size:12px; +-moz-border-radius:0px 0 0 0; +-webkit-border-radius:0px 0 0 0; +border-radius:0px 6px 6px 0; +-moz-transition:.2s background ease-in; +-webkit-transition:.2s background ease-in; +transition:.2s background ease-in; +} + +#searchsubmit:hover { +background:#AAA; +} + +.widget_search label { + display: none; +} +.widget-container { + margin: 0 0 18px 0; +} +.widget-title { + color: #2EA5FD; + font-size:16px; + padding:4px 0; + padding-left:15px; + text-align:left; + margin-bottom:10px; + background-color:#333; + margin-left:-10px; + padding-right:10px; + width:100%; + -moz-border-radius:10px 0 0 0; + -webkit-border-radius:10px 0 0 0; + border-radius:10px 0 0 0; + +} + +#footer-widget-area .widget-title { + background:none; + box-shadow:none; + -moz-box-shadow:none; + -webkit-box-shadow:none; + color:#0D85CC; + text-align:left; + border-radius:10px; + -webkit-border-radius:10px; + -moz-border-radius:10px; + width:95%; +} + +#footer-widget-area a { + background:none; + box-shadow:none; + -moz-box-shadow:none; + -webkit-box-shadow:none; + text-shadow:none; + border:0; + padding:0;margin:0; +} + +#footer-widget-area a:hover { + text-decoration:underline; + color:#888; +} + +#footer-widget-area ul ul li { + display:block; + float:none; + background:none; + padding-left:0; + margin-left:0; +} + +.widget-container li { + display:block;float:none; + margin:4px 0; +} + +.widget-area { + font-size: 14px; + line-height: 1.5; +} + +.widget-area a:link, +.widget-area a:visited { + text-decoration: none; + color:#0D85CC; + font-size:14px; + line-height: 1.5; + word-wrap:break-word; +} +.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; +} +#wp-calendar { + width: 100%; +} + +#calendar_wrap { + display:block; + float:none; + margin-left:10px; +} + +#wp-calendar caption { + color: #333; + font-size: 14px; + font-weight: bold; + padding-bottom: 4px; + text-align: left; + margin-left:10px; +} +#wp-calendar thead { + font-size: 11px; +} +#wp-calendar thead th { +} +#wp-calendar tbody { + color: #000; +} +#wp-calendar tbody td { + padding: 3px 0 2px; + text-align: center; + border:1px solid #EEE; +} + +#wp-calendar tbody td:hover { + background: #EEE; + opacity:0.8; +} + +#wp-calendar tbody td a{ + box-shadow:none; + -moz-box-shadow:none; + -webkit-box-shadow:none; + color:#0D85CC; + border:none !important; + background:none !important; + padding:0; + margin:0; +} + +#wp- tbody .pad { + background: none; +} +#wp-calendar tfoot #next { + text-align: right; +} +.widget_rss a.rsswidget { + color: #000; +} +.widget_rss a.rsswidget:hover { + color: #0D85CC; +} +.widget_rss .widget-title img { + width: 11px; + height: 11px; +} + +/* Main sidebars */ +#main .widget-area ul { + margin-left: 0; + padding: 0; +} +#main .widget-area ul ul { + border: none; + margin-left: 0px; + padding: 0; +} +#main .widget-area ul.xoxo{ +padding-right:10px; +} + +/* Before and after content widgets */ + +.yoyo .widget-title { +background:none; +padding:0; +margin:0; +} + + +/* Footer widget areas */ +#footer-widget-area { +margin-top:10px; +} + +#footer-widget-area a{ + color:#666; +} + +#footer-widget-area #wp-calendar tbody td { + background:none ; + border:1px solid #222; + padding:3px 0 2px; + text-align:center; + color:#999; +} + + + +/* =Footer +-------------------------------------------------------------- */ + +#footer { + margin-bottom: 0px; + background:#222; + +} + +#footer2 { +display:block; +background:#171717; +padding-bottom:10px; +overflow:visible; +} + +#colophon { + margin-top: 0; + overflow: hidden; + padding: 0 0 10px 0px; +} + +#site-copyright { + display:block; + float:none; + font-style: italic; + clear:both; + margin:0 auto; + text-align:center; + padding-top:4px; +} + +#site-copyright a{ +text-decoration:none; +color:#0D85CC; +} + +#site-copyright a:hover{ +text-decoration:underline; +} + +img#wpstats { + display: block; + margin: 0 auto 10px; +} + +/* Extras */ + +#forbottom { + clear:both; + width:100%; +} + +#forbottom2 { + clear:both; + width:100%; +} + + +/* =Mobile Safari ( iPad, iPhone and iPod Touch ) +-------------------------------------------------------------- */ + +pre { + -webkit-text-size-adjust: 140%; +} +code { + -webkit-text-size-adjust: 160%; +} +#access, +.entry-meta, +.entry-utility, +.navigation, +.widget-area { + -webkit-text-size-adjust: 120%; +} +#site-description { + -webkit-text-size-adjust: none; +} + +/* SOCIALS */ + +.socials { + float:right; + position:relative; + margin-right:10px; + padding-left:10px; + min-height:20px; + overflow: hidden; + padding-top:5px; +} +.socials a { + display:block; + float:left; + margin-right:5px; + position:relative; +} +.socials img { + width:26px; +} + +#header-container >div#sheader { +position:absolute; +margin:0; +top:5px; +right:5px; +} +#smenul, #smenur { + margin-top:3px; + margin-bottom:-6px; +} +#smenul a img, #smenur a img {width:34px;} +#smenul { + float:left; + padding-left:20px; +} +#sfooter { + float:right; + padding-top:5px; + top:-24px; + overflow:visible; +} + +#sfooter a { + width:26px; + height:26px; + margin-left:5px; +} + +/* ARTICLES */ + +article.post { + display:block; + overflow:hidden; +} + +article.sticky { +/*background: url("images/icon-back.png") repeat;*/ +background: #fafafa; +background: -moz-linear-gradient(top, #eeeeee 0%, #f7f7f7 7%, #ffffff 61%, #ffffff 100%); +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: -o-linear-gradient(top, #eeeeee 0%,#f7f7f7 7%,#ffffff 61%,#ffffff 100%); +background: -ms-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 ); +-moz-border-radius:10px; +-webkit-border-radius:10px; +border-radius:10px; +padding:10px; +} + + .sticky hgroup { +} + + +/* BACK TO TOP BUTTON */ + +#toTop { + width:37px; + height:39px; + background:url(images/back2top.png) bottom center no-repeat; + position:fixed; + bottom:20px; + right:20px; + cursor:pointer; + display:none; + z-index:9999; + transition:background .2s; +} +#toTop:hover { + background-position:top center; +} + +/* CUSTOM IMAGE BORDER */ + +.imageOne { + border:1px solid #DDD !important; + padding:3px; + height: auto; +} +.imageTwo{ + background-color: #FFFFFF; + border: 1px solid #EEE; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + padding: 3px; + -moz-box-shadow:0px 0px 4px #CCC; + -webkit-box-shadow:0px 0px 4px #CCC; + box-shadow:0px 0px 4px #CCC; +} +.imageThree{ + background-color: #FFFFFF; + border: 6px solid #EEEEEE; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius:5px; + padding: 3px; +} +.imageFour{ + border:1px solid #666 !important; + -moz-box-shadow:0px 0px 4px #666; + -webkit-box-shadow:0px 0px 4px #666; + box-shadow:0px 3px 4px #999; +} +.imageFive{ + border:3px solid #DDD !important; +} +.imageSix{ +border:8px solid #BBB !important; + -moz-box-shadow:0px 0px 5px #333; + -webkit-box-shadow:0px 0px 5px #333; + box-shadow: 0px 0px 5px #333; +} +.imageSeven{ + background-color: #FFFFFF; + border: 1px solid #CCC; + padding: 7px; + -moz-box-shadow:2px 2px 2px #CCC; + -webkit-box-shadow:2px 2px 2px #CCC; + box-shadow:inset 0px 0px 7px #CCC; +} + +/* EDIT POST LINK */ + +.edit-link a { + background:#F3F3F3; + border:1px solid #DDD; + padding:0px 10px; + -moz-border-radius: 10px; + -webkit-border-radius: 10px; + border-radius: 10px; + font-size:12px; +} +.edit-link a:hover { +border:1px solid #CCC; +background:#FAFAFA; +} + +/* BREADCRUMBS */ + +.breadcrumbs { + font-size:1em; + padding-top:.5em; +} + .breadcrumbs a { +} + .breadcrumbs a:hover { +} + +/* PAGINATION */ + +.pagination { + display:table; + float:none; + margin:20px auto; + text-align:center; + clear:both; + font-size:12px; + line-height:12px; +} +.pagination span, .pagination a { + display:block; + float:left; + margin: 2px 2px 2px 0; + padding:12px 16px 10px; + text-decoration:none; + width:auto; + color:#fff; + background: #EEE; + -moz-transition:background .5s ease-in-out; + -o-transition:background .5s ease-in-out; + -webkit-transition:background .5s ease-in-out; + transition:background .5s ease-in-out; +} +.pagination a:hover{ + color:#fff; + background: #999; +} +.pagination .current{ + background: #777; + color:#fff; +} + + +/* CUSTOM FRONT PAGE */ + + +/* + * jQuery Nivo Slider v2.7.1 + * http://nivo.dev7studios.com + * + * Copyright 2011, Gilbert Pellegrom + * Free to use and abuse under the MIT license. + * http://www.opensource.org/licenses/mit-license.php + * + * March 2010 + */ + + +/* The Nivo Slider styles */ +.nivoSlider { + position:relative; + width:100%; + height:auto; + overflow: hidden; +} +.nivoSlider img { + position:absolute; + top:0px; + left:0px; +} +.nivo-main-image { + display: block !important; + position: relative !important; + width: 100% !important; +} + +/* If an image is wrapped in a link */ +.nivoSlider a.nivo-imageLink { + position:absolute; + top:0px; + left:0px; + width:100%; + height:100%; + border:0; + padding:0; + margin:0; + z-index:6; + display:none; +} +/* The slices and boxes in the Slider */ +.nivo-slice { + display:block; + position:absolute; + z-index:5; + height:100%; + top:0; +} +.nivo-box { + display:block; + position:absolute; + z-index:5; + overflow:hidden; +} +.nivo-box img { display:block; } + +/* Caption styles */ +.nivo-caption { + position:absolute; + left:0px; + bottom:0px; + background:#000; + color:#fff; + width:100%; + z-index:8; + padding: 5px 10px; + opacity: 0.8; + overflow: hidden; + display: none; + -moz-opacity: 0.8; + filter:alpha(opacity=80); + -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ + -moz-box-sizing: border-box; /* Firefox, other Gecko */ + box-sizing: border-box; /* Opera/IE 8+ */ +} +.nivo-caption p { + padding:5px; + margin:0; +} +.nivo-caption a { + display:inline !important; +} +.nivo-html-caption { + display:none; +} +/* Direction nav styles (e.g. Next & Prev) */ +.nivo-directionNav a { + position:absolute; + top:45%; + z-index:9; + cursor:pointer; +} +.nivo-prevNav { + left:0px; +} +.nivo-nextNav { + right:0px; +} +/* Control nav styles (e.g. 1,2,3...) */ +.nivo-controlNav { + text-align:center; + padding: 15px 0; +} +.nivo-controlNav a { + cursor:pointer; +} +.nivo-controlNav a.active { + font-weight:bold; +} + +.slider-navhover .nivo-directionNav a.nivo-prevNav, +.slider-navhover .nivo-directionNav a.nivo-nextNav { + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + filter: alpha(opacity=0); + opacity: 0; + -webkit-transition: .3s all ease-in-out; + -moz-transition: .3s all ease-in-out; + -o-transition: .3s all ease-in-out; + transition: .3s all ease-in-out; +} + +.slider-navhover:hover .nivo-directionNav a.nivo-prevNav, +.slider-navhover:hover .nivo-directionNav a.nivo-nextNav { + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; + filter: alpha(opacity=90); + opacity: 0.9; +} + +/* +Skin Name: Nivo Slider Default Theme +Skin URI: http://nivo.dev7studios.com +Skin Type: flexible +Description: The default skin for the Nivo Slider. +Version: 1.0 +Author: Gilbert Pellegrom +Author URI: http://dev7studios.com +*/ +.theme-default .nivoSlider { + position:relative; + background:#fff url(images/nivoslider/loading.gif) no-repeat 50% 50%; + margin-bottom:50px; + -webkit-box-shadow: 0px 1px 5px 0px #4a4a4a; + -moz-box-shadow: 0px 1px 5px 0px #4a4a4a; + box-shadow: 0px 1px 5px 0px #4a4a4a; +} +.theme-default .nivoSlider img { + position:absolute; + top:0px; + left:0px; + display:none; +} +.theme-default .nivoSlider a { + border:0; + display:block; +} + +.theme-default .nivo-controlNav { + text-align: center; + padding: 0 0 20px 0; +} +.theme-default .nivo-controlNav a { + display:inline-block; + width:22px; + height:22px; + background:url(images/nivoslider/bullets.png) no-repeat; + text-indent:-9999px; + border:0; + margin: 0 2px; +} +.theme-default .nivo-controlNav a.active { + background-position:0 -22px; +} + +.theme-default .nivo-directionNav a { + display:block; + width:30px; + height:30px; + background:url(images/nivoslider/arrows.png) no-repeat; + text-indent:-9999px; + border:0; +} +.theme-default a.nivo-nextNav { + background-position:-30px 0; + right:15px; +} +.theme-default a.nivo-prevNav { + left:15px; +} + +.theme-default .nivo-caption { + font-family: Helvetica, Arial, sans-serif; +} +.theme-default .nivo-caption a { + color:#fff; + border-bottom:1px dotted #fff; +} +.theme-default .nivo-caption a:hover { + color:#fff; +} + +.theme-default .nivo-controlNav.nivo-thumbs-enabled { + width: 100%; +} +.theme-default .nivo-controlNav.nivo-thumbs-enabled a { + width: auto; + height: auto; + background: none; + margin-bottom: 5px; +} +.theme-default .nivo-controlNav.nivo-thumbs-enabled img { + display: block; + width: 120px; + height: auto; +} + +/* IE link fix */ +a.nivo-imageLink { + background-color: #fff; + filter:alpha(opacity=0); + opacity: 0; + -webkit-opacity:0; + -moz-opacity:0; +-khtml-opacity:0; +} + + +/* Front page columns */ + +#front-columns { + display:block; + width:auto; + float:none; + margin:0px 30px; + overflow:hidden; + padding-top:20px; +} +.column-image { + width:100%; + display:block; + background:#CCC; + margin-bottom:10px; + overflow:hidden; + border:1px solid #EEE; + box-shadow:0 0 3px #333; +} +.column-text { + text-align:justify; +} +.column-image img { + width:100%; + height:100%; + display:block; +} +#front-columns h3 { + font-size:20px; + margin:7px 0; +} +.columnmore { + font-size:14px; + text-align:right; + padding-right:10px; + margin-top:10px; +} +/* Style HTML5 tags for IE8 and lower */ +header +,nav +,section +,article +,aside +,footer +,hgroup +{ +display: block; +} + +.tinynav { +display:block; +float:none; +margin:0 auto; +display:none; +min-width:200px; +width:100%; +padding:10px; +margin-bottom:8px; +} + +.tinynav option { + +} + +/* Multi-column short code */ +.multi-column {display: block; width: 100%; float: left; margin: 10px 0;} +.short-columns {display: inline-block; float: left; margin: 0px; padding: 1%; } +.column-12 {width: 48%;} +.column-13 {width: 31%;} +.column-14 {width: 23%;} +.column-16 {width: 14.5%;} +.column-23 {width: 62%;} +.column-34 {width: 72%;} +.column-56 {width: 80%;} +.column-1 {width: 98%; margin: 0} +.multi-column .short-columns:first-child {padding-left: 0; margin-left: 0} +.multi-column .short-columns:last-child {padding-right: 0; margin-right: 0} + +/* Pull quotes short code*/ +.pullquote { + font-family: Verdana, arial, sans-serif; + font-size:1.2em !important; + margin-top: 15px !important; + margin-bottom: 10px !important; + width: 33%; + color: #000; +} +.pullquote p{ + + font-family: "Pontano Sans", arial, sans-serif; + font-size:1.2em !important; + color: #000; +} + +/* buttons */ +.short-button-light { + color: #454545 !important; + padding: 1px 10px; + padding-bottom:3px; + background: -moz-linear-gradient( + top, + #fcfcfc 0%, + #d6d5d3); + background: -webkit-gradient( + linear, left top, left bottom, + from(#fcfcfc), + to(#d6d5d3)); + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; + border: 1px solid #f7f7f7; + -moz-box-shadow: + 0px 0px 1px rgba(000,000,000,0.5), + inset 0px 0px 1px rgba(255,255,255,0.7); + -webkit-box-shadow: + 0px 0px 1px rgba(000,000,000,0.5), + inset 0px 0px 1px rgba(255,255,255,0.7); + box-shadow: + 0px 0px 1px rgba(000,000,000,0.5), + inset 0px 0px 1px rgba(255,255,255,0.7); + text-shadow: + -1px -1px 0px rgba(252,252,252,0.4), + 0px 0px 0px rgba(255,255,255,0.3); +} + +.short-button-dark { + color: #ffffff !important; + padding: 1px 7px; + padding-bottom:3px; + background: -moz-linear-gradient( + top, + #6b6b6b 0%, + #000000); + background: -webkit-gradient( + linear, left top, left bottom, + from(#6b6b6b), + to(#000000)); + -moz-border-radius: 5px; + -webkit-border-radius:5px; + border-radius: 5px; + border: 1px solid #666; + -moz-box-shadow: + 0px 0px 1px rgba(000,000,000,0.5), + inset 0px 0px 1px rgba(255,255,255,0.7); + -webkit-box-shadow: + 0px 0px 1px rgba(000,000,000,0.5), + inset 0px 0px 1px rgba(255,255,255,0.7); + box-shadow: + 0px 0px 1px rgba(000,000,000,0.5), + inset 0px 0px 1px rgba(255,255,255,0.7); + text-shadow: + 0px -1px 0px rgba(000,000,000,0.4), + 0px 1px 0px rgba(255,255,255,0.3); +} + +.short-button-color { + color: #ffffff !important; + padding: 1px 7px; + padding-bottom:3px; + background: #47afff; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; + border: 1px solid #878787; + -moz-box-shadow: + 0px 0px 1px rgba(000,000,000,0.5), + 0 3px 10px rgba(255,255,255,0.7) inset; + -webkit-box-shadow: + 0px 0px 1px rgba(000,000,000,0.5), + 0 3px 10px rgba(255,255,255,0.7) inset; + box-shadow: + 0px 0px 1px rgba(000,000,000,0.5), + 0 3px 10px rgba(255,255,255,0.7) inset; + text-shadow: + -1px -1px 0px rgba(000,000,000,0.4), + 0px 0px 0px rgba(255,255,255,0.3); +} + + +a.short-button-light:hover { box-shadow: 0 0 1px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.8) inset; } +a.short-button-dark:hover { box-shadow: 0 0 10px rgba(255,255,255,0.5) inset; } +a.short-button-color:hover { box-shadow: 0 3px 10px rgba(255,255,255,0.9) inset; } + +a.short-button-color:hover, a.short-button-light:hover, a.short-button-dark:hover { text-decoration:none; } + +/* shareaddy compat */ .sharedaddy ul > li { background: none !important; text-indent: 0 !important; } +/* sociable compat */ .entry-content .sociable ul li { background: none; padding-left: 2px; } +/* woocommerce compat */ .woocommerce .product .entry-summary { clear:none; } +/* video fix */ #content embed, #content iframe {max-width:100%;} +/* a bit of captcha fixes */ +#recaptcha_widget_div { display:block; float:none; clear:both; } +.math-captcha-form { display:block; float:none; clear:both; } +.cptch_block { display:block; float:none; clear:both; } + +/* FIN! */ \ No newline at end of file diff --git a/wp-content/themes/mantra/tag.php b/wp-content/themes/mantra/tag.php new file mode 100644 index 0000000..864451d --- /dev/null +++ b/wp-content/themes/mantra/tag.php @@ -0,0 +1,68 @@ + + +
      + +
      + + + + +
      ' ); + ?> + + + + + + + + + + + + + + + +
      +
      +

      +
      + +
      +

      + +
      +
      + + + + + + +
      + + diff --git a/wp-content/themes/mantra/template-blog.php b/wp-content/themes/mantra/template-blog.php new file mode 100644 index 0000000..01e41ca --- /dev/null +++ b/wp-content/themes/mantra/template-blog.php @@ -0,0 +1,54 @@ + + + + + +
      +
      + + + + + + + + + + + + + + + + + + + + + + +
      +
      +

      +
      + +
      +

      + +
      +
      + + + + + + +
      + +
      + + diff --git a/wp-content/themes/mantra/template-onecolumn.php b/wp-content/themes/mantra/template-onecolumn.php new file mode 100644 index 0000000..0318c32 --- /dev/null +++ b/wp-content/themes/mantra/template-onecolumn.php @@ -0,0 +1,38 @@ + + +
      +
      + + + +
      > +

      +
      + + '' ) ); ?> + ', '' ); ?> +
      +
      + + + + + +
      +
      + + diff --git a/wp-content/themes/mantra/template-page-with-intro.php b/wp-content/themes/mantra/template-page-with-intro.php new file mode 100644 index 0000000..1edf1a9 --- /dev/null +++ b/wp-content/themes/mantra/template-page-with-intro.php @@ -0,0 +1,52 @@ + + + + + +
      +
      + + +
      > +

      +
      + + '' ) ); ?> + ', '' ); ?> +
      +
      +
      + + +
      +
      + 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() ); + endwhile; + if($mantra_pagination=="Enable") mantra_pagination($the_query->max_num_pages); else mantra_content_nav( 'nav-below' ); + ?> + +
      + + + +
      + + diff --git a/wp-content/themes/mantra/template-threecolumns-center.php b/wp-content/themes/mantra/template-threecolumns-center.php new file mode 100644 index 0000000..fdfd74b --- /dev/null +++ b/wp-content/themes/mantra/template-threecolumns-center.php @@ -0,0 +1,21 @@ + + +
      + +
      + + + +
      + +
      + + + \ No newline at end of file diff --git a/wp-content/themes/mantra/template-threecolumns-left.php b/wp-content/themes/mantra/template-threecolumns-left.php new file mode 100644 index 0000000..5aea212 --- /dev/null +++ b/wp-content/themes/mantra/template-threecolumns-left.php @@ -0,0 +1,21 @@ + + +
      + +
      + + + +
      + +
      + + + \ No newline at end of file diff --git a/wp-content/themes/mantra/template-threecolumns-right.php b/wp-content/themes/mantra/template-threecolumns-right.php new file mode 100644 index 0000000..18e5981 --- /dev/null +++ b/wp-content/themes/mantra/template-threecolumns-right.php @@ -0,0 +1,21 @@ + + +
      + +
      + + + +
      + +
      + + + \ No newline at end of file diff --git a/wp-content/themes/mantra/template-twocolumns-left.php b/wp-content/themes/mantra/template-twocolumns-left.php new file mode 100644 index 0000000..8613af7 --- /dev/null +++ b/wp-content/themes/mantra/template-twocolumns-left.php @@ -0,0 +1,21 @@ + + +
      + +
      + + + +
      + +
      + + + \ No newline at end of file diff --git a/wp-content/themes/mantra/template-twocolumns-right.php b/wp-content/themes/mantra/template-twocolumns-right.php new file mode 100644 index 0000000..50d6dbb --- /dev/null +++ b/wp-content/themes/mantra/template-twocolumns-right.php @@ -0,0 +1,21 @@ + + +
      + +
      + + + +
      + +
      + + + \ No newline at end of file diff --git a/wp-content/themes/twentysixteen/.jscsrc b/wp-content/themes/twentysixteen/.jscsrc new file mode 100644 index 0000000..bfac7fb --- /dev/null +++ b/wp-content/themes/twentysixteen/.jscsrc @@ -0,0 +1,7 @@ +{ + "preset": "wordpress", + "fileExtensions": [ ".js" ], + "excludeFiles": [ + "js/html5.js" + ] +} \ No newline at end of file diff --git a/wp-content/themes/twentysixteen/.jshintignore b/wp-content/themes/twentysixteen/.jshintignore new file mode 100644 index 0000000..7f47284 --- /dev/null +++ b/wp-content/themes/twentysixteen/.jshintignore @@ -0,0 +1 @@ +js/html5.js \ No newline at end of file diff --git a/wp-content/themes/twentysixteen/.travis.yml b/wp-content/themes/twentysixteen/.travis.yml new file mode 100644 index 0000000..5a0d52a --- /dev/null +++ b/wp-content/themes/twentysixteen/.travis.yml @@ -0,0 +1,96 @@ +# Travis CI configuration file. +# @link https://travis-ci.org/ + +# For use with the Twenty Sixteen WordPress theme +# @link https://github.com/WordPress/twentysixteen/ + +# Declare project language and PHP versions to test against. +# @link http://about.travis-ci.org/docs/user/languages/php/ +language: php + +# Declare versions of PHP to use. Use one decimal max. +php: + - "7.0" + - "5.6" + - "5.5" + - "5.4" + - "5.3" + # Current $required_php_version for WordPress: 5.2.4 + - "5.2" + +# Ditch sudo and use containers. +# @link http://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F +# @link http://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure +sudo: false + +# Declare which versions of WordPress to test against. +# Also declare whether or not to test in Multisite. +env: + # Trunk (current version in development is 4.4) + # @link https://github.com/WordPress/WordPress + - WP_VERSION=master WP_MULTISITE=0 + +# Use this to prepare your build for testing. +# e.g. copy database configurations, environment variables, etc. +# Failures in this section will result in build status 'errored'. +before_script: + # Set up WordPress installation. + - export WP_DEVELOP_DIR=/tmp/wordpress/ + - mkdir -p $WP_DEVELOP_DIR + # Use the Git mirror of WordPress. + - git clone --depth=1 --branch="$WP_VERSION" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR + # Set up Twenty Sixteen theme information. + - theme_slug=$(basename $(pwd)) + - theme_dir=$WP_DEVELOP_DIR/src/wp-content/themes/$theme_slug + - cd .. + - mv $theme_slug $theme_dir + # Set up WordPress configuration. + - cd $WP_DEVELOP_DIR + - echo $WP_DEVELOP_DIR + - cp wp-tests-config-sample.php wp-tests-config.php + - sed -i "s/youremptytestdbnamehere/wordpress_test/" wp-tests-config.php + - sed -i "s/yourusernamehere/root/" wp-tests-config.php + - sed -i "s/yourpasswordhere//" wp-tests-config.php + # Create WordPress database. + - mysql -e 'CREATE DATABASE wordpress_test;' -uroot + # Install CodeSniffer for WordPress Coding Standards checks. + - mkdir php-codesniffer && curl -L https://github.com/squizlabs/PHP_CodeSniffer/archive/master.tar.gz | tar xz --strip-components=1 -C php-codesniffer + # Install WordPress Coding Standards. + - mkdir wordpress-coding-standards && curl -L https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/archive/master.tar.gz | tar xz --strip-components=1 -C wordpress-coding-standards + # Hop into CodeSniffer directory. + - cd php-codesniffer + # Set install path for WordPress Coding Standards + # @link https://github.com/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941 + - scripts/phpcs --config-set installed_paths ../wordpress-coding-standards + # Hop into themes directory. + - cd $theme_dir + # After CodeSniffer install you should refresh your path. + - phpenv rehash + # Install JSCS: JavaScript Code Style checker + # @link http://jscs.info/ + - npm install -g jscs + # Install JSHint, a JavaScript Code Quality Tool + # @link http://jshint.com/docs/ + - npm install -g jshint + - wget https://develop.svn.wordpress.org/trunk/.jshintrc + +# Run test script commands. +# Default is specific to project language. +# All commands must exit with code 0 on success. Anything else is considered failure. +script: + # Search theme for PHP syntax errors. + - find . \( -name '*.php' \) -exec php -lf {} \; + # Run the theme through JSHint + - jshint . + # Run the theme through JavaScript Code Style checker + - jscs . + # WordPress Coding Standards + # @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards + # @link http://pear.php.net/package/PHP_CodeSniffer/ + # -p flag: Show progress of the run. + # -s flag: Show sniff codes in all reports. + # -v flag: Print verbose output. + # -n flag: Do not print warnings (shortcut for --warning-severity=0) + # --standard: Use WordPress as the standard. + # --extensions: Only sniff PHP files. + - $WP_DEVELOP_DIR/php-codesniffer/scripts/phpcs -p -s -v -n . --standard=./codesniffer.ruleset.xml --extensions=php \ No newline at end of file diff --git a/wp-content/themes/twentysixteen/404.php b/wp-content/themes/twentysixteen/404.php new file mode 100644 index 0000000..59907be --- /dev/null +++ b/wp-content/themes/twentysixteen/404.php @@ -0,0 +1,34 @@ + + +
      +
      + +
      + + +
      +

      + + +
      +
      + +
      + + + +
      + + + diff --git a/wp-content/themes/twentysixteen/CONTRIBUTING.md b/wp-content/themes/twentysixteen/CONTRIBUTING.md new file mode 100644 index 0000000..03be8f4 --- /dev/null +++ b/wp-content/themes/twentysixteen/CONTRIBUTING.md @@ -0,0 +1,16 @@ +# Contributing to Twenty Sixteen +Hey, it’s really great you want to contribute to the new default theme for the WordPress 4.4 release! Before you dive right in, we have a few pointers on how to contribute whilst it’s on Github. + +## Best Practices +The theme is synced regularly to the WordPress.org theme directory. Whatever you add, make sure you keep to the theme review handbook. + +### Commit Messages +Here are some good ideas for commit messages: +- Keep them to a one line summary. +- Keep them short (50 chars or less). +- Make them relevant to the commit. + +## Commit Process +All changes happen through a pull request made by contributors, ideally associated with an issue. After you send your proposed changes, one of the committers will review and test. After that we can merge them in. + +When you add a pull request, please also update the CONTRIBUTORS.md with your WordPress.org username. This is a running list of all contributors and essential to give everyone that has helped make this project props when we finally merge into core. \ No newline at end of file diff --git a/wp-content/themes/twentysixteen/CONTRIBUTORS.md b/wp-content/themes/twentysixteen/CONTRIBUTORS.md new file mode 100644 index 0000000..ea9920a --- /dev/null +++ b/wp-content/themes/twentysixteen/CONTRIBUTORS.md @@ -0,0 +1,31 @@ +@iamtakashi +@iandstewart +@dd32 +@mor10 +@grapplerulrich +@davidakennedy +@frank-klein +@tywayne +@wenthemes +@monika +@metodiew +@nhuja +@headonfire +@Chrisdc1 +@philiparthurmoore +@karpstrucking +@cais +@mt8.biz +@fjarrett +@sdavis2702 +@SergeyBiryukov +@eduardozulian +@webdevmattcrom +@ehtis +@peterwilsoncc +@tfrommen +@fsylum +@wonderboymusic +@ocean90 +@obenland +@cainm diff --git a/wp-content/themes/twentysixteen/archive.php b/wp-content/themes/twentysixteen/archive.php new file mode 100644 index 0000000..bdd2967 --- /dev/null +++ b/wp-content/themes/twentysixteen/archive.php @@ -0,0 +1,65 @@ + + +
      +
      + + + + + + __( 'Previous page', 'twentysixteen' ), + 'next_text' => __( 'Next page', 'twentysixteen' ), + 'before_page_number' => '' . __( 'Page', 'twentysixteen' ) . ' ', + ) ); + + // If no content, include the "No posts found" template. + else : + get_template_part( 'template-parts/content', 'none' ); + + endif; + ?> + +
      +
      + + + diff --git a/wp-content/themes/twentysixteen/codesniffer.ruleset.xml b/wp-content/themes/twentysixteen/codesniffer.ruleset.xml new file mode 100644 index 0000000..679b9a9 --- /dev/null +++ b/wp-content/themes/twentysixteen/codesniffer.ruleset.xml @@ -0,0 +1,24 @@ + + + + + + + A custom set of code standard rules to check for WordPress themes. + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wp-content/themes/twentysixteen/comments.php b/wp-content/themes/twentysixteen/comments.php new file mode 100644 index 0000000..5352c91 --- /dev/null +++ b/wp-content/themes/twentysixteen/comments.php @@ -0,0 +1,79 @@ + + +
      + + +

      + +

      + + + +
        + 'ol', + 'short_ping' => true, + 'avatar_size' => 42, + ) ); + ?> +
      + + + + + + +

      + + + '

      ', + 'title_reply_after' => '

      ', + ) ); + ?> + +
      diff --git a/wp-content/themes/twentysixteen/css/editor-style.css b/wp-content/themes/twentysixteen/css/editor-style.css new file mode 100644 index 0000000..7b99fa2 --- /dev/null +++ b/wp-content/themes/twentysixteen/css/editor-style.css @@ -0,0 +1,546 @@ +/* +Theme Name: Twenty Sixteen +Description: Used to style the TinyMCE editor. +*/ + + +/** + * Table of Contents: + * + * 1.0 - Body + * 2.0 - Typography + * 3.0 - Elements + * 4.0 - Alignment + * 5.0 - Caption + * 6.0 - Galleries + * 7.0 - Audio / Video + * 8.0 - RTL + */ + + +/** + * 1.0 - Body + */ + +body { + color: #1a1a1a; + font-family: Merriweather, Georgia, serif; + font-size: 16px; + font-weight: 400; + line-height: 1.75; + margin: 20px 40px; + max-width: 600px; + vertical-align: baseline; +} + +body.post-type-page { + max-width: 840px; +} + + +/** + * 2.0 - Typography + */ + +h1, +h2, +h3, +h4, +h5, +h6 { + clear: both; + font-weight: 900; + margin: 56px 0 28px; +} + +h1 { + font-size: 33px; + line-height: 1.2727272727; +} + +h2 { + font-size: 28px; + line-height: 1.25; +} + +h3 { + font-size: 23px; + line-height: 1.2173913043; +} + +h4, +h5, +h6 { + font-size: 19px; + line-height: 1.1052631579; +} + +h4 { + letter-spacing: 0.13333em; + text-transform: uppercase; +} + +h6 { + font-style: italic; +} + +h1:first-child, +h2:first-child, +h3:first-child, +h4:first-child, +h5:first-child, +h6:first-child { + margin-top: 0; +} + +p { + margin: 0 0 28px; +} + +b, +strong { + font-weight: 700; +} + +dfn, +cite, +em, +i { + font-style: italic; +} + +blockquote { + border-left: 4px solid #1a1a1a; + color: #686868; + font-size: 19px; + font-style: italic; + line-height: 1.4736842105; + margin-bottom: 28px; + padding: 0 0 0 24px; +} + +blockquote:not(.alignleft):not(.alignright) { + margin-left: -28px; +} + +blockquote blockquote:not(.alignleft):not(.alignright) { + margin-left: 0; +} + +blockquote:before, +blockquote:after { + content: ""; + display: table; +} + +blockquote:after { + clear: both; +} + +blockquote > :last-child { + margin-bottom: 0; +} + +blockquote cite, +blockquote small { + color: #1a1a1a; + font-size: 16px; + line-height: 1.75; +} + +blockquote em, +blockquote i, +blockquote cite { + font-style: normal; +} + +blockquote strong, +blockquote b { + font-weight: 400; +} + +blockquote.alignleft, +blockquote.alignright { + border: 0 solid #1a1a1a; + border-top-width: 4px; + padding: 18px 0 0; + width: -webkit-calc(50% - 14px); + width: calc(50% - 14px); +} + +address { + font-style: italic; + margin: 0 0 28px; +} + +code, +kbd, +tt, +var, +samp, +pre { + font-family: Inconsolata, monospace; +} + +pre { + border: 1px solid #d1d1d1; + font-size: 16px; + line-height: 1.3125; + margin: 0 0 28px; + max-width: 100%; + overflow: auto; + padding: 14px; + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} + +code { + background-color: #d1d1d1; + padding: 2px 4px; +} + +abbr[title] { + border-bottom: 1px dotted #d1d1d1; + cursor: help; +} + +mark, +ins { + background: #007acc; + color: #fff; + padding: 2px 4px; + text-decoration: none; +} + +sup, +sub { + font-size: 75%; + height: 0; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + top: -6px; +} + +sup { + bottom: -3px; +} + +small { + font-size: 80%; +} + +big { + font-size: 125%; +} + + +/** + * 3.0 - Elements + */ + +hr { + background-color: #d1d1d1; + border: 0; + height: 1px; + margin-bottom: 28px; +} + +ul, +ol { + margin: 0 0 28px 0; + padding: 0; +} + +ul { + list-style: disc; +} + +ol { + list-style: decimal; +} + +li > ul, +li > ol { + margin-bottom: 0; +} + +li > ul, +blockquote > ul { + margin-left: 20px; +} + +li > ol, +blockquote > ol { + margin-left: 24px; +} + +dl { + margin: 0 0 28px; +} + +dt { + font-weight: bold; +} + +dd { + margin: 0 0 28px; +} + +table, +th, +td, +.mce-item-table, +.mce-item-table th, +.mce-item-table td { + border: 1px solid #d1d1d1; +} + +table a { + color: #007acc; +} + +table, +.mce-item-table { + border-collapse: separate; + border-spacing: 0; + border-width: 1px 0 0 1px; + margin: 0 0 28px; + width: 100%; +} + +table th, +.mce-item-table th, +table caption { + border-width: 0 1px 1px 0; + font-size: 16px; + font-weight: 700; + padding: 7px; + text-align: left; + vertical-align: baseline; +} + +table td, +.mce-item-table td { + border-width: 0 1px 1px 0; + font-size: 16px; + padding: 7px; + vertical-align: baseline; +} + +img { + border: 0; + height: auto; + max-width: 100%; + vertical-align: middle; +} + +a img { + display: block; +} + +figure { + margin: 0; +} + +del { + opacity: 0.8; +} + +a { + box-shadow: 0 1px 0 0 currentColor; + color: #007acc; + text-decoration: none; +} + +fieldset { + border: 1px solid #d1d1d1; + margin: 0 0 28px; + padding: 14px; +} + + +/** + * 4.0 - Alignment + */ + +.alignleft { + float: left; + margin: 6px 28px 28px 0; +} + +.alignright { + float: right; + margin: 6px 0 28px 28px; +} + +.aligncenter { + clear: both; + display: block; + margin: 0 auto 28px; +} + + +/** + * 5.0 - Caption + */ + +.wp-caption { + background: transparent; + border: none; + margin-bottom: 28px; + max-width: 100%; + padding: 0; + text-align: inherit; +} + +.wp-caption-text, +.wp-caption-dd { + color: #686868; + font-size: 13px; + font-style: italic; + line-height: 1.6153846154; + padding-top: 7px; +} + + +/** + * 6.0 - Galleries + */ + +.mce-content-body .wpview-wrap { + margin-bottom: 28px; +} + +.gallery { + margin: 0 -1.1666667%; + padding: 0; +} + +.gallery .gallery-item { + display: inline-block; + max-width: 33.33%; + padding: 0 1.1400652% 2.2801304%; + text-align: center; + vertical-align: top; + width: 100%; +} + +.gallery-columns-1 .gallery-item { + max-width: 100%; +} + +.gallery-columns-2 .gallery-item { + max-width: 50%; +} + +.gallery-columns-4 .gallery-item { + max-width: 25%; +} + +.gallery-columns-5 .gallery-item { + max-width: 20%; +} + +.gallery-columns-6 .gallery-item { + max-width: 16.66%; +} + +.gallery-columns-7 .gallery-item { + max-width: 14.28%; +} + +.gallery-columns-8 .gallery-item { + max-width: 12.5%; +} + +.gallery-columns-9 .gallery-item { + max-width: 11.11%; +} + +.gallery .gallery-caption { + font-size: 13px; + margin: 0; +} + +.gallery-columns-6 .gallery-caption, +.gallery-columns-7 .gallery-caption, +.gallery-columns-8 .gallery-caption, +.gallery-columns-9 .gallery-caption { + display: none; +} + + +/** + * 7.0 - Audio / Video + */ + +.wp-audio-shortcode a, +.wp-playlist a { + box-shadow: none; +} + +.mce-content-body .wp-audio-playlist { + margin: 0; + padding-bottom: 0; +} + +.mce-content-body .wp-playlist-tracks { + margin-top: 0; +} + +.mce-content-body .wp-playlist-item { + padding: 10px 0; +} + +.mce-content-body .wp-playlist-item-length { + top: 10px; +} + + +/** + * 8.0 - RTL + */ + +.rtl blockquote { + border: 0 solid #1a1a1a; + border-right-width: 4px; +} + +.rtl blockquote.alignleft, +.rtl blockquote.alignright { + border: 0 solid #1a1a1a; + border-top-width: 4px; +} + +.rtl blockquote:not(.alignleft):not(.alignright) { + margin-right: -28px; + padding: 0 24px 0 0; +} + +.rtl blockquote blockquote:not(.alignleft):not(.alignright) { + margin-right: 0; + margin-left: auto; +} + +.rtl li > ul, +.rtl blockquote > ul { + margin-right: 20px; + margin-left: auto; +} + +.rtl li > ol, +.rtl blockquote > ol { + margin-right: 24px; + margin-left: auto; +} + +.rtl table th, +.rtl .mce-item-table th, +.rtl table caption { + text-align: right; +} diff --git a/wp-content/themes/twentysixteen/css/ie.css b/wp-content/themes/twentysixteen/css/ie.css new file mode 100644 index 0000000..6aa093a --- /dev/null +++ b/wp-content/themes/twentysixteen/css/ie.css @@ -0,0 +1,48 @@ +/* +Theme Name: Twenty Sixteen +Description: Global Styles for older IE versions (previous to IE10). +*/ + +.site-header-main:before, +.site-header-main:after, +.site-footer:before, +.site-footer:after { + content: ""; + display: table; +} + +.site-header-main:after, +.site-footer:after { + clear: both; +} + +@media screen and (min-width: 56.875em) { + .site-branding, + .site-info { + float: left; + } + + .site-header-menu, + .site-footer .social-navigation { + float: right; + } + + .site-footer .social-navigation { + margin-left: 7px; + } + + .rtl .site-branding, + .rtl .site-info { + float: right; + } + + .rtl .site-header-menu, + .rtl .site-footer .social-navigation { + float: left; + } + + .rtl .site-footer .social-navigation { + margin-right: 7px; + margin-left: 0; + } +} diff --git a/wp-content/themes/twentysixteen/css/ie7.css b/wp-content/themes/twentysixteen/css/ie7.css new file mode 100644 index 0000000..6f9ec28 --- /dev/null +++ b/wp-content/themes/twentysixteen/css/ie7.css @@ -0,0 +1,176 @@ +/* +Theme Name: Twenty Sixteen +Description: IE7 specific style. +*/ + +.site-inner { + max-width: 656px; +} + +.post-navigation, +.pagination, +.image-navigation, +.entry-header, +.entry-summary, +.entry-content, +.entry-footer, +.page-header, +.page-content, +.post-thumbnail, +.content-bottom-widgets, +.comments-area { + margin-right: 28px; + margin-left: 28px; + max-width: 100%; +} + +.site-header, +.sidebar, +.site-footer, +.widecolumn { + padding-right: 28px; + padding-left: 28px; +} + +.search-submit { + height: auto; + margin-top: 28px; + padding: 15px 0 8px; + position: relative; + width: auto; +} + +.search-submit .screen-reader-text { + height: auto; + position: relative !important; + width: auto; +} + +.image-navigation .nav-previous, +.image-navigation .nav-next, +.comment-navigation .nav-previous, +.comment-navigation .nav-next { + *display: inline; + zoom: 1; +} + +.image-navigation .nav-previous + .nav-next, +.comment-navigation .nav-previous + .nav-next { + margin-left: 14px; +} + +.pagination .nav-links { + padding: 0; +} + +.pagination .page-numbers { + line-height: 1; + margin: -4px 14px 0; + padding: 18px 0; +} + +.pagination .prev, +.pagination .next { + display: inline-block; + font-size: 16px; + font-weight: 700; + height: auto; + left: 0; + line-height: 1; + margin: 0; + padding: 18px 14px; + position: relative; + right: 0; + text-transform: none; + width: auto; +} + +.dropdown-toggle { + display: none; +} + +.main-navigation ul ul { + display: block; +} + +.social-navigation { + margin-top: 1.75em; +} + +.social-navigation a { + height: auto; + padding: 3px 7px; + width: auto; +} + +.social-navigation .screen-reader-text { + height: auto; + position: relative !important; + width: auto; +} + +.site-header-main { + overflow : hidden; + zoom : 1; +} + +.entry-footer > span { + margin-right: 14px; +} + +.site-info .site-title { + font-size: 13px; + margin-right: 14px; +} + +.gallery-item { + max-width: 30%; +} + +.gallery-columns-1 .gallery-item { + max-width: 100%; +} + +.gallery-columns-2 .gallery-item { + max-width: 46%; +} + +.gallery-columns-4 .gallery-item { + max-width: 22%; +} + +.gallery-columns-5 .gallery-item { + max-width: 17%; +} + +.gallery-columns-6 .gallery-item { + max-width: 13.5%; +} + +.gallery-columns-7 .gallery-item { + max-width: 11%; +} + +.gallery-columns-8 .gallery-item { + max-width: 9.5%; +} + +.gallery-columns-9 .gallery-item { + max-width: 8%; +} + +.rtl .image-navigation .nav-previous + .nav-next, +.rtl .comment-navigation .nav-previous + .nav-next { + margin-right: 14px; + margin-left: 0; +} + +.rtl .entry-footer > span { + margin-right: 14px; + margin-left: 0; +} + +.rtl .site-info .site-title { + margin-right: 0; + margin-left: 14px; +} diff --git a/wp-content/themes/twentysixteen/css/ie8.css b/wp-content/themes/twentysixteen/css/ie8.css new file mode 100644 index 0000000..7b181c1 --- /dev/null +++ b/wp-content/themes/twentysixteen/css/ie8.css @@ -0,0 +1,226 @@ +/* +Theme Name: Twenty Sixteen +Description: IE8 specific style. +*/ + +code { + background-color: transparent; + padding: 0; +} + +.entry-content a, +.entry-summary a, +.taxonomy-description a, +.logged-in-as a, +.comment-content a, +.pingback .comment-body > a, +.textwidget a, +.entry-footer a:hover, +.site-info a:hover { + text-decoration: underline; +} + +.entry-content a:hover, +.entry-content a:focus, +.entry-summary a:hover, +.entry-summary a:focus, +.taxonomy-description a:hover, +.taxonomy-description a:focus, +.logged-in-as a:hover, +.logged-in-as a:focus, +.comment-content a:hover, +.comment-content a:focus, +.pingback .comment-body > a:hover, +.pingback .comment-body > a:focus, +.textwidget a:hover, +.textwidget a:focus, +.entry-content .wp-audio-shortcode a, +.entry-content .wp-playlist a, +.page-links a { + text-decoration: none; +} + +.site { + margin: 21px; +} + +.site-inner { + max-width: 710px; +} + +.site-header { + padding-top: 3.9375em; + padding-bottom: 3.9375em; +} + +.site-branding { + float: left; + margin-top: 1.3125em; + margin-bottom: 1.3125em; +} + +.site-title { + font-size: 28px; + line-height: 1.25; +} + +.site-description { + display: block; +} + +.menu-toggle { + float: right; + font-size: 16px; + margin: 1.3125em 0; + padding: 0.8125em 0.875em 0.6875em; +} + +.site-header-menu { + clear: both; + margin: 0; + padding: 1.3125em 0; +} + +.site-header .main-navigation + .social-navigation { + margin-top: 2.625em; +} + +.header-image { + margin: 1.3125em 0; +} + +.site-main { + margin-bottom: 5.25em; +} + +.post-navigation { + margin-bottom: 5.25em; +} + +.post-navigation .post-title { + font-size: 28px; + line-height: 1.25; +} + +.pagination { + margin: 0 7.6923% 4.421052632em; +} + +.pagination .nav-links:before, +.pagination .nav-links:after { + display: none; +} + +/* restore screen-reader-text */ +.pagination .current .screen-reader-text { + position: absolute !important; +} + +.pagination .page-numbers { + display: inline-block; + font-weight: 400; +} + +.image-navigation .nav-previous, +.image-navigation .nav-next, +.comment-navigation .nav-previous, +.comment-navigation .nav-next { + display: inline-block; +} + +.image-navigation .nav-previous + .nav-next:before, +.comment-navigation .nav-previous + .nav-next:before { + content: "\002f"; + display: inline-block; + opacity: 0.7; + padding: 0 0.538461538em; +} + +.site-main > article { + margin-bottom: 5.25em; +} + +.entry-title { + font-size: 33px; + line-height: 1.2727272727; + margin-bottom: 0.8484848485em; +} + +.entry-content blockquote.alignleft, +.entry-content blockquote.alignright { + border-width: 4px 0 0 0; + padding: 0.9473684211em 0 0; + width: 50%; +} + +.entry-footer > span:before { + content: "\002f"; + display: inline-block; + opacity: 0.7; + padding: 0 0.538461538em; +} + +.entry-footer > span:first-child:before { + display: none; +} + +.updated { + display: none; +} + +.updated.published { + display: inline; +} + +.comment-author { + margin-bottom: 0; +} + +.comment-author .avatar { + height: 42px; + position: relative; + top: 0.25em; + width: 42px; +} + +.comment-list .children > li { + padding-left: 1.75em; +} + +.comment-list + .comment-respond, +.comment-navigation + .comment-respond { + padding-top: 3.5em; +} + +.comment-reply-link { + margin-top: 0; +} + +.comments-area, +.widget, +.content-bottom-widgets .widget-area { + margin-bottom: 5.25em; +} + +.sidebar, +.widecolumn { + margin-bottom: 5.25em; +} + +.site-footer .main-navigation, +.site-footer .social-navigation { + display: none; +} + +.rtl .site-branding { + float: right; +} + +.rtl .menu-toggle { + float: left; +} + +.rtl .comment-list .children > li { + padding-right: 1.75em; + padding-left: 0; +} diff --git a/wp-content/themes/twentysixteen/footer.php b/wp-content/themes/twentysixteen/footer.php new file mode 100644 index 0000000..6c910cf --- /dev/null +++ b/wp-content/themes/twentysixteen/footer.php @@ -0,0 +1,59 @@ + + + + +
      + + + + + + + + +
      + + + +
      +
      + + + + + + diff --git a/wp-content/themes/twentysixteen/functions.php b/wp-content/themes/twentysixteen/functions.php new file mode 100644 index 0000000..c715c0a --- /dev/null +++ b/wp-content/themes/twentysixteen/functions.php @@ -0,0 +1,339 @@ + tag in the document head, and expect WordPress to + * provide it for us. + */ + add_theme_support( 'title-tag' ); + + /* + * Enable support for Post Thumbnails on posts and pages. + * + * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails + */ + add_theme_support( 'post-thumbnails' ); + set_post_thumbnail_size( 1200, 0, true ); + + // This theme uses wp_nav_menu() in two locations. + register_nav_menus( array( + 'primary' => __( 'Primary Menu', 'twentysixteen' ), + 'social' => __( 'Social Links Menu', 'twentysixteen' ), + ) ); + + /* + * Switch default core markup for search form, comment form, and comments + * to output valid HTML5. + */ + add_theme_support( 'html5', array( + 'search-form', + 'comment-form', + 'comment-list', + 'gallery', + 'caption', + ) ); + + /* + * Enable support for Post Formats. + * + * See: https://codex.wordpress.org/Post_Formats + */ + add_theme_support( 'post-formats', array( + 'aside', + 'image', + 'video', + 'quote', + 'link', + 'gallery', + 'status', + 'audio', + 'chat', + ) ); + + /* + * This theme styles the visual editor to resemble the theme style, + * specifically font, colors, icons, and column width. + */ + add_editor_style( array( 'css/editor-style.css', twentysixteen_fonts_url() ) ); +} +endif; // twentysixteen_setup +add_action( 'after_setup_theme', 'twentysixteen_setup' ); + +/** + * Sets the content width in pixels, based on the theme's design and stylesheet. + * + * Priority 0 to make it available to lower priority callbacks. + * + * @global int $content_width + * + * @since Twenty Sixteen 1.0 + */ +function twentysixteen_content_width() { + $GLOBALS['content_width'] = apply_filters( 'twentysixteen_content_width', 840 ); +} +add_action( 'after_setup_theme', 'twentysixteen_content_width', 0 ); + +/** + * Registers a widget area. + * + * @link https://developer.wordpress.org/reference/functions/register_sidebar/ + * + * @since Twenty Sixteen 1.0 + */ +function twentysixteen_widgets_init() { + register_sidebar( array( + 'name' => __( 'Sidebar', 'twentysixteen' ), + 'id' => 'sidebar-1', + 'description' => __( 'Add widgets here to appear in your sidebar.', 'twentysixteen' ), + 'before_widget' => '', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); + + register_sidebar( array( + 'name' => __( 'Content Bottom 1', 'twentysixteen' ), + 'id' => 'sidebar-2', + 'description' => __( 'Appears at the bottom of the content on posts and pages.', 'twentysixteen' ), + 'before_widget' => '', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); + + register_sidebar( array( + 'name' => __( 'Content Bottom 2', 'twentysixteen' ), + 'id' => 'sidebar-3', + 'description' => __( 'Appears at the bottom of the content on posts and pages.', 'twentysixteen' ), + 'before_widget' => '', + 'before_title' => '

      ', + 'after_title' => '

      ', + ) ); +} +add_action( 'widgets_init', 'twentysixteen_widgets_init' ); + +if ( ! function_exists( 'twentysixteen_fonts_url' ) ) : +/** + * Register Google fonts for Twenty Sixteen. + * + * Create your own twentysixteen_fonts_url() function to override in a child theme. + * + * @since Twenty Sixteen 1.0 + * + * @return string Google fonts URL for the theme. + */ +function twentysixteen_fonts_url() { + $fonts_url = ''; + $fonts = array(); + $subsets = 'latin,latin-ext'; + + /* translators: If there are characters in your language that are not supported by Merriweather, translate this to 'off'. Do not translate into your own language. */ + if ( 'off' !== _x( 'on', 'Merriweather font: on or off', 'twentysixteen' ) ) { + $fonts[] = 'Merriweather:400,700,900,400italic,700italic,900italic'; + } + + /* translators: If there are characters in your language that are not supported by Montserrat, translate this to 'off'. Do not translate into your own language. */ + if ( 'off' !== _x( 'on', 'Montserrat font: on or off', 'twentysixteen' ) ) { + $fonts[] = 'Montserrat:400,700'; + } + + /* translators: If there are characters in your language that are not supported by Inconsolata, translate this to 'off'. Do not translate into your own language. */ + if ( 'off' !== _x( 'on', 'Inconsolata font: on or off', 'twentysixteen' ) ) { + $fonts[] = 'Inconsolata:400'; + } + + if ( $fonts ) { + $fonts_url = add_query_arg( array( + 'family' => urlencode( implode( '|', $fonts ) ), + 'subset' => urlencode( $subsets ), + ), 'https://fonts.googleapis.com/css' ); + } + + return $fonts_url; +} +endif; + +/** + * Handles JavaScript detection. + * + * Adds a `js` class to the root `` element when JavaScript is detected. + * + * @since Twenty Sixteen 1.0 + */ +function twentysixteen_javascript_detection() { + echo "\n"; +} +add_action( 'wp_head', 'twentysixteen_javascript_detection', 0 ); + +/** + * Enqueues scripts and styles. + * + * @since Twenty Sixteen 1.0 + */ +function twentysixteen_scripts() { + // Add custom fonts, used in the main stylesheet. + wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null ); + + // Add Genericons, used in the main stylesheet. + wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1' ); + + // Theme stylesheet. + wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() ); + + // Load the Internet Explorer specific stylesheet. + wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20151003' ); + wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' ); + + // Load the Internet Explorer 8 specific stylesheet. + wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20151003' ); + wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9' ); + + // Load the Internet Explorer 7 specific stylesheet. + wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20151003' ); + wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8' ); + + // Load the html5 shiv. + wp_enqueue_script( 'twentysixteen-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.3' ); + wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE 9' ); + + wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151003', true ); + + if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { + wp_enqueue_script( 'comment-reply' ); + } + + if ( is_singular() && wp_attachment_is_image() ) { + wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20151003' ); + } + + wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20151003', true ); + + wp_localize_script( 'twentysixteen-script', 'screenReaderText', array( + 'expand' => __( 'expand child menu', 'twentysixteen' ), + 'collapse' => __( 'collapse child menu', 'twentysixteen' ), + ) ); +} +add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' ); + +/** + * Adds custom classes to the array of body classes. + * + * @since Twenty Sixteen 1.0 + * + * @param array $classes Classes for the body element. + * @return array (Maybe) filtered body classes. + */ +function twentysixteen_body_classes( $classes ) { + // Adds a class of custom-background-image to sites with a custom background image. + if ( get_background_image() ) { + $classes[] = 'custom-background-image'; + } + + // Adds a class of group-blog to sites with more than 1 published author. + if ( is_multi_author() ) { + $classes[] = 'group-blog'; + } + + // Adds a class of no-sidebar to sites without active sidebar. + if ( ! is_active_sidebar( 'sidebar-1' ) ) { + $classes[] = 'no-sidebar'; + } + + return $classes; +} +add_filter( 'body_class', 'twentysixteen_body_classes' ); + +/** + * Converts a HEX value to RGB. + * + * @since Twenty Sixteen 1.0 + * + * @param string $color The original color, in 3- or 6-digit hexadecimal form. + * @return array Array containing RGB (red, green, and blue) values for the given + * HEX code, empty array otherwise. + */ +function twentysixteen_hex2rgb( $color ) { + $color = trim( $color, '#' ); + + if ( strlen( $color ) == 3 ) { + $r = hexdec( substr( $color, 0, 1 ).substr( $color, 0, 1 ) ); + $g = hexdec( substr( $color, 1, 1 ).substr( $color, 1, 1 ) ); + $b = hexdec( substr( $color, 2, 1 ).substr( $color, 2, 1 ) ); + } else if ( strlen( $color ) == 6 ) { + $r = hexdec( substr( $color, 0, 2 ) ); + $g = hexdec( substr( $color, 2, 2 ) ); + $b = hexdec( substr( $color, 4, 2 ) ); + } else { + return array(); + } + + return array( 'red' => $r, 'green' => $g, 'blue' => $b ); +} + +/** + * Custom template tags for this theme. + */ +require get_template_directory() . '/inc/template-tags.php'; + +/** + * Customizer additions. + */ +require get_template_directory() . '/inc/customizer.php'; diff --git a/wp-content/themes/twentythirteen/fonts/COPYING.txt b/wp-content/themes/twentysixteen/genericons/COPYING.txt similarity index 100% rename from wp-content/themes/twentythirteen/fonts/COPYING.txt rename to wp-content/themes/twentysixteen/genericons/COPYING.txt diff --git a/wp-content/themes/twentysixteen/genericons/Genericons.eot b/wp-content/themes/twentysixteen/genericons/Genericons.eot new file mode 100644 index 0000000..7322565 Binary files /dev/null and b/wp-content/themes/twentysixteen/genericons/Genericons.eot differ diff --git a/wp-content/themes/twentysixteen/genericons/Genericons.svg b/wp-content/themes/twentysixteen/genericons/Genericons.svg new file mode 100644 index 0000000..4740685 --- /dev/null +++ b/wp-content/themes/twentysixteen/genericons/Genericons.svg @@ -0,0 +1,537 @@ + + + + + +Created by FontForge 20150618 at Fri Sep 18 10:24:13 2015 + By Joen Asmussen +Copyright (c) 2015, Joen Asmussen + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wp-content/themes/twentysixteen/genericons/Genericons.ttf b/wp-content/themes/twentysixteen/genericons/Genericons.ttf new file mode 100644 index 0000000..0174438 Binary files /dev/null and b/wp-content/themes/twentysixteen/genericons/Genericons.ttf differ diff --git a/wp-content/themes/twentysixteen/genericons/Genericons.woff b/wp-content/themes/twentysixteen/genericons/Genericons.woff new file mode 100644 index 0000000..0e7212a Binary files /dev/null and b/wp-content/themes/twentysixteen/genericons/Genericons.woff differ diff --git a/wp-content/themes/twentythirteen/fonts/LICENSE.txt b/wp-content/themes/twentysixteen/genericons/LICENSE.txt similarity index 100% rename from wp-content/themes/twentythirteen/fonts/LICENSE.txt rename to wp-content/themes/twentysixteen/genericons/LICENSE.txt diff --git a/wp-content/themes/twentysixteen/genericons/README.md b/wp-content/themes/twentysixteen/genericons/README.md new file mode 100644 index 0000000..4aa8cc0 --- /dev/null +++ b/wp-content/themes/twentysixteen/genericons/README.md @@ -0,0 +1,218 @@ +# Genericons + +Genericons are vector icons embedded in a webfont designed to be clean and simple keeping with a generic aesthetic. + +Use genericons for instant HiDPI, to change icon colors on the fly, or even with CSS effects such as drop-shadows or gradients! + + +## Usage + +To use it, place the `genericons` folder in your stylesheet directory and enqueue the genericons.css file. Now you can create an icon like this: + +``` +.my-icon:before { + content: '\f101'; + font: normal 16px/1 'Genericons'; + display: inline-block; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +``` + +This will output a comment icon before every element with the class "my-icon". The `content: '\f101';` part of this CSS is easily copied from the helper tool at http://genericons.com/, or `example.html` in the `font` directory. + +You can also use the bundled example.css if you'd rather insert the icons using HTML tags. + + +## Building your own Genericons + +In the `source` directory, you'll find all Genericons source icons in SVG format. This will allow you to bake your own flavor of Genericons using a tool such as FontCustom (http://fontcustom.com) or Fontello (http://fontello.com). Perhaps you need more logos than are available in the base Genericons package? Just add those logos and bake your own expanded set. Maybe you need just a few of the icons Genericons provides, but would like to trim the fat? Remove the ones you won't need! + + +### FontCustom instructions + +FontCustom is a powerful commandline tool which which bakes icon fonts from the SVG source files. It's the tool Genericons is built on, and it provides highly accurate and perfectly crisp icons, *provided all SVGs have the same pixel height*. + +It's not that hard to use, and once it's installed you'll never think of icon-fonts the same way again. Seriously, you should try it. Icon fonts for everyone! + +1. Install FontCustom. Follow the instructions on the website: http://fontcustom.com/ +2. In the `source` directory from the Genericons download, open the file called `fontcustom.yml` in a text editor. Customize the `font_name` and `css_selector`. +3. Open a terminal. Browse to the `source` directory. Type `fontcustom compile`. + +You'll now receive a brand new subdirectory called `fontcustom-webfont`. Inside here you'll find your very own flavor of Genericons, with only the icons you want, including a handy example page that'll help you copy/paste the necessary glyphs or CSS values. + +*Please note*: In the source directory, there's a hidden file called `.fontcustom-manifest.json`. This file is auto-generated by the FontCustom tool, and holds codepoints (unicode addresses) for every glyph, so its address doesn't change when you add or remove icons. If you feel the need to "start fresh" with the unicode addresses, you should delete this file. + + +### Fontello instructions + +Fontello is very easy to use. Just drop the SVG files of the icons you want onto their website and download the font. The downside is that Fontello seems to ignore the 16px pixelgrid, so you'll end up with fuzzy icons. Buyer beware. + + +## Notes + +**Photoshop mockups** + +The `Genericons.ttf` file can be placed in your system fonts folder and used Photoshop or other graphics apps if you like. + +If you're using Genericons in your Photoshop mockups, please remember to delete the old version of the font from Font Book, and grab the new one from the zip file. This also affects using it in your webdesigns: if you have an old version of the font installed locally, that's the font that'll be used in your website as well, so if you're missing icons, check for old versions of the font on your system. + +**Pixel grid** + +Genericons has been designed for a 16x16px grid. That means it'll look sharp at font-size: 16px exactly. It'll also be crisp at multiples thereof, such as 32px or 64px. It'll look reasonably crisp at in-between font sizes such as 24px or 48px, but not quite as crisp as 16 or 32. Please don't set the font-size to 17px, though, that'll just look terrible blurry. + +**Antialiasing** + +If you keep intact the `-webkit-font-smoothing: antialiased;` and `-moz-osx-font-smoothing: grayscale;` CSS properties. That'll make the icons look their best possible, in Firefox and WebKit based browsers. + +**optimizeLegibility** + +Note: On Android browsers with version 4.2, 4.3, and probably later, Genericons will simply not show up if you're using the CSS property "text-rendering" set to "optimizeLegibility. + +**Updates** + +We don't often update icons, but do very carefully when we get good feedback suggesting improvements. Please be mindful if you upgrade, and check that the updated icons behave as you intended. + +**Base64 encoding** + +By default, Genericons ships with a stylesheet that includes a base64 encoded version of the font. This is to sidestep issues with cross-origin requests for fonts, that happen when a stylesheet loads a font that's stored on a different domain or subdomain. This is very common when using caching plugins. + +Base64 encoding comes with a 25% filesize overhead compared to just loading the WOFF file directly. If you know that you won't be loading fonts across domains, or have the ability to edit your server config files to allow it, you can get slightly faster performance by loading Genericons without the base64 encoding. Simply edit `genericons.css` and edit the `@font-face` declaration to match this: + +``` +@font-face { + font-family: 'Genericons'; + src: url('Genericons.woff') format('woff'), + url('Genericons.ttf') format('truetype'), + url('Genericons.svg#genericonsregular') format('svg'); + font-weight: normal; + font-style: normal; +} +``` + + + +## Changelog + +**3.4.1** + +* IE8 support restored. + +**3.4** + +* Updated: Update Google Plus icon to new geometric version. This also *retires* the "alt" version, so *please be mindful if you choose to update, make sure you use the `f206` glyph, not the `f218` glyph, as it no longer exists! +* New: Added helper rotation classes to the base CSS, thanks to geminorum. Apply `genericon-rotate-90` to rotate 90 degrees, -180, -270. Or `genericon-flip-horizontal` or -vertical. + +*Again, it is important if you choose to update to this version, make sure you're not using `genericon-googleplus-alt` or unicode character `f218`, as that has been retired! Use `genericon-googleplus` and glyph `f206` instead!* + +**3.3.1** + +Security Hardening: Remove Genericons example.html file. Please visit genericons.com instead. + +**3.3** + +The Open Source release. + +You can now build your own flavors of Genericons with all the SVGs provided. + + +**3.2** + +A number of new icons and a couple of quick updates. + +* New: Activity +* New: HTML anchor +* New: Bug +* New: Download +* New: Handset +* New: Microphone +* New: Minus +* New: Plus +* New: Move +* New: Rating stars, empty, half, full +* New: Shuffle +* New: video camera +* New: Spotify +* New: Twitch +* Update: Fixed geometry in Edit icon +* Update: Updated Foursquare icon +* IE8 bugfix, slipstreamed into this. + +Twitch and Spotify mark the last social icons that will be added to Genericons. +Future social icons will have to happen in a separate font. + +**3.1** + +Genericons is now generated using a commandline tool called FontCustom. This makes it far easier to add new icons to the font, but the switch means the download zip now has a different layout, fonts have different filenames, there's now no .otf font included (but the .ttf should suffice), and the font now has slightly different metrics. I've taken great care to ensure this new version should work as a drop-in replacement, but please be mindful and test carefully if you choose to upgrade. + +* Per feedback, the baked-in 16px width and height has been removed from the helper CSS. It wasn't really necessary (the glyph itself has these dimensions naturally), and it caused some headaches. +* Base64 encoding is now included by default in the helper CSS. This makes it drop-in easy to get Genericons working in Firefox even when using a CDN. +* Title attribute on website tool. +* New: Website. +* New: Ellipsis. +* New: Foursquare. +* New: X-post. +* New: Sitemap. +* New: Hierarchy. +* New: Paintbrush. +* Updated: Show and Hide icons were updated for clarity. + +**3.0.3** + +Bunch of updates mostly. + +* Two new icons, Dropbox and Fullscreen. +* Updates to all icons containing an exclamation mark. +* Updates to Image and Quote. +* Nicer "Share" icon. +* Bigger default Linkedin icon. + +**3.0.2** + +A slew of new stuff and updates. + +* Social icons: Skype, Digg, Reddit, Stumbleupon, Pocket. +* New generic icons: heart, lock and print. +* New editing icons: code, bold, italic, image +* New interaction icons: subscribe, unsubscribe, subscribed, reply all, reply, flag. +* The hyperlink icon has been updated to be clearer, chunkier. +* The "home" icon has been updated for style, size and clarity. +* The email icon has been updated for style and clarity, and to fit with the new subscribe icons. +* The document icon has been updated for style. +* The "pin" icon has been updated for style and clarity. +* The Twitter icon has been scaled down to fit with the other social icons. + +**3.0.1** + +Mostly maintenance. + +* Fixed an issue with the example page that showed an old "top" icon instead of the actual NEW "refresh" icon. +* Added inverse Google+ and Path. +* Replaced tabs with spaces in the helper CSS. +* Changed the Genericons.com copy/paste tool to serve span's instead of div's for casual icon insertion. It's being converted to "inline-block" anyway. + +**3.0** + +Mainly maintenance and a few new icons. + +* Fast forward, rewind, PollDaddy, Notice, Info, Help, Portfolio +* Updated the feed icon. It's a bit smaller now for consistency, the previous one was rather big. +* So, the previous version numbering, 2.09, wasn't very PHP version compare friendly. So from now on it'll be 3.0, 3.1 etc. Props Ipstenu. +* Genericons.com now has a mini release blog. +* The CSS has prettier formatting, props Konstantin Obenland. + +**2.09** + +Updated Facebook icon to new version. Updated Instagram logo to use new one-color version. Updated Google+ icon to use same radius as Instagram and Facebook. Added a bunch of new icons, cog, unapprove, cart, media player buttons, tablet, send to tablet. + +**2.06** + +Included Base64 encoded version. This is necessary for Genericons to work with CDNs in Firefox. Firefox blocks fonts linked from a different domain. A CDN (typically s.example.com) usually puts the font on a subdomain, and is hence blocked in Firefox. + +**2.05** + +Added a bunch of new icons, including upload to cloud, download to cloud, many more. + +**2.0** + +Initial public release diff --git a/wp-content/themes/twentysixteen/genericons/genericons.css b/wp-content/themes/twentysixteen/genericons/genericons.css new file mode 100644 index 0000000..87cf754 --- /dev/null +++ b/wp-content/themes/twentysixteen/genericons/genericons.css @@ -0,0 +1,263 @@ +/** + + Genericons + +*/ + + +/* IE8 and below use EOT and allow cross-site embedding. + IE9 uses WOFF which is base64 encoded to allow cross-site embedding. + So unfortunately, IE9 will throw a console error, but it'll still work. + When the font is base64 encoded, cross-site embedding works in Firefox */ +@font-face { + font-family: "Genericons"; + src: url("./Genericons.eot"); + src: url("./Genericons.eot?") format("embedded-opentype"); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: "Genericons"; + src: url("data:application/x-font-woff;charset=utf-8;base64,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") format("woff"), + url("./Genericons.ttf") format("truetype"), + url("./Genericons.svg#Genericons") format("svg"); + font-weight: normal; + font-style: normal; +} + +@media screen and (-webkit-min-device-pixel-ratio:0) { + @font-face { + font-family: "Genericons"; + src: url("./Genericons.svg#Genericons") format("svg"); + } +} + + +/** + * All Genericons + */ + +.genericon { + font-size: 16px; + vertical-align: top; + text-align: center; + -moz-transition: color .1s ease-in 0; + -webkit-transition: color .1s ease-in 0; + display: inline-block; + font-family: "Genericons"; + font-style: normal; + font-weight: normal; + font-variant: normal; + line-height: 1; + text-decoration: inherit; + text-transform: none; + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + speak: none; +} + + +/** + * Helper classes + */ + +.genericon-rotate-90 { + -webkit-transform: rotate(90deg); + -moz-transform: rotate(90deg); + -ms-transform: rotate(90deg); + -o-transform: rotate(90deg); + transform: rotate(90deg); + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); +} + +.genericon-rotate-180 { + -webkit-transform: rotate(180deg); + -moz-transform: rotate(180deg); + -ms-transform: rotate(180deg); + -o-transform: rotate(180deg); + transform: rotate(180deg); + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); +} + +.genericon-rotate-270 { + -webkit-transform: rotate(270deg); + -moz-transform: rotate(270deg); + -ms-transform: rotate(270deg); + -o-transform: rotate(270deg); + transform: rotate(270deg); + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); +} + +.genericon-flip-horizontal { + -webkit-transform: scale(-1, 1); + -moz-transform: scale(-1, 1); + -ms-transform: scale(-1, 1); + -o-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.genericon-flip-vertical { + -webkit-transform: scale(1, -1); + -moz-transform: scale(1, -1); + -ms-transform: scale(1, -1); + -o-transform: scale(1, -1); + transform: scale(1, -1); +} + + +/** + * Individual icons + */ + +.genericon-404:before { content: "\f423"; } +.genericon-activity:before { content: "\f508"; } +.genericon-anchor:before { content: "\f509"; } +.genericon-aside:before { content: "\f101"; } +.genericon-attachment:before { content: "\f416"; } +.genericon-audio:before { content: "\f109"; } +.genericon-bold:before { content: "\f471"; } +.genericon-book:before { content: "\f444"; } +.genericon-bug:before { content: "\f50a"; } +.genericon-cart:before { content: "\f447"; } +.genericon-category:before { content: "\f301"; } +.genericon-chat:before { content: "\f108"; } +.genericon-checkmark:before { content: "\f418"; } +.genericon-close:before { content: "\f405"; } +.genericon-close-alt:before { content: "\f406"; } +.genericon-cloud:before { content: "\f426"; } +.genericon-cloud-download:before { content: "\f440"; } +.genericon-cloud-upload:before { content: "\f441"; } +.genericon-code:before { content: "\f462"; } +.genericon-codepen:before { content: "\f216"; } +.genericon-cog:before { content: "\f445"; } +.genericon-collapse:before { content: "\f432"; } +.genericon-comment:before { content: "\f300"; } +.genericon-day:before { content: "\f305"; } +.genericon-digg:before { content: "\f221"; } +.genericon-document:before { content: "\f443"; } +.genericon-dot:before { content: "\f428"; } +.genericon-downarrow:before { content: "\f502"; } +.genericon-download:before { content: "\f50b"; } +.genericon-draggable:before { content: "\f436"; } +.genericon-dribbble:before { content: "\f201"; } +.genericon-dropbox:before { content: "\f225"; } +.genericon-dropdown:before { content: "\f433"; } +.genericon-dropdown-left:before { content: "\f434"; } +.genericon-edit:before { content: "\f411"; } +.genericon-ellipsis:before { content: "\f476"; } +.genericon-expand:before { content: "\f431"; } +.genericon-external:before { content: "\f442"; } +.genericon-facebook:before { content: "\f203"; } +.genericon-facebook-alt:before { content: "\f204"; } +.genericon-fastforward:before { content: "\f458"; } +.genericon-feed:before { content: "\f413"; } +.genericon-flag:before { content: "\f468"; } +.genericon-flickr:before { content: "\f211"; } +.genericon-foursquare:before { content: "\f226"; } +.genericon-fullscreen:before { content: "\f474"; } +.genericon-gallery:before { content: "\f103"; } +.genericon-github:before { content: "\f200"; } +.genericon-googleplus:before { content: "\f206"; } +.genericon-googleplus-alt:before { content: "\f218"; } +.genericon-handset:before { content: "\f50c"; } +.genericon-heart:before { content: "\f461"; } +.genericon-help:before { content: "\f457"; } +.genericon-hide:before { content: "\f404"; } +.genericon-hierarchy:before { content: "\f505"; } +.genericon-home:before { content: "\f409"; } +.genericon-image:before { content: "\f102"; } +.genericon-info:before { content: "\f455"; } +.genericon-instagram:before { content: "\f215"; } +.genericon-italic:before { content: "\f472"; } +.genericon-key:before { content: "\f427"; } +.genericon-leftarrow:before { content: "\f503"; } +.genericon-link:before { content: "\f107"; } +.genericon-linkedin:before { content: "\f207"; } +.genericon-linkedin-alt:before { content: "\f208"; } +.genericon-location:before { content: "\f417"; } +.genericon-lock:before { content: "\f470"; } +.genericon-mail:before { content: "\f410"; } +.genericon-maximize:before { content: "\f422"; } +.genericon-menu:before { content: "\f419"; } +.genericon-microphone:before { content: "\f50d"; } +.genericon-minimize:before { content: "\f421"; } +.genericon-minus:before { content: "\f50e"; } +.genericon-month:before { content: "\f307"; } +.genericon-move:before { content: "\f50f"; } +.genericon-next:before { content: "\f429"; } +.genericon-notice:before { content: "\f456"; } +.genericon-paintbrush:before { content: "\f506"; } +.genericon-path:before { content: "\f219"; } +.genericon-pause:before { content: "\f448"; } +.genericon-phone:before { content: "\f437"; } +.genericon-picture:before { content: "\f473"; } +.genericon-pinned:before { content: "\f308"; } +.genericon-pinterest:before { content: "\f209"; } +.genericon-pinterest-alt:before { content: "\f210"; } +.genericon-play:before { content: "\f452"; } +.genericon-plugin:before { content: "\f439"; } +.genericon-plus:before { content: "\f510"; } +.genericon-pocket:before { content: "\f224"; } +.genericon-polldaddy:before { content: "\f217"; } +.genericon-portfolio:before { content: "\f460"; } +.genericon-previous:before { content: "\f430"; } +.genericon-print:before { content: "\f469"; } +.genericon-quote:before { content: "\f106"; } +.genericon-rating-empty:before { content: "\f511"; } +.genericon-rating-full:before { content: "\f512"; } +.genericon-rating-half:before { content: "\f513"; } +.genericon-reddit:before { content: "\f222"; } +.genericon-refresh:before { content: "\f420"; } +.genericon-reply:before { content: "\f412"; } +.genericon-reply-alt:before { content: "\f466"; } +.genericon-reply-single:before { content: "\f467"; } +.genericon-rewind:before { content: "\f459"; } +.genericon-rightarrow:before { content: "\f501"; } +.genericon-search:before { content: "\f400"; } +.genericon-send-to-phone:before { content: "\f438"; } +.genericon-send-to-tablet:before { content: "\f454"; } +.genericon-share:before { content: "\f415"; } +.genericon-show:before { content: "\f403"; } +.genericon-shuffle:before { content: "\f514"; } +.genericon-sitemap:before { content: "\f507"; } +.genericon-skip-ahead:before { content: "\f451"; } +.genericon-skip-back:before { content: "\f450"; } +.genericon-skype:before { content: "\f220"; } +.genericon-spam:before { content: "\f424"; } +.genericon-spotify:before { content: "\f515"; } +.genericon-standard:before { content: "\f100"; } +.genericon-star:before { content: "\f408"; } +.genericon-status:before { content: "\f105"; } +.genericon-stop:before { content: "\f449"; } +.genericon-stumbleupon:before { content: "\f223"; } +.genericon-subscribe:before { content: "\f463"; } +.genericon-subscribed:before { content: "\f465"; } +.genericon-summary:before { content: "\f425"; } +.genericon-tablet:before { content: "\f453"; } +.genericon-tag:before { content: "\f302"; } +.genericon-time:before { content: "\f303"; } +.genericon-top:before { content: "\f435"; } +.genericon-trash:before { content: "\f407"; } +.genericon-tumblr:before { content: "\f214"; } +.genericon-twitch:before { content: "\f516"; } +.genericon-twitter:before { content: "\f202"; } +.genericon-unapprove:before { content: "\f446"; } +.genericon-unsubscribe:before { content: "\f464"; } +.genericon-unzoom:before { content: "\f401"; } +.genericon-uparrow:before { content: "\f500"; } +.genericon-user:before { content: "\f304"; } +.genericon-video:before { content: "\f104"; } +.genericon-videocamera:before { content: "\f517"; } +.genericon-vimeo:before { content: "\f212"; } +.genericon-warning:before { content: "\f414"; } +.genericon-website:before { content: "\f475"; } +.genericon-week:before { content: "\f306"; } +.genericon-wordpress:before { content: "\f205"; } +.genericon-xpost:before { content: "\f504"; } +.genericon-youtube:before { content: "\f213"; } +.genericon-zoom:before { content: "\f402"; } + + + + diff --git a/wp-content/themes/twentysixteen/header.php b/wp-content/themes/twentysixteen/header.php new file mode 100644 index 0000000..fff1afd --- /dev/null +++ b/wp-content/themes/twentysixteen/header.php @@ -0,0 +1,85 @@ + + class="no-js"> + + + + + + + + + + +> +
      +
      + + + + +
      diff --git a/wp-content/themes/twentysixteen/image.php b/wp-content/themes/twentysixteen/image.php new file mode 100644 index 0000000..0c606df --- /dev/null +++ b/wp-content/themes/twentysixteen/image.php @@ -0,0 +1,112 @@ + + +
      +
      + + + +
      > + + + +
      + ', '' ); ?> +
      + +
      + +
      + + + + +
      + + '', + 'link_before' => '', + 'link_after' => '', + 'pagelink' => '' . __( 'Page', 'twentysixteen' ) . ' %', + 'separator' => ', ', + ) ); + ?> +
      + +
      + + %1$s %3$s × %4$s', + esc_html_x( 'Full size', 'Used before full size attachment link.', 'twentysixteen' ), + esc_url( wp_get_attachment_url() ), + absint( $metadata['width'] ), + absint( $metadata['height'] ) + ); + } + ?> + ', '', false ) + ), + '', + '' + ); + ?> +
      +
      + + _x( 'Published in%title', 'Parent post link', 'twentysixteen' ), + ) ); + // End the loop. + endwhile; + ?> + +
      +
      + + + diff --git a/wp-content/themes/twentysixteen/inc/back-compat.php b/wp-content/themes/twentysixteen/inc/back-compat.php new file mode 100644 index 0000000..7ed4240 --- /dev/null +++ b/wp-content/themes/twentysixteen/inc/back-compat.php @@ -0,0 +1,71 @@ +

      %s

      ', $message ); +} + +/** + * Prevents the Customizer from being loaded on WordPress versions prior to 4.4. + * + * @since Twenty Sixteen 1.0 + * + * @global string $wp_version WordPress version. + */ +function twentysixteen_customize() { + wp_die( sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ), '', array( + 'back_link' => true, + ) ); +} +add_action( 'load-customize.php', 'twentysixteen_customize' ); + +/** + * Prevents the Theme Preview from being loaded on WordPress versions prior to 4.4. + * + * @since Twenty Sixteen 1.0 + * + * @global string $wp_version WordPress version. + */ +function twentysixteen_preview() { + if ( isset( $_GET['preview'] ) ) { + wp_die( sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ) ); + } +} +add_action( 'template_redirect', 'twentysixteen_preview' ); diff --git a/wp-content/themes/twentysixteen/inc/customizer.php b/wp-content/themes/twentysixteen/inc/customizer.php new file mode 100644 index 0000000..813c8a0 --- /dev/null +++ b/wp-content/themes/twentysixteen/inc/customizer.php @@ -0,0 +1,1126 @@ + $default_background_color, + ) ) ); + + /** + * Filter the arguments used when adding 'custom-header' support in Twenty Sixteen. + * + * @since Twenty Sixteen 1.0 + * + * @param array $args { + * An array of custom-header support arguments. + * + * @type string $default-text-color Default color of the header text. + * @type int $width Width in pixels of the custom header image. Default 1200. + * @type int $height Height in pixels of the custom header image. Default 280. + * @type bool $flex-height Whether to allow flexible-height header images. Default true. + * @type callable $wp-head-callback Callback function used to style the header image and text + * displayed on the blog. + * } + */ + add_theme_support( 'custom-header', apply_filters( 'twentysixteen_custom_header_args', array( + 'default-text-color' => $default_text_color, + 'width' => 1200, + 'height' => 280, + 'flex-height' => true, + 'wp-head-callback' => 'twentysixteen_header_style', + ) ) ); +} +add_action( 'after_setup_theme', 'twentysixteen_custom_header_and_background' ); + +if ( ! function_exists( 'twentysixteen_header_style' ) ) : +/** + * Styles the header text displayed on the site. + * + * Create your own twentysixteen_header_style() function to override in a child theme. + * + * @since Twenty Sixteen 1.0 + * + * @see twentysixteen_custom_header_and_background(). + */ +function twentysixteen_header_style() { + // If the header text option is untouched, let's bail. + if ( display_header_text() ) { + return; + } + + // If the header text has been hidden. + ?> + + get_setting( 'blogname' )->transport = 'postMessage'; + $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; + + // Add color scheme setting and control. + $wp_customize->add_setting( 'color_scheme', array( + 'default' => 'default', + 'sanitize_callback' => 'twentysixteen_sanitize_color_scheme', + 'transport' => 'postMessage', + ) ); + + $wp_customize->add_control( 'color_scheme', array( + 'label' => __( 'Base Color Scheme', 'twentysixteen' ), + 'section' => 'colors', + 'type' => 'select', + 'choices' => twentysixteen_get_color_scheme_choices(), + 'priority' => 1, + ) ); + + // Add page background color setting and control. + $wp_customize->add_setting( 'page_background_color', array( + 'default' => $color_scheme[1], + 'sanitize_callback' => 'sanitize_hex_color', + 'transport' => 'postMessage', + ) ); + + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'page_background_color', array( + 'label' => __( 'Page Background Color', 'twentysixteen' ), + 'section' => 'colors', + ) ) ); + + // Remove the core header textcolor control, as it shares the main text color. + $wp_customize->remove_control( 'header_textcolor' ); + + // Add link color setting and control. + $wp_customize->add_setting( 'link_color', array( + 'default' => $color_scheme[2], + 'sanitize_callback' => 'sanitize_hex_color', + 'transport' => 'postMessage', + ) ); + + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'link_color', array( + 'label' => __( 'Link Color', 'twentysixteen' ), + 'section' => 'colors', + ) ) ); + + // Add main text color setting and control. + $wp_customize->add_setting( 'main_text_color', array( + 'default' => $color_scheme[3], + 'sanitize_callback' => 'sanitize_hex_color', + 'transport' => 'postMessage', + ) ); + + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'main_text_color', array( + 'label' => __( 'Main Text Color', 'twentysixteen' ), + 'section' => 'colors', + ) ) ); + + // Add secondary text color setting and control. + $wp_customize->add_setting( 'secondary_text_color', array( + 'default' => $color_scheme[4], + 'sanitize_callback' => 'sanitize_hex_color', + 'transport' => 'postMessage', + ) ); + + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'secondary_text_color', array( + 'label' => __( 'Secondary Text Color', 'twentysixteen' ), + 'section' => 'colors', + ) ) ); +} +add_action( 'customize_register', 'twentysixteen_customize_register', 11 ); + +/** + * Registers color schemes for Twenty Sixteen. + * + * Can be filtered with {@see 'twentysixteen_color_schemes'}. + * + * The order of colors in a colors array: + * 1. Main Background Color. + * 2. Page Background Color. + * 3. Link Color. + * 4. Main Text Color. + * 5. Secondary Text Color. + * + * @since Twenty Sixteen 1.0 + * + * @return array An associative array of color scheme options. + */ +function twentysixteen_get_color_schemes() { + /** + * Filter the color schemes registered for use with Twenty Sixteen. + * + * The default schemes include 'default', 'dark', 'gray', 'green', and 'yellow'. + * + * @since Twenty Sixteen 1.0 + * + * @param array $schemes { + * Associative array of color schemes data. + * + * @type array $slug { + * Associative array of information for setting up the color scheme. + * + * @type string $label Color scheme label. + * @type array $colors HEX codes for default colors prepended with a hash symbol ('#'). + * Colors are defined in the following order: Main background, page + * background, link, main text, secondary text. + * } + * } + */ + return apply_filters( 'twentysixteen_color_schemes', array( + 'default' => array( + 'label' => __( 'Default', 'twentysixteen' ), + 'colors' => array( + '#1a1a1a', + '#ffffff', + '#007acc', + '#1a1a1a', + '#686868', + ), + ), + 'dark' => array( + 'label' => __( 'Dark', 'twentysixteen' ), + 'colors' => array( + '#262626', + '#1a1a1a', + '#9adffd', + '#e5e5e5', + '#c1c1c1', + ), + ), + 'gray' => array( + 'label' => __( 'Gray', 'twentysixteen' ), + 'colors' => array( + '#616a73', + '#4d545c', + '#aaaaaa', + '#ededed', + '#ededed', + ), + ), + 'green' => array( + 'label' => __( 'Green', 'twentysixteen' ), + 'colors' => array( + '#ffffff', + '#acc1a2', + '#6d8c87', + '#ffffff', + '#efeef4', + ), + ), + 'yellow' => array( + 'label' => __( 'Yellow', 'twentysixteen' ), + 'colors' => array( + '#3b3721', + '#ffef8e', + '#7f7d6f', + '#3b3721', + '#774e24', + ), + ), + ) ); +} + +if ( ! function_exists( 'twentysixteen_get_color_scheme' ) ) : +/** + * Retrieves the current Twenty Sixteen color scheme. + * + * Create your own twentysixteen_get_color_scheme() function to override in a child theme. + * + * @since Twenty Sixteen 1.0 + * + * @return array An associative array of either the current or default color scheme HEX values. + */ +function twentysixteen_get_color_scheme() { + $color_scheme_option = get_theme_mod( 'color_scheme', 'default' ); + $color_schemes = twentysixteen_get_color_schemes(); + + if ( array_key_exists( $color_scheme_option, $color_schemes ) ) { + return $color_schemes[ $color_scheme_option ]['colors']; + } + + return $color_schemes['default']['colors']; +} +endif; // twentysixteen_get_color_scheme + +if ( ! function_exists( 'twentysixteen_get_color_scheme_choices' ) ) : +/** + * Retrieves an array of color scheme choices registered for Twenty Sixteen. + * + * Create your own twentysixteen_get_color_scheme_choices() function to override + * in a child theme. + * + * @since Twenty Sixteen 1.0 + * + * @return array Array of color schemes. + */ +function twentysixteen_get_color_scheme_choices() { + $color_schemes = twentysixteen_get_color_schemes(); + $color_scheme_control_options = array(); + + foreach ( $color_schemes as $color_scheme => $value ) { + $color_scheme_control_options[ $color_scheme ] = $value['label']; + } + + return $color_scheme_control_options; +} +endif; // twentysixteen_get_color_scheme_choices + + +if ( ! function_exists( 'twentysixteen_sanitize_color_scheme' ) ) : +/** + * Handles sanitization for Twenty Sixteen color schemes. + * + * Create your own twentysixteen_sanitize_color_scheme() function to override + * in a child theme. + * + * @since Twenty Sixteen 1.0 + * + * @param string $value Color scheme name value. + * @return string Color scheme name. + */ +function twentysixteen_sanitize_color_scheme( $value ) { + $color_schemes = twentysixteen_get_color_scheme_choices(); + + if ( ! array_key_exists( $value, $color_schemes ) ) { + return 'default'; + } + + return $value; +} +endif; // twentysixteen_sanitize_color_scheme + +/** + * Enqueues front-end CSS for color scheme. + * + * @since Twenty Sixteen 1.0 + * + * @see wp_add_inline_style() + */ +function twentysixteen_color_scheme_css() { + $color_scheme_option = get_theme_mod( 'color_scheme', 'default' ); + + // Don't do anything if the default color scheme is selected. + if ( 'default' === $color_scheme_option ) { + return; + } + + $color_scheme = twentysixteen_get_color_scheme(); + + // Convert main text hex color to rgba. + $color_textcolor_rgb = twentysixteen_hex2rgb( $color_scheme[3] ); + + // If the rgba values are empty return early. + if ( empty( $color_textcolor_rgb ) ) { + return; + } + + // If we get this far, we have a custom color scheme. + $colors = array( + 'background_color' => $color_scheme[0], + 'page_background_color' => $color_scheme[1], + 'link_color' => $color_scheme[2], + 'main_text_color' => $color_scheme[3], + 'secondary_text_color' => $color_scheme[4], + 'border_color' => vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.2)', $color_textcolor_rgb ), + + ); + + $color_scheme_css = twentysixteen_get_color_scheme_css( $colors ); + + wp_add_inline_style( 'twentysixteen-style', $color_scheme_css ); +} +add_action( 'wp_enqueue_scripts', 'twentysixteen_color_scheme_css' ); + +/** + * Binds the JS listener to make Customizer color_scheme control. + * + * Passes color scheme data as colorScheme global. + * + * @since Twenty Sixteen 1.0 + */ +function twentysixteen_customize_control_js() { + wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20151003', true ); + wp_localize_script( 'color-scheme-control', 'colorScheme', twentysixteen_get_color_schemes() ); +} +add_action( 'customize_controls_enqueue_scripts', 'twentysixteen_customize_control_js' ); + +/** + * Binds JS handlers to make the Customizer preview reload changes asynchronously. + * + * @since Twenty Sixteen 1.0 + */ +function twentysixteen_customize_preview_js() { + wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20151003', true ); +} +add_action( 'customize_preview_init', 'twentysixteen_customize_preview_js' ); + +/** + * Returns CSS for the color schemes. + * + * @since Twenty Sixteen 1.0 + * + * @param array $colors Color scheme colors. + * @return string Color scheme CSS. + */ +function twentysixteen_get_color_scheme_css( $colors ) { + $colors = wp_parse_args( $colors, array( + 'background_color' => '', + 'page_background_color' => '', + 'link_color' => '', + 'main_text_color' => '', + 'secondary_text_color' => '', + 'border_color' => '', + ) ); + + return << .page-links-title, + .comment-author, + .comment-reply-title small a:hover, + .comment-reply-title small a:focus { + color: {$colors['main_text_color']}; + } + + blockquote, + .menu-toggle.toggled-on, + .menu-toggle.toggled-on:hover, + .menu-toggle.toggled-on:focus, + .post-navigation, + .post-navigation div + div, + .pagination, + .widget, + .page-header, + .page-links a, + .comments-title, + .comment-reply-title { + border-color: {$colors['main_text_color']}; + } + + button, + button[disabled]:hover, + button[disabled]:focus, + input[type="button"], + input[type="button"][disabled]:hover, + input[type="button"][disabled]:focus, + input[type="reset"], + input[type="reset"][disabled]:hover, + input[type="reset"][disabled]:focus, + input[type="submit"], + input[type="submit"][disabled]:hover, + input[type="submit"][disabled]:focus, + .menu-toggle.toggled-on, + .menu-toggle.toggled-on:hover, + .menu-toggle.toggled-on:focus, + .pagination:before, + .pagination:after, + .pagination .prev, + .pagination .next, + .page-links a { + background-color: {$colors['main_text_color']}; + } + + /* Secondary Text Color */ + + /** + * IE8 and earlier will drop any block with CSS3 selectors. + * Do not combine these styles with the next block. + */ + body:not(.search-results) .entry-summary { + color: {$colors['secondary_text_color']}; + } + + blockquote, + .post-password-form label, + a:hover, + a:focus, + a:active, + .post-navigation .meta-nav, + .image-navigation, + .comment-navigation, + .widget_recent_entries .post-date, + .widget_rss .rss-date, + .widget_rss cite, + .site-description, + .author-bio, + .entry-footer, + .entry-footer a, + .sticky-post, + .taxonomy-description, + .entry-caption, + .comment-metadata, + .pingback .edit-link, + .comment-metadata a, + .pingback .comment-edit-link, + .comment-form label, + .comment-notes, + .comment-awaiting-moderation, + .logged-in-as, + .form-allowed-tags, + .site-info, + .site-info a, + .wp-caption .wp-caption-text, + .gallery-caption, + .widecolumn label, + .widecolumn .mu_register label { + color: {$colors['secondary_text_color']}; + } + + .widget_calendar tbody a:hover, + .widget_calendar tbody a:focus { + background-color: {$colors['secondary_text_color']}; + } + + /* Border Color */ + fieldset, + pre, + abbr, + acronym, + table, + th, + td, + input[type="text"], + input[type="email"], + input[type="url"], + input[type="password"], + input[type="search"], + textarea, + .main-navigation li, + .main-navigation .primary-menu, + .menu-toggle, + .dropdown-toggle:after, + .social-navigation a, + .image-navigation, + .comment-navigation, + .tagcloud a, + .author-info, + .page-links a, + .page-links > span, + .comment-list article, + .comment-list .pingback, + .comment-list .trackback, + .comment-reply-link, + .no-comments { + border-color: {$colors['main_text_color']}; /* Fallback for IE7 and IE8 */ + border-color: {$colors['border_color']}; + } + + hr, + code { + background-color: {$colors['main_text_color']}; /* Fallback for IE7 and IE8 */ + background-color: {$colors['border_color']}; + } + + @media screen and (min-width: 56.875em) { + .main-navigation li:hover > a, + .main-navigation li.focus > a { + color: {$colors['link_color']}; + } + + .main-navigation ul ul, + .main-navigation ul ul li { + border-color: {$colors['border_color']}; + } + + .main-navigation ul ul:before { + border-top-color: {$colors['border_color']}; + border-bottom-color: {$colors['border_color']}; + } + + .main-navigation ul ul li { + background-color: {$colors['page_background_color']}; + } + + .main-navigation ul ul:after { + border-top-color: {$colors['page_background_color']}; + border-bottom-color: {$colors['page_background_color']}; + } + } + +CSS; +} + + +/** + * Outputs an Underscore template for generating CSS for the color scheme. + * + * The template generates the css dynamically for instant display in the + * Customizer preview. + * + * @since Twenty Sixteen 1.0 + */ +function twentysixteen_color_scheme_css_template() { + $colors = array( + 'background_color' => '{{ data.background_color }}', + 'page_background_color' => '{{ data.page_background_color }}', + 'link_color' => '{{ data.link_color }}', + 'main_text_color' => '{{ data.main_text_color }}', + 'secondary_text_color' => '{{ data.secondary_text_color }}', + 'border_color' => '{{ data.border_color }}', + ); + ?> + + a, + .main-navigation li.focus > a { + color: %1$s; + } + } + '; + + wp_add_inline_style( 'twentysixteen-style', sprintf( $css, $link_color ) ); +} +add_action( 'wp_enqueue_scripts', 'twentysixteen_link_color_css', 11 ); + +/** + * Enqueues front-end CSS for the main text color. + * + * @since Twenty Sixteen 1.0 + * + * @see wp_add_inline_style() + */ +function twentysixteen_main_text_color_css() { + $color_scheme = twentysixteen_get_color_scheme(); + $default_color = $color_scheme[3]; + $main_text_color = get_theme_mod( 'main_text_color', $default_color ); + + // Don't do anything if the current color is the default. + if ( $main_text_color === $default_color ) { + return; + } + + // Convert main text hex color to rgba. + $main_text_color_rgb = twentysixteen_hex2rgb( $main_text_color ); + + // If the rgba values are empty return early. + if ( empty( $main_text_color_rgb ) ) { + return; + } + + // If we get this far, we have a custom color scheme. + $border_color = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.2)', $main_text_color_rgb ); + + $css = ' + /* Custom Main Text Color */ + body, + select, + blockquote cite, + blockquote small, + .main-navigation a, + .menu-toggle, + .dropdown-toggle, + .social-navigation a, + .post-navigation a, + .pagination a:hover, + .pagination a:focus, + .widget-title a, + .site-branding .site-title a, + .entry-title a, + .page-links > .page-links-title, + .comment-author, + .comment-reply-title small a:hover, + .comment-reply-title small a:focus { + color: %1$s + } + + blockquote, + .menu-toggle.toggled-on, + .menu-toggle.toggled-on:hover, + .menu-toggle.toggled-on:focus, + .post-navigation, + .post-navigation div + div, + .pagination, + .widget, + .page-header, + .page-links a, + .comments-title, + .comment-reply-title { + border-color: %1$s; + } + + button, + button[disabled]:hover, + button[disabled]:focus, + input[type="button"], + input[type="button"][disabled]:hover, + input[type="button"][disabled]:focus, + input[type="reset"], + input[type="reset"][disabled]:hover, + input[type="reset"][disabled]:focus, + input[type="submit"], + input[type="submit"][disabled]:hover, + input[type="submit"][disabled]:focus, + .menu-toggle.toggled-on, + .menu-toggle.toggled-on:hover, + .menu-toggle.toggled-on:focus, + .pagination:before, + .pagination:after, + .pagination .prev, + .pagination .next, + .page-links a { + background-color: %1$s; + } + + /* Border Color */ + fieldset, + pre, + abbr, + acronym, + table, + th, + td, + input[type="text"], + input[type="email"], + input[type="url"], + input[type="password"], + input[type="search"], + textarea, + .main-navigation li, + .main-navigation .primary-menu, + .menu-toggle, + .dropdown-toggle:after, + .social-navigation a, + .image-navigation, + .comment-navigation, + .tagcloud a, + .author-info, + .page-links a, + .page-links > span, + .comment-list article, + .comment-list .pingback, + .comment-list .trackback, + .comment-reply-link, + .no-comments { + border-color: %1$s; /* Fallback for IE7 and IE8 */ + border-color: %2$s; + } + + hr, + code { + background-color: %1$s; /* Fallback for IE7 and IE8 */ + background-color: %2$s; + } + + @media screen and (min-width: 56.875em) { + .main-navigation ul ul, + .main-navigation ul ul li { + border-color: %2$s; + } + + .main-navigation ul ul:before { + border-top-color: %2$s; + border-bottom-color: %2$s; + } + } + '; + + wp_add_inline_style( 'twentysixteen-style', sprintf( $css, $main_text_color, $border_color ) ); +} +add_action( 'wp_enqueue_scripts', 'twentysixteen_main_text_color_css', 11 ); + +/** + * Enqueues front-end CSS for the secondary text color. + * + * @since Twenty Sixteen 1.0 + * + * @see wp_add_inline_style() + */ +function twentysixteen_secondary_text_color_css() { + $color_scheme = twentysixteen_get_color_scheme(); + $default_color = $color_scheme[4]; + $secondary_text_color = get_theme_mod( 'secondary_text_color', $default_color ); + + // Don't do anything if the current color is the default. + if ( $secondary_text_color === $default_color ) { + return; + } + + $css = ' + /* Custom Secondary Text Color */ + + /** + * IE8 and earlier will drop any block with CSS3 selectors. + * Do not combine these styles with the next block. + */ + body:not(.search-results) .entry-summary { + color: %1$s; + } + + blockquote, + .post-password-form label, + a:hover, + a:focus, + a:active, + .post-navigation .meta-nav, + .image-navigation, + .comment-navigation, + .widget_recent_entries .post-date, + .widget_rss .rss-date, + .widget_rss cite, + .site-description, + .author-bio, + .entry-footer, + .entry-footer a, + .sticky-post, + .taxonomy-description, + .entry-caption, + .comment-metadata, + .pingback .edit-link, + .comment-metadata a, + .pingback .comment-edit-link, + .comment-form label, + .comment-notes, + .comment-awaiting-moderation, + .logged-in-as, + .form-allowed-tags, + .site-info, + .site-info a, + .wp-caption .wp-caption-text, + .gallery-caption, + .widecolumn label, + .widecolumn .mu_register label { + color: %1$s; + } + + .widget_calendar tbody a:hover, + .widget_calendar tbody a:focus { + background-color: %1$s; + } + '; + + wp_add_inline_style( 'twentysixteen-style', sprintf( $css, $secondary_text_color ) ); +} +add_action( 'wp_enqueue_scripts', 'twentysixteen_secondary_text_color_css', 11 ); diff --git a/wp-content/themes/twentysixteen/inc/template-tags.php b/wp-content/themes/twentysixteen/inc/template-tags.php new file mode 100644 index 0000000..54ca2e3 --- /dev/null +++ b/wp-content/themes/twentysixteen/inc/template-tags.php @@ -0,0 +1,237 @@ +%1$s%2$s %4$s', + get_avatar( get_the_author_meta( 'user_email' ), $author_avatar_size ), + _x( 'Author', 'Used before post author name.', 'twentysixteen' ), + esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), + get_the_author() + ); + } + + if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) { + twentysixteen_entry_date(); + } + + $format = get_post_format(); + if ( current_theme_supports( 'post-formats', $format ) ) { + printf( '%1$s%3$s', + sprintf( '%s ', _x( 'Format', 'Used before post format.', 'twentysixteen' ) ), + esc_url( get_post_format_link( $format ) ), + get_post_format_string( $format ) + ); + } + + if ( 'post' === get_post_type() ) { + twentysixteen_entry_taxonomies(); + } + + if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { + echo ''; + comments_popup_link( sprintf( __( 'Leave a comment on %s', 'twentysixteen' ), get_the_title() ) ); + echo ''; + } +} +endif; + +if ( ! function_exists( 'twentysixteen_entry_date' ) ) : +/** + * Prints HTML with date information for current post. + * + * Create your own twentysixteen_entry_date() function to override in a child theme. + * + * @since Twenty Sixteen 1.0 + */ +function twentysixteen_entry_date() { + $time_string = ''; + + if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { + $time_string = ''; + } + + $time_string = sprintf( $time_string, + esc_attr( get_the_date( 'c' ) ), + get_the_date(), + esc_attr( get_the_modified_date( 'c' ) ), + get_the_modified_date() + ); + + printf( '%1$s %3$s', + _x( 'Posted on', 'Used before publish date.', 'twentysixteen' ), + esc_url( get_permalink() ), + $time_string + ); +} +endif; + +if ( ! function_exists( 'twentysixteen_entry_taxonomies' ) ) : +/** + * Prints HTML with category and tags for current post. + * + * Create your own twentysixteen_entry_taxonomies() function to override in a child theme. + * + * @since Twenty Sixteen 1.0 + */ +function twentysixteen_entry_taxonomies() { + $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentysixteen' ) ); + if ( $categories_list && twentysixteen_categorized_blog() ) { + printf( '%1$s %2$s', + _x( 'Categories', 'Used before category names.', 'twentysixteen' ), + $categories_list + ); + } + + $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentysixteen' ) ); + if ( $tags_list ) { + printf( '%1$s %2$s', + _x( 'Tags', 'Used before tag names.', 'twentysixteen' ), + $tags_list + ); + } +} +endif; + +if ( ! function_exists( 'twentysixteen_post_thumbnail' ) ) : +/** + * Displays an optional post thumbnail. + * + * Wraps the post thumbnail in an anchor element on index views, or a div + * element when on single views. + * + * Create your own twentysixteen_post_thumbnail() function to override in a child theme. + * + * @since Twenty Sixteen 1.0 + */ +function twentysixteen_post_thumbnail() { + if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { + return; + } + + if ( is_singular() ) : + ?> + +
      + +
      + + + + + + +
      + +
      + %2$s', + esc_url( get_permalink( get_the_ID() ) ), + /* translators: %s: Name of current post */ + sprintf( __( 'Continue reading %s', 'twentysixteen' ), '' . get_the_title( get_the_ID() ) . '' ) + ); + return ' … ' . $link; +} +add_filter( 'excerpt_more', 'twentysixteen_excerpt_more' ); +endif; + +/** + * Determines whether blog/site has more than one category. + * + * Create your own twentysixteen_categorized_blog() function to override in a child theme. + * + * @since Twenty Sixteen 1.0 + * + * @return bool True if there is more than one category, false otherwise. + */ +function twentysixteen_categorized_blog() { + if ( false === ( $all_the_cool_cats = get_transient( 'twentysixteen_categories' ) ) ) { + // Create an array of all the categories that are attached to posts. + $all_the_cool_cats = get_categories( array( + 'fields' => 'ids', + // We only need to know if there is more than one category. + 'number' => 2, + ) ); + + // Count the number of categories that are attached to the posts. + $all_the_cool_cats = count( $all_the_cool_cats ); + + set_transient( 'twentysixteen_categories', $all_the_cool_cats ); + } + + if ( $all_the_cool_cats > 1 ) { + // This blog has more than 1 category so twentysixteen_categorized_blog should return true. + return true; + } else { + // This blog has only 1 category so twentysixteen_categorized_blog should return false. + return false; + } +} + +/** + * Flushes out the transients used in twentysixteen_categorized_blog(). + * + * @since Twenty Sixteen 1.0 + */ +function twentysixteen_category_transient_flusher() { + if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { + return; + } + // Like, beat it. Dig? + delete_transient( 'twentysixteen_categories' ); +} +add_action( 'edit_category', 'twentysixteen_category_transient_flusher' ); +add_action( 'save_post', 'twentysixteen_category_transient_flusher' ); diff --git a/wp-content/themes/twentysixteen/index.php b/wp-content/themes/twentysixteen/index.php new file mode 100644 index 0000000..5e3f290 --- /dev/null +++ b/wp-content/themes/twentysixteen/index.php @@ -0,0 +1,62 @@ + + +
      +
      + + + + +
      +

      +
      + + + __( 'Previous page', 'twentysixteen' ), + 'next_text' => __( 'Next page', 'twentysixteen' ), + 'before_page_number' => '' . __( 'Page', 'twentysixteen' ) . ' ', + ) ); + + // If no content, include the "No posts found" template. + else : + get_template_part( 'template-parts/content', 'none' ); + + endif; + ?> + +
      +
      + + + diff --git a/wp-content/themes/twentysixteen/js/color-scheme-control.js b/wp-content/themes/twentysixteen/js/color-scheme-control.js new file mode 100644 index 0000000..e65b5bd --- /dev/null +++ b/wp-content/themes/twentysixteen/js/color-scheme-control.js @@ -0,0 +1,96 @@ +/* global colorScheme, Color */ +/** + * Add a listener to the Color Scheme control to update other color controls to new values/defaults. + * Also trigger an update of the Color Scheme CSS when a color is changed. + */ + +( function( api ) { + var cssTemplate = wp.template( 'twentysixteen-color-scheme' ), + colorSchemeKeys = [ + 'background_color', + 'page_background_color', + 'link_color', + 'main_text_color', + 'secondary_text_color' + ], + colorSettings = [ + 'background_color', + 'page_background_color', + 'link_color', + 'main_text_color', + 'secondary_text_color' + ]; + + api.controlConstructor.select = api.Control.extend( { + ready: function() { + if ( 'color_scheme' === this.id ) { + this.setting.bind( 'change', function( value ) { + var colors = colorScheme[value].colors; + + // Update Background Color. + var color = colors[0]; + api( 'background_color' ).set( color ); + api.control( 'background_color' ).container.find( '.color-picker-hex' ) + .data( 'data-default-color', color ) + .wpColorPicker( 'defaultColor', color ); + + // Update Page Background Color. + color = colors[1]; + api( 'page_background_color' ).set( color ); + api.control( 'page_background_color' ).container.find( '.color-picker-hex' ) + .data( 'data-default-color', color ) + .wpColorPicker( 'defaultColor', color ); + + // Update Link Color. + color = colors[2]; + api( 'link_color' ).set( color ); + api.control( 'link_color' ).container.find( '.color-picker-hex' ) + .data( 'data-default-color', color ) + .wpColorPicker( 'defaultColor', color ); + + // Update Main Text Color. + color = colors[3]; + api( 'main_text_color' ).set( color ); + api.control( 'main_text_color' ).container.find( '.color-picker-hex' ) + .data( 'data-default-color', color ) + .wpColorPicker( 'defaultColor', color ); + + // Update Secondary Text Color. + color = colors[4]; + api( 'secondary_text_color' ).set( color ); + api.control( 'secondary_text_color' ).container.find( '.color-picker-hex' ) + .data( 'data-default-color', color ) + .wpColorPicker( 'defaultColor', color ); + } ); + } + } + } ); + + // Generate the CSS for the current Color Scheme. + function updateCSS() { + var scheme = api( 'color_scheme' )(), + css, + colors = _.object( colorSchemeKeys, colorScheme[ scheme ].colors ); + + // Merge in color scheme overrides. + _.each( colorSettings, function( setting ) { + colors[ setting ] = api( setting )(); + } ); + + // Add additional color. + // jscs:disable + colors.border_color = Color( colors.main_text_color ).toCSS( 'rgba', 0.2 ); + // jscs:enable + + css = cssTemplate( colors ); + + api.previewer.send( 'update-color-scheme-css', css ); + } + + // Update the CSS whenever a color setting is changed. + _.each( colorSettings, function( setting ) { + api( setting, function( setting ) { + setting.bind( updateCSS ); + } ); + } ); +} )( wp.customize ); diff --git a/wp-content/themes/twentysixteen/js/customize-preview.js b/wp-content/themes/twentysixteen/js/customize-preview.js new file mode 100644 index 0000000..fc99333 --- /dev/null +++ b/wp-content/themes/twentysixteen/js/customize-preview.js @@ -0,0 +1,41 @@ +/** + * Live-update changed settings in real time in the Customizer preview. + */ + +( function( $ ) { + var style = $( '#twentysixteen-color-scheme-css' ), + api = wp.customize; + + if ( ! style.length ) { + style = $( 'head' ).append( ''; + return parent.insertBefore(p.lastChild, parent.firstChild); + } + + /** + * Returns the value of `html5.elements` as an array. + * @private + * @returns {Array} An array of shived element node names. + */ + function getElements() { + var elements = html5.elements; + return typeof elements == 'string' ? elements.split(' ') : elements; + } + + /** + * Extends the built-in list of html5 elements + * @memberOf html5 + * @param {String|Array} newElements whitespace separated list or array of new element names to shiv + * @param {Document} ownerDocument The context document. + */ + function addElements(newElements, ownerDocument) { + var elements = html5.elements; + if(typeof elements != 'string'){ + elements = elements.join(' '); + } + if(typeof newElements != 'string'){ + newElements = newElements.join(' '); + } + html5.elements = elements +' '+ newElements; + shivDocument(ownerDocument); + } + + /** + * Returns the data associated to the given document + * @private + * @param {Document} ownerDocument The document. + * @returns {Object} An object of data. + */ + function getExpandoData(ownerDocument) { + var data = expandoData[ownerDocument[expando]]; + if (!data) { + data = {}; + expanID++; + ownerDocument[expando] = expanID; + expandoData[expanID] = data; + } + return data; + } + + /** + * returns a shived element for the given nodeName and document + * @memberOf html5 + * @param {String} nodeName name of the element + * @param {Document|DocumentFragment} ownerDocument The context document. + * @returns {Object} The shived element. + */ + function createElement(nodeName, ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createElement(nodeName); + } + if (!data) { + data = getExpandoData(ownerDocument); + } + var node; + + if (data.cache[nodeName]) { + node = data.cache[nodeName].cloneNode(); + } else if (saveClones.test(nodeName)) { + node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); + } else { + node = data.createElem(nodeName); + } + + // Avoid adding some elements to fragments in IE < 9 because + // * Attributes like `name` or `type` cannot be set/changed once an element + // is inserted into a document/fragment + // * Link elements with `src` attributes that are inaccessible, as with + // a 403 response, will cause the tab/window to crash + // * Script elements appended to fragments will execute when their `src` + // or `text` property is set + return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; + } + + /** + * returns a shived DocumentFragment for the given document + * @memberOf html5 + * @param {Document} ownerDocument The context document. + * @returns {Object} The shived DocumentFragment. + */ + function createDocumentFragment(ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createDocumentFragment(); + } + data = data || getExpandoData(ownerDocument); + var clone = data.frag.cloneNode(), + i = 0, + elems = getElements(), + l = elems.length; + for(;i -1, + isOpera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, + isIE = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; + + if ( ( isWebkit || isOpera || isIE ) && document.getElementById && window.addEventListener ) { + window.addEventListener( 'hashchange', function() { + var id = location.hash.substring( 1 ), + element; + + if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { + return; + } + + element = document.getElementById( id ); + + if ( element ) { + if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { + element.tabIndex = -1; + } + + element.focus(); + } + }, false ); + } +} )(); diff --git a/wp-content/themes/twentysixteen/languages/twentysixteen.pot b/wp-content/themes/twentysixteen/languages/twentysixteen.pot new file mode 100644 index 0000000..b2548ca --- /dev/null +++ b/wp-content/themes/twentysixteen/languages/twentysixteen.pot @@ -0,0 +1,323 @@ +# Copyright (C) 2015 the WordPress team +# This file is distributed under the GNU General Public License v2 or later. +msgid "" +msgstr "" +"Project-Id-Version: Twenty Sixteen 0.1.20150828\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentysixteen\n" +"POT-Creation-Date: 2015-09-10 05:46:09+00:00\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" + +#: 404.php:17 +msgid "Oops! That page can’t be found." +msgstr "" + +#: 404.php:21 +msgid "It looks like nothing was found at this location. Maybe try a search?" +msgstr "" + +#: archive.php:49 index.php:45 search.php:37 +msgid "Previous page" +msgstr "" + +#: archive.php:50 index.php:46 search.php:38 +msgid "Next page" +msgstr "" + +#: archive.php:51 image.php:64 index.php:47 search.php:39 +#: template-parts/content-page.php:27 template-parts/content-single.php:33 +#: template-parts/content.php:43 +msgid "Page" +msgstr "" + +#: comments.php:28 +msgctxt "comments title" +msgid "One thought on “%2$s”" +msgid_plural "%1$s thoughts on “%2$s”" +msgstr[0] "" +msgstr[1] "" + +#: comments.php:53 +msgid "Comments are closed." +msgstr "" + +#. #-#-#-#-# twentysixteen.pot (Twenty Sixteen 0.1.20150828) #-#-#-#-# +#. Author URI of the plugin/theme +#: footer.php:51 +msgid "https://wordpress.org/" +msgstr "" + +#: footer.php:51 +msgid "Proudly powered by %s" +msgstr "" + +#: functions.php:73 +msgid "Primary Menu" +msgstr "" + +#: functions.php:74 +msgid "Social Links Menu" +msgstr "" + +#: functions.php:126 +msgid "Sidebar" +msgstr "" + +#: functions.php:136 +msgid "Content Bottom 1" +msgstr "" + +#: functions.php:138 functions.php:148 +msgid "Appears at the bottom of the content on posts and pages." +msgstr "" + +#: functions.php:146 +msgid "Content Bottom 2" +msgstr "" + +#. translators: If there are characters in your language that are not supported +#. by Merriweather, translate this to 'off'. Do not translate into your own +#. language. +#: functions.php:171 +msgctxt "Merriweather font: on or off" +msgid "on" +msgstr "" + +#. translators: If there are characters in your language that are not supported +#. by Montserrat, translate this to 'off'. Do not translate into your own +#. language. +#: functions.php:176 +msgctxt "Montserrat font: on or off" +msgid "on" +msgstr "" + +#. translators: If there are characters in your language that are not supported +#. by Inconsolata, translate this to 'off'. Do not translate into your own +#. language. +#: functions.php:181 +msgctxt "Inconsolata font: on or off" +msgid "on" +msgstr "" + +#: functions.php:245 +msgid "expand child menu" +msgstr "" + +#: functions.php:246 +msgid "collapse child menu" +msgstr "" + +#: header.php:24 +msgid "Skip to content" +msgstr "" + +#: header.php:42 +msgid "Menu" +msgstr "" + +#: image.php:24 +msgid "Previous Image" +msgstr "" + +#: image.php:25 +msgid "Next Image" +msgstr "" + +#: image.php:60 template-parts/content-page.php:23 +#: template-parts/content-single.php:29 template-parts/content.php:39 +msgid "Pages:" +msgstr "" + +#: image.php:77 +msgctxt "Used before full size attachment link." +msgid "Full size" +msgstr "" + +#: image.php:84 template-parts/content-page.php:33 +#: template-parts/content-search.php:28 template-parts/content-search.php:33 +#: template-parts/content-single.php:45 template-parts/content.php:51 +msgid "Edit" +msgstr "" + +#: image.php:96 +msgctxt "Parent post link" +msgid "" +"Published in" +"%title" +msgstr "" + +#: inc/back-compat.php:37 inc/back-compat.php:47 inc/back-compat.php:60 +msgid "" +"Twenty Sixteen requires at least WordPress version 4.4. You are running " +"version %s. Please upgrade and try again." +msgstr "" + +#: inc/customizer.php:31 +msgid "Base Color Scheme" +msgstr "" + +#: inc/customizer.php:46 +msgid "Page Background Color" +msgstr "" + +#: inc/customizer.php:61 +msgid "Link Color" +msgstr "" + +#: inc/customizer.php:73 +msgid "Main Text Color" +msgstr "" + +#: inc/customizer.php:85 +msgid "Secondary Text Color" +msgstr "" + +#: inc/customizer.php:110 +msgid "Default" +msgstr "" + +#: inc/customizer.php:120 +msgid "Dark" +msgstr "" + +#: inc/customizer.php:130 +msgid "Gray" +msgstr "" + +#: inc/customizer.php:140 +msgid "Green" +msgstr "" + +#: inc/customizer.php:150 +msgid "Yellow" +msgstr "" + +#: inc/template-tags.php:23 +msgid "Comment navigation" +msgstr "" + +#: inc/template-tags.php:26 +msgid "Older Comments" +msgstr "" + +#: inc/template-tags.php:30 +msgid "Newer Comments" +msgstr "" + +#: inc/template-tags.php:54 +msgctxt "Used before post author name." +msgid "Author" +msgstr "" + +#: inc/template-tags.php:67 +msgctxt "Used before post format." +msgid "Format" +msgstr "" + +#: inc/template-tags.php:79 +msgid "Leave a comment on %s" +msgstr "" + +#: inc/template-tags.php:108 +msgctxt "Used before publish date." +msgid "Posted on" +msgstr "" + +#: inc/template-tags.php:124 inc/template-tags.php:132 +msgctxt "Used between list items, there is a space after the comma." +msgid ", " +msgstr "" + +#: inc/template-tags.php:127 +msgctxt "Used before category names." +msgid "Categories" +msgstr "" + +#: inc/template-tags.php:135 +msgctxt "Used before tag names." +msgid "Tags" +msgstr "" + +#. translators: %s: Name of current post +#: inc/template-tags.php:185 template-parts/content.php:34 +msgid "Continue reading %s" +msgstr "" + +#: search.php:18 +msgid "Search Results for: %s" +msgstr "" + +#: single.php:28 +msgid "Next" +msgstr "" + +#: single.php:29 +msgid "Next post:" +msgstr "" + +#: single.php:31 +msgid "Previous" +msgstr "" + +#: single.php:32 +msgid "Previous post:" +msgstr "" + +#: template-parts/biography.php:28 +msgid "Author:" +msgstr "" + +#: template-parts/biography.php:33 +msgid "View all posts by %s" +msgstr "" + +#: template-parts/content-none.php:15 +msgid "Nothing Found" +msgstr "" + +#: template-parts/content-none.php:21 +msgid "" +"Ready to publish your first post? Get started here." +msgstr "" + +#: template-parts/content-none.php:25 +msgid "" +"Sorry, but nothing matched your search terms. Please try again with some " +"different keywords." +msgstr "" + +#: template-parts/content-none.php:30 +msgid "" +"It seems we can’t find what you’re looking for. Perhaps " +"searching can help." +msgstr "" + +#: template-parts/content.php:15 +msgid "Featured" +msgstr "" + +#. Theme Name of the plugin/theme +msgid "Twenty Sixteen" +msgstr "" + +#. Theme URI of the plugin/theme +msgid "https://wordpress.org/themes/twentysixteen/" +msgstr "" + +#. Description of the plugin/theme +msgid "" +"Twenty Sixteen is a modernized take on an ever-popular WordPress layout — " +"the horizontal masthead with an optional right sidebar that works perfectly " +"for blogs and websites. It has custom color options with beautiful default " +"color schemes, a harmonious fluid grid using a mobile-first approach, and " +"impeccable polish in every detail. Twenty Sixteen will make your WordPress " +"look beautiful everywhere." +msgstr "" + +#. Author of the plugin/theme +msgid "the WordPress team" +msgstr "" diff --git a/wp-content/themes/twentysixteen/readme.txt b/wp-content/themes/twentysixteen/readme.txt new file mode 100644 index 0000000..2850e6f --- /dev/null +++ b/wp-content/themes/twentysixteen/readme.txt @@ -0,0 +1,59 @@ +=== Twenty Sixteen === +Contributors: the WordPress team +Requires at least: WordPress 4.4 +Tested up to: WordPress 4.4 +Version: 1.0 +License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html +Tags: black, blue, gray, green, white, yellow, dark, light, one-column, two-columns, right-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready + +== Description == +Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere. + +* Mobile-first, Responsive Layout +* Custom Colors +* Custom Header +* Social Links +* Post Formats +* The GPL v2.0 or later license. :) Use it to make something cool. + +For more information about Twenty Sixteen please go to https://codex.wordpress.org/Twenty_Sixteen. + +== Installation == + +1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button. +2. Type in Twenty Sixteen in the search form and press the 'Enter' key on your keyboard. +3. Click on the 'Activate' button to use your new theme right away. +4. Go to https://codex.wordpress.org/Twenty_Sixteen for a guide on how to customize this theme. +5. Navigate to Appearance > Customize in your admin panel and customize to taste. + +== Copyright == + +Twenty Sixteen WordPress Theme, Copyright 2014-2015 WordPress.org +Twenty Sixteen is distributed under the terms of the GNU GPL + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +Twenty Sixteen Theme bundles the following third-party resources: + +HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas +Licenses: MIT/GPL2 +Source: https://github.com/aFarkas/html5shiv + +Genericons icon font, Copyright 2013-2015 Automattic.com +License: GNU GPL, Version 2 (or later) +Source: http://www.genericons.com + +Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/schmidy/), licensed under Creative Commons Zero(http://creativecommons.org/publicdomain/zero/1.0/) + +== Notes == + +Only the default and dark color schemes are accessibility ready. diff --git a/wp-content/themes/twentysixteen/rtl.css b/wp-content/themes/twentysixteen/rtl.css new file mode 100644 index 0000000..de17683 --- /dev/null +++ b/wp-content/themes/twentysixteen/rtl.css @@ -0,0 +1,767 @@ +/* +Theme Name: Twenty Sixteen +Description: Adds support for languages written in a Right To Left (RTL) direction. +It's easy, just a matter of overwriting all the horizontal positioning attributes +of your CSS stylesheet in a separate stylesheet file named rtl.css. + +See: https://codex.wordpress.org/Right_to_Left_Language_Support +*/ + +/** + * Table of Contents: + * + * 1.0 - Normalize + * 2.0 - Typography + * 3.0 - Elements + * 4.0 - Forms + * 5.0 - Navigations + * 6.0 - Accessibility + * 7.0 - Widgets + * 8.0 - Content + * 8.1 - Header + * 8.2 - Posts and pages + * 8.3 - Comments + * 8.4 - Footer + * 9.0 - Multisites + * 10.0 - Media Queries + * 10.1 - >= 710px + * 10.2 - >= 910px + * 10.3 - >= 985px + * 10.4 - >= 1200px + */ + + +/** + * 1.0 - Normalize + */ + +body { + direction: rtl; + unicode-bidi: embed; +} + +input[type="checkbox"], +input[type="radio"] { + margin-right: auto; + margin-left: 0.4375em; +} + + +/** + * 2.0 - Typography + */ + +body, +button, +button[disabled]:hover, +button[disabled]:focus, +input[type="button"], +input[type="button"][disabled]:hover, +input[type="button"][disabled]:focus, +input[type="reset"], +input[type="reset"][disabled]:hover, +input[type="reset"][disabled]:focus, +input[type="submit"], +input[type="submit"][disabled]:hover, +input[type="submit"][disabled]:focus, +input, +select, +textarea, +.post-password-form label, +.main-navigation, +.post-navigation, +.post-navigation .post-title, +.pagination, +.image-navigation, +.comment-navigation, +.site .skip-link, +.logged-in .site .skip-link, +.widget .widget-title, +.widget_recent_entries .post-date, +.widget_rss .rss-date, +.widget_rss cite, +.tagcloud a, +.site-title, +.entry-title, +.entry-footer, +.sticky-post, +.page-title, +.page-links, +.comments-title, +.comment-reply-title, +.comment-metadata, +.pingback .edit-link, +.comment-reply-link, +.comment-form label, +.no-comments, +.required, +.site-footer .site-title, +.site-footer .site-title:after, +.widecolumn label, +.widecolumn .mu_register label { + font-family: Arial, Tahoma, sans-serif; +} + +::-webkit-input-placeholder { + font-family: Arial, Tahoma, sans-serif; +} + +:-moz-placeholder { + font-family: Arial, Tahoma, sans-serif; +} + +::-moz-placeholder { + font-family: Arial, Tahoma, sans-serif; +} + +:-ms-input-placeholder { + font-family: Arial, Tahoma, sans-serif; +} + +blockquote { + border-right-width: 4px; + border-left-width: 0; + padding-right: 1.263157895em; + padding-left: 0; +} + +.entry-content h1, +.entry-content h2, +.entry-content h3, +.entry-content h4, +.entry-content h5, +.entry-content h6, +.entry-summary h1, +.entry-summary h2, +.entry-summary h3, +.entry-summary h4, +.entry-summary h5, +.entry-summary h6, +.comment-content h1, +.comment-content h2, +.comment-content h3, +.comment-content h4, +.comment-content h5, +.comment-content h6, +.textwidget h1, +.textwidget h2, +.textwidget h3, +.textwidget h4, +.textwidget h5, +.textwidget h6, +.entry-content .author-title, +.widget_calendar caption, +.widecolumn h2 { + font-weight: 700; +} + + +/** + * 3.0 - Elements + */ + +ul, +ol { + margin: 0 1.25em 1.75em 0; +} + +ol { + margin-right: 1.5em; + margin-left: 0; +} + +caption, +th, +td { + text-align: right; +} + + +/** + * 4.0 - Forms + */ + +input[type="search"].search-field { + padding-right: 0.4375em; + padding-left: 49px; +} + +.search-submit:before { + left: 1px; +} + +.search-submit { + border-radius: 2px 0 0 2px; + left: 0; + right: auto; +} + + +/** + * 5.0 - Navigation + */ + +.main-navigation ul ul { + margin-right: 0.875em; + margin-left: auto; +} + +.main-navigation .menu-item-has-children > a { + margin-right: auto; + margin-left: 56px; +} + +.dropdown-toggle { + left: 0; + right: auto; +} + +.dropdown-toggle:after { + border-right-width: 1px; + border-left-width: 0; + left: auto; + right: 1px; +} + +.social-navigation li { + float: right; + margin: 0 0 0.4375em 0.4375em; +} + +.pagination:before { + left: 0; + right: auto; +} + +.pagination:after { + left: 54px; + right: auto; +} + +.pagination .nav-links { + padding-right: 0; + padding-left: 106px; +} + +.pagination .nav-links:before { + content: "\f430"; + left: -1px; + right: auto; +} + +.pagination .nav-links:after { + content: "\f429"; + left: 55px; + right: auto; +} + +.pagination .page-numbers { + margin: 0 -0.7368421053em 0 0.7368421053em; +} + +.pagination .prev, +.pagination .next { + margin: 0; +} + +.pagination .prev { + left: 54px; + right: auto; +} + +.pagination .prev:before { + content: "\f429"; + left: auto; + right: -1px; +} + +.pagination .next { + left: 0; + right: auto; +} + +.pagination .next:before { + content: "\f430"; + left: -1px; + right: auto; +} + +.comment-navigation { + margin-right: 0; + margin-left: 0; +} + + +/** + * 6.0 - Accessibility + */ + +.site .skip-link { + left: auto; + right: -9999em; +} + +.site .skip-link:focus { + left: auto; + right: 6px; +} + + +/** + * 7.0 - Widgets + */ + +.tagcloud a { + margin-right: 0; + margin-left: 0.1875em; +} + + +/** + * 8.0 - Content + */ + + +/** + * 8.1 - Header + */ + +.site-branding { + margin-right: 0; + margin-left: auto; +} + + +/** + * 8.2 - Posts and pages + */ + +.author-avatar .avatar { + float: right; + margin-right: 0; + margin-left: 1.75em; +} + +.entry-footer .avatar { + margin-right: 0; + margin-left: 0.5384615385em; +} + +.page-links a, +.page-links > span { + margin-right: auto; + margin-left: 0.3076923077em; +} + +.page-links > .page-links-title { + padding-right: 0; + padding-left: 0.6153846154em; +} + +body:not(.search-results) .entry-summary .alignright { + margin: 0.2631578947em 0 1.4736842105em 1.4736842105em; +} + +body:not(.search-results) .entry-summary .alignleft { + margin: 0.2631578947em 1.4736842105em 1.4736842105em 0; +} + + +/** + * 8.3 - Comments + */ + +.comment-list .children > li { + padding-right: 0.875em; + padding-left: 0; +} + +.comment-author .avatar { + float: right; + margin-right: auto; + margin-left: 0.875em; +} + +.bypostauthor > article .fn:after { + left: auto; + right: 3px; +} + +.comment-content ul, +.comment-content ol { + margin: 0 1.25em 1.5em 0; +} + +.comment-reply-title small a { + float: left; +} + + +/** + * 8.4 - Footer + */ + +.site-footer .site-title:after { + padding-right: 0.538461538em; + padding-left: 0.307692308em; +} + + +/** + * 9.0 - Multisites + */ + +.widecolumn .mu_register label { + margin-right: 0; + margin-left: 0.7692307692em; +} + + +/** + * 10.0 - Media Queries + */ + + +/** + * 10.1 - >= 710px + */ + +@media screen and (min-width: 44.375em) { + .pagination { + margin: 0 7.6923% 4.421052632em 23.0769%; + } + + .entry-header, + .post-thumbnail, + .entry-content, + .entry-summary, + .entry-footer, + .comments-area, + .image-navigation, + .post-navigation, + .page-header, + .page-content, + .content-bottom-widgets { + margin-right: 7.6923%; + margin-left: 23.0769%; + } + + .entry-content blockquote:not(.alignright):not(.alignleft), + .entry-summary blockquote, + .comment-content blockquote { + margin-right: -1.473684211em; + margin-left: auto; + } + + .entry-content blockquote blockquote:not(.alignright):not(.alignleft), + .entry-summary blockquote blockquote, + .comment-content blockquote blockquote { + margin-right: 0; + margin-left: auto; + } + + .entry-content ul, + .entry-summary ul, + .comment-content ul, + .entry-content ol, + .entry-summary ol, + .comment-content ol { + margin-right: 0; + margin-left: auto; + } + + .entry-content li > ul, + .entry-summary li > ul, + .comment-content li > ul, + .entry-content blockquote > ul, + .entry-summary blockquote > ul, + .comment-content blockquote > ul { + margin-right: 1.25em; + margin-left: auto; + } + + .entry-content li > ol, + .entry-summary li > ol, + .comment-content li > ol, + .entry-content blockquote > ol, + .entry-summary blockquote > ol, + .comment-content blockquote > ol { + margin-right: 1.5em; + margin-left: auto; + } + + .comment-list .children > li { + padding-right: 1.75em; + padding-left: 0; + } + + .sidebar, + .widecolumn { + padding-right: 7.6923%; + padding-left: 23.0769%; + } + + body:not(.search-results) .entry-summary li > ul, + body:not(.search-results) .entry-summary blockquote > ul { + margin-right: 1.157894737em; + margin-left: auto; + } + + body:not(.search-results) .entry-summary li > ol, + body:not(.search-results) .entry-summary blockquote > ol { + margin-right: 1.473684211em; + margin-left: auto; + } +} + + +/** + * 10.2 - >= 910px + */ + +@media screen and (min-width: 56.875em) { + .main-navigation li { + float: right; + } + + .main-navigation ul ul { + left: auto; + margin: 0; + right: -999em; + } + + .main-navigation ul ul ul { + left: auto; + right: -999em; + } + + .main-navigation ul ul li:hover > ul, + .main-navigation ul ul li.focus > ul { + left: auto; + right: 100%; + } + + .main-navigation ul ul:before { + left: auto; + right: 7px; + } + + .main-navigation ul ul:after { + left: auto; + right: 9px; + } + + .main-navigation li:hover > ul, + .main-navigation li.focus > ul { + right: auto; + } + + .main-navigation .menu-item-has-children > a { + margin: 0; + padding-right: 0.875em; + padding-left: 2.25em; + } + + .main-navigation .menu-item-has-children > a:after { + left: 0.625em; + right: auto; + } + + .main-navigation ul ul .menu-item-has-children > a { + padding-right: 0.875em; + padding-left: 2.0625em; + } + + .main-navigation ul ul .menu-item-has-children > a:after { + left: 0.5625em; + right: auto; + -webkit-transform: rotate(90deg); + -moz-transform: rotate(90deg); + -ms-transform: rotate(90deg); + transform: rotate(90deg); + } + + .content-area { + float: right; + margin-right: auto; + margin-left: -100%; + } + + .entry-header, + .post-thumbnail, + .entry-content, + .entry-summary, + .entry-footer, + .comments-area, + .image-navigation, + .post-navigation, + .pagination, + .page-header, + .page-content, + .content-bottom-widgets { + margin-right: 0; + margin-left: 0; + } + + .sidebar { + float: right; + margin-right: 75%; + margin-left: auto; + padding: 0; + } + + .widget blockquote { + padding-right: 1.0625em; + padding-left: 0; + } + + .widget .alignright { + margin: 0.2307692308em 0 1.6153846154em 1.6153846154em; + } + + .widget .alignleft { + margin: 0.2307692308em 1.6153846154em 1.6153846154em 0; + } + + .widget input[type="search"].search-field { + padding-right: 0.5384615385em; + padding-left: 42px; + } + + .widget .search-submit:before { + left: 1px; + } + + .tagcloud a { + margin: 0 0 0.5384615385em 0.2307692308em; + } + + .content-bottom-widgets .widget-area:nth-child(1):nth-last-child(2), + .content-bottom-widgets .widget-area:nth-child(2):nth-last-child(1) { + float: right; + margin-right: auto; + margin-left: 7.1428571%; + } + + .content-bottom-widgets .widget-area:nth-child(2):nth-last-child(1):last-of-type { + margin-right: auto; + margin-left: 0; + } + + .site-info { + margin: 0.538461538em 0 0.538461538em auto; + } + + .no-sidebar .entry-header, + .no-sidebar .entry-content, + .no-sidebar .entry-summary, + .no-sidebar .entry-footer, + .no-sidebar .comments-area, + .no-sidebar .image-navigation, + .no-sidebar .post-navigation, + .no-sidebar .pagination, + .no-sidebar .page-header, + .no-sidebar .page-content, + .no-sidebar .content-bottom-widgets { + margin-right: 15%; + margin-left: 15%; + } + + .no-sidebar .post-thumbnail { + margin-right: 0; + margin-left: 0; + } + + .widecolumn { + padding-right: 15%; + padding-left: 15%; + } +} + + +/** + * 10.3 - >= 985px + */ + +@media screen and (min-width: 61.5625em) { + body:not(.search-results) article:not(.type-page) .entry-content { + float: left; + } + + body:not(.search-results) article:not(.type-page) .entry-content > blockquote.alignleft.below-entry-meta { + margin-right: 1.473684211em; + margin-left: 0; + width: -webkit-calc(50% - 0.736842105em); + width: calc(50% - 0.736842105em);; + } + + body:not(.search-results) article:not(.type-page) .entry-content > blockquote.alignright.below-entry-meta { + margin-right: -40%; + margin-left: 1.473684211em; + width: -webkit-calc(60% - 1.4736842105em); + width: calc(60% - 1.4736842105em); + } + + body:not(.search-results) article:not(.type-page) img.below-entry-meta, + body:not(.search-results) article:not(.type-page) figure.below-entry-meta { + margin-right: -40%; + margin-left: 0; + } + + body:not(.search-results) article:not(.type-page) .entry-footer { + float: right; + } + + body.no-sidebar:not(.search-results) article:not(.type-page) .entry-content { + float: right; + margin-right: 34.99999999%; + margin-left: -100%; + } + + body.no-sidebar:not(.search-results) article:not(.type-page) .entry-footer { + margin-right: 15%; + margin-left: -100%; + } +} + + +/** + * 10.4 - >= 1200px + */ + +@media screen and (min-width: 75em) { + body:not(.search-results) .entry-summary li > ul, + body:not(.search-results) .entry-summary blockquote > ul { + margin-right: 0.956521739em; + margin-left: auto; + } + + body:not(.search-results) .entry-summary li > ol, + body:not(.search-results) .entry-summary blockquote > ol { + margin-right: 1.52173913em; + margin-left: auto; + } + + body:not(.search-results) .entry-summary blockquote { + padding-right: 1.347826087em; + padding-left: 0; + } + + body:not(.search-results) .entry-summary blockquote:not(.alignright):not(.alignleft) { + margin-right: -1.52173913em; + margin-left: auto; + } + + body:not(.search-results) .entry-summary blockquote blockquote:not(.alignright):not(.alignleft) { + margin-right: 0; + margin-left: auto; + } + + body:not(.search-results) .entry-summary .alignright { + margin: 0.2608695652em 0 1.5217391304em 1.5217391304em; + } + + body:not(.search-results) .entry-summary .alignleft { + margin: 0.2608695652em 1.5217391304em 1.5217391304em 0; + } +} diff --git a/wp-content/themes/twentysixteen/screenshot.png b/wp-content/themes/twentysixteen/screenshot.png new file mode 100644 index 0000000..e49b11b Binary files /dev/null and b/wp-content/themes/twentysixteen/screenshot.png differ diff --git a/wp-content/themes/twentysixteen/search.php b/wp-content/themes/twentysixteen/search.php new file mode 100644 index 0000000..4180b5f --- /dev/null +++ b/wp-content/themes/twentysixteen/search.php @@ -0,0 +1,53 @@ + + +
      +
      + + + + + + __( 'Previous page', 'twentysixteen' ), + 'next_text' => __( 'Next page', 'twentysixteen' ), + 'before_page_number' => '' . __( 'Page', 'twentysixteen' ) . ' ', + ) ); + + // If no content, include the "No posts found" template. + else : + get_template_part( 'template-parts/content', 'none' ); + + endif; + ?> + +
      +
      + + + diff --git a/wp-content/themes/twentysixteen/searchform.php b/wp-content/themes/twentysixteen/searchform.php new file mode 100644 index 0000000..a279479 --- /dev/null +++ b/wp-content/themes/twentysixteen/searchform.php @@ -0,0 +1,17 @@ + + + + + + diff --git a/wp-content/themes/twentysixteen/sidebar-content-bottom.php b/wp-content/themes/twentysixteen/sidebar-content-bottom.php new file mode 100644 index 0000000..daccee3 --- /dev/null +++ b/wp-content/themes/twentysixteen/sidebar-content-bottom.php @@ -0,0 +1,28 @@ + + diff --git a/wp-content/themes/twentysixteen/sidebar.php b/wp-content/themes/twentysixteen/sidebar.php new file mode 100644 index 0000000..a522e99 --- /dev/null +++ b/wp-content/themes/twentysixteen/sidebar.php @@ -0,0 +1,15 @@ + + + + + diff --git a/wp-content/themes/twentysixteen/singular.php b/wp-content/themes/twentysixteen/singular.php new file mode 100644 index 0000000..f50a976 --- /dev/null +++ b/wp-content/themes/twentysixteen/singular.php @@ -0,0 +1,64 @@ + + +
      +
      + _x( 'Published in%title', 'Parent post link', 'twentysixteen' ), + ) ); + } elseif ( is_singular( 'post' ) ) { + // Previous/next post navigation. + the_post_navigation( array( + 'next_text' => ' ' . + '' . __( 'Next post:', 'twentysixteen' ) . ' ' . + '%title', + 'prev_text' => ' ' . + '' . __( 'Previous post:', 'twentysixteen' ) . ' ' . + '%title', + ) ); + } + + // End of the loop. + endwhile; + ?> + +
      + + + +
      + + + diff --git a/wp-content/themes/twentysixteen/style.css b/wp-content/themes/twentysixteen/style.css new file mode 100644 index 0000000..75c86a8 --- /dev/null +++ b/wp-content/themes/twentysixteen/style.css @@ -0,0 +1,3906 @@ +/* +Theme Name: Twenty Sixteen +Theme URI: https://wordpress.org/themes/twentysixteen/ +Author: the WordPress team +Author URI: https://wordpress.org/ +Description: Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere. +Version: 0.1.20151003 +License: GNU General Public License v2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html +Tags: black, blue, gray, green, white, yellow, dark, light, one-column, two-columns, right-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready +Text Domain: twentysixteen + +This theme, like WordPress, is licensed under the GPL. +Use it to make something cool, have fun, and share what you've learned with others. +*/ + + +/** + * Table of Contents + * + * 1.0 - Normalize + * 2.0 - Genericons + * 3.0 - Typography + * 4.0 - Elements + * 5.0 - Forms + * 6.0 - Navigation + * 6.1 - Links + * 6.2 - Menus + * 7.0 - Accessibility + * 8.0 - Alignments + * 9.0 - Clearings + * 10.0 - Widgets + * 11.0 - Content + * 11.1 - Header + * 11.2 - Posts and pages + * 11.3 - Post Formats + * 11.4 - Comments + * 11.5 - Sidebar + * 11.6 - Footer + * 12.0 - Media + * 12.1 - Captions + * 12.2 - Galleries + * 13.0 - Multisite + * 14.0 - Media Queries + * 14.1 - >= 710px + * 14.2 - >= 783px + * 14.3 - >= 910px + * 14.4 - >= 985px + * 14.5 - >= 1200px + * 15.0 - Print + */ + + +/** + * 1.0 - Normalize + * + * Normalizing styles have been helped along thanks to the fine work of + * Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/ + */ + +html { + font-family: sans-serif; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; +} + +body { + margin: 0; +} + +article, +aside, +details, +figcaption, +figure, +footer, +header, +main, +menu, +nav, +section, +summary { + display: block; +} + +audio, +canvas, +progress, +video { + display: inline-block; + vertical-align: baseline; +} + +audio:not([controls]) { + display: none; + height: 0; +} + +[hidden], +template { + display: none; +} + +a { + background-color: transparent; +} + +abbr[title] { + border-bottom: 1px dotted; +} + +b, +strong { + font-weight: 700; +} + +small { + font-size: 80%; +} + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +img { + border: 0; +} + +svg:not(:root) { + overflow: hidden; +} + +figure { + margin: 0; +} + +hr { + box-sizing: content-box; +} + +code, +kbd, +pre, +samp { + font-size: 1em; +} + +button, +input, +optgroup, +select, +textarea { + color: inherit; + font: inherit; + margin: 0; +} + +select { + text-transform: none; +} + +button { + overflow: visible; +} + +button, +input, +select, +textarea { + max-width: 100%; +} + +button, +html input[type="button"], +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; + cursor: pointer; +} + +button[disabled], +html input[disabled] { + cursor: default; + opacity: .5; +} + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; + margin-right: 0.4375em; + padding: 0; +} + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +input[type="search"] { + -webkit-appearance: textfield; +} + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +fieldset { + border: 1px solid #d1d1d1; + margin: 0 0 1.75em; + padding: 0.875em; +} + +fieldset > :last-child { + margin-bottom: 0; +} + +legend { + border: 0; + padding: 0; +} + +textarea { + overflow: auto; + vertical-align: top; +} + +optgroup { + font-weight: bold; +} + + +/** + * 2.0 - Genericons + */ + +.menu-item-has-children a:after, +.social-navigation a:before, +.dropdown-toggle:after, +.bypostauthor > article .fn:after, +.comment-reply-title small a:before, +.pagination .prev:before, +.pagination .next:before, +.pagination .nav-links:before, +.pagination .nav-links:after, +.search-submit:before { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + display: inline-block; + font-family: "Genericons"; + font-size: 16px; + font-style: normal; + font-variant: normal; + font-weight: normal; + line-height: 1; + speak: none; + text-align: center; + text-decoration: inherit; + text-transform: none; + vertical-align: top; +} + + +/** + * 3.0 - Typography + */ + +body, +button, +input, +select, +textarea { + color: #1a1a1a; + font-family: Merriweather, Georgia, serif; + font-size: 16px; + font-size: 1rem; + line-height: 1.75; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + clear: both; + -webkit-font-variant-ligatures: common-ligatures; + font-variant-ligatures: common-ligatures; + font-weight: 700; + margin: 0; + text-rendering: optimizeLegibility; +} + +p { + margin: 0 0 1.75em; +} + +dfn, +cite, +em, +i { + font-style: italic; +} + +blockquote { + border: 0 solid #1a1a1a; + border-left-width: 4px; + color: #686868; + font-size: 19px; + font-size: 1.1875rem; + font-style: italic; + line-height: 1.4736842105; + margin: 0 0 1.4736842105em; + padding: 0 0 0 1.263157895em; +} + +blockquote, +q { + quotes: none; +} + +blockquote:before, +blockquote:after, +q:before, +q:after { + content: ""; +} + +blockquote p { + margin-bottom: 1.4736842105em; +} + +blockquote cite, +blockquote small { + color: #1a1a1a; + display: block; + font-size: 16px; + font-size: 1rem; + line-height: 1.75; +} + +blockquote cite:before, +blockquote small:before { + content: "\2014\00a0"; +} + +blockquote em, +blockquote i, +blockquote cite { + font-style: normal; +} + +blockquote strong, +blockquote b { + font-weight: 400; +} + +blockquote > :last-child { + margin-bottom: 0; +} + +address { + font-style: italic; + margin: 0 0 1.75em; +} + +code, +kbd, +tt, +var, +samp, +pre { + font-family: Inconsolata, monospace; +} + +pre { + border: 1px solid #d1d1d1; + font-size: 16px; + font-size: 1rem; + line-height: 1.3125; + margin: 0 0 1.75em; + max-width: 100%; + overflow: auto; + padding: 1.75em; + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} + +code { + background-color: #d1d1d1; + padding: 0.125em 0.25em; +} + +abbr, +acronym { + border-bottom: 1px dotted #d1d1d1; + cursor: help; +} + +mark, +ins { + background: #007acc; + color: #fff; + padding: 0.125em 0.25em; + text-decoration: none; +} + +big { + font-size: 125%; +} + + +/** + * 4.0 - Elements + */ + +html { + box-sizing: border-box; +} + +*, +*:before, +*:after { + /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */ + box-sizing: inherit; +} + +body { + background: #1a1a1a; + /* Fallback for when there is no custom background color defined. */ +} + +hr { + background-color: #d1d1d1; + border: 0; + height: 1px; + margin-bottom: 1.75em; +} + +ul, +ol { + margin: 0 0 1.75em 1.25em; + padding: 0; +} + +ul { + list-style: disc; +} + +ol { + list-style: decimal; + margin-left: 1.5em; +} + +li > ul, +li > ol { + margin-bottom: 0; +} + +dl { + margin: 0 0 1.75em; +} + +dt { + font-weight: 700; +} + +dd { + margin: 0 0 1.75em; +} + +img { + height: auto; + /* Make sure images are scaled correctly. */ + max-width: 100%; + /* Adhere to container width. */ + vertical-align: middle; +} + +del { + opacity: 0.8; +} + +table, +th, +td { + border: 1px solid #d1d1d1; +} + +table { + border-collapse: separate; + border-spacing: 0; + border-width: 1px 0 0 1px; + margin: 0 0 1.75em; + table-layout: fixed; + /* Prevents HTML tables from becoming too wide */ + width: 100%; +} + +caption, +th, +td { + font-weight: normal; + text-align: left; +} + +th { + border-width: 0 1px 1px 0; + font-weight: 700; +} + +td { + border-width: 0 1px 1px 0; +} + +th, +td { + padding: 0.4375em; +} + +/* Placeholder text color -- selectors need to be separate to work. */ +::-webkit-input-placeholder { + color: #686868; + font-family: Montserrat, "Helvetica Neue", sans-serif; +} + +:-moz-placeholder { + color: #686868; + font-family: Montserrat, "Helvetica Neue", sans-serif; +} + +::-moz-placeholder { + color: #686868; + font-family: Montserrat, "Helvetica Neue", sans-serif; + opacity: 1; + /* Since FF19 lowers the opacity of the placeholder by default */ +} + +:-ms-input-placeholder { + color: #686868; + font-family: Montserrat, "Helvetica Neue", sans-serif; +} + + +/** + * 5.0 - Forms + */ + +input { + line-height: normal; +} + +button, +button[disabled]:hover, +button[disabled]:focus, +input[type="button"], +input[type="button"][disabled]:hover, +input[type="button"][disabled]:focus, +input[type="reset"], +input[type="reset"][disabled]:hover, +input[type="reset"][disabled]:focus, +input[type="submit"], +input[type="submit"][disabled]:hover, +input[type="submit"][disabled]:focus { + background: #1a1a1a; + border: 0; + border-radius: 2px; + color: #fff; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-weight: 700; + letter-spacing: 0.046875em; + line-height: 1; + padding: 0.84375em 0.875em 0.78125em; + text-transform: uppercase; +} + +button:hover, +button:focus, +input[type="button"]:hover, +input[type="button"]:focus, +input[type="reset"]:hover, +input[type="reset"]:focus, +input[type="submit"]:hover, +input[type="submit"]:focus { + background: #007acc; +} + +button:focus, +input[type="button"]:focus, +input[type="reset"]:focus, +input[type="submit"]:focus { + outline: thin dotted; + outline-offset: -4px; +} + +input[type="text"], +input[type="email"], +input[type="url"], +input[type="password"], +input[type="search"], +input[type="tel"], +input[type="number"], +textarea { + background: #f7f7f7; + background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)); + border: 1px solid #d1d1d1; + border-radius: 2px; + color: #686868; + padding: 0.625em 0.4375em; + width: 100%; +} + +input[type="text"]:focus, +input[type="email"]:focus, +input[type="url"]:focus, +input[type="password"]:focus, +input[type="search"]:focus, +input[type="tel"]:focus, +input[type="number"]:focus, +textarea:focus { + background-color: #fff; + border-color: #007acc; + color: #1a1a1a; + outline: 0; +} + +.post-password-form { + margin-bottom: 1.75em; +} + +.post-password-form label { + color: #686868; + display: block; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 13px; + font-size: 0.8125rem; + letter-spacing: 0.076923077em; + line-height: 1.6153846154; + margin-bottom: 1.75em; + text-transform: uppercase; +} + +.post-password-form input[type="password"] { + margin-top: 0.4375em; +} + +.post-password-form > :last-child { + margin-bottom: 0; +} + +.search-form { + position: relative; +} + +input[type="search"].search-field { + padding-right: 49px; +} + +.search-submit:before { + content: "\f400"; + font-size: 24px; + left: 2px; + line-height: 42px; + position: relative; + width: 42px; +} + +.search-submit { + border-radius: 0 2px 2px 0; + bottom: 0; + overflow: hidden; + padding: 0; + position: absolute; + right: 0; + top: 0; + width: 42px; +} + + +/** + * 6.0 - Navigation + */ + +/** + * 6.1 - Links + */ + +a { + color: #007acc; + text-decoration: none; +} + +a:hover, +a:focus, +a:active { + color: #686868; +} + +a:focus { + outline: thin dotted; +} + +a:hover, +a:active { + outline: 0; +} + +.entry-content a, +.entry-summary a, +.taxonomy-description a, +.logged-in-as a, +.comment-content a, +.pingback .comment-body > a, +.textwidget a, +.entry-footer a:hover, +.site-info a:hover { + box-shadow: 0 1px 0 0 currentColor; +} + +.entry-content a:hover, +.entry-content a:focus, +.entry-summary a:hover, +.entry-summary a:focus, +.taxonomy-description a:hover, +.taxonomy-description a:focus, +.logged-in-as a:hover, +.logged-in-as a:focus, +.comment-content a:hover, +.comment-content a:focus, +.pingback .comment-body > a:hover, +.pingback .comment-body > a:focus, +.textwidget a:hover, +.textwidget a:focus { + box-shadow: none; +} + + +/** + * 6.2 - Menus + */ + +.site-header-menu { + display: none; + -webkit-flex: 0 1 100%; + -ms-flex: 0 1 100%; + flex: 0 1 100%; + margin: 0.875em 0; +} + +.site-header-menu.toggled-on, +.no-js .site-header-menu { + display: block; +} + +.main-navigation { + font-family: Montserrat, "Helvetica Neue", sans-serif; +} + +.site-footer .main-navigation { + margin-bottom: 1.75em; +} + +.main-navigation ul { + list-style: none; + margin: 0; +} + +.main-navigation li { + border-top: 1px solid #d1d1d1; + position: relative; +} + +.main-navigation a { + color: #1a1a1a; + display: block; + line-height: 1.3125; + outline-offset: -1px; + padding: 0.84375em 0; +} + +.main-navigation a:hover, +.main-navigation a:focus { + color: #007acc; +} + +.main-navigation .current-menu-item > a, +.main-navigation .current_page_ancestor > a { + font-weight: 700; +} + +.main-navigation ul ul { + display: none; + margin-left: 0.875em; +} + +.no-js .main-navigation ul ul { + display: block; +} + +.main-navigation ul .toggled-on { + display: block; +} + +.main-navigation .primary-menu { + border-bottom: 1px solid #d1d1d1; +} + +.main-navigation .menu-item-has-children > a { + margin-right: 56px; +} + +.dropdown-toggle { + background-color: transparent; + border: 0; + border-radius: 0; + color: #1a1a1a; + content: ""; + height: 48px; + padding: 0; + position: absolute; + right: 0; + text-transform: none; + top: 0; + width: 48px; +} + +.dropdown-toggle:after { + border: 0 solid #d1d1d1; + border-left-width: 1px; + content: "\f431"; + font-size: 24px; + left: 1px; + position: relative; + width: 48px; +} + +.dropdown-toggle:hover, +.dropdown-toggle:focus { + background-color: transparent; + color: #007acc; +} + +.dropdown-toggle:focus { + outline: thin dotted; + outline-offset: -1px; +} + +.dropdown-toggle:focus:after { + border-color: transparent; +} + +.dropdown-toggle.toggled-on:after { + content: "\f432"; +} + +.site-header .main-navigation + .social-navigation { + margin-top: 1.75em; +} + +.site-footer .social-navigation { + margin-bottom: 1.75em; +} + +.social-navigation ul { + list-style: none; + margin: 0 0 -0.4375em; +} + +.social-navigation li { + float: left; + margin: 0 0.4375em 0.4375em 0; +} + +.social-navigation a { + border: 1px solid #d1d1d1; + border-radius: 50%; + color: #1a1a1a; + display: block; + height: 35px; + position: relative; + width: 35px; +} + +.social-navigation a:before { + content: "\f415"; + height: 33px; + line-height: 33px; + text-align: center; + width: 33px; +} + +.social-navigation a:hover:before, +.social-navigation a:focus:before { + color: #007acc; +} + +.social-navigation a[href*="codepen.io"]:before { + content: "\f216"; +} + +.social-navigation a[href*="digg.com"]:before { + content: "\f221"; +} + +.social-navigation a[href*="dribbble.com"]:before { + content: "\f201"; +} + +.social-navigation a[href*="dropbox.com"]:before { + content: "\f225"; +} + +.social-navigation a[href*="facebook.com"]:before { + content: "\f203"; +} + +.social-navigation a[href*="flickr.com"]:before { + content: "\f211"; +} + +.social-navigation a[href*="foursquare.com"]:before { + content: "\f226"; +} + +.social-navigation a[href*="plus.google.com"]:before { + content: "\f206"; +} + +.social-navigation a[href*="github.com"]:before { + content: "\f200"; +} + +.social-navigation a[href*="instagram.com"]:before { + content: "\f215"; +} + +.social-navigation a[href*="linkedin.com"]:before { + content: "\f208"; +} + +.social-navigation a[href*="path.com"]:before { + content: "\f219"; +} + +.social-navigation a[href*="pinterest.com"]:before { + content: "\f210"; +} + +.social-navigation a[href*="getpocket.com"]:before { + content: "\f224"; +} + +.social-navigation a[href*="polldaddy.com"]:before { + content: "\f217"; +} + +.social-navigation a[href*="reddit.com"]:before { + content: "\f222"; +} + +.social-navigation a[href*="skype.com"]:before { + content: "\f220"; +} + +.social-navigation a[href*="stumbleupon.com"]:before { + content: "\f223"; +} + +.social-navigation a[href*="tumblr.com"]:before { + content: "\f214"; +} + +.social-navigation a[href*="twitter.com"]:before { + content: "\f202"; +} + +.social-navigation a[href*="vimeo.com"]:before { + content: "\f212"; +} + +.social-navigation a[href*="wordpress.com"]:before, +.social-navigation a[href*="wordpress.org"]:before { + content: "\f205"; +} + +.social-navigation a[href*="youtube.com"]:before { + content: "\f213"; +} + +.social-navigation a[href^="mailto:"]:before { + content: "\f410"; +} + +.social-navigation a[href*="spotify.com"]:before { + content: "\f515"; +} + +.social-navigation a[href*="twitch.tv"]:before { + content: "\f516"; +} + +.social-navigation a[href$="/feed/"]:before { + content: "\f413"; +} + +.post-navigation { + border-top: 4px solid #1a1a1a; + border-bottom: 4px solid #1a1a1a; + clear: both; + font-family: Montserrat, "Helvetica Neue", sans-serif; + margin: 0 7.6923% 3.5em; +} + +.post-navigation a { + color: #1a1a1a; + display: block; + padding: 1.75em 0; +} + +.post-navigation span { + display: block; +} + +.post-navigation .meta-nav { + color: #686868; + font-size: 13px; + font-size: 0.8125rem; + letter-spacing: 0.076923077em; + line-height: 1.6153846154; + margin-bottom: 0.5384615385em; + text-transform: uppercase; +} + +.post-navigation .post-title { + display: inline; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 23px; + font-size: 1.4375rem; + -webkit-font-variant-ligatures: common-ligatures; + font-variant-ligatures: common-ligatures; + font-weight: 700; + line-height: 1.2173913043; + text-rendering: optimizeLegibility; +} + +.post-navigation a:hover .post-title, +.post-navigation a:focus .post-title { + color: #007acc; +} + +.post-navigation div + div { + border-top: 4px solid #1a1a1a; +} + +.pagination { + border-top: 4px solid #1a1a1a; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 19px; + font-size: 1.1875rem; + margin: 0 7.6923% 2.947368421em; + min-height: 56px; + position: relative; +} + +.pagination:before, +.pagination:after { + background-color: #1a1a1a; + content: ""; + height: 52px; + position: absolute; + top:0; + width: 52px; + z-index: 0; +} + +.pagination:before { + right: 0; +} + +.pagination:after { + right: 54px; +} + +.pagination a:hover, +.pagination a:focus { + color: #1a1a1a; +} + +.pagination .nav-links { + padding-right: 106px; + position: relative; +} + +.pagination .nav-links:before, +.pagination .nav-links:after { + color: #fff; + font-size: 32px; + line-height: 51px; + opacity: 0.3; + position: absolute; + width: 52px; + z-index: 1; +} + +.pagination .nav-links:before { + content: "\f429"; + right: -1px; +} + +.pagination .nav-links:after { + content: "\f430"; + right: 55px; +} + +/* reset screen-reader-text */ +.pagination .current .screen-reader-text { + position: static !important; +} + +.pagination .page-numbers { + display: none; + letter-spacing: 0.013157895em; + line-height: 1; + margin: 0 0.7368421053em 0 -0.7368421053em; + padding: 0.8157894737em 0.7368421053em 0.3947368421em; + text-transform: uppercase; +} + +.pagination .current { + display: inline-block; + font-weight: 700; +} + +.pagination .prev, +.pagination .next { + background-color: #1a1a1a; + color: #fff; + display: inline-block; + height: 52px; + margin: 0; + overflow: hidden; + padding: 0; + position: absolute; + top: 0; + width: 52px; + z-index: 2; +} + +.pagination .prev:before, +.pagination .next:before { + font-size: 32px; + height: 52px; + line-height: 52px; + position: relative; + width: 52px; +} + +.pagination .prev:hover, +.pagination .prev:focus, +.pagination .next:hover, +.pagination .next:focus { + background-color: #007acc; + color: #fff; +} + +.pagination .prev:focus, +.pagination .next:focus { + outline: 0; +} + +.pagination .prev { + right: 54px; +} + +.pagination .prev:before { + content: "\f430"; + left: -1px; + top: -1px; +} + +.pagination .next { + right: 0; +} + +.pagination .next:before { + content: "\f429"; + right: -1px; + top: -1px; +} + +.image-navigation, +.comment-navigation { + border-top: 1px solid #d1d1d1; + border-bottom: 1px solid #d1d1d1; + color: #686868; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; + margin: 0 7.6923% 2.1538461538em; + padding: 1.0769230769em 0; +} + +.comment-navigation { + margin-right: 0; + margin-left: 0; +} + +.comments-title + .comment-navigation { + border-bottom: 0; + margin-bottom: 0; +} + +.image-navigation .nav-previous:not(:empty), +.image-navigation .nav-next:not(:empty), +.comment-navigation .nav-previous:not(:empty), +.comment-navigation .nav-next:not(:empty) { + display: inline-block; +} + +.image-navigation .nav-previous:not(:empty) + .nav-next:not(:empty):before, +.comment-navigation .nav-previous:not(:empty) + .nav-next:not(:empty):before { + content: "\002f"; + display: inline-block; + opacity: 0.7; + padding: 0 0.538461538em; +} + + +/** + * 7.0 - Accessibility + */ + +/* Text meant only for screen readers */ +.says, +.screen-reader-text { + clip: rect(1px, 1px, 1px, 1px); + height: 1px; + overflow: hidden; + position: absolute !important; + width: 1px; + /* many screen reader and browser combinations announce broken words as they would appear visually */ + word-wrap: normal !important; +} + +/* must have higher specificity than alternative color schemes inline styles */ +.site .skip-link { + background-color: #f1f1f1; + box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2); + color: #21759b; + display: block; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 14px; + font-weight: 700; + left: -9999em; + outline: none; + padding: 15px 23px 14px; + text-decoration: none; + text-transform: none; + top: -9999em; +} + +.logged-in .site .skip-link { + box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2); + font-family: "Open Sans", sans-serif; +} + +.site .skip-link:focus { + clip: auto; + height: auto; + left: 6px; + top: 7px; + width: auto; + z-index: 100000; +} + + +/** + * 8.0 - Alignments + */ + +.alignleft { + float: left; + margin: 0.375em 1.75em 1.75em 0; +} + +.alignright { + float: right; + margin: 0.375em 0 1.75em 1.75em; +} + +.aligncenter { + clear: both; + display: block; + margin: 0 auto 1.75em; +} + +blockquote.alignleft { + margin: 0.3157894737em 1.4736842105em 1.473684211em 0; +} + +blockquote.alignright { + margin: 0.3157894737em 0 1.473684211em 1.4736842105em; +} + +blockquote.aligncenter { + margin-bottom: 1.473684211em; +} + + +/** + * 9.0 - Clearings + */ + +.clear:before, +.clear:after, +blockquote:before, +blockquote:after, +.entry-content:before, +.entry-content:after, +.entry-summary:before, +.entry-summary:after, +.comment-content:before, +.comment-content:after, +.site-content:before, +.site-content:after, +.site-main > article:before, +.site-main > article:after, +.primary-menu:before, +.primary-menu:after, +.social-links-menu:before, +.social-links-menu:after, +.textwidget:before, +.textwidget:after, +.content-bottom-widgets:before, +.content-bottom-widgets:after { + content: ""; + display: table; +} + +.clear:after, +blockquote:after, +.entry-content:after, +.entry-summary:after, +.comment-content:after, +.site-content:after, +.site-main > article:after, +.primary-menu:after, +.social-links-menu:after, +.textwidget:after, +.content-bottom-widgets:after { + clear: both; +} + + +/** + * 10.0 - Widgets + */ + +.widget { + border-top: 4px solid #1a1a1a; + margin-bottom: 3.5em; + padding-top: 1.75em; +} + +.widget-area > :last-child, +.widget > :last-child { + margin-bottom: 0; +} + +.widget .widget-title { + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 16px; + font-size: 1rem; + letter-spacing: 0.046875em; + line-height: 1.3125; + margin: 0 0 1.75em; + text-transform: uppercase; +} + +.widget .widget-title:empty { + margin-bottom: 0; +} + +.widget-title a { + color: #1a1a1a; +} + +/* Calendar widget */ +.widget.widget_calendar table { + margin: 0; +} + +.widget_calendar td, +.widget_calendar th { + line-height: 2.5625; + padding: 0; + text-align: center; +} + +.widget_calendar caption { + font-weight: 900; + margin-bottom: 1.75em; +} + +.widget_calendar tbody a { + background-color: #007acc; + color: #fff; + display: block; + font-weight: 700; +} + +.widget_calendar tbody a:hover, +.widget_calendar tbody a:focus { + background-color: #686868; + color: #fff; +} + +/* Recent Posts widget */ +.widget_recent_entries .post-date { + color: #686868; + display: block; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.615384615; + margin-bottom: 0.538461538em; +} + +.widget_recent_entries li:last-child .post-date { + margin-bottom: 0; +} + +/* RSS widget */ +.widget_rss .rsswidget img { + margin-top: -0.375em; +} + +.widget_rss .rss-date, +.widget_rss cite { + color: #686868; + display: block; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 13px; + font-size: 0.8125rem; + font-style: normal; + line-height: 1.615384615; + margin-bottom: 0.538461538em; +} + +.widget_rss .rssSummary:last-child { + margin-bottom: 2.1538461538em; +} + +.widget_rss li:last-child :last-child { + margin-bottom: 0; +} + +/* Tag Cloud widget */ +.tagcloud a { + border: 1px solid #d1d1d1; + border-radius: 2px; + display: inline-block; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: inherit !important; + line-height: 1; + margin: 0 0.1875em 0.4375em 0; + padding: 0.5625em 0.4375em 0.5em; +} + +.tagcloud a:hover, +.tagcloud a:focus { + border-color: #007acc; + color: #007acc; + outline: 0; +} + + +/** + * 11.0 - Content + */ + +.site { + background-color: #fff; +} + +.site-inner { + margin: 0 auto; + max-width: 1320px; + position: relative; +} + +.site-content { + word-wrap: break-word; +} + +.site-main { + margin-bottom: 3.5em; +} + +.site-main > :last-child { + margin-bottom: 0; +} + + +/** + * 11.1 - Header + */ + +.site-header { + padding: 2.625em 7.6923%; +} + +.site-header-main { + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; +} + +.site-branding { + margin: 0.875em auto 0.875em 0; +} + +.site-title { + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 23px; + font-size: 1.4375rem; + font-weight: 700; + line-height: 1.2173913043; + margin: 0; +} + +.site-branding .site-title a { + color: #1a1a1a; +} + +.site-branding .site-title a:hover, +.site-branding .site-title a:focus { + color: #007acc; +} + +.site-description { + color: #686868; + display: none; + font-size: 13px; + font-size: 0.8125rem; + font-weight: 400; + line-height: 1.0769230769; + margin: 0.538461538em 0 0; +} + +.menu-toggle { + background-color: transparent; + border: 1px solid #d1d1d1; + color: #1a1a1a; + font-size: 13px; + font-size: 0.8125rem; + margin: 1.076923077em 0; + padding: 0.769230769em; +} + +.no-js .menu-toggle { + display: none; +} + +.menu-toggle:hover, +.menu-toggle:focus { + background-color: transparent; + border-color: #007acc; + color: #007acc; +} + +.menu-toggle.toggled-on, +.menu-toggle.toggled-on:hover, +.menu-toggle.toggled-on:focus { + background-color: #1a1a1a; + border-color: #1a1a1a; + color: #fff; +} + +.menu-toggle:focus { + outline: 0; +} + +.menu-toggle.toggled-on:focus { + outline: thin dotted; +} + +.header-image { + clear: both; + margin: 0.875em 0; +} + +.header-image a { + display: block; +} + +.header-image a:hover img, +.header-image a:focus img { + opacity: 0.85; +} + + +/** + * 11.2 - Posts and pages + */ + +.site-main > article { + margin-bottom: 3.5em; + position: relative; +} + +.entry-header, +.entry-summary, +.entry-content, +.entry-footer, +.page-content { + margin-right: 7.6923%; + margin-left: 7.6923%; +} + +.entry-title { + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 28px; + font-size: 1.75rem; + font-weight: 700; + line-height: 1.25; + margin-bottom: 1em; +} + +.entry-title a { + color: #1a1a1a; +} + +.entry-title a:hover, +.entry-title a:focus { + color: #007acc; +} + +.post-thumbnail { + display: block; + margin: 0 7.6923% 1.75em; +} + +.post-thumbnail img { + display: block; +} + +.no-sidebar .post-thumbnail img { + margin: 0 auto; +} + +a.post-thumbnail:hover, +a.post-thumbnail:focus { + opacity: 0.85; +} + +.entry-content h1, +.entry-summary h1, +.comment-content h1, +.textwidget h1 { + font-size: 28px; + font-size: 1.75rem; + line-height: 1.25; + margin-top: 2em; + margin-bottom: 1em; +} + +.entry-content h2, +.entry-summary h2, +.comment-content h2, +.textwidget h2 { + font-size: 23px; + font-size: 1.4375rem; + line-height: 1.2173913043; + margin-top: 2.4347826087em; + margin-bottom: 1.2173913043em; +} + +.entry-content h3, +.entry-summary h3, +.comment-content h3, +.textwidget h3 { + font-size: 19px; + font-size: 1.1875rem; + line-height: 1.1052631579; + margin-top: 2.9473684211em; + margin-bottom: 1.4736842105em; +} + +.entry-content h4, +.entry-content h5, +.entry-content h6, +.entry-summary h4, +.entry-summary h5, +.entry-summary h6, +.comment-content h4, +.comment-content h5, +.comment-content h6, +.textwidget h4, +.textwidget h5, +.textwidget h6 { + font-size: 16px; + font-size: 1rem; + line-height: 1.3125; + margin-top: 3.5em; + margin-bottom: 1.75em; +} + +.entry-content h4, +.entry-summary h4, +.comment-content h4, +.textwidget h4 { + letter-spacing: 0.140625em; + text-transform: uppercase; +} + +.entry-content h6, +.entry-summary h6, +.comment-content h6, +.textwidget h6 { + font-style: italic; +} + +.entry-content h1, +.entry-content h2, +.entry-content h3, +.entry-content h4, +.entry-content h5, +.entry-content h6, +.entry-summary h1, +.entry-summary h2, +.entry-summary h3, +.entry-summary h4, +.entry-summary h5, +.entry-summary h6, +.comment-content h1, +.comment-content h2, +.comment-content h3, +.comment-content h4, +.comment-content h5, +.comment-content h6, +.textwidget h1, +.textwidget h2, +.textwidget h3, +.textwidget h4, +.textwidget h5, +.textwidget h6 { + font-weight: 900; +} + +.entry-content h1:first-child, +.entry-content h2:first-child, +.entry-content h3:first-child, +.entry-content h4:first-child, +.entry-content h5:first-child, +.entry-content h6:first-child, +.entry-summary h1:first-child, +.entry-summary h2:first-child, +.entry-summary h3:first-child, +.entry-summary h4:first-child, +.entry-summary h5:first-child, +.entry-summary h6:first-child, +.comment-content h1:first-child, +.comment-content h2:first-child, +.comment-content h3:first-child, +.comment-content h4:first-child, +.comment-content h5:first-child, +.comment-content h6:first-child, +.textwidget h1:first-child, +.textwidget h2:first-child, +.textwidget h3:first-child, +.textwidget h4:first-child, +.textwidget h5:first-child, +.textwidget h6:first-child { + margin-top: 0; +} + +.post-navigation .post-title, +.entry-title, +.comments-title { + -webkit-hyphens: auto; + -moz-hyphens: auto; + -ms-hyphens: auto; + hyphens: auto; +} + +body:not(.search-results) .entry-summary { + color: #686868; + font-size: 19px; + font-size: 1.1875rem; + line-height: 1.4736842105; + margin-bottom: 1.4736842105em; +} + +body:not(.search-results) .entry-header + .entry-summary { + margin-top: -0.736842105em; +} + +body:not(.search-results) .entry-summary p, +body:not(.search-results) .entry-summary address, +body:not(.search-results) .entry-summary hr, +body:not(.search-results) .entry-summary ul, +body:not(.search-results) .entry-summary ol, +body:not(.search-results) .entry-summary dl, +body:not(.search-results) .entry-summary dd, +body:not(.search-results) .entry-summary table { + margin-bottom: 1.4736842105em; +} + +body:not(.search-results) .entry-summary li > ul, +body:not(.search-results) .entry-summary li > ol { + margin-bottom: 0; +} + +body:not(.search-results) .entry-summary th, +body:not(.search-results) .entry-summary td { + padding: 0.3684210526em; +} + +body:not(.search-results) .entry-summary fieldset { + margin-bottom: 1.4736842105em; + padding: 0.3684210526em; +} + +body:not(.search-results) .entry-summary blockquote { + border-color: currentColor; +} + +body:not(.search-results) .entry-summary blockquote > :last-child { + margin-bottom: 0; +} + +body:not(.search-results) .entry-summary .alignleft { + margin: 0.2631578947em 1.4736842105em 1.4736842105em 0; +} + +body:not(.search-results) .entry-summary .alignright { + margin: 0.2631578947em 0 1.4736842105em 1.4736842105em; +} + +body:not(.search-results) .entry-summary .aligncenter { + margin-bottom: 1.4736842105em; +} + +.entry-content > :last-child, +.entry-summary > :last-child, +body:not(.search-results) .entry-summary > :last-child, +.page-content > :last-child, +.comment-content > :last-child, +.textwidget > :last-child { + margin-bottom: 0; +} + +.more-link { + white-space: nowrap; +} + +.author-info { + border-top: 1px solid #d1d1d1; + border-bottom: 1px solid #d1d1d1; + clear: both; + margin-top: 1.75em; + padding-top: 1.75em; + padding-bottom: 1.75em; +} + +.author-avatar .avatar { + float: left; + height: 42px; + margin: 0 1.75em 1.75em 0; + width: 42px; +} + +.author-description > :last-child { + margin-bottom: 0; +} + +.entry-content .author-title { + clear: none; + font-size: 16px; + font-size: 1rem; + font-weight: 900; + line-height: 1.75; + margin: 0; +} + +.author-bio { + color: #686868; + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; + margin-bottom: 1.6153846154em; + overflow: hidden; +} + +.author-link { + white-space: nowrap; +} + +.entry-footer { + color: #686868; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; + margin-top: 2.1538461538em; +} + +.entry-footer:empty { + margin: 0; +} + +.entry-footer a { + color: #686868; +} + +.entry-footer a:hover, +.entry-footer a:focus { + color: #007acc; +} + +.entry-footer > span:not(:first-child):before { + content: "\002f"; + display: inline-block; + opacity: 0.7; + padding: 0 0.538461538em; +} + +.entry-footer .avatar { + height: 21px; + margin: -0.1538461538em 0.5384615385em 0 0; + width: 21px; +} + +.sticky-post { + color: #686868; + display: block; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 13px; + font-size: 0.8125rem; + letter-spacing: 0.076923077em; + line-height: 1.6153846154; + margin-bottom: 0.5384615385em; + text-transform: uppercase; +} + +/** + * IE8 and earlier will drop any block with CSS3 selectors. + * Do not combine these styles with the next block. + */ +.updated:not(.published) { + display: none; +} + +.sticky .posted-on, +.byline { + display: none; +} + +.single .byline, +.group-blog .byline { + display: inline; +} + +.page-header { + border-top: 4px solid #1a1a1a; + margin: 0 7.6923% 3.5em; + padding-top: 1.75em; +} + +body.error404 .page-header, +body.search-no-results .page-header { + border-top: 0; + padding-top: 0; +} + +.page-title { + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 23px; + font-size: 1.4375rem; + line-height: 1.2173913043; +} + +.taxonomy-description { + color: #686868; + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; +} + +.taxonomy-description p { + margin: 0.5384615385em 0 1.6153846154em; +} + +.taxonomy-description > :last-child { + margin-bottom: 0; +} + +.page-links { + clear: both; + font-family: Montserrat, "Helvetica Neue", sans-serif; + margin: 0 0 1.75em; +} + +.page-links a, +.page-links > span { + border: 1px solid #d1d1d1; + border-radius: 2px; + display: inline-block; + font-size: 13px; + font-size: 0.8125rem; + height: 1.8461538462em; + line-height: 1.6923076923em; + margin-right: 0.3076923077em; + text-align: center; + width: 1.8461538462em; +} + +.page-links a { + background-color: #1a1a1a; + border-color: #1a1a1a; + color: #fff; +} + +.page-links a:hover, +.page-links a:focus { + background-color: #007acc; + border-color: transparent; + color: #fff; +} + +.page-links > .page-links-title { + border: 0; + color: #1a1a1a; + height: auto; + margin: 0; + padding-right: 0.6153846154em; + width: auto; +} + +.entry-attachment { + margin-bottom: 1.75em; +} + +.entry-caption { + color: #686868; + font-size: 13px; + font-size: 0.8125rem; + font-style: italic; + line-height: 1.6153846154; + padding-top: 1.0769230769em; +} + +.entry-caption > :last-child { + margin-bottom: 0; +} + +.content-bottom-widgets { + margin: 0 7.6923%; +} + +.content-bottom-widgets .widget-area { + margin-bottom: 3.5em; +} + + +/** + * 11.3 - Post Formats + */ + +.format-aside .entry-title, +.format-image .entry-title, +.format-video .entry-title, +.format-quote .entry-title, +.format-gallery .entry-title, +.format-status .entry-title, +.format-link .entry-title, +.format-audio .entry-title, +.format-chat .entry-title { + font-size: 19px; + font-size: 1.1875rem; + line-height: 1.473684211; + margin-bottom: 1.473684211em; +} + +.blog .format-status .entry-title, +.archive .format-status .entry-title { + display: none; +} + + +/** + * 11.4 - Comments + */ + +.comments-area { + margin: 0 7.6923% 3.5em; +} + +.comment-list + .comment-respond, +.comment-navigation + .comment-respond { + padding-top: 1.75em; +} + +.comments-title, +.comment-reply-title { + border-top: 4px solid #1a1a1a; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 23px; + font-size: 1.4375rem; + font-weight: 700; + line-height: 1.3125; + padding-top: 1.217391304em; +} + +.comments-title { + margin-bottom: 1.217391304em; +} + +.comment-list { + list-style: none; + margin: 0; +} + +.comment-list article, +.comment-list .pingback, +.comment-list .trackback { + border-top: 1px solid #d1d1d1; + padding: 1.75em 0; +} + +.comment-list .children { + list-style: none; + margin: 0; +} + +.comment-list .children > li { + padding-left: 0.875em; +} + +.comment-author { + color: #1a1a1a; + margin-bottom: 0.4375em; +} + +.comment-author .avatar { + float: left; + height: 28px; + margin-right: 0.875em; + position: relative; + width: 28px; +} + +.bypostauthor > article .fn:after { + content: "\f304"; + left: 3px; + position: relative; + top: 5px; +} + +.comment-metadata, +.pingback .edit-link { + color: #686868; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; +} + +.comment-metadata { + margin-bottom: 2.1538461538em; +} + +.comment-metadata a, +.pingback .comment-edit-link { + color: #686868; +} + +.comment-metadata a:hover, +.comment-metadata a:focus, +.pingback .comment-edit-link:hover, +.pingback .comment-edit-link:focus { + color: #007acc; +} + +.comment-metadata .edit-link, +.pingback .edit-link { + display: inline-block; +} + +.comment-metadata .edit-link:before, +.pingback .edit-link:before { + content: "\002f"; + display: inline-block; + opacity: 0.7; + padding: 0 0.538461538em; +} + +.comment-content ul, +.comment-content ol { + margin: 0 0 1.5em 1.25em; +} + +.comment-content li > ul, +.comment-content li > ol { + margin-bottom: 0; +} + +.comment-reply-link { + border: 1px solid #d1d1d1; + border-radius: 2px; + color: #007acc; + display: inline-block; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 13px; + font-size: 0.8125rem; + line-height: 1; + margin-top: 2.1538461538em; + padding: 0.5384615385em 0.5384615385em 0.4615384615em; +} + +.comment-reply-link:hover, +.comment-reply-link:focus { + border-color: currentColor; + color: #007acc; + outline: 0; +} + +.comment-form { + padding-top: 1.75em; +} + +.comment-form label { + color: #686868; + display: block; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 13px; + font-size: 0.8125rem; + letter-spacing: 0.076923077em; + line-height: 1.6153846154; + margin-bottom: 0.5384615385em; + text-transform: uppercase; +} + +.comment-list .comment-form { + padding-bottom: 1.75em; +} + +.comment-notes, +.comment-awaiting-moderation, +.logged-in-as, +.form-allowed-tags { + color: #686868; + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; + margin-bottom: 2.1538461538em; +} + +.no-comments { + border-top: 1px solid #d1d1d1; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-weight: 700; + margin: 0; + padding-top: 1.75em; +} + +.comment-navigation + .no-comments { + border-top: 0; + padding-top: 0; +} + +.form-allowed-tags code { + font-family: Inconsolata, monospace; +} + +.form-submit { + margin-bottom: 0; +} + +.required { + color: #007acc; + font-family: Merriweather, Georgia, serif; +} + +.comment-reply-title small { + font-size: 100%; +} + +.comment-reply-title small a { + border: 0; + float: right; + height: 32px; + overflow: hidden; + width: 26px; +} + +.comment-reply-title small a:hover, +.comment-reply-title small a:focus { + color: #1a1a1a; +} + +.comment-reply-title small a:before { + content: "\f405"; + font-size: 32px; + position: relative; + top: -5px; +} + + +/** + * 11.5 - Sidebar + */ + +.sidebar { + margin-bottom: 3.5em; + padding: 0 7.6923%; +} + + +/** + * 11.6 - Footer + */ + +.site-footer { + padding: 0 7.6923% 1.75em; +} + +.site-info { + color: #686868; + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; +} + +.site-info a { + color: #686868; +} + +.site-info a:hover, +.site-info a:focus { + color: #007acc; +} + +.site-footer .site-title { + font-family: inherit; + font-size: inherit; + font-weight: 400; +} + +.site-footer .site-title:after { + content: "\002f"; + display: inline-block; + font-family: Montserrat, sans-serif; + opacity: 0.7; + padding: 0 0.307692308em 0 0.538461538em; +} + + +/** + * 12.0 - Media + */ + +.site .avatar { + border-radius: 50%; +} + +.entry-content .wp-smiley, +.entry-summary .wp-smiley, +.comment-content .wp-smiley, +.textwidget .wp-smiley { + border: none; + margin-top: 0; + margin-bottom: 0; + padding: 0; +} + +.entry-content a img, +.entry-summary a img, +.comment-content a img, +.textwidget a img { + display: block; +} + +/* Make sure embeds and iframes fit their containers. */ +embed, +iframe, +object, +video { + margin-bottom: 1.75em; + max-width: 100%; + vertical-align: middle; +} + +p > embed, +p > iframe, +p > object, +p > video { + margin-bottom: 0; +} + +.entry-content .wp-audio-shortcode a, +.entry-content .wp-playlist a { + box-shadow: none; +} + +.wp-audio-shortcode, +.wp-video, +.wp-playlist.wp-audio-playlist { + margin-top: 0; + margin-bottom: 1.75em; +} + +.wp-playlist.wp-audio-playlist { + padding-bottom: 0; +} + +.wp-playlist .wp-playlist-tracks { + margin-top: 0; +} + +.wp-playlist-item .wp-playlist-caption { + border-bottom: 0; + padding: 0.7142857143em 0; +} + +.wp-playlist-item .wp-playlist-item-length { + top: 0.7142857143em; +} + + +/** + * 12.1 - Captions + */ + +.wp-caption { + margin-bottom: 1.75em; + max-width: 100%; +} + +.wp-caption img[class*="wp-image-"] { + display: block; + margin: 0; +} + +.wp-caption .wp-caption-text { + color: #686868; + font-size: 13px; + font-size: 0.8125rem; + font-style: italic; + line-height: 1.6153846154; + padding-top: 0.5384615385em; +} + + +/** + * 12.2 - Galleries + */ + +.gallery { + margin: 0 -1.1666667% 1.75em; +} + +.gallery-item { + display: inline-block; + max-width: 33.33%; + padding: 0 1.1400652% 2.2801304%; + text-align: center; + vertical-align: top; + width: 100%; +} + +.gallery-columns-1 .gallery-item { + max-width: 100%; +} + +.gallery-columns-2 .gallery-item { + max-width: 50%; +} + +.gallery-columns-4 .gallery-item { + max-width: 25%; +} + +.gallery-columns-5 .gallery-item { + max-width: 20%; +} + +.gallery-columns-6 .gallery-item { + max-width: 16.66%; +} + +.gallery-columns-7 .gallery-item { + max-width: 14.28%; +} + +.gallery-columns-8 .gallery-item { + max-width: 12.5%; +} + +.gallery-columns-9 .gallery-item { + max-width: 11.11%; +} + +.gallery-icon img { + margin: 0 auto; +} + +.gallery-caption { + color: #686868; + display: block; + font-size: 13px; + font-size: 0.8125rem; + font-style: italic; + line-height: 1.6153846154; + padding-top: 0.5384615385em; +} + +.gallery-columns-6 .gallery-caption, +.gallery-columns-7 .gallery-caption, +.gallery-columns-8 .gallery-caption, +.gallery-columns-9 .gallery-caption { + display: none; +} + + +/** + * 13.0 - Multisites + */ + +.widecolumn { + margin-bottom: 3.5em; + padding: 0 7.6923%; +} + +.widecolumn .mu_register { + width: auto; +} + +.widecolumn .mu_alert { + margin-bottom: 1.75em; +} + +.widecolumn .mu_register .mu_alert { + padding: 0.875em; +} + +.widecolumn form, +.widecolumn .mu_register form { + margin-top: 0; +} + +.widecolumn h2 { + font-size: 23px; + font-size: 1.4375rem; + font-weight: 900; + line-height: 1.2173913043; + margin-bottom: 1.2173913043em; +} + +.widecolumn p { + margin: 1.75em 0; +} + +.widecolumn p + h2 { + margin-top: 2.4347826087em; +} + +.widecolumn label, +.widecolumn .mu_register label { + color: #686868; + font-family: Montserrat, "Helvetica Neue", sans-serif; + font-size: 13px; + font-size: 0.8125rem; + font-weight: 400; + letter-spacing: 0.076923077em; + line-height: 1.6153846154; + text-transform: uppercase; +} + +.widecolumn .mu_register label { + margin: 2.1538461538em 0.7692307692em 0.5384615385em 0; +} + +.widecolumn .mu_register label strong { + font-weight: 400; +} + +.widecolumn #key, +.widecolumn .mu_register #blog_title, +.widecolumn .mu_register #user_email, +.widecolumn .mu_register #blogname, +.widecolumn .mu_register #user_name { + font-size: 16px; + font-size: 1rem; + width: 100%; +} + +.widecolumn .mu_register #blogname { + margin: 0; +} + +.widecolumn .mu_register #blog_title, +.widecolumn .mu_register #user_email, +.widecolumn .mu_register #user_name { + margin: 0 0 0.375em; +} + +.widecolumn #submit, +.widecolumn .mu_register input[type="submit"] { + font-size: 16px; + font-size: 1rem; + margin: 0; + width: auto; +} + +.widecolumn .mu_register .prefix_address, +.widecolumn .mu_register .suffix_address { + font-size: inherit; +} + +.widecolumn .mu_register > :last-child, +.widecolumn form > :last-child { + margin-bottom: 0; +} + + +/** + * 14.0 - Media Queries + */ + +/** + * Does the same thing as , + * but in the future W3C standard way. -ms- prefix is required for IE10+ to + * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor + * the meta tag. See https://core.trac.wordpress.org/ticket/25888. + */ +@-ms-viewport { + width: device-width; +} + +@viewport { + width: device-width; +} + + +/** + * 14.1 - >= 710px + */ + +@media screen and (min-width: 44.375em) { + body:not(.custom-background-image):before, + body:not(.custom-background-image):after { + background: inherit; + content: ""; + display: block; + height: 21px; + left: 0; + position: fixed; + width: 100%; + z-index: 99; + } + + body:not(.custom-background-image):before { + top: 0; + } + + body:not(.custom-background-image).admin-bar:before { + top: 46px; + } + + body:not(.custom-background-image):after { + bottom: 0; + } + + .site { + margin: 21px; + } + + .site-main { + margin-bottom: 5.25em; + } + + .site-header { + padding: 3.9375em 7.6923%; + } + + .site-branding { + margin-top: 1.3125em; + margin-bottom: 1.3125em; + } + + .site-title { + font-size: 28px; + font-size: 1.75rem; + line-height: 1.25; + } + + .site-description { + display: block; + } + + .menu-toggle { + font-size: 16px; + font-size: 1.0rem; + margin: 1.3125em 0; + padding: 0.8125em 0.875em 0.6875em; + } + + .site-header-menu { + margin: 1.3125em 0; + } + + .site-header .main-navigation + .social-navigation { + margin-top: 2.625em; + } + + .header-image { + margin: 1.3125em 0; + } + + .pagination { + margin: 0 23.0769% 4.421052632em 7.6923% + } + + .post-navigation { + margin-bottom: 5.25em; + } + + .post-navigation .post-title { + font-size: 28px; + font-size: 1.75rem; + line-height: 1.25; + } + + /* restore screen-reader-text */ + .pagination .current .screen-reader-text { + position: absolute !important; + } + + .pagination .page-numbers { + display: inline-block; + } + + .site-main > article { + margin-bottom: 5.25em; + } + + .entry-header, + .post-thumbnail, + .entry-content, + .entry-summary, + .entry-footer, + .comments-area, + .image-navigation, + .post-navigation, + .page-header, + .page-content, + .content-bottom-widgets { + margin-right: 23.0769%; + } + + .entry-title { + font-size: 33px; + font-size: 2.0625rem; + line-height: 1.2727272727; + margin-bottom: 0.8484848485em; + } + + .entry-content blockquote.alignleft, + .entry-content blockquote.alignright { + border-width: 4px 0 0 0; + padding: 0.9473684211em 0 0; + width: -webkit-calc(50% - 0.736842105em); + width: calc(50% - 0.736842105em); + } + + .entry-content blockquote:not(.alignleft):not(.alignright), + .entry-summary blockquote, + .comment-content blockquote { + margin-left: -1.473684211em; + } + + .entry-content blockquote blockquote:not(.alignleft):not(.alignright), + .entry-summary blockquote blockquote, + .comment-content blockquote blockquote { + margin-left: 0; + } + + .entry-content ul, + .entry-summary ul, + .comment-content ul, + .entry-content ol, + .entry-summary ol, + .comment-content ol { + margin-left: 0; + } + + .entry-content li > ul, + .entry-summary li > ul, + .comment-content li > ul, + .entry-content blockquote > ul, + .entry-summary blockquote > ul, + .comment-content blockquote > ul { + margin-left: 1.25em; + } + + .entry-content li > ol, + .entry-summary li > ol, + .comment-content li > ol, + .entry-content blockquote > ol, + .entry-summary blockquote > ol, + .comment-content blockquote > ol { + margin-left: 1.5em; + } + + .comment-author { + margin-bottom: 0; + } + + .comment-author .avatar { + height: 42px; + position: relative; + top: 0.25em; + width: 42px; + } + + .comment-list .children > li { + padding-left: 1.75em; + } + + .comment-list + .comment-respond, + .comment-navigation + .comment-respond { + padding-top: 3.5em; + } + + .comments-area, + .widget, + .content-bottom-widgets .widget-area { + margin-bottom: 5.25em; + } + + .sidebar, + .widecolumn { + margin-bottom: 5.25em; + padding-right: 23.0769%; + } + + body:not(.search-results) .entry-summary li > ul, + body:not(.search-results) .entry-summary blockquote > ul { + margin-left: 1.157894737em; + } + + body:not(.search-results) .entry-summary li > ol, + body:not(.search-results) .entry-summary blockquote > ol { + margin-left: 1.473684211em; + } +} + + +/** + * 14.2 - >= 783px + */ + +@media screen and (min-width: 48.9375em) { + body:not(.custom-background-image).admin-bar:before { + top: 32px; + } +} + + +/** + * 14.3 - >= 910px + */ + +@media screen and (min-width: 56.875em) { + .site-header { + padding-right: 4.5455%; + padding-left: 4.5455%; + } + + .site-header-main { + -webkit-align-items: flex-start; + -ms-flex-align: start; + align-items: flex-start; + } + + .site-header-menu { + display: block; + -webkit-flex: 0 1 auto; + -ms-flex: 0 1 auto; + flex: 0 1 auto; + } + + .main-navigation { + margin: 0 -0.875em; + } + + .main-navigation .primary-menu { + border: 0; + } + + .main-navigation li { + border: 0; + float: left; + } + + .main-navigation a { + outline-offset: -8px; + padding: 0.65625em 0.875em; + white-space: nowrap; + } + + .main-navigation li:hover > a, + .main-navigation li.focus > a { + color: #007acc; + } + + .main-navigation ul ul { + border-bottom: 1px solid #d1d1d1; + display: block; + left: -999em; + margin: 0; + position: absolute; + z-index: 99999; + } + + .main-navigation ul ul ul { + left: -999em; + top: -1px; + } + + .main-navigation ul ul ul:before, + .main-navigation ul ul ul:after { + border: 0; + } + + .main-navigation ul ul li { + background-color: #fff; + border: 1px solid #d1d1d1; + border-bottom-width: 0; + } + + .main-navigation ul ul li:hover > ul, + .main-navigation ul ul li.focus > ul { + left: 100%; + } + + .main-navigation ul ul a { + white-space: normal; + width: 15em; + } + + .main-navigation ul ul:before, + .main-navigation ul ul:after { + border-style: solid; + content: ""; + position: absolute; + } + + .main-navigation ul ul:before { + border-color: #d1d1d1 transparent; + border-width: 0 10px 10px; + left: 7px; + top: -9px; + } + + .main-navigation ul ul:after { + border-color: #fff transparent; + border-width: 0 8px 8px; + left: 9px; + top: -7px; + } + + .main-navigation li:hover > ul, + .main-navigation li.focus > ul { + left: auto; + } + + .main-navigation .menu-item-has-children > a { + margin: 0; + padding-right: 2.25em; + } + + .main-navigation .menu-item-has-children > a:after { + content: "\f431"; + position: absolute; + right: 0.625em; + top: 0.8125em; + } + + .main-navigation ul ul .menu-item-has-children > a { + padding-right: 2.0625em; + } + + .main-navigation ul ul .menu-item-has-children > a:after { + right: 0.5625em; + top: 0.8125em; + -webkit-transform: rotate(-90deg); + -moz-transform: rotate(-90deg); + -ms-transform: rotate(-90deg); + transform: rotate(-90deg); + } + + .dropdown-toggle, + .main-navigation ul .dropdown-toggle.toggled-on, + .menu-toggle, + .site-header .social-navigation, + .site-footer .main-navigation { + display: none; + } + + .site-content { + padding: 0 4.5455%; + } + + .content-area { + float: left; + margin-right: -100%; + width: 70%; + } + + .entry-header, + .post-thumbnail, + .entry-content, + .entry-summary, + .entry-footer, + .comments-area, + .image-navigation, + .post-navigation, + .pagination, + .page-header, + .page-content, + .content-bottom-widgets { + margin-right: 0; + margin-left: 0; + } + + .sidebar { + float: left; + margin-left: 75%; + padding: 0; + width: 25%; + } + + .widget { + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; + margin-bottom: 3.230769231em; + padding-top: 1.615384615em; + } + + .widget .widget-title { + margin-bottom: 1.3125em; + } + + .widget p, + .widget address, + .widget hr, + .widget ul, + .widget ol, + .widget dl, + .widget dd, + .widget table { + margin-bottom: 1.6153846154em; + } + + .widget li > ul, + .widget li > ol { + margin-bottom: 0; + } + + .widget blockquote { + font-size: 16px; + font-size: 1rem; + line-height: 1.3125; + margin-bottom: 1.3125em; + padding-left: 1.0625em; + } + + .widget blockquote cite, + .widget blockquote small { + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; + } + + .widget th, + .widget td { + padding: 0.5384615385em; + } + + .widget pre { + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; + margin-bottom: 1.6153846154em; + padding: 0.5384615385em; + } + + .widget fieldset { + margin-bottom: 1.6153846154em; + padding: 0.5384615385em; + } + + .widget button, + .widget input, + .widget select, + .widget textarea { + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; + } + + .widget button, + .widget input[type="button"], + .widget input[type="reset"], + .widget input[type="submit"] { + line-height: 1; + padding: 0.846153846em; + } + + .widget input[type="text"], + .widget input[type="email"], + .widget input[type="url"], + .widget input[type="password"], + .widget input[type="search"], + .widget input[type="tel"], + .widget input[type="number"], + .widget textarea { + padding: 0.4615384615em 0.5384615385em; + } + + .widget h1 { + font-size: 23px; + font-size: 1.4375rem; + line-height: 1.2173913043; + margin-bottom: 0.9130434783em; + } + + .widget h2 { + font-size: 19px; + font-size: 1.1875rem; + line-height: 1.1052631579; + margin-bottom: 1.1052631579em; + } + + .widget h3 { + font-size: 16px; + font-size: 1rem; + line-height: 1.3125; + margin-bottom: 1.3125em; + } + + .widget h4, + .widget h5, + .widget h6 { + font-size: 13px; + font-size: 0.8125rem; + line-height: 1.6153846154; + margin-bottom: 0.9130434783em; + } + + .widget .alignleft { + margin: 0.2307692308em 1.6153846154em 1.6153846154em 0; + } + + .widget .alignright { + margin: 0.2307692308em 0 1.6153846154em 1.6153846154em; + } + + .widget .aligncenter { + margin-bottom: 1.6153846154em; + } + + .widget_calendar td, + .widget_calendar th { + line-height: 2.6923076923; + padding: 0; + } + + .widget_rss .rssSummary:last-child { + margin-bottom: 1.615384615em; + } + + .widget input[type="search"].search-field { + padding-right: 42px; + } + + .widget .search-submit:before { + font-size: 16px; + left: 1px; + line-height: 35px; + width: 35px; + } + + .widget button.search-submit { + padding: 0; + width: 35px; + } + + .tagcloud a { + margin: 0 0.2307692308em 0.5384615385em 0; + padding: 0.5384615385em 0.4615384615em 0.4615384615em; + } + + .textwidget h1 { + margin-top: 1.8260869565em; + } + + .textwidget h2 { + margin-top: 2.2105263158em; + } + + .textwidget h3 { + margin-top: 2.625em; + } + + .textwidget h4 { + letter-spacing: 0.153846154em; + } + + .textwidget h4, + .textwidget h5, + .textwidget h6 { + margin-top: 3.2307692308em; + } + + .content-bottom-widgets .widget-area:nth-child(1):nth-last-child(2), + .content-bottom-widgets .widget-area:nth-child(2):nth-last-child(1) { + float: left; + margin-right: 7.1428571%; + width: 46.42857145%; + } + + .content-bottom-widgets .widget-area:nth-child(2):nth-last-child(1):last-of-type { + margin-right: 0; + } + + .site-footer { + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + padding: 0 4.5455% 3.5em; + } + + .site-footer .social-navigation { + margin: 0; + -webkit-order: 2; + -ms-flex-order: 2; + order: 2; + } + + .site-info { + margin: 0.538461538em auto 0.538461538em 0; + -webkit-order: 1; + -ms-flex-order: 1; + order: 1; + } + + .no-sidebar .content-area { + float: none; + margin: 0; + width: 100%; + } + + .no-sidebar .entry-header, + .no-sidebar .entry-content, + .no-sidebar .entry-summary, + .no-sidebar .entry-footer, + .no-sidebar .comments-area, + .no-sidebar .image-navigation, + .no-sidebar .post-navigation, + .no-sidebar .pagination, + .no-sidebar .page-header, + .no-sidebar .page-content, + .no-sidebar .content-bottom-widgets { + margin-right: 15%; + margin-left: 15%; + } + + .widecolumn { + padding-right: 15%; + padding-left: 15%; + } +} + + +/** + * 14.4 - >= 985px + */ + +@media screen and (min-width: 61.5625em) { + .site-main { + margin-bottom: 7.0em; + } + + .site-header { + padding: 5.25em 4.5455%; + } + + .site-branding, + .site-header-menu, + .header-image { + margin-top: 1.75em; + margin-bottom: 1.75em; + } + + .image-navigation { + margin-bottom: 3.230769231em; + } + + .post-navigation { + margin-bottom: 7.0em; + } + + .pagination { + margin-bottom: 5.894736842em; + } + + .widget { + margin-bottom: 4.307692308em; + } + + .site-main > article { + margin-bottom: 7.0em; + } + + .entry-title { + font-size: 40px; + font-size: 2.5rem; + line-height: 1.225; + margin-bottom: 1.05em; + } + + .format-aside .entry-title, + .format-image .entry-title, + .format-video .entry-title, + .format-quote .entry-title, + .format-gallery .entry-title, + .format-status .entry-title, + .format-link .entry-title, + .format-audio .entry-title, + .format-chat .entry-title { + font-size: 23px; + font-size: 1.4375em; + line-height: 1.304347826; + margin-bottom: 1.826086957em; + } + + .post-thumbnail { + margin-bottom: 2.625em; + } + + .entry-content h1, + .entry-summary h1, + .comment-content h1 { + font-size: 33px; + font-size: 2.0625rem; + line-height: 1.2727272727; + margin-top: 1.696969697em; + margin-bottom: 0.8484848485em; + } + + .entry-content h2, + .entry-summary h2, + .comment-content h2 { + font-size: 28px; + font-size: 1.75rem; + line-height: 1.25; + margin-top: 2em; + margin-bottom: 1em; + } + + .entry-content h3, + .entry-summary h3, + .comment-content h3 { + font-size: 23px; + font-size: 1.4375rem; + line-height: 1.2173913043; + margin-top: 2.4347826087em; + margin-bottom: 1.2173913043em; + } + + .entry-content h4, + .entry-summary h4, + .entry-intro h4, + .comment-content h4 { + letter-spacing: 0.131578947em; + } + + .entry-content h4, + .entry-content h5, + .entry-content h6, + .entry-summary h4, + .entry-summary h5, + .entry-summary h6, + .comment-content h4, + .comment-content h5, + .comment-content h6 { + font-size: 19px; + font-size: 1.1875rem; + line-height: 1.1052631579; + margin-top: 2.9473684211em; + margin-bottom: 1.473684211em; + } + + .author-info { + border-bottom: 0; + padding-bottom: 0; + } + + .entry-footer { + margin-top: 4.3076923077em; + } + + .comment-list + .comment-respond, + .comment-navigation + .comment-respond { + padding-top: 5.25em; + } + + .comments-area, + .sidebar, + .content-bottom-widgets .widget-area, + .widecolumn { + margin-bottom: 7.0em; + } + + body:not(.search-results) .entry-summary { + margin-bottom: 2.210526316em; + } + + body:not(.search-results) .entry-header + .entry-summary { + margin-top: -1.105263158em; + } + + body:not(.search-results) article:not(.type-page) .entry-content { + float: right; + width: 71.42857144%; + } + + body:not(.search-results) article:not(.type-page) .entry-content > blockquote.alignleft.below-entry-meta { + margin-left: -40%; + width: -webkit-calc(60% - 1.4736842105em); + width: calc(60% - 1.4736842105em); + } + + body:not(.search-results) article:not(.type-page) img.below-entry-meta, + body:not(.search-results) article:not(.type-page) figure.below-entry-meta { + clear: both; + display: block; + float: none; + margin-right: 0; + margin-left: -40%; + max-width: 140%; + } + + body:not(.search-results) article:not(.type-page) figure.below-entry-meta img.below-entry-meta, + body:not(.search-results) article:not(.type-page) table figure.below-entry-meta, + body:not(.search-results) article:not(.type-page) table img.below-entry-meta { + margin: 0; + max-width: 100%; + } + + body:not(.search-results) article:not(.type-page) .entry-footer { + float: left; + margin-top: 0.1538461538em; + width: 21.42857143%; + } + + body:not(.search-results) article:not(.type-page) .entry-footer > span:not(:first-child):before { + display: none; + } + + .single .byline, + .full-size-link, + body:not(.search-results).group-blog .byline, + body:not(.search-results) .entry-format, + body:not(.search-results) .cat-links, + body:not(.search-results) .tags-links, + body:not(.search-results) article:not(.sticky) .posted-on, + body:not(.search-results) article:not(.type-page) .comments-link, + body:not(.search-results) article:not(.type-page) .entry-footer .edit-link { + display: block; + margin-bottom: 0.5384615385em; + } + + body:not(.search-results) article:not(.type-page) .entry-footer > span:last-child { + margin-bottom: 0; + } + + body:not(.search-results) article:not(.type-page) .entry-footer .avatar { + display: block; + height: auto; + margin: 0 0 0.5384615385em; + width: 49px; + } + + body.no-sidebar:not(.search-results) article:not(.type-page) .entry-content { + float: left; + margin-right: -100%; + margin-left: 34.99999999%; + width: 50.00000001%; + } + + body.no-sidebar:not(.search-results) article:not(.type-page) .entry-footer { + margin-right: -100%; + margin-left: 15%; + width: 15%; + } +} + + +/** + * 14.5 - >= 1200px + */ + +@media screen and (min-width: 75em) { + body:not(.search-results) .entry-summary { + font-size: 23px; + font-size: 1.4375rem; + line-height: 1.5217391304; + margin-bottom: 1.826086957em; + } + + body:not(.search-results) .entry-header + .entry-summary { + margin-top: -0.913043478em; + } + + body:not(.search-results) .entry-summary p, + body:not(.search-results) .entry-summary address, + body:not(.search-results) .entry-summary hr, + body:not(.search-results) .entry-summary ul, + body:not(.search-results) .entry-summary ol, + body:not(.search-results) .entry-summary dl, + body:not(.search-results) .entry-summary dd, + body:not(.search-results) .entry-summary table { + margin-bottom: 1.5217391304em; + } + + body:not(.search-results) .entry-summary li > ul, + body:not(.search-results) .entry-summary blockquote > ul { + margin-left: 0.956521739em; + } + + body:not(.search-results) .entry-summary li > ol, + body:not(.search-results) .entry-summary blockquote > ol { + margin-left: 1.52173913em; + } + + body:not(.search-results) .entry-summary blockquote { + font-size: 23px; + font-size: 1.4375rem; + line-height: 1.5217391304; + margin: 0 0 1.5217391304em; + padding-left: 1.347826087em; + } + + body:not(.search-results) .entry-summary blockquote:not(.alignleft):not(.alignright) { + margin-left: -1.52173913em; + } + + body:not(.search-results) .entry-summary blockquote blockquote:not(.alignleft):not(.alignright) { + margin-left: 0; + } + + body:not(.search-results) .entry-summary blockquote cite, + body:not(.search-results) .entry-summary blockquote small { + font-size: 19px; + font-size: 1.1875rem; + line-height: 1.8421052632; + } + + body:not(.search-results) .entry-summary th, + body:not(.search-results) .entry-summary td { + padding: 0.3043478261em; + } + + body:not(.search-results) .entry-summary pre { + font-size: 16px; + font-size: 1rem; + line-height: 1.75; + margin-bottom: 1.75em; + padding: 1.75em; + } + + body:not(.search-results) .entry-summary fieldset { + margin-bottom: 1.5217391304em; + padding: 0.3043478261em; + } + + body:not(.search-results) .entry-summary h1 { + margin-top: 2.121212121em; + margin-bottom: 1.060606061em; + } + + body:not(.search-results) .entry-summary h2 { + margin-top: 2.5em; + margin-bottom: 1.25em; + } + + body:not(.search-results) .entry-summary h3 { + margin-top: 3.043478261em; + margin-bottom: 1.52173913em; + } + + body:not(.search-results) .entry-summary h4, + body:not(.search-results) .entry-summary h5, + body:not(.search-results) .entry-summary h6 { + margin-top: 3.684210526em; + margin-bottom: 1.842105263em; + } + + body:not(.search-results) .entry-summary h1:first-child, + body:not(.search-results) .entry-summary h2:first-child, + body:not(.search-results) .entry-summary h3:first-child, + body:not(.search-results) .entry-summary h4:first-child, + body:not(.search-results) .entry-summary h5:first-child, + body:not(.search-results) .entry-summary h6:first-child { + margin-top: 0; + } + + body:not(.search-results) .entry-summary .alignleft { + margin: 0.2608695652em 1.5217391304em 1.5217391304em 0; + } + + body:not(.search-results) .entry-summary .alignright { + margin: 0.2608695652em 0 1.5217391304em 1.5217391304em; + } + + body:not(.search-results) .entry-summary .aligncenter { + margin-bottom: 1.5217391304em; + } +} + + +/** + * 15.0 - Print + */ + +@media print { + form, + button, + input, + select, + textarea, + .navigation, + .main-navigation, + .social-navigation, + .sidebar, + .content-bottom-widgets, + .header-image, + .page-links, + .edit-link, + .comment-respond, + .comment-edit-link, + .comment-reply-link, + .comment-metadata .edit-link, + .pingback .edit-link { + display: none; + } + + body, + blockquote cite, + blockquote small, + pre, + .entry-content h4, + .entry-content h5, + .entry-content h6, + .entry-summary h4, + .entry-summary h5, + .entry-summary h6, + .comment-content h4, + .comment-content h5, + .comment-content h6, + .entry-content .author-title { + font-size: 12pt; + } + + blockquote { + font-size: 14.25pt; + } + + .site-title, + .page-title, + .comments-title, + .entry-content h2, + .entry-summary h2, + .comment-content h2, + .widecolumn h2 { + font-size: 17.25pt; + } + + .site-description { + display: block; + } + + .entry-title { + font-size: 24.75pt; + line-height: 1.2727272727; + margin-bottom: 1.696969697em; + } + + .format-aside .entry-title, + .format-image .entry-title, + .format-video .entry-title, + .format-quote .entry-title, + .format-gallery .entry-title, + .format-status .entry-title, + .format-link .entry-title, + .format-audio .entry-title, + .format-chat .entry-title { + font-size: 17.25pt; + line-height: 1.304347826; + margin-bottom: 1.826086957em; + } + + .entry-content h1, + .entry-summary h1, + .comment-content h1 { + font-size: 21pt; + } + + .entry-content h3, + .entry-summary h3, + .comment-content h3, + body:not(.search-results) .entry-summary { + font-size: 14.25pt; + } + + .site-description, + .author-bio, + .entry-footer, + .sticky-post, + .taxonomy-description, + .entry-caption, + .comment-metadata, + .comment-notes, + .comment-awaiting-moderation, + .site-info, + .wp-caption .wp-caption-text, + .gallery-caption { + font-size: 9.75pt; + } + + body, + .site { + background: none !important; /* Brute force since user agents all print differently. */ + } + + body, + blockquote cite, + blockquote small, + .site-branding .site-title a, + .entry-title a, + .comment-author { + color: #1a1a1a !important; /* Make sure color schemes don't affect to print */ + } + + blockquote, + .page-header, + .comments-title { + border-color: #1a1a1a !important; /* Make sure color schemes don't affect to print */ + } + + blockquote, + .site-description, + body:not(.search-results) .entry-summary, + body:not(.search-results) .entry-summary blockquote, + .author-bio, + .entry-footer, + .entry-footer a, + .sticky-post, + .taxonomy-description, + .entry-caption, + .comment-author, + .comment-metadata a, + .comment-notes, + .comment-awaiting-moderation, + .site-info, + .site-info a, + .wp-caption .wp-caption-text, + .gallery-caption { + color: #686868 !important; /* Make sure color schemes don't affect to print */ + } + + code, + hr { + background-color: #d1d1d1 !important; /* Make sure color schemes don't affect to print */ + } + + pre, + abbr, + acronym, + table, + th, + td, + .author-info, + .comment-list article, + .comment-list .pingback, + .comment-list .trackback, + .no-comments { + border-color: #d1d1d1 !important; /* Make sure color schemes don't affect to print */ + } + + a { + color: #007acc !important; /* Make sure color schemes don't affect to print */ + } + + .entry-content a, + .entry-summary a, + .taxonomy-description a, + .comment-content a, + .pingback .comment-body > a { + box-shadow: none; + border-bottom: 1px solid #007acc !important; /* Make sure color schemes don't affect to print */ + } + + .site { + margin: 5%; + } + + .site-inner { + max-width: none; + } + + .site-header { + padding: 0 0 1.75em; + } + + .site-branding { + margin-top: 0; + margin-bottom: 1.75em; + } + + .site-main { + margin-bottom: 3.5em; + } + + .entry-header, + .entry-footer, + .page-header, + .page-content, + .entry-content, + .entry-summary, + .post-thumbnail, + .comments-area { + margin-right: 0; + margin-left: 0; + } + + .post-thumbnail, + .site-main > article { + margin-bottom: 3.5em; + } + + .entry-content blockquote.alignleft, + .entry-content blockquote.alignright { + border-width: 4px 0 0 0; + padding: 0.9473684211em 0 0; + width: -webkit-calc(50% - 0.736842105em); + width: calc(50% - 0.736842105em); + } + + body:not(.search-results) .entry-header + .entry-summary { + margin-top: -1.473684211em; + } + + .site-footer, + .widecolumn { + padding: 0; + } +} diff --git a/wp-content/themes/twentythirteen/author-bio.php b/wp-content/themes/twentysixteen/template-parts/biography.php similarity index 50% rename from wp-content/themes/twentythirteen/author-bio.php rename to wp-content/themes/twentysixteen/template-parts/biography.php index ae2f522..6033f0e 100644 --- a/wp-content/themes/twentythirteen/author-bio.php +++ b/wp-content/themes/twentysixteen/template-parts/biography.php @@ -1,10 +1,10 @@ @@ -12,23 +12,26 @@
      + -
      \ No newline at end of file +
      diff --git a/wp-content/themes/twentysixteen/template-parts/content-none.php b/wp-content/themes/twentysixteen/template-parts/content-none.php new file mode 100644 index 0000000..b6b7e7c --- /dev/null +++ b/wp-content/themes/twentysixteen/template-parts/content-none.php @@ -0,0 +1,33 @@ + + +
      + + +
      + + +

      Get started here.', 'twentysixteen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?>

      + + + +

      + + + + +

      + + + +
      +
      diff --git a/wp-content/themes/twentysixteen/template-parts/content-page.php b/wp-content/themes/twentysixteen/template-parts/content-page.php new file mode 100644 index 0000000..47c2450 --- /dev/null +++ b/wp-content/themes/twentysixteen/template-parts/content-page.php @@ -0,0 +1,45 @@ + + +
      > +
      + ', '' ); ?> +
      + + + +
      + '', + 'link_before' => '', + 'link_after' => '', + 'pagelink' => '' . __( 'Page', 'twentysixteen' ) . ' %', + 'separator' => ', ', + ) ); + ?> +
      + + ', '', false ) + ), + '
      ', + '
      ' + ); + ?> + +
      diff --git a/wp-content/themes/twentysixteen/template-parts/content-search.php b/wp-content/themes/twentysixteen/template-parts/content-search.php new file mode 100644 index 0000000..4fb7822 --- /dev/null +++ b/wp-content/themes/twentysixteen/template-parts/content-search.php @@ -0,0 +1,53 @@ + + + + diff --git a/wp-content/themes/twentysixteen/template-parts/content-single.php b/wp-content/themes/twentysixteen/template-parts/content-single.php new file mode 100644 index 0000000..87bd19f --- /dev/null +++ b/wp-content/themes/twentysixteen/template-parts/content-single.php @@ -0,0 +1,53 @@ + + +
      > +
      + ', '' ); ?> +
      + + + + + +
      + '', + 'link_before' => '', + 'link_after' => '', + 'pagelink' => '' . __( 'Page', 'twentysixteen' ) . ' %', + 'separator' => ', ', + ) ); + + if ( '' != get_the_author_meta( 'description' ) ) { + get_template_part( 'template-parts/biography' ); + } + ?> +
      + +
      + + ', '', false ) + ), + '', + '' + ); + ?> +
      +
      diff --git a/wp-content/themes/twentysixteen/template-parts/content.php b/wp-content/themes/twentysixteen/template-parts/content.php new file mode 100644 index 0000000..21563cd --- /dev/null +++ b/wp-content/themes/twentysixteen/template-parts/content.php @@ -0,0 +1,57 @@ + + +
      > +
      + + + + + ', esc_url( get_permalink() ) ), '' ); ?> +
      + + + + + +
      + "', '"', false ) + ) ); + + wp_link_pages( array( + 'before' => '', + 'link_before' => '', + 'link_after' => '', + 'pagelink' => '' . __( 'Page', 'twentysixteen' ) . ' %', + 'separator' => ', ', + ) ); + ?> +
      + +
      + + ', '', false ) + ), + '', + '' + ); + ?> +
      +
      diff --git a/wp-content/themes/twentythirteen/404.php b/wp-content/themes/twentythirteen/404.php deleted file mode 100644 index eebc34b..0000000 --- a/wp-content/themes/twentythirteen/404.php +++ /dev/null @@ -1,31 +0,0 @@ - - -
      -
      - - - -
      -
      -

      -

      - - -
      -
      - -
      -
      - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/archive.php b/wp-content/themes/twentythirteen/archive.php deleted file mode 100644 index 9e0dd4d..0000000 --- a/wp-content/themes/twentythirteen/archive.php +++ /dev/null @@ -1,55 +0,0 @@ - - -
      -
      - - -
      -

      -
      - - - - - - - - - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/author.php b/wp-content/themes/twentythirteen/author.php deleted file mode 100644 index 3d76ba3..0000000 --- a/wp-content/themes/twentythirteen/author.php +++ /dev/null @@ -1,62 +0,0 @@ - - -
      -
      - - - - - -
      -

      ' . get_the_author() . '' ); ?>

      -
      - - - - - - - - - - - - - - - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/category.php b/wp-content/themes/twentythirteen/category.php deleted file mode 100644 index a221239..0000000 --- a/wp-content/themes/twentythirteen/category.php +++ /dev/null @@ -1,41 +0,0 @@ - - -
      -
      - - -
      -

      - - -
      - -
      - - - - - - - - - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/comments.php b/wp-content/themes/twentythirteen/comments.php deleted file mode 100644 index 3d1aff4..0000000 --- a/wp-content/themes/twentythirteen/comments.php +++ /dev/null @@ -1,59 +0,0 @@ - - -
      - - -

      - ' . get_the_title() . '' ); - ?> -

      - -
        - 'ol', - 'short_ping' => true, - 'avatar_size' => 74, - ) ); - ?> -
      - - 1 && get_option( 'page_comments' ) ) : - ?> - - - - -

      - - - - - - -
      \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/content-aside.php b/wp-content/themes/twentythirteen/content-aside.php deleted file mode 100644 index 8aa309b..0000000 --- a/wp-content/themes/twentythirteen/content-aside.php +++ /dev/null @@ -1,31 +0,0 @@ - - -
      > -
      - →', 'twentythirteen' ) ); ?> - '', 'link_before' => '', 'link_after' => '' ) ); ?> -
      - -
      - - - ', '' ); ?> - - - - - - - - ', '' ); ?> - -
      -
      diff --git a/wp-content/themes/twentythirteen/content-audio.php b/wp-content/themes/twentythirteen/content-audio.php deleted file mode 100644 index 5ba1862..0000000 --- a/wp-content/themes/twentythirteen/content-audio.php +++ /dev/null @@ -1,37 +0,0 @@ - - -
      > -
      - -

      - -

      - -

      - -
      - -
      -
      - →', 'twentythirteen' ) ); ?> - '', 'link_before' => '', 'link_after' => '' ) ); ?> -
      -
      - -
      - - ', '' ); ?> - - - - -
      -
      diff --git a/wp-content/themes/twentythirteen/content-chat.php b/wp-content/themes/twentythirteen/content-chat.php deleted file mode 100644 index b34ab46..0000000 --- a/wp-content/themes/twentythirteen/content-chat.php +++ /dev/null @@ -1,31 +0,0 @@ - - -
      > -
      - -

      - -

      - -

      - -
      - -
      - - '', 'link_before' => '', 'link_after' => '' ) ); ?> -
      - -
      - - ', '' ); ?> -
      -
      diff --git a/wp-content/themes/twentythirteen/content-gallery.php b/wp-content/themes/twentythirteen/content-gallery.php deleted file mode 100644 index a4e2464..0000000 --- a/wp-content/themes/twentythirteen/content-gallery.php +++ /dev/null @@ -1,45 +0,0 @@ - - -
      > -
      - -

      - -

      - -

      - -
      - -
      - - →', 'twentythirteen' ) ); ?> - '', 'link_before' => '', 'link_after' => '' ) ); ?> - - - -
      - -
      - - - - - ' . __( 'Leave a comment', 'twentythirteen' ) . '', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> - - - ', '' ); ?> - - - - -
      -
      diff --git a/wp-content/themes/twentythirteen/content-image.php b/wp-content/themes/twentythirteen/content-image.php deleted file mode 100644 index 972423d..0000000 --- a/wp-content/themes/twentythirteen/content-image.php +++ /dev/null @@ -1,41 +0,0 @@ - - -
      > -
      - -

      - -

      - -

      - -
      - -
      - →', 'twentythirteen' ) ); ?> - '', 'link_before' => '', 'link_after' => '' ) ); ?> -
      - -
      - - - - - ' . __( 'Leave a comment', 'twentythirteen' ) . '', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> - - - ', '' ); ?> - - - - -
      -
      diff --git a/wp-content/themes/twentythirteen/content-link.php b/wp-content/themes/twentythirteen/content-link.php deleted file mode 100644 index 2da7ffb..0000000 --- a/wp-content/themes/twentythirteen/content-link.php +++ /dev/null @@ -1,36 +0,0 @@ - - -
      > -
      -

      - -

      - - -
      - -
      - →', 'twentythirteen' ) ); ?> - '', 'link_before' => '', 'link_after' => '' ) ); ?> -
      - - -
      - - - - -
      - -
      diff --git a/wp-content/themes/twentythirteen/content-none.php b/wp-content/themes/twentythirteen/content-none.php deleted file mode 100644 index d9549e1..0000000 --- a/wp-content/themes/twentythirteen/content-none.php +++ /dev/null @@ -1,31 +0,0 @@ - - - - -
      - - -

      Get started here.', 'twentythirteen' ), admin_url( 'post-new.php' ) ); ?>

      - - - -

      - - - - -

      - - - -
      diff --git a/wp-content/themes/twentythirteen/content-quote.php b/wp-content/themes/twentythirteen/content-quote.php deleted file mode 100644 index 307537d..0000000 --- a/wp-content/themes/twentythirteen/content-quote.php +++ /dev/null @@ -1,27 +0,0 @@ - - -
      > -
      - →', 'twentythirteen' ) ); ?> - '', 'link_before' => '', 'link_after' => '' ) ); ?> -
      - -
      - - - - - ' . __( 'Leave a comment', 'twentythirteen' ) . '', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> - - - ', '' ); ?> -
      -
      diff --git a/wp-content/themes/twentythirteen/content-status.php b/wp-content/themes/twentythirteen/content-status.php deleted file mode 100644 index 272f5de..0000000 --- a/wp-content/themes/twentythirteen/content-status.php +++ /dev/null @@ -1,25 +0,0 @@ - - -
      > -
      - →', 'twentythirteen' ) ); ?> - '', 'link_before' => '', 'link_after' => '' ) ); ?> -
      - -
      - - ', '' ); ?> - - - - -
      -
      diff --git a/wp-content/themes/twentythirteen/content-video.php b/wp-content/themes/twentythirteen/content-video.php deleted file mode 100644 index ac01758..0000000 --- a/wp-content/themes/twentythirteen/content-video.php +++ /dev/null @@ -1,41 +0,0 @@ - - -
      > -
      - -

      - -

      - -

      - -
      - -
      - →', 'twentythirteen' ) ); ?> - '', 'link_before' => '', 'link_after' => '' ) ); ?> -
      - -
      - - - - - ' . __( 'Leave a comment', 'twentythirteen' ) . '', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> - - - ', '' ); ?> - - - - -
      -
      diff --git a/wp-content/themes/twentythirteen/content.php b/wp-content/themes/twentythirteen/content.php deleted file mode 100644 index c341740..0000000 --- a/wp-content/themes/twentythirteen/content.php +++ /dev/null @@ -1,57 +0,0 @@ - - -
      > -
      - -
      - -
      - - - -

      - -

      - -

      - - - -
      - - -
      - -
      - -
      - →', 'twentythirteen' ) ); ?> - '', 'link_before' => '', 'link_after' => '' ) ); ?> -
      - - -
      - - - - - - - -
      -
      diff --git a/wp-content/themes/twentythirteen/css/editor-style.css b/wp-content/themes/twentythirteen/css/editor-style.css deleted file mode 100644 index 5684189..0000000 --- a/wp-content/themes/twentythirteen/css/editor-style.css +++ /dev/null @@ -1,771 +0,0 @@ -/* -Theme Name: Twenty Thirteen -Description: Used to style the TinyMCE editor. -*/ - - -/** - * Table of Contents: - * - * 1.0 - Body - * 2.0 - Headings - * 3.0 - Text Elements - * 4.0 - Links - * 5.0 - Alignment - * 6.0 - Tables - * 7.0 - Images - * 8.0 - Galleries - * 9.0 - Audio/Video - * 10.0 - Post Formats - * 11.0 - RTL - * ---------------------------------------------------------------------------- - */ - - -/** - * 1.0 Body - * ---------------------------------------------------------------------------- - */ - -html .mceContentBody { - font-size: 100%; - max-width: 604px; -} - -body { - color: #141412; - font-family: "Source Sans Pro", Helvetica, sans-serif; - line-height: 1.5; - text-rendering: optimizeLegibility; - vertical-align: baseline; -} - - -/** - * 2.0 Headings - * ---------------------------------------------------------------------------- - */ - -h1, -h2, -h3, -h4, -h5, -h6 { - clear: both; - font-family: Bitter, Georgia, serif; - line-height: 1.3; -} - -h1 { - font-size: 48px; - margin: 33px 0; -} - -h2 { - font-size: 30px; - margin: 25px 0; -} - -h3 { - font-size: 22px; - margin: 22px 0; -} - -h4 { - font-size: 20px; - margin: 25px 0; -} - -h5 { - font-size: 18px; - margin: 30px 0; -} - -h6 { - font-size: 16px; - margin: 36px 0; -} - -hr { - background: url(../images/dotted-line.png) repeat center top; - background-size: 4px 4px; - border: 0; - height: 1px; - margin: 0 0 24px; -} - - -/** - * 3.0 Text Elements - * ---------------------------------------------------------------------------- - */ - -p { - margin: 0 0 24px; -} - -ol, -ul { - margin: 16px 0; - padding: 0 0 0 40px; -} - -ul { - list-style-type: square; -} - -ol { - list-style: decimal outside; -} - -li > ul, -li > ol { - margin: 0; -} - -dl { - margin: 0 20px; -} - -dt { - font-weight: bold; -} - -dd { - margin: 0 0 20px; -} - -strong { - font-weight: bold; -} - -code, -kbd, -pre, -samp { - font-family: monospace, serif; - font-size: 14px; -} - -pre { - background: #f5f5f5; - color: #666; - font-family: monospace; - font-size: 14px; - margin: 20px 0; - overflow: auto; - padding: 20px; - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - -blockquote, -q { - quotes: none; -} - -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ""; - content: none; -} - -blockquote { - font-size: 24px; - font-style: italic; - font-weight: 300; - margin: 24px 40px; -} - -blockquote blockquote { - margin-right: 0; -} - -blockquote cite, -blockquote small { - font-size: 14px; - font-weight: normal; - text-transform: uppercase; -} - -cite { - border-bottom: 0; -} - -abbr[title] { - border-bottom: 1px dotted; -} - -address { - font-style: italic; - margin: 0 0 24px; -} - -del { - color: #333; -} - -ins { - background: #fff9c0; - border: none; - color: #333; - text-decoration: none; -} - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - - -/** - * 4.0 Links - * ---------------------------------------------------------------------------- - */ - -a { - color: #ca3c08; - text-decoration: none; -} - -a:visited { - color: #ac0404; -} - -a:focus { - outline: thin dotted; -} - -a:active, -a:hover { - color: #ea9629; - outline: 0; -} - -a:hover { - text-decoration: underline; -} - - -/** - * 5.0 Alignment - * ---------------------------------------------------------------------------- - */ - -.alignleft { - float: left; - margin: 5px 20px 5px 0; -} - -.alignright { - float: right; - margin: 5px 0 5px 20px; -} - -.aligncenter { - display: block; - margin: 5px auto; -} - -img.alignnone { - margin: 5px 0; -} - - -/** - * 6.0 Tables - * ---------------------------------------------------------------------------- - */ - -table { - border-bottom: 1px solid #ededed; - border-collapse: collapse; - border-spacing: 0; - font-size: 14px; - line-height: 2; - margin: 0 0 20px; - width: 100%; -} - -caption, -th, -td { - font-weight: normal; - text-align: left; -} - -caption { - font-size: 16px; - margin: 20px 0; -} - -th { - font-weight: bold; - text-transform: uppercase; -} - -td { - border-top: 1px solid #ededed; - padding: 6px 10px 6px 0; -} - - -/** - * 7.0 Images - * ---------------------------------------------------------------------------- - */ - -img { - height: auto; - max-width: 100%; - vertical-align: middle; -} - -.wp-caption { - background: transparent; - border: none; - margin: 0; - padding: 0; - text-align: left; -} - -.html5-captions .wp-caption { - padding: 0; -} - -.wp-caption.alignleft { - margin: 5px 10px 5px 0; -} - -.html5-captions .wp-caption.alignleft { - margin-right: 20px; -} - -.wp-caption.alignright { - margin: 5px 0 5px 10px; -} - -.wp-caption.alignright img, -.wp-caption.alignright .wp-caption-dd { - padding-left: 10px; -} - -.html5-captions .wp-caption.alignright { - margin-left: 20px; -} - -.html5-captions .wp-caption.alignright img, -.html5-captions .wp-caption.alignright .wp-caption-dd { - padding: 0; -} - -.wp-caption-dt { - margin: 0; -} - -.wp-caption .wp-caption-text, -.wp-caption-dd { - color: #220e10; - font-size: 18px; - font-style: italic; - font-weight: 300; - line-height: 1.5; - margin-bottom: 24px; - padding: 0; -} - -.mceTemp + ul, -.mceTemp + ol { - list-style-position: inside; -} - - -/** - * 8.0 Galleries - * ---------------------------------------------------------------------------- - */ - -.gallery .gallery-item { - float: left; - margin: 0 4px 4px 0; - overflow: hidden; - padding: 0; - position: relative; -} - -.gallery-columns-1 .gallery-item { - max-width: 100%; - width: auto; -} - -.gallery-columns-2 .gallery-item { - max-width: 48%; - max-width: -webkit-calc(50% - 14px); - max-width: calc(50% - 14px); - width: auto; -} - -.gallery-columns-3 .gallery-item { - max-width: 32%; - max-width: -webkit-calc(33.3% - 11px); - max-width: calc(33.3% - 11px); - width: auto; -} - -.gallery-columns-4 .gallery-item { - max-width: 23%; - max-width: -webkit-calc(25% - 9px); - max-width: calc(25% - 9px); - width: auto; -} - -.gallery-columns-5 .gallery-item { - max-width: 19%; - max-width: -webkit-calc(20% - 8px); - max-width: calc(20% - 8px); - width: auto; -} - -.gallery-columns-6 .gallery-item { - max-width: 15%; - max-width: -webkit-calc(16.7% - 7px); - max-width: calc(16.7% - 7px); - width: auto; -} - -.gallery-columns-7 .gallery-item { - max-width: 13%; - max-width: -webkit-calc(14.28% - 7px); - max-width: calc(14.28% - 7px); - width: auto; -} - -.gallery-columns-8 .gallery-item { - max-width: 11%; - max-width: -webkit-calc(12.5% - 6px); - max-width: calc(12.5% - 6px); - width: auto; -} - -.gallery-columns-9 .gallery-item { - max-width: 9%; - max-width: -webkit-calc(11.1% - 6px); - max-width: calc(11.1% - 6px); - width: auto; -} - -.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-right: 0; -} - -.gallery-columns-1 .gallery-item:nth-of-type(1n), -.gallery-columns-2 .gallery-item:nth-of-type(2n - 1), -.gallery-columns-3 .gallery-item:nth-of-type(3n - 2), -.gallery-columns-4 .gallery-item:nth-of-type(4n - 3), -.gallery-columns-5 .gallery-item:nth-of-type(5n - 4), -.gallery-columns-6 .gallery-item:nth-of-type(6n - 5), -.gallery-columns-7 .gallery-item:nth-of-type(7n - 6), -.gallery-columns-8 .gallery-item:nth-of-type(8n - 7), -.gallery-columns-9 .gallery-item:nth-of-type(9n - 8) { - margin-left: 12px; /* Compensate for the default negative margin on .gallery, which can't be changed. */ -} - -.gallery .gallery-caption { - background-color: rgba(0, 0, 0, 0.7); - box-sizing: border-box; - color: #fff; - font-size: 14px; - line-height: 1.3; - margin: 0; - max-height: 50%; - opacity: 0; - padding: 2px 8px; - position: absolute; - bottom: 0; - left: 0; - text-align: left; - -webkit-transition: opacity 400ms ease; - transition: opacity 400ms ease; - width: 100%; -} - -.gallery .gallery-caption:before { - box-shadow: 0 -10px 15px #000 inset; - content: ""; - height: 100%; - min-height: 49px; - position: absolute; - left: 0; - top: 0; - width: 100%; -} - -.gallery-item:hover .gallery-caption { - opacity: 1; -} - -.gallery-columns-7 .gallery-caption, -.gallery-columns-8 .gallery-caption, -.gallery-columns-9 .gallery-caption { - display: none; -} - - -/** - * 9.0 Audio/Video - * ---------------------------------------------------------------------------- - */ -.mejs-mediaelement, -.mejs-container .mejs-controls { - background: #220e10; -} - -.mejs-controls .mejs-time-rail .mejs-time-loaded, -.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { - background: #fff; -} - -.mejs-controls .mejs-time-rail .mejs-time-current { - background: #ea9629; -} - -.mejs-controls .mejs-time-rail .mejs-time-total, -.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total { - background: #595959; -} - -.mejs-controls .mejs-time-rail span, -.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total, -.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { - border-radius: 0; -} - - -/** - * 10.0 Post Formats - * ---------------------------------------------------------------------------- - */ - -/* Aside */ -.post-format-aside { - background-color: #f7f5e7; -} - -.post-format-aside blockquote { - font-size: 100%; - font-weight: normal; -} - -.post-format-aside cite { - font-size: 100%; - text-transform: none; -} - -.post-format-aside cite:before { - content: "\2014"; - margin-right: 5px; -} - -/* Audio */ -.post-format-audio { - background-color: #db572f; -} - -.post-format-audio a { - color: #fbfaf3; -} - -.post-format-audio:before { - background: url(../images/dotted-line.png) repeat-y 85px 0; - background-size: 4px 4px; - content: "\f109"; - display: block; - float: left; - font-family: Genericons; - font-size: 64px; - -webkit-font-smoothing: antialiased; - height: 100%; - line-height: 1; - width: 120px; -} - -/* Chat */ -.post-format-chat { - background-color: #eadaa6; -} - -.post-format-chat a { - color: #722d19; -} - -/* Gallery */ -.post-format-gallery { - background-color: #fbca3c; -} - -.post-format-gallery a { - color: #722d19; -} - -/* Image: same as Standard/Defaults */ - -/* Link */ -.post-format-link { - background-color: #f7f5e7; -} - -/* Quote */ -.post-format-quote { - background-color: #210d10; - color: #f7f5e7; -} - -.post-format-quote a { - color: #e63f2a; -} - -.post-format-quote blockquote { - font-size: 28px; - font-style: italic; - font-weight: 300; - margin: 0; - padding-left: 75px; - position: relative; -} - -.post-format-quote blockquote:before { - content: '\201C'; - font-size: 140px; - font-weight: 400; - line-height: .8; - padding-right: 25px; - position: absolute; - left: -15px; - top: -3px; -} - -.post-format-quote blockquote small, -.post-format-quote blockquote cite { - display: block; - font-size: 16px; -} - -.format-quote .entry-content cite a { - border-bottom: 1px dotted #fff; - color: #fff; -} - -.format-quote .entry-content cite a:hover { - text-decoration: none; -} - - -/* Status */ -.post-format-status { - background-color: #722d19; - color: #f7f5e7; - font-style: italic; - font-weight: 300; - padding: 0; - padding-left: 35px; -} - -.post-format-status.mceContentBody { - font-size: 24px; -} - -.post-format-status:before { - background: url(../images/dotted-line.png) repeat-y left bottom; - background-size: 4px 4px; - content: ""; - display: block; - float: left; - height: 100%; - position: relative; - left: -30px; - width: 1px; -} - -.post-format-status > p:first-child:before { - background-color: rgba(0, 0, 0, 0.65); - content: ""; - height: 3px; - width: 13px; - margin-top: 13px; - position: absolute; - left: 9px; -} - -.post-format-status a { - color: #eadaa6; -} - -/* Video */ -.post-format-video { - background-color: #db572f; -} - -.post-format-video a { - color: #fbfaf3; -} - - -/** - * 11.0 RTL - * ---------------------------------------------------------------------------- - */ - -html .mceContentBody.rtl { - direction: rtl; - unicode-bidi: embed; -} - -.rtl ol, -.rtl ul { - padding: 0 40px 0 0; -} - -.rtl .wp-caption, -.rtl tr th { - text-align: right; -} - -.rtl td { - padding: 6px 0 6px 10px; - text-align: right; -} - -.rtl blockquote blockquote { - margin-left: 0; - margin-right: 24px; -} - -.rtl.post-format-audio:before, -.rtl.post-format-status:before, -.rtl.post-format-status > p:first-child:before { - background: none; - content: none; -} diff --git a/wp-content/themes/twentythirteen/css/ie.css b/wp-content/themes/twentythirteen/css/ie.css deleted file mode 100644 index 2ea67d4..0000000 --- a/wp-content/themes/twentythirteen/css/ie.css +++ /dev/null @@ -1,290 +0,0 @@ -/* -Styles for older IE versions (previous to IE9). -*/ - -.site { - min-width: 1040px; -} - -.genericon:before:hover, -.menu-toggle:after:hover, -.date a:before:hover, -.entry-meta .author a:before:hover, -.format-audio .entry-content:before:hover, -.comments-link a:before:hover, -.tags-links a:first-child:before:hover, -.categories-links a:first-child:before:hover, -.edit-link > a:before:hover, -.attachment-meta:before:hover, -.attachment-meta a:before:hover, -.comment-awaiting-moderation:before:hover, -.comment-reply-link:before:hover, -.comment-reply-title small a:before:hover, -.bypostauthor > .comment-body .fn:before:hover { - text-decoration: none; -} - -.nav-menu .sub-menu ul, -.nav-menu .children ul { - left: 100%; -} - -.site-header .home-link { - max-width: 1040px; -} - -.site-header .search-form [type="search"], -.site-header .search-form [type="text"] { - padding-top: 6px; -} - -img.alignright { - margin-right: 0; -} - -img.alignleft { - margin-left: 0; -} - -.site-main .sidebar-inner { - width: 1040px; -} - -.site-main .widget-area { - margin-right: 60px; -} - -.format-image .entry-content .size-full { - margin: 0; - max-width: 604px; -} - -.gallery-columns-1 .gallery-item, -.gallery-columns-2 .gallery-item, -.gallery-columns-3 .gallery-item { - max-width: none; -} - -.gallery img { - width: auto; -} - -.gallery-caption { - background: #000; - filter: alpha(opacity=0); -} - -.gallery-item:hover .gallery-caption { - filter: alpha(opacity=70); -} - -.comment { - clear: both; -} - -.comment-meta, -.comment-content, -.comment-list .reply { - width: 480px; -} - -.depth-2 .comment-meta, -.depth-2 .comment-content, -.comment-list .depth-2 .reply { - width: 460px; -} - -.depth-3 .comment-meta, -.depth-3 .comment-content, -.comment-list .depth-3 .reply { - width: 440px; -} - -.depth-4 .comment-meta, -.depth-4 .comment-content, -.comment-list .depth-4 .reply { - width: 420px; -} - -.depth-5 .comment-meta, -.depth-5 .comment-content, -.comment-list .depth-5 .reply { - width: 400px; -} - -.comment-meta { - margin-bottom: 0; -} - -.widget { - background: #f7f5e7; -} - -.site-footer .widget { - background: none; -} - -/* Internet Explorer 8 */ -.ie8 .site { - border: 0; -} - -.ie8 img.size-full, -.ie8 img.size-large { - height: auto; - width: auto; -} - -.ie8 .sidebar .entry-header, -.ie8 .sidebar .entry-content, -.ie8 .sidebar .entry-summary, -.ie8 .sidebar .entry-meta { - max-width: 724px; -} - -.ie8 .author-info { - margin-left: 0; -} - -.ie8 .paging-navigation .nav-previous .meta-nav { - padding: 5px 0 8px; - width: 40px; -} - -.ie8 .paging-navigation .nav-next { - line-height: 1; -} - -.ie8 .format-status .entry-content:before, -.ie8 .format-status .entry-meta:before { - content: none; -} - -.ie8 .site-main .widget-area { - margin-right: 0; -} - -/* Internet Explorer 7 */ -.ie7 audio, -.ie7 canvas, -.ie7 video { - display: inline; - zoom: 1; -} - -.ie7 legend { - margin-left: -7px; -} - -.ie7 button, -.ie7 input, -.ie7 select, -.ie7 textarea { - vertical-align: middle; -} - -.ie7 button, -.ie7 input[type="button"], -.ie7 input[type="reset"], -.ie7 input[type="submit"] { - overflow: visible; -} - -.ie7 input[type="checkbox"], -.ie7 input[type="radio"] { - height: 13px; - width: 13px; -} - -.ie7 .screen-reader-text { - clip: rect(1px 1px 1px 1px); /* IE7 */ -} - -.ie7 .site-header { - position: relative; - z-index: 1; -} - -.ie7 .main-navigation { - max-width: 930px; - padding-right: 150px; -} - -.ie7 .nav-menu li a, -.ie7 .nav-menu li { - display: block; - float: left; -} - -.ie7 .nav-menu ul { - top: 40px; -} - -.ie7 .nav-menu .sub-menu, -.ie7 .nav-menu .children { - display: none; - overflow: visible; -} - -.ie7 ul.nav-menu li:hover > ul, -.ie7 .nav-menu ul li:hover > ul { - display: block; -} - -.ie7 .site-header .search-form [type="search"], -.ie7 .site-header .search-form [type="text"] { - background-color: #fff; - border: 2px solid #c3c0ab; - cursor: text; - height: 28px; - outline: 0; - width: 150px; -} - -.ie7 .entry-header, -.ie7 .entry-content, -.ie7 .entry-summary, -.ie7 .entry-meta { - width: 604px; -} - -.ie7 .format-status .entry-content, -.ie7 .format-status .entry-meta { - padding-left: 60px; -} - -.ie7 .sidebar .format-status .entry-content, -.ie7 .sidebar .format-status .entry-meta { - padding-left: 60px; -} - -.ie7 .sidebar .post-navigation .nav-links, -.ie7 .sidebar .paging-navigation .nav-links { - width: 604px; -} - -.ie7 .paging-navigation .meta-nav { - padding: 0 0 10px; - vertical-align: middle; - width: 40px; -} - -.ie7 .comments-title, -.ie7 .comment-list, -.ie7 .comment-reply-title, -.ie7 .comment-respond .comment-form { - width: 604px; -} - -.ie7 .site-footer .widget-area { - max-width: none; - left: auto; -} - -/* RTL for Internet Explorer 7 & 8 */ -.rtl .format-audio .entry-content:before, -.rtl .comment-reply-link:before, -.rtl .comment-reply-login:before { - -ms-filter: "FlipH"; - filter: FlipH; -} \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.eot b/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.eot deleted file mode 100644 index defbbe5..0000000 Binary files a/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.eot and /dev/null differ diff --git a/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.svg b/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.svg deleted file mode 100644 index 32ff53b..0000000 --- a/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.svg +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.ttf b/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.ttf deleted file mode 100644 index a21dcb6..0000000 Binary files a/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.ttf and /dev/null differ diff --git a/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.woff b/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.woff deleted file mode 100644 index b57e62c..0000000 Binary files a/wp-content/themes/twentythirteen/fonts/genericons-regular-webfont.woff and /dev/null differ diff --git a/wp-content/themes/twentythirteen/fonts/genericons.css b/wp-content/themes/twentythirteen/fonts/genericons.css deleted file mode 100644 index 2fde399..0000000 --- a/wp-content/themes/twentythirteen/fonts/genericons.css +++ /dev/null @@ -1,157 +0,0 @@ -/** - - Genericons Helper CSS - -*/ - - -/** - * The font was graciously generated by Font Squirrel (http://www.fontsquirrel.com). We love those guys. - */ -@font-face { - font-family: 'Genericons'; - src: url('genericons-regular-webfont.eot'); -} - -@font-face { - font-family: 'Genericons'; - src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAC98ABEAAAAATZgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABgAAAABwAAAAcaBk2X0dERUYAAAGcAAAAHQAAACAAjwAET1MvMgAAAbwAAABCAAAAYFFfaIFjbWFwAAACAAAAAIcAAAGayK6UdGN2dCAAAAKIAAAABgAAAAYAfwEJZnBnbQAAApAAAAGxAAACZVO0L6dnYXNwAAAERAAAAAgAAAAI//8AA2dseWYAAARMAAAmfwAAPpi5AaxsaGVhZAAAKswAAAArAAAANgMOxuZoaGVhAAAq+AAAABwAAAAkEAMH3WhtdHgAACsUAAAAcAAAAM5JOTFAbG9jYQAAK4QAAADGAAAAxk3HPlxtYXhwAAAsTAAAACAAAAAgAYoBJW5hbWUAACxsAAABZgAAAwhJCWWYcG9zdAAALdQAAAFwAAAD3pfLCKFwcmVwAAAvRAAAAC4AAAAusPIrFHdlYmYAAC90AAAABgAAAAYLT1HIAAAAAQAAAADMPaLPAAAAAM3t18IAAAAAze27zXjaY2BkYGDgA2IJBhBgYmAEwkQgZgHzGAAIdQCUAAAAeNpjYGZ/zziBgZWBhdWY5QwDA8NMCM10hsEIzAdKYQeh3uF+DA4PGL4ys6X9S2Ng4GBg0AAKMyIpUWBgBACF8guRAAB42mNgYGBmgGAZBkYGEJgC5DGC+SwMFUBaikEAKML1gOEj5yfOT2KfOb5wfpH8ovnF8ovnl5CvzP//MzAA5Rg+MXwS+MzwheGLwBfFLwZfHL4EfGX4/1+BmZ+Fj4+Pg1eeR4NHiUeaR5SHn4eTOw5qFw7AyMYAV8DIBCSY0BUwDHsAAB/OIGwAAAABCQB/AAB42l1Ru05bQRDdDQ8DgcTYIDnaFLOZkMZ7oQUJxNWNYmQ7heUIaTdykYtxAR9AgUQN2q8ZoKGkSJsGIRdIfEI+IRIza4iiNDs7s3POmTNLypGqd+lrz1PnJJDC3QbNNv1OSLWzAPek6+uNjLSDB1psZvTKdfv+Cwab0ZQ7agDlPW8pDxlNO4FatKf+0fwKhvv8H/M7GLQ00/TUOgnpIQTmm3FLg+8ZzbrLD/qC1eFiMDCkmKbiLj+mUv63NOdqy7C1kdG8gzMR+ck0QFNrbQSa/tQh1fNxFEuQy6axNpiYsv4kE8GFyXRVU7XM+NrBXbKz6GCDKs2BB9jDVnkMHg4PJhTStyTKLA0R9mKrxAgRkxwKOeXcyf6kQPlIEsa8SUo744a1BsaR18CgNk+z/zybTW1vHcL4WRzBd78ZSzr4yIbaGBFiO2IpgAlEQkZV+YYaz70sBuRS+89AlIDl8Y9/nQi07thEPJe1dQ4xVgh6ftvc8suKu1a5zotCd2+qaqjSKc37Xs6+xwOeHgvDQWPBm8/7/kqB+jwsrjRoDgRDejd6/6K16oirvBc+sifTv7FaAAAAAAAAAf//AAJ42q17CXgb5bX2d2ak0WJbmtFqy5YsyVqc2LESrXYWRyQsSRxCICFrgRCWNC4FwlYopUxZmrCFXrhNKaQkpC3Q5aczckLa5nJxKf17KYjlwc3llrZ/0+dpWVp66b2UQmJN/nO+kRyFpKX3ea5tzfLNaPyd853lPcswYE0/sxiTBCYwiVlVJjIba2Fu5mVB9kmmsYwGVc2S0eScZq1qSlazZzRfTnNUNX9Wa81obVXQ2jOa5WCF2Vuz2axmq1ZsFmffWNkmOmjb4ujTbLLugz4tWNVdnmy24gvSdZ/s6NM7oI/NnAWFmP9kHwGnU2PAjjJBrakWVlMF9SieC0xVoelj1PdMALxqw1+kwcsWMM2Z0dxVzYsTxHn6kJiDOGOtTdYVnI+tqvuhT1faFM+YxeEUE8EhpnvdeAaSjeHZzFlM9iSiFo8sWKIJ5gtki/lUHNiLcCHsgQtffNHYZZxv7ILsjokdOybETPPgiy8KO2l0B7HYwlRQbaqkcu76WZjdxHmLcwtntI4qTU2sjjlFn71Pa6lqdpxtpGm2QZxtZ1XrlHUPHklVvRvn3QaKR7c7h4a0oKIJQ1onUiH63DhvzaNoVqSlI6x49rYieUCDPqUiWKWhISTLqyS9MW9MISZ7ZJbLMpn1xAW5GA3IUlRF/vK/D5GrZbD94IcgGYd/+IOtB8B54IDxPqgi8fsom2SW6O4NxleN7caHYIOrwFar33KA0ywwe7NMLSSadXtrLkdC5ciSXKFQtWVBkzMaO6hZssgFTZR1O3A2SFmtRdZb8cRdpRVjNHOcdf2Tww/y1cDpGLjHncDo1NwazLw0qTIGNCQR/wU8UfDUgl+wokDRNTpUUWbaWJ6B5uJTwXlZq2MOK8MFcVZJjhxV3Y1cdzLFg9zWrQ7ci0MkvXlkm98n2RSrMoBPOwTDh+7dcpRtudeq7jp0aNfnnu2tvakKD/Q+i/KJEmxr8ISBNwa4DIBzF5Cd9Z2gktTTh4lwqyBaa9JNXB/72HKmKRnizLQMygNo/VxGbFXSsCSyqbuqz8A5Jm2Kp+wULS7FF2jvjMW5YE9roUEmtrn8wfZIrM+U7/x8CNokXzcEsvwongEHBMFbKmZxzOeGdKmYz0Aq7ga4dWTb+m2p1LrUaBIPRiZG1oMMo+uMHQNb6WRkZNu6rfXLwnsTI1vXbUuO4mkKD0bwXje/V1hKJ3g/PqJ+mdGqsHEbrYGH9bB+psUymjen+askGK05rr2JjNZ+UAtXiVCmW2RkfwdS0IHsz8WyAb/ik3pioPTEU1CKZYsFxRzrw+XevcHCNuxGSS0bZXXDbpG08fHXaEQ1yiQJ/CJujTKM7zY2qK89DuqxEVqHhvxYUY7D7Iy6ZeRaam9oqRdXoKOum3a0Ik637CfF8yp6IDyESwAoO09KjtY2j7eDsx+lGKeXLObTpQigBAWHIZ+iY7/PhQqF/5TLcwE5Vpgzp7DujLPOOmP9mosGVswWGYn0EfyMEO+Ld++8u7jujAMvHzhj/dq3b1n96D1zyO6Qnc/bUQvZJvYppl2S0c6vatNJ60D7JJfzYlUrynonkJTrm3HmRZxjZeTM5WgntE7lSavsn3vquRu5BJ1/CRoceSNemK6UW5zeMOvtz5cXr7qAiLR69sYTyZlZTpeS97BELmthHr/MrFKqkC8W8ulhC22EVHoAXIItlZZsA6IbpKDk90XEoGRzwQCkByzp6eCCQDBiCUZsxZKPVCudYHvACze+/ArcCJ49xg3G84k4nHbmDeqq0mbJaXd7LW25uReVrrvzzutKG4czTufsmZtLq9QblhZau+avWR0VHOF4MWxp7XAoIdERDsXbQGzzdCeK884ZgHjCeN64wcJehs/hw/cYfzJuf8XQa3/YZOvusDx79i1zHN2LRp+46pEt7t5FF8wCweKZlYwJQiw5S5EE4b6brt511ROji6L2zLo2FwyWLG09ne2CrSXkQdq6B2OiPdTR3RFwis7s9Zb2qLRJCNDa2GjD18bNOrnUz0a5Ws6uYZU2xvq0VJUca3dVGzTX62yu6zKqhKyfheu1IEsm6RxcsrNQF8pt1tY2S6CrO9E7ozBnEV+v9hRpvIN5pw/PLy9YvpSWqVvZa4eu8Bw6HvRUYplTuUNoB1ywKK6XjKYRXZ3o8wSLrJRKt6IBCCRKQlpiEIhlS4IoMW/AO2wppRI9cQkiQrBoCQppl+CNAH7HU0p8g1YKduLH+41vGO8YtxsX4+edxDWX3QTffUMuG783tvw1+gy8d+c9Y88YfwblNVi070Dse782tr1/6c+k3WfetXna5439P4iqsDwQTkvfhqWfDX3xjCf/utI1e3145wvtxh/F7InP/wb+X2HxY8ZL11eheOZMdVW2/UuBRQMQev9c48CRB8eXQz/ctsR4xbr5UeNRYXZ0eEHi8/fJtSvDuZWtMakTwmNDF4waezofMH72lctg5fhAXX/G7cxWZlnGlEAuWkIJDeSyuJuHIjoAhXwpYLGSfOeygWCxJNnogyLrhFboiWazkPzdHf/e298zVPin8VWbV10y9DA8A0LL+0+s3TVn++cyd3zu2pWfFzb+zHjTuP43xiNwk7RX2HOzzR1+4wHrTOvs71+2ZeMzb7bNyjzx/unDnSM7VrhzN69LeB83njCe/9N2mp/KEFfYVJZmpzIykWgs41XNlSU/Ec1pgaoWMsWnF7HaQQJwCN0cMmIxLYj4I6dPQwEKIkTQQkPcvTZbUwWd0zyyr8FSqifuEsLQQ043nlJ3jFrZ6I4do8bvwdVq/L5vwaPSss3n37em3zBq/aM7yLfS5SO4FX4KlvHWuSX4L2fp/GtP/aMxWRsiUISekqnWN3DunWwZt6dBjgv82QoDAoisA6EjemN7VWtFiNCV0UIHNSFLcEnJVjpCdE9H0NFXCXXQYYghngybeBJnmR8WcEm6QUQpDVtiIhKjCOqv85d+59Ol0VDI9qOlOVjsMn5ijIvPQQaEZXdeXpZE0fh9+TRRcLxkvDK5X1xMKmqd4rEbkdsqdj7i4u1Ma8toa6taNKOnCohnuqr69Ayi35Umszc36eo81NWzs9ql1cq8S2me85YiWZfK+kYcRwUeRf7PIwV2kAJ7A6vXX8CVN7qWlBrsDubz9gwuOv+CjZeSznYpewP9i5deTMcrPfq0WaS9HtlTRO0NoPZKqL0p0l6QvNlctjgfigHJJtnAK6LZLQYD5lgEzMFhoZAno+vgEhwknbYACXgqLULRg/YaZdmmbn8XlsJlsPTd7dvfNfYa/2zsfTd/+AVDPf32cDB5WU/c73X5+mdBSrvpXJ/b57v9rNSnenpkL7jlvlnQs7xD8QXbfYLXKkutVrsoLhsS7Zcbbz30svE1OOvKa+78gih8AFv3/8dG6zxxyUf+Dx4Jwh+NGy+2hHeCyyqI0B0XrcLkVwQF1tiEeBScNOjtCAg4+jC0njX0idjA2kLcEnF2trS7AorPObQKLrni2cNfjQ1IVuGx2vZRuPr1l8Z6p2990MTmU+t7GlvLLmE7mbY6o/XmtMVVkj+EpAsRbuU0X7Wy0EdLuDCCS9iBMnmpuc7ZOgSL45KGsloCLXe2Ek/QrfFBlMpNuMY2ROtjouv09bRycaXstLZEpvUtGFm56kK+3otXo99lfaejOdZFFx7bBgbJBy9U9oMc60nM+cRG7lq9Ci0PuUwIxqWeuFgwNTYMMaVHiflNWEzaiy4XXa0dr5f4Ya4Ui0viMATRt1qDtK6oyd5UMYhPCkgoHepN1Ug4GuqOeBZ793/FVPGjjEdcCPdR2a3W8+4Ve9wJb1hR7ANL965bsXtr7ZGbf3fa0C/UlUu8qxJzw2GbDWp7z912iv/eG294KuBXb7zpOfg9/O5mcd5QbG4yDBbpFLIMPH7gj57E/9IVuPeJTwmh1i6l09fud+ZPn3PP/i37Z27fePjr524G6Gib0zErPqsjnJTtl1iKj/yHxfK7r+8et1heZoTNECRJy6Qga8UoJs3OZeQ3oxhHZBDTcMPHGhiZoj5PVUtmNY8JelBvyQDaEPTobS5kfacHTWGU9K8dYyfZnUylTaTmC8wBRJUDgPYEIycE7kq+NAy5rB/Znefm0VaIgXr2KbBwhbB8wcJzZLBhWPRVsNvl03K3g/2xO7JnD8Zl4wPr9tlnnTV77pnLjuwXOybfgAMzvL2DY8Ya+On3nmzvT3VceZxMdrEoK1G8iBYH0W+sD83MTB44RaMHFa2Y07wYq8haCGkd5LSGq2R6wrIeQQpjVS1mSmZfVeuT9X7T7Awh1ZEwN/taTNHbgyhqcY9WGNL6FH1mkdBqFC/rvQUzXmx2C4iw/zFuTLkJ8gPA/gHWNDuOHZbrP45PwL6DQGo5YqhT2HdZJUC4yZ3RplWJQxIyZAFnSKGqFWS9CylH3xiXKUbCIEpfiLti6IfDLe8uYf4+p0vrQC6O6z74UEuNj3l8KW9fBbfRO6N39kiokkNsr8fXEUoN0A80HWvlEOhdBVTa4NA8Utq4UpECM+lohkd3TyNuzpyG+t/CuodNLUb3RAA54PH7BAvGLGkB7XE6VfLWsQQPACSy1miEGfHT70NFtRFKTqeE75zx5Veg7wkNMi9c823j33560ffii+X4eV+2hff03nPpijXJea7gDZdc+4OLjLc/uOudr61Z4bHZZIetJ3DzrZY/fvqXLz58wQ3PGUfuft+47tB5ZePXQzfeX3zsRkE7+zN3HfjUObn7nhm66Evfh1lPHgTXRY+9fv39F/tD7fN622VHDqyNuMLErqvY7aziIr4j1Fic0QarWrfpA1dz1idR22Q9h5xeWtWWyvrpeDSnqs2R9ZAZc6xBQVyaQ970ZVasJNt4urLfZfV2D54iL6fTOR49MJ8YGHBR9LESeboYow+Hk3lDyWm5OfOXfyTiIATbE08XSwhITfYNCMg/0e8LBANFFNJSMZVGLnN8QGxG7pfID6LUollFyIBLETw+4DBjgvvvXRJe1LV9+Z7anec/+tft9/zXtz47NLrJE7YIsmi1uk49Qx3f8tyh5TvOP+cib8usyBkLz7latju2eNslRKlPHBdfGOfj5097pl+zCUKFkf0w/9+umvj6xjO/8OjY2jtfnW53eR1lhzegLPvshZWtZ7/+xD//9cvXLh94+LrpC1Y/sKXvbK/XSK648M7rYZJR7Lxb2GDbYN2NEYWb9TJu93Jk8FxmYgXMbIasO5DjbY1EikcORItyKmqp73e/B2vee894XLi7fmD5rvH4e/VjvufrjnbbdjOGLglWYFoLZSE0f0ZTcL2TCIUoMu9sQatiG9L8SoVJXtIBXFy5O9pjCn4QpduLUYMnlwXm9SQTIg6gWJMrS4mkBZK68gbfJ8725fO+y75Wg8vhwlbZ+KNx122nlbfJ9iu3DC6e68vPemWt9nnrRZetNA4tfurpRcYh+Hf4MYiw3t5qrAg/8AlNA/cyWAwZr/2BLZQwrOffFOZjHgY0aZROT1UP1NNKUwYOBSIWHwCrA9RDuyxs16FN+icn2Sf1TYJKWUgKvCmrY9DQJr2dvA8DeI2pUi/a6zhGcpojgwYYtJ6M1nWQOBTI6glijUw5ozbyJjnFx90uuvJiSUHa0ySTCoHUHkJmiM1e+7+h0G0XnHfT5evXXP/FO5bO7VcU+Lax6qgyY+biJZ+y7KnddcOCU66Kdgd8gxBak+iYMfAgvAAd8JO71p43r9xznA/pYX1sDruF+xD0FpGMlq5qHRktntMy6BUoPapZZFRe0OZyxpjQNYoCYyrwtKkEJKUiczz0nEeZpihSFB/SpiljkXA/jyo7KS/D9I40LntnNNlLYxlFT0w7mSPB8D7HkzUxVEV0dBhPxRJ1iUyaTgYDkFQfoGoe503UkYKVFUaMd2VjwlhjTMjGu8Azb4eMZ4TukYJaGOGb4xzKKA2KbMHwhDEB/RPDC7qNZw7Rlxp3jxTQrAEup41JBkpKEGOTbuReGvk3gLE5aBnOHj9KvUzJay3C4V4vbqfcykzkS4cfqQ+0d0WJ+oSyV7IShguSPxiLJ6f3E+SjOCVfgmI2CMQPG5AYQGo+pL2gJMVgUhGDJTxOWxVryQHBArCw8K9KryL8azhcW6D4PN7agvBt3/xmQbAav33jDYg89tbbby8QrG8Yv4XIG7Uj8OVvigF4tbsdXm1pMWa0dxszogGjv6UFJgI7L7/ceNx4HPJPw+CDT0Ou9vTOnTtrcVjz0NNC19MPwpra05f/EhlBeTkmUV7Oz5qScd4MZfRNEk5IvyFUtJjRIeXbRneIqCL8FLeUT9uBz1UFJqkS5el7eOyHUanEobaAT2/N6G2kLw7GTQnPkwUR2ooIYYEUDh9SU1W1LI4fRXVESUckibpp5v8lmq8F0WA7owoFZelQ7J0H8em6i0/agXAFjqXzSaVrlEkbHRkZFfHUwFNLgc5GpnJ/NsrTdLMkO49rkZ9n7snPpbiFVTAoNRWmp6r1mLKBOpJGWYgqKAttFl8YF13v6FE8+1r91q5EksP+MArKPoryYslGweG4UM7jiwjZYQF9WNwFFNdSWvCKp8AKEbA+dcUVTxlHjN8aR55S1j/087d//tB6cwffVGH6OlH/yE14JDiO3YU7Yyf8wlhvHFyPfoTnyHFVGLKdRfiqoFlQzBqPJ6O1HKQ0vPcjy87yxWzAJ8UFdmgXoGWsMV4MwVXiZvIoE3eYZZBjfGxBrepnn25UQPooy1Xp66ZwqS+NkRXCd6GqWx1ZXg6woRebwbWutaq1yrqAnDX9GRmlRLUyjQItNi2M30QllDjjNYeZjkV1HKhPOFbI+flHgYbRQZePIZHfki+ioeEiHEcj3BMnKUJjjyQcYWgwuGGY5MYkFVJDqVQ+hYAPDQuKIKVgGV0X+F3r8qlUyGB4T6gpb1ynuci+0qC5kNHyOUrunUhr6aS0nkDWYB28drx7K4FXLT/g0nLjer/woTZjnFX6Z+QIpI7hPj8FUSUrCltXKt07bToXvoIb9Ssz9LHcycXmCOitwqLPJiL8HICS9+8zCVATxUBMFFRpRijUZbvsib/NLyEaFAQQrE5kW5cN7wedtR7Ht4YFzrAcRkJz2Hy2kO1vcLIroydm5nK8MDALuRjNVHrzc3M4EkPRKMyjmmR/Rh8s48gMjHtOwfMTmX5qE9MxTtCFKF7rruqWOO1lct96bz8ep6v69AHay9zO5wfxOFfVi7NpL+tzcUwq4/H8qm5fQPupBTvtY+XQi6Mifhr7v3X8tzivnuTn5Gwn4wmm1TyhiNo8TjDfrKkSjhDRAjJeHcJAV8mBn+w9r8YabBwVvszLV8a4StYdx0Q8KgNaU9UYN5qeRalvLwtT1g89SpDWkFtSs+Jp+taQaT+plhIiX2q1uGTynw5Fa0HJDVL5x0XpsDFgLY56LWtYyEYwTrIB96UDcKy0Caxu8q6A/1QN5avfv/bnDyWPVTYtI3WreO33v2ooKvznFesfEsRjZU3GTF0+NvcYu7Qx+wjP0tdpiJ9IQ0+dhn1EQyR6Eioiyhjzt3Tw/LxHcxBZFQj5eGb+71ElUp3871O2VVA/jjjDXOjj6ZvGxproS3Jb1ZOtRLiVjvQ6+irdETrsjqHZrdM+vYn2XqQ9SuqixbOVdC/dmk7it3rTdNhLCbT0FIf6SLuQQ5plSEsrlWCXTGFDyKNbXUP/m8yi1Jif0mQfxzQe56AS/AOsm8pjmXV+Bv12Jk2wNl7T6SMpwSjJU6VgIF33dbxhwqzehg82AexYvXobRllpUcT2CEeM05S9Toun2yzipgk+2Fz+rhj1J1CuJhwlwhUg1BB0AIGGtIh+P1tEzEghra1R1vc0AM/hS6AF+qHlYjhiSJcYf0EE/ZeL/wBXnfmT155dCtca9zz8m8t+MmKpo+ldHBZZGBzedPXVlxpWw7rpqqs3wWHjnmUrVpwJ18DVj5yzrPaOefMhoQGbmHWKF9RN0om8yLEyIyFBDjhMDuQzeoGAXvd0xVORu5QhvtxlJ7O5g6FwMjWDyomaxVORPN6hBp25bNDGCYOgG41RGnjqGlLeEqVLSpAuERt64l6g0mGPSe+OH33z3k1XIlnG3e9uS66zsnWTMw7t6i8a/a4QXSDC/7wNrucM2fGjC2DChZdNqi+4d+CcZfS91+l7tRW7DrmM/mJt/70DRP+ftxrbiCewESaK/bsOMbO2Iagch7agxRQIvTvA5qBWg7LBrWIZbSLfGOMiO/6c31Ov7fAcCz7D64Cph6hieXIcN2JZnRznm8lxBLHHnfN7GrlRwnQtaLFmsNsYZWcIxQWz2YqbK7PbhWqp+DvIUfKitu5Mcp/JdXoAIT/hPs0t6zLKKEaP3kY3jxaUMf6lwFDPoNzKiCYqQryHMthBH+UOMeTT2hXUUab3U7OK4KA1hEKyDh6tfkK0zb9mVMhMx8jdIgHJkQIQsGCTrO7VyIPRACENwlpHWYjcHI/i1BoTxmvl5g+OW9x5wm20NmjnIhjTfBlxLnozEf8g1kKjv9wPr8Pr++GXtX379lpuNp6svQVLjb1CEBYLwdrb3H+ZcQv1AbhYL8aD7owmHdRcVc0l6y1mRgvZpLdQBt9iB+QFxRsCLptXcQAP8KkHRCB/S9YDf4+iBbHwDid8OI6qZtXf4Fu0KeRheQwm4YxdiM0ZFCBYAn8Sn0geIAlo0ITy+LhQPsygauQkCmdyUBVYDpBbhpqrCpcaVajmcgYO5Wq87sFlY1wax39u57lzBorDUoIS6RR9VAzcxidJMMnCzdggrNhgnElb/Oa4qBrlST57XCB+rdZG23rMiE/Gp0Y5ShNRjhzcN2AE5iR9FymwkzjwJJ44iACTLdTiJSCYqPEQr6YSikY5rucytiIjfCxBnV22jO4KI6ZDAGfn4aM/owV4Ggr/kW73owibyNmNq2KuD6XDESamzPxXPW4RFd6mEMsL6VQCTxB6hhDZ5J3A+kE1Y5d34UmY9y/GYzdf9xnjxcf+G16GO2DkjS8Yj33yAFrPHxt3QIDfJ47A2n8xfmQs+vO3If+Zz9wsXARrv/CWsde41hh47ydwA8yHtgObOT1+pOcPtgHkO6U9zEhV5n1g7UhELEMZe5xlMVWCYQgEIYCK0YhYRdoTakTMuOyqNcIHQw89NFv465qrHvvwD8Kd3FzX/9QXtlt+ft7Checd6dv+AuzjYyYOhHq2g/O2nhsLoIUosBFG/rwXcTH5LdCKGS1zkDBuCeU6l0Es5unqtXFv1NuFy9g+pNnIZDvb/MHuWN/MPG9AI1c9c5YXtZiXBYKBbKmYT1O9wGJDQoKUm02UUB3ilNGm/Ffc1nBQKnxpxmnO2Eu3PXhNanMqmVzz1i3PGM+MGM/DA8m1b97yDAyPQMG40rxn55bUaOrHfJ0srDT9pj1XpVKp0eTaiye+W3vB3AMfvzqZguvrHXm8H4z3fKWpspKiYgEVyj3ViofXlT1+BCitVEZqFJDMxrQu3otGxvCYCbTzoJ/XkdzIkIo1lCI/5lP01m5qzkPv1ZGkEbuit0Qpld3qIWMI3BiS0QtEG8upmEubq4eivLNMIQlBQE2tdVfuvhKtmIo7OjM+JCgilslh3H7gwO2CuvzKK5fXw89njbl0JjC6UlN/QJjFxOAq3CcRznPhig8wLWBa+mBTzdpn4jI07rpPJpIsraYlqwMsn4QGLdVIIYNaR1Nrlxubjc3LH6s3AU6hp7dfXW6Mwo7laJveP0AXTR+5gXyk9Tdk2sjoBKFH2KD+BsYpFLFE1XGBbaAeOHKFdpqv2UcYaepKtdaVfyplRP1gxxoE7ewDZn6g3kV6bEs5KBH/v0Xl2lh/JiWLLBnd2ojV0FhbyAzSF6bsP02Y5tLbyJHYzCyT3WxipFQqPYGsnWPqQUmqkuHDJhm1JFLSapKCOMKMK4SynVn/Hz7Ry1HjLYzSLShc+PQubuG6MVCVSUZjWa0TPbLZDic1J/aPpSRN+YybgDLZSEa2Kp4WSkDFyUt3RbppPXUxiFfsbn87T9wqYw6Xz2xM8+JqEFAu5ochGwGfC+Kphno66tdWwLVXGn+B+9XxVfc/cf8q2kzf8vCWLQ/DnsYVsSzsGja60ZWxzfVbVq2CIbppi6FOXWuKPWy8G+oTZN+pz9HN89UdGZ4W7Gqkpu1ZElI/UthKVp66PnSZSriCDbGHFcnVRYnoc7fgoZXhYIcXjyx1lQPqujupOSU3JPLGUeo7bjalwtQ4zvhkltRhYq1677GJ/hvZige4pLTyXq5QThuikgBl2uM5bV6VcsjljDY9p51S1VK8cyfDe5ZdOSSb+mSLpoY2JymQ+DFB6UokgtQQU4lScgKPZMoL6XMpAzGnOuZwDy+gG+bIpBz1JIQ+ZxBZkc0NmRnoWB2LcQnt8ccKPQ3PKHxk72lCZd7mTu3jEJqoEpBRUxxuNf2ta8Jq66COboDnJ4h/R1DlEcFNPspvh9Rxu1/w3WRTgsKsRSEuohxyJ8swst6oKN5sReQGXHRQ97mI2JbLDVo2MtbVeoOQhzJ+ZqU1SO6JmiFyRCSSpu4YtdkO3P7F8zMHrtp1KBisVw8EdBzhntsPbLjkxkO7hheYjd1kS9GL2Cy8P5c6i9Op/Hwzpe9zgwvSCP4pY/1TWLLkrZGJJRDB/ZJXRowh2A1sN/X8QpSuToy8tWSJ8duRV0feWiwsMobEl4+y3TyoBMpIWymcspHts3E6RdPc1Et7DTvTyMWKZg62kXnltg5etb5j/T9oCkNTvauOjInGqC1Vs3JkHqMwI81No/Gt1fCO4V0Nq6nbe/Uqw2t4V8FqtNteeFVS+bNQ6EsQw2+lcfCd1ca3yLbB6tXiOL+XvsZz/WWJ5k8RIUUx1O8M42jna+MWRKdlfsTvI39Qpvs4YqYvChgTlY2yiPi2hpHRuFGeqj+LOEn0iwqr4Akus5hBBSc2YJQomo3fgNYdp/k37kMrQMbdbBFvYHuryl+F8PA6KsWoCDTtZtWAp1s4Sj2CcxSYWQ4kYZTpxKpK7Lj3J06Wufw+cb8iR2fmeBd8RYnNIsW1ZCq+RJ7GrNWKP1mgMXum0t47SGOOaqVj2hCNtWYqXf08u9lWrYRnUHYTyHiwgxht8PcvxGpFcrr4EY/YKr72LjrzViuBUIQf8TpFJWGajJ5qJUUZzSxVLWbieH5wbpYnNSvF2cN4pJ9Sf0fjWCLyo4nJf+RcYOrf/xHU41/qqLH/2TkXCYHXf3ithmzwfF6rQc3v5Oi6/h5IV1OJU2nk1amtsCPDXUkHZZp8QydUt+IpanVpuA2B7RgVzDIX1SPNN1W4ryDnTuPU2bQDRkU22VxLMucnoS6n2K0ca8erhECd1YozRabLaUfsacIRXq6ttHlpuM1NtizN+83dWXopoS1LbU5OM/Bsr2rtMtUiExlKvulRJ/WbWSXBrEBqFnSHzMkVXQM61dro/QUzI41xJAJR9AExf0/heJITU2Uy87UKjPeIVLWZ+HrpzMJ4oHiU8XcvuGpMsWFXIy3EcxKM5/apztTBFvG3dDw5CtL8KM0hXqsz62lSC9U/KlaJGGAFR19FstIhRsJ9BHw8LbzjvtOU0JiP2RBppRgtG1EQq+/JyRi/+tVR9ivjV3yN+MaivmE8MsP4b2ibARfAJtOPk08y9xzvYdxp+phuXK2VrJKiTpdIRuvINbxN5KPeBlcodhAXgq9CIoa+tiVFWCSSQuAVjSUoEhCVSidPlPxdV0TZgriV7zASHZWkj3glesfFUEdhFDi+RUCF1j4abfZRPDtJG5OeYz4zTv3CUU5IBNUjW4lEeWaXExJBQrSobJJIfQxm+0IkisQEGZ+/DoGPnT2VWbk/PXHmfLoE/QzTs3501qakUU2ynm9xoEW+jnsuK0f+qBz87bNKaxvNu1Um1nunXt1pLpjJHBNXZDfdKLc6+ii84bWwiuD0ULaK92VQjtlCg3ZzsBVwUDEVxEaLUFIc5OsofUzTUimSwBUQUsY6PKj9QjCxD3Dxf11I0vGjtV807JKZh7MwJ2tDSapTYuco12n6Y1fT9OtvQLWYhFjMd49a7PzdI01StFacLT8VhzSnYjaV0MskSVNccmnySICeTeSMFtjzz3MtwBFV4Gmb5+v4xdRFBa3l6Yzwtp/arUkLpVyTtcTYQ+IWx1sdc0r0VlQ7z2M7TfTtbEfRCHQMHTOaSk9cogYOP9qQIiHHVL5E2TzqDaCEXKE8abZxiOhjJl8smEbzCFkSlaxF6b4S721iu20bbBswTi3S+qOdzFYJD7urvFIqHtRmVrWZsp6n1lteFdVnilRSt9pbp80g25dXxuREG29DCXn2Kf72ru4enr3IokLuC7NYopfehdKKyhhY27vo0O3ZJznbZG/QjIVKKOCldMlaLImlIGK7UlAMBJNBavO3BW1Jyea1pal3w5b2ptLWhn/Y/abd/uZsmJWZ67/ruYXywufuDgzmYNZsPmy81D8/gMMO+8Ln7vIP5oyXhBRHa8IfGoNzMye7mR5ivDS7/mwcF5x1kCce9+4jX03z7cfQlNeDRvQQNN9+pJULYmC4j95+VHycKyE3cU+yMY//hDcgvT6Wy5ZA8kKRNyWe8CZkFvontn6udtqimnBgkTExse2EdyKzE8bEIuHA5yFXO+3GbRPQf8K8L2ekxxgluXmUhDTYGr0hddzaxT1EK++6FrIVp417TXIJTpkch82MDTsoUOQ02tDv6S4vtaIputtD4aCfe0Lz3VNqX/VTYUiu4+dEfU92yIKqMkkYse7b9/GdRDVSinMs7PDzTVEia+6jICzYxRp5ATOBZDE5fywvwN9LoDCAmcEQQcsjZn6ETeUaIsfnJxqPqzYlKkh/zKxCvc6KWs3nIPF+N1v9S3UsS9/wmllXJMH8vyawbfqucOy7IlmAqe8CfwvTfKvVfI2yxp9Qf8+SNb9nyRrvWYrAX3qyN7DZKfX3nP730Bk0obNjTUiTvPeYGFOHKYTA6MJhE55Z2eGpmpXI/T3N0cRnN7FKF83xf4jQbE0I7W/AswSK5F7BKlm6udadFJl5G8gsVv89OTJrvO+qmlQePY5y4aPQrIbrbHBPYDZlHW5GZ1Rzonhp/KTxUo5qT+P0O1k2YzA8tfO3N3GeNMovmzjDUua1K4HXrvi4nU2W8SpYyvW6lkDxo2LBQfp8oLL/D/oHFeoAeNpjYGRgYGBi8vVdNXdGPL/NVwZ5DgYQOPt29zlkmoOBA0IxgSgAVvoK5QB42mNgZGDgYPh/A0QyMPz/DySBIiiAFQBj/AP1eNpNTrENgDAMc0IHdsQ//MADnGKJRzrDQxzCxEScFolUtWIncYIHGX4AdgMjHAYQdDiNtkO8BZ2qmPAMXpNd8aPHEjX9f+mdM72D6T7L3+gbpBCrKuoapE6poQR6c2S/SFlte9qm71pdV5YXStwa2gAAAAAAAAAAAAgAbAC4ATIBeAGGAbwB1AJIApgC9APCBJQE5AVCBZYGhgdmB9AIZAkgCeYKHAp4CqgK8guODBQMQAxsDJYNCg06DbQOUA8WDzwPmhAKEKwRMhGwEdIR9BJ+EpwS1hMCEy4TWBPAFAYUgBT+FUIVVhWCFZwVxhZIFqoXYhekF9YX+BgeGDYYShhgGHQYihioGWwZvBo+GpQa/BtUG7gcBBxUHOodRh2uHdId8B4OHiweOh6MHwwfIh8wHz4fTAAAAAEAAABiAGkAEAAAAAAAAgABAAIAFgAAAQAAuAAAAAB42o1Ru04CQRQ9s6AJMbEwxMJqEym0YFnUNbpWFGiCSohG6UzALIuRfQgr4C/4ZfoDln6EpZVnZodIWAoymZlzzz33NQNgA+/IQeQLAL65UyxQpJViA5v40TgHV8w0eZSEq/EapuJB43XyXxoXsCN+Nd5CyShq/IFt40TjT9hGExdo4QomxvAwxAhPiBDSPuCOyJjo0H7jPSBKlCqrnhAl6BP1FJMQeZjikWdMa6bboybhiuGiwjVRy4JP7ytvWdEnP2CEjA1Zw+OukI3Jlpm/gxcqZZ6AzC7OdcV6pt4+p5M5ZK8yX6Ty3dD2WU3OM+ScFmyuU5zhDpdoo0m0LK68ELlMYy5o7jOv+l+thVsy0ppn+1QmOt+Y/qryWXBwTG/ArM/MKTU9svKdujre4l3FIU9npf4b5D3VVY3egPxIvXa40mRtWt253077vNZzNqhL5z1SMzr8b5u9udTZirdlr3+3BnfZAAB42m3Rx1JVQRSF4fNfA+Ys5ixGxNO7d3PBhAmMmCPGcubEma/pKxm4P4zsqlNrdL5aq3Y36Jbf719ddP973/5+dAMGrGEt61jPGBvYyCY2s4WtbGM7O9jJLnazh72Ms4/9HOAghzjMEY5yjOOc4CSnOM0EZzjLOc5zgYtMcokpLtNTCCpJY5ohM8xyhatc4zo3mOMmt7jNHe4yzwL3uM8DHvKIxyzyhKc84zkveMkrXvOGt7zjPUt84COf+MwXvo79/PF9vu/7f7lQVrOYYVYzzWZOm0NzxpxdztALvdALvdALvdALvdCLFa/oFb2iV/SKXtErI6/ao9qj2qPao9qj2qP2K/8NzVGP1Emd1Emd1Emd1EmdXHVGe9I96Z50T7on3ZPuSfdk0St6RS90Qid0Qid0Qid0Qid0qr2qXtWrelWv6lW9qlf1ql7qpV7qpV7qpV7qpV7qpV7Ta3pNr+m1kde8V/NezXu1vv4BRRflZLgB/4WwAY0AS7AIUFixAQGOWbFGBitYIbAQWUuwFFJYIbCAWR2wBitcWFmwFCsAAAABUcgLTgAA) format('woff'), - url('genericons-regular-webfont.ttf') format('truetype'), - url('genericons-regular-webfont.svg#genericonsregular') format('svg'); - font-weight: normal; - font-style: normal; -} - - -/** - * All Genericons. - */ -[class*="genericon"] { - display: inline-block; - width: 16px; - height: 16px; - -webkit-font-smoothing: antialiased; - font-size: 16px; - line-height: 1; - font-family: 'Genericons'; - text-decoration: inherit; - font-weight: normal; - font-style: normal; - vertical-align: top; -} - -/* IE7 */ -[class*="genericon"] { - *overflow: auto; - *zoom: 1; - *display: inline; -} - -/** - * Individual icons. - */ - -/* Post formats */ -.genericon-standard:before { content: '\f100'; } -.genericon-aside:before { content: '\f101'; } -.genericon-image:before { content: '\f102'; } -.genericon-gallery:before { content: '\f103'; } -.genericon-video:before { content: '\f104'; } -.genericon-status:before { content: '\f105'; } -.genericon-quote:before { content: '\f106'; } -.genericon-link:before { content: '\f107'; } -.genericon-chat:before { content: '\f108'; } -.genericon-audio:before { content: '\f109'; } - -/* Social icons */ -.genericon-github:before { content: '\f200'; } -.genericon-dribbble:before { content: '\f201'; } -.genericon-twitter:before { content: '\f202'; } -.genericon-facebook:before { content: '\f203'; } -.genericon-facebook-alt:before { content: '\f204'; } -.genericon-wordpress:before { content: '\f205'; } -.genericon-googleplus:before { content: '\f206'; } -.genericon-linkedin:before { content: '\f207'; } -.genericon-linkedin-alt:before { content: '\f208'; } -.genericon-pinterest:before { content: '\f209'; } -.genericon-pinterest-alt:before { content: '\f210'; } -.genericon-flickr:before { content: '\f211'; } -.genericon-vimeo:before { content: '\f212'; } -.genericon-youtube:before { content: '\f213'; } -.genericon-tumblr:before { content: '\f214'; } -.genericon-instagram:before { content: '\f215'; } -.genericon-codepen:before { content: '\f216'; } - -/* Meta icons */ -.genericon-comment:before { content: '\f300'; } -.genericon-category:before { content: '\f301'; } -.genericon-tag:before { content: '\f302'; } -.genericon-time:before { content: '\f303'; } -.genericon-user:before { content: '\f304'; } -.genericon-day:before { content: '\f305'; } -.genericon-week:before { content: '\f306'; } -.genericon-month:before { content: '\f307'; } -.genericon-pinned:before { content: '\f308'; } - -/* Other icons */ -.genericon-search:before { content: '\f400'; } -.genericon-unzoom:before { content: '\f401'; } -.genericon-zoom:before { content: '\f402'; } -.genericon-show:before { content: '\f403'; } -.genericon-hide:before { content: '\f404'; } -.genericon-close:before { content: '\f405'; } -.genericon-close-alt:before { content: '\f406'; } -.genericon-trash:before { content: '\f407'; } -.genericon-star:before { content: '\f408'; } -.genericon-home:before { content: '\f409'; } -.genericon-mail:before { content: '\f410'; } -.genericon-edit:before { content: '\f411'; } -.genericon-reply:before { content: '\f412'; } -.genericon-feed:before { content: '\f413'; } -.genericon-warning:before { content: '\f414'; } -.genericon-share:before { content: '\f415'; } -.genericon-attachment:before { content: '\f416'; } -.genericon-location:before { content: '\f417'; } -.genericon-checkmark:before { content: '\f418'; } -.genericon-menu:before { content: '\f419'; } -.genericon-top:before { content: '\f420'; } -.genericon-minimize:before { content: '\f421'; } -.genericon-maximize:before { content: '\f422'; } -.genericon-404:before { content: '\f423'; } -.genericon-spam:before { content: '\f424'; } -.genericon-summary:before { content: '\f425'; } -.genericon-cloud:before { content: '\f426'; } -.genericon-key:before { content: '\f427'; } -.genericon-dot:before { content: '\f428'; } -.genericon-next:before { content: '\f429'; } -.genericon-previous:before { content: '\f430'; } -.genericon-expand:before { content: '\f431'; } -.genericon-collapse:before { content: '\f432'; } -.genericon-dropdown:before { content: '\f433'; } -.genericon-dropdown-left:before { content: '\f434'; } -.genericon-top:before { content: '\f435'; } -.genericon-draggable:before { content: '\f436'; } -.genericon-phone:before { content: '\f437'; } -.genericon-send-to-phone:before { content: '\f438'; } -.genericon-plugin:before { content: '\f439'; } -.genericon-cloud-download:before { content: '\f440'; } -.genericon-cloud-upload:before { content: '\f441'; } -.genericon-external:before { content: '\f442'; } -.genericon-document:before { content: '\f443'; } -.genericon-book:before { content: '\f444'; } -.genericon-cog:before { content: '\f445'; } -.genericon-unapprove:before { content: '\f446'; } -.genericon-cart:before { content: '\f447'; } -.genericon-pause:before { content: '\f448'; } -.genericon-stop:before { content: '\f449'; } -.genericon-skip-back:before { content: '\f450'; } -.genericon-skip-ahead:before { content: '\f451'; } -.genericon-play:before { content: '\f452'; } -.genericon-tablet:before { content: '\f453'; } -.genericon-send-to-tablet:before { content: '\f454'; } - -/* Generic shapes */ -.genericon-uparrow:before { content: '\f500'; } -.genericon-rightarrow:before { content: '\f501'; } -.genericon-downarrow:before { content: '\f502'; } -.genericon-leftarrow:before { content: '\f503'; } diff --git a/wp-content/themes/twentythirteen/footer.php b/wp-content/themes/twentythirteen/footer.php deleted file mode 100644 index 725251c..0000000 --- a/wp-content/themes/twentythirteen/footer.php +++ /dev/null @@ -1,26 +0,0 @@ - - - -
      - - -
      - - -
      -
      - - - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php deleted file mode 100644 index 2cfd20f..0000000 --- a/wp-content/themes/twentythirteen/functions.php +++ /dev/null @@ -1,531 +0,0 @@ - for posts and comments. - add_theme_support( 'automatic-feed-links' ); - - /* - * Switches default core markup for search form, comment form, - * and comments to output valid HTML5. - */ - add_theme_support( 'html5', array( - 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' - ) ); - - /* - * This theme supports all available post formats by default. - * See http://codex.wordpress.org/Post_Formats - */ - add_theme_support( 'post-formats', array( - 'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' - ) ); - - // This theme uses wp_nav_menu() in one location. - register_nav_menu( 'primary', __( 'Navigation Menu', 'twentythirteen' ) ); - - /* - * This theme uses a custom image size for featured images, displayed on - * "standard" posts and pages. - */ - add_theme_support( 'post-thumbnails' ); - set_post_thumbnail_size( 604, 270, true ); - - // This theme uses its own gallery styles. - add_filter( 'use_default_gallery_style', '__return_false' ); -} -add_action( 'after_setup_theme', 'twentythirteen_setup' ); - -/** - * Return the Google font stylesheet URL, if available. - * - * The use of Source Sans Pro and Bitter by default is localized. For languages - * that use characters not supported by the font, the font can be disabled. - * - * @since Twenty Thirteen 1.0 - * - * @return string Font stylesheet or empty string if disabled. - */ -function twentythirteen_fonts_url() { - $fonts_url = ''; - - /* Translators: If there are characters in your language that are not - * supported by Source Sans Pro, translate this to 'off'. Do not translate - * into your own language. - */ - $source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' ); - - /* Translators: If there are characters in your language that are not - * supported by Bitter, translate this to 'off'. Do not translate into your - * own language. - */ - $bitter = _x( 'on', 'Bitter font: on or off', 'twentythirteen' ); - - if ( 'off' !== $source_sans_pro || 'off' !== $bitter ) { - $font_families = array(); - - if ( 'off' !== $source_sans_pro ) - $font_families[] = 'Source Sans Pro:300,400,700,300italic,400italic,700italic'; - - if ( 'off' !== $bitter ) - $font_families[] = 'Bitter:400,700'; - - $query_args = array( - 'family' => urlencode( implode( '|', $font_families ) ), - 'subset' => urlencode( 'latin,latin-ext' ), - ); - $fonts_url = add_query_arg( $query_args, "//fonts.googleapis.com/css" ); - } - - return $fonts_url; -} - -/** - * Enqueue scripts and styles for the front end. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_scripts_styles() { - /* - * Adds JavaScript to pages with the comment form to support - * sites with threaded comments (when in use). - */ - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) - wp_enqueue_script( 'comment-reply' ); - - // Adds Masonry to handle vertical alignment of footer widgets. - if ( is_active_sidebar( 'sidebar-1' ) ) - wp_enqueue_script( 'jquery-masonry' ); - - // Loads JavaScript file with functionality specific to Twenty Thirteen. - wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '2014-03-18', true ); - - // Add Source Sans Pro and Bitter fonts, used in the main stylesheet. - wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); - - // Add Genericons font, used in the main stylesheet. - wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '2.09' ); - - // Loads our main stylesheet. - wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' ); - - // Loads the Internet Explorer specific stylesheet. - wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '2013-07-18' ); - wp_style_add_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' ); -} -add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' ); - -/** - * Filter the page title. - * - * Creates a nicely formatted and more specific title element text for output - * in head of document, based on current view. - * - * @since Twenty Thirteen 1.0 - * - * @param string $title Default title text for current view. - * @param string $sep Optional separator. - * @return string The filtered title. - */ -function twentythirteen_wp_title( $title, $sep ) { - global $paged, $page; - - if ( is_feed() ) - return $title; - - // Add the site name. - $title .= get_bloginfo( 'name', 'display' ); - - // Add the site description for the home/front page. - $site_description = get_bloginfo( 'description', 'display' ); - if ( $site_description && ( is_home() || is_front_page() ) ) - $title = "$title $sep $site_description"; - - // Add a page number if necessary. - if ( $paged >= 2 || $page >= 2 ) - $title = "$title $sep " . sprintf( __( 'Page %s', 'twentythirteen' ), max( $paged, $page ) ); - - return $title; -} -add_filter( 'wp_title', 'twentythirteen_wp_title', 10, 2 ); - -/** - * Register two widget areas. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_widgets_init() { - register_sidebar( array( - 'name' => __( 'Main Widget Area', 'twentythirteen' ), - 'id' => 'sidebar-1', - 'description' => __( 'Appears in the footer section of the site.', 'twentythirteen' ), - 'before_widget' => '', - 'before_title' => '

      ', - 'after_title' => '

      ', - ) ); - - register_sidebar( array( - 'name' => __( 'Secondary Widget Area', 'twentythirteen' ), - 'id' => 'sidebar-2', - 'description' => __( 'Appears on posts and pages in the sidebar.', 'twentythirteen' ), - 'before_widget' => '', - 'before_title' => '

      ', - 'after_title' => '

      ', - ) ); -} -add_action( 'widgets_init', 'twentythirteen_widgets_init' ); - -if ( ! function_exists( 'twentythirteen_paging_nav' ) ) : -/** - * Display navigation to next/previous set of posts when applicable. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_paging_nav() { - global $wp_query; - - // Don't print empty markup if there's only one page. - if ( $wp_query->max_num_pages < 2 ) - return; - ?> - - post_parent ) : get_adjacent_post( false, '', true ); - $next = get_adjacent_post( false, '', false ); - - if ( ! $next && ! $previous ) - return; - ?> - - ' . __( 'Sticky', 'twentythirteen' ) . ''; - - if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) - twentythirteen_entry_date(); - - // Translators: used between list items, there is a space after the comma. - $categories_list = get_the_category_list( __( ', ', 'twentythirteen' ) ); - if ( $categories_list ) { - echo '' . $categories_list . ''; - } - - // Translators: used between list items, there is a space after the comma. - $tag_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) ); - if ( $tag_list ) { - echo '' . $tag_list . ''; - } - - // Post author - if ( 'post' == get_post_type() ) { - printf( '', - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), - esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ), - get_the_author() - ); - } -} -endif; - -if ( ! function_exists( 'twentythirteen_entry_date' ) ) : -/** - * Print HTML with date information for current post. - * - * Create your own twentythirteen_entry_date() to override in a child theme. - * - * @since Twenty Thirteen 1.0 - * - * @param boolean $echo (optional) Whether to echo the date. Default true. - * @return string The HTML-formatted post date. - */ -function twentythirteen_entry_date( $echo = true ) { - if ( has_post_format( array( 'chat', 'status' ) ) ) - $format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' ); - else - $format_prefix = '%2$s'; - - $date = sprintf( '', - esc_url( get_permalink() ), - esc_attr( sprintf( __( 'Permalink to %s', 'twentythirteen' ), the_title_attribute( 'echo=0' ) ) ), - esc_attr( get_the_date( 'c' ) ), - esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) ) - ); - - if ( $echo ) - echo $date; - - return $date; -} -endif; - -if ( ! function_exists( 'twentythirteen_the_attached_image' ) ) : -/** - * Print the attached image with a link to the next attached image. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_the_attached_image() { - /** - * Filter the image attachment size to use. - * - * @since Twenty thirteen 1.0 - * - * @param array $size { - * @type int The attachment height in pixels. - * @type int The attachment width in pixels. - * } - */ - $attachment_size = apply_filters( 'twentythirteen_attachment_size', array( 724, 724 ) ); - $next_attachment_url = wp_get_attachment_url(); - $post = get_post(); - - /* - * Grab the IDs of all the image attachments in a gallery so we can get the URL - * of the next adjacent image in a gallery, or the first image (if we're - * looking at the last image in a gallery), or, in a gallery of one, just the - * link to that image file. - */ - $attachment_ids = get_posts( array( - 'post_parent' => $post->post_parent, - 'fields' => 'ids', - 'numberposts' => -1, - 'post_status' => 'inherit', - 'post_type' => 'attachment', - 'post_mime_type' => 'image', - 'order' => 'ASC', - 'orderby' => 'menu_order ID' - ) ); - - // If there is more than 1 attachment in a gallery... - if ( count( $attachment_ids ) > 1 ) { - foreach ( $attachment_ids as $attachment_id ) { - if ( $attachment_id == $post->ID ) { - $next_id = current( $attachment_ids ); - break; - } - } - - // get the URL of the next image attachment... - if ( $next_id ) - $next_attachment_url = get_attachment_link( $next_id ); - - // or get the URL of the first image attachment. - else - $next_attachment_url = get_attachment_link( array_shift( $attachment_ids ) ); - } - - printf( '%3$s', - esc_url( $next_attachment_url ), - the_title_attribute( array( 'echo' => false ) ), - wp_get_attachment_image( $post->ID, $attachment_size ) - ); -} -endif; - -/** - * Return the post URL. - * - * @uses get_url_in_content() to get the URL in the post meta (if it exists) or - * the first link found in the post content. - * - * Falls back to the post permalink if no URL is found in the post. - * - * @since Twenty Thirteen 1.0 - * - * @return string The Link format URL. - */ -function twentythirteen_get_link_url() { - $content = get_the_content(); - $has_url = get_url_in_content( $content ); - - return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() ); -} - -/** - * Extend the default WordPress body classes. - * - * Adds body classes to denote: - * 1. Single or multiple authors. - * 2. Active widgets in the sidebar to change the layout and spacing. - * 3. When avatars are disabled in discussion settings. - * - * @since Twenty Thirteen 1.0 - * - * @param array $classes A list of existing body class values. - * @return array The filtered body class list. - */ -function twentythirteen_body_class( $classes ) { - if ( ! is_multi_author() ) - $classes[] = 'single-author'; - - if ( is_active_sidebar( 'sidebar-2' ) && ! is_attachment() && ! is_404() ) - $classes[] = 'sidebar'; - - if ( ! get_option( 'show_avatars' ) ) - $classes[] = 'no-avatars'; - - return $classes; -} -add_filter( 'body_class', 'twentythirteen_body_class' ); - -/** - * Adjust content_width value for video post formats and attachment templates. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_content_width() { - global $content_width; - - if ( is_attachment() ) - $content_width = 724; - elseif ( has_post_format( 'audio' ) ) - $content_width = 484; -} -add_action( 'template_redirect', 'twentythirteen_content_width' ); - -/** - * Add postMessage support for site title and description for the Customizer. - * - * @since Twenty Thirteen 1.0 - * - * @param WP_Customize_Manager $wp_customize Customizer object. - */ -function twentythirteen_customize_register( $wp_customize ) { - $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; - $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; - $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; -} -add_action( 'customize_register', 'twentythirteen_customize_register' ); - -/** - * Enqueue Javascript postMessage handlers for the Customizer. - * - * Binds JavaScript handlers to make the Customizer preview - * reload changes asynchronously. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_customize_preview_js() { - wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20130226', true ); -} -add_action( 'customize_preview_init', 'twentythirteen_customize_preview_js' ); diff --git a/wp-content/themes/twentythirteen/header.php b/wp-content/themes/twentythirteen/header.php deleted file mode 100644 index e19703c..0000000 --- a/wp-content/themes/twentythirteen/header.php +++ /dev/null @@ -1,51 +0,0 @@ - section and everything up till
      - * - * @package WordPress - * @subpackage Twenty_Thirteen - * @since Twenty Thirteen 1.0 - */ -?> - - - -> - - - - - <?php wp_title( '|', true, 'right' ); ?> - - - - - - -> -
      - - -
      diff --git a/wp-content/themes/twentythirteen/image.php b/wp-content/themes/twentythirteen/image.php deleted file mode 100644 index b2d86bf..0000000 --- a/wp-content/themes/twentythirteen/image.php +++ /dev/null @@ -1,82 +0,0 @@ - - -
      -
      -
      > -
      -

      - - -
      - -
      - - -
      -
      - - - -
      - -
      - -
      -
      - - post_content ) ) : ?> -
      - - '' ) ); ?> -
      - - -
      -
      - - - -
      -
      - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/images/dotted-line-2x.png b/wp-content/themes/twentythirteen/images/dotted-line-2x.png deleted file mode 100644 index 07f6c93..0000000 Binary files a/wp-content/themes/twentythirteen/images/dotted-line-2x.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/dotted-line-light-2x.png b/wp-content/themes/twentythirteen/images/dotted-line-light-2x.png deleted file mode 100644 index 059d4ec..0000000 Binary files a/wp-content/themes/twentythirteen/images/dotted-line-light-2x.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/dotted-line-light.png b/wp-content/themes/twentythirteen/images/dotted-line-light.png deleted file mode 100644 index b7f82cd..0000000 Binary files a/wp-content/themes/twentythirteen/images/dotted-line-light.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/dotted-line.png b/wp-content/themes/twentythirteen/images/dotted-line.png deleted file mode 100644 index 115b583..0000000 Binary files a/wp-content/themes/twentythirteen/images/dotted-line.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/circle-thumbnail.png b/wp-content/themes/twentythirteen/images/headers/circle-thumbnail.png deleted file mode 100644 index 2f9344c..0000000 Binary files a/wp-content/themes/twentythirteen/images/headers/circle-thumbnail.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/circle.png b/wp-content/themes/twentythirteen/images/headers/circle.png deleted file mode 100644 index 0bd9401..0000000 Binary files a/wp-content/themes/twentythirteen/images/headers/circle.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/diamond-thumbnail.png b/wp-content/themes/twentythirteen/images/headers/diamond-thumbnail.png deleted file mode 100644 index 82777a0..0000000 Binary files a/wp-content/themes/twentythirteen/images/headers/diamond-thumbnail.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/diamond.png b/wp-content/themes/twentythirteen/images/headers/diamond.png deleted file mode 100644 index a14de61..0000000 Binary files a/wp-content/themes/twentythirteen/images/headers/diamond.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/star-thumbnail.png b/wp-content/themes/twentythirteen/images/headers/star-thumbnail.png deleted file mode 100644 index 693bb76..0000000 Binary files a/wp-content/themes/twentythirteen/images/headers/star-thumbnail.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/star.png b/wp-content/themes/twentythirteen/images/headers/star.png deleted file mode 100644 index 24ca626..0000000 Binary files a/wp-content/themes/twentythirteen/images/headers/star.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/search-icon-2x.png b/wp-content/themes/twentythirteen/images/search-icon-2x.png deleted file mode 100644 index 02b63b8..0000000 Binary files a/wp-content/themes/twentythirteen/images/search-icon-2x.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/search-icon.png b/wp-content/themes/twentythirteen/images/search-icon.png deleted file mode 100644 index 11d8dc8..0000000 Binary files a/wp-content/themes/twentythirteen/images/search-icon.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/inc/back-compat.php b/wp-content/themes/twentythirteen/inc/back-compat.php deleted file mode 100644 index 329bcaa..0000000 --- a/wp-content/themes/twentythirteen/inc/back-compat.php +++ /dev/null @@ -1,63 +0,0 @@ -

      %s

      ', $message ); -} - -/** - * Prevent the Theme Customizer from being loaded on WordPress versions prior to 3.6. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_customize() { - wp_die( sprintf( __( 'Twenty Thirteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentythirteen' ), $GLOBALS['wp_version'] ), '', array( - 'back_link' => true, - ) ); -} -add_action( 'load-customize.php', 'twentythirteen_customize' ); - -/** - * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_preview() { - if ( isset( $_GET['preview'] ) ) { - wp_die( sprintf( __( 'Twenty Thirteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentythirteen' ), $GLOBALS['wp_version'] ) ); - } -} -add_action( 'template_redirect', 'twentythirteen_preview' ); diff --git a/wp-content/themes/twentythirteen/inc/custom-header.php b/wp-content/themes/twentythirteen/inc/custom-header.php deleted file mode 100644 index 2fabe5b..0000000 --- a/wp-content/themes/twentythirteen/inc/custom-header.php +++ /dev/null @@ -1,217 +0,0 @@ - '220e10', - 'default-image' => '%s/images/headers/circle.png', - - // Set height and width, with a maximum value for the width. - 'height' => 230, - 'width' => 1600, - - // Callbacks for styling the header and the admin preview. - 'wp-head-callback' => 'twentythirteen_header_style', - 'admin-head-callback' => 'twentythirteen_admin_header_style', - 'admin-preview-callback' => 'twentythirteen_admin_header_image', - ); - - add_theme_support( 'custom-header', $args ); - - /* - * Default custom headers packaged with the theme. - * %s is a placeholder for the theme template directory URI. - */ - register_default_headers( array( - 'circle' => array( - 'url' => '%s/images/headers/circle.png', - 'thumbnail_url' => '%s/images/headers/circle-thumbnail.png', - 'description' => _x( 'Circle', 'header image description', 'twentythirteen' ) - ), - 'diamond' => array( - 'url' => '%s/images/headers/diamond.png', - 'thumbnail_url' => '%s/images/headers/diamond-thumbnail.png', - 'description' => _x( 'Diamond', 'header image description', 'twentythirteen' ) - ), - 'star' => array( - 'url' => '%s/images/headers/star.png', - 'thumbnail_url' => '%s/images/headers/star-thumbnail.png', - 'description' => _x( 'Star', 'header image description', 'twentythirteen' ) - ), - ) ); -} -add_action( 'after_setup_theme', 'twentythirteen_custom_header_setup', 11 ); - -/** - * Load our special font CSS files. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_custom_header_fonts() { - // Add Source Sans Pro and Bitter fonts. - wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); - - // Add Genericons font. - wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '2.09' ); -} -add_action( 'admin_print_styles-appearance_page_custom-header', 'twentythirteen_custom_header_fonts' ); - -/** - * Style the header text displayed on the blog. - * - * get_header_textcolor() options: Hide text (returns 'blank'), or any hex value. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_header_style() { - $header_image = get_header_image(); - $text_color = get_header_textcolor(); - - // If no custom options for text are set, let's bail. - if ( empty( $header_image ) && $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) - return; - - // If we get this far, we have custom styles. - ?> - - Header admin panel. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_admin_header_style() { - $header_image = get_header_image(); -?> - - Header admin panel. - * - * This callback overrides the default markup displayed there. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_admin_header_image() { - ?> - - - -
      -
      - - - - - - - - - - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/js/functions.js b/wp-content/themes/twentythirteen/js/functions.js deleted file mode 100644 index 78c8c84..0000000 --- a/wp-content/themes/twentythirteen/js/functions.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Functionality specific to Twenty Thirteen. - * - * Provides helper functions to enhance the theme experience. - */ - -( function( $ ) { - var body = $( 'body' ), - _window = $( window ); - - /** - * Adds a top margin to the footer if the sidebar widget area is higher - * than the rest of the page, to help the footer always visually clear - * the sidebar. - */ - $( function() { - if ( body.is( '.sidebar' ) ) { - var sidebar = $( '#secondary .widget-area' ), - secondary = ( 0 === sidebar.length ) ? -40 : sidebar.height(), - margin = $( '#tertiary .widget-area' ).height() - $( '#content' ).height() - secondary; - - if ( margin > 0 && _window.innerWidth() > 999 ) { - $( '#colophon' ).css( 'margin-top', margin + 'px' ); - } - } - } ); - - /** - * Enables menu toggle for small screens. - */ - ( function() { - var nav = $( '#site-navigation' ), button, menu; - if ( ! nav ) { - return; - } - - button = nav.find( '.menu-toggle' ); - if ( ! button ) { - return; - } - - // Hide button if menu is missing or empty. - menu = nav.find( '.nav-menu' ); - if ( ! menu || ! menu.children().length ) { - button.hide(); - return; - } - - button.on( 'click.twentythirteen', function() { - nav.toggleClass( 'toggled-on' ); - } ); - - // Better focus for hidden submenu items for accessibility. - menu.find( 'a' ).on( 'focus.twentythirteen blur.twentythirteen', function() { - $( this ).parents( '.menu-item, .page_item' ).toggleClass( 'focus' ); - } ); - } )(); - - /** - * Makes "skip to content" link work correctly in IE9 and Chrome for better - * accessibility. - * - * @link http://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/ - */ - _window.on( 'hashchange.twentythirteen', function() { - var element = document.getElementById( location.hash.substring( 1 ) ); - - if ( element ) { - if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) { - element.tabIndex = -1; - } - - element.focus(); - } - } ); - - /** - * Arranges footer widgets vertically. - */ - if ( $.isFunction( $.fn.masonry ) ) { - var columnWidth = body.is( '.sidebar' ) ? 228 : 245; - - $( '#secondary .widget-area' ).masonry( { - itemSelector: '.widget', - columnWidth: columnWidth, - gutterWidth: 20, - isRTL: body.is( '.rtl' ) - } ); - } -} )( jQuery ); \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/js/html5.js b/wp-content/themes/twentythirteen/js/html5.js deleted file mode 100644 index 6168aac..0000000 --- a/wp-content/themes/twentythirteen/js/html5.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); -a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; -c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| -"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f); -if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d\n" -"Language-Team: LANGUAGE \n" - -#: 404.php:16 -msgid "Not Found" -msgstr "" - -#: 404.php:21 -msgid "This is somewhat embarrassing, isn’t it?" -msgstr "" - -#: 404.php:22 -msgid "It looks like nothing was found at this location. Maybe try a search?" -msgstr "" - -#: archive.php:29 -msgid "Daily Archives: %s" -msgstr "" - -#: archive.php:31 -msgid "Monthly Archives: %s" -msgstr "" - -#: archive.php:31 -msgctxt "monthly archives date format" -msgid "F Y" -msgstr "" - -#: archive.php:33 -msgid "Yearly Archives: %s" -msgstr "" - -#: archive.php:33 -msgctxt "yearly archives date format" -msgid "Y" -msgstr "" - -#: archive.php:35 -msgid "Archives" -msgstr "" - -#: author-bio.php:26 -msgid "About %s" -msgstr "" - -#: author-bio.php:30 -msgid "View all posts by %s " -msgstr "" - -#: author.php:31 -msgid "All posts by %s" -msgstr "" - -#: category.php:19 -msgid "Category Archives: %s" -msgstr "" - -#: comments.php:25 -msgctxt "comments title" -msgid "One thought on “%2$s”" -msgid_plural "%1$s thoughts on “%2$s”" -msgstr[0] "" -msgstr[1] "" - -#: comments.php:45 -msgid "Comment navigation" -msgstr "" - -#: comments.php:46 -msgid "← Older Comments" -msgstr "" - -#: comments.php:47 -msgid "Newer Comments →" -msgstr "" - -#: comments.php:52 -msgid "Comments are closed." -msgstr "" - -#: content-aside.php:13 content-audio.php:24 content-gallery.php:24 -#: content-image.php:23 content-link.php:24 content-quote.php:13 -#: content-status.php:13 content-video.php:23 content.php:41 -msgid "Continue reading " -msgstr "" - -#: content-aside.php:14 content-audio.php:25 content-chat.php:24 -#: content-gallery.php:25 content-image.php:24 content-link.php:25 -#: content-quote.php:14 content-status.php:14 content-video.php:24 -#: content.php:42 image.php:70 page.php:35 -msgid "Pages:" -msgstr "" - -#: content-aside.php:20 content-aside.php:28 content-audio.php:31 -#: content-chat.php:29 content-gallery.php:39 content-image.php:35 -#: content-link.php:19 content-quote.php:25 content-status.php:19 -#: content-video.php:35 content.php:31 image.php:44 page.php:39 -msgid "Edit" -msgstr "" - -#: content-gallery.php:36 content-image.php:32 content-quote.php:22 -#: content-video.php:32 content.php:49 -msgid "Leave a comment" -msgstr "" - -#: content-gallery.php:36 content-image.php:32 content-quote.php:22 -#: content-video.php:32 content.php:49 -msgid "One comment so far" -msgstr "" - -#: content-gallery.php:36 content-image.php:32 content-quote.php:22 -#: content-video.php:32 content.php:49 -msgid "View all % comments" -msgstr "" - -#: content-none.php:12 -msgid "Nothing Found" -msgstr "" - -#: content-none.php:18 -msgid "" -"Ready to publish your first post? Get started here." -msgstr "" - -#: content-none.php:22 -msgid "" -"Sorry, but nothing matched your search terms. Please try again with " -"different keywords." -msgstr "" - -#: content-none.php:27 -msgid "" -"It seems we can’t find what you’re looking for. Perhaps " -"searching can help." -msgstr "" - -#. #-#-#-#-# twentythirteen.pot (Twenty Thirteen 1.1) #-#-#-#-# -#. Author URI of the plugin/theme -#: footer.php:19 -msgid "http://wordpress.org/" -msgstr "" - -#: footer.php:19 -msgid "Semantic Personal Publishing Platform" -msgstr "" - -#: footer.php:19 -msgid "Proudly powered by %s" -msgstr "" - -#: functions.php:97 -msgid "Navigation Menu" -msgstr "" - -#. Translators: If there are characters in your language that are not -#. * supported by Source Sans Pro, translate this to 'off'. Do not translate -#. * into your own language. -#: functions.php:128 -msgctxt "Source Sans Pro font: on or off" -msgid "on" -msgstr "" - -#. Translators: If there are characters in your language that are not -#. * supported by Bitter, translate this to 'off'. Do not translate into your -#. * own language. -#: functions.php:134 -msgctxt "Bitter font: on or off" -msgid "on" -msgstr "" - -#: functions.php:218 -msgid "Page %s" -msgstr "" - -#: functions.php:231 -msgid "Main Widget Area" -msgstr "" - -#: functions.php:233 -msgid "Appears in the footer section of the site." -msgstr "" - -#: functions.php:241 -msgid "Secondary Widget Area" -msgstr "" - -#: functions.php:243 -msgid "Appears on posts and pages in the sidebar." -msgstr "" - -#: functions.php:266 -msgid "Posts navigation" -msgstr "" - -#: functions.php:270 -msgid " Older posts" -msgstr "" - -#: functions.php:274 -msgid "Newer posts " -msgstr "" - -#: functions.php:300 -msgid "Post navigation" -msgstr "" - -#: functions.php:303 -msgctxt "Previous post link" -msgid " %title" -msgstr "" - -#: functions.php:304 -msgctxt "Next post link" -msgid "%title " -msgstr "" - -#: functions.php:322 -msgid "Sticky" -msgstr "" - -#. Translators: used between list items, there is a space after the comma. -#: functions.php:328 functions.php:334 -msgid ", " -msgstr "" - -#: functions.php:343 -msgid "View all posts by %s" -msgstr "" - -#: functions.php:363 -msgctxt "1: post format name. 2: date" -msgid "%1$s on %2$s" -msgstr "" - -#: functions.php:369 -msgid "Permalink to %s" -msgstr "" - -#: header.php:43 -msgid "Menu" -msgstr "" - -#: header.php:44 -msgid "Skip to content" -msgstr "" - -#: image.php:22 -msgid "" -"Published on in %5$s" -msgstr "" - -#: image.php:38 -msgid "Link to full-size image" -msgstr "" - -#: image.php:39 -msgid "Full resolution" -msgstr "" - -#: image.php:51 -msgid " Previous" -msgstr "" - -#: image.php:52 -msgid "Next " -msgstr "" - -#: inc/back-compat.php:37 inc/back-compat.php:47 inc/back-compat.php:60 -msgid "" -"Twenty Thirteen requires at least WordPress version 3.6. You are running " -"version %s. Please upgrade and try again." -msgstr "" - -#: inc/custom-header.php:49 -msgctxt "header image description" -msgid "Circle" -msgstr "" - -#: inc/custom-header.php:54 -msgctxt "header image description" -msgid "Diamond" -msgstr "" - -#: inc/custom-header.php:59 -msgctxt "header image description" -msgid "Star" -msgstr "" - -#: search.php:18 -msgid "Search Results for: %s" -msgstr "" - -#: tag.php:21 -msgid "Tag Archives: %s" -msgstr "" - -#: taxonomy-post_format.php:23 -msgid "%s Archives" -msgstr "" - -#. Theme Name of the plugin/theme -msgid "Twenty Thirteen" -msgstr "" - -#. Theme URI of the plugin/theme -msgid "http://wordpress.org/themes/twentythirteen" -msgstr "" - -#. Description of the plugin/theme -msgid "" -"The 2013 theme for WordPress takes us back to the blog, featuring a full " -"range of post formats, each displayed beautifully in their own unique way. " -"Design details abound, starting with a vibrant color scheme and matching " -"header images, beautiful typography and icons, and a flexible layout that " -"looks great on any device, big or small." -msgstr "" - -#. Author of the plugin/theme -msgid "the WordPress team" -msgstr "" diff --git a/wp-content/themes/twentythirteen/page.php b/wp-content/themes/twentythirteen/page.php deleted file mode 100644 index 5545367..0000000 --- a/wp-content/themes/twentythirteen/page.php +++ /dev/null @@ -1,50 +0,0 @@ - - -
      -
      - - - - -
      > -
      - -
      - -
      - - -

      -
      - -
      - - '', 'link_before' => '', 'link_after' => '' ) ); ?> -
      - -
      - ', '' ); ?> -
      -
      - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/rtl.css b/wp-content/themes/twentythirteen/rtl.css deleted file mode 100644 index 5428630..0000000 --- a/wp-content/themes/twentythirteen/rtl.css +++ /dev/null @@ -1,766 +0,0 @@ -/* -Theme Name: Twenty Thirteen -Description: Adds support for languages written in a Right To Left (RTL) direction. -It's easy, just a matter of overwriting all the horizontal positioning attributes -of your CSS stylesheet in a separate stylesheet file named rtl.css. - -See http://codex.wordpress.org/Right_to_Left_Language_Support -*/ - -/** - * Table of Contents: - * - * 1.0 - Reset - * 4.0 - Header - * 4.1 - Site Header - * 4.2 - Navigation - * 5.0 - Content - * 5.2 - Entry Meta - * 5.4 - Galleries - * 5.5 - Post Formats - * 5.6 - Attachments - * 5.7 - Post/Paging Navigation - * 5.8 - Author Bio - * 5.9 - Archives - * 5.10 - Search Results/No posts - * 5.12 - Comments - * 6.0 - Sidebar - * 6.1 - Widgets - * 7.0 - Footer - * 8.0 - Media Queries - * 9.0 - Print - * ---------------------------------------------------------------------------- - */ - - -/** - * 1.0 Reset - * ---------------------------------------------------------------------------- - */ - -body { - direction: rtl; - unicode-bidi: embed; -} - -a { - display: inline-block; -} - -blockquote blockquote { - margin-left: 0; - margin-right: 24px; -} - -menu, -ol, -ul { - padding: 0 40px 0 0; -} - -caption, -th, -td { - text-align: right; -} - -td { - padding-left: 10px; - padding-right: 0; -} - -.assistive-text:focus { - left: auto; - right: 5px; -} - - -/** - * 4.0 Header - * ---------------------------------------------------------------------------- - */ - -/** - * 4.1 Site Header - * ---------------------------------------------------------------------------- - */ - -.site-header > a:first-child { - display: inherit; -} - -.site-description { - font-style: normal; -} - - -/** - * 4.2 Navigation - * ---------------------------------------------------------------------------- - */ - -/* Navbar */ -ul.nav-menu, -div.nav-menu > ul { - margin: 0 -20px 0 0; - padding: 0 0 0 40px; -} - -.nav-menu .sub-menu, -.nav-menu .children { - float: right; - left: auto; - right: -2px; -} - -.nav-menu .sub-menu ul, -.nav-menu .children ul { - border-left: 2px solid #f7f5e7; - border-right: 0; - left: auto; - right: 100%; -} - -.main-navigation .search-form { - left: 0; - right: auto; -} - -.site-header .search-field { - background-position: 98% center; - padding: 0 34px 0 0; -} - -.nav-menu .current_page_item > a, -.nav-menu .current_page_ancestor > a, -.nav-menu .current-menu-item > a, -.nav-menu .current-menu-ancestor > a { - font-style: normal; -} - -.menu-toggle { - padding-left: 0; - padding-right: 20px; -} - - -/** - * 5.0 Content - * ---------------------------------------------------------------------------- - */ - -.sidebar .entry-header, -.sidebar .entry-content, -.sidebar .entry-summary, -.sidebar .entry-meta { - padding-left: 376px; - padding-right: 60px; -} - - -/** - * 5.2 Entry Meta - * ---------------------------------------------------------------------------- - */ - -.entry-meta > span { - margin-left: 20px; - margin-right: auto; -} - -.entry-meta > span:last-child { - margin-left: 0; - margin-right: auto; -} - -.featured-post:before { - margin-left: 2px; - margin-right: auto; -} - -.entry-meta .date a:before { - margin-left: 2px; -} - -.comments-link a:before { - margin-left: 2px; - margin-right: auto; -} - -.tags-links a:first-child:before { - margin-left: 2px; -} - -.edit-link a:before { - margin-left: 2px; -} - -.page-links .page-links-title { - margin-left: 20px; - margin-right: auto; -} - -/** - * 5.4 Galleries - * ---------------------------------------------------------------------------- - */ - -.gallery { - margin-left: auto; - margin-right: -4px; -} - -.gallery-item { - float: right; - margin: 0 0 4px 4px; -} - -.gallery-item a { - display: inline; -} - - -/** - * 5.5 Post Formats - * ---------------------------------------------------------------------------- - */ - -.entry-content a { - display: inline; -} - -.format-aside cite:before { - content: normal; - margin-right: auto; -} - -.format-aside cite:after { - content: "\2014"; - margin-left: 5px; -} - -.format-audio .entry-content:before { - float: right; - -webkit-transform: scaleX(-1); - -moz-transform: scaleX(-1); - -ms-transform: scaleX(-1); - -o-transform: scaleX(-1); - transform: scaleX(-1); -} - -.format-audio .audio-content { - background-position: right top; - float: left; - padding-left: 0; - padding-right: 35px; -} - -.format-chat .entry-meta .date a:before { - margin-left: 4px; - margin-right: auto; -} - -.format-image .wp-caption-text { - text-align: right; -} - -.format-link .entry-title { - margin-left: 20px; - margin-right: auto; -} - -.format-status .entry-content, -.format-status .entry-meta { - padding-left: 0; - padding-right: 35px; -} - -.sidebar .format-status .entry-content, -.sidebar .format-status .entry-meta { - padding-left: 376px; - padding-right: 95px; -} - -.format-status .entry-content:before, -.format-status .entry-meta:before { - left: auto; - right: 10px; -} - -.sidebar .format-status .entry-content:before, -.sidebar .format-status .entry-meta:before { - left: auto; - right: 70px; -} - -.format-status .entry-content p:first-child:before { - left: auto; - right: 4px; -} - -.sidebar .format-status .entry-content p:first-child:before { - left: auto; - right: 64px; -} - -.format-quote blockquote { - padding-left: 0; - padding-right: 75px; -} - -.format-quote blockquote:before { - content: '\201D'; - padding-left: 25px; - padding-right: 0; - left: auto; - right: -15px; -} - - -/** - * 5.6 Attachments - * ---------------------------------------------------------------------------- - */ - -.attachment .entry-title { - float: right; -} - -.attachment .entry-title:before { - margin-left: 10px; - margin-right: auto; -} - -.attachment .entry-meta { - float: left; -} - -.image-navigation .nav-previous { - left: auto; - right: 0; -} - -.image-navigation .nav-next { - left: 0; - right: auto; -} - -.attachment .entry-caption { - text-align: right; -} - - -/** - * 5.7 Post/Paging Navigation - * ---------------------------------------------------------------------------- - */ - -.navigation .nav-previous { - float: right; -} - -.navigation .nav-next { - float: left; -} - -.sidebar .paging-navigation .nav-links, -.sidebar .post-navigation .nav-links { - padding-left: 376px; - padding-right: 60px; -} - -.paging-navigation .nav-previous .meta-nav { - margin-left: 10px; - margin-right: auto; -} - -.paging-navigation .nav-next .meta-nav { - margin-left: auto; - margin-right: 10px; -} - -.post-navigation a[rel="next"] { - float: left; - text-align: left; -} - - -/** - * 5.8 Author Bio - * ---------------------------------------------------------------------------- - */ - -.author-info { - text-align: right; /* gallery & video post formats */ -} - -.author.sidebar .author-info { - padding-left: 376px; - padding-right: 60px; -} - -.author-avatar .avatar { - float: right; - margin: 0 0 30px 30px; -} - -.author-link { - margin-left: auto; - margin-right: 2px; -} - - -/** - * 5.9 Archives - * ---------------------------------------------------------------------------- - */ - -.sidebar .archive-meta { - padding-left: 316px; - padding-right: 0; -} - - -/** - * 5.10 Search Results/No posts - * ---------------------------------------------------------------------------- - */ - -.sidebar .page-content { - padding-left: 376px; - padding-right: 60px; -} - -/** - * 5.12 Comments - * ---------------------------------------------------------------------------- - */ - -.sidebar .comments-title, -.sidebar .comment-list, -.sidebar .comment-reply-title, -.sidebar .comment-navigation, -.sidebar .comment-respond .comment-form { - padding-left: 376px; - padding-right: 60px; -} - -.comment-list .children { - margin-left: auto; - margin-right: 20px; -} - -.comment-author { - float: right; - margin-left: 50px; - margin-right: auto; -} - -.comment-list .edit-link { - margin-left: auto; - margin-right: 20px; -} - -.comment-metadata, -.comment-content, -.comment-list .reply, -.comment-awaiting-moderation { - float: left; -} - -.comment-awaiting-moderation:before { - margin-left: 5px; - margin-right: auto; -} - -.comment-reply-link:before, -.comment-reply-login:before { - margin-left: 3px; - margin-right: auto; - -webkit-transform: scaleX(-1); - -moz-transform: scaleX(-1); - -ms-transform: scaleX(-1); - -o-transform: scaleX(-1); - transform: scaleX(-1); -} - -.comment-reply-title small a { - float: left; -} - -.comment-form [for="author"], -.comment-form [for="email"], -.comment-form [for="url"], -.comment-form [for="comment"] { - float: right; -} - -.form-allowed-tags code { - margin-left: auto; - margin-right: 3px; -} - -.sidebar .no-comments { - padding-left: 376px; - padding-right: 60px; -} - - -/** - * 6.0 Sidebar - * ---------------------------------------------------------------------------- - */ - -.site-main .widget-area { - float: left; -} - -.widget-area a { - max-width: 100%; -} - - -/** - * 6.1 Widgets - * ---------------------------------------------------------------------------- - */ - -.widget .widget-title { - font-style: normal; -} - -.widget li > ul, -.widget li > ol { - margin-left: auto; - margin-right: 20px; -} - -/** - * 7.0 Footer - * ---------------------------------------------------------------------------- - */ - -.site-footer .widget-area, -.sidebar .site-footer { - text-align: right; -} -.sidebar .site-footer .widget-area { - left: auto; - right: -158px; -} - -.site-footer .widget { - float: right; - margin-left: 20px; - margin-right: auto; -} - -.sidebar .site-footer .widget:nth-of-type(4), -.sidebar .site-footer .widget:nth-of-type(3) { - margin-left: 0; - margin-right: auto; -} - - -/** - * 8.0 Media Queries - * ---------------------------------------------------------------------------- - */ - -@media (max-width: 1069px) { - ul.nav-menu, - div.nav-menu > ul { - margin-left: auto; - margin-right: 0; - } - - .error404 .page-header, - .sidebar .format-image .entry-content img.size-full, - .sidebar .format-image .wp-caption:first-child .wp-caption-text { - margin-right: auto; - } - - .main-navigation .search-form { - left: 20px; - right: auto; - } - - .site-main .widget-area { - margin-left: 60px; - margin-right: auto; - } -} - -@media (max-width: 999px) { - .sidebar .entry-header, - .sidebar .entry-content, - .sidebar .entry-summary, - .sidebar .entry-meta, - .sidebar .comment-list, - .sidebar .comment-reply-title, - .sidebar .comment-navigation, - .sidebar .comment-respond .comment-form, - .sidebar .featured-gallery, - .sidebar .post-navigation .nav-links, - .author.sidebar .author-info, - .sidebar .format-image .entry-content { - max-width: 604px; - padding-left: 0; - padding-right: 0; - } - - .site-main .widget-area { - float: none; - margin-left: auto; - } - - .attachment .entry-meta { - float: right; - text-align: right; - } - - .sidebar .format-status .entry-content, - .sidebar .format-status .entry-meta { - padding-left: 0; - padding-right: 35px; - } - - .sidebar .format-status .entry-content:before, - .sidebar .format-status .entry-meta:before { - left: auto; - right: 10px; - } - - .sidebar .format-status .entry-content p:first-child:before { - left: auto; - right: 4px; - } - - .sidebar .site-footer .widget-area { - left: auto; - right: 0; - } - - .sidebar .paging-navigation .nav-links { - padding: 0 60px; - } -} - -@media (max-width: 767px) { - .format-image .entry-content img:first-of-type, - .format-image .wp-caption:first-child .wp-caption-text { - margin-right: auto; - } -} - -@media (max-width: 643px) { - .sidebar .entry-header, - .sidebar .entry-content, - .sidebar .entry-summary, - .sidebar .entry-meta, - .sidebar .comment-list, - .sidebar .comment-navigation, - .sidebar .featured-gallery, - .sidebar .post-navigation .nav-links, - .sidebar .format-image .entry-content { - padding-left: 20px; - padding-right: 20px; - } - - #content .format-status .entry-content, - #content .format-status .entry-met { - padding-left: 0; - padding-right: 35px; - } - - .menu-toggle:after { - padding-left: 0; - padding-right: 8px; - } - - .toggled-on .nav-menu, - .toggled-on .nav-menu > ul { - margin-left: auto; - margin-right: 0; - } - - .toggled-on .nav-menu li > ul { - margin-left: auto; - margin-right: 20px; - right: auto; - } - - #content .featured-gallery { - padding-left: 0; - padding-right: 24px; - } - - .gallery-columns-1 .gallery-item { - margin-left: 0; - margin-right: auto; - } - - .comment-author { - margin-left: 30px; - margin-right: auto; - } - - .format-audio .audio-content { - background: none; - float: none; - padding-left: 0; - padding-right: 0; - } - - .gallery-columns-3 .gallery-item:nth-of-type(3n) { - margin-left: 4px; - margin-right: auto; - } -} - -@media (max-width: 359px) { - .gallery { - margin-left: auto; - margin-right: 0; - } - - .gallery .gallery-item:nth-of-type(even) { - margin-left: 0; - margin-right: auto; - } - - .gallery .gallery-item, - .gallery.gallery-columns-3 .gallery-item:nth-of-type(even), - .gallery-columns-3 .gallery-item:nth-of-type(3n), - .gallery-columns-5 .gallery-item:nth-of-type(5n), - .gallery-columns-7 .gallery-item:nth-of-type(7n), - .gallery-columns-9 .gallery-item:nth-of-type(9n) { - margin-left: 4px; - margin-right: auto; - } - - .comment-author .avatar { - margin-left: 5px; - margin-right: auto; - } -} - - -/** - * 9.0 Print - * ---------------------------------------------------------------------------- - */ - -@media print { - .entry-content img.alignleft, - .entry-content .wp-caption.alignleft { - margin-left: auto; - margin-right: 0; - } - - .entry-content img.alignright, - .entry-content .wp-caption.alignright { - margin-left: 0; - margin-right: auto; - } -} \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/screenshot.png b/wp-content/themes/twentythirteen/screenshot.png deleted file mode 100644 index e53088b..0000000 Binary files a/wp-content/themes/twentythirteen/screenshot.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/search.php b/wp-content/themes/twentythirteen/search.php deleted file mode 100644 index 1519c13..0000000 --- a/wp-content/themes/twentythirteen/search.php +++ /dev/null @@ -1,36 +0,0 @@ - - -
      -
      - - - - - - - - - - - - - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/sidebar-main.php b/wp-content/themes/twentythirteen/sidebar-main.php deleted file mode 100644 index 3c700ad..0000000 --- a/wp-content/themes/twentythirteen/sidebar-main.php +++ /dev/null @@ -1,18 +0,0 @@ - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/sidebar.php b/wp-content/themes/twentythirteen/sidebar.php deleted file mode 100644 index cb5cf98..0000000 --- a/wp-content/themes/twentythirteen/sidebar.php +++ /dev/null @@ -1,22 +0,0 @@ - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/single.php b/wp-content/themes/twentythirteen/single.php deleted file mode 100644 index 1694a0d..0000000 --- a/wp-content/themes/twentythirteen/single.php +++ /dev/null @@ -1,28 +0,0 @@ - - -
      -
      - - - - - - - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css deleted file mode 100644 index 28df920..0000000 --- a/wp-content/themes/twentythirteen/style.css +++ /dev/null @@ -1,3179 +0,0 @@ -/* -Theme Name: Twenty Thirteen -Theme URI: http://wordpress.org/themes/twentythirteen -Author: the WordPress team -Author URI: http://wordpress.org/ -Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small. -Version: 1.2 -License: GNU General Public License v2 or later -License URI: http://www.gnu.org/licenses/gpl-2.0.html -Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready -Text Domain: twentythirteen - -This theme, like WordPress, is licensed under the GPL. -Use it to make something cool, have fun, and share what you've learned with others. -*/ - - -/** - * Table of Contents: - * - * 1.0 - Reset - * 2.0 - Repeatable Patterns - * 3.0 - Basic Structure - * 4.0 - Header - * 4.1 - Site Header - * 4.2 - Navigation - * 5.0 - Content - * 5.1 - Entry Header - * 5.2 - Entry Meta - * 5.3 - Entry Content - * 5.4 - Galleries - * 5.5 - Post Formats - * 5.6 - Attachments - * 5.7 - Post/Paging Navigation - * 5.8 - Author Bio - * 5.9 - Archives - * 5.10 - Search Results/No posts - * 5.11 - 404 - * 5.12 - Comments - * 5.13 - Multisite - * 6.0 - Sidebar - * 6.1 - Widgets - * 7.0 - Footer - * 8.0 - Media Queries - * 9.0 - Print - * ---------------------------------------------------------------------------- - */ - - -/** - * 1.0 Reset - * - * Modified from Normalize.css to provide cross-browser consistency and a smart - * default styling of HTML elements. - * - * @see http://git.io/normalize - * ---------------------------------------------------------------------------- - */ - -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -article, -aside, -details, -figcaption, -figure, -footer, -header, -nav, -section, -summary { - display: block; -} - -audio, -canvas, -video { - display: inline-block; -} - -audio:not([controls]) { - display: none; - height: 0; -} - -[hidden] { - display: none; -} - -html { - font-size: 100%; - overflow-y: scroll; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} - -html, -button, -input, -select, -textarea { - font-family: "Source Sans Pro", Helvetica, sans-serif; -} - -body { - color: #141412; - line-height: 1.5; - margin: 0; -} - -a { - color: #ca3c08; - text-decoration: none; -} - -a:visited { - color: #ac0404; -} - -a:focus { - outline: thin dotted; -} - -a:active, -a:hover { - color: #ea9629; - outline: 0; -} - -a:hover { - text-decoration: underline; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - clear: both; - font-family: Bitter, Georgia, serif; - line-height: 1.3; -} - -h1 { - font-size: 48px; - margin: 33px 0; -} - -h2 { - font-size: 30px; - margin: 25px 0; -} - -h3 { - font-size: 22px; - margin: 22px 0; -} - -h4 { - font-size: 20px; - margin: 25px 0; -} - -h5 { - font-size: 18px; - margin: 30px 0; -} - -h6 { - font-size: 16px; - margin: 36px 0; -} - -address { - font-style: italic; - margin: 0 0 24px; -} - -abbr[title] { - border-bottom: 1px dotted; -} - -b, -strong { - font-weight: bold; -} - -dfn { - font-style: italic; -} - -mark { - background: #ff0; - color: #000; -} - -p { - margin: 0 0 24px; -} - -code, -kbd, -pre, -samp { - font-family: monospace, serif; - font-size: 14px; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} - -pre { - background: #f5f5f5; - color: #666; - font-family: monospace; - font-size: 14px; - margin: 20px 0; - overflow: auto; - padding: 20px; - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - -blockquote, -q { - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; - quotes: none; -} - -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ""; - content: none; -} - -blockquote { - font-size: 18px; - font-style: italic; - font-weight: 300; - margin: 24px 40px; -} - -blockquote blockquote { - margin-right: 0; -} - -blockquote cite, -blockquote small { - font-size: 14px; - font-weight: normal; - text-transform: uppercase; -} - -blockquote em, -blockquote i { - font-style: normal; - font-weight: 300; -} - -blockquote strong, -blockquote b { - font-weight: 400; -} - -small { - font-size: smaller; -} - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -dl { - margin: 0 20px; -} - -dt { - font-weight: bold; -} - -dd { - margin: 0 0 20px; -} - -menu, -ol, -ul { - margin: 16px 0; - padding: 0 0 0 40px; -} - -ul { - list-style-type: square; -} - -nav ul, -nav ol { - list-style: none; - list-style-image: none; -} - -li > ul, -li > ol { - margin: 0; -} - -img { - -ms-interpolation-mode: bicubic; - border: 0; - vertical-align: middle; -} - -svg:not(:root) { - overflow: hidden; -} - -figure { - margin: 0; -} - -form { - margin: 0; -} - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -legend { - border: 0; - padding: 0; - white-space: normal; -} - -button, -input, -select, -textarea { - font-size: 100%; - margin: 0; - max-width: 100%; - vertical-align: baseline; -} - -button, -input { - line-height: normal; -} - -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; - cursor: pointer; -} - -button[disabled], -input[disabled] { - cursor: default; -} - -input[type="checkbox"], -input[type="radio"] { - padding: 0; -} - -input[type="search"] { - -webkit-appearance: textfield; - padding-right: 2px; /* Don't cut off the webkit search cancel button */ - width: 270px; -} - -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -textarea { - overflow: auto; - vertical-align: top; -} - -table { - border-bottom: 1px solid #ededed; - border-collapse: collapse; - border-spacing: 0; - font-size: 14px; - line-height: 2; - margin: 0 0 20px; - width: 100%; -} - -caption, -th, -td { - font-weight: normal; - text-align: left; -} - -caption { - font-size: 16px; - margin: 20px 0; -} - -th { - font-weight: bold; - text-transform: uppercase; -} - -td { - border-top: 1px solid #ededed; - padding: 6px 10px 6px 0; -} - -del { - color: #333; -} - -ins { - background: #fff9c0; - text-decoration: none; -} - -hr { - background: url(images/dotted-line.png) repeat center top; - background-size: 4px 4px; - border: 0; - height: 1px; - margin: 0 0 24px; -} - - -/** - * 2.0 Repeatable Patterns - * ---------------------------------------------------------------------------- - */ - -.genericon:before, -.menu-toggle:after, -.featured-post:before, -.date a:before, -.entry-meta .author a:before, -.format-audio .entry-content:before, -.comments-link a:before, -.tags-links a:first-child:before, -.categories-links a:first-child:before, -.edit-link a:before, -.attachment .entry-title:before, -.attachment-meta:before, -.attachment-meta a:before, -.comment-awaiting-moderation:before, -.comment-reply-link:before, -.comment-reply-login:before, -.comment-reply-title small a:before, -.bypostauthor > .comment-body .fn:before, -.error404 .page-title:before { - -webkit-font-smoothing: antialiased; - display: inline-block; - font: normal 16px/1 Genericons; - vertical-align: text-bottom; -} - -/* Clearing floats */ -.clear:after, -.attachment .entry-header:after, -.site-footer .widget-area:after, -.entry-content:after, -.page-content:after, -.navigation:after, -.nav-links:after, -.gallery:after, -.comment-form-author:after, -.comment-form-email:after, -.comment-form-url:after, -.comment-body:after { - clear: both; -} - -.clear:before, -.clear:after, -.attachment .entry-header:before, -.attachment .entry-header:after, -.site-footer .widget-area:before, -.site-footer .widget-area:after, -.entry-content:before, -.entry-content:after, -.page-content:before, -.page-content:after, -.navigation:before, -.navigation:after, -.nav-links:before, -.nav-links:after, -.gallery:before, -.gallery:after, -.comment-form-author:before, -.comment-form-author:after, -.comment-form-email:before, -.comment-form-email:after, -.comment-form-url:before, -.comment-form-url:after, -.comment-body:before, -.comment-body:after { - content: ""; - display: table; -} - -/* Assistive text */ -.screen-reader-text { - clip: rect(1px, 1px, 1px, 1px); - position: absolute !important; -} - -.screen-reader-text:focus { - background-color: #f1f1f1; - border-radius: 3px; - box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); - clip: auto !important; - color: #21759b; - display: block; - font-size: 14px; - font-weight: bold; - height: auto; - line-height: normal; - padding: 15px 23px 14px; - position: absolute; - left: 5px; - top: 5px; - text-decoration: none; - width: auto; - z-index: 100000; /* Above WP toolbar */ -} - -/* Form fields, general styles first. */ -button, -input, -textarea { - border: 2px solid #d4d0ba; - font-family: inherit; - padding: 5px; -} - -input, -textarea { - color: #141412; -} - -input:focus, -textarea:focus { - border: 2px solid #c3c0ab; - outline: 0; -} - -/* Buttons */ -button, -input[type="submit"], -input[type="button"], -input[type="reset"] { - background: #e05d22; /* Old browsers */ - background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */ - background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */ - border: none; - border-bottom: 3px solid #b93207; - border-radius: 2px; - color: #fff; - display: inline-block; - padding: 11px 24px 10px; - text-decoration: none; -} - -button:hover, -button:focus, -input[type="submit"]:hover, -input[type="button"]:hover, -input[type="reset"]:hover, -input[type="submit"]:focus, -input[type="button"]:focus, -input[type="reset"]:focus { - background: #ed6a31; /* Old browsers */ - background: -webkit-linear-gradient(top, #ed6a31 0%, #e55627 100%); /* Chrome 10+, Safari 5.1+ */ - background: linear-gradient(to bottom, #ed6a31 0%, #e55627 100%); /* W3C */ - outline: none; -} - -button:active, -input[type="submit"]:active, -input[type="button"]:active, -input[type="reset"]:active { - background: #d94412; /* Old browsers */ - background: -webkit-linear-gradient(top, #d94412 0%, #e05d22 100%); /* Chrome 10+, Safari 5.1+ */ - background: linear-gradient(to bottom, #d94412 0%, #e05d22 100%); /* W3C */ - border: none; - border-top: 3px solid #b93207; - padding: 10px 24px 11px; -} - -.post-password-required input[type="submit"] { - padding: 7px 24px 4px; - vertical-align: bottom; -} - -.post-password-required input[type="submit"]:active { - padding: 5px 24px 6px; -} - -/* Placeholder text color -- selectors need to be separate to work. */ -::-webkit-input-placeholder { - color: #7d7b6d; -} - -:-moz-placeholder { - color: #7d7b6d; -} - -::-moz-placeholder { - color: #7d7b6d; -} - -:-ms-input-placeholder { - color: #7d7b6d; -} - -/* - * Responsive images - * - * Fluid images for posts, comments, and widgets - */ -.entry-content img, -.entry-summary img, -.comment-content img, -.widget img, -.wp-caption { - max-width: 100%; -} - -/* Make sure images with WordPress-added height and width attributes are scaled correctly. */ -.entry-content img, -.entry-summary img, -.comment-content img[height], -img[class*="align"], -img[class*="wp-image-"], -img[class*="attachment-"] { - height: auto; -} - -img.size-full, -img.size-large, -img.wp-post-image { - height: auto; - max-width: 100%; -} - -/* Make sure videos and embeds fit their containers. */ -embed, -iframe, -object, -video { - max-width: 100%; -} - -/* Override the Twitter embed fixed width. */ -.entry-content .twitter-tweet-rendered { - max-width: 100% !important; -} - -/* Images */ -.alignleft { - float: left; -} - -.alignright { - float: right; -} - -.aligncenter { - display: block; - margin-left: auto; - margin-right: auto; -} - -figure.wp-caption.alignleft, -img.alignleft { - margin: 5px 20px 5px 0; -} - -.wp-caption.alignleft { - margin: 5px 10px 5px 0; -} - -figure.wp-caption.alignright, -img.alignright { - margin: 5px 0 5px 20px; -} - -.wp-caption.alignright { - margin: 5px 0 5px 10px; -} - -img.aligncenter { - margin: 5px auto; -} - -img.alignnone { - margin: 5px 0; -} - -.wp-caption .wp-caption-text, -.entry-caption, -.gallery-caption { - color: #220e10; - font-size: 18px; - font-style: italic; - font-weight: 300; - margin: 0 0 24px; -} - -div.wp-caption.alignright img[class*="wp-image-"] { - float: right; -} - -div.wp-caption.alignright .wp-caption-text { - padding-left: 10px; -} - -img.wp-smiley, -.rsswidget img { - border: 0; - border-radius: 0; - box-shadow: none; - margin-bottom: 0; - margin-top: 0; - padding: 0; -} - -.wp-caption.alignleft + ul, -.wp-caption.alignleft + ol { - list-style-position: inside; -} - - -/** - * 3.0 Basic Structure - * ---------------------------------------------------------------------------- - */ - -.site { - background-color: #fff; - border-left: 1px solid #f2f2f2; - border-right: 1px solid #f2f2f2; - margin: 0 auto; - max-width: 1600px; - width: 100%; -} - -.site-main { - position: relative; -} - -.site-main .sidebar-container { - height: 0; - position: absolute; - top: 40px; - width: 100%; - z-index: 1; -} - -.site-main .sidebar-inner { - margin: 0 auto; - max-width: 1040px; -} - - -/** - * 4.0 Header - * ---------------------------------------------------------------------------- - */ - -/** - * 4.1 Site Header - * ---------------------------------------------------------------------------- - */ - -.site-header { - position: relative; -} - -.site-header .home-link { - color: #141412; - display: block; - margin: 0 auto; - max-width: 1080px; - min-height: 230px; - padding: 0 20px; - text-decoration: none; - width: 100%; -} - -.site-header .site-title:hover { - text-decoration: underline; -} - -.site-title { - font-size: 60px; - font-weight: bold; - line-height: 1; - margin: 0; - padding: 58px 0 10px; -} - -.site-description { - font: 300 italic 24px "Source Sans Pro", Helvetica, sans-serif; - margin: 0; -} - - -/** - * 4.2 Navigation - * ---------------------------------------------------------------------------- - */ - -.main-navigation { - clear: both; - margin: 0 auto; - max-width: 1080px; - min-height: 45px; - position: relative; -} - -ul.nav-menu, -div.nav-menu > ul { - margin: 0; - padding: 0 40px 0 0; -} - -.nav-menu li { - display: inline-block; - position: relative; -} - -.nav-menu li a { - color: #141412; - display: block; - font-size: 15px; - line-height: 1; - padding: 15px 20px; - text-decoration: none; -} - -.nav-menu li:hover > a, -.nav-menu li a:hover, -.nav-menu li:focus > a, -.nav-menu li a:focus { - background-color: #220e10; - color: #fff; -} - -.nav-menu .sub-menu, -.nav-menu .children { - background-color: #220e10; - border: 2px solid #f7f5e7; - border-top: 0; - padding: 0; - position: absolute; - left: -2px; - z-index: 99999; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(1px, 1px, 1px, 1px); -} - -.nav-menu .sub-menu ul, -.nav-menu .children ul { - border-left: 0; - left: 100%; - top: 0; -} - -ul.nav-menu ul a, -.nav-menu ul ul a { - color: #fff; - margin: 0; - width: 200px; -} - -ul.nav-menu ul a:hover, -.nav-menu ul ul a:hover, -ul.nav-menu ul a:focus, -.nav-menu ul ul a:focus { - background-color: #db572f; -} - -ul.nav-menu li:hover > ul, -.nav-menu ul li:hover > ul, -ul.nav-menu .focus > ul, -.nav-menu .focus > ul { - clip: inherit; - overflow: inherit; - height: inherit; - width: inherit; -} - -.nav-menu .current_page_item > a, -.nav-menu .current_page_ancestor > a, -.nav-menu .current-menu-item > a, -.nav-menu .current-menu-ancestor > a { - color: #bc360a; - font-style: italic; -} - -.menu-toggle { - display: none; -} - -/* Navbar */ -.navbar { - background-color: #f7f5e7; - margin: 0 auto; - max-width: 1600px; - width: 100%; -} - -.site-header .search-form { - position: absolute; - right: 20px; - top: 1px; -} - -.site-header .search-field { - background-color: transparent; - background-image: url(images/search-icon.png); - background-position: 5px center; - background-repeat: no-repeat; - background-size: 24px 24px; - border: none; - cursor: pointer; - height: 37px; - margin: 3px 0; - padding: 0 0 0 34px; - position: relative; - -webkit-transition: width 400ms ease, background 400ms ease; - transition: width 400ms ease, background 400ms ease; - width: 0; -} - -.site-header .search-field:focus { - background-color: #fff; - border: 2px solid #c3c0ab; - cursor: text; - outline: 0; - width: 230px; -} - - -/** - * 5.0 Content - * ---------------------------------------------------------------------------- - */ - -.hentry { - padding: 40px 0; -} - -.entry-header, -.entry-content, -.entry-summary, -.entry-meta { - margin: 0 auto; - max-width: 604px; - width: 100%; -} - -.sidebar .entry-header, -.sidebar .entry-content, -.sidebar .entry-summary, -.sidebar .entry-meta { - max-width: 1040px; - padding: 0 376px 0 60px; -} - - -/** - * 5.1 Entry Header - * ---------------------------------------------------------------------------- - */ - -.sidebar .entry-header .entry-meta { - padding: 0; -} - -.entry-thumbnail img { - display: block; - margin: 0 auto 10px; -} - -.entry-header { - margin-bottom: 30px; -} - -.entry-title { - font-weight: normal; - margin: 0 0 5px; -} - -.entry-title a { - color: #141412; -} - -.entry-title a:hover { - color: #ea9629; -} - - -/** - * 5.2 Entry Meta - * ---------------------------------------------------------------------------- - */ - -.entry-meta { - clear: both; - font-size: 14px; -} - -.entry-meta a { - color: #bc360a; -} - -.entry-meta a:hover { - color: #bc360a; -} - -.entry-meta > span { - margin-right: 20px; -} - -.entry-meta > span:last-child { - margin-right: 0; -} - -.featured-post:before { - content: "\f308"; - margin-right: 2px; -} - -.entry-meta .date a:before { - content: "\f303"; -} - -.comments-link a:before { - content: "\f300"; - margin-right: 2px; - position: relative; - top: -1px; -} - -.entry-meta .author a:before { - content: "\f304"; - position: relative; - top: -1px; -} - -.categories-links a:first-child:before { - content: "\f301"; -} - -.tags-links a:first-child:before { - content: "\f302"; - position: relative; - top: -1px; -} - -.edit-link a:before { - content: "\f411"; - position: relative; - top: -1px; -} - -.single-author .entry-meta .author, -.sticky.format-standard .entry-meta .date, -.sticky.format-audio .entry-meta .date, -.sticky.format-chat .entry-meta .date, -.sticky.format-image .entry-meta .date, -.sticky.format-gallery .entry-meta .date { - display: none; -} - - -/** - * 5.3 Entry Content - * ---------------------------------------------------------------------------- - */ - -.entry-content { - -webkit-hyphens: auto; - -moz-hyphens: auto; - -ms-hyphens: auto; - hyphens: auto; - word-wrap: break-word; -} - -.entry-content a, -.comment-content a { - color: #bc360a; -} - -.entry-content a:hover, -.comment-content a:hover { - color: #ea9629; -} - -.entry-content blockquote { - font-size: 24px; -} - -.entry-content blockquote cite, -.entry-content blockquote small { - font-size: 16px; -} - -.entry-content img.alignleft, -.entry-content .wp-caption.alignleft { - margin-left: -60px; -} - -.entry-content img.alignright, -.entry-content .wp-caption.alignright { - margin-right: -60px; -} - -footer.entry-meta { - margin-top: 24px; -} - -.format-standard footer.entry-meta { - margin-top: 0; -} - -/* Page links */ -.page-links { - clear: both; - font-size: 16px; - font-style: italic; - font-weight: normal; - line-height: 2.2; - margin: 20px 0; - text-transform: uppercase; -} - -.page-links a, -.page-links > span { - background: #fff; - border: 1px solid #fff; - padding: 5px 10px; - text-decoration: none; -} - -.format-status .entry-content .page-links a, -.format-gallery .entry-content .page-links a, -.format-chat .entry-content .page-links a, -.format-quote .entry-content .page-links a, -.page-links a { - background: #e63f2a; - border: 1px solid #e63f2a; - color: #fff; -} - -.format-gallery .entry-content .page-links a:hover, -.format-audio .entry-content .page-links a:hover, -.format-status .entry-content .page-links a:hover, -.format-video .entry-content .page-links a:hover, -.format-chat .entry-content .page-links a:hover, -.format-quote .entry-content .page-links a:hover, -.page-links a:hover { - background: #fff; - color: #e63f2a; -} - -.format-status .entry-content .page-links > span, -.format-quote .entry-content .page-links > span { - background: none; -} - -.page-links .page-links-title { - background: transparent; - border: none; - margin-right: 20px; - padding: 0; -} - -/* Mediaelements */ -.hentry .mejs-mediaelement, -.hentry .mejs-container .mejs-controls { - background: #220e10; -} - -.hentry .mejs-controls .mejs-time-rail .mejs-time-loaded, -.hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { - background: #fff; -} - -.hentry .mejs-controls .mejs-time-rail .mejs-time-current { - background: #ea9629; -} - -.hentry .mejs-controls .mejs-time-rail .mejs-time-total, -.hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total { - background: #595959; -} - -.hentry .mejs-controls .mejs-time-rail span, -.hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total, -.hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { - border-radius: 0; -} - - -/** - * 5.4 Galleries - * ---------------------------------------------------------------------------- - */ - -.gallery { - margin-bottom: 20px; - margin-left: -4px; -} - -.gallery-item { - float: left; - margin: 0 4px 4px 0; - overflow: hidden; - position: relative; -} - -.gallery-columns-1.gallery-size-medium, -.gallery-columns-1.gallery-size-thumbnail, -.gallery-columns-2.gallery-size-thumbnail, -.gallery-columns-3.gallery-size-thumbnail { - display: table; - margin: 0 auto 20px; -} - -.gallery-columns-1 .gallery-item, -.gallery-columns-2 .gallery-item, -.gallery-columns-3 .gallery-item { - text-align: center; -} - -.gallery-columns-4 .gallery-item { - max-width: 23%; - max-width: -webkit-calc(25% - 4px); - max-width: calc(25% - 4px); -} - -.gallery-columns-5 .gallery-item { - max-width: 19%; - max-width: -webkit-calc(20% - 4px); - max-width: calc(20% - 4px); -} - -.gallery-columns-6 .gallery-item { - max-width: 15%; - max-width: -webkit-calc(16.7% - 4px); - max-width: calc(16.7% - 4px); -} - -.gallery-columns-7 .gallery-item { - max-width: 13%; - max-width: -webkit-calc(14.28% - 4px); - max-width: calc(14.28% - 4px); -} - -.gallery-columns-8 .gallery-item { - max-width: 11%; - max-width: -webkit-calc(12.5% - 4px); - max-width: calc(12.5% - 4px); -} - -.gallery-columns-9 .gallery-item { - max-width: 9%; - max-width: -webkit-calc(11.1% - 4px); - max-width: calc(11.1% - 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-right: 0; -} - -.gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1), -.gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1), -.gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1), -.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) { - clear: left; -} - -.gallery-caption { - background-color: rgba(0, 0, 0, 0.7); - box-sizing: border-box; - color: #fff; - font-size: 14px; - line-height: 1.3; - margin: 0; - max-height: 50%; - opacity: 0; - padding: 2px 8px; - position: absolute; - bottom: 0; - left: 0; - text-align: left; - -webkit-transition: opacity 400ms ease; - transition: opacity 400ms ease; - width: 100%; -} - -.gallery-caption:before { - box-shadow: 0 -10px 15px #000 inset; - content: ""; - height: 100%; - min-height: 49px; - position: absolute; - left: 0; - top: 0; - width: 100%; -} - -.gallery-item:hover .gallery-caption { - opacity: 1; -} - -.gallery-columns-7 .gallery-caption, -.gallery-columns-8 .gallery-caption, -.gallery-columns-9 .gallery-caption { - display: none; -} - - -/** - * 5.5 Post Formats - * ---------------------------------------------------------------------------- - */ - -/* Aside */ -.format-aside { - background-color: #f7f5e7; -} - -.blog .format-aside:first-of-type, -.single .format-aside:first-of-type, -.format-aside + .format-aside, -.format-aside + .format-link, -.format-link + .format-aside { - box-shadow: inset 0 2px 2px rgba(173, 165, 105, 0.2); -} - -.format-aside .entry-meta { - margin-top: 0; -} - -.format-aside blockquote { - font-size: 100%; - font-weight: normal; -} - -.format-aside cite { - font-size: 100%; - text-transform: none; -} - -.format-aside cite:before { - content: "\2014"; - margin-right: 5px; -} - -/* Audio */ -.format-audio { - background-color: #db572f; -} - -.format-audio .entry-title { - font-size: 28px; - font-weight: bold; -} - -.format-audio .entry-content:before { - content: "\f109"; - float: left; - font-size: 64px; - position: relative; - top: 4px; -} - -.format-audio .entry-content a, -.format-audio .entry-meta a, -.format-audio .entry-content a:hover, -.format-audio .entry-meta a:hover { - color: #fbfaf3; -} - -.format-audio .audio-content { - background: url(images/dotted-line.png) repeat-y left top; - background-size: 4px 4px; - float: right; - padding-left: 35px; - width: 80%; - width: -webkit-calc(100% - 85px); - width: calc(100% - 85px); -} - -.format-audio .wp-audio-shortcode { - height: 30px !important; /* Override mediaelement.js style */ - margin: 20px 0; - max-width: 400px !important; /* Override mediaelement.js style */ -} - -.format-audio audio { - max-width: 100% !important; /* Avoid player width overflow. */ -} - -/* Chat */ -.format-chat { - background-color: #eadaa6; -} - -.format-chat .entry-title { - font-size: 28px; - font-weight: bold; -} - -.format-chat .entry-meta a, -.format-chat .entry-content a { - color: #722d19; -} - -.format-chat .entry-meta .date a:before { - content: "\f108"; - margin-right: 2px; -} - -.format-chat .entry-meta .author { - display: none; -} - -.format-chat .chat { - margin: 0; -} - -.format-chat .chat .chat-timestamp { - color: #722d19; - float: right; - font-size: 12px; - font-weight: normal; - margin: 5px 10px 0; -} - -.format-chat .chat .fn { - font-style: normal; -} - -/* Gallery */ -.format-gallery { - background-color: #fbca3c; -} - -.format-gallery .entry-header { - margin-bottom: 15px; -} - -.format-gallery .entry-title { - font-size: 50px; - font-weight: 400; - margin: 0; -} - -.format-gallery .entry-meta a, -.format-gallery .entry-content a { - color: #722d19; -} - -/* Image */ -.format-image .entry-title { - font-size: 28px; - font-weight: bold; -} - -.format-image .categories-links, -.format-image .tags-links { - display: none; -} - -/* Link */ -.format-link { - background-color: #f7f5e7; -} - -.blog .format-link:first-of-type, -.single .format-link:first-of-type { - box-shadow: inset 0 2px 2px rgba(173, 165, 105, 0.2); -} - -.format-link .entry-header, -.format-link .entry-content p:last-child { - margin-bottom: 0; -} - -.format-link .entry-title { - color: #ca3c08; - display: inline; - font: 300 italic 20px "Source Sans Pro", Helvetica, sans-serif; - margin-right: 20px; -} - -.format-link .entry-title a { - color: #bc360a; -} - -.format-link div.entry-meta { - display: inline; -} - -/* Quote */ -.format-quote { - background-color: #210d10; -} - -.format-quote .entry-content, -.format-quote .entry-meta { - color: #f7f5e7; -} - -.format-quote .entry-content blockquote { - font-size: 28px; - margin: 0; -} - -.format-quote .entry-content a, -.format-quote .entry-meta a, -.format-quote .linked { - color: #e63f2a; -} - -.format-quote .entry-content cite a { - border-bottom: 1px dotted #fff; - color: #fff; -} - -.format-quote .entry-content cite a:hover { - text-decoration: none; -} - -.format-quote blockquote small, -.format-quote blockquote cite { - display: block; - font-size: 16px; -} - -.format-quote blockquote { - font-style: italic; - font-weight: 300; - padding-left: 75px; - position: relative; -} - -.format-quote blockquote:before { - content: '\201C'; - font-size: 140px; - font-weight: 400; - line-height: .8; - padding-right: 25px; - position: absolute; - left: -15px; - top: -3px; -} - -.format-quote .entry-meta .author { - display: none; -} - -/* Status */ -.format-status { - background-color: #722d19; - padding: 0; -} - -.format-status .entry-content, -.format-status .entry-meta { - padding-left: 35px; - position: relative; -} - -.format-status .entry-content a { - color: #eadaa6; -} - -.format-status .entry-meta a { - color: #f7f5e7; -} - -.sidebar .format-status .entry-content, -.sidebar .format-status .entry-meta { - padding-left: 95px; -} - -.format-status .entry-content:before, -.format-status .entry-meta:before { - background: url(images/dotted-line.png) repeat-y left bottom; - background-size: 4px 4px; - content: ""; - display: block; - height: 100%; - position: absolute; - left: 10px; - top: 0; - width: 1px; -} - -.sidebar .format-status .entry-content:before, -.sidebar .format-status .entry-meta:before { - left: 70px; -} - -.format-status .categories-links, -.format-status .tags-links { - display: none; -} - -/* Ensures the dots in the dot background are in lockstep. */ -.format-status .entry-meta:before { - background-position: left top; -} - -.format-status .entry-content { - color: #f7f5e7; - font-size: 24px; - font-style: italic; - font-weight: 300; - padding-bottom: 30px; - padding-top: 40px; - position: relative; -} - -.format-status .entry-content p:first-child:before { - background-color: rgba(0, 0, 0, 0.65); - content: ""; - height: 3px; - margin-top: 13px; - position: absolute; - left: 4px; - width: 13px; -} - -.sidebar .format-status .entry-content > p:first-child:before { - left: 64px; -} - -.format-status .entry-content p:last-child { - margin-bottom: 0; -} - -.format-status .entry-meta { - margin-top: 0; - padding-bottom: 40px; -} - -.format-status .entry-meta .date a:before { - content: "\f105"; -} - -/* Video */ -.format-video { - background-color: #db572f; -} - -.format-video .entry-content a, -.format-video .entry-meta a, -.format-video .entry-content a:hover, -.format-video .entry-meta a:hover { - color: #fbfaf3; -} - -.format-video .entry-title { - font-size: 50px; - font-weight: 400; -} - -.format-video .entry-meta { - color: #220e10; -} - - -/** - * 5.6 Attachments - * ---------------------------------------------------------------------------- - */ - -.attachment .hentry { - background-color: #e8e5ce; - margin: 0; - padding: 0; -} - -.attachment .entry-header { - margin-bottom: 0; - max-width: 1040px; - padding: 30px 0; -} - -.attachment .entry-title { - display: inline-block; - float: left; - font: 300 italic 30px "Source Sans Pro", Helvetica, sans-serif; - margin: 0; -} - -.attachment .entry-title:before { - content: "\f416"; - font-size: 32px; - margin-right: 10px; -} - -.attachment .entry-meta { - clear: none; - color: inherit; - float: right; - max-width: 604px; - padding: 9px 0 0; - text-align: right; -} - -.hentry.attachment:not(.image-attachment) .entry-meta { - max-width: 104px; -} - -.attachment footer.entry-meta { - display: none; -} - -.attachment-meta:before { - content: "\f307"; -} - -.full-size-link a:before { - content: "\f402"; -} - -.full-size-link:before { - content: none; -} - -.attachment .entry-meta a, -.attachment .entry-meta .edit-link:before, -.attachment .full-size-link:before { - color: #ca3c08; -} - -.attachment .entry-content { - background-color: #fff; - max-width: 100%; - padding: 40px 0; -} - -.image-navigation { - margin: 0 auto; - max-width: 1040px; - position: relative; -} - -.image-navigation a:hover { - text-decoration: none; -} - -.image-navigation .nav-previous, -.image-navigation .nav-next { - position: absolute; - top: 50px; -} - -.image-navigation .nav-previous { - left: 0; -} - -.image-navigation .nav-next { - right: 0; -} - -.image-navigation .meta-nav { - font-size: 32px; - font-weight: 300; - vertical-align: -4px; -} - -.attachment .entry-attachment, -.attachment .type-attachment p { - margin: 0 auto; - max-width: 724px; - text-align: center; -} - -.attachment .entry-attachment .attachment { - display: inline-block; -} - -.attachment .entry-caption { - text-align: left; -} - -.attachment .entry-description { - margin: 20px auto 0; - max-width: 604px; -} - -.attachment .entry-caption p:last-child, -.attachment .entry-description p:last-child { - margin: 0; -} - -.attachment .site-main .sidebar-container { - display: none; -} - -.attachment .entry-content .mejs-audio { - max-width: 400px; - margin: 0 auto; -} - -.attachment .entry-content .wp-video { - margin: 0 auto; -} - -.attachment .entry-content .mejs-container { - margin-bottom: 24px; -} - -/** - * 5.7 Post/Paging Navigation - * ---------------------------------------------------------------------------- - */ - -.navigation .nav-previous { - float: left; -} - -.navigation .nav-next { - float: right; -} - -.navigation a { - color: #bc360a; -} - -.navigation a:hover { - color: #ea9629; - text-decoration: none; -} - -.paging-navigation { - background-color: #e8e5ce; - padding: 40px 0; -} - -.paging-navigation .nav-links { - margin: 0 auto; - max-width: 604px; - width: 100%; -} - -.sidebar .paging-navigation .nav-links { - max-width: 1040px; - padding: 0 376px 0 60px; -} - -.paging-navigation .nav-next { - padding: 13px 0; -} - -.paging-navigation a { - font-size: 22px; - font-style: italic; - font-weight: 300; -} - -.paging-navigation .meta-nav { - background-color: #e63f2a; - border-radius: 50%; - color: #fff; - display: inline-block; - font-size: 26px; - padding: 3px 0 8px; - text-align: center; - width: 50px; -} - -.paging-navigation .nav-previous .meta-nav { - margin-right: 10px; - padding: 17px 0 23px; - width: 80px; -} - -.paging-navigation .nav-next .meta-nav { - margin-left: 10px; -} - -.paging-navigation a:hover .meta-nav { - background-color: #ea9629; - text-decoration: none; -} - -.post-navigation { - background-color: #fff; - color: #ca3c08; - font-size: 20px; - font-style: italic; - font-weight: 300; - padding: 20px 0; -} - -.post-navigation .nav-links { - margin: 0 auto; - max-width: 1040px; -} - -.sidebar .post-navigation .nav-links { - padding: 0 376px 0 60px; -} - -.post-navigation a[rel="next"] { - float: right; - text-align: right; -} - - -/** - * 5.8 Author Bio - * ---------------------------------------------------------------------------- - */ - -.author-info { - margin: 0 auto; - max-width: 604px; - padding: 30px 0 10px; - text-align: left; /* gallery & video post formats */ - width: 100%; -} - -.author.sidebar .author-info { - max-width: 1040px; - padding: 30px 376px 10px 60px; -} - -.single .author-info { - padding: 50px 0 0; -} - -.author-avatar .avatar { - float: left; - margin: 0 30px 30px 0; -} - -.single-format-status .author-description { - color: #f7f5e7; -} - -.author-description .author-title { - clear: none; - font: 300 italic 20px "Source Sans Pro", Helvetica, sans-serif; - margin: 0 0 8px; -} - -.author-link { - color: #ca3c08; - margin-left: 2px; -} - -.author.archive .author-link { - display: none; -} - - -/** - * 5.9 Archives - * ---------------------------------------------------------------------------- - */ - -.archive-header { - background-color: #e8e5ce; -} - -.archive-title, -.archive-meta { - font: 300 italic 30px "Source Sans Pro", Helvetica, sans-serif; - margin: 0 auto; - max-width: 1040px; - padding: 30px 0; - width: 100%; -} - -.archive-meta { - font-size: 16px; - font-style: normal; - font-weight: normal; - margin-top: -15px; - padding: 0 0 11px; -} - -.sidebar .archive-meta { - padding-right: 316px; -} - - -/** - * 5.10 Search Results/No posts - * ---------------------------------------------------------------------------- - */ - -.page-header { - background-color: #e8e5ce; -} - -.page-title { - font: 300 italic 30px "Source Sans Pro", Helvetica, sans-serif; - margin: 0 auto; - max-width: 1040px; - padding: 30px 0; - width: 100%; -} - -.page-content { - margin: 0 auto; - max-width: 604px; - padding: 40px 0; - width: 100%; -} - -.sidebar .page-content { - margin: 0 auto; - max-width: 1040px; - padding: 40px 376px 40px 60px; -} - - -/** - * 5.11 404 - * ---------------------------------------------------------------------------- - */ - -.error404 .page-header { - background-color: #fff; -} - -.error404 .page-title { - line-height: 0.6; - margin: 0; - padding: 300px; - position: relative; - text-align: center; - width: auto; -} - -.error404 .page-title:before { - color: #e8e5ce; - content: "\f423"; - font-size: 964px; - line-height: 0.6; - overflow: hidden; - position: absolute; - left: 7px; - top: 28px; -} - -.error404 .page-wrapper { - background-color: #e8e5ce; -} - -.error404 .page-header, -.error404 .page-content { - margin: 0 auto; - max-width: 1040px; - padding-bottom: 40px; - width: 100%; -} - - -/** - * 5.12 Comments - * ---------------------------------------------------------------------------- - */ - -.comments-title, -.comment-list, -.comment-reply-title, -.must-log-in, -.comment-respond .comment-form, -.comment-respond iframe { - display: block; - margin-left: auto; - margin-right: auto; - max-width: 604px; - width: 100%; -} - -.sidebar .comments-title, -.sidebar .comment-list, -.sidebar .must-log-in, -.sidebar .comment-reply-title, -.sidebar .comment-navigation, -.sidebar .comment-respond .comment-form { - max-width: 1040px; - padding-left: 60px; - padding-right: 376px; -} - -.comments-title { - font: 300 italic 28px "Source Sans Pro", Helvetica, sans-serif; -} - -.comment-list, -.comment-list .children { - list-style-type: none; - padding: 0; -} - -.comment-list .children { - margin-left: 20px; -} - -.comment-list > li:after, -.comment-list .children > li:before { - background: url(images/dotted-line.png) repeat left top; - background-size: 4px 4px; - content: ""; - display: block; - height: 1px; - width: 100%; -} - -.comment-list > li:last-child:after { - display: none; -} - -.comment-body { - padding: 24px 0; - position: relative; -} - -.comment-author { - float: left; - max-width: 74px; -} - -.comment-author .avatar { - display: block; - margin-bottom: 10px; -} - -.comment-author .fn { - word-wrap: break-word; -} - -.comment-author .fn, -.comment-author .url, -.comment-reply-link, -.comment-reply-login { - color: #bc360a; - font-size: 14px; - font-style: normal; - font-weight: normal; -} - -.says { - display: none; -} - -.no-avatars .comment-author { - margin: 0 0 5px; - max-width: 100%; - position: relative; -} - -.no-avatars .comment-metadata, -.no-avatars .comment-content, -.no-avatars .comment-list .reply { - width: 100%; -} - -.bypostauthor > .comment-body .fn:before { - content: "\f408"; - vertical-align: text-top; -} - -.comment-list .edit-link { - margin-left: 20px; -} - -.comment-metadata, -.comment-awaiting-moderation, -.comment-content, -.comment-list .reply { - float: right; - width: 79%; - width: -webkit-calc(100% - 124px); - width: calc(100% - 124px); - word-wrap: break-word; -} - -.comment-meta, -.comment-meta a { - color: #a2a2a2; - font-size: 13px; -} - -.comment-meta a:hover { - color: #ea9629; -} - -.comment-metadata { - margin-bottom: 20px; -} - -.ping-meta { - color: #a2a2a2; - font-size: 13px; - line-height: 2; -} - -.comment-awaiting-moderation { - color: #a2a2a2; -} - -.comment-awaiting-moderation:before { - content: "\f414"; - margin-right: 5px; - position: relative; - top: -2px; -} - -.comment-reply-link:before, -.comment-reply-login:before { - content: "\f412"; - margin-right: 3px; -} - -/* Comment form */ -.comment-respond { - background-color: #f7f5e7; - padding: 30px 0; -} - -.comment .comment-respond { - margin-bottom: 20px; - padding: 20px; -} - -.comment-reply-title { - font: 300 italic 28px "Source Sans Pro", Helvetica, sans-serif; -} - -.comment-reply-title small a { - color: #131310; - display: inline-block; - float: right; - height: 16px; - overflow: hidden; - width: 16px; -} - -.comment-reply-title small a:hover { - color: #ed331c; - text-decoration: none; -} - -.comment-reply-title small a:before { - content: "\f406"; - vertical-align: top; -} - -.sidebar .comment-list .comment-reply-title, -.sidebar .comment-list .comment-respond .comment-form { - padding: 0; -} - -.comment-form .comment-notes { - margin-bottom: 15px; -} - -.comment-form .comment-form-author, -.comment-form .comment-form-email, -.comment-form .comment-form-url { - margin-bottom: 8px; -} - -.comment-form [for="author"], -.comment-form [for="email"], -.comment-form [for="url"], -.comment-form [for="comment"] { - float: left; - padding: 5px 0; - width: 120px; -} - -.comment-form .required { - color: #ed331c; -} - -.comment-form input[type="text"], -.comment-form input[type="email"], -.comment-form input[type="url"] { - max-width: 270px; - width: 60%; -} - -.comment-form textarea { - width: 100%; -} - -.form-allowed-tags, -.form-allowed-tags code { - color: #686758; - font-size: 12px; -} - -.form-allowed-tags code { - font-size: 10px; - margin-left: 3px; -} - -.comment-list .pingback, -.comment-list .trackback { - padding-top: 24px; -} - -.comment-navigation { - font-size: 20px; - font-style: italic; - font-weight: 300; - margin: 0 auto; - max-width: 604px; - padding: 20px 0 30px; - width: 100%; -} - -.no-comments { - background-color: #f7f5e7; - font-size: 20px; - font-style: italic; - font-weight: 300; - margin: 0; - padding: 40px 0; - text-align: center; -} - -.sidebar .no-comments { - padding-left: 60px; - padding-right: 376px; -} - - -/** - * 5.13 Multisite - * ---------------------------------------------------------------------------- - */ - -.site-main .mu_register { - margin: 0 auto; - max-width: 604px; - width: 100%; -} - -.mu_alert { - margin-top: 25px; -} - -.site-main .mu_register input[type="submit"], -.site-main .mu_register #blog_title, -.site-main .mu_register #user_email, -.site-main .mu_register #blogname, -.site-main .mu_register #user_name { - font-size: inherit; - width: 270px; -} - -.site-main .mu_register input[type="submit"] { - width: auto; -} - - -/** - * 6.0 Sidebar - * ---------------------------------------------------------------------------- - */ - -.site-main .widget-area { - float: right; - width: 300px; -} - - -/** - * 6.1 Widgets - * ---------------------------------------------------------------------------- - */ - -.widget { - background-color: rgba(247, 245, 231, 0.7); - font-size: 14px; - -webkit-hyphens: auto; - -moz-hyphens: auto; - -ms-hyphens: auto; - hyphens: auto; - margin: 0 0 24px; - padding: 20px; - word-wrap: break-word; -} - -.widget .widget-title { - font: 300 italic 20px "Source Sans Pro", Helvetica, sans-serif; - margin: 0 0 10px; -} - -.widget ul, -.widget ol { - list-style-type: none; - margin: 0; - padding: 0; -} - -.widget li { - padding: 5px 0; -} - -.widget .children li:last-child { - padding-bottom: 0; -} - -.widget li > ul, -.widget li > ol { - margin-left: 20px; -} - -.widget a { - color: #bc360a; -} - -.widget a:hover { - color: #ea9629; -} - -/* Search widget */ -.search-form .search-submit { - display: none; -} - -/* RSS Widget */ -.widget_rss .rss-date { - display: block; -} - -.widget_rss .rss-date, -.widget_rss li > cite { - color: #a2a2a2; -} - -/* Calendar Widget */ -.widget_calendar table, -.widget_calendar td { - border: 0; - border-collapse: separate; - border-spacing: 1px; -} - -.widget_calendar caption { - font-size: 14px; - margin: 0; -} - -.widget_calendar th, -.widget_calendar td { - padding: 0; - text-align: center; -} - -.widget_calendar a { - display: block; -} - -.widget_calendar a:hover { - background-color: rgba(0, 0, 0, 0.15); -} - -.widget_calendar tbody td { - background-color: rgba(255, 255, 255, 0.5); -} - -.site-footer .widget_calendar tbody td { - background-color: rgba(255, 255, 255, 0.05); -} - -.widget_calendar tbody .pad, .site-footer .widget_calendar tbody .pad { - background-color: transparent; -} - - -/** - * 7.0 Footer - * ---------------------------------------------------------------------------- - */ - -.site-footer { - background-color: #e8e5ce; - color: #686758; - font-size: 14px; - text-align: center; -} - -.site-footer .widget-area, -.sidebar .site-footer { - text-align: left; -} - -.site-footer a { - color: #686758; -} - -.site-footer .sidebar-container { - background-color: #220e10; - padding: 20px 0; -} - -.site-footer .widget-area { - margin: 0 auto; - max-width: 1040px; - width: 100%; -} - -.sidebar .site-footer .widget-area { - max-width: 724px; - position: relative; - left: -158px; -} - -.site-footer .widget { - background: transparent; - color: #fff; - float: left; - margin-right: 20px; - width: 245px; -} - -.sidebar .site-footer .widget { - width: 228px; -} - -.sidebar .site-footer .widget:nth-of-type(4), -.sidebar .site-footer .widget:nth-of-type(3) { - margin-right: 0; -} - -.site-footer .widget a { - color: #e6402a; -} - -.site-footer .widget-title, -.site-footer .widget-title a, -.site-footer .wp-caption-text { - color: #fff; -} - -.site-info { - margin: 0 auto; - max-width: 1040px; - padding: 30px 0; - width: 100%; -} - -#wpstats { - display: block; - margin: -10px auto 0; -} - - -/** - * 8.0 Media Queries - * ---------------------------------------------------------------------------- - */ - -/* Does the same thing as , - * but in the future W3C standard way. -ms- prefix is required for IE10+ to - * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor - * the meta tag. See http://core.trac.wordpress.org/ticket/25888. - */ -@-ms-viewport { - width: device-width; -} -@viewport { - width: device-width; -} - -@media (max-width: 1599px) { - .site { - border: 0; - } -} - -@media (max-width: 1069px) { - .sidebar img.alignleft, - .sidebar .wp-caption.alignleft { - margin-left: 0; - } - - .sidebar img.alignright, - .sidebar .wp-caption.alignright { - margin-right: 0; - } - - .error404 .page-header { - margin-left: auto; - max-width: 604px; - width: 100%; - } - - .archive-header, - .search .page-header, - .archive .page-header, - .blog .page-header, - .error404 .page-content, - .search .page-content, - .archive .page-content, - .attachment .entry-header, - .attachment .entry-content, - .post-navigation .nav-links, - .sidebar .site-info, - .site-footer .widget-area { - padding-left: 20px; - padding-right: 20px; - } - - .error404 .page-title { - font-size: 24px; - padding: 180px; - } - - .error404 .page-title:before { - font-size: 554px; - } - - .attachment .image-navigation { - max-width: 724px; - } - - .image-navigation .nav-previous, - .image-navigation .nav-next { - position: static; - } - - .site-main .widget-area { - margin-right: 60px; - } -} - -@media (max-width: 999px) { - .sidebar .entry-header, - .sidebar .entry-content, - .sidebar .entry-summary, - .sidebar .entry-meta, - .sidebar .comment-list, - .sidebar .comment-reply-title, - .sidebar .comment-navigation, - .sidebar .comment-respond .comment-form, - .sidebar .featured-gallery, - .sidebar .post-navigation .nav-links, - .author.sidebar .author-info { - max-width: 604px; - padding-left: 0; - padding-right: 0; - } - - .sidebar .site-info, - .search.sidebar .page-content, - .blog.sidebar .page-content, - .attachment .entry-header, - .sidebar .comments-title { - max-width: 604px; - } - - .sidebar .archive-meta, - .attachment .entry-header, - .search.sidebar .page-content, - .blog.sidebar .page-content, - .sidebar .site-info, - .sidebar .comments-title, - .sidebar .no-comments { - padding-left: 0; - padding-right: 0; - } - - .attachment .entry-meta { - float: left; - text-align: left; - width: 100%; - } - - .attachment .entry-content { - max-width: 100%; - padding: 40px 0; - } - - .format-status .entry-content { - padding-top: 40px; - } - - .format-status .entry-meta { - padding-bottom: 40px; - } - - .sidebar .format-status .entry-content, - .sidebar .format-status .entry-meta { - padding-left: 35px; - } - - .sidebar .format-status .entry-content:before, - .sidebar .format-status .entry-meta:before { - left: 10px; - } - - .sidebar .format-status .entry-content p:first-child:before { - left: 4px; - } - - .sidebar .paging-navigation .nav-links { - padding: 0 60px; - } - - .site-main .sidebar-container { - height: auto; - margin: 0 auto; - max-width: 604px; - position: relative; - top: 20px; - } - - .site-main .widget-area { - float: none; - margin: 0; - width: 100%; - } - - .sidebar .site-footer .widget-area { - max-width: 100%; - left: 0; - } -} - -/* Collapse oversized image and pulled images after iPad breakpoint. */ -@media (max-width: 767px) { - .entry-content img.alignleft, - .entry-content .wp-caption.alignleft { - margin-left: 0; - } - - .entry-content img.alignright, - .entry-content .wp-caption.alignright { - margin-right: 0; - } - - .attachment .image-navigation, - .attachment .entry-attachment .attachment { - max-width: 604px; - padding: 0; - width: 100%; - } - - .gallery-caption { - display: none; - } -} - -@media (max-width: 643px) { - .site-title { - font-size: 30px; - } - - #content .entry-header, - #content .entry-content, - #content .entry-summary, - #content footer.entry-meta, - #content .featured-gallery, - .search.sidebar .page-content, - .blog.sidebar .page-content, - .sidebar .post-navigation .nav-links, - .paging-navigation .nav-links, - #content .author-info, - .comments-area .comments-title, - .comments-area .comment-list, - .comments-area .comment-navigation, - .comment-respond, - .sidebar .site-info, - .sidebar .paging-navigation .nav-links { - padding-left: 20px; - padding-right: 20px; - } - - #content .format-status .entry-content, - #content .format-status .entry-met { - padding-left: 35px; - } - - /* Small menu */ - .menu-toggle { - cursor: pointer; - display: inline-block; - font: bold 16px/1.3 "Source Sans Pro", Helvetica, sans-serif; - margin: 0; - padding: 12px 0 12px 20px; - } - - .menu-toggle:after { - content: "\f502"; - font-size: 12px; - padding-left: 8px; - vertical-align: -4px; - } - - .toggled-on .menu-toggle:after { - content: "\f500"; - vertical-align: 2px; - } - - .toggled-on .nav-menu, - .toggled-on .nav-menu > ul { - display: block; - margin-left: 0; - padding: 0; - width: 100%; - } - - .toggled-on li, - .toggled-on .children { - display: block; - } - - .toggled-on .nav-menu li > ul { - background-color: transparent; - display: block; - float: none; - margin-left: 20px; - position: relative; - left: auto; - top: auto; - } - - .toggled-on .nav-menu li > ul a { - color: #141412; - width: auto; - } - - .toggled-on .nav-menu li:hover > a, - .toggled-on .nav-menu .children a { - background-color: transparent; - color: #141412; - } - - .toggled-on .nav-menu li a:hover, - .toggled-on .nav-menu ul a:hover { - background-color: #db572f; - color: #fff; - } - - ul.nav-menu, - div.nav-menu > ul { - display: none; - } - - #content .featured-gallery { - padding-left: 24px; - } - - .gallery-columns-1 .gallery-item { - margin-right: 0; - width: 100%; - } - - .entry-title, - .format-chat .entry-title, - .format-image .entry-title, - .format-gallery .entry-title, - .format-video .entry-title { - font-size: 22px; - font-weight: bold; - } - - .format-quote blockquote, - .format-status .entry-content { - font-size: 18px; - } - - .format-quote blockquote small, - .format-quote blockquote cite { - font-size: 13px; - } - - .error404 .page-title { - padding: 40px 0 0; - } - - .error404 .page-title:before { - content: normal; - } - - .comment-author { - margin-right: 30px; - } - - .comment-author .avatar { - height: auto; - max-width: 100%; - } - - .comment-metadata, - .comment-content, - .comment-list .reply { - width: 70%; - width: -webkit-calc(100% - 104px); - width: calc(100% - 104px); - } - - .comment-form input[type="text"], - .comment-form input[type="email"], - .comment-form input[type="url"] { - width: -webkit-calc(100% - 120px); - width: calc(100% - 120px); - } - - .comment-form textarea { - height: 80px; /* Smaller field for mobile. */ - } - - /* Audio */ - .format-audio .entry-content:before { - display: none; - } - - .format-audio .audio-content { - background-image: none; - float: none; - padding-left: 0; - width: auto; - } -} - -/* Mobile devices */ -@media (max-width: 359px) { - .gallery { - margin-left: 0; - } - - .gallery .gallery-item, - .gallery-columns-2.gallery-size-thumbnail .gallery-item { - max-width: none; - width: 49%; - width: -webkit-calc(50% - 4px); - width: calc(50% - 4px); - } - - .gallery-columns-1.gallery-size-medium, - .gallery-columns-1.gallery-size-thumbnail, - .gallery-columns-2.gallery-size-thumbnail, - .gallery-columns-3.gallery-size-thumbnail { - display: block; - } - - .gallery-columns-1 .gallery-item, - .gallery-columns-1.gallery-size-medium .gallery-item, - .gallery-columns-1.gallery-size-thumbnail .gallery-item { - text-align: center; - width: 98%; - width: -webkit-calc(100% - 4px); - width: calc(100% - 4px); - } - - .gallery-columns-3 .gallery-item:nth-of-type(3n), - .gallery-columns-5 .gallery-item:nth-of-type(5n), - .gallery-columns-7 .gallery-item:nth-of-type(7n), - .gallery-columns-9 .gallery-item:nth-of-type(9n) { - margin-right: 4px; - } - - .gallery br { - display: none; - } - - .gallery .gallery-item:nth-of-type(even) { - margin-right: 0; - } - - /* Comments */ - .comment-author { - margin: 0 0 5px; - max-width: 100%; - } - - .comment-author .avatar { - display: inline; - margin: 0 5px 0 0; - max-width: 20px; - } - - .comment-metadata, - .comment-content, - .comment-list .reply { - width: 100%; - } -} - - -/** - * 9.0 Print - * ---------------------------------------------------------------------------- - */ - -/* Retina-specific styles. */ -@media print, - (-o-min-device-pixel-ratio: 5/4), - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - .site-header .search-field { - background-image: url(images/search-icon-2x.png); - } - - .format-audio .audio-content, - .format-status .entry-content:before, - .format-status .entry-meta:before, - .comment-list > li:after, - .comment-list .children > li:before { - background-image: url(images/dotted-line-2x.png); - } -} - -@media print { - body { - background: none !important; - color: #000; - font-size: 10pt; - } - - footer a[rel="bookmark"]:link:after, - footer a[rel="bookmark"]:visited:after { - content: " [" attr(href) "] "; /* Show URLs */ - } - - .site { - max-width: 98%; - } - - .site-header { - background-image: none !important; - } - - .site-header .home-link { - max-width: none; - min-height: 0; - } - - .site-title { - color: #000; - font-size: 21pt; - } - - .site-description { - font-size: 10pt; - } - - .author-avatar, - .site-footer, - .comment-respond, - .comments-area .comment-edit-link, - .comments-area .reply, - .comments-link, - .entry-meta .edit-link, - .page-links, - .site-content nav, - .widget-area, - .main-navigation, - .navbar, - .more-link { - display: none; - } - - .entry-header, - .entry-content, - .entry-summary, - .entry-meta { - margin: 0; - width: 100%; - } - - .page-title, - .entry-title { - font-size: 21pt; - } - - .entry-meta, - .entry-meta a { - color: #444; - font-size: 10pt; - } - - .entry-content img.alignleft, - .entry-content .wp-caption.alignleft { - margin-left: 0; - } - - .entry-content img.alignright, - .entry-content .wp-caption.alignright { - margin-right: 0; - } - - .format-image .entry-content .size-full { - margin: 0; - } - - /* Remove colors from post formats */ - .hentry { - background-color: #fff; - } - - /* Comments */ - .comments-area > li.comment { - background: none; - position: relative; - width: auto; - } - - .comment-metadata { - float: none; - } - - .comment-author .fn, - .comment-reply-link, - .comment-reply-login { - color: #333; - } -} \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/tag.php b/wp-content/themes/twentythirteen/tag.php deleted file mode 100644 index 2929321..0000000 --- a/wp-content/themes/twentythirteen/tag.php +++ /dev/null @@ -1,43 +0,0 @@ - - -
      -
      - - -
      -

      - - -
      - -
      - - - - - - - - - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/taxonomy-post_format.php b/wp-content/themes/twentythirteen/taxonomy-post_format.php deleted file mode 100644 index bbec046..0000000 --- a/wp-content/themes/twentythirteen/taxonomy-post_format.php +++ /dev/null @@ -1,41 +0,0 @@ - - -
      -
      - - -
      -

      ' . get_post_format_string( get_post_format() ) . '' ); ?>

      -
      - - - - - - - - - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/404.php b/wp-content/themes/twentytwelve/404.php deleted file mode 100644 index db3ef81..0000000 --- a/wp-content/themes/twentytwelve/404.php +++ /dev/null @@ -1,29 +0,0 @@ - - -
      -
      - -
      -
      -

      -
      - -
      -

      - -
      -
      - -
      -
      - - \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/archive.php b/wp-content/themes/twentytwelve/archive.php deleted file mode 100644 index 2d442bd..0000000 --- a/wp-content/themes/twentytwelve/archive.php +++ /dev/null @@ -1,63 +0,0 @@ - - -
      -
      - - -
      -

      ' . get_the_date() . '' ); - elseif ( is_month() ) : - printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '' ); - elseif ( is_year() ) : - printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '' ); - else : - _e( 'Archives', 'twentytwelve' ); - endif; - ?>

      -
      - - - - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/author.php b/wp-content/themes/twentytwelve/author.php deleted file mode 100644 index 6570108..0000000 --- a/wp-content/themes/twentytwelve/author.php +++ /dev/null @@ -1,84 +0,0 @@ - - -
      -
      - - - - - -
      -

      ' . get_the_author() . '' ); ?>

      -
      - - - - - - -
      -
      - -
      -
      -

      -

      -
      -
      - - - - - - - - - - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/category.php b/wp-content/themes/twentytwelve/category.php deleted file mode 100644 index 0376977..0000000 --- a/wp-content/themes/twentytwelve/category.php +++ /dev/null @@ -1,51 +0,0 @@ - - -
      -
      - - -
      -

      ' . single_cat_title( '', false ) . '' ); ?>

      - - -
      - -
      - - - - - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/comments.php b/wp-content/themes/twentytwelve/comments.php deleted file mode 100644 index d6a733e..0000000 --- a/wp-content/themes/twentytwelve/comments.php +++ /dev/null @@ -1,60 +0,0 @@ - - -
      - - - - -

      - ' . get_the_title() . '' ); - ?> -

      - -
        - 'twentytwelve_comment', 'style' => 'ol' ) ); ?> -
      - - 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> - - - - -

      - - - - - - -
      \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/content-aside.php b/wp-content/themes/twentytwelve/content-aside.php deleted file mode 100644 index 4a84ae7..0000000 --- a/wp-content/themes/twentytwelve/content-aside.php +++ /dev/null @@ -1,28 +0,0 @@ - - -
      > -
      -

      -
      - →', 'twentytwelve' ) ); ?> -
      -
      - -
      - - - - - ', '' ); ?> -
      -
      diff --git a/wp-content/themes/twentytwelve/content-image.php b/wp-content/themes/twentytwelve/content-image.php deleted file mode 100644 index a683b83..0000000 --- a/wp-content/themes/twentytwelve/content-image.php +++ /dev/null @@ -1,28 +0,0 @@ - - -
      > -
      - →', 'twentytwelve' ) ); ?> -
      - -
      - -

      -

      -
      - - - - ', '' ); ?> -
      -
      diff --git a/wp-content/themes/twentytwelve/content-link.php b/wp-content/themes/twentytwelve/content-link.php deleted file mode 100644 index 31e4ec9..0000000 --- a/wp-content/themes/twentytwelve/content-link.php +++ /dev/null @@ -1,26 +0,0 @@ - - -
      > -
      -
      - →', 'twentytwelve' ) ); ?> -
      - -
      - - - - - ', '' ); ?> -
      -
      diff --git a/wp-content/themes/twentytwelve/content-none.php b/wp-content/themes/twentytwelve/content-none.php deleted file mode 100644 index b775782..0000000 --- a/wp-content/themes/twentytwelve/content-none.php +++ /dev/null @@ -1,20 +0,0 @@ - - -
      -
      -

      -
      - -
      -

      - -
      -
      diff --git a/wp-content/themes/twentytwelve/content-page.php b/wp-content/themes/twentytwelve/content-page.php deleted file mode 100644 index 0abcbf7..0000000 --- a/wp-content/themes/twentytwelve/content-page.php +++ /dev/null @@ -1,26 +0,0 @@ - - -
      > -
      - - - -

      -
      - -
      - - '' ) ); ?> -
      -
      - ', '' ); ?> -
      -
      diff --git a/wp-content/themes/twentytwelve/content-quote.php b/wp-content/themes/twentytwelve/content-quote.php deleted file mode 100644 index 0a98a96..0000000 --- a/wp-content/themes/twentytwelve/content-quote.php +++ /dev/null @@ -1,25 +0,0 @@ - - -
      > -
      - →', 'twentytwelve' ) ); ?> -
      - -
      - - - - - ', '' ); ?> -
      -
      diff --git a/wp-content/themes/twentytwelve/content-status.php b/wp-content/themes/twentytwelve/content-status.php deleted file mode 100644 index 55b72db..0000000 --- a/wp-content/themes/twentytwelve/content-status.php +++ /dev/null @@ -1,42 +0,0 @@ - - -
      > -
      -
      -

      -

      -
      - -
      - -
      - →', 'twentytwelve' ) ); ?> -
      - -
      - - - - ', '' ); ?> -
      -
      diff --git a/wp-content/themes/twentytwelve/content.php b/wp-content/themes/twentytwelve/content.php deleted file mode 100644 index 56493ed..0000000 --- a/wp-content/themes/twentytwelve/content.php +++ /dev/null @@ -1,73 +0,0 @@ - - -
      > - -
      - -
      - -
      - - - -

      - -

      - -

      - - - - -
      - - -
      - -
      - -
      - →', 'twentytwelve' ) ); ?> - '' ) ); ?> -
      - - - -
      diff --git a/wp-content/themes/twentytwelve/css/ie.css b/wp-content/themes/twentytwelve/css/ie.css deleted file mode 100644 index 4d4f542..0000000 --- a/wp-content/themes/twentytwelve/css/ie.css +++ /dev/null @@ -1,258 +0,0 @@ -/* -Styles for older IE versions (previous to IE9). -*/ - -body { - background-color: #e6e6e6; -} -body.custom-background-empty { - background-color: #fff; -} -body.custom-background-empty .site, -body.custom-background-white .site { - box-shadow: none; - margin-bottom: 0; - margin-top: 0; - padding: 0; -} -.assistive-text, -.site .screen-reader-text { - clip: rect(1px 1px 1px 1px); /* IE7 */ -} -.full-width .site-content { - float: none; - width: 100%; -} -img.size-full, -img.size-large, -img.header-image, -img.wp-post-image, -img[class*="align"], -img[class*="wp-image-"], -img[class*="attachment-"] { - width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */ -} -.author-avatar { - float: left; - margin-top: 8px; - margin-top: 0.571428571rem; -} -.author-description { - float: right; - width: 80%; -} -.site { - box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3); - margin: 48px auto; - max-width: 960px; - overflow: hidden; - padding: 0 40px; -} -.site-content { - float: left; - width: 65.104166667%; -} -body.template-front-page .site-content, -body.attachment .site-content, -body.full-width .site-content { - width: 100%; -} -.widget-area { - float: right; - width: 26.041666667%; -} -.site-header h1, -.site-header h2 { - text-align: left; -} -.site-header h1 { - font-size: 26px; - line-height: 1.846153846; -} -.main-navigation ul.nav-menu, -.main-navigation div.nav-menu > ul { - border-bottom: 1px solid #ededed; - border-top: 1px solid #ededed; - display: inline-block !important; - text-align: left; - width: 100%; -} -.main-navigation ul { - margin: 0; - text-indent: 0; -} -.main-navigation li a, -.main-navigation li { - display: inline-block; - text-decoration: none; -} -.ie7 .main-navigation li a, -.ie7 .main-navigation li { - display: inline; -} -.main-navigation li a { - border-bottom: 0; - color: #6a6a6a; - line-height: 3.692307692; - text-transform: uppercase; -} -.main-navigation li a:hover { - color: #000; -} -.main-navigation li { - margin: 0 40px 0 0; - position: relative; -} -.main-navigation li ul { - margin: 0; - padding: 0; - position: absolute; - top: 100%; - z-index: 1; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(1px, 1px, 1px, 1px); -} -.ie7 .main-navigation li ul { - clip: inherit; - display: none; - left: 0; - overflow: visible; -} -.main-navigation li ul ul, -.ie7 .main-navigation li ul ul { - top: 0; - left: 100%; -} -.main-navigation ul li:hover > ul, -.main-navigation ul li:focus > ul, -.main-navigation .focus > ul { - border-left: 0; - clip: inherit; - overflow: inherit; - height: inherit; - width: inherit; -} -.ie7 .main-navigation ul li:hover > ul, -.ie7 .main-navigation ul li:focus > ul { - display: block; -} -.main-navigation li ul li a { - background: #efefef; - border-bottom: 1px solid #ededed; - display: block; - font-size: 11px; - line-height: 2.181818182; - padding: 8px 10px; - width: 180px; -} -.main-navigation li ul li a:hover { - background: #e3e3e3; - color: #444; -} -.main-navigation .current-menu-item > a, -.main-navigation .current-menu-ancestor > a, -.main-navigation .current_page_item > a, -.main-navigation .current_page_ancestor > a { - color: #636363; - font-weight: bold; -} -.menu-toggle { - display: none; -} -.entry-header .entry-title { - font-size: 22px; -} -#respond form input[type="text"] { - width: 46.333333333%; -} -#respond form textarea.blog-textarea { - width: 79.666666667%; -} -.template-front-page .site-content, -.template-front-page article { - overflow: hidden; -} -.template-front-page.has-post-thumbnail article { - float: left; - width: 47.916666667%; -} -.entry-page-image { - float: right; - margin-bottom: 0; - width: 47.916666667%; -} -.template-front-page .widget-area .widget, -.template-front-page.two-sidebars .widget-area .front-widgets { - float: left; - margin-bottom: 24px; - width: 51.875%; -} -.template-front-page .widget-area .widget:nth-child(odd) { - clear: right; -} -.template-front-page .widget-area .widget:nth-child(even), -.template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets { - float: right; - margin: 0 0 24px; - width: 39.0625%; -} -.template-front-page.two-sidebars .widget, -.template-front-page.two-sidebars .widget:nth-child(even) { - float: none; - width: auto; -} - -/* =RTL overrides for IE7 and IE8 --------------------------------------------------------------- */ -.rtl .site-header h1, -.rtl .site-header h2 { - text-align: right; -} -.rtl .widget-area, -.rtl .author-description { - float: left; -} -.rtl .author-avatar, -.rtl .site-content { - float: right; -} -.rtl .main-navigation ul.nav-menu, -.rtl .main-navigation div.nav-menu > ul { - text-align: right; -} -.rtl .main-navigation ul li ul li, -.rtl .main-navigation ul li ul li ul li { - margin-left: 40px; - margin-right: auto; -} -.rtl .main-navigation li ul ul { - position: absolute; - bottom: 0; - right: 100%; - z-index: 1; -} -.ie7 .rtl .main-navigation li ul ul { - position: absolute; - bottom: 0; - right: 100%; - z-index: 1; -} -.ie7 .rtl .main-navigation ul li { - z-index: 99; -} -.ie7 .rtl .main-navigation li ul { - position: absolute; - bottom: 100%; - right: 0; - z-index: 1; -} -.ie7 .rtl .main-navigation li { - margin-right: auto; - margin-left: 40px; -} -.ie7 .rtl .main-navigation li ul ul ul { - position: relative; - z-index: 1; -} \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/editor-style-rtl.css b/wp-content/themes/twentytwelve/editor-style-rtl.css deleted file mode 100644 index 5fd832c..0000000 --- a/wp-content/themes/twentytwelve/editor-style-rtl.css +++ /dev/null @@ -1,28 +0,0 @@ -/* -Theme Name: Twenty Twelve -Description: Used to style the TinyMCE editor for RTL languages. -See also rtl.css file. -*/ - -html .mceContentBody { - direction: rtl; - unicode-bidi: embed; -} -li { - margin: 0 24px 0 0; - margin: 0 1.714285714rem 0 0; -} -dl { - margin: 0 24px; - margin: 0 1.714285714rem; -} -tr th { - text-align: right; -} -td { - padding: 6px 0 6px 10px; - text-align: right; -} -.wp-caption { - text-align: right; -} \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/editor-style.css b/wp-content/themes/twentytwelve/editor-style.css deleted file mode 100644 index 24e9b24..0000000 --- a/wp-content/themes/twentytwelve/editor-style.css +++ /dev/null @@ -1,342 +0,0 @@ -/* -Theme Name: Twenty Twelve -Description: Used to style the TinyMCE editor. -*/ - -html { - font-size: 87.5%; -} -html .mceContentBody { - max-width: 625px; -} -body { - color: #444; - font-family: "Open Sans", Helvetica, Arial, sans-serif; - font-size: 14px; - font-size: 1rem; - line-height: 1; - text-rendering: optimizeLegibility; - vertical-align: baseline; -} - - -/* =Headings --------------------------------------------------------------- */ - -h1, -h2, -h3, -h4, -h5, -h6 { - clear: both; - line-height: 1.846153846; - margin: 24px 0; - margin: 1.714285714rem 0; -} -h1 { - font-size: 21px; - font-size: 1.5rem; - line-height: 1.5; -} -h2 { - font-size: 18px; - font-size: 1.285714286rem; - line-height: 1.6; -} -h3 { - font-size: 16px; - font-size: 1.142857143rem; -} -h4 { - font-size: 14px; - font-size: 1rem; -} -h5 { - font-size: 13px; - font-size: 0.928571429rem; -} -h6 { - font-size: 12px; - font-size: 0.857142857rem; -} -hr { - background-color: #ccc; - border: 0; - height: 1px; - margin: 24px; - margin-bottom: 1.714285714rem; -} - - -/* =Text elements --------------------------------------------------------------- */ - -p { - line-height: 1.714285714; - margin: 0 0 24px; - margin: 0 0 1.714285714rem; -} -ul, -ol { - margin: 0 0 24px; - margin: 0 0 1.714285714rem; - line-height: 1.714285714; - padding: 0; -} -ul { - list-style: disc outside; -} -ol { - list-style: decimal outside; -} -ul ul, -ol ol, -ul ol, -ol ul { - margin-bottom: 0; -} -li { - margin: 0 0 0 24px; - margin: 0 0 0 1.714285714rem; -} -dl { - margin: 0 24px; - margin: 0 1.714285714rem; -} -dt { - font-weight: bold; - margin-bottom: 24px; - margin-bottom: 1.714285714rem; -} -dd { - line-height: 1.714285714; - margin: 0 0 24px; - margin: 0 0 1.714285714rem; -} -strong { - font-weight: bold; -} -cite, -em, -i { - font-style: italic; -} -cite { - border: none; -} -big { - font-size: 128.571429%; -} -.mceContentBody blockquote { - font-style: italic !important; - font-weight: normal; - margin: 0; - padding: 24px; - padding: 1.714285714rem; -} -pre { - border: 1px solid #ededed; - color: #666; - font-family: Consolas, Monaco, Lucida Console, monospace; - font-size: 12px; - font-size: 0.857142857rem; - line-height: 1.714285714; - margin: 24px 0; - margin: 1.714285714rem 0; - overflow: auto; - padding: 24px; - padding: 1.714285714rem; -} -code, -kbd, -samp, -var { - font-family: Consolas, Monaco, Lucida Console, monospace; - font-size: 12px; - font-size: 0.857142857rem; - line-height: 2; -} -abbr, -acronym, -dfn { - border-bottom: 1px dotted #666; - cursor: help; -} -address { - display: block; - line-height: 1.714285714; - margin: 0 0 24px; - margin: 0 0 1.714285714rem; -} -del { - color: #333; -} -ins { - background: #fff9c0; - border: none; - color: #333; - text-decoration: none; -} -sup, -sub { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} -sup { - top: -0.5em; -} -sub { - bottom: -0.25em; -} -input[type="text"] { - border: 1px solid #ccc; - border-radius: 3px; - font-family: inherit; - padding: 6px; - padding: 0.428571429rem; -} -textarea { - border: 1px solid #d5d2ca; - border-radius: 3px; - font-family: inherit; - font-size: 12px; - font-size: 0.857142857rem; - line-height: 1.714285714; - padding: 10px; - padding: 0.714285714rem; - width: 96%; -} - - -/* =Links --------------------------------------------------------------- */ - -a, -a em, -a strong { - color: #21759b; - outline: none; -} -a:focus, -a:active, -a:hover { - color: #0f3647; -} - - -/* =Alignment --------------------------------------------------------------- */ - -.alignleft { - display: inline; - float: left; - margin: 12px 24px 12px 0; - margin: 0.857142857rem 1.714285714rem 0.857142857rem 0; -} -.alignright { - display: inline; - float: right; - margin: 12px 0 12px 24px; - margin: 0.857142857rem 0 0.857142857rem 1.714285714rem; -} -.aligncenter { - clear: both; - display: block; - margin-top: 12px; - margin-top: 0.857142857rem; - margin-bottom: 12px; - margin-bottom: 0.857142857rem; -} - - -/* =Tables --------------------------------------------------------------- */ - -table { - border-bottom: 1px solid #ededed; - border-collapse: collapse; - border-spacing: 0; - color: #757575; - font-size: 12px; - font-size: 0.857142857rem; - line-height: 2; - margin: 0 0 24px; - margin: 0 0 1.714285714rem; - width: 100%; -} -tr th { - color: #636363; - font-size: 11px; - font-size: 0.785714286rem; - font-weight: bold; - line-height: 2.181818182; - text-align: left; - text-transform: uppercase; -} -td { - border-top: 1px solid #ededed !important; - color: #757575; - font-size: inherit; - font-weight: normal; - padding: 6px 10px 6px 0; - text-align: left; -} - - -/* =Images --------------------------------------------------------------- */ - -img, -.editor-attachment { - border: 0; - border-radius: 3px; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); - max-width: 100%; -} -img.size-full { - width: auto/9; /* Prevent stretching of full-size images in IE8 */ -} -img[class*="wp-image-"] { - height: auto; - max-width: 100%; -} -img[class*="align"], -img[class*="wp-image-"], -img[class*="attachment-"] { - height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ -} -img.mce-wp-nextpage { - border-radius: 0; - box-shadow: none; -} -img.wp-smiley { - border: 0; - border-radius: 0; - box-shadow: none; - margin-bottom: 0; - margin-top: 0; - padding: 0; -} -.wp-caption { - background: transparent; - border: none; - margin: 0; - padding: 4px; - text-align: left; -} -.wp-caption-dt { - margin: 0; -} -.wp-caption .wp-caption-text, -.wp-caption-dd { - color: #757575; - font-style: italic; - font-size: 12px; - font-size: 0.857142857rem; - line-height: 2; - margin: 0 0 24px; - margin: 0 0 1.71429rem; -} diff --git a/wp-content/themes/twentytwelve/footer.php b/wp-content/themes/twentytwelve/footer.php deleted file mode 100644 index 79848d3..0000000 --- a/wp-content/themes/twentytwelve/footer.php +++ /dev/null @@ -1,23 +0,0 @@ - -
      -
      -
      - - -
      -
      -
      - - - - \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php deleted file mode 100644 index c4055ba..0000000 --- a/wp-content/themes/twentytwelve/functions.php +++ /dev/null @@ -1,499 +0,0 @@ - for posts and comments. - add_theme_support( 'automatic-feed-links' ); - - // This theme supports a variety of post formats. - add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) ); - - // This theme uses wp_nav_menu() in one location. - register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); - - /* - * This theme supports custom background color and image, - * and here we also set up the default background color. - */ - add_theme_support( 'custom-background', array( - 'default-color' => 'e6e6e6', - ) ); - - // This theme uses a custom image size for featured images, displayed on "standard" posts. - add_theme_support( 'post-thumbnails' ); - set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop -} -add_action( 'after_setup_theme', 'twentytwelve_setup' ); - -/** - * Add support for a custom header image. - */ -require( get_template_directory() . '/inc/custom-header.php' ); - -/** - * Return the Google font stylesheet URL if available. - * - * The use of Open Sans by default is localized. For languages that use - * characters not supported by the font, the font can be disabled. - * - * @since Twenty Twelve 1.2 - * - * @return string Font stylesheet or empty string if disabled. - */ -function twentytwelve_get_font_url() { - $font_url = ''; - - /* translators: If there are characters in your language that are not supported - * by Open Sans, translate this to 'off'. Do not translate into your own language. - */ - if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) { - $subsets = 'latin,latin-ext'; - - /* translators: To add an additional Open Sans character subset specific to your language, - * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language. - */ - $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' ); - - if ( 'cyrillic' == $subset ) - $subsets .= ',cyrillic,cyrillic-ext'; - elseif ( 'greek' == $subset ) - $subsets .= ',greek,greek-ext'; - elseif ( 'vietnamese' == $subset ) - $subsets .= ',vietnamese'; - - $protocol = is_ssl() ? 'https' : 'http'; - $query_args = array( - 'family' => 'Open+Sans:400italic,700italic,400,700', - 'subset' => $subsets, - ); - $font_url = add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" ); - } - - return $font_url; -} - -/** - * Enqueue scripts and styles for front-end. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_scripts_styles() { - global $wp_styles; - - /* - * Adds JavaScript to pages with the comment form to support - * sites with threaded comments (when in use). - */ - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) - wp_enqueue_script( 'comment-reply' ); - - // Adds JavaScript for handling the navigation menu hide-and-show behavior. - wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20140318', true ); - - $font_url = twentytwelve_get_font_url(); - if ( ! empty( $font_url ) ) - wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); - - // Loads our main stylesheet. - wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); - - // Loads the Internet Explorer specific stylesheet. - wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' ); - $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' ); -} -add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' ); - -/** - * Filter TinyMCE CSS path to include Google Fonts. - * - * Adds additional stylesheets to the TinyMCE editor if needed. - * - * @uses twentytwelve_get_font_url() To get the Google Font stylesheet URL. - * - * @since Twenty Twelve 1.2 - * - * @param string $mce_css CSS path to load in TinyMCE. - * @return string Filtered CSS path. - */ -function twentytwelve_mce_css( $mce_css ) { - $font_url = twentytwelve_get_font_url(); - - if ( empty( $font_url ) ) - return $mce_css; - - if ( ! empty( $mce_css ) ) - $mce_css .= ','; - - $mce_css .= esc_url_raw( str_replace( ',', '%2C', $font_url ) ); - - return $mce_css; -} -add_filter( 'mce_css', 'twentytwelve_mce_css' ); - -/** - * Filter the page title. - * - * Creates a nicely formatted and more specific title element text - * for output in head of document, based on current view. - * - * @since Twenty Twelve 1.0 - * - * @param string $title Default title text for current view. - * @param string $sep Optional separator. - * @return string Filtered title. - */ -function twentytwelve_wp_title( $title, $sep ) { - global $paged, $page; - - if ( is_feed() ) - return $title; - - // Add the site name. - $title .= get_bloginfo( 'name', 'display' ); - - // Add the site description for the home/front page. - $site_description = get_bloginfo( 'description', 'display' ); - if ( $site_description && ( is_home() || is_front_page() ) ) - $title = "$title $sep $site_description"; - - // Add a page number if necessary. - if ( $paged >= 2 || $page >= 2 ) - $title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) ); - - return $title; -} -add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 ); - -/** - * Filter the page menu arguments. - * - * Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_page_menu_args( $args ) { - if ( ! isset( $args['show_home'] ) ) - $args['show_home'] = true; - return $args; -} -add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); - -/** - * Register sidebars. - * - * Registers our main widget area and the front page widget areas. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_widgets_init() { - register_sidebar( array( - 'name' => __( 'Main Sidebar', 'twentytwelve' ), - 'id' => 'sidebar-1', - 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ), - 'before_widget' => '', - 'before_title' => '

      ', - 'after_title' => '

      ', - ) ); - - register_sidebar( array( - 'name' => __( 'First Front Page Widget Area', 'twentytwelve' ), - 'id' => 'sidebar-2', - 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), - 'before_widget' => '', - 'before_title' => '

      ', - 'after_title' => '

      ', - ) ); - - register_sidebar( array( - 'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ), - 'id' => 'sidebar-3', - 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), - 'before_widget' => '', - 'before_title' => '

      ', - 'after_title' => '

      ', - ) ); -} -add_action( 'widgets_init', 'twentytwelve_widgets_init' ); - -if ( ! function_exists( 'twentytwelve_content_nav' ) ) : -/** - * Displays navigation to next/previous pages when applicable. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_content_nav( $html_id ) { - global $wp_query; - - $html_id = esc_attr( $html_id ); - - if ( $wp_query->max_num_pages > 1 ) : ?> - - comment_type ) : - case 'pingback' : - case 'trackback' : - // Display trackbacks differently than normal comments. - ?> -
    • id="comment-"> -

      ', '' ); ?>

      - -
    • id="li-comment-"> -
      -
      - %1$s %2$s', - get_comment_author_link(), - // If current post author is also comment author, make it known visually. - ( $comment->user_id === $post->post_author ) ? '' . __( 'Post author', 'twentytwelve' ) . '' : '' - ); - printf( '', - esc_url( get_comment_link( $comment->comment_ID ) ), - get_comment_time( 'c' ), - /* translators: 1: date, 2: time */ - sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) - ); - ?> -
      - - comment_approved ) : ?> -

      - - -
      - - ', '

      ' ); ?> -
      - -
      - __( 'Reply', 'twentytwelve' ), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> -
      -
      - ', - esc_url( get_permalink() ), - esc_attr( get_the_time() ), - esc_attr( get_the_date( 'c' ) ), - esc_html( get_the_date() ) - ); - - $author = sprintf( '', - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), - esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ), - get_the_author() - ); - - // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. - if ( $tag_list ) { - $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'twentytwelve' ); - } elseif ( $categories_list ) { - $utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'twentytwelve' ); - } else { - $utility_text = __( 'This entry was posted on %3$s by %4$s.', 'twentytwelve' ); - } - - printf( - $utility_text, - $categories_list, - $tag_list, - $date, - $author - ); -} -endif; - -/** - * Extend the default WordPress body classes. - * - * Extends the default WordPress body class to denote: - * 1. Using a full-width layout, when no active widgets in the sidebar - * or full-width template. - * 2. Front Page template: thumbnail in use and number of sidebars for - * widget areas. - * 3. White or empty background color to change the layout and spacing. - * 4. Custom fonts enabled. - * 5. Single or multiple authors. - * - * @since Twenty Twelve 1.0 - * - * @param array $classes Existing class values. - * @return array Filtered class values. - */ -function twentytwelve_body_class( $classes ) { - $background_color = get_background_color(); - $background_image = get_background_image(); - - if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) - $classes[] = 'full-width'; - - if ( is_page_template( 'page-templates/front-page.php' ) ) { - $classes[] = 'template-front-page'; - if ( has_post_thumbnail() ) - $classes[] = 'has-post-thumbnail'; - if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) - $classes[] = 'two-sidebars'; - } - - if ( empty( $background_image ) ) { - if ( empty( $background_color ) ) - $classes[] = 'custom-background-empty'; - elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) - $classes[] = 'custom-background-white'; - } - - // Enable custom font class only if the font CSS is queued to load. - if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) - $classes[] = 'custom-font-enabled'; - - if ( ! is_multi_author() ) - $classes[] = 'single-author'; - - return $classes; -} -add_filter( 'body_class', 'twentytwelve_body_class' ); - -/** - * Adjust content width in certain contexts. - * - * Adjusts content_width value for full-width and single image attachment - * templates, and when there are no active widgets in the sidebar. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_content_width() { - if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) { - global $content_width; - $content_width = 960; - } -} -add_action( 'template_redirect', 'twentytwelve_content_width' ); - -/** - * Register postMessage support. - * - * Add postMessage support for site title and description for the Customizer. - * - * @since Twenty Twelve 1.0 - * - * @param WP_Customize_Manager $wp_customize Customizer object. - */ -function twentytwelve_customize_register( $wp_customize ) { - $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; - $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; - $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; -} -add_action( 'customize_register', 'twentytwelve_customize_register' ); - -/** - * Enqueue Javascript postMessage handlers for the Customizer. - * - * Binds JS handlers to make the Customizer preview reload changes asynchronously. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_customize_preview_js() { - wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20130301', true ); -} -add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' ); diff --git a/wp-content/themes/twentytwelve/header.php b/wp-content/themes/twentytwelve/header.php deleted file mode 100644 index eb64b68..0000000 --- a/wp-content/themes/twentytwelve/header.php +++ /dev/null @@ -1,53 +0,0 @@ - section and everything up till
      - * - * @package WordPress - * @subpackage Twenty_Twelve - * @since Twenty Twelve 1.0 - */ -?> - - - -> - - - - -<?php wp_title( '|', true, 'right' ); ?> - - - - - - - -> -
      - - -
      \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/image.php b/wp-content/themes/twentytwelve/image.php deleted file mode 100644 index 285e453..0000000 --- a/wp-content/themes/twentytwelve/image.php +++ /dev/null @@ -1,116 +0,0 @@ - - -
      -
      - - - -
      > -
      -

      - -
      - Published at %4$s × %5$s in %8$s.', 'twentytwelve' ), - esc_attr( get_the_date( 'c' ) ), - esc_html( get_the_date() ), - esc_url( wp_get_attachment_url() ), - $metadata['width'], - $metadata['height'], - esc_url( get_permalink( $post->post_parent ) ), - esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ), - get_the_title( $post->post_parent ) - ); - ?> - ', '' ); ?> -
      - - -
      - -
      - -
      -
      - $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); -foreach ( $attachments as $k => $attachment ) : - if ( $attachment->ID == $post->ID ) - break; -endforeach; - -$k++; -// If there is more than 1 attachment in a gallery -if ( count( $attachments ) > 1 ) : - if ( isset( $attachments[ $k ] ) ) : - // get the URL of the next image attachment - $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); - else : - // or get the URL of the first image attachment - $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); - endif; -else : - // or, if there's only 1 image, get the URL of the image - $next_attachment_url = wp_get_attachment_url(); -endif; -?> - ID, $attachment_size ); - ?> - - post_excerpt ) ) : ?> -
      - -
      - -
      - -
      - -
      - - '' ) ); ?> -
      - -
      - -
      - - - - - -
      -
      - - \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/inc/custom-header.php b/wp-content/themes/twentytwelve/inc/custom-header.php deleted file mode 100644 index 1657eff..0000000 --- a/wp-content/themes/twentytwelve/inc/custom-header.php +++ /dev/null @@ -1,165 +0,0 @@ - '515151', - 'default-image' => '', - - // Set height and width, with a maximum value for the width. - 'height' => 250, - 'width' => 960, - 'max-width' => 2000, - - // Support flexible height and width. - 'flex-height' => true, - 'flex-width' => true, - - // Random image rotation off by default. - 'random-default' => false, - - // Callbacks for styling the header and the admin preview. - 'wp-head-callback' => 'twentytwelve_header_style', - 'admin-head-callback' => 'twentytwelve_admin_header_style', - 'admin-preview-callback' => 'twentytwelve_admin_header_image', - ); - - add_theme_support( 'custom-header', $args ); -} -add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' ); - -/** - * Load our special font CSS file. - * - * @since Twenty Twelve 1.2 - */ -function twentytwelve_custom_header_fonts() { - $font_url = twentytwelve_get_font_url(); - if ( ! empty( $font_url ) ) - wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); -} -add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' ); - -/** - * Style the header text displayed on the blog. - * - * get_header_textcolor() options: 515151 is default, hide text (returns 'blank'), or any hex value. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_header_style() { - $text_color = get_header_textcolor(); - - // If no custom options for text are set, let's bail - if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) - return; - - // If we get this far, we have custom styles. - ?> - - Header admin panel. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_admin_header_style() { -?> - - Header admin panel. - * - * This callback overrides the default markup displayed there. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_admin_header_image() { - ?> - - - -
      -
      - - - - - - - - - - - -
      - - -
      -

      -
      - -
      -

      Get started here.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?>

      -
      - - -
      -

      -
      - -
      -

      - -
      - - -
      - - - -
      -
      - - - \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/js/html5.js b/wp-content/themes/twentytwelve/js/html5.js deleted file mode 100644 index 6168aac..0000000 --- a/wp-content/themes/twentytwelve/js/html5.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); -a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; -c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| -"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f); -if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d