Make WordPress Themes

Changeset 354761


Ignore:
Timestamp:
10/20/2026 08:33:33 PM (13 hours ago)
Author:
themedropbox
Message:

New version of Zombie Apocalypse - 2.2.0

Location:
zombie-apocalypse/2.2.0
Files:
2 added
6 deleted
38 edited
1 copied

Legend:

Unmodified
Added
Removed
  • zombie-apocalypse/2.2.0/404.php

    r82951 r354761  
    1414
    1515                        <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>
    1717                                <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>
    1919                                        <?php get_search_form(); ?>
    2020                                </div><!-- .entry-content -->
    … …  
    2323                </div><!-- #content -->
    2424        </div><!-- #container -->
    25         <script type="text/javascript">
    26                 // focus on search field after it has loaded
    27                 document.getElementById('s') && document.getElementById('s').focus();
    28         </script>
    2925<?php get_sidebar(); ?>
    3026<?php get_footer(); ?>
  • zombie-apocalypse/2.2.0/admin/css/admin.css

    r82951 r354761  
    66}
    77
    8 .donate, .export, .news {
     8.donate, .news {
    99        width: 100%;
    1010        margin: 0;
    … …  
    128128}
    129129
    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 
    144130/* =RTL ADMIN
    145131--------------------------------*/
  • zombie-apocalypse/2.2.0/admin/defaults.php

    r82951 r354761  
    11<?php
     2
     3if (!defined('ABSPATH')) {
     4    exit; // Exit if accessed directly
     5}
    26
    37function zombie_get_option_defaults() {
    … …  
    711
    812"zmb_side" => "Right",
    9 "zmb_sidewidth" => 650,
     13"zmb_sidewidth" => "650px",
    1014"zmb_colpad" => "10px",
     15"zmb_mpadding" => "0em", // 0em = original
    1116
    1217"zmb_fontsize" => "15px",
    13 "zmb_fontfamily" => "Verdana",
     18"zmb_listsize" => "80%",
     19"zmb_fontfamily" => "Verdana, Geneva, sans-serif ",
    1420"zmb_textalign" => "Default",
    1521"zmb_parindent" => "0px",
    … …  
    2531"zmb_puddle" => "Show",
    2632"zmb_info" => "Show",
    27 "zmb_menu" => "Enable",
     33"zmb_menu" => "Disable",
    2834"zmb_tables" => "Disable",
     35"zmb_safemode" => "Disable",
    2936"zmb_copyright" => "",
    3037
    3138"zmb_postdate" => "Show",
    32 "zmb_posttime" => "Hide",
     39"zmb_posttime" => "Show",
    3340"zmb_postauthor" => "Show",
    3441"zmb_postcateg" => "Show",
    … …  
    3744);
    3845
     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' );
     48if ( is_array( $zombie_saved ) && isset( $zombie_saved['zmb_fontsize'] ) && ! isset( $zombie_saved['zmb_listsize'] ) ) {
     49        $zombie_defaults['zmb_listsize'] = '100%';
     50}
     51
    3952return apply_filters( 'zombie_option_defaults', $zombie_defaults );
    4053}
    4154
    42 ?>
     55// FIN
  • zombie-apocalypse/2.2.0/admin/js/admin.js

    r82951 r354761  
    206206/* Backwards compatibility for the accordion's current slide saving */
    207207var cryout_active_slide = parseInt(jQuery('#fluid_current').val());
    208 if (vercomp(jQuery.ui.version, '1.11.2')) {
     208if (jQuery.ui && vercomp(jQuery.ui.version, '1.11.2')) { /* jQuery UI is not loaded on every admin page */
    209209         cryout_active_slide = (cryout_active_slide-1)/2;
    210210}
    … …  
    213213        jQuery('.form-table').wrap('<div>');
    214214
     215                        if ( jQuery.fn.accordion ) {
    215216                        jQuery( "#accordion" ).accordion({
    216217                                header: 'h3',
    … …  
    221222                                active: cryout_active_slide,
    222223                                });
     224                        }
    223225
    224226        jQuery("#fluid_nrcolumns").bind('change', function() {
    … …  
    325327                                jQuery('#loading-big').css('display','block');
    326328                var b =  jQuery('#fluid_form').serialize();
    327                 jQuery.post( 'options.php', b ).error(
     329                jQuery.post( 'options.php', b ).fail(
    328330                    function() {
    329331                        alert('error');
    330                     }).success( function() {
     332                    }).done( function() {
    331333                                        jQuery('#loading-big').css('display','none');
    332334                                        jQuery('#settings-saved').remove();
    … …  
    373375}
    374376
    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 */
     378jQuery(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});
    393396
    394397/* FIN */
  • zombie-apocalypse/2.2.0/admin/main.php

    r82951 r354761  
    22// Frontend
    33
     4if (!defined('ABSPATH')) {
     5    exit; // Exit if accessed directly
     6}
     7
    48// Theme particulars
    59require_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)
     13function zombie_load_theme_options() {
     14        global $cryout_theme_options;
     15        require_once( get_template_directory() . "/admin/options.php" );
     16}
     17add_action( 'after_setup_theme', 'zombie_load_theme_options', 11 );
    718
    819$cryout_theme_defaults = zombie_get_option_defaults();
    … …  
    5162        return;
    5263        /* 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        ) );
    5573}
    5674
    … …  
    5876function zombie_init() {
    5977        // 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' );
    6180} // zombie_init()
    6281
    … …  
    6483function zombie_add_page_fn() {
    6584        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' );
    6786        add_action( 'admin_enqueue_scripts', 'zombie_admin_scripts' );
    6887} // zombie_add_page_fn()
    … …  
    7796        <div id="admin_header">
    7897                <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>' ); ?>
    80100                </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' ); ?>" />
    82102        </div>
    83103        <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>
    89109        </div>
    90110        <div style="clear: both;"></div>
    … …  
    92112
    93113        <div class="postbox donate">
    94                 <h3 class="hndle"> Coffee Break </h3>
     114                <h3 class="hndle"> <?php esc_html_e( 'Coffee Break', 'zombie-apocalypse' ); ?> </h3>
    95115                <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>
    99119                       
    100120                        <div style="display:block;float:none;margin:0 auto;text-align:center;">
    … …  
    102122                        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
    103123                                <input type="hidden" name="cmd" value="_donations">
    104                                 <input type="hidden" name="business" value="KYL26KAN4PJC8">
     124                                <input type="hidden" name="business" value="UYHQSH45WJRCN">
    105125                                <input type="hidden" name="item_name" value="Cryout Creations - Zombie Apocalypse">
    106126                                <input type="hidden" name="currency_code" value="EUR">
    107127                                <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">
    110129                        </form>
    111130
    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>
    124131                        </div>
    125132
    … …  
    127134        </div><!-- donate -->
    128135
     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
    129145</div><!--  wrap -->
    130146
    131147<?php } // zombie_page_fn()
     148
     149// FIN
  • zombie-apocalypse/2.2.0/admin/options.php

    r82951 r354761  
    11<?php
     2
     3if (!defined('ABSPATH')) {
     4    exit; // Exit if accessed directly
     5}
    26
    37// custom function for zombie apocalypse due to different theme options array naming scheme
    … …  
    5155'info_sections' => array(
    5256        '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" >',
    5559        ),
    5660), // info_sections
    5761
    5862'info_settings' => array(
    59         'support_link_faqs' => array(
     63/*      'support_link_faqs' => array(
    6064                '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' ) ),
    6266                'desc' =>  '',
    6367                'section' => 'cryoutspecial-about-theme',
    64         ),
     68        ), */
    6569        'support_link_forum' => array(
    6670                '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' ) ),
    6872                'desc' => '',
    6973                'section' => 'cryoutspecial-about-theme',
    … …  
    7175        'premium_support_link' => array(
    7276                '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' ) ),
    7478                'desc' => '',
    7579                'section' => 'cryoutspecial-about-theme',
    … …  
    7781        'rating_url' => array(
    7882                'label' => '&nbsp;',
    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) ) ),
    8085                'desc' => '',
    8186                'section' => 'cryoutspecial-about-theme',
    … …  
    8590'panel_overrides' => array(
    8691/*      'background' => array(
    87                 'title' => __( 'Background', 'cryout' ),
    88                 'desc' => __( 'Background Settings.', 'cryout' ),
     92                'title' => __( 'Background', 'zombie-apocalypse' ),
     93                'desc' => __( 'Background Settings.', 'zombie-apocalypse' ),
    8994                'priority' => 50,
    9095                'section' => 'zombie_section',
    … …  
    9398        ),
    9499        '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' ),
    97102                'priority' => 51,
    98103                'section' => 'zombie_section',
    … …  
    101106        ),
    102107        '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' ),
    105110                'priority' => 52,
    106111                'section' => 'zombie_section',
    … …  
    156161                'desc' => __('Configure padding between content and sidebar.','zombie-apocalypse'),
    157162        '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' ),
    158170       
    159171       
    … …  
    166178                'values' => cryout_gen_values( 12, 18, 1, array( 'um' => 'px') ),
    167179                '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'),
    168188        'section' => 'za_text_section' ),       
    169189        array(
    … …  
    205225                'values' => array( 'Show', 'Hide' ),
    206226                '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'),
    208228        'section' => 'za_graphics_section' ),   
    209229        array(
    … …  
    242262        'id' => 'zmb_splash',
    243263                'type' => 'select',
    244                 'label' => __( 'Blood Splash','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' => '',
    248268        'section' => 'za_graphics_section' ),   
    249269        array(
    … …  
    253273                'values' => array( 'Show', 'Hide' ),
    254274                'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ),
    255                 'desc' => __('','zombie-apocalypse'),
     275                'desc' => '',
    256276        'section' => 'za_graphics_section' ),   
    257277        array(
    … …  
    261281                'values' => array( 'Show', 'Hide' ),
    262282                'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ),
    263                 'desc' => __('','zombie-apocalypse'),
     283                'desc' => '',
    264284        'section' => 'za_graphics_section' ),   
    265285        array(
    … …  
    269289                'values' => array( 'Show', 'Hide' ),
    270290                'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ),
    271                 'desc' => __('','zombie-apocalypse'),
     291                'desc' => '',
    272292        'section' => 'za_graphics_section' ),   
    273293        array(
    … …  
    277297                'values' => array( 'Enable', 'Disable' ),
    278298                'labels' => array( __('Enable','zombie-apocalypse'), __('Disable','zombie-apocalypse') ),
    279                 'desc' => __('','zombie-apocalypse'),
     299                'desc' => '',
    280300        'section' => 'za_graphics_section' ),   
    281301        array(
    … …  
    285305                'values' => array( 'Enable', 'Disable' ),
    286306                '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' ),
    288316        'section' => 'za_graphics_section' ),   
    289317        array(
    … …  
    291319                'type' => 'textarea',
    292320                'label' => __( 'Custom Footer Text','zombie-apocalypse' ),
    293                 'desc' => __('','zombie-apocalypse'),
     321                'desc' => '',
    294322        'section' => 'za_graphics_section' ),   
    295323       
    … …  
    302330                'values' => array( 'Show', 'Hide' ),
    303331                'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ),
    304                 'desc' => __('','zombie-apocalypse'),
     332                'desc' => '',
    305333        'section' => 'za_post_section' ),
    306334        array(
    … …  
    310338                'values' => array( 'Show', 'Hide' ),
    311339                'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ),
    312                 'desc' => __('','zombie-apocalypse'),
     340                'desc' => '',
    313341        'section' => 'za_post_section' ),
    314342        array(
    … …  
    318346                'values' => array( 'Show', 'Hide' ),
    319347                'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ),
    320                 'desc' => __('','zombie-apocalypse'),
     348                'desc' => '',
    321349        'section' => 'za_post_section' ),
    322350        array(
    … …  
    326354                'values' => array( 'Show', 'Hide' ),
    327355                'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ),
    328                 'desc' => __('','zombie-apocalypse'),
     356                'desc' => '',
    329357        'section' => 'za_post_section' ),
    330358        array(
    … …  
    334362                'values' => array( 'Show', 'Hide' ),
    335363                'labels' => array( __('Show','zombie-apocalypse'), __('Hide','zombie-apocalypse') ),
    336                 'desc' => __('','zombie-apocalypse'),
     364                'desc' => '',
    337365        'section' => 'za_post_section' ),
    338366
  • zombie-apocalypse/2.2.0/archive.php

    r82951 r354761  
    2929                        <h1 class="page-title">
    3030<?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() ) ) ); ?>
    3233<?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' ) ) ) ) ); ?>
    3436<?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' ) ) ) ) ); ?>
    3639<?php else : ?>
    37                                 <?php _e( 'Blog Archives', 'zombie-apocalypse' ); ?>
     40                                <?php esc_html_e( 'Blog Archives', 'zombie-apocalypse' ); ?>
    3841<?php endif; ?>
    3942                        </h1>
  • zombie-apocalypse/2.2.0/attachment.php

    r82951 r354761  
    1616
    1717                                <?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">&larr;</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">&larr;</span> %s', 'zombie-apocalypse' ), esc_html( get_the_title( $post->post_parent ) ) ) );
    2122                                        ?></a></p>
    2223                                <?php endif; ?>
    … …  
    2728                                        <div class="entry-meta">
    2829                                                <?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'),
    3032                                                                'meta-prep meta-prep-author',
    3133                                                                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() )
    3538                                                                )
    36                                                         );
     39                                                        ) );
    3740                                                ?>
    3841                                                <span class="meta-sep">|</span>
    3942                                                <?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'),
    4145                                                                'meta-prep meta-prep-entry-date',
    4246                                                                sprintf( '<span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>',
    4347                                                                        esc_attr( get_the_time() ),
    44                                                                         get_the_date()
     48                                                                        esc_html( get_the_date() )
    4549                                                                )
    46                                                         );
     50                                                        ) );
    4751                                                        if ( wp_attachment_is_image() ) {
    4852                                                                echo ' <span class="meta-sep">|</span> ';
    4953                                                                $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'),
    5157                                                                        sprintf( '<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>',
    52                                                                                 wp_get_attachment_url(),
     58                                                                                esc_url( wp_get_attachment_url() ),
    5359                                                                                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 )
    5662                                                                        )
    57                                                                 );
     63                                                                ) );
    5864                                                        }
    5965                                                ?>
    … …  
    8389        }
    8490?>
    85                                                 <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
     91                                                <p class="attachment"><a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
    8692                                                        $attachment_size = apply_filters( 'zombie_attachment_size', 900 );
    8793                                                        echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height.
    … …  
    9399                                                </div><!-- #nav-below -->
    94100<?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>
    96102<?php endif; ?>
    97103                                                </div><!-- .entry-attachment -->
  • zombie-apocalypse/2.2.0/author.php

    r82951 r354761  
    2525?>
    2626
    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>
    2832
    2933<?php
    … …  
    3539                                                </div><!-- #author-avatar -->
    3640                                                <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>
    3843                                                        <?php the_author_meta( 'description' ); ?>
    3944                                                </div><!-- #author-description  -->
  • zombie-apocalypse/2.2.0/category.php

    r82951 r354761  
    1313                        <div id="content" role="main">
    1414
    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>' ) );
    1718                                ?></h1>
    1819                                <?php
    1920                                        $category_description = category_description();
    2021                                        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>';
    2223
    2324                                /* Run the loop for the category page to output the posts.
  • zombie-apocalypse/2.2.0/comments.php

    r82951 r354761  
    1616                        <div id="comments">
    1717<?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>
    1919                        </div><!-- #comments -->
    2020<?php
    … …  
    3333<?php if ( have_comments() ) : ?>
    3434                        <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>' ) );
    3738                        ?></h3>
    3839
    … …  
    7071        if ( ! comments_open() ) :
    7172?>
    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>
    7374<?php endif; // end ! comments_open() ?>
    7475
  • zombie-apocalypse/2.2.0/cryout/admin.php

    r82951 r354761  
    55 */
    66 
     7if (!defined('ABSPATH')) {
     8    exit; // Exit if accessed directly
     9}
     10 
    711// generic functions
    812 
    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)
    18314
    18415// Truncate function for use in the Admin RSS feed
    … …  
    19122function cryout_fetch_feed() {
    19223       
    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/') );
    19429        $maxitems = 0;
    19530        if ( ! is_wp_error( $theme_news ) ) {
    … …  
    19934        ?>
    20035         <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 :
    20237                                                foreach( $news_items as $news_item ) : ?>
    20338                        <li>
    20439                                <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');?> &#8594;</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' ); ?> &#8594;</a>
    20742                        </li>
    20843                                                <?php endforeach;
    … …  
    21045          </ul>
    21146<?php
    212 die();
     47wp_die();
    21348} // cryout_fetch_feed()
     49
     50// FIN
  • zombie-apocalypse/2.2.0/cryout/css/customizer.css

    r82951 r354761  
    7979        text-align: center;
    8080        max-width: 300px;
     81        margin-left: auto;
     82        margin-right: auto;
    8183        padding: 0 10px;
    8284}
    … …  
    111113    display: block;
    112114    font-size: 0.85em;
    113     left: 10px;
     115    /* left: 10px; */ /* 6.7 fix */
    114116    padding: 0 3px;
    115117    position: absolute;
     118    /* 6.7 fixes: */
     119    top: 50%;
     120    transform: translateY(-50%);
     121    right: 4em;
    116122}
    117123
    118124#customize-theme-controls [id*="cryout-"] h3.accordion-section-title {
    119     padding-left: 40px;
     125    /* padding-left: 40px; */ /* 6.7 fix */
    120126}
    121127
    … …  
    124130    display: block;
    125131    font-size: 0.85em;
    126     left: 10px;
     132    /* left: 10px; */ /* 6.7 fix */
    127133    padding: 0 3px;
    128134    position: absolute;
    … …  
    130136    border: 1px solid #aa0000;
    131137    color: #aa0000;
     138    /* 6.7 fixes: */
     139    top: 50%;
     140    transform: translateY(-50%);
     141    right: 4em;
    132142}
    133143#customize-theme-controls [id*="za_"] h3.accordion-section-title {
    134     padding-left: 40px;
     144    /* padding-left: 40px; */ /* 6.7 fix */
    135145}
    136146
    … …  
    148158        display: block;
    149159        max-width: 300px;
     160        margin: 0 auto;
    150161        padding: 10px;
    151162        border: 1px solid #DDD;
  • zombie-apocalypse/2.2.0/cryout/customizer.php

    r82951 r354761  
    44 * @since Cryout Framework 0.5
    55 */
     6 
     7if (!defined('ABSPATH')) {
     8    exit; // Exit if accessed directly
     9}
    610
    711///////// SANITIZERS
    … …  
    3539        return wp_kses_post( $input ); 
    3640} // cryout_customizer_sanitize_generic()
     41
     42function 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()
    3761
    3862
    … …  
    5983                        public function render_content() {
    6084                                        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>
    6286                                        <?php }
    6387                                        if ( ! empty( $this->description ) ) { ?>
    … …  
    7397                        public function render_content() {
    7498                                        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>
    76100                                        <?php }
    77101                                        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>
    79103                    <?php } ?>
    80104                                        <span class="customize-control-content customize-cryoutcontrol-hint-value"><?php echo wp_kses_post( $this->value() ) ?></span>
    … …  
    87111                        public function render_content() {
    88112                                        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>
    90114                                        <?php }
    91115                                        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>
    93117                    <?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>
    95119                        <?php
    96120                        }
    … …  
    115139                    <?php endif;
    116140                    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>
    118142                    <?php endif; ?>
    119143 
    … …  
    121145                        <?php
    122146                                                foreach ( $this->fonts as $fgroup => $fsubs ): ?>
    123                                                         <optgroup label='<?php echo $fgroup; ?>'>
     147                                                        <optgroup label='<?php echo esc_attr( $fgroup ); ?>'>
    124148                                                        <?php foreach($fsubs as $item):
    125149                                                                $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] ); ?>
    128152                                                                </option>
    129153                                                        <?php endforeach; // fsubs ?>
    … …  
    175199                // add about theme panel and sections
    176200                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                 ) ); */
    182201                $section_priority = 10;
    183202               
    … …  
    187206                                'description'          => $info['desc'],
    188207                                'priority'       => $section_priority++,
    189                                 //'panel'  => 'about',
    190208                        ) );
    191209                endforeach;
    … …  
    215233                        $wp_customize->add_panel( $section['id'], array(
    216234                          'title' => ucwords(_THEME_NAME) . ' ' . $section['title'],
    217                           'description' => __( '', 'cryout' ),
     235                          'description' => '',
    218236                          'priority' => $priority++,
    219237                        ) );
    … …  
    227245                        $wp_customize->add_section( $field['id'], array(
    228246                                'title'          => $field['title'],
    229                                 'description'    => __( '', 'cryout' ),
     247                                'description'    => '',
    230248                                'priority'       => $section_priority++,
    231249                                'panel'                  => $field['sid'],
    … …  
    269287                                case 'blank':
    270288                                        $sanitize_callback = 'cryout_customizer_sanitize_blank';
     289                                break;
     290                               
     291                                case 'select': case 'font':
     292                                        $sanitize_callback = 'cryout_customizer_sanitize_select';
    271293                                break;
    272294                               
    … …  
    387409
    388410function 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        ) );
    391417}
    392418add_action('customize_controls_enqueue_scripts', 'cryout_customizer_enqueue_scripts');
  • zombie-apocalypse/2.2.0/cryout/js/customizer.js

    r82951 r354761  
    55 */
    66
    7 var _label_max = 'Maximize';
    8 var _label_min = 'Restore';
     7var _label_max = ( typeof cryout_customizer_i18n !== 'undefined' ) ? cryout_customizer_i18n.maximize : 'Maximize';
     8var _label_min = ( typeof cryout_customizer_i18n !== 'undefined' ) ? cryout_customizer_i18n.restore : 'Restore';
    99
     10/* max/min-imize button disabled @ 2.2.0 */
    1011var innerHTML = '<button class="button cryout-expand-sidebar button-secondary" aria-expanded="true" aria-label="' + _label_max + '" title="' + _label_max + '" href="#">\
    1112        <span class="collapse-sidebar-label">' + _label_max + '</span>\
    … …  
    2223        if (jQuery('#customize-footer-actions .devices').length>0) {
    2324        /* wp 4.5 or newer */
    24                 jQuery('#customize-footer-actions .devices').prepend(innerHTML);
     25                /* jQuery('#customize-footer-actions .devices').prepend(innerHTML); */
    2526        } else {
    26                 jQuery('#customize-footer-actions').append(innerHTML);
     27                /* jQuery('#customize-footer-actions').append(innerHTML); */
    2728        }
    2829
  • zombie-apocalypse/2.2.0/cryout/prototypes.php

    r82951 r354761  
    44 * @since Cryout Framework 0.5
    55 */
     6 
     7if (!defined('ABSPATH')) {
     8    exit; // Exit if accessed directly
     9}
    610
    711function cryout_get_theme_options($sub=''){
    … …  
    4953                endif;
    5054                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);
    5256                endif;
    5357        endforeach;
    … …  
    123127} // cryout_gfontcleanup()
    124128
    125 // FIN! //
     129// FIN!
  • zombie-apocalypse/2.2.0/footer.php

    r82951 r354761  
    2525?><?php
    2626/* 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'] : '';
    3029?>
    3130                </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">
    3434                                        <?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                                        &amp; <a href="<?php echo esc_url( __('//wordpress.org/', 'zombie-apocalypse') ); ?>"
    3737                                                title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'zombie-apocalypse'); ?>">WordPress</a>
    3838                        </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 } ?>
    4040
    4141        </div><!-- #footer -->
  • zombie-apocalypse/2.2.0/functions.php

    r82951 r354761  
    33/*
    44 * @package Zombie Apocalypse
    5  * @since Zombie Apocalypse 2.0
     5 * @since 0.5
    66 *
    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
    1110 */
     11 
     12if (!defined('ABSPATH')) {
     13    exit; // Exit if accessed directly
     14}
    1215
    1316// variables for theme identification - do NOT edit unless you know what you are doing
    1417define ("_THEME_NAME", "zombie apocalypse");
    15 define ("_THEME_VERSION","2.1.0");
     18define ("_THEME_VERSION","2.2.0");
    1619
    1720// Load necessary admin files
    … …  
    2023// Load theme functions
    2124require_once(get_template_directory() . "/includes/theme-functions.php");
     25
     26// Load the styling generated by the theme options
     27require_once(get_template_directory() . "/includes/custom-style.php");
     28
     29// FIN
  • zombie-apocalypse/2.2.0/header.php

    r82951 r354761  
    1212<html <?php language_attributes(); ?>>
    1313<head>
     14<meta charset="<?php bloginfo( 'charset' ); ?>" />
    1415<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() ) ) : ?>
    1819<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(); ?>
    11922</head>
    12023
    12124<body <?php body_class(); ?>>
     25<?php wp_body_open(); ?>
    12226
    12327
    12428
    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">
    12732<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">
    12934
    13035                <div id="masthead">
    13136                        <div id="branding" role="banner">
    13237                                <?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">
    13439                                        <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>
    13641                                        </span>
    137                                 </<?php echo $heading_tag; ?>>
     42                                </<?php echo tag_escape( $heading_tag ); ?>>
    13843                                <div id="site-description"><?php bloginfo( 'description' ); ?></div>
    13944
    … …  
    14348                                                        has_post_thumbnail( $post->ID ) &&
    14449                                                        ( /* $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'] ) ) :
    14651                                                // Houston, we have a new header image!
    14752                                                echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    14853                                        else : ?><?php if (get_header_image() != '') { ?>
    14954
    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 */ ?>
    15456                                                                        <?php } else { ?><?php } ?><?php endif; ?>
    15557                        </div><!-- #branding -->
    … …  
    15759                        <div id="access" role="navigation">
    15860                          <?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>
    16062                                <?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.  */
    16163                                ?><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    … …  
    16870
    16971        <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  
    4343        load_theme_textdomain( 'zombie-apocalypse', get_template_directory() . '/languages' );
    4444
    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 
    5045        // This theme uses wp_nav_menu() in one location.
    5146        register_nav_menus( array(
    … …  
    5651        add_theme_support( 'custom-background', array('default-image' => get_template_directory_uri().'/images/back.jpg' ) );
    5752
    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       
    6865        // We'll be using post thumbnails for custom header images on posts and pages.
    6966        // We want them to be 900 pixels wide by 200 pixels tall.
    7067        // 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' ) );
    8176
    8277        // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
    … …  
    106101endif;
    107102
    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 */
     110function 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}
     129add_action( 'wp_enqueue_scripts', 'zombie_scripts' );
     130
     131function 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 */
     150function 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()
    168172
    169173/**
    … …  
    199203 */
    200204function zombie_continue_reading_link() {
    201         return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'zombie-apocalypse' ) . '</a>';
     205        return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'zombie-apocalypse' ) . '</a>';
    202206}
    203207
    … …  
    242246 */
    243247function zombie_remove_gallery_css( $css ) {
    244         return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );
     248        return preg_replace( "#<style[^>]*>(.*?)</style>#s", '', $css );
    245249}
    246250add_filter( 'gallery_style', 'zombie_remove_gallery_css' );
    … …  
    260264        $GLOBALS['comment'] = $comment;
    261265        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
    263268        ?>
    264269        <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
    265270                <div id="comment-<?php comment_ID(); ?>">
    266271                <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() ) ) ); ?>
    269275                </div><!-- .comment-author .vcard -->
    270276                <?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>
    272278                        <br />
    273279                <?php endif; ?>
    … …  
    276282                        <?php
    277283                                /* 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' ), ' ' );
    279285                        ?>
    280286                </div><!-- .comment-meta .commentmetadata -->
    … …  
    293299        ?>
    294300        <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>
    296302        <?php
    297303                        break;
    … …  
    389395function zombie_remove_recent_comments_style() {
    390396        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        }
    392400}
    393401add_action( 'widgets_init', 'zombie_remove_recent_comments_style' );
    … …  
    395403if ( ! function_exists( 'zombie_posted_on' ) ) :
    396404/**
    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.
    398406 *
    399407 * @since Zombie Apocalypse 0.5
    400408 */
    401409function 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' ),
    403412                '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() ),
    406415                        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() ) )
    408419                ),
    409420                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() )
    413425                )
    414         );
     426        ) );
    415427}
    416428endif;
    … …  
    426438        $tag_list = get_the_tag_list( '', ', ' );
    427439        if ( $tag_list ) {
     440                /* translators: 1: Categories list 2: Tags list 3: Permalink URL, 4: Post title */
    428441                $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' );
    429442        } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
     443                /* translators: 1: Categories list 3: Permalink URL 4: Post title */
    430444                $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' );
    431445        } else {
     446                 /* translators: 3: Permalink URL 4: Post title */
    432447                $posted_in = __( '<span class="bl_bookmark">Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.</span>', 'zombie-apocalypse' );
    433448        }
    434449        // Prints the string, replacing the placeholders.
    435         printf(
     450        echo wp_kses_post( sprintf(
    436451                $posted_in,
    437452                get_the_category_list( ', ' ),
    438453                $tag_list,
    439                 get_permalink(),
     454                esc_url( get_permalink() ),
    440455                the_title_attribute( 'echo=0' )
    441         );
     456        ) );
    442457}
    443458endif;
    444459
     460// FIN
  • zombie-apocalypse/2.2.0/index.php

    r82951 r354761  
    3131<?php get_sidebar(); ?>
    3232<?php get_footer(); ?>
     33
     34<?php /* FIN */ ?>
  • zombie-apocalypse/2.2.0/loop.php

    r82951 r354761  
    3131<?php if ( ! have_posts() ) : ?>
    3232        <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>
    3434                <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>
    3636                        <?php get_search_form(); ?>
    3737                </div><!-- .entry-content -->
    … …  
    6060        <?php if ( has_post_format( 'gallery' ) ) : ?>
    6161                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     62                        <?php /* translators: %s: Post title */ ?>
    6263                        <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>
    6364
    … …  
    7172<?php else : ?>                 
    7273                                <?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 ) );
    7475                                        if ( $images ) :
    7576                                                $total_images = count( $images );
    … …  
    7879                                ?>
    7980                                                <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>
    8182                                                </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>
    8689                                <?php endif; ?>
    8790                                                <?php the_excerpt(); ?>
    … …  
    9295                                <?php if ( count( get_the_category() ) ) : ?>
    9396                                        <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( ', ' ) ) ); ?>
    9599                                        <span class="meta-sep">|</span>
    96100                                        </span>
    … …  
    130134        <?php else : ?>
    131135                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     136                        <?php /* translators: %s: Post title */ ?>
    132137                        <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>
    133138
    … …  
    150155                                <?php if ( count( get_the_category() ) ) : ?>
    151156                                        <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( ', ' ) ) ); ?>
    153159                                        <span class="meta-sep">|</span>
    154160                                        </span>
    … …  
    160166                                ?>
    161167                                        <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 ) ); ?>
    163170                                        </span>
    164171                                        <span class="meta-sep">|</span>
    … …  
    182189                                </div><!-- #nav-below -->
    183190<?php endif; ?>
     191
     192<?php /* FIN */ ?>
  • zombie-apocalypse/2.2.0/readme.txt

    r82951 r354761  
    11=============
    22Zombie Apocalypse WordPress Theme
    3 Copyright 2010-2017 Cryout Creations
     3Copyright 2010-2026 Cryout Creations
    44
    55Author: 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
     6Author URI: https://www.cryoutcreations.eu
     7Requires at least: 5.6
     8Tested up to: 7.1
     9Requires PHP: 5.6
     10Stable tag: 2.2.0
    1011License: GPLv2 or later
    11 License URI: http://www.gnu.org/licenses/gpl-2.0.html
    12 Donate link: http://www.cryoutcreations.eu/donate/
     12License URI: https://www.gnu.org/licenses/gpl-2.0.html
     13Donate link: https://www.cryoutcreations.eu/donate/
    1314
    1415The 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 clean layout and cross-browser compatibility.
     16The theme also presents itself with a clean conservative layout and cross-browser compatibility.
    1617
    1718== Description ==
    1819
    1920The 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.
     21The theme also presents itself with a clean conservative layout and cross-browser compatibility.
     22Zombie Apocalypse - the theme that refuses to die.
    2123
    2224There are also 25 customization options available:
    … …  
    2729*       Configurable fonts (family, size, alignment)
    2830*       Post metas (author, category, date, time, tags) can be hidden
    29 *       All gore graphics can be removed at will
     31*       All gore graphics can be removed or censored at will
    3032*       Editable footer site info text.
    3133
    … …  
    3436Theme created by Cryout Creations - www.cryoutcreations.eu
    3537
    36 Info: http://www.cryoutcreations.eu/zombie-apocalypse
    37 Forum: http://www.cryoutcreations.eu/forums/f/wordpress/zombie-apocalypse
     38Info: https://www.cryoutcreations.eu/zombie-apocalypse
     39Forum: https://www.cryoutcreations.eu/forums/f/wordpress/zombie-apocalypse
    3840
    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.
     41The 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
     45Zombie Apocalypse WordPress Theme, Copyright 2010-2026 Cryout Creations
     46Zombie Apocalypse is distributed under the terms of the GNU General Public License v2 or later.
     47
     48All 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.
    4049
    4150== Changelog ==
     51
     52= 2.2.0 =
     53Important 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
     60Updates 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)
    4298
    4399= 2.1.0 =
  • zombie-apocalypse/2.2.0/rtl.css

    r82951 r354761  
    11/*
    2 Theme Name: Zombie Apocalypse
    3 */
     2 * Theme Name: Zombie Apocalypse
     3 */
    44
    55
    66/*
    7 RTL Basics
    8 */
     7 * RTL Basics
     8 */
    99
    1010
    … …  
    281281        padding-left: 0;
    282282}
     283
     284/* FIN */
  • zombie-apocalypse/2.2.0/search.php

    r82951 r354761  
    1414
    1515<?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>
    1718                                <?php get_search_form();
    1819                                 get_template_part( 'loop', 'search' );
    … …  
    2021<?php else : ?>
    2122                                <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>
    2324                                        <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>
    2526                                                <?php get_search_form(); ?>
    2627                                        </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  
    77 * @since Zombie Apocalypse 0.5
    88 */
    9 ?><?php
    10 /* This  retrieves  admin options. */
    11  $options = get_option('za_options');
    12 $zmb_drips = $options['zmb_drips'];
    13 $zmb_side = $options['zmb_side'];
    149?>
    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">
    1712                        <ul class="xoxo">
    1813
    … …  
    3025
    3126                        <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>
    3328                                <ul>
    3429                                        <?php wp_get_archives( 'type=monthly' ); ?>
    … …  
    3732
    3833                        <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>
    4035                                <ul>
    4136                                        <?php wp_register(); ?>
    … …  
    5348        if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?>
    5449
    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">
    5651                        <ul class="xoxo">
    5752                                <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
  • zombie-apocalypse/2.2.0/single.php

    r82951 r354761  
    3838                                                </div><!-- #author-avatar -->
    3939                                                <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>
    4142                                                        <?php the_author_meta( 'description' ); ?>
    4243                                                        <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">&rarr;</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">&rarr;</span>', 'zombie-apocalypse' ), esc_html( get_the_author() ) ) ); ?>
    4547                                                                </a>
    4648                                                        </div><!-- #author-link -->
  • zombie-apocalypse/2.2.0/style.css

    r82951 r354761  
    11/*
    22Theme Name: Zombie Apocalypse
    3 Theme URI: http://www.cryoutcreations.eu/wordpress-themes/zombie-apocalypse
     3Theme URI: https://www.cryoutcreations.eu/wordpress-themes/zombie-apocalypse
    44Description: 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.
    55Author: Cryout Creations
    6 Author URI: http://www.cryoutcreations.eu
    7 Version: 2.1.0
     6Author URI: https://www.cryoutcreations.eu
     7Version: 2.2.0
     8Requires at least: 5.6
     9Tested up to: 7.1
     10Requires PHP: 5.6
    811Text 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, blog
    10 
    11 License: GNU General Public License v2.0
    12 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     12Tags: 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
     14License: GNU General Public License v2 or later
     15License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1316*/
    1417
    … …  
    8386        width: 100%;
    8487        padding-top: 30px;
     88        position: relative;
     89        z-index: 0;
     90}
     91#container::before {
    8592        background: url(images/main_top.jpg) left top no-repeat;
    8693
     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;
    87102}
    88103#content {
    … …  
    196211#splatter {
    197212        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;
    199225}
    200226
    201227#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;
    203240}
    204241
    … …  
    239276/* Main global 'theme' and typographic styles */
    240277body {
    241         //background: url(images/back.jpg) #000  repeat;
     278        /* background: url(images/back.jpg) #000  repeat; */
    242279}
    243280
    … …  
    262299}
    263300ul {
    264         margin: 0 0 18px 1.5em;
     301        margin: 0 0 18px calc( 1.5em + 20px );
    265302
    266303}
    … …  
    268305ul li, ol li {
    269306padding:2px 0;
    270 }
    271 
    272 #content ul li {
    273         background: url(images/bullet.gif) 0px 9px no-repeat;
    274         text-indent:20px;
    275307}
    276308
    … …  
    381413        left: -9000px;
    382414}
     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}
    383423
    384424
    … …  
    388428#header {
    389429        padding: 30px 0 0 0;
     430        min-height: 1px;
     431
     432        position: relative;
     433}
     434#header::before {
    390435        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;
    393443}
    394444#site-title {
    … …  
    622672.hentry {
    623673        margin: 0 0 48px 0;
     674}
     675.hentry ul,
     676.comment-body ul {
     677        list-style-image: url(images/bullet.gif);
    624678}
    625679.home .sticky {
    … …  
    9481002        margin: 0 auto 18px;
    9491003}
     1004#content .gallery::after { content: ""; display: table; clear: both; }
    9501005#content .gallery .gallery-item {
    9511006        float: left;
    … …  
    9531008        text-align: center;
    9541009        width: 33%;
     1010        margin: 0;
    9551011}
    9561012#content .gallery img {
    … …  
    9621018        margin: 0 0 12px;
    9631019}
    964 #content .gallery dl {
    965         margin: 0;
    966 }
    9671020#content .gallery img {
    9681021        border: 10px solid #f1f1f1;
    969 }
    970 #content .gallery br+br {
    971         display: none;
    9721022}
    9731023#content .attachment img { /* single attachment images should be centered */
    … …  
    10911141        margin: 0 0 15px 10px;
    10921142}
     1143.comment .comment-body,
     1144.comment .reply {
     1145        margin-left: 10px;
     1146}
    10931147.comment-meta a:link,
    10941148.comment-meta a:visited {
    … …  
    11971251        font-size: 12px;
    11981252}
    1199 #respond input {
     1253#respond input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]) {
    12001254        margin: 0 0 9px 0;
    12011255        width: 50%;
    … …  
    12501304}
    12511305
    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 */
    12531307        width: 80%;
    12541308        display: block;
    … …  
    12601314.widget_search label {
    12611315        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;
    12621320}
    12631321.widget-container {
    … …  
    13561414}
    13571415#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 {
    13581431        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;
    13601446}
    13611447#secondary {
     1448        z-index: 0;
    13621449}
    13631450
    … …  
    13991486        text-align:center;
    14001487        clear: both;
     1488        padding-top: 50px;
     1489        position: relative;
     1490}
     1491#site-info::before {
    14011492        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;
    14031500}
    14041501#site-info a {
    … …  
    14471544/*  Extras                                    */
    14481545
    1449 #container #s  {/* This keeps the search inputs in line */
     1546#container #s, #container .search-field  {/* This keeps the search inputs in line */
    14501547        display: block;
    14511548        float: left;
    … …  
    14541551}
    14551552
    1456 #container #searchsubmit, .widget_search #searchsubmit {
     1553#container #searchsubmit, .widget_search #searchsubmit, #container .search-submit, .widget_search .search-submit {
    14571554        display: block;
    14581555        float: left;
    … …  
    14671564}
    14681565
    1469 #container #searchsubmit {
     1566#container #searchsubmit, #container .search-submit {
    14701567        top: 12px;
    14711568        left: -24px;
    14721569}
    14731570
    1474 #searchsubmit:hover {
     1571#searchsubmit:hover, .search-submit:hover {
    14751572        opacity: 0.7;
    14761573}
    14771574
    14781575#forbottom {
    1479         background: url(images/main_bottom.jpg) 0px bottom no-repeat;
    14801576        clear: both;
    14811577        width: 100%;
    1482 }
    1483 
    1484 #forbottom2 {
    1485         background: url(images/main_bottom2.jpg) 0px bottom no-repeat;
    1486         clear: both;
     1578        position: relative;
     1579}
     1580#forbottom::before {
     1581        background: url(images/main_bottom.jpg) 0px bottom no-repeat;
     1582        content: "";
    14871583        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);
    14881650}
    14891651
    … …  
    16241786        }
    16251787}
     1788
     1789/* FIN */
  • zombie-apocalypse/2.2.0/tag.php

    r82951 r354761  
    1414
    1515                                <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>' ) );
    1718                                ?></h1>
    1819
Note: See TracChangeset for help on using the changeset viewer.