Changeset 354761
- Timestamp:
- 10/20/2026 08:33:33 PM (13 hours ago)
- Location:
- zombie-apocalypse/2.2.0
- Files:
-
- 2 added
- 6 deleted
- 38 edited
- 1 copied
-
. (copied) (copied from zombie-apocalypse/2.1.0 )
-
404.php (modified) (2 diffs)
-
admin.php (deleted)
-
admin/css/admin.css (modified) (2 diffs)
-
admin/defaults.php (modified) (4 diffs)
-
admin/images/icon-facebook.png (deleted)
-
admin/images/icon-googleplus.png (deleted)
-
admin/images/icon-twitter.png (deleted)
-
admin/js/accordion-slider.js (deleted)
-
admin/js/admin.js (modified) (5 diffs)
-
admin/main.php (modified) (8 diffs)
-
admin/options.php (modified) (22 diffs)
-
archive.php (modified) (1 diff)
-
attachment.php (modified) (4 diffs)
-
author.php (modified) (2 diffs)
-
category.php (modified) (1 diff)
-
comments.php (modified) (3 diffs)
-
cryout/admin.php (modified) (4 diffs)
-
cryout/css/customizer.css (modified) (5 diffs)
-
cryout/customizer.php (modified) (13 diffs)
-
cryout/js/customizer.js (modified) (2 diffs)
-
cryout/prototypes.php (modified) (3 diffs)
-
footer.php (modified) (1 diff)
-
functions.php (modified) (2 diffs)
-
header.php (modified) (4 diffs)
-
images/headers/blood-thumbnail.jpg (modified) ( previous)
-
images/headers/blood.jpg (modified) ( previous)
-
images/headers/door-thumbnail.jpg (modified) ( previous)
-
images/headers/door.jpg (modified) ( previous)
-
images/headers/red-thumbnail.jpg (modified) ( previous)
-
images/headers/red.jpg (modified) ( previous)
-
images/splatter.jpg (modified) ( previous)
-
images/topper.jpg (modified) ( previous)
-
includes/custom-style.php (added)
-
includes/theme-functions.php (modified) (11 diffs)
-
index.php (modified) (1 diff)
-
js (deleted)
-
loop.php (modified) (9 diffs)
-
menu.js (added)
-
readme.txt (modified) (3 diffs)
-
rtl.css (modified) (2 diffs)
-
search.php (modified) (2 diffs)
-
searchform.php (modified) (1 diff)
-
sidebar.php (modified) (4 diffs)
-
single.php (modified) (1 diff)
-
style.css (modified) (22 diffs)
-
tag.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
zombie-apocalypse/2.2.0/404.php
r82951 r354761 14 14 15 15 <div id="post-0" class="post error404 not-found"> 16 <h1 class="entry-title"><?php _e( 'Not Found', 'zombie-apocalypse' ); ?></h1>16 <h1 class="entry-title"><?php esc_html_e( 'Not Found', 'zombie-apocalypse' ); ?></h1> 17 17 <div class="entry-content"> 18 <p><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'zombie-apocalypse' ); ?></p>18 <p><?php esc_html_e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'zombie-apocalypse' ); ?></p> 19 19 <?php get_search_form(); ?> 20 20 </div><!-- .entry-content --> … … 23 23 </div><!-- #content --> 24 24 </div><!-- #container --> 25 <script type="text/javascript">26 // focus on search field after it has loaded27 document.getElementById('s') && document.getElementById('s').focus();28 </script>29 25 <?php get_sidebar(); ?> 30 26 <?php get_footer(); ?> -
zombie-apocalypse/2.2.0/admin/css/admin.css
r82951 r354761 6 6 } 7 7 8 .donate, . export, .news {8 .donate, .news { 9 9 width: 100%; 10 10 margin: 0; … … 128 128 } 129 129 130 .social-buttons {131 text-align: center;132 }133 .social-buttons a {134 display: inline-block;135 }136 .social-buttons a img {137 max-width: 32px;138 max-height: 32px;139 }140 .social-buttons a img + img {141 margin-left: 10px;142 }143 144 130 /* =RTL ADMIN 145 131 --------------------------------*/ -
zombie-apocalypse/2.2.0/admin/defaults.php
r82951 r354761 1 1 <?php 2 3 if (!defined('ABSPATH')) { 4 exit; // Exit if accessed directly 5 } 2 6 3 7 function zombie_get_option_defaults() { … … 7 11 8 12 "zmb_side" => "Right", 9 "zmb_sidewidth" => 650,13 "zmb_sidewidth" => "650px", 10 14 "zmb_colpad" => "10px", 15 "zmb_mpadding" => "0em", // 0em = original 11 16 12 17 "zmb_fontsize" => "15px", 13 "zmb_fontfamily" => "Verdana", 18 "zmb_listsize" => "80%", 19 "zmb_fontfamily" => "Verdana, Geneva, sans-serif ", 14 20 "zmb_textalign" => "Default", 15 21 "zmb_parindent" => "0px", … … 25 31 "zmb_puddle" => "Show", 26 32 "zmb_info" => "Show", 27 "zmb_menu" => " Enable",33 "zmb_menu" => "Disable", 28 34 "zmb_tables" => "Disable", 35 "zmb_safemode" => "Disable", 29 36 "zmb_copyright" => "", 30 37 31 38 "zmb_postdate" => "Show", 32 "zmb_posttime" => " Hide",39 "zmb_posttime" => "Show", 33 40 "zmb_postauthor" => "Show", 34 41 "zmb_postcateg" => "Show", … … 37 44 ); 38 45 46 // Sites that saved their font size before the lists font size option existed keep their lists at the same size as the text 47 $zombie_saved = get_option( 'za_options' ); 48 if ( is_array( $zombie_saved ) && isset( $zombie_saved['zmb_fontsize'] ) && ! isset( $zombie_saved['zmb_listsize'] ) ) { 49 $zombie_defaults['zmb_listsize'] = '100%'; 50 } 51 39 52 return apply_filters( 'zombie_option_defaults', $zombie_defaults ); 40 53 } 41 54 42 ?> 55 // FIN -
zombie-apocalypse/2.2.0/admin/js/admin.js
r82951 r354761 206 206 /* Backwards compatibility for the accordion's current slide saving */ 207 207 var cryout_active_slide = parseInt(jQuery('#fluid_current').val()); 208 if ( vercomp(jQuery.ui.version, '1.11.2')) {208 if (jQuery.ui && vercomp(jQuery.ui.version, '1.11.2')) { /* jQuery UI is not loaded on every admin page */ 209 209 cryout_active_slide = (cryout_active_slide-1)/2; 210 210 } … … 213 213 jQuery('.form-table').wrap('<div>'); 214 214 215 if ( jQuery.fn.accordion ) { 215 216 jQuery( "#accordion" ).accordion({ 216 217 header: 'h3', … … 221 222 active: cryout_active_slide, 222 223 }); 224 } 223 225 224 226 jQuery("#fluid_nrcolumns").bind('change', function() { … … 325 327 jQuery('#loading-big').css('display','block'); 326 328 var b = jQuery('#fluid_form').serialize(); 327 jQuery.post( 'options.php', b ). error(329 jQuery.post( 'options.php', b ).fail( 328 330 function() { 329 331 alert('error'); 330 }). success( function() {332 }).done( function() { 331 333 jQuery('#loading-big').css('display','none'); 332 334 jQuery('#settings-saved').remove(); … … 373 375 } 374 376 375 /* FB like button */ 376 (function(d, s, id) { 377 var js, fjs = d.getElementsByTagName(s)[0]; 378 if (d.getElementById(id)) return; 379 js = d.createElement(s); js.id = id; 380 js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0"; 381 fjs.parentNode.insertBefore(js, fjs); 382 }(document, 'script', 'facebook-jssdk')); 383 384 /* Twitter follow button */ 385 window.twttr = (function (d, s, id) { 386 var t, js, fjs = d.getElementsByTagName(s)[0]; 387 if (d.getElementById(id)) return; 388 js = d.createElement(s); js.id = id; 389 js.src= "https://platform.twitter.com/widgets.js"; 390 fjs.parentNode.insertBefore(js, fjs); 391 return window.twttr || (t = { _e: [], ready: function (f) { t._e.push(f) } }); 392 }(document, "script", "twitter-wjs")); 377 /* Load the latest theme news, only when the button is pressed */ 378 jQuery(document).ready(function() { 379 jQuery('#zombie-load-news').on('click', function() { 380 var $button = jQuery(this), $list = jQuery('#zombie-news-list'); 381 if (typeof zombie_admin === 'undefined') { return; } 382 $button.prop('disabled', true); 383 $button.hide(); 384 $list.text(zombie_admin.loading); 385 jQuery.post(zombie_admin.ajax_url, { action: 'feed_action', nonce: zombie_admin.nonce }) 386 .done(function(response) { 387 $list.html(response); 388 $button.hide(); 389 }) 390 .fail(function() { 391 $list.text(zombie_admin.error); 392 $button.prop('disabled', false); 393 }); 394 }); 395 }); 393 396 394 397 /* FIN */ -
zombie-apocalypse/2.2.0/admin/main.php
r82951 r354761 2 2 // Frontend 3 3 4 if (!defined('ABSPATH')) { 5 exit; // Exit if accessed directly 6 } 7 4 8 // Theme particulars 5 9 require_once(get_template_directory() . "/admin/defaults.php"); 6 require_once(get_template_directory() . "/admin/options.php"); 10 11 // The options file builds the theme options array using translated strings, so it can't be loaded 12 // before after_setup_theme (WordPress 6.7+ requires translations to be used after the theme's text domain is loaded) 13 function zombie_load_theme_options() { 14 global $cryout_theme_options; 15 require_once( get_template_directory() . "/admin/options.php" ); 16 } 17 add_action( 'after_setup_theme', 'zombie_load_theme_options', 11 ); 7 18 8 19 $cryout_theme_defaults = zombie_get_option_defaults(); … … 51 62 return; 52 63 /* STYLES */ 53 wp_enqueue_style( 'cryout-admin-style', get_template_directory_uri() . '/admin/css/admin.css' ); 54 wp_enqueue_script('cryout-admin-js',get_template_directory_uri() . '/admin/js/admin.js' ); 64 wp_enqueue_style( 'cryout-admin-style', get_template_directory_uri() . '/admin/css/admin.css', array(), _THEME_VERSION ); 65 wp_enqueue_script( 'cryout-admin-js', get_template_directory_uri() . '/admin/js/admin.js', array( 'jquery' ), _THEME_VERSION, false ); 66 // used by the "Load latest theme news" button 67 wp_localize_script( 'cryout-admin-js', 'zombie_admin', array( 68 'ajax_url' => admin_url( 'admin-ajax.php' ), 69 'nonce' => wp_create_nonce( 'zombie_news' ), 70 'loading' => __( 'Loading...', 'zombie-apocalypse' ), 71 'error' => __( 'The news could not be loaded.', 'zombie-apocalypse' ), 72 ) ); 55 73 } 56 74 … … 58 76 function zombie_init() { 59 77 // load text domain into the admin section 60 load_theme_textdomain( 'zombie-apocalypse', get_template_directory_uri() . '/languages' ); 78 // (the text domain is loaded in zombie_setup(), see includes/theme-functions.php; this call used a URL instead of a path) 79 // load_theme_textdomain( 'zombie-apocalypse', get_template_directory_uri() . '/languages' ); 61 80 } // zombie_init() 62 81 … … 64 83 function zombie_add_page_fn() { 65 84 global $zombie_page; 66 $zombie_page = add_theme_page( 'About Zombie Apocalypse', 'About Zombie Apocalypse', 'edit_theme_options', 'about-zombie-apocalypse', 'zombie_page_fn');85 $zombie_page = add_theme_page( __( 'About Zombie Apocalypse', 'zombie-apocalypse' ), __( 'About Zombie Apocalypse', 'zombie-apocalypse' ), 'edit_theme_options', 'about-zombie-apocalypse', 'zombie_page_fn' ); 67 86 add_action( 'admin_enqueue_scripts', 'zombie_admin_scripts' ); 68 87 } // zombie_add_page_fn() … … 77 96 <div id="admin_header"> 78 97 <h2 id="version"> 79 Zombie Apocalypse v<?php echo _THEME_VERSION; ?> by <a href="http://www.cryoutcreations.eu" target="_blank">Cryout Creations</a> 98 <?php /* translators: 1: Theme name 2: Author name */ ?> 99 <?php printf( esc_html__( 'Zombie Apocalypse v%1$s by %2$s', 'zombie-apocalypse' ), esc_html( _THEME_VERSION ), '<a href="https://www.cryoutcreations.eu" target="_blank" rel="noopener">Cryout Creations</a>' ); ?> 80 100 </h2> 81 <img id="logo" src="<?php echo get_template_directory_uri() . '/admin/images/zombie-logo.png'?>" />101 <img id="logo" src="<?php echo esc_url( get_template_directory_uri() . '/admin/images/zombie-logo.png' ); ?>" alt="<?php echo esc_attr( 'Zombie Apocalypse' ); ?>" /> 82 102 </div> 83 103 <div id="admin_links"> 84 <a target="_blank" href="<?php echo admin_url('customize.php')?>">Settings</a>85 <a target="_blank" href="http://www.cryoutcreations.eu/wordpress-themes/zombie-apocalypse">Homepage</a>86 <a target="_blank" href="http://www.cryoutcreations.eu/priority-support">Support</a>87 <a target="_blank" href="http://www.cryoutcreations.eu/forums/f/wordpress/zombie-apocalypse">Forum</a>88 <a id="special" target="_blank" href="https://wordpress.org/support/view/theme-reviews/zombie-apocalypse#new-post">Rate it</a>104 <a target="_blank" href="<?php echo esc_url( admin_url( 'customize.php' ) ); ?>"><?php esc_html_e( 'Settings', 'zombie-apocalypse' ); ?></a> 105 <a target="_blank" rel="noopener" href="https://www.cryoutcreations.eu/wordpress-themes/zombie-apocalypse"><?php esc_html_e( 'Homepage', 'zombie-apocalypse' ); ?></a> 106 <a target="_blank" rel="noopener" href="https://www.cryoutcreations.eu/priority-support"><?php esc_html_e( 'Support', 'zombie-apocalypse' ); ?></a> 107 <a target="_blank" rel="noopener" href="https://www.cryoutcreations.eu/forums/f/wordpress/zombie-apocalypse"><?php esc_html_e( 'Forum', 'zombie-apocalypse' ); ?></a> 108 <a id="special" target="_blank" rel="noopener" href="https://wordpress.org/support/view/theme-reviews/zombie-apocalypse#new-post"><?php esc_html_e( 'Rate it', 'zombie-apocalypse' ); ?></a> 89 109 </div> 90 110 <div style="clear: both;"></div> … … 92 112 93 113 <div class="postbox donate"> 94 <h3 class="hndle"> Coffee Break</h3>114 <h3 class="hndle"> <?php esc_html_e( 'Coffee Break', 'zombie-apocalypse' ); ?> </h3> 95 115 <div class="inside"> 96 <p> Zombie Apocalypse is a dark and bloody WordPress theme with horror 'B movie' looks and graphics, all packed in a very clean and responsive layout.</p>97 <p> The theme also presents itself with a very clean, responsive layout and cross-browser compatibility. It also has theme customization options available like editable fonts, post metas and all graphics containing blood and gore can be disabled at will.</p>98 <p> Oh and if you truly love the undead, consider helping them in their quest for BBRAAINSS and...</p>116 <p><?php esc_html_e( "Zombie Apocalypse is a dark and bloody WordPress theme with horror 'B movie' looks and graphics, all packed in a very clean and responsive layout.", 'zombie-apocalypse' ); ?></p> 117 <p><?php esc_html_e( 'The theme also presents itself with a very clean, responsive layout and cross-browser compatibility. It also has theme customization options available like editable fonts, post metas and all graphics containing blood and gore can be disabled at will.', 'zombie-apocalypse' ); ?></p> 118 <p><?php esc_html_e( 'Oh and if you truly love the undead, consider helping them in their quest for BBRAAINSS and...', 'zombie-apocalypse' ); ?></p> 99 119 100 120 <div style="display:block;float:none;margin:0 auto;text-align:center;"> … … 102 122 <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank"> 103 123 <input type="hidden" name="cmd" value="_donations"> 104 <input type="hidden" name="business" value=" KYL26KAN4PJC8">124 <input type="hidden" name="business" value="UYHQSH45WJRCN"> 105 125 <input type="hidden" name="item_name" value="Cryout Creations - Zombie Apocalypse"> 106 126 <input type="hidden" name="currency_code" value="EUR"> 107 127 <input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_SM.gif:NonHosted"> 108 <input type="image" src="<?php echo get_template_directory_uri() . '/admin/images/coffee.png' ?>" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> 109 <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> 128 <input type="image" src="<?php echo esc_url( get_template_directory_uri() ) . '/admin/images/coffee.png' ?>" border="0" name="submit" alt="Donate with PayPal"> 110 129 </form> 111 130 112 </div>113 <p>or socially smother, caress and embrace us:</p>114 <div class="social-buttons">115 <a href="https://www.facebook.com/cryoutcreations" target="_blank" title="Follow us on Facebook">116 <img src="<?php echo get_template_directory_uri() . '/admin/images/icon-facebook.png' ?>" alt="Facebook">117 </a>118 <a href="https://twitter.com/cryoutcreations" target="_blank" title="Follow us on Twitter">119 <img src="<?php echo get_template_directory_uri() . '/admin/images/icon-twitter.png' ?>" alt="Twitter">120 </a>121 <a href="https://plus.google.com/106863427325889416242" target="_blank" title="Follow us on Google+">122 <img src="<?php echo get_template_directory_uri() . '/admin/images/icon-googleplus.png' ?>" alt="Google+">123 </a>124 131 </div> 125 132 … … 127 134 </div><!-- donate --> 128 135 136 <div class="postbox news" id="zombie-news"> 137 <h3 class="hndle"> <?php esc_html_e( 'Theme News', 'zombie-apocalypse' ); ?> </h3> 138 <div class="inside"> 139 <p><button type="button" class="button" id="zombie-load-news"><?php esc_html_e( 'Load latest theme news', 'zombie-apocalypse' ); ?></button></p> 140 <div style="clear: both;"></div> 141 <div id="zombie-news-list" aria-live="polite"></div> 142 </div><!-- inside --> 143 </div><!-- news --> 144 129 145 </div><!-- wrap --> 130 146 131 147 <?php } // zombie_page_fn() 148 149 // FIN -
zombie-apocalypse/2.2.0/admin/options.php
r82951 r354761 1 1 <?php 2 3 if (!defined('ABSPATH')) { 4 exit; // Exit if accessed directly 5 } 2 6 3 7 // custom function for zombie apocalypse due to different theme options array naming scheme … … 51 55 'info_sections' => array( 52 56 'cryoutspecial-about-theme' => array( 53 'title' => __( 'About', ' cryout' ) . ' ' . ucwords(_THEME_NAME),54 'desc' => '<img src=" ' . get_template_directory_uri() . '/admin/images/zombie-logo.png" >',57 'title' => __( 'About', 'zombie-apocalypse' ) . ' ' . ucwords(_THEME_NAME), 58 'desc' => '<img src=" ' . get_template_directory_uri() . '/admin/images/zombie-logo.png" alt="Zombie Apocalypse" >', 55 59 ), 56 60 ), // info_sections 57 61 58 62 'info_settings' => array( 59 'support_link_faqs' => array(63 /* 'support_link_faqs' => array( 60 64 'label' => '', 61 'default' => sprintf( '<a href="https://www.cryoutcreations.eu/wordpress-themes/' . cryout_sanitize_tn( _THEME_NAME ) . '" target="_blank">%s</a>', __( 'Read the Docs', ' cryout' ) ),65 'default' => sprintf( '<a href="https://www.cryoutcreations.eu/wordpress-themes/' . cryout_sanitize_tn( _THEME_NAME ) . '" target="_blank">%s</a>', __( 'Read the Docs', 'zombie-apocalypse' ) ), 62 66 'desc' => '', 63 67 'section' => 'cryoutspecial-about-theme', 64 ), 68 ), */ 65 69 'support_link_forum' => array( 66 70 'label' => '', 67 'default' => sprintf( '<a href="https://www.cryoutcreations.eu/forums/f/wordpress/' . cryout_sanitize_tn( _THEME_NAME ) . '" target="_blank">%s</a>', __( 'Browse the Forum', ' cryout' ) ),71 'default' => sprintf( '<a href="https://www.cryoutcreations.eu/forums/f/wordpress/' . cryout_sanitize_tn( _THEME_NAME ) . '" target="_blank">%s</a>', __( 'Browse the Forum', 'zombie-apocalypse' ) ), 68 72 'desc' => '', 69 73 'section' => 'cryoutspecial-about-theme', … … 71 75 'premium_support_link' => array( 72 76 'label' => '', 73 'default' => sprintf( '<a href="https://www.cryoutcreations.eu/priority-support" target="_blank">%s</a>', __( 'Priority Support', ' cryout' ) ),77 'default' => sprintf( '<a href="https://www.cryoutcreations.eu/priority-support" target="_blank">%s</a>', __( 'Priority Support', 'zombie-apocalypse' ) ), 74 78 'desc' => '', 75 79 'section' => 'cryoutspecial-about-theme', … … 77 81 'rating_url' => array( 78 82 'label' => ' ', 79 'default' => sprintf( '<a href="https://wordpress.org/support/view/theme-reviews/'. cryout_sanitize_tn( _THEME_NAME ) .'#new-post" target="_blank">%s</a>', sprintf( __( 'Rate %s on WordPress.org', 'cryout' ) , ucwords(_THEME_NAME) ) ), 83 /* translators: %s: Theme name */ 84 'default' => sprintf( '<a href="https://wordpress.org/support/view/theme-reviews/'. cryout_sanitize_tn( _THEME_NAME ) .'#new-post" target="_blank">%s</a>', sprintf( __( 'Rate %s on WordPress.org', 'zombie-apocalypse' ) , ucwords(_THEME_NAME) ) ), 80 85 'desc' => '', 81 86 'section' => 'cryoutspecial-about-theme', … … 85 90 'panel_overrides' => array( 86 91 /* 'background' => array( 87 'title' => __( 'Background', ' cryout' ),88 'desc' => __( 'Background Settings.', ' cryout' ),92 'title' => __( 'Background', 'zombie-apocalypse' ), 93 'desc' => __( 'Background Settings.', 'zombie-apocalypse' ), 89 94 'priority' => 50, 90 95 'section' => 'zombie_section', … … 93 98 ), 94 99 'header' => array( 95 'title' => __( 'Header Image', ' cryout' ),96 'desc' => __( 'Header Image Settings.', ' cryout' ),100 'title' => __( 'Header Image', 'zombie-apocalypse' ), 101 'desc' => __( 'Header Image Settings.', 'zombie-apocalypse' ), 97 102 'priority' => 51, 98 103 'section' => 'zombie_section', … … 101 106 ), 102 107 'colours' => array( 103 'title' => __( 'Colours', ' cryout' ),104 'desc' => __( 'Background colour will be overlapped by the background image if set.', ' cryout' ),108 'title' => __( 'Colours', 'zombie-apocalypse' ), 109 'desc' => __( 'Background colour will be overlapped by the background image if set.', 'zombie-apocalypse' ), 105 110 'priority' => 52, 106 111 'section' => 'zombie_section', … … 156 161 'desc' => __('Configure padding between content and sidebar.','zombie-apocalypse'), 157 162 'section' => 'za_layout_section' ), 163 array( 164 'id' => 'zmb_mpadding', 165 'type' => 'select', 166 'label' => __('Modern Padding','zombie-apocalypse'), 167 'values' => cryout_gen_values( 0, 2, 1, array( 'um' => 'em') ), 168 'desc' => __('Increase general padding around content/sidebar.','zombie-apocalypse'), 169 'section' => 'za_layout_section' ), 158 170 159 171 … … 166 178 'values' => cryout_gen_values( 12, 18, 1, array( 'um' => 'px') ), 167 179 'desc' => __('Configure general font size which applies to pages, posts and comments. Buttons, headers and sidebar menus will not be affected.','zombie-apocalypse'), 180 'section' => 'za_text_section' ), 181 array( 182 'id' => 'zmb_listsize', 183 'type' => 'select', 184 'label' => __( 'Lists Font Size','zombie-apocalypse' ), 185 'values' => array( '120%', '110%', '100%', '90%', '80%', '70%', '60%', '50%' ), 186 'labels' => array( '120%', '110%', '100%', '90%', '80%', '70%', '60%', '50%' ), 187 'desc' => __('Configure the font size of lists in pages and posts as a percentage of the Font Size setting.','zombie-apocalypse'), 168 188 'section' => 'za_text_section' ), 169 189 array( … … 205 225 'values' => array( 'Show', 'Hide' ), 206 226 'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ), 207 'desc' => __('Configure the visibility of the site\'s title and description in he header area.','zombie-apocalypse'),227 'desc' => __('Configure the visibility of the site\'s title and description in the header area.','zombie-apocalypse'), 208 228 'section' => 'za_graphics_section' ), 209 229 array( … … 242 262 'id' => 'zmb_splash', 243 263 'type' => 'select', 244 'label' => __( 'Blood S plash','zombie-apocalypse' ),245 'values' => array( 'Show', 'Hide' ), 246 'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ), 247 'desc' => __('','zombie-apocalypse'),264 'label' => __( 'Blood Slash','zombie-apocalypse' ), 265 'values' => array( 'Show', 'Hide' ), 266 'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ), 267 'desc' => '', 248 268 'section' => 'za_graphics_section' ), 249 269 array( … … 253 273 'values' => array( 'Show', 'Hide' ), 254 274 'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ), 255 'desc' => __('','zombie-apocalypse'),275 'desc' => '', 256 276 'section' => 'za_graphics_section' ), 257 277 array( … … 261 281 'values' => array( 'Show', 'Hide' ), 262 282 'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ), 263 'desc' => __('','zombie-apocalypse'),283 'desc' => '', 264 284 'section' => 'za_graphics_section' ), 265 285 array( … … 269 289 'values' => array( 'Show', 'Hide' ), 270 290 'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ), 271 'desc' => __('','zombie-apocalypse'),291 'desc' => '', 272 292 'section' => 'za_graphics_section' ), 273 293 array( … … 277 297 'values' => array( 'Enable', 'Disable' ), 278 298 'labels' => array( __('Enable','zombie-apocalypse'), __('Disable','zombie-apocalypse') ), 279 'desc' => __('','zombie-apocalypse'),299 'desc' => '', 280 300 'section' => 'za_graphics_section' ), 281 301 array( … … 285 305 'values' => array( 'Enable', 'Disable' ), 286 306 'labels' => array( __('Enable','zombie-apocalypse'), __('Disable','zombie-apocalypse') ), 287 'desc' => __('','zombie-apocalypse'), 307 'desc' => '', 308 'section' => 'za_graphics_section' ), 309 array( 310 'id' => 'zmb_safemode', 311 'type' => 'select', 312 'label' => __( 'Safe Mode','zombie-apocalypse' ), 313 'values' => array( 'Enable', 'Disable' ), 314 'labels' => array( __('Enable','zombie-apocalypse'), __('Disable','zombie-apocalypse') ), 315 'desc' => __( 'Enable old-school censorship for all gore elements', 'zombie-apocalypse' ), 288 316 'section' => 'za_graphics_section' ), 289 317 array( … … 291 319 'type' => 'textarea', 292 320 'label' => __( 'Custom Footer Text','zombie-apocalypse' ), 293 'desc' => __('','zombie-apocalypse'),321 'desc' => '', 294 322 'section' => 'za_graphics_section' ), 295 323 … … 302 330 'values' => array( 'Show', 'Hide' ), 303 331 'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ), 304 'desc' => __('','zombie-apocalypse'),332 'desc' => '', 305 333 'section' => 'za_post_section' ), 306 334 array( … … 310 338 'values' => array( 'Show', 'Hide' ), 311 339 'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ), 312 'desc' => __('','zombie-apocalypse'),340 'desc' => '', 313 341 'section' => 'za_post_section' ), 314 342 array( … … 318 346 'values' => array( 'Show', 'Hide' ), 319 347 'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ), 320 'desc' => __('','zombie-apocalypse'),348 'desc' => '', 321 349 'section' => 'za_post_section' ), 322 350 array( … … 326 354 'values' => array( 'Show', 'Hide' ), 327 355 'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ), 328 'desc' => __('','zombie-apocalypse'),356 'desc' => '', 329 357 'section' => 'za_post_section' ), 330 358 array( … … 334 362 'values' => array( 'Show', 'Hide' ), 335 363 'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ), 336 'desc' => __('','zombie-apocalypse'),364 'desc' => '', 337 365 'section' => 'za_post_section' ), 338 366 -
zombie-apocalypse/2.2.0/archive.php
r82951 r354761 29 29 <h1 class="page-title"> 30 30 <?php if ( is_day() ) : ?> 31 <?php printf( __( 'Daily Archives: <span>%s</span>', 'zombie-apocalypse' ), get_the_date() ); ?> 31 <?php /* translators: %s: Formatted date */ ?> 32 <?php echo wp_kses_post( sprintf( __( 'Daily Archives: <span>%s</span>', 'zombie-apocalypse' ), esc_html( get_the_date() ) ) ); ?> 32 33 <?php elseif ( is_month() ) : ?> 33 <?php printf( __( 'Monthly Archives: <span>%s</span>', 'zombie-apocalypse' ), get_the_date('F Y') ); ?> 34 <?php /* translators: %s: Date as Month and Year */ ?> 35 <?php echo wp_kses_post( sprintf( __( 'Monthly Archives: <span>%s</span>', 'zombie-apocalypse' ), esc_html( get_the_date( _x( 'F Y', 'monthly archives date format', 'zombie-apocalypse' ) ) ) ) ); ?> 34 36 <?php elseif ( is_year() ) : ?> 35 <?php printf( __( 'Yearly Archives: <span>%s</span>', 'zombie-apocalypse' ), get_the_date('Y') ); ?> 37 <?php /* translators: %s: Year */ ?> 38 <?php echo wp_kses_post( sprintf( __( 'Yearly Archives: <span>%s</span>', 'zombie-apocalypse' ), esc_html( get_the_date( _x( 'Y', 'yearly archives date format', 'zombie-apocalypse' ) ) ) ) ); ?> 36 39 <?php else : ?> 37 <?php _e( 'Blog Archives', 'zombie-apocalypse' ); ?>40 <?php esc_html_e( 'Blog Archives', 'zombie-apocalypse' ); ?> 38 41 <?php endif; ?> 39 42 </h1> -
zombie-apocalypse/2.2.0/attachment.php
r82951 r354761 16 16 17 17 <?php if ( ! empty( $post->post_parent ) ) : ?> 18 <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'zombie-apocalypse' ), get_the_title( $post->post_parent ) ) ); ?>" rel="gallery"><?php 19 /* translators: %s - title of parent post */ 20 printf( __( '<span class="meta-nav">←</span> %s', 'zombie-apocalypse' ), get_the_title( $post->post_parent ) ); 18 <?php /* translators: %s: Parent post title */ ?> 19 <p class="page-title"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'Return to %s', 'zombie-apocalypse' ), get_the_title( $post->post_parent ) ) ); ?>" rel="gallery"><?php 20 /* translators: %s: Parent post title */ 21 echo wp_kses_post( sprintf( __( '<span class="meta-nav">←</span> %s', 'zombie-apocalypse' ), esc_html( get_the_title( $post->post_parent ) ) ) ); 21 22 ?></a></p> 22 23 <?php endif; ?> … … 27 28 <div class="entry-meta"> 28 29 <?php 29 printf(__('<span class="%1$s">By</span> %2$s', 'zombie-apocalypse'), 30 /* translators: 1: CSS Classes 2: Author name */ 31 echo wp_kses_post( sprintf(__('<span class="%1$s">By</span> %2$s', 'zombie-apocalypse'), 30 32 'meta-prep meta-prep-author', 31 33 sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 32 get_author_posts_url( get_the_author_meta( 'ID' ) ), 33 sprintf( esc_attr__( 'View all posts by %s', 'zombie-apocalypse' ), get_the_author() ), 34 get_the_author() 34 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 35 /* translators: %s: Author name */ 36 sprintf( esc_attr__( 'View all posts by %s', 'zombie-apocalypse' ), esc_attr( get_the_author() ) ), 37 esc_html( get_the_author() ) 35 38 ) 36 ) ;39 ) ); 37 40 ?> 38 41 <span class="meta-sep">|</span> 39 42 <?php 40 printf( __('<span class="%1$s">Published</span> %2$s', 'zombie-apocalypse'), 43 /* translators: 1: CSS Classes 2: Publish date */ 44 echo wp_kses_post( sprintf( __('<span class="%1$s">Published</span> %2$s', 'zombie-apocalypse'), 41 45 'meta-prep meta-prep-entry-date', 42 46 sprintf( '<span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>', 43 47 esc_attr( get_the_time() ), 44 get_the_date()48 esc_html( get_the_date() ) 45 49 ) 46 ) ;50 ) ); 47 51 if ( wp_attachment_is_image() ) { 48 52 echo ' <span class="meta-sep">|</span> '; 49 53 $metadata = wp_get_attachment_metadata(); 50 printf( __( 'Full size is %s pixels', 'zombie-apocalypse'), 54 if ( ! is_array( $metadata ) ) $metadata = array(); 55 /* translators: %s: Image size value in pixels */ 56 echo wp_kses_post( sprintf( __( 'Full size is %s pixels', 'zombie-apocalypse'), 51 57 sprintf( '<a href="%1$s" title="%2$s">%3$s × %4$s</a>', 52 wp_get_attachment_url(),58 esc_url( wp_get_attachment_url() ), 53 59 esc_attr( __('Link to full-size image', 'zombie-apocalypse') ), 54 $metadata['width'],55 $metadata['height']60 absint( isset( $metadata['width'] ) ? $metadata['width'] : 0 ), 61 absint( isset( $metadata['height'] ) ? $metadata['height'] : 0 ) 56 62 ) 57 ) ;63 ) ); 58 64 } 59 65 ?> … … 83 89 } 84 90 ?> 85 <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php91 <p class="attachment"><a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php 86 92 $attachment_size = apply_filters( 'zombie_attachment_size', 900 ); 87 93 echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height. … … 93 99 </div><!-- #nav-below --> 94 100 <?php else : ?> 95 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>101 <a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo esc_html( basename( get_permalink() ) ); ?></a> 96 102 <?php endif; ?> 97 103 </div><!-- .entry-attachment --> -
zombie-apocalypse/2.2.0/author.php
r82951 r354761 25 25 ?> 26 26 27 <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'zombie-apocalypse' ), "<span class='vcard'><a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a></span>" ); ?></h1> 27 <h1 class="page-title author"><?php 28 /* translators: %s: Author linked name */ 29 echo wp_kses_post( sprintf( __( 'Author Archives: %s', 'zombie-apocalypse' ), 30 "<span class='vcard'><a class='url fn n' href='" . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . esc_html( get_the_author() ) . "</a></span>" 31 ) ); ?></h1> 28 32 29 33 <?php … … 35 39 </div><!-- #author-avatar --> 36 40 <div id="author-description"> 37 <h2><?php printf( __( 'About %s', 'zombie-apocalypse' ), get_the_author() ); ?></h2> 41 <?php /* translators: %s: Author name */ ?> 42 <h2><?php printf( esc_html__( 'About %s', 'zombie-apocalypse' ), esc_html( get_the_author() ) ); ?></h2> 38 43 <?php the_author_meta( 'description' ); ?> 39 44 </div><!-- #author-description --> -
zombie-apocalypse/2.2.0/category.php
r82951 r354761 13 13 <div id="content" role="main"> 14 14 15 <h1 class="page-title"><?php 16 printf( __( 'Category Archives: %s', 'zombie-apocalypse' ), '<span>' . single_cat_title( '', false ) . '</span>' ); 15 <h1 class="page-title"><?php 16 /* translators: %s: Category archive title */ 17 echo wp_kses_post( sprintf( __( 'Category Archives: %s', 'zombie-apocalypse' ), '<span>' . esc_html( single_cat_title( '', false ) ) . '</span>' ) ); 17 18 ?></h1> 18 19 <?php 19 20 $category_description = category_description(); 20 21 if ( ! empty( $category_description ) ) 21 echo '<div class="archive-meta">' . $category_description. '</div>';22 echo '<div class="archive-meta">' . wp_kses_post( $category_description ) . '</div>'; 22 23 23 24 /* Run the loop for the category page to output the posts. -
zombie-apocalypse/2.2.0/comments.php
r82951 r354761 16 16 <div id="comments"> 17 17 <?php if ( post_password_required() ) : ?> 18 <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'zombie-apocalypse' ); ?></p>18 <p class="nopassword"><?php esc_html_e( 'This post is password protected. Enter the password to view any comments.', 'zombie-apocalypse' ); ?></p> 19 19 </div><!-- #comments --> 20 20 <?php … … 33 33 <?php if ( have_comments() ) : ?> 34 34 <h3 id="comments-title"><?php 35 printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'zombie-apocalypse' ), 36 number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); 35 /* translators: 1: Comments count number 2: Post title */ 36 echo wp_kses_post( sprintf( _n( '%1$s Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'zombie-apocalypse' ), 37 number_format_i18n( get_comments_number() ), '<em>' . esc_html( get_the_title() ) . '</em>' ) ); 37 38 ?></h3> 38 39 … … 70 71 if ( ! comments_open() ) : 71 72 ?> 72 <p class="nocomments"><?php _e( 'Comments are closed.', 'zombie-apocalypse' ); ?></p>73 <p class="nocomments"><?php esc_html_e( 'Comments are closed.', 'zombie-apocalypse' ); ?></p> 73 74 <?php endif; // end ! comments_open() ?> 74 75 -
zombie-apocalypse/2.2.0/cryout/admin.php
r82951 r354761 5 5 */ 6 6 7 if (!defined('ABSPATH')) { 8 exit; // Exit if accessed directly 9 } 10 7 11 // generic functions 8 12 9 function cryout_export_options(){ 10 11 if (ob_get_contents()) ob_clean(); 12 13 /* Check authorisation */ 14 $authorised = true; 15 // Check nonce 16 if ( ! wp_verify_nonce( $_POST[_THEME_NAME.'-export'], _THEME_NAME.'-export' ) ) { 17 $authorised = false; 18 } 19 // Check permissions 20 if ( ! current_user_can( 'edit_theme_options' ) ){ 21 $authorised = false; 22 } 23 24 if ( $authorised) { 25 26 date_default_timezone_set('UTC'); 27 $name = _THEME_NAME.'settings-'.preg_replace("/[^a-z0-9-_]/i",'',preg_replace("/https?\:\/\//","",get_option('siteurl'))).'-'.date('Ymd-His').'.txt'; 28 $data = cryout_get_theme_options(); 29 $data = json_encode( $data ); 30 $size = strlen( $data ); 31 32 header( 'Content-Type: text/plain' ); 33 header( 'Content-Disposition: attachment; filename="'.$name.'"' ); 34 header( "Content-Transfer-Encoding: binary" ); 35 header( 'Accept-Ranges: bytes' ); 36 37 /* The three lines below basically make the download non-cacheable */ 38 header( "Cache-control: private" ); 39 header( 'Pragma: private' ); 40 header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); 41 42 header( "Content-Length: " . $size); 43 print( $data ); 44 } 45 die(); 46 } // cryout_export_options() 47 48 /** 49 * This file manages the theme settings uploading and import operations. 50 * Uses the theme page to create a new form for uplaoding the settings 51 * Uses WP_Filesystem 52 */ 53 function cryout_import_form(){ 54 55 $bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() ); 56 $size = size_format( $bytes ); 57 $upload_dir = wp_upload_dir(); 58 if ( ! empty( $upload_dir['error'] ) ) : 59 ?><div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:', 'cryout'); ?></p> 60 <p><strong><?php echo $upload_dir['error']; ?></strong></p></div><?php 61 else : 62 ?> 63 64 <div class="wrap"> 65 <div style="width:400px;display:block;margin-left:30px;"> 66 <div id="icon-tools" class="icon32"><br></div> 67 <h2><?php echo __( 'Import Theme Options', 'cryout' );?></h2> 68 <form enctype="multipart/form-data" id="import-upload-form" method="post" action=""> 69 <p><?php _e('Hi! This is where you import the theme settings.<i> Please remember that this is still an experimental feature.</i>', 'cryout'); ?></p> 70 <p> 71 <label for="upload"><strong><?php _e('Just choose a file from your computer:', 'cryout'); ?> </strong><i>(<?php echo _THEME_NAME; ?>-settings.txt)</i></label> 72 <input type="file" id="upload" name="import" size="25" /> 73 <span style="font-size:10px;">(<?php printf( __( 'Maximum size: %s', 'cryout' ), $size ); ?> )</span> 74 <input type="hidden" name="action" value="save" /> 75 <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" /> 76 <?php wp_nonce_field(_THEME_NAME.'-import', _THEME_NAME.'-import'); ?> 77 <input type="hidden" name="cryout_import_confirmed" value="true" /> 78 </p> 79 <input type="submit" class="button" value="<?php _e('And import!', 'cryout'); ?>" /> 80 </form> 81 </div> 82 </div> <!-- end wrap --> 83 <?php 84 endif; 85 } // cryout_import_form() 86 87 /** 88 * This actual import of the options from the file to the settings array. 89 */ 90 function cryout_import_file() { 91 92 $theme_settings = cryout_get_theme_options(); 93 94 /* Check authorisation */ 95 $authorised = true; 96 // Check nonce 97 if (!wp_verify_nonce($_POST[_THEME_NAME.'-import'], _THEME_NAME.'-import')) {$authorised = false;} 98 // Check permissions 99 if (!current_user_can('edit_theme_options')){ $authorised = false; } 100 101 // If the user is authorised, import the theme's options to the database 102 if ($authorised) {?> 103 <?php 104 // make sure there is an import file uploaded 105 if ( (isset($_FILES["import"]["size"]) && ($_FILES["import"]["size"] > 0) ) ) { 106 107 $form_fields = array('import'); 108 $method = ''; 109 110 $url = wp_nonce_url('themes.php?page='._THEME_NAME.'-page', _THEME_NAME.'-import'); 111 112 // Get file writing credentials 113 if (false === ($creds = request_filesystem_credentials($url, $method, false, false, $form_fields) ) ) { 114 return true; 115 } 116 117 if ( ! WP_Filesystem($creds) ) { 118 // our credentials were no good, ask the user for them again 119 request_filesystem_credentials($url, $method, true, false, $form_fields); 120 return true; 121 } 122 123 // Write the file if credentials are good 124 $upload_dir = wp_upload_dir(); 125 $filename = trailingslashit($upload_dir['path'])._THEME_NAME.'s.txt'; 126 127 // by this point, the $wp_filesystem global should be working, so let's use it to create a file 128 global $wp_filesystem; 129 if ( ! $wp_filesystem->move($_FILES['import']['tmp_name'], $filename, true) ) { 130 echo 'Error saving file!'; 131 return; 132 } 133 134 $file = $_FILES['import']; 135 136 if ($file['type'] == 'text/plain') { 137 $data = $wp_filesystem->get_contents($filename); 138 // try to read the file 139 if ($data !== FALSE){ 140 $settings = json_decode($data, true); 141 // try to read the settings array 142 if (isset($settings[_THEME_NAME.'_db'])){ ?> 143 <div class="wrap"> 144 <div id="icon-tools" class="icon32"><br></div> 145 <h2><?php echo __( 'Import Theme Options ', 'cryout' );?></h2> <?php 146 $settings = array_merge($theme_settings, $settings); 147 update_option(_THEME_NAME.'_settings', $settings); 148 echo '<div class="updated fade"><p>'. __('Great! The options have been imported!', 'cryout').'<br />'; 149 echo '<a href="themes.php?page='._THEME_NAME.'-page">'.__('Go back to the theme settings page and check them out!', 'cryout').'<a></p></div>'; 150 } 151 else { // else: try to read the settings array 152 echo '<div class="error"><p><strong>'.__('Oops, there\'s a small problem.', 'cryout').'</strong><br />'; 153 echo __('The uploaded file does not contain valid theme options. Make sure the file is exported from the theme options page.', 'cryout').'</p></div>'; 154 cryout_import_form(); 155 } 156 } 157 else { // else: try to read the file 158 echo '<div class="error"><p><strong>'.__('Oops, there\'s a small problem.', 'cryout').'</strong><br />'; 159 echo __('The uploaded file could not be read.', 'cryout').'</p></div>'; 160 cryout_import_form(); 161 } 162 } 163 else { // else: make sure the file uploaded was a plain text file 164 echo '<div class="error"><p><strong>'.__('Oops, there\'s a small problem.', 'cryout').'</strong><br />'; 165 echo __('The uploaded file is not supported. Make sure the file was exported from the theme settings page and that it is a text file.', 'cryout').'</p></div>'; 166 cryout_import_form(); 167 } 168 169 // Delete the file after we're done 170 $wp_filesystem->delete($filename); 171 172 } 173 else { // else: make sure there is an import file uploaded 174 echo '<div class="error"><p>'.__( '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.', 'cryout' ).'</p></div>'; 175 cryout_import_form(); 176 } 177 echo '</div> <!-- end wrap -->'; 178 } 179 else { 180 wp_die(__('ERROR: You are not authorised to perform that operation', 'cryout')); 181 } 182 } // cryout_import_file() 13 // (the unused theme options import/export code removed @2.2.0) 183 14 184 15 // Truncate function for use in the Admin RSS feed … … 191 22 function cryout_fetch_feed() { 192 23 193 $theme_news = fetch_feed( array( 'http://www.cryoutcreations.eu/cat/'._THEME_NAME.'/feed/') ); 24 check_ajax_referer( 'zombie_news', 'nonce' ); 25 if ( ! current_user_can( 'edit_theme_options' ) ) { 26 wp_die( -1, 403 ); 27 } 28 $theme_news = fetch_feed( array( 'https://www.cryoutcreations.eu/cat/' . sanitize_title( _THEME_NAME ) . '/feed/') ); 194 29 $maxitems = 0; 195 30 if ( ! is_wp_error( $theme_news ) ) { … … 199 34 ?> 200 35 <ul class="news-list"> 201 <?php if ( $maxitems == 0 ) : echo '<li>' . __( 'No news items.', 'cryout' ) . '</li>'; else :36 <?php if ( $maxitems == 0 ) : echo '<li>' . esc_html__( 'No news items.', 'zombie-apocalypse' ) . '</li>'; else : 202 37 foreach( $news_items as $news_item ) : ?> 203 38 <li> 204 39 <a class="news-header" target="_blank" href='<?php echo esc_url( $news_item->get_permalink() ); ?>'><?php echo esc_html( $news_item->get_title() ); ?></a> 205 <span class="news-item-date"><?php _e('Posted on','cryout'); echo $news_item->get_date(' j F Y');?></span>206 <a class="news-more" target="_blank" href='<?php echo esc_url( $news_item->get_permalink() ); ?>'><?php _e('Read the full post','cryout');?> →</a>40 <span class="news-item-date"><?php esc_html_e( 'Posted on', 'zombie-apocalypse' ); $news_timestamp = (int) $news_item->get_date( 'U' ); if ( $news_timestamp ) { echo ' ' . esc_html( wp_date( get_option( 'date_format' ), $news_timestamp ) ); } ?></span> 41 <a class="news-more" target="_blank" href='<?php echo esc_url( $news_item->get_permalink() ); ?>'><?php esc_html_e( 'Read the full post', 'zombie-apocalypse' ); ?> →</a> 207 42 </li> 208 43 <?php endforeach; … … 210 45 </ul> 211 46 <?php 212 die();47 wp_die(); 213 48 } // cryout_fetch_feed() 49 50 // FIN -
zombie-apocalypse/2.2.0/cryout/css/customizer.css
r82951 r354761 79 79 text-align: center; 80 80 max-width: 300px; 81 margin-left: auto; 82 margin-right: auto; 81 83 padding: 0 10px; 82 84 } … … 111 113 display: block; 112 114 font-size: 0.85em; 113 left: 10px;115 /* left: 10px; */ /* 6.7 fix */ 114 116 padding: 0 3px; 115 117 position: absolute; 118 /* 6.7 fixes: */ 119 top: 50%; 120 transform: translateY(-50%); 121 right: 4em; 116 122 } 117 123 118 124 #customize-theme-controls [id*="cryout-"] h3.accordion-section-title { 119 padding-left: 40px;125 /* padding-left: 40px; */ /* 6.7 fix */ 120 126 } 121 127 … … 124 130 display: block; 125 131 font-size: 0.85em; 126 left: 10px;132 /* left: 10px; */ /* 6.7 fix */ 127 133 padding: 0 3px; 128 134 position: absolute; … … 130 136 border: 1px solid #aa0000; 131 137 color: #aa0000; 138 /* 6.7 fixes: */ 139 top: 50%; 140 transform: translateY(-50%); 141 right: 4em; 132 142 } 133 143 #customize-theme-controls [id*="za_"] h3.accordion-section-title { 134 padding-left: 40px;144 /* padding-left: 40px; */ /* 6.7 fix */ 135 145 } 136 146 … … 148 158 display: block; 149 159 max-width: 300px; 160 margin: 0 auto; 150 161 padding: 10px; 151 162 border: 1px solid #DDD; -
zombie-apocalypse/2.2.0/cryout/customizer.php
r82951 r354761 4 4 * @since Cryout Framework 0.5 5 5 */ 6 7 if (!defined('ABSPATH')) { 8 exit; // Exit if accessed directly 9 } 6 10 7 11 ///////// SANITIZERS … … 35 39 return wp_kses_post( $input ); 36 40 } // cryout_customizer_sanitize_generic() 41 42 function cryout_customizer_sanitize_select( $input, $setting ){ 43 // only allow values that are present in the control's list of choices, otherwise use the default 44 $choices = array(); 45 $control = $setting->manager->get_control( $setting->id ); 46 if ( $control ) { 47 if ( 'font' == $control->type ) { 48 foreach ( (array) cryout_get_theme_structure( 'fonts' ) as $fgroup ) { 49 foreach ( (array) $fgroup as $font ) { $choices[] = $font; } 50 } 51 } else { 52 $choices = array_keys( (array) $control->choices ); 53 } 54 } 55 $input = (string) $input; 56 foreach ( $choices as $choice ) { 57 if ( trim( (string) $choice, " \t\n\r\0\x0B" ) === trim( $input, " \t\n\r\0\x0B" ) ) return (string) $choice; 58 } 59 return $setting->default; 60 } // cryout_customizer_sanitize_select() 37 61 38 62 … … 59 83 public function render_content() { 60 84 if ( ! empty( $this->label ) ) { ?> 61 <span class="customize-control-title"><?php echo esc_ attr( $this->label ) ?></span>85 <span class="customize-control-title"><?php echo esc_html( $this->label ) ?></span> 62 86 <?php } 63 87 if ( ! empty( $this->description ) ) { ?> … … 73 97 public function render_content() { 74 98 if ( ! empty( $this->label ) ) { ?> 75 <span class="customize-control-title customize-cryoutcontrol-hint"><?php echo esc_ attr( $this->label ) ?></span>99 <span class="customize-control-title customize-cryoutcontrol-hint"><?php echo esc_html( $this->label ) ?></span> 76 100 <?php } 77 101 if ( ! empty( $this->description ) ) { ?> 78 <span class="description customize-control-description cryout-nomove customize-cryoutcontrol-hint-desc"><?php echo $this->description?></span>102 <span class="description customize-control-description cryout-nomove customize-cryoutcontrol-hint-desc"><?php echo wp_kses_post( $this->description ); ?></span> 79 103 <?php } ?> 80 104 <span class="customize-control-content customize-cryoutcontrol-hint-value"><?php echo wp_kses_post( $this->value() ) ?></span> … … 87 111 public function render_content() { 88 112 if ( ! empty( $this->label ) ) { ?> 89 <span class="customize-control-title customize-cryoutcontrol-notice customize-cryoutcontrol-notice-<?php echo $this->input_attrs['class'] ?>"><?php echo esc_attr( $this->label ) ?></span>113 <span class="customize-control-title customize-cryoutcontrol-notice customize-cryoutcontrol-notice-<?php echo esc_attr( $this->input_attrs['class'] ); ?>"><?php echo esc_html( $this->label ) ?></span> 90 114 <?php } 91 115 if ( ! empty( $this->description ) ) { ?> 92 <span class="description customize-control-description cryout-nomove customize-cryoutcontrol-notice-desc customize-cryoutcontrol-notice-<?php echo $this->input_attrs['class'] ?>-desc"><?php echo $this->description?></span>116 <span class="description customize-control-description cryout-nomove customize-cryoutcontrol-notice-desc customize-cryoutcontrol-notice-<?php echo esc_attr( $this->input_attrs['class'] ); ?>-desc"><?php echo wp_kses_post( $this->description ); ?></span> 93 117 <?php } ?> 94 <span class="customize-control-content customize-cryoutcontrol-notice-value customize-cryoutcontrol-notice-<?php echo $this->input_attrs['class']?>-value"><?php echo wp_kses_post( $this->value() ) ?></span>118 <span class="customize-control-content customize-cryoutcontrol-notice-value customize-cryoutcontrol-notice-<?php echo esc_attr( $this->input_attrs['class'] ); ?>-value"><?php echo wp_kses_post( $this->value() ) ?></span> 95 119 <?php 96 120 } … … 115 139 <?php endif; 116 140 if ( ! empty( $this->description ) ) : ?> 117 <span class="description customize-control-description"><?php echo $this->description; ?></span>141 <span class="description customize-control-description"><?php echo wp_kses_post( $this->description ); ?></span> 118 142 <?php endif; ?> 119 143 … … 121 145 <?php 122 146 foreach ( $this->fonts as $fgroup => $fsubs ): ?> 123 <optgroup label='<?php echo $fgroup; ?>'>147 <optgroup label='<?php echo esc_attr( $fgroup ); ?>'> 124 148 <?php foreach($fsubs as $item): 125 149 $item_show = explode(',',$item); ?> 126 <option style='font-family:<?php echo $item; ?>;' value='<?php echo $item; ?>' <?php selected( $this->value(), $item ); ?>>127 <?php echo $item_show[0]; ?>150 <option style='font-family:<?php echo esc_attr( $item ); ?>;' value='<?php echo esc_attr( $item ); ?>' <?php selected( $this->value(), $item ); ?>> 151 <?php echo esc_html( $item_show[0] ); ?> 128 152 </option> 129 153 <?php endforeach; // fsubs ?> … … 175 199 // add about theme panel and sections 176 200 if (!empty($cryout_theme_options['info_sections'])): 177 /* $wp_customize->add_panel( 'about', array(178 'priority' => 10,179 'title' => __( 'About', 'cryout' ). ' ' . ucwords(_THEME_NAME),180 'description' => ucwords(_THEME_NAME) . __( ' by ', 'cryout' ) . 'Cryout Creations',181 ) ); */182 201 $section_priority = 10; 183 202 … … 187 206 'description' => $info['desc'], 188 207 'priority' => $section_priority++, 189 //'panel' => 'about',190 208 ) ); 191 209 endforeach; … … 215 233 $wp_customize->add_panel( $section['id'], array( 216 234 'title' => ucwords(_THEME_NAME) . ' ' . $section['title'], 217 'description' => __( '', 'cryout' ),235 'description' => '', 218 236 'priority' => $priority++, 219 237 ) ); … … 227 245 $wp_customize->add_section( $field['id'], array( 228 246 'title' => $field['title'], 229 'description' => __( '', 'cryout' ),247 'description' => '', 230 248 'priority' => $section_priority++, 231 249 'panel' => $field['sid'], … … 269 287 case 'blank': 270 288 $sanitize_callback = 'cryout_customizer_sanitize_blank'; 289 break; 290 291 case 'select': case 'font': 292 $sanitize_callback = 'cryout_customizer_sanitize_select'; 271 293 break; 272 294 … … 387 409 388 410 function cryout_customizer_enqueue_scripts() { 389 wp_enqueue_style( 'cryout-customizer-css', get_template_directory_uri() . '/cryout/css/customizer.css', array(), null ); 390 wp_enqueue_script( 'cryout-customizer-js', get_template_directory_uri() . '/cryout/js/customizer.js', array( 'jquery' ), false, true ); 411 wp_enqueue_style( 'cryout-customizer-css', get_template_directory_uri() . '/cryout/css/customizer.css', array(), _THEME_VERSION ); 412 wp_enqueue_script( 'cryout-customizer-js', get_template_directory_uri() . '/cryout/js/customizer.js', array( 'jquery' ), _THEME_VERSION, true ); 413 wp_localize_script( 'cryout-customizer-js', 'cryout_customizer_i18n', array( 414 'maximize' => __( 'Maximize', 'zombie-apocalypse' ), 415 'restore' => __( 'Restore', 'zombie-apocalypse' ), 416 ) ); 391 417 } 392 418 add_action('customize_controls_enqueue_scripts', 'cryout_customizer_enqueue_scripts'); -
zombie-apocalypse/2.2.0/cryout/js/customizer.js
r82951 r354761 5 5 */ 6 6 7 var _label_max = 'Maximize';8 var _label_min = 'Restore';7 var _label_max = ( typeof cryout_customizer_i18n !== 'undefined' ) ? cryout_customizer_i18n.maximize : 'Maximize'; 8 var _label_min = ( typeof cryout_customizer_i18n !== 'undefined' ) ? cryout_customizer_i18n.restore : 'Restore'; 9 9 10 /* max/min-imize button disabled @ 2.2.0 */ 10 11 var innerHTML = '<button class="button cryout-expand-sidebar button-secondary" aria-expanded="true" aria-label="' + _label_max + '" title="' + _label_max + '" href="#">\ 11 12 <span class="collapse-sidebar-label">' + _label_max + '</span>\ … … 22 23 if (jQuery('#customize-footer-actions .devices').length>0) { 23 24 /* wp 4.5 or newer */ 24 jQuery('#customize-footer-actions .devices').prepend(innerHTML);25 /* jQuery('#customize-footer-actions .devices').prepend(innerHTML); */ 25 26 } else { 26 jQuery('#customize-footer-actions').append(innerHTML);27 /* jQuery('#customize-footer-actions').append(innerHTML); */ 27 28 } 28 29 -
zombie-apocalypse/2.2.0/cryout/prototypes.php
r82951 r354761 4 4 * @since Cryout Framework 0.5 5 5 */ 6 7 if (!defined('ABSPATH')) { 8 exit; // Exit if accessed directly 9 } 6 10 7 11 function cryout_get_theme_options($sub=''){ … … 49 53 endif; 50 54 if (is_numeric($value)): $filtered[esc_attr($key)] = esc_attr($value); 51 else: $filtered[esc_attr($key)] = wp_kses ($value);55 else: $filtered[esc_attr($key)] = wp_kses_post($value); 52 56 endif; 53 57 endforeach; … … 123 127 } // cryout_gfontcleanup() 124 128 125 // FIN! //129 // FIN! -
zombie-apocalypse/2.2.0/footer.php
r82951 r354761 25 25 ?><?php 26 26 /* This retrieves admin options. */ 27 $options = get_option('za_options'); 28 $zmb_info = $options['zmb_info']; 29 $zmb_copyright = $options['zmb_copyright']; 27 $options = zombie_get_options(); 28 $zmb_copyright = isset( $options['zmb_copyright'] ) ? $options['zmb_copyright'] : ''; 30 29 ?> 31 30 </div><!-- #colophon --> 32 <div id="site-info" <?php if($options) if ($zmb_info == "Hide") { ?> style="background:none;padding-top:10px;" <?php } ?> > 33 <a href="<?php echo home_url( '/' ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> 31 <?php /* The options-dependent styles of these elements (the Hide options) are now generated in zombie_get_inline_css() - see includes/custom-style.php */ ?> 32 <div id="site-info"> 33 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> 34 34 <?php bloginfo( 'name' ); ?> 35 </a> | <?php _e("Powered by" , 'zombie-apocalypse'); ?> <a href="http://www.cryoutcreations.eu" target="_blank" title="Zombie Apocalypse Theme by Cryout Creations" > Zombie Apocalypse </a>36 & <a href="<?php echo esc_url( __('http://wordpress.org/', 'zombie-apocalypse') ); ?>"35 </a> | <?php esc_html_e("Powered by" , 'zombie-apocalypse'); ?> <a href="https://www.cryoutcreations.eu" target="_blank" rel="noopener" title="Zombie Apocalypse Theme by Cryout Creations" > Zombie Apocalypse </a> 36 & <a href="<?php echo esc_url( __('//wordpress.org/', 'zombie-apocalypse') ); ?>" 37 37 title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'zombie-apocalypse'); ?>">WordPress</a> 38 38 </div><!-- #site-info --> 39 <?php if ($zmb_copyright != '') { ?><div id="site-copyright"><?php echo $zmb_copyright; ?> </div> <?php } ?>39 <?php if ($zmb_copyright != '') { ?><div id="site-copyright"><?php echo wp_kses_post( $zmb_copyright ); ?> </div> <?php } ?> 40 40 41 41 </div><!-- #footer --> -
zombie-apocalypse/2.2.0/functions.php
r82951 r354761 3 3 /* 4 4 * @package Zombie Apocalypse 5 * @since Zombie Apocalypse 2.05 * @since 0.5 6 6 * 7 * Root functions file 8 * Calls all other required files 9 * PLEASE DO NOT EDIT THIS FILE 10 * use a child theme instead 7 * Root functions file, calls all other required files 8 * 9 * PLEASE DO NOT EDIT THIS FILE or other theme files directly, use a child theme instead 11 10 */ 11 12 if (!defined('ABSPATH')) { 13 exit; // Exit if accessed directly 14 } 12 15 13 16 // variables for theme identification - do NOT edit unless you know what you are doing 14 17 define ("_THEME_NAME", "zombie apocalypse"); 15 define ("_THEME_VERSION","2. 1.0");18 define ("_THEME_VERSION","2.2.0"); 16 19 17 20 // Load necessary admin files … … 20 23 // Load theme functions 21 24 require_once(get_template_directory() . "/includes/theme-functions.php"); 25 26 // Load the styling generated by the theme options 27 require_once(get_template_directory() . "/includes/custom-style.php"); 28 29 // FIN -
zombie-apocalypse/2.2.0/header.php
r82951 r354761 12 12 <html <?php language_attributes(); ?>> 13 13 <head> 14 <meta charset="<?php bloginfo( 'charset' ); ?>" /> 14 15 <meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0, minimum-scale=0.3, maximum-scale=3.0"> 15 < meta charset="<?php bloginfo( 'charset' ); ?>" />16 < link rel="profile" href="http://gmpg.org/xfn/11" />17 < link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />16 <link rel="profile" href="https://gmpg.org/xfn/11" /> 17 <?php /* The theme stylesheet is now enqueued in zombie_scripts() - see includes/theme-functions.php */ ?> 18 <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?> 18 19 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 19 <?php 20 /* This retrieves admin options. */ 21 $options = get_option('za_options'); 22 if($options) { 23 $zmb_hand = $options['zmb_hand']; 24 $zmb_menu = $options['zmb_menu']; 25 $zmb_tables = $options['zmb_tables']; 26 $zmb_side = $options['zmb_side']; 27 $zmb_sidewidth = (int)$options['zmb_sidewidth']; 28 $zmb_colpad = $options['zmb_colpad']; 29 $zmb_fontsize = $options['zmb_fontsize']; 30 $zmb_textalign = $options['zmb_textalign']; 31 $zmb_fontfamily = $options['zmb_fontfamily']; 32 $zmb_caption = $options['zmb_caption']; 33 $zmb_title = $options['zmb_title']; 34 $zmb_pagetitle = $options['zmb_pagetitle']; 35 $zmb_categtitle = $options['zmb_categtitle']; 36 $zmb_postdate = $options['zmb_postdate']; 37 $zmb_postauthor = $options['zmb_postauthor']; 38 $zmb_postcateg = $options['zmb_postcateg']; 39 $zmb_postbook = $options['zmb_postbook']; 40 $zmb_parindent = $options['zmb_parindent']; 41 $zmb_posttime = $options['zmb_posttime']; 42 $zmb_splash = $options['zmb_splash']; 43 $zmb_top = $options['zmb_top']; 44 $zmb_puddle = $options['zmb_puddle']; 45 46 47 if ( $zmb_menu == "Enable") { 48 if ( !is_admin() ) { 49 wp_register_script('menu', 50 get_template_directory_uri() . '/js/menu.js', 51 array('jquery') ); 52 // enqueue the script 53 wp_enqueue_script('menu'); 54 } 55 56 } }?> 57 58 59 <style type="text/css"> 60 <?php 61 if($options) { 62 if ($zmb_side == "Disable") { ?>#content {margin:20px;} <?php } 63 ?><?php $zmb_sidewidth = $zmb_sidewidth - $zmb_colpad; 64 if ($zmb_side == "Right") { ?> 65 #container {margin-right:<?php echo (-920+$zmb_sidewidth) ?>px;} 66 #content { width:<?php echo ($zmb_sidewidth) ?>px;} 67 #primary,#secondary {width:<?php echo (900-$zmb_sidewidth - $zmb_colpad ) ?>px;} 68 #content img { max-width:<?php echo ($zmb_sidewidth-40) ?>px;} 69 #content .wp-caption{ max-width:<?php echo ($zmb_sidewidth-30) ?>px;} <?php } 70 ?><?php if ($zmb_side == "Left") { ?> 71 #container {margin:0 0 0 <?php echo (-920+$zmb_sidewidth) ?>px;float:right;} 72 #content { width:<?php echo ($zmb_sidewidth) ?>px;float:right;margin:0 20px 0 0;} 73 #primary,#secondary {width:<?php echo (900-$zmb_sidewidth - $zmb_colpad) ?>px;float:left;padding-left:20px;clear:left;} 74 #primary {background:url(<?php echo get_template_directory_uri(); ?>/images/widget2.jpg) left top no-repeat;} 75 #content img { max-width:<?php echo ($zmb_sidewidth-40) ?>px;} 76 #content .wp-caption{ max-width:<?php echo ($zmb_sidewidth-30) ?>px;} <?php } ?> 77 78 #content p, #content ul, #content ol { 79 font-size:<?php echo $zmb_fontsize ?>; 80 <?php if ($zmb_textalign != "Default") { ?>text-align:<?php echo $zmb_textalign; ?> ; <?php } ?>} 81 <?php if (stripslashes($zmb_fontfamily) != "Verdana, Geneva, sans-serif (Default)") { ?> 82 * {font-family:<?php echo stripslashes($zmb_fontfamily); ?>; }<?php } 83 ?><?php if ($zmb_caption != "Light Gray") { ?> #content .wp-caption { <?php } 84 ?><?php if ($zmb_caption == "Black") { ?> color:#900;background:#000;border-color:#900;} 85 <?php } else if ($zmb_caption == "Gray") {?> color:#333;background:url(<?php echo get_template_directory_uri(); ?>/images/frames/Gray.jpg) repeat;} 86 <?php } else if ($zmb_caption == "Bloody") {?> color:#CCC;background:url(<?php echo get_template_directory_uri(); ?>/images/frames/Bloody.jpg) repeat #CCC;border-color:#000;} 87 <?php } else if ($zmb_caption == "Light Bloody") {?> color:#CCC;background:url(<?php echo get_template_directory_uri(); ?>/images/frames/LightBloody.jpg) repeat;} 88 <?php } else if ($zmb_caption == "Paper") {?> color:#333;background:url(<?php echo get_template_directory_uri(); ?>/images/frames/Paper.jpg) repeat #CCC;} 89 <?php } 90 ?><?php if ($zmb_title == "Hide") { ?> #site-title, #site-description { visibility:hidden;} <?php } 91 ?><?php if ($zmb_tables == "Enable") { ?> #content table {border:none;} #content tr {background:none;} #content table {border:none;} #content tr th, 92 #content thead th {background:none;} #content tr td {border:none;}<?php } 93 ?><?php if ($zmb_pagetitle == "Hide") { ?> #content h1.entry-title { display:none;} <?php } 94 ?><?php if ($zmb_categtitle == "Hide") { ?> h1.page-title { display:none;} <?php } 95 ?><?php if ($zmb_postdate == "Hide" && $zmb_postauthor == "Hide" && $zmb_posttime == "Hide") { ?>.entry-meta {display:none;} <?php } 96 ?><?php if ($zmb_postdate == "Hide") { ?> span.entry-date, span.onDate {display:none;} <?php } 97 ?><?php if ($zmb_postauthor == "Hide") { ?> .author,.entry-meta .meta-sep {display:none;} <?php } 98 ?><?php if ($zmb_postcateg == "Hide") { ?> .cat-links, span.bl_posted {display:none;} <?php } 99 ?><?php if ($zmb_postbook == "Hide") { ?> span.bl_bookmark {display:none;} <?php } 100 ?><?php if ($zmb_parindent != "0px") { ?> p {text-indent:<?php echo $zmb_parindent;?> ;} <?php } 101 ?><?php if ($zmb_posttime == "Hide") { ?> .entry-time {display:none;} <?php } }?> 102 </style> 103 104 105 <?php 106 /* We add some JavaScript to pages with the comment form 107 * to support sites with threaded comments (when in use). 108 */ 109 if ( is_singular() && get_option( 'thread_comments' ) ) 110 wp_enqueue_script( 'comment-reply' ); 111 112 /* Always have wp_head() just before the closing </head> 113 * tag of your theme, or you will break many plugins, which 114 * generally use this hook to add elements to <head> such 115 * as styles, scripts, and meta tags. 116 */ 117 wp_enqueue_script("jquery"); 118 wp_head(); ?> 20 <?php endif; ?> 21 <?php wp_head(); ?> 119 22 </head> 120 23 121 24 <body <?php body_class(); ?>> 25 <?php wp_body_open(); ?> 122 26 123 27 124 28 125 <div id="topper" <?php if($options) if ($zmb_splash == "Hide") { ?> style="background-image:none;" <?php } ?>> 126 <div id="splatter" <?php if($options) if ($zmb_top == "Hide") { ?> style="background-image:none;" <?php } ?>> 29 <?php /* The options-dependent styles of these elements (the Hide options) are now generated in zombie_get_inline_css() - see includes/custom-style.php */ ?> 30 <div id="topper"> 31 <div id="splatter"> 127 32 <div id="wrapper" class="hfeed"> 128 <div id="header" <?php if($options) if ($zmb_hand=="Hide") { ?> style="background-image:none;" <?php } ?>>33 <div id="header"> 129 34 130 35 <div id="masthead"> 131 36 <div id="branding" role="banner"> 132 37 <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?> 133 <<?php echo $heading_tag; ?> id="site-title">38 <<?php echo tag_escape( $heading_tag ); ?> id="site-title"> 134 39 <span> 135 <a href="<?php echo home_url( '/'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>40 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> 136 41 </span> 137 </<?php echo $heading_tag; ?>>42 </<?php echo tag_escape( $heading_tag ); ?>> 138 43 <div id="site-description"><?php bloginfo( 'description' ); ?></div> 139 44 … … 143 48 has_post_thumbnail( $post->ID ) && 144 49 ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && 145 $image[1] >= HEADER_IMAGE_WIDTH) :50 $image[1] >= absint( get_theme_support( 'custom-header' )[0]['width'] ) ) : 146 51 // Houston, we have a new header image! 147 52 echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); 148 53 else : ?><?php if (get_header_image() != '') { ?> 149 54 150 <style> #branding { background:url(<?php header_image(); ?>) no-repeat; 151 width:<?php echo HEADER_IMAGE_WIDTH; ?>px;margin-left:20px; 152 height:<?php echo HEADER_IMAGE_HEIGHT; ?>px; } 153 </style> 55 <?php /* The header image CSS is now added together with the main stylesheet, in zombie_get_inline_css() - see includes/custom-style.php */ ?> 154 56 <?php } else { ?><?php } ?><?php endif; ?> 155 57 </div><!-- #branding --> … … 157 59 <div id="access" role="navigation"> 158 60 <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?> 159 <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'zombie-apocalypse' ); ?>"><?php _e( 'Skip to content', 'zombie-apocalypse' ); ?></a></div>61 <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'zombie-apocalypse' ); ?>"><?php esc_html_e( 'Skip to content', 'zombie-apocalypse' ); ?></a></div> 160 62 <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ 161 63 ?><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> … … 168 70 169 71 <div id="main"> 170 <div <?php if($options) {if ($zmb_puddle == "Hide") { ?> id="forbottom2" <?php } else { ?> id="forbottom" <?php }} else {?> id="forbottom" <?php } ?> > 72 <div id="forbottom"> 73 74 <?php /* FIN */ ?> -
zombie-apocalypse/2.2.0/includes/theme-functions.php
r82951 r354761 43 43 load_theme_textdomain( 'zombie-apocalypse', get_template_directory() . '/languages' ); 44 44 45 $locale = get_locale();46 $locale_file = get_template_directory() . "/languages/$locale.php";47 if ( is_readable( $locale_file ) )48 require_once( $locale_file );49 50 45 // This theme uses wp_nav_menu() in one location. 51 46 register_nav_menus( array( … … 56 51 add_theme_support( 'custom-background', array('default-image' => get_template_directory_uri().'/images/back.jpg' ) ); 57 52 58 // Your changeable header business starts here 59 define( 'HEADER_TEXTCOLOR', '' ); 60 // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI. 61 define( 'HEADER_IMAGE', '' ); 62 63 // The height and width of your custom header. You can hook into the theme's own filters to change these values. 64 // Add a filter to zombie_header_image_width and zombie_header_image_height to change these values. 65 define( 'HEADER_IMAGE_WIDTH', apply_filters( 'zombie_header_image_width', 940 ) ); 66 define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'zombie_header_image_height', 200 ) ); 67 53 54 // Add a way for the custom header to be styled in the admin panel that controls custom headers. 55 add_theme_support( 'custom-header', array( 56 'default-image' => '', 57 'width' => apply_filters( 'zombie_header_image_width', 940 ), 58 'height' => apply_filters( 'zombie_header_image_height', 200 ), 59 'flex-width' => false, 60 'flex-height' => false, 61 'header-text' => false, 62 //'default-image' => get_template_directory_uri() . '/images/header.jpg', // Optional: default header image 63 ) ); 64 68 65 // We'll be using post thumbnails for custom header images on posts and pages. 69 66 // We want them to be 900 pixels wide by 200 pixels tall. 70 67 // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. 71 set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); 72 73 // Don't support text inside the header image. 74 define( 'NO_HEADER_TEXT', true ); 75 76 // Add a way for the custom header to be styled in the admin panel that controls 77 // custom headers. See zombie_admin_header_style(), below. 78 add_theme_support( 'custom-header' ); 79 80 // ... and thus ends the changeable header business. 68 set_post_thumbnail_size( 69 apply_filters( 'zombie_featured_image_width', 940 ), 70 apply_filters( 'zombie_featured_image_height', 200 ), 71 true 72 ); 73 74 // allow figure-based galleries instead of the old markup 75 add_theme_support( 'html5', array( 'gallery' ) ); 81 76 82 77 // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. … … 106 101 endif; 107 102 108 if ( ! function_exists( 'zombie_admin_header_style' ) ) : 109 /** 110 * Styles the header image displayed on the Appearance > Header admin panel. 111 * 112 * Referenced via add_custom_image_header() in zombie_setup(). 113 * 114 * @since Zombie Apocalypse 0.5 115 */ 116 function zombie_admin_header_style() { 117 ?> 118 <style type="text/css"> 119 /* Shows the same border as on front end */ 120 #headimg { 121 border-bottom: 1px solid #000; 122 border-top: 4px solid #000; 123 } 124 /* If NO_HEADER_TEXT is false, you would style the text with these selectors: 125 #headimg #name { } 126 #headimg #desc { } 127 */ 128 </style> 129 <?php 130 } 131 endif; 132 133 // Backwards compatibility for the title-tag 134 if ( ! function_exists( '_wp_render_title_tag' ) ) : 135 add_action( 'wp_head', 'zombie_render_title' ); 136 add_filter( 'wp_title', 'zombie_filter_wp_title' ); 137 add_filter('wp_title_rss','zombie_filter_wp_title_rss'); 138 endif; 139 140 function zombie_render_title() { ?> 141 <title><?php wp_title( '', true, 'right' ); ?></title> 142 <?php } 143 144 function zombie_filter_wp_title( $title ) { 145 // Get the Site Name 146 $site_name = get_bloginfo( 'name' ); 147 // Prepend name 148 $filtered_title = (((strlen($site_name)>0)&&(strlen($title)>0))?$title.' - '.$site_name:$title.$site_name); 149 // Get the Site Description 150 $site_description = get_bloginfo( 'description' ); 151 // If site front page, append description 152 if ( (is_home() || is_front_page()) && $site_description ) { 153 // Append Site Description to title 154 $filtered_title = ((strlen($site_name)>0)&&(strlen($site_description)>0))?$site_name. " | ".$site_description:$site_name.$site_description; 155 } 156 // Add pagination if that's the case 157 global $page, $paged; 158 if ( $paged >= 2 || $page >= 2 ) 159 $filtered_title .= ' | ' . sprintf( __( 'Page %s', 'zombie-apocalypse' ), max( $paged, $page ) ); 160 161 // Return the modified title 162 return $filtered_title; 163 } 164 165 function zombie_filter_wp_title_rss($title) { 166 return ' '; 167 } 103 104 /** 105 * Enqueues the theme's front-end styles and scripts. 106 * (moved here from header.php) 107 * 108 * @since Zombie Apocalypse 2.2.0 109 */ 110 function zombie_scripts() { 111 112 // main stylesheet 113 wp_enqueue_style( 'zombie-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) ); 114 // options-based layout and styling, printed right after the main stylesheet 115 wp_add_inline_style( 'zombie-style', zombie_get_inline_css() ); 116 117 $options = zombie_get_options( array( 'zmb_menu' ) ); 118 wp_enqueue_script( 'zombie-menu', get_template_directory_uri() . '/menu.js', array( 'jquery' ), wp_get_theme()->get( 'Version' ), false ); 119 // menu animation, if enabled in the theme options 120 wp_localize_script( 'zombie-menu', 'zombieOptions', array( 'menuAnimation' => ( 'Enable' == $options['zmb_menu'] ? true : false ) ) ); 121 122 /* We add some JavaScript to pages with the comment form 123 * to support sites with threaded comments (when in use). 124 */ 125 if ( is_singular() && get_option( 'thread_comments' ) ) { 126 wp_enqueue_script( 'comment-reply' ); 127 } 128 } 129 add_action( 'wp_enqueue_scripts', 'zombie_scripts' ); 130 131 function zombie_featured_header( $old_url ) { 132 if ( is_singular() ) { 133 $post_id = get_queried_object_id(); 134 if ( $post_id && has_post_thumbnail( $post_id ) ) { 135 $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), 'post-thumbnail' ); 136 if ( $image && $image[1] >= absint( get_theme_support( 'custom-header' )[0]['width'] ) ) { 137 return $image[0]; 138 } 139 } 140 } 141 }; // zombie_featured_header() 142 //add_filter( 'get_header_image', 'zombie_featured_header'); 143 144 /** 145 * Returns the theme options (all or subsets) using the theme defaults for any option that was not saved. 146 * 147 * @since Zombie Apocalypse 2.2.0 148 * @return array 149 */ 150 function zombie_get_options( $subs=array() ) { 151 $defaults = function_exists( 'zombie_get_option_defaults' ) ? zombie_get_option_defaults() : array(); 152 $saved = get_option( 'za_options' ); 153 if ( ! is_array( $saved ) ) { 154 $saved = array(); 155 } 156 $opts = wp_parse_args( $saved, $defaults ); 157 158 // parse partial requests 159 $returns = array(); 160 if ( is_array($subs) ) { 161 foreach ($subs as $sub) { 162 if ( isset($opts[$sub]) ) $returns[$sub] = $opts[$sub]; else $returns[$sub] = ''; 163 } 164 return $returns; 165 } elseif ( !empty ($subs) ) { 166 if ( isset($opts[$subs]) ) return $opts[$subs]; 167 } else { 168 return $opts; 169 } 170 return ''; 171 } // zombie_get_options() 168 172 169 173 /** … … 199 203 */ 200 204 function zombie_continue_reading_link() { 201 return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'zombie-apocalypse' ) . '</a>';205 return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'zombie-apocalypse' ) . '</a>'; 202 206 } 203 207 … … 242 246 */ 243 247 function zombie_remove_gallery_css( $css ) { 244 return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );248 return preg_replace( "#<style[^>]*>(.*?)</style>#s", '', $css ); 245 249 } 246 250 add_filter( 'gallery_style', 'zombie_remove_gallery_css' ); … … 260 264 $GLOBALS['comment'] = $comment; 261 265 switch ( $comment->comment_type ) : 262 case '' : 266 case 'comment' : // regular comments, as stored by WordPress 5.5 and newer 267 case '' : // regular comments, as stored by older WordPress versions 263 268 ?> 264 269 <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> 265 270 <div id="comment-<?php comment_ID(); ?>"> 266 271 <div class="comment-author vcard"> 267 <?php echo get_avatar( $comment, 40 ); 268 ?><?php printf( __( '%s <span class="says">says:</span>', 'zombie-apocalypse' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> 272 <?php echo get_avatar( $comment, 40 ); ?> 273 <?php /* translators: %s: Comment author name */ ?> 274 <?php echo wp_kses_post( sprintf( __( '%s <span class="says">says:</span>', 'zombie-apocalypse' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ) ); ?> 269 275 </div><!-- .comment-author .vcard --> 270 276 <?php if ( $comment->comment_approved == '0' ) : ?> 271 <em><?php _e( 'Your comment is awaiting moderation.', 'zombie-apocalypse' ); ?></em>277 <em><?php esc_html_e( 'Your comment is awaiting moderation.', 'zombie-apocalypse' ); ?></em> 272 278 <br /> 273 279 <?php endif; ?> … … 276 282 <?php 277 283 /* translators: 1: date, 2: time */ 278 printf( __( '%1$s at %2$s', 'zombie-apocalypse' ), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'zombie-apocalypse' ), ' ' );284 printf( esc_html__( '%1$s at %2$s', 'zombie-apocalypse' ), esc_html( get_comment_date() ), esc_html( get_comment_time() ) ); ?></a><?php edit_comment_link( __( '(Edit)', 'zombie-apocalypse' ), ' ' ); 279 285 ?> 280 286 </div><!-- .comment-meta .commentmetadata --> … … 293 299 ?> 294 300 <li class="post pingback"> 295 <p><?php _e( 'Pingback:', 'zombie-apocalypse' ); ?><?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'zombie-apocalypse'), ' ' ); ?></p>301 <p><?php esc_html_e( 'Pingback:', 'zombie-apocalypse' ); ?><?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'zombie-apocalypse'), ' ' ); ?></p> 296 302 <?php 297 303 break; … … 389 395 function zombie_remove_recent_comments_style() { 390 396 global $wp_widget_factory; 391 remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); 397 if ( isset( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'] ) ) { 398 remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); 399 } 392 400 } 393 401 add_action( 'widgets_init', 'zombie_remove_recent_comments_style' ); … … 395 403 if ( ! function_exists( 'zombie_posted_on' ) ) : 396 404 /** 397 * Prints HTML with meta information for the current post date/time and author.405 * Prints HTML with meta information for the current post-date/time and author. 398 406 * 399 407 * @since Zombie Apocalypse 0.5 400 408 */ 401 409 function zombie_posted_on() { 402 printf( __( '<span class="%1$s">Posted </span><span class="onDate">on </span> %2$s <span class="meta-sep">by</span> %3$s', 'zombie-apocalypse' ), 410 /* translators: 1: CSS classes 2: Post publish date (and time) 3: Author name */ 411 echo wp_kses_post( sprintf( __( '<span class="%1$s">Posted </span><span class="onDate">on </span> %2$s <span class="meta-sep">by</span> %3$s', 'zombie-apocalypse' ), 403 412 'meta-prep meta-prep-author', 404 sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span> <span class="entry-time"> at %2$s</span></a>',405 get_permalink(),413 sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span> <span class="entry-time"> %4$s</span></a>', 414 esc_url( get_permalink() ), 406 415 esc_attr( get_the_time() ), 407 get_the_date() 416 esc_html( get_the_date() ), 417 /* translators: %s: Post publish time */ 418 sprintf( __( 'at %s', 'zombie-apocalypse' ), esc_html( get_the_time() ) ) 408 419 ), 409 420 sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 410 get_author_posts_url( get_the_author_meta( 'ID' ) ), 411 sprintf( esc_attr__( 'View all posts by %s', 'zombie-apocalypse' ), get_the_author() ), 412 get_the_author() 421 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 422 /* translators: %s: Author name */ 423 sprintf( esc_attr__( 'View all posts by %s', 'zombie-apocalypse' ), esc_attr( get_the_author() ) ), 424 esc_html( get_the_author() ) 413 425 ) 414 ) ;426 ) ); 415 427 } 416 428 endif; … … 426 438 $tag_list = get_the_tag_list( '', ', ' ); 427 439 if ( $tag_list ) { 440 /* translators: 1: Categories list 2: Tags list 3: Permalink URL, 4: Post title */ 428 441 $posted_in = __( '<span class="bl_posted"> This entry was posted in %1$s and tagged %2$s.</span><span class="bl_bookmark"> Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.</span>', 'zombie-apocalypse' ); 429 442 } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { 443 /* translators: 1: Categories list 3: Permalink URL 4: Post title */ 430 444 $posted_in = __( '<span class="bl_posted">This entry was posted in %1$s.</span> <span class="bl_bookmark">Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.</span>', 'zombie-apocalypse' ); 431 445 } else { 446 /* translators: 3: Permalink URL 4: Post title */ 432 447 $posted_in = __( '<span class="bl_bookmark">Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.</span>', 'zombie-apocalypse' ); 433 448 } 434 449 // Prints the string, replacing the placeholders. 435 printf(450 echo wp_kses_post( sprintf( 436 451 $posted_in, 437 452 get_the_category_list( ', ' ), 438 453 $tag_list, 439 get_permalink(),454 esc_url( get_permalink() ), 440 455 the_title_attribute( 'echo=0' ) 441 ) ;456 ) ); 442 457 } 443 458 endif; 444 459 460 // FIN -
zombie-apocalypse/2.2.0/index.php
r82951 r354761 31 31 <?php get_sidebar(); ?> 32 32 <?php get_footer(); ?> 33 34 <?php /* FIN */ ?> -
zombie-apocalypse/2.2.0/loop.php
r82951 r354761 31 31 <?php if ( ! have_posts() ) : ?> 32 32 <div id="post-0" class="post error404 not-found"> 33 <h1 class="entry-title"><?php _e( 'Not Found', 'zombie-apocalypse' ); ?></h1>33 <h1 class="entry-title"><?php esc_html_e( 'Not Found', 'zombie-apocalypse' ); ?></h1> 34 34 <div class="entry-content"> 35 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'zombie-apocalypse' ); ?></p>35 <p><?php esc_html_e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'zombie-apocalypse' ); ?></p> 36 36 <?php get_search_form(); ?> 37 37 </div><!-- .entry-content --> … … 60 60 <?php if ( has_post_format( 'gallery' ) ) : ?> 61 61 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 62 <?php /* translators: %s: Post title */ ?> 62 63 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'zombie-apocalypse' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 63 64 … … 71 72 <?php else : ?> 72 73 <?php 73 $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999) );74 $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 100 ) ); 74 75 if ( $images ) : 75 76 $total_images = count( $images ); … … 78 79 ?> 79 80 <div class="gallery-thumb"> 80 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a>81 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo wp_kses( $image_img_tag, array( 'img' => array( 'src' => true, 'srcset' => true, 'sizes' => true, 'class' => true, 'alt' => true, 'title' => true, 'width' => true, 'height' => true, 'loading' => true, 'decoding' => true, 'style' => true ) ) ); ?></a> 81 82 </div><!-- .gallery-thumb --> 82 <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'zombie-apocalypse' ), 83 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'zombie-apocalypse' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', 84 $total_images 85 ); ?></em></p> 83 <?php /* translators: 1: Permalink to post 2: Total gallery images count */ ?> 84 <p><em><?php echo wp_kses_post( sprintf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'zombie-apocalypse' ), 85 /* translators: %s: Post title */ 86 'href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'zombie-apocalypse' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', 87 absint( $total_images ) 88 ) ); ?></em></p> 86 89 <?php endif; ?> 87 90 <?php the_excerpt(); ?> … … 92 95 <?php if ( count( get_the_category() ) ) : ?> 93 96 <span class="cat-links"> 94 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'zombie-apocalypse' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> 97 <?php /* translators: 1: CSS classes 2: Categories list */ ?> 98 <?php echo wp_kses_post( sprintf( __( '<span class="%1$s">Posted in</span> %2$s', 'zombie-apocalypse' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ) ); ?> 95 99 <span class="meta-sep">|</span> 96 100 </span> … … 130 134 <?php else : ?> 131 135 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 136 <?php /* translators: %s: Post title */ ?> 132 137 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'zombie-apocalypse' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 133 138 … … 150 155 <?php if ( count( get_the_category() ) ) : ?> 151 156 <span class="cat-links"> 152 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'zombie-apocalypse' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> 157 <?php /* translators: 1: CSS classes 2: Categories list */ ?> 158 <?php echo wp_kses_post( sprintf( __( '<span class="%1$s">Posted in</span> %2$s', 'zombie-apocalypse' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ) ); ?> 153 159 <span class="meta-sep">|</span> 154 160 </span> … … 160 166 ?> 161 167 <span class="tag-links"> 162 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'zombie-apocalypse' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> 168 <?php /* translators: 1: CSS classes 2: Tags list */ ?> 169 <?php echo wp_kses_post( sprintf( __( '<span class="%1$s">Tagged</span> %2$s', 'zombie-apocalypse' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ) ); ?> 163 170 </span> 164 171 <span class="meta-sep">|</span> … … 182 189 </div><!-- #nav-below --> 183 190 <?php endif; ?> 191 192 <?php /* FIN */ ?> -
zombie-apocalypse/2.2.0/readme.txt
r82951 r354761 1 1 ============= 2 2 Zombie Apocalypse WordPress Theme 3 Copyright 2010-20 17Cryout Creations3 Copyright 2010-2026 Cryout Creations 4 4 5 5 Author: Cryout Creations 6 Author URI: http://www.cryoutcreations.eu 7 Requires at least: 4.2 8 Tested up to: 4.8.2 9 Stable tag: 2.1.0 6 Author URI: https://www.cryoutcreations.eu 7 Requires at least: 5.6 8 Tested up to: 7.1 9 Requires PHP: 5.6 10 Stable tag: 2.2.0 10 11 License: GPLv2 or later 11 License URI: http ://www.gnu.org/licenses/gpl-2.0.html12 Donate link: http ://www.cryoutcreations.eu/donate/12 License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 Donate link: https://www.cryoutcreations.eu/donate/ 13 14 14 15 The Zombie Apocalypse theme for WordPress is a dark and bloody theme with zombie inspired graphics and with a horror movie look to it. 15 The theme also presents itself with a very cleanlayout and cross-browser compatibility.16 The theme also presents itself with a clean conservative layout and cross-browser compatibility. 16 17 17 18 == Description == 18 19 19 20 The Zombie Apocalypse theme for WordPress is a dark and bloody theme with zombie inspired graphics and with a horror movie look to it. 20 The theme also presents itself with a very clean layout and cross-browser compatibility. 21 The theme also presents itself with a clean conservative layout and cross-browser compatibility. 22 Zombie Apocalypse - the theme that refuses to die. 21 23 22 24 There are also 25 customization options available: … … 27 29 * Configurable fonts (family, size, alignment) 28 30 * Post metas (author, category, date, time, tags) can be hidden 29 * All gore graphics can be removed at will31 * All gore graphics can be removed or censored at will 30 32 * Editable footer site info text. 31 33 … … 34 36 Theme created by Cryout Creations - www.cryoutcreations.eu 35 37 36 Info: http ://www.cryoutcreations.eu/zombie-apocalypse37 Forum: http ://www.cryoutcreations.eu/forums/f/wordpress/zombie-apocalypse38 Info: https://www.cryoutcreations.eu/zombie-apocalypse 39 Forum: https://www.cryoutcreations.eu/forums/f/wordpress/zombie-apocalypse 38 40 39 The theme and all included binaries (all images, patterns and icons) are released under the GPLv2 licence, which means that you are free to use, modify, and redistribute the theme and all included binaries however you like, as long as you keep the licence together with the theme. This also means that you are free to use it for commercial purposes without any charges. Please read the included license.txt for the full licence. 41 The theme files and all included images are released under the GPLv2 licence, which means that you are free to use, modify, and redistribute the theme and all included binaries however you like, as long as you keep the licence together with the theme. This also means that you are free to use it for commercial purposes without any charges. Please read the included license.txt for the full licence. 42 43 == Copyright == 44 45 Zombie Apocalypse WordPress Theme, Copyright 2010-2026 Cryout Creations 46 Zombie Apocalypse is distributed under the terms of the GNU General Public License v2 or later. 47 48 All images (backgrounds, headers, frames, icons and the screenshot), stylesheets and scripts included with the theme were created by Cryout Creations and are released under the same license as the theme. 40 49 41 50 == Changelog == 51 52 = 2.2.0 = 53 Important notes for existing sites and child themes: 54 * Child themes: if a child theme contains its own copies of header.php, footer.php, sidebar.php or searchform.php from an earlier version, update them from the current version. The old copies keep working, but they print the stylesheet and the options CSS twice, and the old header.php produces PHP 8 warnings. 55 * Child themes: the theme options array ($cryout_theme_options) is now loaded on 'after_setup_theme' action at priority 11, so any code that reads it earlier will not find it. 56 * Child themes and custom CSS: all the gore elements moved to 'before' pseudo-elements making any existing styling that customizes them malfunction. 57 * The styling that depends on the theme options (layout widths, text sizes, the Hide options and the header image) is now generated in includes/custom-style.php. The Hide options are no longer printed as inline style attributes by header.php, footer.php and sidebar.php. 58 * Comments posted since WordPress 5.5 were possibly not displayed by the previous version of the theme. They are now visible again. 59 60 Updates and fixes 61 * Rewrote theme styles and scripts to now be enqueued properly - *will partially break child themes* 62 * Refactored the options-based CSS styling generation from in-line placement to the includes/custom-style.php file and enqueued it to the main stylesheet - *can partially break child themes* 63 * Added the wp_body_open() hook to the header 64 * Added old-school gore censorship option 65 * Added "Modern Padding" layout option to allow for a configurable (slight) increase in general padding around the content 66 * Added "Lists Font Size" option to control text size in lists relative to general text 67 * Added label for screen readers and placeholder instead of default value to the search form input and removed its focus/blur scripts 68 * Added validation for the select and font options in the customizer 69 * Added escaping for remaining translated and dynamic output in the theme templates 70 * Added check to add the pingback link only where pingbacks are open 71 * Added a latest theme news list with on-demand loading to the theme's about page 72 * Added the required theme information headers and updated readme and tags 73 * Added keyboard navigation support for accessibility on the main menu while retaining the menu animation option 74 * Custom header support is now declared with its settings instead of the deprecated constants 75 * Updated example header images to be the correct (site) width 76 * Changed front-facing outgoing links in the theme to be protocol-agnostic 77 * Updated non-working donation button 78 * Replaced deprecated lists background image bullets with list-style-image bullet images 79 * Improved translation support: unified the text domain, removed empty translation strings, made About page, search form and customizer labels translatable, added translator hints for strings with placeholders 80 * Improved HTML validation: duplicate search form IDs, WordPress gallery styles printed inside the page body, bare ampersand, meta tag order 81 * Sorted out splatter/topper images names to elements correspondence 82 * Fixed the "Skip to content" link to make it visible on keyboard focus 83 * Fixed regular comments not displaying with WordPress 5.5 and newer 84 * Fixed PHP 8.0+ warnings when theme options are missing or only partly saved 85 * Fixed translations being loaded too early notice with WordPress 6.7+; theme options are now loaded after the text domain 86 * Fixed the attachment page "Return to" link title and missing image metadata notices 87 * Fixed WordPress gallery style clearing no longer working since HTML5 galleries 88 * Fixed jQuery 3 incompatibilities in the admin script 89 * Fixed the monthly and yearly archive titles to use translatable date formats 90 * Fixed misaligned checkboxes/radios in comments form 91 * Fixed use of deprecated header image sizing constant and replaced with add_theme_support() 92 * Fixed theme indicator misaligned in the customizer with WordPress 6.7+ 93 * Removed deprecated pre-WordPress 4.1 title handling code 94 * Removed unused jQuery UI file (admin/js/accordion-slider.js) 95 * Removed unused theme options import/export code and a misplaced duplicate admin.php file 96 * Removed unused Facebook and Twitter functionality in the admin script 97 * Validated with Theme Check plugin to meet current WordPress.org theme requirements (now requires WordPress 5.6 and is compatible with PHP 8.0 and newer) 42 98 43 99 = 2.1.0 = -
zombie-apocalypse/2.2.0/rtl.css
r82951 r354761 1 1 /* 2 Theme Name: Zombie Apocalypse3 */2 * Theme Name: Zombie Apocalypse 3 */ 4 4 5 5 6 6 /* 7 RTL Basics8 */7 * RTL Basics 8 */ 9 9 10 10 … … 281 281 padding-left: 0; 282 282 } 283 284 /* FIN */ -
zombie-apocalypse/2.2.0/search.php
r82951 r354761 14 14 15 15 <?php if ( have_posts() ) : ?> 16 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'zombie-apocalypse' ), '<span>' . get_search_query() . '</span>' ); ?></h1> 16 <?php /* translators: %s: Searched string */ ?> 17 <h1 class="page-title"><?php echo wp_kses_post( sprintf( __( 'Search Results for: %s', 'zombie-apocalypse' ), '<span>' . esc_html( get_search_query( false ) ) . '</span>' ) ); ?></h1> 17 18 <?php get_search_form(); 18 19 get_template_part( 'loop', 'search' ); … … 20 21 <?php else : ?> 21 22 <div id="post-0" class="post no-results not-found"> 22 <h2 class="entry-title"><?php _e( 'Nothing Found', 'zombie-apocalypse' ); ?></h2>23 <h2 class="entry-title"><?php esc_html_e( 'Nothing Found', 'zombie-apocalypse' ); ?></h2> 23 24 <div class="entry-content"> 24 <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'zombie-apocalypse' ); ?></p>25 <p><?php esc_html_e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'zombie-apocalypse' ); ?></p> 25 26 <?php get_search_form(); ?> 26 27 </div><!-- .entry-content --> -
zombie-apocalypse/2.2.0/searchform.php
r82951 r354761 1 2 <?php $search_text = "Search"; ?> 3 <form method="get" id="searchform" 4 action="<?php echo home_url( '/' ); ?>/"> 5 <input type="text" value="<?php echo $search_text; ?>" 6 name="s" id="s" 7 onblur="if (this.value == '') 8 {this.value = '<?php echo $search_text; ?>';}" 9 onfocus="if (this.value == '<?php echo $search_text; ?>') 10 {this.value = '';}" />11 <input type="submit" id="searchsubmit" value="" />12 </form>1 <?php 2 $search_text = __( 'Search', 'zombie-apocalypse' ); 3 /* The first search form on a page keeps the original ids (used by the theme stylesheet); 4 * any other search form on the same page gets unique ids, to avoid duplicate ids in the page. */ 5 global $zombie_search_forms; 6 $zombie_search_forms = isset( $zombie_search_forms ) ? $zombie_search_forms + 1 : 1; 7 $zombie_search_id = ( $zombie_search_forms > 1 ) ? '-' . $zombie_search_forms : ''; ?> 8 <form method="get" id="searchform<?php echo esc_attr( $zombie_search_id ); ?>" action="<?php echo esc_url( home_url( '/' ) ); ?>"> 9 <label class="screen-reader-text" for="s<?php echo esc_attr( $zombie_search_id ); ?>"><?php esc_html_e( 'Search for:', 'zombie-apocalypse' ); ?></label> 10 <input type="text" class="search-field" value="" placeholder="<?php echo esc_attr( $search_text ); ?>" name="s" id="s<?php echo esc_attr( $zombie_search_id ); ?>" /> 11 <input type="submit" class="search-submit" id="searchsubmit<?php echo esc_attr( $zombie_search_id ); ?>" value="" aria-label="<?php echo esc_attr( $search_text ); ?>" /> 12 </form> -
zombie-apocalypse/2.2.0/sidebar.php
r82951 r354761 7 7 * @since Zombie Apocalypse 0.5 8 8 */ 9 ?><?php10 /* This retrieves admin options. */11 $options = get_option('za_options');12 $zmb_drips = $options['zmb_drips'];13 $zmb_side = $options['zmb_side'];14 9 ?> 15 < div id="primary" class="widget-area" role="complementary" <?php if($options) if ($zmb_drips == "Hide" && $zmb_side != "Disable") { ?> style="background:none;" <?php }16 ?><?php if ($zmb_side == "Disable") { ?> style="display:none;" <?php } ?>>10 <?php /* The options-dependent styles of these elements (the Hide options) are now generated in zombie_get_inline_css() - see includes/custom-style.php */ ?> 11 <div id="primary" class="widget-area" role="complementary"> 17 12 <ul class="xoxo"> 18 13 … … 30 25 31 26 <li id="archives" class="widget-container"> 32 <h3 class="widget-title"><?php _e( 'Archives', 'zombie-apocalypse' ); ?></h3>27 <h3 class="widget-title"><?php esc_html_e( 'Archives', 'zombie-apocalypse' ); ?></h3> 33 28 <ul> 34 29 <?php wp_get_archives( 'type=monthly' ); ?> … … 37 32 38 33 <li id="meta" class="widget-container"> 39 <h3 class="widget-title"><?php _e( 'Meta', 'zombie-apocalypse' ); ?></h3>34 <h3 class="widget-title"><?php esc_html_e( 'Meta', 'zombie-apocalypse' ); ?></h3> 40 35 <ul> 41 36 <?php wp_register(); ?> … … 53 48 if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?> 54 49 55 <div id="secondary" class="widget-area" role="complementary" <?php if($options) if ($zmb_side == "Disable") { ?> style="display:none;" <?php } ?>>50 <div id="secondary" class="widget-area" role="complementary"> 56 51 <ul class="xoxo"> 57 52 <?php dynamic_sidebar( 'secondary-widget-area' ); ?> -
zombie-apocalypse/2.2.0/single.php
r82951 r354761 38 38 </div><!-- #author-avatar --> 39 39 <div id="author-description"> 40 <h2><?php printf( esc_attr__( 'About %s', 'zombie-apocalypse' ), get_the_author() ); ?></h2> 40 <?php /* translators: %s: Author name */ ?> 41 <h2><?php printf( esc_html__( 'About %s', 'zombie-apocalypse' ), esc_html( get_the_author() ) ); ?></h2> 41 42 <?php the_author_meta( 'description' ); ?> 42 43 <div id="author-link"> 43 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> 44 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'zombie-apocalypse' ), get_the_author() ); ?> 44 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"> 45 <?php /* translators: %s: Author name */ ?> 46 <?php echo wp_kses_post( sprintf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'zombie-apocalypse' ), esc_html( get_the_author() ) ) ); ?> 45 47 </a> 46 48 </div><!-- #author-link --> -
zombie-apocalypse/2.2.0/style.css
r82951 r354761 1 1 /* 2 2 Theme Name: Zombie Apocalypse 3 Theme URI: http ://www.cryoutcreations.eu/wordpress-themes/zombie-apocalypse3 Theme URI: https://www.cryoutcreations.eu/wordpress-themes/zombie-apocalypse 4 4 Description: A dark and bloody theme with zombie inspired graphics, the Zombie Apocalypse theme has a horror movie look to it, but it also presents itself with a very clean layout and cross-browser compatibility. There are also customization options available like: custom header, sidebar position, content and sidebar dimensions, paragraph indent, editable fonts, post metas (like author, category or date) can be hidden and all graphics containing blood and gore can be removed at will. 5 5 Author: Cryout Creations 6 Author URI: http://www.cryoutcreations.eu 7 Version: 2.1.0 6 Author URI: https://www.cryoutcreations.eu 7 Version: 2.2.0 8 Requires at least: 5.6 9 Tested up to: 7.1 10 Requires PHP: 5.6 8 11 Text Domain: zombie-apocalypse 9 Tags: two-columns, right-sidebar, left-sidebar, theme-options, custom-header, custom- menu, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, holiday, entertainment, blog10 11 License: GNU General Public License v2 .012 License URI: http ://www.gnu.org/licenses/gpl-2.0.html12 Tags: two-columns, right-sidebar, left-sidebar, theme-options, custom-header, custom-background, custom-menu, featured-images, footer-widgets, post-formats, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, holiday, entertainment, blog 13 14 License: GNU General Public License v2 or later 15 License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 16 */ 14 17 … … 83 86 width: 100%; 84 87 padding-top: 30px; 88 position: relative; 89 z-index: 0; 90 } 91 #container::before { 85 92 background: url(images/main_top.jpg) left top no-repeat; 86 93 94 content: ""; 95 width: 100%; 96 height: 100%; 97 position: absolute; 98 top: 0; 99 left: 0; 100 pointer-events: none; 101 z-index: -1; 87 102 } 88 103 #content { … … 196 211 #splatter { 197 212 width: 100%; 198 background: url(images/topper.jpg) repeat-x; 213 position: relative; 214 } 215 #splatter::before { 216 background: url(images/splatter.jpg) repeat-x; 217 content: ""; 218 width: 100%; 219 height: 100%; 220 position: absolute; 221 top: 0; 222 left: 0; 223 pointer-events: none; 224 z-index: -1; 199 225 } 200 226 201 227 #topper { 202 background: url(images/splatter.jpg) center 280px no-repeat; 228 position: relative; 229 } 230 #topper::before { 231 background: url(images/topper.jpg) center 400px no-repeat; 232 content: ""; 233 width: 100%; 234 height: 100%; 235 position: absolute; 236 top: 0; 237 left: 0; 238 pointer-events: none; 239 z-index: -1; 203 240 } 204 241 … … 239 276 /* Main global 'theme' and typographic styles */ 240 277 body { 241 / /background: url(images/back.jpg) #000 repeat;278 /* background: url(images/back.jpg) #000 repeat; */ 242 279 } 243 280 … … 262 299 } 263 300 ul { 264 margin: 0 0 18px 1.5em;301 margin: 0 0 18px calc( 1.5em + 20px ); 265 302 266 303 } … … 268 305 ul li, ol li { 269 306 padding:2px 0; 270 }271 272 #content ul li {273 background: url(images/bullet.gif) 0px 9px no-repeat;274 text-indent:20px;275 307 } 276 308 … … 381 413 left: -9000px; 382 414 } 415 /* The skip link becomes visible when it receives keyboard focus */ 416 .skip-link.screen-reader-text:focus-within { 417 left: 6px; 418 top: 6px; 419 z-index: 100000; 420 padding: 8px 15px; 421 background: #f1f1f1; 422 } 383 423 384 424 … … 388 428 #header { 389 429 padding: 30px 0 0 0; 430 min-height: 1px; 431 432 position: relative; 433 } 434 #header::before { 390 435 background: url(images/hand.png) 750px bottom no-repeat; 391 min-height: 1px; 392 436 content: ""; 437 width: 100%; 438 height: 100%; 439 position: absolute; 440 top: 0; 441 left: 0; 442 pointer-events: none; 393 443 } 394 444 #site-title { … … 622 672 .hentry { 623 673 margin: 0 0 48px 0; 674 } 675 .hentry ul, 676 .comment-body ul { 677 list-style-image: url(images/bullet.gif); 624 678 } 625 679 .home .sticky { … … 948 1002 margin: 0 auto 18px; 949 1003 } 1004 #content .gallery::after { content: ""; display: table; clear: both; } 950 1005 #content .gallery .gallery-item { 951 1006 float: left; … … 953 1008 text-align: center; 954 1009 width: 33%; 1010 margin: 0; 955 1011 } 956 1012 #content .gallery img { … … 962 1018 margin: 0 0 12px; 963 1019 } 964 #content .gallery dl {965 margin: 0;966 }967 1020 #content .gallery img { 968 1021 border: 10px solid #f1f1f1; 969 }970 #content .gallery br+br {971 display: none;972 1022 } 973 1023 #content .attachment img { /* single attachment images should be centered */ … … 1091 1141 margin: 0 0 15px 10px; 1092 1142 } 1143 .comment .comment-body, 1144 .comment .reply { 1145 margin-left: 10px; 1146 } 1093 1147 .comment-meta a:link, 1094 1148 .comment-meta a:visited { … … 1197 1251 font-size: 12px; 1198 1252 } 1199 #respond input {1253 #respond input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]) { 1200 1254 margin: 0 0 9px 0; 1201 1255 width: 50%; … … 1250 1304 } 1251 1305 1252 .widget_search #s { /* This keeps the search inputs in line */1306 .widget_search #s, .widget_search .search-field { /* This keeps the search inputs in line */ 1253 1307 width: 80%; 1254 1308 display: block; … … 1260 1314 .widget_search label { 1261 1315 display: none; 1316 } 1317 /* ...but the label meant for screen readers must stay available to them */ 1318 .widget_search label.screen-reader-text { 1319 display: block; 1262 1320 } 1263 1321 .widget-container { … … 1356 1414 } 1357 1415 #primary { 1416 padding-top: 30px; 1417 position: relative; 1418 z-index: 0; 1419 } 1420 #primary::before { 1421 content: ""; 1422 width: 100%; 1423 height: 100%; 1424 position: absolute; 1425 top: 0; 1426 left: 0; 1427 z-index: -1; 1428 pointer-events: none; 1429 } 1430 .zombie-side-disable #container::after { 1358 1431 background: url(images/widget.jpg) right top no-repeat; 1359 padding-top: 30px; 1432 content: ""; 1433 width: 100%; 1434 height: 100%; 1435 position: absolute; 1436 top: 0; 1437 left: 0; 1438 z-index: -1; 1439 pointer-events: none; 1440 } 1441 .zombie-side-right #primary::before { 1442 background: url(images/widget.jpg) right top no-repeat; 1443 } 1444 .zombie-side-left #primary::before { 1445 background: url(images/widget2.jpg) left top no-repeat; 1360 1446 } 1361 1447 #secondary { 1448 z-index: 0; 1362 1449 } 1363 1450 … … 1399 1486 text-align:center; 1400 1487 clear: both; 1488 padding-top: 50px; 1489 position: relative; 1490 } 1491 #site-info::before { 1401 1492 background: url(images/shoot.jpg) center top no-repeat; 1402 padding-top: 50px; 1493 content: ""; 1494 width: 100%; 1495 height: 100%; 1496 position: absolute; 1497 top: 0; 1498 left: 0; 1499 pointer-events: none; 1403 1500 } 1404 1501 #site-info a { … … 1447 1544 /* Extras */ 1448 1545 1449 #container #s {/* This keeps the search inputs in line */1546 #container #s, #container .search-field {/* This keeps the search inputs in line */ 1450 1547 display: block; 1451 1548 float: left; … … 1454 1551 } 1455 1552 1456 #container #searchsubmit, .widget_search #searchsubmit {1553 #container #searchsubmit, .widget_search #searchsubmit, #container .search-submit, .widget_search .search-submit { 1457 1554 display: block; 1458 1555 float: left; … … 1467 1564 } 1468 1565 1469 #container #searchsubmit {1566 #container #searchsubmit, #container .search-submit { 1470 1567 top: 12px; 1471 1568 left: -24px; 1472 1569 } 1473 1570 1474 #searchsubmit:hover {1571 #searchsubmit:hover, .search-submit:hover { 1475 1572 opacity: 0.7; 1476 1573 } 1477 1574 1478 1575 #forbottom { 1479 background: url(images/main_bottom.jpg) 0px bottom no-repeat;1480 1576 clear: both; 1481 1577 width: 100%; 1482 } 1483 1484 #forbottom 2{1485 background: url(images/main_bottom 2.jpg) 0px bottom no-repeat;1486 c lear: both;1578 position: relative; 1579 } 1580 #forbottom::before { 1581 background: url(images/main_bottom.jpg) 0px bottom no-repeat; 1582 content: ""; 1487 1583 width: 100%; 1584 height: 100%; 1585 position: absolute; 1586 top: 0; 1587 left: 0; 1588 pointer-events: none; 1589 } 1590 1591 .zombie-safe-mode:not(.zombie-header) #site-title a, 1592 .zombie-safe-mode:not(.zombie-header) #site-description { 1593 text-shadow: #238B23 1px 1px 1px; 1594 } 1595 1596 .zombie-safe-mode #content .entry-title, 1597 .zombie-safe-mode .entry-title a:link, 1598 .zombie-safe-mode .entry-title a:visited, 1599 .zombie-safe-mode a:link, 1600 .zombie-safe-mode a:visited, 1601 .zombie-safe-mode #access a, 1602 .zombie-safe-mode .entry-meta a:hover, 1603 .zombie-safe-mode .entry-utility a:hover, 1604 .zombie-safe-mode #site-info a, 1605 .zombie-safe-mode.zombie-caption-black #content .wp-caption { 1606 color: #09990A; 1607 } 1608 1609 .zombie-safe-mode #access li:hover > a { 1610 background-color: #009900; 1611 } 1612 1613 .zombie-safe-mode.home .sticky, 1614 .zombie-safe-mode #content h1, 1615 .zombie-safe-mode #content h2, 1616 .zombie-safe-mode #content h3, 1617 .zombie-safe-mode #content h4, 1618 .zombie-safe-mode #content h5, 1619 .zombie-safe-mode #content h6, 1620 .zombie-safe-mode #respond input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]), 1621 .zombie-safe-mode #respond textarea, 1622 .zombie-safe-mode #content img:hover, 1623 .zombie-safe-mode.zombie-caption-black #content .wp-caption { 1624 border-color: #aca; 1625 } 1626 1627 .zombie-safe-mode #content tr th, 1628 .zombie-safe-mode #content thead th, 1629 .zombie-safe-mode ins { 1630 background-color: rgba( 208, 234, 208, 0.5 ); 1631 } 1632 1633 .zombie-safe-mode.zombie-header #branding, 1634 .zombie-safe-mode #header::before, 1635 .zombie-safe-mode #topper::before, 1636 .zombie-safe-mode #splatter::before, 1637 .zombie-safe-mode #forbottom::before, 1638 .zombie-safe-mode #primary::before, 1639 .zombie-safe-mode #site-info::before, 1640 .zombie-safe-mode.zombie-caption-bloody #content .wp-caption, 1641 .zombie-safe-mode.zombie-caption-light-bloody #content .wp-caption, 1642 .zombie-safe-mode.zombie-side-disable #container::after { 1643 filter: hue-rotate(120deg) saturate(3); 1644 -webkit-filter: hue-rotate(120deg) saturate(3); 1645 } 1646 .zombie-safe-mode.zombie-caption-bloody #content .wp-caption *, 1647 .zombie-safe-mode.zombie-caption-light-bloody #content .wp-caption * { 1648 filter: hue-rotate(-120deg) saturate(0.333); 1649 -webkit-filter: hue-rotate(240deg) saturate(0.333); 1488 1650 } 1489 1651 … … 1624 1786 } 1625 1787 } 1788 1789 /* FIN */ -
zombie-apocalypse/2.2.0/tag.php
r82951 r354761 14 14 15 15 <h1 class="page-title"><?php 16 printf( __( 'Tag Archives: %s', 'zombie-apocalypse' ), '<span>' . single_tag_title( '', false ) . '</span>' ); 16 /* translators: %s: Tag archive title */ 17 echo wp_kses_post( sprintf( __( 'Tag Archives: %s', 'zombie-apocalypse' ), '<span>' . esc_html( single_tag_title( '', false ) ) . '</span>' ) ); 17 18 ?></h1> 18 19
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)