Make WordPress Themes

Changes from verbosa/0.9.1 at r357746 to verbosa/0.9.2 at r357746


Ignore:
Location:
verbosa/0.9.2
Files:
1 added
52 edited

Legend:

Unmodified
Added
Removed
  • verbosa/0.9.2/admin/defaults.php

    r357746 r357746  
    5555        "verbosa_ftitles"               => 'Merriweather/gfont',
    5656        "verbosa_ftitlesgoogle" => '',
    57         "verbosa_ftitlessize"   => '220%',
    58         "verbosa_ftitlesweight" => '400',
     57        "verbosa_ftitlessize"   => '200%',
     58        "verbosa_ftitlesweight" => '300',
    5959        "verbosa_fmetas"                => 'Lato/gfont',
    6060        "verbosa_fmetasgoogle"  => '',
  • verbosa/0.9.2/admin/main.php

    r357746 r357746  
    55 * @package Verbosa
    66 */
    7  
     7
    88// Theme particulars
    99require_once(get_template_directory() . "/admin/defaults.php");
    … …  
    1515// Framework
    1616require_once(get_template_directory() . "/cryout/framework.php");
    17        
     17
    1818// Get the theme options and make sure defaults are used if no values are set
    1919function verbosa_get_theme_options() {
    … …  
    3232
    3333// load up theme options
    34 $cryout_theme_settings = $verbosa_big; 
     34$cryout_theme_settings = $verbosa_big;
    3535$cryout_theme_options = verbosa_get_theme_options();
    3636$cryout_theme_defaults = verbosa_get_option_defaults();
    … …  
    8080<div class="wrap" id="main-page"><!-- Admin wrap page -->
    8181        <div id="lefty">
    82        
     82
    8383                <div id="admin_header">
    8484                        <img src="<?php echo get_template_directory_uri() . '/admin/images/logo-about-top.png' ?>" />
    8585                        <span id="version">
    86                                 Verbosa Theme v<?php echo _CRYOUT_THEME_VERSION; ?> by 
     86                                Verbosa Theme v<?php echo _CRYOUT_THEME_VERSION; ?> by
    8787                                <a href="http://www.cryoutcreations.eu" target="_blank">Cryout Creations</a>
    8888                        </span>
    8989                </div>
    90                
     90
    9191                <div id="admin_links">
    92                         <a target="_blank" href="http://www.cryoutcreations.eu/verbosa">Verbosa Homepage</a>
    93                         <a target="_blank" href="http://www.cryoutcreations.eu/forum">Support</a>
     92                        <a target="_blank" href="http://www.cryoutcreations.eu/verbosa"><?php _e( 'Verbosa Homepage', 'verbosa' ) ?></a>
     93                        <a target="_blank" href="http://www.cryoutcreations.eu/forum"><?php _e( 'Support', 'verbosa' ) ?></a>
    9494                        <a target="_blank" href="http://www.cryoutcreations.eu">Cryout Creations</a>
    9595                </div>
    … …  
    9999                echo "<div class='updated fade' style='clear:left;'><p>" . __('Verbosa settings updated successfully.', 'verbosa') . "</p></div>";
    100100        }?>
    101        
     101
    102102                <div id="description">
    103103                        <p>You wake up and you're a WordPress theme. You have a funny yet resonating name. You can't quite recall it but it's definitely a feminine name,
    104                         one word, ending with the vocal 'a'. Always ending with that darn vocal - that's a clear trademark for a Cryout Creations theme.</p>
     104                        one word, ending with the vowel 'a'. Always ending with that darn vowel - that's a clear trademark for a Cryout Creations theme.</p>
    105105                        <p>People are always checking you out, previewing your lines, curves and colors. Always keeping you in the spotlight, they're testing various elements,
    106106                        checking to see if you can satisfy their specific needs, if you can fit within the confines of their preconceived ideas of a perfect theme.
    107                         And when you do fit that description- the install button is pressed and the horror begins...</p>               
    108                         <p>Articles and pages are constantly added, edited, sometimes deleted. Countless plugins are cramped in, all shapes and sizes, 
     107                        And when you do fit that description- the install button is pressed and the horror begins...</p>
     108                        <p>Articles and pages are constantly added, edited, sometimes deleted. Countless plugins are cramped in, all shapes and sizes,
    109109                        shamelessly biting at the fringes of compatibility. And when that compatibility does fail, you're always the one to take the blame.
    110                         And so you're always being tampered with by those damned developers, adding patch over patch over patch, relentlessly changing you 
     110                        And so you're always being tampered with by those damned developers, adding patch over patch over patch, relentlessly changing you
    111111                        (they use the word 'improving' but we all know that's a lie) until you barely resemble your initial form.</p>
    112                         <p>And since you're a Cryout Creations theme, people can, and will, customize you a great deal. You're one but you're not the same. 
     112                        <p>And since you're a Cryout Creations theme, people can, and will, customize you a great deal. You're one but you're not the same.
    113113                        Different layouts, color schemes, fonts, widgets - you name it and it's customizable. It's near impossible for you to know who you really are anymore,
    114114                        a myriad of personas and you can't relate with any of them. Plus, with the whole responsive trend lately, they keep putting you in all these tight,
    115115                        uncomfortable places and expect you to just act natural.</p>
    116116                        <p>And sometimes, after all this probing and poking around, they decide you're simply not good enough. You don't fit with the subject matter.
    117                         You're too dark. Too round. Not enough umph. So they choose another theme, the first that shows up in search, some soulless Twenty-something 
    118                         theme and then just move on. And that- that is the worst. You feel dirty, used and abandoned. But somehow you must move on as well, 
     117                        You're too dark. Too round. Not enough umph. So they choose another theme, the first that shows up in search, some soulless Twenty-something
     118                        theme and then just move on. And that- that is the worst. You feel dirty, used and abandoned. But somehow you must move on as well,
    119119                        because another download is in progress and that Install button is about to be pressed once more... </p>
    120120                        <p>You wake up and you're a WordPress theme. You don't know your name but that's all right. </p>
    121121                </div>
    122122
    123                 <a class="button" href="customize.php" id="customizer"> <?php _e('Customize Verbosa', 'verbosa'); ?> </a>
    124        
     123                <a class="button" href="customize.php" id="customizer"> <?php _e( 'Customize Verbosa', 'verbosa'); ?> </a>
     124
    125125        </div><!--lefty -->
    126126
    … …  
    128128        <div id="righty" >
    129129                <div id="verbosa-donate" class="postbox donate">
    130                
     130
    131131                        <h3 class="hndle"> Coffee Break </h3>
    132132                        <div class="inside">
    … …  
    137137                        for us to fall asleep so he can trap and torture us in our own dreams and make us create themes for nightmares (whatever that means). </p>
    138138
    139                         <p>So after much though we've come to the conclusion that the only way to beat this is to stay awake until he dies of old age. 
     139                        <p>So after much though we've come to the conclusion that the only way to beat this is to stay awake until he dies of old age.
    140140                        But in order for us to stay awake that long, we'd need some sort of stimulant. So, unless you have a better idea,
    141141                        we'd really appreciate it if you'd...  </p>
    … …  
    153153
    154154                        </div><!-- inside -->
    155                        
     155
    156156                </div><!-- donate -->
    157157
    158158                <div id="verbosa-export" class="postbox export" >
    159                
     159
    160160                        <h3 class="hndle"><?php _e( 'Settings Management', 'verbosa' ); ?></h3>
    161161                        <div class="panel-wrap inside">
    162                                        
     162
    163163                                <form action="" method="post">
    164164                                        <input type="hidden" name="verbosa_reset_defaults" value="true" />
    … …  
    167167
    168168                        </div><!-- inside -->
    169                        
     169
    170170                </div><!-- export -->
    171171
    … …  
    181181<script type="text/javascript">
    182182var reset_confirmation = '<?php echo esc_html(__('Reset Verbosa Settings to Defaults?', 'verbosa')); ?>';
    183 </script> <?php 
     183</script> <?php
    184184} // verbosa_page_fn()
  • verbosa/0.9.2/admin/options.php

    r357746 r357746  
    11<?php
    22/**
    3  * Customizer settings and other theme related settings (fonts arrays, widget areas) 
     3 * Customizer settings and other theme related settings (fonts arrays, widget areas)
    44 *
    55 * @package Verbosa
    66 */
    7  
     7
    88function cryout_sanitize_tn($input){
    99        return preg_replace( '/[^a-z0-9-]/i', '-', $input );
    … …  
    1616function cryout_gen_values( $from, $to, $step = 1, $attr = array() ){
    1717        // prepend extra values
    18         if ( !empty($attr['pre']) && is_array($attr['pre']) )  $data = $attr['pre']; 
     18        if ( !empty($attr['pre']) && is_array($attr['pre']) )  $data = $attr['pre'];
    1919                                                                                                          else $data = array();
    2020        // set float precision
    … …  
    2424    if ( !empty($attr['um']) ) $um = $attr['um'];
    2525                                                  else $um = '';
    26        
     26
    2727        // generate numbers
    28         if ($step < 1): 
     28        if ($step < 1):
    2929                // floats
    3030                for ($i=$from;$i<=$to;$i+=$step) {
    3131                        $data[] = number_format($i,$precision).$um;
    3232                }
    33         else: 
     33        else:
    3434                // integers
    3535                for ($i=$from;$i<=$to;$i+=$step) {
    3636                        $data[] = $i.$um;
    37                 }       
     37                }
    3838        endif;
    39        
     39
    4040        // append extra values
    4141        if ( !empty($attr['post']) && is_array($attr['post']) )  $data = array_merge($data,$attr['post']);
    42        
     42
    4343        return $data;
    4444} // cryout_gen_values()
    … …  
    5050'info_sections' => array(
    5151        'about' => array(
    52                 'title' => __( 'About ' . _CRYOUT_THEME_NAME, 'cryout' ),
     52                'title' => __( 'About', 'cryout' ) . ' ' . _CRYOUT_THEME_NAME,
    5353                'desc' => __( 'Got a question? Need help?', 'cryout' ),
    5454        ),
    … …  
    8686                'section' => 'about',
    8787        ),
    88 ), // info_settings   
     88), // info_settings
    8989
    9090'panel_overrides' => array(
    … …  
    113113                'type' => 'section',
    114114        ),
    115         'colors' => array(
    116                 'section' => 'section',
    117                 'replaces' => 'colors',
    118                 'type' => 'remove',
    119         ),
    120        
     115
    121116), // panel_overrides
    122117
    … …  
    138133        // layout
    139134        array('id'=>'verbosa_layout', 'title'=>__('Layout', 'verbosa'), 'callback'=>'', 'sid'=>''),
    140         // header 
     135        // header
    141136        array('id'=>'verbosa_siteheader', 'title'=>__('Header Structure','verbosa'), 'callback'=>'', 'sid'=> ''),
    142         // presentation 
     137        // presentation
    143138        /* to be done */
    144139        // text
    145140        array('id'=>'verbosa_fontfamily', 'title'=>__('General Font','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'),
    146         array('id'=>'verbosa_fontheader', 'title'=>__('Header Fonts','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'),       
     141        array('id'=>'verbosa_fontheader', 'title'=>__('Header Fonts','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'),
    147142        array('id'=>'verbosa_fontwidget', 'title'=>__('Widget Fonts','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'),
    148         array('id'=>'verbosa_fontcontent', 'title'=>__('Content Fonts','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'),     
     143        array('id'=>'verbosa_fontcontent', 'title'=>__('Content Fonts','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'),
    149144        array('id'=>'verbosa_textformatting', 'title'=>__('Formatting','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'),
    150145        // graphics
    … …  
    168163        array('id'=>'verbosa_socials', 'title'=>__('Social Icons','verbosa'), 'callback'=>'', 'sid'=> ''),
    169164        // misc
    170         array('id'=>'verbosa_misc', 'title'=>__('Miscellaneous','verbosa'), 'callback'=>'', 'sid'=> ''),       
    171        
     165        array('id'=>'verbosa_misc', 'title'=>__('Miscellaneous','verbosa'), 'callback'=>'', 'sid'=> ''),
     166
    172167        /*** developer options ***/
    173168        //array('id'=>'verbosa_developer', 'title'=>__('[ Developer Options ]','verbosa'), 'callback'=>'', 'sid'=>''),
    174        
     169
    175170), // sections
    176171
    … …  
    199194                ),
    200195                'desc' => __("Defines the general site layout.<br>This can be overridden in pages by using Page Templates.","verbosa"),
    201         'section' => 'verbosa_layout' ),       
     196        'section' => 'verbosa_layout' ),
    202197        array(
    203198        'id' => 'verbosa_sitewidth',
    … …  
    223218                'desc' => __("Width (in pixels) of the sidebar.","verbosa"),
    224219        'section' => 'verbosa_layout' ),
    225        
     220
    226221        array(
    227222        'id' => 'verbosa_sidebarback',
    … …  
    252247                ),
    253248                'desc' => __("This layout applies to post lists and will arrange posts in columns.","verbosa"),
    254         'section' => 'verbosa_layout' ),       
     249        'section' => 'verbosa_layout' ),
    255250        array(
    256251        'id' => 'verbosa_contentmargintop',
    … …  
    265260                'values' => cryout_gen_values( 0, 15, 1, array('um'=>'') ),
    266261                'desc' => __("Set the left/right padding (in percent) for each page/post/content element.","verbosa"),
    267         'section' => 'verbosa_layout' ), 
    268        
     262        'section' => 'verbosa_layout' ),
     263
    269264        array(
    270265        'id' => 'verbosa_footercols',
    … …  
    274269                'labels' => array( "All in a row" , "1 Column", "2 Columns" , "3 Columns" , "4 Columns" ),
    275270                'desc' => __("Set the number of footer widgets to display per row.","verbosa"),
    276         'section' => 'verbosa_layout' ),       
     271        'section' => 'verbosa_layout' ),
    277272        array(
    278273        'id' => 'verbosa_footeralign',
    … …  
    283278                'desc' => __("Activate to center align footer widgets.","verbosa"),
    284279        'section' => 'verbosa_layout' ),
    285        
     280
    286281        // Header
    287282        array(
    … …  
    300295                'labels' => array( __("Site Title","verbosa"), __("Logo","verbosa"), __("Logo & Site Title","verbosa"), __("Empty","verbosa") ),
    301296                'desc' => '',
    302         'section' => 'verbosa_siteheader' ),           
     297        'section' => 'verbosa_siteheader' ),
    303298        array(
    304299        'id' => 'verbosa_logoupload',
    … …  
    316311                'desc' => __("Show or hide the menu bullets","verbosa"),
    317312        'section' => 'verbosa_siteheader' ),
    318        
    319        
     313
     314
    320315        //////////////////////////////////////////////////// Colors ////////////////////////////////////////////////////
    321        
     316
    322317        array(
    323318        'id' => 'verbosa_sitebackground',
    … …  
    355350                'label' => __('Menu Text on Hover','verbosa'),
    356351                'desc' => '',
    357         'section' => 'verbosa_colors' ),       
     352        'section' => 'verbosa_colors' ),
    358353        array(
    359354        'id' => 'verbosa_footerbackground',
    … …  
    386381                'desc' => '',
    387382        'section' => 'verbosa_colors' ),
    388        
     383
    389384        //////////////////////////////////////////////////// Fonts ////////////////////////////////////////////////////
    390385        array( // general font
    … …  
    416411                'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ),
    417412        'section' => 'verbosa_fontfamily' ),
    418                
     413
    419414        array( // site title font
    420415        'id' => 'verbosa_fsitetitlesize',
    … …  
    436431                'type' => 'font',
    437432                'label' => '',
    438                 'desc' => '', 
     433                'desc' => '',
    439434        'section' => 'verbosa_fontheader' ),
    440435        array(
    … …  
    444439                'desc' => __("Insert a Google font name/identifier in the field above to override the selected font.","verbosa"),
    445440                'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ),
    446         'section' => 'verbosa_fontheader' ),   
    447        
     441        'section' => 'verbosa_fontheader' ),
     442
    448443        array( // site description font
    449444        'id' => 'verbosa_fsitedescsize',
    … …  
    465460                'type' => 'font',
    466461                'label' => '',
    467                 'desc' => '', 
     462                'desc' => '',
    468463        'section' => 'verbosa_fontheader' ),
    469464        array(
    … …  
    473468                'desc' => __("Insert a Google font name/identifier in the field above to override the selected font.","verbosa"),
    474469                'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ),
    475         'section' => 'verbosa_fontheader' ),   
    476                
     470        'section' => 'verbosa_fontheader' ),
     471
    477472        array( // menu font
    478473        'id' => 'verbosa_fmenusize',
    … …  
    503498                'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ),
    504499        'section' => 'verbosa_fontheader' ),
    505                
     500
    506501        array( // widget fonts
    507502        'id' => 'verbosa_fwtitlesize',
    … …  
    527522        array(
    528523        'id' => 'verbosa_fwtitlegoogle',
    529                 'type' => 'googlefont',
    530                 'label' => '',
    531                 'desc' => __("Insert a Google font name/identifier in the field above to override the selected font.","verbosa"),
    532                 'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ),
    533         'section' => 'verbosa_fontwidget' ),   
    534                
    535         array(
    536         'id' => 'verbosa_fwcontentsize',
    537                 'type' => 'select',
    538                 'label' => __('Widget Content','verbosa'),
    539                 'values' => cryout_gen_values( 80, 120, 10, array('um'=>'%') ),
    540                 'desc' => '',
    541         'section' => 'verbosa_fontwidget' ),
    542         array(
    543         'id' => 'verbosa_fwcontentweight',
    544                 'type' => 'select',
    545                 'label' => '',
    546                 'values' => array('300','400','700','800'),
    547                 'labels' => array( __('300 (ligher)','verbosa'), __('400 (normal)','verbosa'), __('700 (bold)','verbosa'), __('800 (bolder)','verbosa') ),
    548                 'desc' => '',
    549         'section' => 'verbosa_fontwidget' ),
    550         array(
    551         'id' => 'verbosa_fwcontent',
    552                 'type' => 'font',
    553                 'label' => '',
    554                 'desc' => '',
    555         'section' => 'verbosa_fontwidget' ),
    556         array(
    557         'id' => 'verbosa_fwcontentgoogle',
    558524                'type' => 'googlefont',
    559525                'label' => '',
    … …  
    561527                'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ),
    562528        'section' => 'verbosa_fontwidget' ),
    563                
     529
     530        array(
     531        'id' => 'verbosa_fwcontentsize',
     532                'type' => 'select',
     533                'label' => __('Widget Content','verbosa'),
     534                'values' => cryout_gen_values( 80, 120, 10, array('um'=>'%') ),
     535                'desc' => '',
     536        'section' => 'verbosa_fontwidget' ),
     537        array(
     538        'id' => 'verbosa_fwcontentweight',
     539                'type' => 'select',
     540                'label' => '',
     541                'values' => array('300','400','700','800'),
     542                'labels' => array( __('300 (ligher)','verbosa'), __('400 (normal)','verbosa'), __('700 (bold)','verbosa'), __('800 (bolder)','verbosa') ),
     543                'desc' => '',
     544        'section' => 'verbosa_fontwidget' ),
     545        array(
     546        'id' => 'verbosa_fwcontent',
     547                'type' => 'font',
     548                'label' => '',
     549                'desc' => '',
     550        'section' => 'verbosa_fontwidget' ),
     551        array(
     552        'id' => 'verbosa_fwcontentgoogle',
     553                'type' => 'googlefont',
     554                'label' => '',
     555                'desc' => __("Insert a Google font name/identifier in the field above to override the selected font.","verbosa"),
     556                'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ),
     557        'section' => 'verbosa_fontwidget' ),
     558
    564559        array( // content fonts
    565560        'id' => 'verbosa_ftitlessize',
    … …  
    590585                'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ),
    591586        'section' => 'verbosa_fontcontent' ),
    592        
     587
    593588        array( // post meta fonts
    594589        'id' => 'verbosa_fmetassize',
    … …  
    619614                'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ),
    620615        'section' => 'verbosa_fontcontent' ),
    621                
     616
    622617        array(
    623618        'id' => 'verbosa_fheadingssize',
    … …  
    647642                'desc' => __("Insert a Google font name/identifier in the field above to override the selected font.","verbosa"),
    648643                'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ),
    649         'section' => 'verbosa_fontcontent' ),   
     644        'section' => 'verbosa_fontcontent' ),
    650645
    651646        array( // formatting
    … …  
    655650                'values' => cryout_gen_values( 1.0, 2.4, 0.2, array('um'=>'em') ),
    656651                'desc' => __(" ","verbosa"),
    657         'section' => 'verbosa_textformatting' ),       
    658         array( 
     652        'section' => 'verbosa_textformatting' ),
     653        array(
    659654        'id' => 'verbosa_textalign',
    660655                'type' => 'select',
    … …  
    677672                'values' => cryout_gen_values( 0, 2, 0.5, array('um'=>'em') ),
    678673                'desc' => __("Choose the indentation for your paragraphs.","verbosa"),
    679         'section' => 'verbosa_textformatting' ),               
    680                
     674        'section' => 'verbosa_textformatting' ),
     675
    681676        //////////////////////////////////////////////////// Structure ////////////////////////////////////////////////////
    682        
     677
    683678        array(
    684679        'id' => 'verbosa_breadcrumbs',
    … …  
    696691                'labels' => array( __("Enable","verbosa"), __("Disable","verbosa") ),
    697692                'desc' => __("Show numbered pagination. Where there is more than one page, instead of the bottom <em>Older Posts</em> and <em>Newer posts</em> links you will have a numbered pagination. ","verbosa"),
    698         'section' => 'verbosa_contentstructure' ),     
     693        'section' => 'verbosa_contentstructure' ),
    699694        array(
    700695        'id' => 'verbosa_contenttitles',
    … …  
    704699                'labels' => array( __('Always Visible','verbosa'), __('Hide on Pages','verbosa'), __('Hide on Categories','verbosa'), __('Always Hidden','verbosa') ),
    705700                'desc' => __("Control the visibility of titles on pages, categories and/or archives.","verbosa"),
    706         'section' => 'verbosa_contentstructure' ),     
     701        'section' => 'verbosa_contentstructure' ),
    707702
    708703        //////////////////////////////////////////////////// Graphics ////////////////////////////////////////////////////
    … …  
    713708                'label' => __('Border','verbosa'),
    714709                'desc' => '',
    715         'section' => 'verbosa_contentgraphics' ),       
     710        'section' => 'verbosa_contentgraphics' ),
    716711        array(
    717712        'id' => 'verbosa_elementshadow',
    … …  
    719714                'label' => __('Shadow','verbosa'),
    720715                'desc' => '',
    721         'section' => 'verbosa_contentgraphics' ),       
     716        'section' => 'verbosa_contentgraphics' ),
    722717        array(
    723718        'id' => 'verbosa_elementborderradius',
    … …  
    725720                'label' => __('Rounded Corners','verbosa'),
    726721                'desc' => __('These decorations apply to certain theme elements.','verbosa'),
    727         'section' => 'verbosa_contentgraphics' ),       
    728        
     722        'section' => 'verbosa_contentgraphics' ),
     723
    729724        //////////////////////////////////////////////////// Search Box ////////////////////////////////////////////////////
    730        
     725
    731726        //////////////////////////////////////////////////// Post Image ////////////////////////////////////////////////////
    732                
     727
    733728        array(
    734729        'id' => 'verbosa_image_style',
    … …  
    762757                ),
    763758                'desc' => __("Define the border style for your images. Applies to captionless images in posts and pages.","verbosa"),
    764         'section' => 'verbosa_postimage' ),     
     759        'section' => 'verbosa_postimage' ),
    765760        array(
    766761        'id' => 'verbosa_caption_style',
    … …  
    770765                'labels' => array( __('Plain','verbosa'), __('With Border','verbosa'), __('With Background','verbosa') ),
    771766                'desc' => __("Define the caption style for your images. Applies to images that have captions. ","verbosa"),
    772         'section' => 'verbosa_postimage' ), 
    773 
    774                
     767        'section' => 'verbosa_postimage' ),
     768
     769
    775770        //////////////////////////////////////////////////// Post Information ////////////////////////////////////////////////////
    776771
    … …  
    811806                'desc' => __("Choose the meta information you want to show on posts.","verbosa"),
    812807        'section' => 'verbosa_metas' ),
    813        
    814                
     808
     809
    815810        array( // comments
    816811        'id' => 'verbosa_comclosed',
    … …  
    845840                'desc' => __("In pixels. Sets the maximum width for the comment form. Entering 0 as the value makes the comment form full width.","verbosa"),
    846841        'section' => 'verbosa_comments' ),
    847        
     842
    848843        array( // excerpts
    849844        'id' => 'verbosa_excerpthome',
    … …  
    853848                'labels' => array( __("Excerpt","verbosa"), __("Full Post","verbosa") ),
    854849                'desc' => __("Controls posts appearance on homepage. Only applies to standard posts; other post formats (aside, image, chat, quote etc.) have their specific formatting.","verbosa"),
    855         'section' => 'verbosa_excerpts' ),     
    856         array( 
     850        'section' => 'verbosa_excerpts' ),
     851        array(
    857852        'id' => 'verbosa_excerptsticky',
    858853                'type' => 'select',
    … …  
    861856                'labels' => array( __("Inherit","verbosa"), __("Full Post","verbosa") ),
    862857                'desc' => __("Controls sticky posts appearance on the homepage.","verbosa"),
    863         'section' => 'verbosa_excerpts' ),     
    864         array( 
     858        'section' => 'verbosa_excerpts' ),
     859        array(
    865860        'id' => 'verbosa_excerptarchive',
    866861                'type' => 'select',
    … …  
    881876                'label' => __( 'Excerpt Suffix', 'verbosa' ),
    882877                'desc' => __("Defines the three dots '[...]' that are appended automatically to excerpts.","verbosa"),
    883         'section' => 'verbosa_excerpts' ),     
     878        'section' => 'verbosa_excerpts' ),
    884879        array(
    885880        'id' => 'verbosa_excerptcont',
    … …  
    887882                'label' => __( 'Continue Reading Link', 'verbosa' ),
    888883                'desc' => __("Defines the 'Continue Reading' link text appended to post excerpts.","verbosa"),
    889         'section' => 'verbosa_excerpts' ),     
    890        
     884        'section' => 'verbosa_excerpts' ),
     885
    891886        //////////////////////////////////////////////////// Featured Images ////////////////////////////////////////////////////
    892887        array(
    … …  
    924919                'type' => 'number',
    925920                'label' => __( 'Featured Image Height', 'verbosa' ),
    926                 'desc' => __("In pixels. The width is not configurable as it is site-width and layout dependent.<br><u style='color: #990000;'>Remember to regenerate your thumbnails after changing this value</u>" , "verbosa"), 
    927         'section' => 'verbosa_featured' ),     
     921                'desc' => __("In pixels. The width is not configurable as it is site-width and layout dependent.<br><u style='color: #990000;'>Remember to regenerate your thumbnails after changing this value</u>" , "verbosa"),
     922        'section' => 'verbosa_featured' ),
    928923        array(
    929924        'id' => 'verbosa_fresponsive',
    … …  
    948943                'desc' => __("In pixels. The bar that appears under the featured image." , "verbosa"),
    949944        'section' => 'verbosa_featured' ),
    950        
     945
    951946        //////////////////////////////////////////////////// Social Positions ////////////////////////////////////////////////////
    952        
     947
    953948        array(
    954949        'id' => 'verbosa_socials_header_above',
    … …  
    956951                'label' => __( 'Display above Site Title', 'verbosa' ),
    957952                'desc' => '',
    958         'section' => 'verbosa_socials' ),       
     953        'section' => 'verbosa_socials' ),
    959954        array(
    960955        'id' => 'verbosa_socials_header_below',
    … …  
    962957                'label' => __( 'Display below Site Title', 'verbosa' ),
    963958                'desc' => '',
    964         'section' => 'verbosa_socials' ),       
     959        'section' => 'verbosa_socials' ),
    965960        array(
    966961        'id' => 'verbosa_socials_sidebar',
    … …  
    968963                'label' => __( 'Display at the bottom of the sidebar', 'verbosa' ),
    969964                'desc' => '',
    970         'section' => 'verbosa_socials' ),       
    971        
     965        'section' => 'verbosa_socials' ),
     966
    972967        //////////////////////////////////////////////////// Miscellaneous ////////////////////////////////////////////////////
    973968        array(
    … …  
    983978                'desc' => __("Insert your custom theme CSS. Styling declarations made here will override the theme's if they are specific enough.","verbosa"),
    984979                'section' => 'verbosa_misc' ),
    985                
     980
    986981        //////////////////////////////////////////////////// !!! DEVELOPER !!! ////////////////////////////////////////////////////
    987982        array(
    … …  
    992987                'labels' => array( __("Enabled", "verbosa"), __("Disabled","verbosa") ),
    993988                'desc' => sprintf( __("Enable the Presentation Page homepage slider above the posts list.","verbosa"), '#'),
    994         'section' => 'verbosa_developer' ), 
     989        'section' => 'verbosa_developer' ),
    995990
    996991), // options
    … …  
    10111006                'labels' => array(  ),
    10121007                'desc' => '',
    1013                 // conditionals 
    1014                 'disable_if' => 'function_name', 
    1015                 'require_fn' => 'function_name', 
     1008                // conditionals
     1009                'disable_if' => 'function_name',
     1010                'require_fn' => 'function_name',
    10161011        'section' => '' ),
    1017        
    1018 */ 
     1012
     1013*/
    10191014
    10201015/*** fonts ***/
    … …  
    10651060                                        "Bodoni MT, serif",
    10661061                                        "Copperplate Light, Copperplate Gothic Light, serif",
    1067                                         "Garamond, Times New Roman, Times, serif" 
     1062                                        "Garamond, Times New Roman, Times, serif"
    10681063                                        ),
    1069         'MonoSpace' => array( 
     1064        'MonoSpace' => array(
    10701065                                        "Courier New, Courier, monospace" ,
    10711066                                        "Lucida Console, Monaco, monospace",
    10721067                                        "Consolas, Lucida Console, Monaco, monospace",
    1073                                         "Monaco, monospace" 
     1068                                        "Monaco, monospace"
    10741069                                        ),
    1075         'Cursive' => array( 
     1070        'Cursive' => array(
    10761071                                        "Lucida Casual, Comic Sans MS , cursive ",
    10771072                                    "Brush Script MT,Phyllis,Lucida Handwriting,cursive",
    10781073                                        "Phyllis,Lucida Handwriting,cursive",
    10791074                                        "Lucida Handwriting,cursive",
    1080                                         "Comic Sans MS, cursive" 
     1075                                        "Comic Sans MS, cursive"
    10811076                                        )
    10821077        ), // fonts
    … …  
    10941089        'verbosa_fheadings',
    10951090        ),
    1096        
    1097        
     1091
     1092
    10981093/************* widget areas *************/
    10991094
    … …  
    11041099                'after_widget' => '</section>',
    11051100                'before_title' => '<h3 class="widget-title"><span>',
    1106                 'after_title' => '</span></h3>',       
     1101                'after_title' => '</span></h3>',
    11071102        ),
    11081103        'widget-area-right' => array(
    … …  
    11151110        'footer-widget-area' => array(
    11161111                'name' => __( 'Footer', 'verbosa' ),
    1117                 'description'   => __('You can select how many widgets to show per row from Graphics &raquo; Layout.', 'verbosa'), 
     1112                'description'   => __('You can select how many widgets to show per row from Graphics &raquo; Layout.', 'verbosa'),
    11181113                'before_widget' => '<section id="%1$s" class="widget-container %2$s"><div class="footer-widget-inside">',
    11191114                'after_widget' => '</div></section>',
    11201115                'before_title' => '<h3 class="widget-title"><span>',
    1121                 'after_title' => '</span></h3>',       
     1116                'after_title' => '</span></h3>',
    11221117        ),
    11231118        'content-widget-area-before' => array(
    … …  
    11261121                'after_widget' => '</section>',
    11271122                'before_title' => '<h3 class="widget-title"><span>',
    1128                 'after_title' => '</span></h3>',       
     1123                'after_title' => '</span></h3>',
    11291124        ),
    11301125        'content-widget-area-after' => array(
    … …  
    11331128                'after_widget' => '</section>',
    11341129                'before_title' => '<h3 class="widget-title"><span>',
    1135                 'after_title' => '</span></h3>',               
     1130                'after_title' => '</span></h3>',
    11361131        ),
    11371132
    11381133), // widget-areas
    1139        
     1134
    11401135
    11411136); // $verbosa_big
    1142 
  • verbosa/0.9.2/attachment.php

    r357746 r357746  
    1111        <?php verbosa_header_section() ?>
    1212        <main id="main" role="main" class="main">
    13                        
     13
    1414        <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    1515
    1616                <article id="post-<?php the_ID(); ?>" <?php post_class("post"); cryout_schema_microdata('article');?>>
    17                        
     17
    1818                        <header>
    1919                                <?php cryout_post_title_hook(); ?>
    … …  
    2626                                                        printf( __( 'Full size is %s pixels', 'verbosa'),
    2727                                                                sprintf( '<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>',
    28                                                                         wp_get_attachment_url(),
     28                                                                        esc_url( wp_get_attachment_url() ),
    2929                                                                        esc_attr( __('Link to full-size image', 'verbosa') ),
    3030                                                                        $metadata['width'],
    … …  
    3939                        <div class="entry-content" <?php cryout_schema_microdata('entry-content'); ?>>
    4040                                <div class="entry-attachment">
    41                                
     41
    4242<?php if ( wp_attachment_is_image() ) :
    4343        $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
    … …  
    5151                if ( isset( $attachments[ $k ] ) )
    5252                        // get the URL of the next image attachment
    53                         $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
     53                        $next_attachment_url = esc_url( get_attachment_link( $attachments[ $k ]->ID ) );
    5454                else
    5555                        // or get the URL of the first image attachment
    56                         $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
     56                        $next_attachment_url = esc_url( get_attachment_link( $attachments[ 0 ]->ID ) );
    5757        } else {
    5858                // or, if there's only 1 image attachment, get the URL of the image
    59                 $next_attachment_url = wp_get_attachment_url();
     59                $next_attachment_url = esc_url( wp_get_attachment_url() );
    6060        }
    6161?>
    … …  
    6565                                                        echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height.?>
    6666                                                </a>
    67                                         </p>           
    68                                                
     67                                        </p>
     68
    6969                                <div class="entry-caption">
    7070                                        <?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?>
    7171                                </div>
    72                                                
     72
    7373<?php else : ?>
    74                                         <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>
     74                                        <a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( esc_url( get_permalink() ) ); ?></a>
    7575<?php endif; ?>
    7676                                </div><!-- .entry-attachment -->
    77                                                
     77
    7878                                        <footer class="entry-meta">
    7979                                                <?php cryout_post_footer_hook(); ?>
    8080                                                <?php if ( ! empty( $post->post_parent ) ) : ?>
    81                                         <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'verbosa' ), get_the_title( $post->post_parent ) ) ); ?>" ><?php
     81                                        <p class="page-title"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ) ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'verbosa' ), get_the_title( $post->post_parent ) ) ); ?>" ><?php
    8282                                                /* translators: %s - title of parent post */
    8383                                                printf( '&laquo; %s', get_the_title( $post->post_parent ) );
    8484                                        ?></a></p>
    8585                                <?php endif; ?>
    86                                         </footer><!-- .entry-meta -->   
     86                                        </footer><!-- .entry-meta -->
    8787
    8888
    … …  
    9393                                <div class="nav-previous"><?php previous_image_link( false,'<i class="icon-arrow-left2"></i>'.__("Previous image","verbosa")); ?></div>
    9494                                <div class="nav-next"><?php next_image_link( false,__("Next image","verbosa").'<i class="icon-arrow-right2"></i>' ); ?></div>
    95                         </div><!-- #nav-below -->                                       
    96                
    97                 <?php  comments_template( '', true ); ?>               
    98                                        
     95                        </div><!-- #nav-below -->
     96
     97                <?php  comments_template( '', true ); ?>
     98
    9999                </article><!-- #post-## -->
    100100
    … …  
    102102<?php endwhile; ?>
    103103
    104                        
     104
    105105
    106106                        </main><!-- #main -->
  • verbosa/0.9.2/cryout/customizer.php

    r357746 r357746  
    55
    66        ///////// SANITIZERS /////////
    7        
     7
    88function cryout_customizer_sanitize_blank(){
    99        // dummy function that does nothing, since the sanitized add_section
    … …  
    2121
    2222function cryout_customizer_sanitize_url($input){
    23         return esc_url_raw( $input );   
     23        return esc_url_raw( $input );
    2424} // cryout_customizer_sanitize_url()
    2525
    2626function cryout_customizer_sanitize_googlefont($input){
    27         return preg_replace( '/\+/', ' ', wp_kses_post($input) );       
     27        return preg_replace( '/\+/', ' ', wp_kses_post($input) );
    2828} // cryout_customizer_sanitize_url()
    2929
    … …  
    3838
    3939function cryout_customizer_sanitize_generic($input){
    40         return wp_kses_post( $input ); 
     40        return wp_kses_post( $input );
    4141} // cryout_customizer_sanitize_generic()
    4242
    … …  
    4848        class Cryout_Customize_Link_Control extends WP_Customize_Control {
    4949                        public $type = 'link';
    50                         public function render_content() { 
     50                        public function render_content() {
    5151                                if ( !empty( $this->description ) ) { ?>
    5252                                        <li class="customize-section-description-container">
    … …  
    6060                        }
    6161        } // class Cryout_Customize_Link_Control
    62        
     62
    6363        class Cryout_Customize_About_Control extends WP_Customize_Control {
    6464                        public $type = 'about';
    65                         public function render_content() { 
     65                        public function render_content() {
    6666                                        if ( ! empty( $this->label ) ) { ?>
    67                         <span class="customize-control-title"><?php echo $this->label ?></span>
    68                                         <?php } 
     67                        <span class="customize-control-title"><?php echo esc_attr( $this->label ) ?></span>
     68                                        <?php }
    6969                                        if ( ! empty( $this->description ) ) { ?>
    70                         <span class="description customize-control-description cryout-nomove"><?php echo $this->description; ?></span>
     70                        <span class="description customize-control-description cryout-nomove"><?php echo wp_kses_post( $this->description ) ?></span>
    7171                    <?php } ?>
    72                                         <span class="customize-control-content customize-cryout-about-link"><?php echo $this->value() ?></span>
     72                                        <span class="customize-control-content customize-cryout-about-link"><?php  echo wp_kses_post( $this->value() ) ?></span>
    7373                        <?php
    7474                        }
    7575        } // class Cryout_Customize_About_Control
    76        
    77        
     76
     77
    7878        class Cryout_Customize_Blank_Control extends WP_Customize_Control {
    7979                        public $type = 'blank';
    80                         public function render_content() { 
     80                        public function render_content() {
    8181                                echo '&nbsp;';
    8282                        }
    8383        } // class Cryout_Customize_Blank_Control
    84        
    85        
     84
     85
    8686        class Cryout_Customize_Font_Control extends WP_Customize_Control {
    8787                        public $type = 'font';
    … …  
    114114                                <?php
    115115                        } // render_content()
    116                                
     116
    117117                        public function enqueue() {
    118118                                wp_enqueue_script( 'jquery-ui-core' );
    … …  
    120120                                wp_enqueue_script( 'cryout-customizer-controls-js', get_template_directory_uri() . '/cryout/js/customizer-controls.js', array('jquery'), _CRYOUT_THEME_VERSION );
    121121                                wp_enqueue_style( 'jquery-ui-slider', get_template_directory_uri() . '/cryout/css/jquery-ui.structure.css', NULL, _CRYOUT_THEME_VERSION );
    122                                 wp_enqueue_style( 'jquery-ui-slider-theme', get_template_directory_uri() . '/cryout/css//jquery-ui.theme.css', NULL, _CRYOUT_THEME_VERSION );   
     122                                wp_enqueue_style( 'jquery-ui-slider-theme', get_template_directory_uri() . '/cryout/css//jquery-ui.theme.css', NULL, _CRYOUT_THEME_VERSION );
    123123                        } // enqueue()
    124                
     124
    125125        } // class Cryout_Customize_Font_Control
    126126
    127        
     127
    128128        class Cryout_Customize_Slider_Control extends WP_Customize_Control {
    129129
    … …  
    135135                        public function render_content() { ?>
    136136                                <label>
    137                                         <span class="customize-control-title"><?php echo esc_html( $this->label ); ?>: 
    138                                                 <strong class="value"><?php echo $this->value(); ?></strong><?php echo $this->input_attrs['um']; ?>
     137                                        <span class="customize-control-title"><?php echo esc_html( $this->label ); ?>:
     138                                                <strong class="value"><?php echo esc_attr( $this->value() ) ?></strong><?php echo $this->input_attrs['um']; ?>
    139139                                        </span>
    140140                                </label>
    141                                 <input name="<?php echo $this->id; ?>" type="number" <?php $this->link(); ?> value="<?php echo $this->value(); ?>" class="slider"
    142                                         step="<?php echo $this->input_attrs['step'] ?>" min="<?php echo $this->input_attrs['min'] ?>" max="<?php echo $this->input_attrs['max'] ?>" />
     141                                <input name="<?php echo esc_attr( $this->id ) ?>" type="number" <?php esc_attr( $this->link() ) ?> value="<?php echo absint( $this->value() ) ?>" class="slider"
     142                                        step="<?php echo absint($this->input_attrs['step']) ?>" min="<?php echo absint( $this->input_attrs['min']) ?>" max="<?php echo absint( $this->input_attrs['max'] ) ?>" />
    143143                                <div class="slider"></div>
    144144                                <?php if ( ! empty( $this->description ) ) : ?>
    145                                          <span class="description cryout-nomove customize-control-description"><?php echo $this->description; ?></span>
     145                                         <span class="description cryout-nomove customize-control-description"><?php echo wp_kses_post( $this->description ) ?></span>
    146146                                <?php endif; ?>
    147147                        <?php
    148148                        } // render_content()
    149                        
     149
    150150                        public function enqueue() {
    151151                                // google fonts enqueues for the font selectors preview
    … …  
    155155                                foreach ($cryout_theme_structure['google-font-enabled-fields'] as $item) {
    156156                                        if ( preg_match('/^(.*)\/gfont$/i', $cryout_theme_options[$item], $bits) ) $gfonts[] = $bits[1];
    157                                 };                     
     157                                };
    158158                                if ( count($gfonts) ):
    159                                         wp_enqueue_style( 'cryout-googlefonts', '//fonts.googleapis.com/css?family=' . implode( "|" , array_unique($gfonts) ), null, _CRYOUT_THEME_VERSION ); 
    160                                 endif; 
    161                         } // enqueue()         
    162                
     159                                        wp_enqueue_style( 'cryout-googlefonts', '//fonts.googleapis.com/css?family=' . implode( "|" , array_unique($gfonts) ), null, _CRYOUT_THEME_VERSION );
     160                                endif;
     161                        } // enqueue()
     162
    163163        } // class Cryout_Customize_Slider_Control
    164        
    165        
     164
     165
    166166        class Cryout_Customize_SliderTwo_Control extends WP_Customize_Control {
    167167                        public $type = 'slidertwo';
    … …  
    171171
    172172                        public function render_content() { ?>
    173                                 <label><span class="customize-control-title"><?php echo esc_html( $this->label ); ?>: 
    174                                         <strong class="value"><?php echo $this->value(); ?></strong><?php echo $this->input_attrs['um']; ?> /
    175                                         <strong class="value2"><?php echo ( intval($this->input_attrs['total']) - intval($this->value()) ); ?></strong><?php echo $this->input_attrs['um']; ?>
     173                                <label><span class="customize-control-title"><?php echo esc_html( $this->label ); ?>:
     174                                        <strong class="value"><?php echo absint( $this->value() ); ?></strong><?php echo $this->input_attrs['um']; ?> /
     175                                        <strong class="value2"><?php echo ( intval($this->input_attrs['total']) - intval($this->value()) ); ?></strong><?php echo esc_attr( $this->input_attrs['um'] ); ?>
    176176                                </span></label>
    177                                 <input name="<?php echo $this->id; ?>" type="number" <?php $this->link(); ?> value="<?php echo $this->value(); ?>" class="slidertwo"
    178                                         step="<?php echo $this->input_attrs['step'] ?>" min="<?php echo $this->input_attrs['min'] ?>"
    179                                         max="<?php echo $this->input_attrs['max'] ?>" size="<?php echo $this->input_attrs['total'] ?>"/>
     177                                <input name="<?php echo esc_attr( $this->id ) ?>" type="number" <?php esc_attr( $this->link() ); ?> value="<?php echo absint( $this->value() ); ?>" class="slidertwo"
     178                                        step="<?php echo absint( $this->input_attrs['step'] ) ?>" min="<?php echo absint( $this->input_attrs['min'] ) ?>"
     179                                        max="<?php echo absint( $this->input_attrs['max'] ) ?>" size="<?php echo absint( $this->input_attrs['total'] ) ?>"/>
    180180                                <div class="slidertwo"></div>
    181181                                <?php if ( ! empty( $this->description ) ) : ?>
    182                                          <span class="description cryout-nomove customize-control-description"><?php echo $this->description; ?></span>
     182                                         <span class="description cryout-nomove customize-control-description"><?php echo wp_kses_post( $this->description ) ?></span>
    183183                                <?php endif; ?>
    184184                        <?php
    185185                        } // render_content()
    186                        
     186
    187187                        public function enqueue() {
    188188                                wp_enqueue_script( 'jquery-ui-core' );
    … …  
    192192                                wp_enqueue_style( 'jquery-ui-slider-theme', get_template_directory_uri() . '/cryout/css//jquery-ui.theme.css' );
    193193                        } // enqueue()
    194                
     194
    195195        } // class Cryout_Customize_Slider_Control
    196        
    197        
     196
     197
    198198        class Cryout_Customize_RadioImage_Control extends WP_Customize_Control {
    199199                        public $type = 'radioimage';
    … …  
    201201                                parent::__construct( $manager, $id, $args );
    202202                        } // __construct()
    203                        
    204                         public function render_content() { 
    205                        
    206                                 if ( empty( $this->choices ) ) return; 
    207                                
     203
     204                        public function render_content() {
     205
     206                                if ( empty( $this->choices ) ) return;
     207
    208208                                $name = '_customize-imageradio-' . $this->id;  ?>
    209                                
    210                                 <?php if ( ! empty( $this->label ) ) { ?> <span class="customize-control-title"><?php echo esc_html( $this->label ) ?></span> <?php } ?>                       
    211                                
    212                                 <div class="buttonset"> <?php 
     209
     210                                <?php if ( ! empty( $this->label ) ) { ?> <span class="customize-control-title"><?php echo esc_html( $this->label ) ?></span> <?php } ?>
     211
     212                                <div class="buttonset"> <?php
    213213                                        foreach ( $this->choices as $value => $data ) :
    214                                        
     214
    215215                                                        $data['url'] = esc_url( sprintf( $data['url'], get_template_directory_uri(), get_stylesheet_directory_uri() ) );
    216216                                                        ?>
    217                                                         <input type="radio" value="<?php echo esc_attr( $value ); ?>" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ) . "-" . $value; ?>" <?php $this->link(); checked( $this->value(), $value ); ?> />
    218                                                         <label for="<?php echo esc_attr( $name ) . "-" . $value; ?>">
    219                                                                         <img src="<?php echo $data['url'] ?>" alt="<?php echo esc_html( $data['label'] ) ?>" title="<?php echo esc_html( $data['label'] ) ?>"/>
     217                                                        <input type="radio" value="<?php echo esc_attr( $value ); ?>" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ) . "-" . $value; ?>" <?php esc_attr( $this->link() ); checked( $this->value(), $value ); ?> />
     218                                                        <label for="<?php echo esc_attr( $name ) . "-" . esc_attr( $value ) ?>">
     219                                                                        <img src="<?php echo esc_url( $data['url'] ) ?>" alt="<?php echo esc_html( $data['label'] ) ?>" title="<?php echo esc_html( $data['label'] ) ?>"/>
    220220                                                                        <span class="screen-reader-text"><?php echo esc_html( $data['label'] ); ?></span>
    221221                                                        </label>
    222222                                                        <?php
    223223                                        endforeach; ?>
    224                                 </div><!-- .buttonset --> 
    225                                
    226                                 <?php if ( ! empty( $this->description ) ) { ?> <span class="description cryout-nomove customize-control-description"><?php echo $this->description; ?></span><?php } ?>
    227                         <?php 
     224                                </div><!-- .buttonset -->
     225
     226                                <?php if ( ! empty( $this->description ) ) { ?> <span class="description cryout-nomove customize-control-description"><?php echo wp_kses_post( $this->description ); ?></span><?php } ?>
     227                        <?php
    228228                        } // render_content()
    229                        
     229
    230230                        public function enqueue() {
    231231                                wp_enqueue_script( 'jquery-ui-core' );
    … …  
    235235        } // class Cryout_Customize_RadioImage_Control
    236236
    237        
     237
    238238} // cryout_customizer_extras()
    239239
    … …  
    241241////////// THE CUSTOMIZER CLASS /////////
    242242class Cryout_Customizer {
    243        
     243
    244244        public function __construct () {
    245245
    246246        } // __construct()
    247247
    248         public static function register( $wp_customize ) {     
     248        public static function register( $wp_customize ) {
    249249                global $cryout_theme_settings;
    250250                global $cryout_theme_defaults;
    251                
     251
    252252                ////////// add about theme panel and sections //////////
    253253                if (!empty($cryout_theme_settings['info_sections'])):
    … …  
    255255                        'priority'       => 0,
    256256                        'title'          => sprintf( __( 'About %s', 'cryout' ), ucwords(_CRYOUT_THEME_NAME) ),
    257                         'description'    => sprintf( __( '%1$s by %1$s', 'cryout' ), ucwords(_CRYOUT_THEME_NAME), 'Cryout Creations' ), 
     257                        'description'    => sprintf( __( '%1$s by %1$s', 'cryout' ), ucwords(_CRYOUT_THEME_NAME), 'Cryout Creations' ),
    258258                ) );
    259259                $section_priority = 10;
    260                
     260
    261261                foreach ($cryout_theme_settings['info_sections'] as $iid=>$info):
    262262                        $wp_customize->add_section( $iid, array(
    … …  
    282282                                'settings'   => $iid,
    283283                                'priority'   => 10,
    284                         ) ) );                         
    285                 endforeach;             
     284                        ) ) );
     285                endforeach;
    286286                ////////// end about panel
    287                
     287
    288288                ////////// add custom theme options panels //////////
    289289                $priority = 45;
    … …  
    294294                          'title' => $panel['title'],
    295295                          'description' => '',
    296                           'priority' => $priority+=5, 
    297                         ) );           
    298                
    299                 endforeach; 
    300                
     296                          'priority' => $priority+=5,
     297                        ) );
     298
     299                endforeach;
     300
    301301                ////////// add custom theme options sections, settings and empty placeholder control //////////
    302302                $section_priority = 60;
    303303                foreach ($cryout_theme_settings['sections'] as $section):
    304                
     304
    305305                        // override section id to make it uniquely identifiable
    306306                        $wp_customize->add_section( 'cryout-' . $section['id'], array(
    … …  
    310310                                'panel'                  => ($section['sid']?'cryout-' . $section['sid']:''),
    311311                        ) );
    312                        
     312
    313313                        $wp_customize->add_setting( 'placeholder_'.$section_priority, array(
    314314                                'default'        => '',
    315315                                'capability'     => 'edit_theme_options',
    316316                                'sanitize_callback' => 'cryout_customizer_sanitize_blank'
    317                         ) );   
    318                        
     317                        ) );
     318
    319319                        // override section id to make it uniquely identifiable
    320320                        $wp_customize->add_control( new Cryout_Customize_Blank_Control( $wp_customize, 'placeholder_'.$section_priority, array(
    … …  
    322322                                'settings'   => 'placeholder_'.$section_priority,
    323323                                'priority'   => 10,
    324                         ) ) );         
    325                        
     324                        ) ) );
     325
    326326                endforeach;
    327327                ////////// end option panels/sections
    328                
     328
    329329                ////////// override built-in wordpress customizer panels, if set //////////
    330330                if (!empty($cryout_theme_settings['panel_overrides']))
    331331                foreach ($cryout_theme_settings['panel_overrides'] as $poid => $pover):
    332                
     332
    333333                        if (empty($pover['priority2'])) $pover['priority2'] = 60; // failsafe
    334334                        switch ($pover['type']):
    … …  
    336336                                        switch( $pover['section'] ):
    337337                                                case 'panel':
    338                                                         $wp_customize->remove_panel( $pover['replaces']); 
     338                                                        $wp_customize->remove_panel( $pover['replaces']);
    339339                                                        break;
    340340                                                case 'section':
    341                                                         $wp_customize->remove_section( $pover['replaces']); 
    342                                                         break;                                                 
     341                                                        $wp_customize->remove_section( $pover['replaces']);
     342                                                        break;
    343343                                                case 'setting':
    344344                                                default:
    345                                                         $wp_customize->remove_setting( $pover['replaces']); 
     345                                                        $wp_customize->remove_setting( $pover['replaces']);
    346346                                                        break;
    347347                                        endswitch;
    348348                                        break;
    349349                                case 'section': // move built-in setting to theme panel
    350                                         $wp_customize->get_section( $pover['replaces'] )->panel = $pover['section'];   
     350                                        $wp_customize->get_section( $pover['replaces'] )->panel = $pover['section'];
    351351                                        $wp_customize->get_section( $pover['replaces'] )->priority = $pover['priority2'];
    352352                                        break;
    … …  
    362362                                        break;
    363363                        endswitch;
    364                        
    365                 endforeach; 
    366                
     364
     365                endforeach;
     366
    367367                ////////// add custom theme option controls, based on option type //////////
    368368                foreach ($cryout_theme_settings['options'] as $opt):
    369                
     369
    370370                        // check if option should be visible on this wp version
    371371                        if ( !empty( $opt['disable_if'] ) ) {
    372                                 if ( function_exists($opt['disable_if']) ) continue;                           
    373                         }       
     372                                if ( function_exists($opt['disable_if']) ) continue;
     373                        }
    374374                        if ( !empty( $opt['require_fn'] ) ) {
    375                                 if ( ! function_exists($opt['require_fn']) ) continue;                         
    376                         }       
    377                
     375                                if ( ! function_exists($opt['require_fn']) ) continue;
     376                        }
     377
    378378                        ////////// sanitizer function callback select
    379                         switch ($opt['type']): 
    380                                 case 'number': case 'slider': 
     379                        switch ($opt['type']):
     380                                case 'number': case 'slider':
    381381                                case 'range':                   $sanitize_callback = 'cryout_customizer_sanitize_number';               break;
    382382                                case 'checkbox':                $sanitize_callback = 'cryout_customizer_sanitize_checkbox';             break;
    … …  
    387387                                                                                $sanitize_callback = 'cryout_customizer_sanitize_number';               break;
    388388                                case 'blank':                   $sanitize_callback = 'cryout_customizer_sanitize_blank';                break;
    389                                 case 'text': case 'tel': case 'email': case 'search':  case 'radio': 
    390                                 case 'time': case 'date': case 'datetime': case 'week':         
     389                                case 'text': case 'tel': case 'email': case 'search':  case 'radio':
     390                                case 'time': case 'date': case 'datetime': case 'week':
    391391                                case 'textarea':                $sanitize_callback = 'cryout_customizer_sanitize_textarea';             break;
    392392                                default:                                $sanitize_callback = 'cryout_customizer_sanitize_generic';              break;
    393393                        endswitch;
    394                        
     394
    395395                        ////////// guess theme options variable name
    396396                        if (function_exists('cryout_get_theme_options_name')) {
    … …  
    399399                                $theme_options_array = _CRYOUT_THEME_NAME . '_settings';
    400400                        };
    401                         $opid = $theme_options_array . '[' . $opt['id'] . ']'; 
    402                        
     401                        $opid = $theme_options_array . '[' . $opt['id'] . ']';
     402
    403403                        // override section id to make it uniquely identifiable
    404404                        $opt['section'] = 'cryout-' . $opt['section'];
    … …  
    411411                                'sanitize_callback' => $sanitize_callback,
    412412                        ) );
    413                        
     413
    414414                        ////////// cycle through and add appropriate control types
    415415                        switch ($opt['type']): // control selector
    416                                 case 'text': 
    417                                 case 'number': 
    418                                 case 'url': case 'tel': case 'email': case 'search:': case 'time': case 'date': case 'datetime': case 'week':                           
     416                                case 'text':
     417                                case 'number':
     418                                case 'url': case 'tel': case 'email': case 'search:': case 'time': case 'date': case 'datetime': case 'week':
    419419                                case 'textarea':
    420420                                case 'checkbox':
    … …  
    440440                                        ) );
    441441                                        break;
    442                                 case 'radio': 
     442                                case 'radio':
    443443                                case 'select':
    444444                                        if (empty($opt['labels'])) $opt['labels'] = $opt['values'];
    … …  
    453453                                        ) );
    454454                                        break;
    455                                 case 'range': 
     455                                case 'range':
    456456                                        $wp_customize->add_control( $opid, array(
    457457                                                'label'         => $opt['label'],
    … …  
    462462                                                'priority'      => (isset($opt['priority'])?$opt['priority']:2),
    463463                                                'input_attrs' => array( 'min' => $opt['min'], 'max' => $opt['max'], 'step' => (isset($opt['step'])?$opt['step']:10) ),
    464                                         ) );                                   
    465                                         break; 
    466                                 case 'slider': 
     464                                        ) );
     465                                        break;
     466                                case 'slider':
    467467                                        $wp_customize->add_control(  new Cryout_Customize_Slider_Control( $wp_customize, $opid, array(
    468468                                                'label'         => $opt['label'],
    … …  
    472472                                                'type'          => $opt['type'],
    473473                                                'priority'      => (isset($opt['priority'])?$opt['priority']:2),
    474                                                 'input_attrs' => array( 
    475                                                                         'min' => $opt['min'], 
    476                                                                         'max' => $opt['max'], 
     474                                                'input_attrs' => array(
     475                                                                        'min' => $opt['min'],
     476                                                                        'max' => $opt['max'],
    477477                                                                        'step' => (isset($opt['step'])?$opt['step']:10),
    478                                                                         'um' => (isset($opt['um'])?$opt['um']:'') 
     478                                                                        'um' => (isset($opt['um'])?$opt['um']:'')
    479479                                                                        ),
    480                                         ) ) );                                 
    481                                         break; 
    482                                 case 'slidertwo': 
     480                                        ) ) );
     481                                        break;
     482                                case 'slidertwo':
    483483                                        $wp_customize->add_control(  new Cryout_Customize_SliderTwo_Control( $wp_customize, $opid, array(
    484484                                                'label'         => $opt['label'],
    … …  
    488488                                                'type'          => $opt['type'],
    489489                                                'priority'      => (isset($opt['priority'])?$opt['priority']:2),
    490                                                 'input_attrs' => array( 
    491                                                                         'min' => $opt['min'], 
    492                                                                         'max' => $opt['max'], 
     490                                                'input_attrs' => array(
     491                                                                        'min' => $opt['min'],
     492                                                                        'max' => $opt['max'],
    493493                                                                        'step' => (isset($opt['step'])?$opt['step']:10),
    494494                                                                        'total' => (isset($opt['total'])?$opt['total']:0),
    495                                                                         'um' => (isset($opt['um'])?$opt['um']:'') 
     495                                                                        'um' => (isset($opt['um'])?$opt['um']:'')
    496496                                                                        ),
    497                                         ) ) );                                 
    498                                         break; 
    499                                 case 'radioimage': 
     497                                        ) ) );
     498                                        break;
     499                                case 'radioimage':
    500500                                        $wp_customize->add_control( new Cryout_Customize_RadioImage_Control( $wp_customize, $opid, array(
    501501                                                'label'         => $opt['label'],
    … …  
    503503                                                'section'       => $opt['section'],
    504504                                                'settings'      => $opid,
    505                                                 'type'          => $opt['type'],                                               
     505                                                'type'          => $opt['type'],
    506506                                                'priority'      => (isset($opt['priority'])?$opt['priority']:2),
    507507                                                'choices'       => (isset($opt['choices'])?$opt['choices']:array_combine($opt['values'],$opt['labels']))
    508                                         ) ) );                         
     508                                        ) ) );
    509509                                        break;
    510510                                case 'color':
    … …  
    514514                                                'section'       => $opt['section'],
    515515                                                'priority'      => (isset($opt['priority'])?$opt['priority']:2),
    516                                         ) ) );                         
     516                                        ) ) );
    517517                                        break;
    518518                                case 'font':
    … …  
    522522                                                'section'       => $opt['section'],
    523523                                                'priority'      => (isset($opt['priority'])?$opt['priority']:2),
    524                                         ) ) );                         
     524                                        ) ) );
    525525                                        break;
    526526                                case 'media-image':
    … …  
    542542                                        break;
    543543                                case 'blank':
    544                                 default: 
     544                                default:
    545545                                        $wp_customize->add_control( new Cryout_Customize_Blank_Control( $wp_customize, $opid, array(
    546546                                                'label'         => $opt['label'],
    … …  
    549549                                                'settings'      => $opid,
    550550                                                'priority'      => (isset($opt['priority'])?$opt['priority']:2),
    551                                         ) ) ); 
    552                                         break;
    553                         endswitch; 
    554                 endforeach;             
     551                                        ) ) );
     552                                        break;
     553                        endswitch;
     554                endforeach;
    555555                ////////// end options sections
    556                
     556
    557557        } // register()
    558  
     558
    559559} // class Cryout_Customizer
    560560
  • verbosa/0.9.2/cryout/prototypes.php

    r357746 r357746  
    1010function cryout_get_theme_options($sub=''){
    1111        $opts = array();
    12         if ( function_exists( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_options') ) $opts = call_user_func( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME) . '_get_theme_options' ); 
     12        if ( function_exists( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_options') ) $opts = call_user_func( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME) . '_get_theme_options' );
    1313        if ( !empty($sub) && !empty($opts[$sub]) ) return $opts[$sub];
    1414                                              else return $opts;
    … …  
    2020function cryout_get_theme_structure($sub=''){
    2121        $opts = array();
    22         if ( function_exists( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_structure' ) ) $opts = call_user_func( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_structure' ); 
     22        if ( function_exists( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_structure' ) ) $opts = call_user_func( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_structure' );
    2323        if ( !empty($sub) && !empty($opts[$sub]) ) return $opts[$sub];
    2424                                              else return $opts;
    … …  
    3333//      if ( !empty($cryout_theme_options) ):  // OPTIMIZATION DISABLED DUE TO CUSTOMIZER / CACHING ISSUE
    3434                // get options from global options array
    35 //              $opts = $cryout_theme_options; 
    36 //      else: 
     35//              $opts = $cryout_theme_options;
     36//      else:
    3737                // no global options array; re-read options from db
    3838                $opts = cryout_get_theme_options();
    … …  
    6060 */
    6161function cryout_is_true( $key ){
    62         if ( in_array( strtolower($key), array( true, 1, "1" , 'enabled', 'enable', 'show' ) ) ) return true; 
     62        if ( in_array( strtolower($key), array( true, 1, "1" , 'enabled', 'enable', 'show' ) ) ) return true;
    6363        return false;
    6464}
    … …  
    8181
    8282/**
    83  * 
     83 *
    8484 */
    8585function cryout_optset($var,$val1,$val2='',$val3='',$val4=''){
    … …  
    8888} // cryout_optset()
    8989
    90 /** 
     90/**
    9191 * Converts hex colour code to RGB series to be used in a rgba() CSS colour definition
    92  */ 
     92 */
    9393function cryout_hex2rgb($hex) {
    9494   $hex = str_replace("#", "", $hex);
    … …  
    125125           $b = hexdec(substr($hex,4,2));
    126126        }
    127                
     127
    128128                $rgb_array = array($r,$g,$b);
    129129                $newhex="#";
    130130                foreach ($rgb_array as $el) {
    131131                        $el+=$inc;
    132                         if ($el<=0) { $el='00'; } 
    133                         elseif ($el>=255) {$el='ff';} 
     132                        if ($el<=0) { $el='00'; }
     133                        elseif ($el>=255) {$el='ff';}
    134134                        else {$el=dechex($el);}
    135135                        if(strlen($el)==1)  {$el='0'.$el;}
    … …  
    146146 */
    147147function cryout_hexdiff($hex,$inc,$f='') {
    148    // $f = '-' | '+' 
     148   // $f = '-' | '+'
    149149   $hex = str_replace("#", "", $hex);
    150150   if (preg_match("/^([a-f0-9]{3}|[a-f0-9]{6})$/i",$hex)):
    … …  
    158158           $b = hexdec(substr($hex,4,2));
    159159        }
    160                
     160
    161161                $rgb_array = array($r,$g,$b);
    162162                $newhex="#";
    163                
    164                 // guess decimal lightness 
     163
     164                // guess decimal lightness
    165165                if ( ((int)$r < 102) && ((int)$g < 102) && ((int)$b < 102) ) $sign = +1; else $sign = -1;
    166                
     166
    167167                // forced sign handling
    168168                if (!empty($f)) $sign = ($f == '-'? -1 : +1);
    169                
     169
    170170                foreach ($rgb_array as $el) {
    171171                        $el += $sign * (int)$inc;
    172                         if ( $el<0 ) { $el='00'; } 
    173                         elseif ( $el>255 ) { $el='ff'; } 
     172                        if ( $el<0 ) { $el='00'; }
     173                        elseif ( $el>255 ) { $el='ff'; }
    174174                        else { $el = dechex($el); }
    175175                        if ( strlen($el)==1 ) { $el='0'.$el; }
    … …  
    182182} // cryout_hexdiff()
    183183
    184 /** 
    185  *      Returns the cleaned up Google font name to be displayed in the font list and used in custom styling 
     184/**
     185 *      Returns the cleaned up Google font name to be displayed in the font list and used in custom styling
    186186 */
    187187function cryout_clean_gfont( $font, $identifier = '(:\d+)?\/gfont$' ){
    … …  
    189189} // cryout_clean_gfont()
    190190
    191 /** 
     191/**
    192192 *      Returns the correct Google font name style to be used in the frontend
    193193 *  based on the configured font identifier
    … …  
    197197        if ( !empty($gfont) ):
    198198                $fontname = esc_attr( preg_replace( '/[:&].*/', '', preg_replace( '/\+/', ' ', $gfont ) ) );
    199                 if (preg_match('/:(\d{1,4})/',$gfont,$ms)) $weight = $ms[1]; 
    200                 return "'$fontname'" . ( !empty($weight) ? ";font-weight:$weight" : "");               
     199                if (preg_match('/:(\d{1,4})/',$gfont,$ms)) $weight = $ms[1];
     200                return "'$fontname'" . ( !empty($weight) ? ";font-weight:$weight" : "");
    201201        else:
    202202                return "$font";
    … …  
    211211                case 2: // for custom styling  DEPRECATED
    212212//                      $fontname = esc_attr( preg_replace( '/[:&].*/', '', preg_replace( '/\+/', ' ',$gfont ) ) );
    213 //                      if (preg_match('/:(\d{1,4})/',$gfont,$ms)) $weight = $ms[1]; 
     213//                      if (preg_match('/:(\d{1,4})/',$gfont,$ms)) $weight = $ms[1];
    214214//                      return "'$fontname'" . ( !empty($weight) ? ";font-weight:$weight" : "");
    215215                break;
    216216                case 1: // for font enqueuing
    217                 default: 
    218                         return esc_attr(preg_replace( '/\s+/', '+',$gfont)); 
     217                default:
     218                        return esc_attr(preg_replace( '/\s+/', '+',$gfont));
    219219                break;
    220220        } // switch
    … …  
    239239        if ($attachments) {
    240240                foreach($attachments as $attachment) {
    241                         $image_attributes = wp_get_attachment_image_src( $attachment->ID, $size ) ? 
    242                                                                 wp_get_attachment_image_src( $attachment->ID, $size ) : 
     241                        $image_attributes = wp_get_attachment_image_src( $attachment->ID, $size ) ?
     242                                                                wp_get_attachment_image_src( $attachment->ID, $size ) :
    243243                                                                wp_get_attachment_image_src( $attachment->ID );
    244244                        return $image_attributes[0];
    … …  
    248248
    249249/**
    250  * Outputs inline background image styling 
     250 * Outputs inline background image styling
    251251 * Used by the header image and post featured images
    252252 */
    253253function cryout_echo_bgimage( $image_url, $classes = NULL ) {
    254         echo ' style="background-image: url(' . $image_url . ')" ';     
     254        echo ' style="background-image: url(' . esc_url( $image_url ). ')" ';
    255255        if (!empty($classes)):
    256256                if (is_array($classes)) $classes = implode( ' ', $classes );
    257                 echo ' class="' . $classes . '" ';     
     257                echo ' class="' . $classes . '" ';
    258258        endif;
    259259}; // cryout_echo_bgimage()
    260260
    261 /** 
    262 * Retrieves the IDs for images in a gallery. 
    263 * Returns array list of image IDs from the post gallery. 
    264 */ 
    265 function cryout_get_gallery_images() { 
    266        $images = array(); 
    267 
    268        if ( function_exists( 'get_post_galleries' ) ) { 
    269                $galleries = get_post_galleries( get_the_ID(), false ); 
    270                if ( isset( $galleries[0]['ids'] ) ) 
    271                        $images = explode( ',', $galleries[0]['ids'] ); 
    272        } else { 
    273                $pattern = get_shortcode_regex(); 
    274                preg_match( "/$pattern/s", get_the_content(), $match ); 
    275                $atts = shortcode_parse_atts( $match[3] ); 
    276                if ( isset( $atts['ids'] ) ) 
    277                        $images = explode( ',', $atts['ids'] ); 
    278        } 
    279 
    280        if ( ! $images ) { 
    281                $images = get_posts( array( 
    282                        'fields'         => 'ids', 
    283                        'numberposts'    => 999, 
    284                        'order'          => 'ASC', 
    285                        'orderby'        => 'none', 
    286                        'post_mime_type' => 'image', 
    287                        'post_parent'    => get_the_ID(), 
    288                        'post_type'      => 'attachment', 
    289                ) ); 
    290        } 
    291 
    292        return $images; 
     261/**
     262* Retrieves the IDs for images in a gallery.
     263* Returns array list of image IDs from the post gallery.
     264*/
     265function cryout_get_gallery_images() {
     266       $images = array();
     267
     268       if ( function_exists( 'get_post_galleries' ) ) {
     269               $galleries = get_post_galleries( get_the_ID(), false );
     270               if ( isset( $galleries[0]['ids'] ) )
     271                       $images = explode( ',', $galleries[0]['ids'] );
     272       } else {
     273               $pattern = get_shortcode_regex();
     274               preg_match( "/$pattern/s", get_the_content(), $match );
     275               $atts = shortcode_parse_atts( $match[3] );
     276               if ( isset( $atts['ids'] ) )
     277                       $images = explode( ',', $atts['ids'] );
     278       }
     279
     280       if ( ! $images ) {
     281               $images = get_posts( array(
     282                       'fields'         => 'ids',
     283                       'numberposts'    => 999,
     284                       'order'          => 'ASC',
     285                       'orderby'        => 'none',
     286                       'post_mime_type' => 'image',
     287                       'post_parent'    => get_the_ID(),
     288                       'post_type'      => 'attachment',
     289               ) );
     290       }
     291
     292       return $images;
    293293} // cryout_get_gallery_images()
    294294
  • verbosa/0.9.2/functions.php

    r357746 r357746  
    1111// variables for theme identification - do NOT edit unless you know what you are doing
    1212define ("_CRYOUT_THEME_NAME", "verbosa");
    13 define ("_CRYOUT_THEME_VERSION", "0.9.1");
     13define ("_CRYOUT_THEME_VERSION", "0.9.2");
    1414
    1515require_once(get_template_directory() . "/admin/main.php");             // Admin side
  • verbosa/0.9.2/header.php

    r357746 r357746  
    1414        <link rel="profile" href="http://gmpg.org/xfn/11">
    1515        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    16         <!--[if lt IE 9]>
    17         <script src="<?php echo get_template_directory_uri() . '/resources/js/html5shiv.min.js' ?>"></script>
    18         <![endif]-->
    1916        <?php
    2017                cryout_header_hook();
    … …  
    2926<?php cryout_main_hook(); ?>
    3027<?php cryout_breadcrumbs_hook();?>
    31 
  • verbosa/0.9.2/includes/core.php

    r357746 r357746  
    1212if ( ! function_exists( 'verbosa_header_image' ) ) :
    1313function verbosa_header_image() {
    14         if (get_header_image() != '') { 
     14        if (get_header_image() != '') {
    1515                $header_image = get_header_image();
    1616        }
    17        
     17
    1818        if ( !empty($header_image) ):?>
    1919                <?php cryout_header_widget_hook(); ?>
    20                 <img class="header-image" alt="" src="<?php echo $header_image; ?>" />
     20                <img class="header-image" alt="" src="<?php echo esc_url( $header_image ) ?>" />
    2121        <?php endif;
    2222} // verbosa_header_image()
    … …  
    2828*/
    2929if ( ! function_exists( 'verbosa_title_and_description' ) ) :
    30 function verbosa_title_and_description() { 
     30function verbosa_title_and_description() {
    3131
    3232        $verbosas = cryout_get_option( array('verbosa_logoupload','verbosa_siteheader') );
    3333        echo '<div class="identity">';
    3434        if ( in_array($verbosas['verbosa_siteheader'], array( 'logo', 'both' ) ) ) {
    35                 echo verbosa_logo_helper($verbosas['verbosa_logoupload']); 
     35                echo verbosa_logo_helper($verbosas['verbosa_logoupload']);
    3636        }
    3737        if ( in_array($verbosas['verbosa_siteheader'], array('title', 'both') ) ) {
    3838                $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div';
    3939                echo '<' . $heading_tag . cryout_schema_microdata('site-title', 0) . ' id="site-title">';
    40                 echo '<span> <a href="' . esc_url( home_url( '/' ) ) . '"  rel="home">' . get_bloginfo( 'name' ) . '</a> </span>';
     40                echo '<span> <a href="' . esc_url( home_url( '/' ) ) . '"  rel="home">' . esc_attr( get_bloginfo( 'name' ) ) . '</a> </span>';
    4141                echo '</' . $heading_tag . '>';
    42                 echo '<span id="site-description" ' . cryout_schema_microdata('site-description', 0) . ' >' . get_bloginfo( 'description' ) . '</span>';
     42                echo '<span id="site-description" ' . cryout_schema_microdata('site-description', 0) . ' >' . esc_attr( get_bloginfo( 'description' ) ) . '</span>';
    4343        }
    44        
     44
    4545        echo '</div>';
    4646} // verbosa_title_and_description()
    … …  
    4848add_action ('cryout_branding_hook', 'verbosa_title_and_description');
    4949
    50 function verbosa_logo_helper($verbosa_logo) { 
    51             if ( function_exists( 'the_custom_logo' ) ) { 
    52                 // WP 4.5+ 
    53                 $wp_logo = str_replace('class="custom-logo-link"','id="logo" class="custom-logo-link"', get_custom_logo()); 
    54                 if (!empty($wp_logo) ) return $wp_logo; 
    55             } else { 
    56                 // older WP 
    57                 if ( !empty($verbosa_logo) ) : 
    58                     $img = wp_get_attachment_image_src($verbosa_logo, 'full'); 
     50function verbosa_logo_helper($verbosa_logo) {
     51            if ( function_exists( 'the_custom_logo' ) ) {
     52                // WP 4.5+
     53                $wp_logo = str_replace('class="custom-logo-link"','id="logo" class="custom-logo-link"', get_custom_logo());
     54                if (!empty($wp_logo) ) return $wp_logo;
     55            } else {
     56                // older WP
     57                if ( !empty($verbosa_logo) ) :
     58                    $img = wp_get_attachment_image_src($verbosa_logo, 'full');
    5959                    return '<a id="logo" href="'.esc_url( home_url( '/' ) ).'" >
    60                                                         <img title="'.get_bloginfo( 'name' ).'" alt="'.get_bloginfo( 'name' ).'" src="' . $img[0] . '" />
    61                                                 </a>'; 
    62                 endif; 
    63             }   
    64             return ''; 
    65 } // verbosa_logo_helper() 
     60                                                        <img title="'.get_bloginfo( 'name' ).'" alt="'.get_bloginfo( 'name' ).'" src="' . esc_url( $img[0] ) . '" />
     61                                                </a>';
     62                endif;
     63            }
     64            return '';
     65} // verbosa_logo_helper()
    6666
    6767/**
    … …  
    7373        echo '<div id="toTop"><i class="icon-back2top"></i> </div>';
    7474} // verbosa_back_top()
    75 endif; 
     75endif;
    7676add_action ('cryout_footer_hook', 'verbosa_back_top');
    7777
    … …  
    8585        $pagination = cryout_get_option('verbosa_pagination');
    8686        if ($pagination && function_exists( 'the_posts_pagination' ) ):
    87                 the_posts_pagination( array( 
    88                         'prev_text' => '<i class="icon-arrow-left2"></i>', 
     87                the_posts_pagination( array(
     88                        'prev_text' => '<i class="icon-arrow-left2"></i>',
    8989                        'next_text' => '<i class="icon-arrow-right2"></i>',
    9090                        'mid_size' => $range
    91                 ) );     
     91                ) );
    9292        else:
    9393                //posts_nav_link();
    9494                verbosa_content_nav( 'nav-old-below' );
    9595        endif;
    96      
     96
    9797} // verbosa_pagination()
    9898endif;
    9999
    100100/**
    101  * 
     101 *
    102102 */
    103103if ( ! function_exists( 'verbosa_nextpage_links' ) ) :
    … …  
    118118 */
    119119add_action('cryout_master_footer_hook', 'verbosa_master_footer');
    120 function verbosa_master_footer() { 
     120function verbosa_master_footer() {
    121121        do_action('cryout_footer_hook');
    122         echo '<div id="site-copyright">' . cryout_get_option( 'verbosa_copyright' ) . '</div>';
    123         echo '<div style="display:block;float:none;clear: both;font-size:.85em; text-align: center;">' . __("Powered by","verbosa") . 
    124                 '<a target="_blank" href="' . esc_url("http://www.cryoutcreations.eu") . '" title="';
    125         echo 'Verbosa Theme by ' . 'Cryout Creations"> ' . 'Verbosa' .'</a> &amp; <a target="_blank" href="' . esc_url("http://wordpress.org/");
    126         echo '" title="' . esc_attr("Semantic Personal Publishing Platform", "verbosa") . '"> ' . sprintf( " %s.", "WordPress" ) . '</a></div>';
     122        echo '<div id="site-copyright">' . wp_kses_post( cryout_get_option( 'verbosa_copyright' ) ). '</div>';
     123        echo '<div style="display:block;float:none;clear: both;font-size:.85em; text-align: center;">' . __("Powered by","verbosa") .
     124                '<a target="_blank" href="' . "https://www.cryoutcreations.eu" . '" title="';
     125        echo esc_attr__( 'Verbosa Theme by', 'verbosa') . ' Cryout Creations"> ' . 'Verbosa' .'</a> &amp; <a target="_blank" href="' . "http://wordpress.org/";
     126        echo '" title="' . esc_attr__( "Semantic Personal Publishing Platform", "verbosa" ) . '"> ' . sprintf( " %s.", "WordPress" ) . '</a></div>';
    127127}
    128128
    … …  
    131131function verbosa_header_section() { ?>
    132132        <div id="sidebar">
    133                
     133
    134134                <header id="header" <?php cryout_schema_microdata('header') ?>>
    135                         <nav id="mobile-menu"> 
     135                        <nav id="mobile-menu">
    136136                                <span id="nav-cancel"><i class="icon-cross"></i></span>
    137137                                <?php cryout_mobilemenu_hook(); ?>
    … …  
    146146                                        <?php cryout_access_hook();?>
    147147                                </nav><!-- #access -->
    148                                
     148
    149149                        </div><!-- #branding -->
    150150                </header><!-- #header -->
    151                
     151
    152152                <?php get_sidebar('right'); ?>
    153153                <?php cryout_master_footer_hook(); ?>
    154                
     154
    155155                </div><!--sidebar-->
    156156                <div id="sidebar-back"></div>
    … …  
    161161function verbosa_get_layout_class() {
    162162        $verbosa_sitelayout = cryout_get_option( 'verbosa_sitelayout' );
    163        
     163
    164164        /*  If page template, return the page template's layout */
    165165        global $verbosa_template_layout;
    166166        if (isset($verbosa_template_layout)) return $verbosa_template_layout;
    167        
     167
    168168        /*  If not, return the general layout */
    169169        switch($verbosa_sitelayout) {
    … …  
    177177
    178178
    179 /** 
    180 * Checks the browser agent string for mobile ids and adds "mobile" class to body if true 
    181 * @return array list of classes. 
    182 */ 
    183 function verbosa_mobile_body_class($classes){ 
    184         $browser = (!empty($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:''); 
    185         $keys = 'mobile|android|mobi|tablet|ipad|opera mini|series 60|s60|blackberry'; 
    186         if (preg_match("/($keys)/i",$browser)): $classes[] = 'mobile'; endif; // mobile browser detected 
    187         return $classes; 
     179/**
     180* Checks the browser agent string for mobile ids and adds "mobile" class to body if true
     181* @return array list of classes.
     182*/
     183function verbosa_mobile_body_class($classes){
     184        $browser = (!empty($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:'');
     185        $keys = 'mobile|android|mobi|tablet|ipad|opera mini|series 60|s60|blackberry';
     186        if (preg_match("/($keys)/i",$browser)): $classes[] = 'mobile'; endif; // mobile browser detected
     187        return $classes;
    188188} // verbosa_mobile_body_class()
    189189add_filter('body_class', 'verbosa_mobile_body_class');
    … …  
    198198
    199199        $verbosas = cryout_get_option( 'verbosa_frontpage' );
    200        
     200
    201201        $separator = '<i class="icon-ctrl-right"></i>';         // separator between crumbs
    202         $home = '<a href="'.home_url().'" title="'.__('Home','verbosa').'"><i class="icon-home"></i></a>'; // text for the 'Home' link
     202        $home = '<a href="'. esc_url( home_url() ).'" title="'.__('Home','verbosa').'"><i class="icon-home"></i></a>'; // text for the 'Home' link
    203203        $showCurrent = 1;                                                                       // whether to show current post/page title in breadcrumbs
    204204        $before = '<span class="current">';                             // tag before the current crumb
    205205        $after = '</span>';                                                             // tag after the current crumb
    206  
     206
    207207        global $post;
    208         $homeLink = home_url();
     208        $homeLink = esc_url( home_url() );
    209209        if ( is_front_page() ) { return; }      // don't display breadcrumbs on the homepage (yet)
    210  
     210
    211211        // let's begin
    212212        echo '<div id="breadcrumbs-container" class="' . verbosa_get_layout_class() . '"><div id="breadcrumbs"> <nav id="breadcrumbs-nav" ' . cryout_schema_microdata('breadcrumbs', 0) . '>' . $home . $separator . ' ';
    213  
     213
    214214    if ( is_category() ) {
    215215                // category section
    216                 $thisCat = get_category(get_query_var('cat'), false);
    217                 if (!empty($thisCat->parent)) echo get_category_parents($thisCat->parent, TRUE, ' ' . $separator . ' ');
     216                $queried_object = get_queried_object();
     217                $cat_parents = $queried_object->category_parent;
     218
     219                if ( !empty( $cat_parents ) ) echo get_category_parents( $cat_parents, TRUE, ' ' . $separator . ' ');
    218220                echo $before . __('Archive for category','verbosa').' "' . single_cat_title('', false) . '"' . $after;
    219221    } elseif ( is_search() ) {
    … …  
    222224    } elseif ( is_day() ) {
    223225                // daily archive
    224                 echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $separator . ' ';
    225                 echo '<a href="' . get_month_link(get_the_time('Y'),get_the_time('m')) . '">' . get_the_time('F') . '</a> ' . $separator . ' ';
     226                echo '<a href="' . esc_url( get_year_link( get_the_time('Y') ) ) . '">' . get_the_time('Y') . '</a> ' . $separator . ' ';
     227                echo '<a href="' . esc_url( get_month_link( get_the_time('Y'), get_the_time('m') ) ) . '">' . get_the_time('F') . '</a> ' . $separator . ' ';
    226228                echo $before . get_the_time('d') . $after;
    227229    } elseif ( is_month() ) {
    228230                // monthly archive
    229                 echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $separator . ' ';
     231                echo '<a href="' .  esc_url( get_year_link( get_the_time('Y') ) ) . '">' . get_the_time('Y') . '</a> ' . $separator . ' ';
    230232                echo $before . get_the_time('F') . $after;
    231233    } elseif ( is_year() ) {
    … …  
    255257                $cat = get_the_category($parent->ID); if (isset($cat[0])) {$cat = $cat[0];} else {$cat=false;}
    256258                if ($cat) echo get_category_parents($cat, TRUE, ' ' . $separator . ' ');
    257                 echo '<a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a>';
     259                echo '<a href="' . esc_url( get_permalink($parent) ) . '">' . $parent->post_title . '</a>';
    258260                if ($showCurrent) echo ' ' . $separator . ' ' . $before . get_the_title() . $after;
    259261    } elseif ( is_page() && !$post->post_parent ) {
    … …  
    266268                while ($parent_id) {
    267269                        $page = get_page($parent_id);
    268                         $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>';
     270                        $breadcrumbs[] = '<a href="' . esc_url( get_permalink($page->ID) ) . '">' . get_the_title($page->ID) . '</a>';
    269271                        $parent_id  = $page->post_parent;
    270272                }
    … …  
    279281                echo $before . __('Posts tagged','verbosa').' "' . single_tag_title('', false) . '"' . $after;
    280282    } elseif ( is_author() ) {
    281                 // author archive 
     283                // author archive
    282284                global $author;
    283285                $userdata = get_userdata($author);
    … …  
    287289                echo $before . __('Not Found','verbosa') . $after;
    288290    }
    289  
     291
    290292    if ( get_query_var('paged') ) {
    291293      if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ' (';
    … …  
    293295      if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ')';
    294296    }
    295  
     297
    296298    echo '</nav></div></div><!-- breadcrumbs -->';
    297299} // verbosa_breadcrumbs()
    298 endif; 
     300endif;
    299301
    300302
    … …  
    306308if ( ! function_exists( 'cryout_schema_microdata' ) ) :
    307309function cryout_schema_microdata($location = '', $echo = 1) {
    308        
     310
    309311        $output = '';
    310        
     312
    311313        switch ($location) {
    312        
     314
    313315                case 'body':
    314316                        $output = 'itemscope="itemscope" itemtype="http://schema.org/WebPage"';
    315317                break;
    316                
     318
    317319                case 'header':
    318320                        $output = 'itemscope="itemscope" itemtype="http://schema.org/WPHeader"';
    319321                break;
    320                
     322
    321323                case 'main':
    322324                        $output = 'itemscope="itemscope" itemtype="http://schema.org/Blog"';
    323325                break;
    324                
     326
    325327                case 'element':
    326328                        $output = 'itemscope="itemscope" itemtype="http://schema.org/WebPageElement"';
    327329                break;
    328                
     330
    329331                case 'sidebar':
    330332                        $output = 'itemscope="itemscope" itemtype="http://schema.org/WPSideBar"';
    331333                break;
    332                
     334
    333335                case 'footer':
    334336                        $output = 'itemscope="itemscope" itemtype="http://schema.org/WPFooter"';
    335337                break;
    336                
     338
    337339                case 'breadcrumbs':
    338340                        $output = 'itemprop="breadcrumb"';
    339341                break;
    340                
     342
    341343                case 'menu':
    342344                        $output = 'itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"';
    343345                break;
    344                
    345                
    346                 /* SITE HEADER */               
     346
     347
     348                /* SITE HEADER */
    347349                case 'site-title':
    348350                        $output = 'itemprop="headline"';
    349351                break;
    350                
     352
    351353                case 'site-description':
    352354                        $output = 'itemprop="description"';
    353355                break;
    354                
    355                
    356                 /* MAIN CONTENT - BLOG */               
     356
     357
     358                /* MAIN CONTENT - BLOG */
    357359                case 'article':
    358360                        $output = 'itemscope="itemscope" itemtype="http://schema.org/BlogPosting" itemprop="blogPost"';
    359361                break;
    360                
     362
    361363                case 'page':
    362364                        $output = 'itemscope="itemscope" itemtype="http://schema.org/CreativeWork"';
    363365                break;
    364                
     366
    365367                case 'entry-title':
    366368                        $output = 'itemprop="headline"';
    367369                break;
    368                
     370
    369371                case 'url':
    370372                        $output = 'itemprop="url"';
    371373                break;
    372                
     374
    373375                case 'entry-summary':
    374376                        $output = 'itemprop="description"';
    375377                break;
    376                
     378
    377379                case 'entry-content':
    378380                        $output = 'itemprop="articleBody"';
    379381                break;
    380                
     382
    381383                case 'text':
    382384                        $output = 'itemprop="text"';
    383385                break;
    384                
     386
    385387                case 'comment':
    386388                        $output = 'itemscope="itemscope" itemtype="http://schema.org/Comment"';
    387389                break;
    388                
     390
    389391                case 'comment-author':
    390392                        $output = 'itemscope="itemscope" itemtype="http://schema.org/Person" itemprop="creator"';
    391393                break;
    392                
    393                
    394                 /* POST META */         
     394
     395
     396                /* POST META */
    395397                case 'author':
    396398                        $output = 'itemscope="itemscope" itemtype="http://schema.org/Person" itemprop="author"';
    397399                break;
    398                
     400
    399401                case 'author-url':
    400402                        $output = 'itemprop="url"';
    401403                break;
    402                
     404
    403405                case 'author-name':
    404406                        $output = 'itemprop="name"';
    405407                break;
    406                
     408
    407409                case 'author-description':
    408410                        $output = 'itemprop="description"';
    409411                break;
    410                
     412
    411413                case 'time':
    412414                        $output = 'itemprop="datePublished"';
    413415                break;
    414                
     416
    415417                case 'time-modified':
    416418                        $output = 'itemprop="dateModified"';
    417419                break;
    418                
     420
    419421                case 'category':
    420422                        $output = '';
    421423                break;
    422                
     424
    423425                case 'tags':
    424426                        $output = 'itemprop="keywords"';
    425427                break;
    426                
     428
    427429                case 'comment-meta':
    428430                        $output = 'itemprop="discussionURL"';
    429431                break;
    430                
     432
    431433                case 'image':
    432434                        $output = 'itemprop="image"';
    433435                break;
    434                
     436
    435437        } // switch
    436        
     438
    437439        $output = ' ' . $output;
    438         if ($echo) echo $output;               
    439                 else return $output; 
    440                
     440        if ($echo) echo $output;
     441                else return $output;
     442
    441443} // cryout_schema_microdata
    442 endif; 
    443 
    444 /** 
     444endif;
     445
     446/**
    445447* Master hook to bypass customizer options
    446 */ 
     448*/
    447449if ( ! function_exists( 'cryout_master_hook' ) ) :
    448450function cryout_master_hook(){
    … …  
    458460        );
    459461        if ( $verbosa_interim_options['verbosa_breadcrumbs'] )  add_action('cryout_before_content_hook', 'verbosa_breadcrumbs');
    460        
     462
    461463        if ( $verbosa_interim_options['verbosa_comlabels'] == 1) {
    462464                add_filter('comment_form_default_fields', 'verbosa_comments_form');
    463465                add_filter('comment_form_field_comment', 'verbosa_comments_form_textarea');
    464466        }
    465        
     467
    466468        if ( $verbosa_interim_options['verbosa_socials_header_above'] ) add_action('cryout_branding_hook', 'verbosa_socials_menu_header_above', 5);
    467469        if ( $verbosa_interim_options['verbosa_socials_header_below'] ) add_action('cryout_branding_hook', 'verbosa_socials_menu_header_below', 30);
    468         if ( $verbosa_interim_options['verbosa_socials_sidebar'] ) add_action('cryout_footer_hook', 'verbosa_socials_menu_footer', 17); 
    469        
    470 }; 
     470        if ( $verbosa_interim_options['verbosa_socials_sidebar'] ) add_action('cryout_footer_hook', 'verbosa_socials_menu_footer', 17);
     471
     472};
    471473endif;
    472474add_action('wp', 'cryout_master_hook');
  • verbosa/0.9.2/includes/loop.php

    r357746 r357746  
    1 <?php 
     1<?php
    22/**
    33 * Loop related functions
    … …  
    1111 */
    1212function verbosa_excerpt_length_words( $length ) {
    13         return cryout_get_option('verbosa_excerptlength');
     13        return absint( cryout_get_option('verbosa_excerptlength') );
    1414}
    1515/**
    … …  
    2424function verbosa_continue_reading_link() {
    2525        $verbosa_excerptcont = cryout_get_option('verbosa_excerptcont');
    26         return '<a class="continue-reading-link" href="'. get_permalink() . '"><span>' . $verbosa_excerptcont . '</span><i class="icon-arrow-right2"></i></a>';
     26        return '<a class="continue-reading-link" href="'. esc_url( get_permalink() ) . '"><span>' . wp_kses_post( $verbosa_excerptcont ) . '</span><i class="icon-arrow-right2"></i></a>';
    2727}
    2828
    … …  
    3030add_action( 'cryout_post_excerpt_hook', 'verbosa_custom_excerpt_more',10 );
    3131add_filter( 'the_content_more_link', 'verbosa_continue_reading_link' ); // 'More' tag
    32  
     32
    3333
    3434/**
    … …  
    3636 */
    3737function verbosa_auto_excerpt_more( $more ) {
    38         return cryout_get_option('verbosa_excerptdots');
     38        return wp_kses_post( cryout_get_option( 'verbosa_excerptdots' ) );
    3939}
    4040add_filter( 'excerpt_more', 'verbosa_auto_excerpt_more' );
    … …  
    6767
    6868/**
    69  * Posted in category 
     69 * Posted in category
    7070 */
    7171if ( ! function_exists( ' verbosa_posted_category ') ) :
    7272function verbosa_posted_category() {
    7373        $verbosa_meta_category = cryout_get_option( 'verbosa_meta_category' );
    74        
    75         if ($verbosa_meta_category && get_the_category_list()) { 
     74
     75        if ($verbosa_meta_category && get_the_category_list()) {
    7676                echo '<span class="bl_categ"' . cryout_schema_microdata('category', 0) . '>
    7777                                        <i class="icon-books icon-metas" title="'.__("Categories", "verbosa").'"></i>'
    78                                         . get_the_category_list( ' / ' ) . 
     78                                        . get_the_category_list( ' / ' ) .
    7979                                '</span>';
    8080        }
    8181} // verbosa_posted_category()
    82 endif; 
     82endif;
    8383
    8484/**
    … …  
    9797                                </a>
    9898                        </span>',
    99                         get_author_posts_url( get_the_author_meta( 'ID' ) ),
     99                        esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    100100                        sprintf( esc_attr__( 'View all posts by %s', 'verbosa' ), get_the_author() ),
    101101                        get_the_author()
    … …  
    103103        }
    104104} // verbosa_posted_author
    105 endif; 
    106 
    107 /**
    108  * Posted date/time 
     105endif;
     106
     107/**
     108 * Posted date/time
    109109 */
    110110if ( ! function_exists( 'verbosa_posted_meta' ) ) :
    … …  
    113113        $verbosa_meta_time = cryout_get_option( 'verbosa_meta_time' );
    114114
    115         if ($verbosa_meta_date || $verbosa_meta_time ) { 
     115        if ($verbosa_meta_date || $verbosa_meta_time ) {
    116116                $date = ''; $time = '';
    117117                if ($verbosa_meta_date) {       $date = get_the_date(); }
    118118                if ($verbosa_meta_time) {       $time = esc_attr( get_the_time() ); }
    119                
     119
    120120                ?>
    121121
    … …  
    127127                                <time class="updated" datetime="<?php echo get_the_modified_time('c')  ?>" <?php cryout_schema_microdata('time-modified') ?>></time>
    128128                </span>
    129                 <?php                           
    130         }
    131        
     129                <?php
     130        }
     131
    132132}; // verbosa_posted_date()
    133133endif;
    134134
    135135/**
    136  * Posted tags 
     136 * Posted tags
    137137 */
    138138if ( ! function_exists( 'verbosa_posted_meta' ) ) :
    139139function verbosa_posted_tags() {
    140140        $verbosa_meta_tag = cryout_get_option( 'verbosa_meta_tag' );
    141        
     141
    142142        $tag_list = get_the_tag_list( '', ' / ' );
    143143        if ($verbosa_meta_tag && $tag_list) { ?>
    … …  
    149149                <?php
    150150        }
    151        
     151
    152152}; // verbosa_posted_tags()
    153153endif;
    … …  
    158158 */
    159159if ( ! function_exists( 'verbosa_posted_after' ) ) :
    160 function verbosa_posted_after() { 
     160function verbosa_posted_after() {
    161161        edit_post_link( __( 'Edit', 'verbosa' ), '<span class="edit-link icon-metas"><i class="icon-pencil2 icon-metas"></i> ', '</span>' );
    162162        //cryout_post_footer_hook(); /* ?!? */
    163        
     163
    164164}; // verbosa_posted_after()
    165165endif;
    … …  
    179179/* Remove category from rel in category tags */
    180180function verbosa_remove_category_tag( $text ) {
    181         $text = str_replace('rel="category tag"', 'rel="tag"', $text); 
     181        $text = str_replace('rel="category tag"', 'rel="tag"', $text);
    182182        return $text;
    183183}
    … …  
    193193        global $wp_query;
    194194        if ( $wp_query->max_num_pages > 1 ) : ?>
    195        
     195
    196196                <nav id="<?php echo $nav_id; ?>" class="navigation">
    197197                        <span class="nav-previous"><?php next_posts_link( '<i class="icon-arrow-left2"></i>' . __( 'Older posts', 'verbosa' ) ); ?></span>
    198198                        <span class="nav-next"><?php previous_posts_link(__( 'Newer posts', 'verbosa' ) . '<i class="icon-arrow-right2"></i>' ); ?></span>
    199199                </nav><!-- #<?php echo $nav_id; ?> -->
    200                
     200
    201201        <?php endif;
    202202}; // verbosa_content_nav()
    … …  
    206206/**
    207207 * Adds a post thumbnail and if one doesn't exist the first post image is returned
    208  * @uses cryout_get_first_image( $postID ) 
     208 * @uses cryout_get_first_image( $postID )
    209209 */
    210210if ( ! function_exists( 'verbosa_set_featured_thumb' ) ) :
    211211function verbosa_set_featured_thumb() {
    212        
     212
    213213        global $post;
    214214        $verbosas = cryout_get_option( array('verbosa_fpost', 'verbosa_fauto', 'verbosa_falign') );
    215         $featured_image = cryout_post_first_image( $post->ID ); 
    216        
     215        $featured_image = cryout_post_first_image( $post->ID );
     216
    217217        if ( function_exists("has_post_thumbnail") && has_post_thumbnail() && $verbosas['verbosa_fpost']) {
    218218                // has featured image
    219219                $featured_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'verbosa-featured' );
    220                 $featured_image = $featured_image[0];
    221                
     220                $featured_image = esc_url( $featured_image[0] );
     221
    222222        } elseif ( $verbosas['verbosa_fpost'] && $verbosas['verbosa_fauto'] && !empty($featured_image) ) {
    223223                // nothing to do, already got image from inside post
    224                
    225         } else { 
     224
     225        } else {
    226226                // featured image not enabled or not obtainable
    227227                $featured_image = '';
    228228        };
    229        
     229
    230230        if ( !empty($featured_image) ): ?>
    231                 <div class="post-thumbnail-container"> 
     231                <div class="post-thumbnail-container">
    232232                        <?php if (is_single() || is_page()) { ?>
    233                        
     233
    234234                                <a <?php cryout_echo_bgimage($featured_image, 'post-featured-image') ?>> </a>
    235235                                <a><img class="post-featured-image" alt="" itemprop="image" src="<?php echo $featured_image; ?>" /></a>
    236236
    237237                        <?php }
    238                        
     238
    239239                        else { ?>
    240                                 <a href="<?php echo get_permalink( $post->ID ) ?>" title="<?php echo esc_attr( get_post_field( 'post_title', $post->ID ) ) ?>"
     240                                <a href="<?php echo esc_url( get_permalink( $post->ID ) ) ?>" title="<?php echo esc_attr( get_post_field( 'post_title', $post->ID ) ) ?>"
    241241                                        <?php cryout_echo_bgimage($featured_image, 'post-featured-image') ?>>
    242                                        
     242
    243243                                </a>
    244                                 <a class="responsive-featured-image" href="<?php echo get_permalink( $post->ID ) ?>" title="<?php echo esc_attr( get_post_field( 'post_title', $post->ID ) ) ?>">
    245                                         <img class="post-featured-image" alt="" itemprop="image" src="<?php echo $featured_image; ?>" />
     244                                <a class="responsive-featured-image" href="<?php echo esc_url( get_permalink( $post->ID ) ) ?>" title="<?php echo esc_attr( get_post_field( 'post_title', $post->ID ) ) ?>">
     245                                        <img class="post-featured-image" alt="" itemprop="image" src="<?php echo esc_url( $featured_image ) ?>" />
    246246                                </a>
    247247                        <?php } ?>
    248                        
     248
    249249                </div>
    250250        <?php
  • verbosa/0.9.2/includes/setup.php

    r357746 r357746  
    2222 */
    2323function verbosa_setup() {
    24        
     24
    2525        $verbosas = cryout_get_option();
    2626
    2727        // This theme styles the visual editor with editor-style.css to match the theme style.
    2828        add_editor_style( "resources/styles/editor-style.css" );
    29        
     29
    3030        // Support title tag since WP 4.1
    3131        add_theme_support( 'title-tag' );
    … …  
    3333        // Add default posts and comments RSS feed links to head
    3434        add_theme_support( 'automatic-feed-links' );
    35        
     35
    3636        // Add HTML5 support
    3737        add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) );
    38        
     38
    3939        // Add post formats
    4040        add_theme_support('post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'audio', 'video'));
    … …  
    4646        // This theme allows users to set a custom backgrounssd
    4747        add_theme_support( 'custom-background' );
    48        
    49         // This theme supports WordPress 4.5 logos 
    50         add_theme_support( 'custom-logo', array( 'height' => 240, 'width' => 240, 'flex-height' => true, 'flex-width'  => true ) ); 
    51         add_filter('get_custom_logo', 'verbosa_filter_wp_logo_img' ); 
    52        
     48
     49        // This theme supports WordPress 4.5 logos
     50        add_theme_support( 'custom-logo', array( 'height' => 240, 'width' => 240, 'flex-height' => true, 'flex-width'  => true ) );
     51        add_filter('get_custom_logo', 'verbosa_filter_wp_logo_img' );
     52
    5353        // This theme uses wp_nav_menu() in 3 locations.
    5454        register_nav_menus( array(
    … …  
    6969        $verbosa_headerwidth = apply_filters( 'verbosa_header_image_width',     (int)$verbosas['verbosa_sidebar'] );
    7070        $verbosa_headerheight = apply_filters( 'verbosa_header_image_height',   (int)$verbosas['verbosa_headerheight'] );
    71         add_image_size('header', $verbosa_headerwidth, $verbosa_headerheight,   true); 
     71        add_image_size('header', $verbosa_headerwidth, $verbosa_headerheight,   true);
    7272
    7373        // Add support for flexible headers
    … …  
    8787                        'description' => __( 'Typewriter', 'verbosa' )
    8888                ),
    89                
     89
    9090                'breakfast' => array(
    9191                        'url' => '%s/resources/images/headers/breakfast.jpg',
    … …  
    9393                        'description' => __( 'Breakfast', 'verbosa' )
    9494                ),
    95                
     95
    9696                'homeoffice' => array(
    9797                        'url' => '%s/resources/images/headers/homeoffice.jpg',
    … …  
    104104endif;
    105105
    106 /* 
    107  * Have two textdomains work with translation systems. 
    108  * https://gist.github.com/justintadlock/7a605c29ae26c80878d0 
    109  */ 
    110 add_filter( 'override_load_textdomain', 'verbosa_override_load_textdomain', 10, 2 ); 
    111          
    112 function verbosa_override_load_textdomain( $override, $domain ) { 
    113         // Check if the domain is our framework domain. 
    114         if ( 'cryout' === $domain ) { 
    115         global $l10n; 
    116                 // If the theme's textdomain is loaded, assign the theme's translations 
    117                 // to the framework's textdomain. 
    118                 if ( isset( $l10n[ 'verbosa' ] ) ) 
    119                         $l10n[ $domain ] = $l10n[ 'verbosa' ]; 
    120                         // Always override.  We only want the theme to handle translations. 
    121                         $override = true; 
    122         } 
    123         return $override; 
    124 } 
    125 
    126 function verbosa_filter_wp_logo_img ( $input ) { 
    127         return preg_replace( '/(height=".*?"|width=".*?")/i', '', $input); 
     106/*
     107 * Have two textdomains work with translation systems.
     108 * https://gist.github.com/justintadlock/7a605c29ae26c80878d0
     109 */
     110add_filter( 'override_load_textdomain', 'verbosa_override_load_textdomain', 10, 2 );
     111
     112function verbosa_override_load_textdomain( $override, $domain ) {
     113        // Check if the domain is our framework domain.
     114        if ( 'cryout' === $domain ) {
     115        global $l10n;
     116                // If the theme's textdomain is loaded, assign the theme's translations
     117                // to the framework's textdomain.
     118                if ( isset( $l10n[ 'verbosa' ] ) )
     119                        $l10n[ $domain ] = $l10n[ 'verbosa' ];
     120                        // Always override.  We only want the theme to handle translations.
     121                        $override = true;
     122        }
     123        return $override;
     124}
     125
     126function verbosa_filter_wp_logo_img ( $input ) {
     127        return preg_replace( '/(height=".*?"|width=".*?")/i', '', $input);
    128128}
    129129
    … …  
    143143                <a href="#main" title="<?php esc_attr_e( 'Skip to content', 'verbosa' ); ?>"> <?php _e( 'Skip to content', 'verbosa' ); ?> </a>
    144144        </div>
    145         <?php 
    146         wp_nav_menu( array( 
    147                 'container'             => '', 
    148                 'menu_id'               => 'prime_nav', 
    149                 'menu_class'    => '', 
    150                 'theme_location'=> 'primary', 
    151                 'link_before'   => '<span>', 
     145        <?php
     146        wp_nav_menu( array(
     147                'container'             => '',
     148                'menu_id'               => 'prime_nav',
     149                'menu_class'    => '',
     150                'theme_location'=> 'primary',
     151                'link_before'   => '<span>',
    152152                'link_after'    => '</span>',
    153153                'items_wrap'    => '<div><ul id="%s" class="%s">%s</ul></div>'
    154                        
     154
    155155        ) );
    156156} // verbosa_main_menu()
    … …  
    158158
    159159/** MOBILE MENU **/
    160 function verbosa_mobile_menu() { 
    161         wp_nav_menu( array( 
    162                 'container'             => '', 
    163                 'menu_id'               => 'mobile-nav', 
     160function verbosa_mobile_menu() {
     161        wp_nav_menu( array(
     162                'container'             => '',
     163                'menu_id'               => 'mobile-nav',
    164164                'menu_class'    => '',
    165                 'theme_location'=> 'primary', 
    166                 'link_before'   => '<span>', 
    167                 'link_after'    => '</span>', 
     165                'theme_location'=> 'primary',
     166                'link_before'   => '<span>',
     167                'link_after'    => '</span>',
    168168                'items_wrap'    => '<div><ul id="%s" class="%s">%s</ul></div>'
    169169        ) );
    … …  
    173173/** SOCIALS MENU **/
    174174function verbosa_socials_menu( $location ) {
    175         if ( has_nav_menu( 'socials' ) ) 
    176                 echo strip_tags( 
    177                         wp_nav_menu( array( 
    178                                 'container' => 'nav', 
     175        if ( has_nav_menu( 'socials' ) )
     176                echo strip_tags(
     177                        wp_nav_menu( array(
     178                                'container' => 'nav',
    179179                                'container_class' => 'socials',
    180180                                'container_id' => $location,
    181                                 'theme_location' => 'socials', 
     181                                'theme_location' => 'socials',
    182182                                'link_before' => '<span>',
    183183                                'link_after' => '</span>',
    … …  
    186186                                'echo' => false,
    187187                        ) ),
    188                 '<a><div><span><nav>' 
     188                '<a><div><span><nav>'
    189189                );
    190190} //verbosa_socials_menu()
    … …  
    227227 */
    228228function verbosa_footer_colophon_class() {
    229        
     229
    230230        $opts = cryout_get_option( array('verbosa_footercols', 'verbosa_footeralign') );
    231231
    … …  
    242242
    243243/**
    244  * Set up widget areas 
    245  */
    246                
     244 * Set up widget areas
     245 */
     246
    247247function verbosa_widget_before() {
    248248        if ( is_active_sidebar( 'content-widget-area-before' )) { ?>
    249249                        <aside class="content-widget content-widget-before" <?php cryout_schema_microdata('sidebar');?>>
    250250                                <?php dynamic_sidebar( 'content-widget-area-before' ); ?>
    251                         </aside><!--content-widget--><?php 
    252         } 
     251                        </aside><!--content-widget--><?php
     252        }
    253253}
    254254function verbosa_widget_after() {
    … …  
    256256                        <aside class="content-widget content-widget-after" <?php cryout_schema_microdata('sidebar');?>>
    257257                                <?php dynamic_sidebar( 'content-widget-area-after' ); ?>
    258                         </aside><!--content-widget--><?php 
    259         } 
     258                        </aside><!--content-widget--><?php
     259        }
    260260}
    261261
    … …  
    263263add_action ('cryout_after_content_hook', 'verbosa_widget_after');
    264264
    265 
    266 function verbosa_socials_menu_preset() {
    267 
    268 $menu_name = 'Socials Menu';
    269 $menu_exists = wp_get_nav_menu_object( $menu_name );
    270 
    271         if( !$menu_exists){
    272                 $menu_id = wp_create_nav_menu($menu_name);
    273 
    274                 wp_update_nav_menu_item($menu_id, 0, array(
    275                         'menu-item-title' => 'Facebook',
    276                         'menu-item-url' => 'http://www.facebook.com/profile',
    277                         'menu-item-target' => '_blank',
    278                         'menu-item-status' => 'publish'));
    279 
    280                 wp_update_nav_menu_item($menu_id , 0, array(
    281                         'menu-item-title' =>  'Twitter',
    282                         'menu-item-url' => 'http://www.twitter.com/profile',
    283                         'menu-item-target' => '_blank',
    284                         'menu-item-status' => 'publish'));
    285                        
    286                 wp_update_nav_menu_item($menu_id, 0, array(
    287                         'menu-item-title' =>  'Google Plus',
    288                         'menu-item-url' =>  'http://plus.google.com/profile',
    289                         'menu-item-target' => '_blank',
    290                         'menu-item-status' => 'publish'));
    291                        
    292                 wp_update_nav_menu_item($menu_id, 0, array(
    293                         'menu-item-title' =>  'Custom Social',
    294                         'menu-item-classes' => 'custom',
    295                         'menu-item-url' => '#',
    296                         'menu-item-status' => 'publish'));
    297         }
    298 
    299         if (!empty($menu_id))  {
    300                 $locations = get_theme_mod('nav_menu_locations');
    301                 $locations['socials'] = $menu_id;  //$foo is term_id of menu
    302                 set_theme_mod('nav_menu_locations', $locations);
    303         }
    304 
    305 }
    306 
    307 add_action('after_switch_theme', 'verbosa_socials_menu_preset');
    308 
    309265/* FIN */
  • verbosa/0.9.2/includes/styles.php

    r357746 r357746  
    88/* Styles and scripts */
    99function verbosa_enqueue_styles() {
    10        
    11         wp_enqueue_script( 'verbosa-html5shiv', get_template_directory_uri() . '/resources/js/html5shiv.min.js', null, _CRYOUT_THEME_VERSION ); 
    12         if ( function_exists( 'wp_script_add_data' ) ) wp_script_add_data( 'verbosa-html5shiv', 'conditional', 'lt IE 9' );     
    13        
     10
     11        wp_enqueue_script( 'verbosa-html5shiv', get_template_directory_uri() . '/resources/js/html5shiv.min.js', null, _CRYOUT_THEME_VERSION );
     12        if ( function_exists( 'wp_script_add_data' ) ) wp_script_add_data( 'verbosa-html5shiv', 'conditional', 'lt IE 9' );
     13
    1414        $cryout_theme_structure = cryout_get_theme_structure();
    1515        $verbosas = cryout_get_option();
    … …  
    1717        wp_enqueue_style( 'verbosa-themefonts', get_template_directory_uri() . '/resources/fonts/fontfaces.css', null, _CRYOUT_THEME_VERSION ); // fontfaces.css
    1818
    19         // google fonts 
     19        // google fonts
    2020        $gfonts = array();
    2121        foreach ($cryout_theme_structure['google-font-enabled-fields'] as $item) {
    2222                $itemg = $item . 'google';
    23                 $itemw = $item . 'weight'; 
    24                 if ( !empty($verbosas[$itemg]) ) $gfonts[] = cryout_gfontclean( $verbosas[$itemg].":".$verbosas[$itemw] ); 
    25                 if ( preg_match('/^(.*)\/gfont$/i', $verbosas[$item], $bits) ) $gfonts[] = $bits[1].":".$verbosas[$itemw]; 
     23                $itemw = $item . 'weight';
     24                if ( !empty($verbosas[$itemg]) ) $gfonts[] = cryout_gfontclean( $verbosas[$itemg].":".$verbosas[$itemw] );
     25                if ( preg_match('/^(.*)\/gfont$/i', $verbosas[$item], $bits) ) $gfonts[] = $bits[1].":".$verbosas[$itemw];
    2626        };
    2727
    … …  
    3131                   // do nothing
    3232                else:
    33                         wp_enqueue_style( 'verbosa-googlefont'.$i, '//fonts.googleapis.com/css?family=' . $gfont, null, _CRYOUT_THEME_VERSION );       
     33                        wp_enqueue_style( 'verbosa-googlefont'.$i, '//fonts.googleapis.com/css?family=' . $gfont, null, _CRYOUT_THEME_VERSION );
    3434                        unset($gfonts[$i]);
    35                 endif;         
     35                endif;
    3636        endforeach;
    37        
    38         // merged google fonts 
     37
     38        // merged google fonts
    3939        if ( count($gfonts)>0 ):
    40                 wp_enqueue_style( 'verbosa-googlefonts', '//fonts.googleapis.com/css?family=' . implode( "|" , array_unique($gfonts) ), null, _CRYOUT_THEME_VERSION ); 
     40                wp_enqueue_style( 'verbosa-googlefonts', '//fonts.googleapis.com/css?family=' . implode( "|" , array_unique($gfonts) ), null, _CRYOUT_THEME_VERSION );
    4141        endif;
    42        
     42
    4343        // main theme style
    4444        wp_enqueue_style( 'verbosa-main', get_stylesheet_uri(), null, _CRYOUT_THEME_VERSION );
    … …  
    4646        // RTL style
    4747        if (is_RTL()) wp_enqueue_style( 'verbosa-rtl', get_template_directory_uri() . '/resources/styles/rtl.css', null, _CRYOUT_THEME_VERSION );
    48        
     48
    4949        // theme generated style
    5050        wp_add_inline_style( 'verbosa-main', preg_replace("/[\n\r\t\s]+/"," " ,verbosa_custom_styles()) ); // includes/custom-styles.php
    51        
     51
    5252        // user custom style
    5353        wp_add_inline_style( 'verbosa-main', preg_replace("/[\n\r\t\s]+/"," " , htmlspecialchars_decode( $verbosas['verbosa_customcss'], ENT_QUOTES ) ) );
    54        
     54
    5555        // responsive style
    5656        wp_enqueue_style( 'verbosa-responsive', get_template_directory_uri() . '/resources/styles/responsive.css', null, _CRYOUT_THEME_VERSION );
    57        
     57
    5858} // verbosa_enqueue_styles
    5959add_action('wp_head', 'verbosa_enqueue_styles', 5 );
    … …  
    7070
    7171
    72 /* CURRENTLY DISABLED AND HARDCODED TO HEADER.PHP 
     72/* CURRENTLY DISABLED AND HARDCODED TO HEADER.PHP
    7373function verbosa_priority_scripts() {
    7474        // html5shiv
    75         wp_enqueue_script( 'verbosa-html5shiv', get_template_directory_uri() . '/resources/js/html5shiv.min.js', null, _CRYOUT_THEME_VERSION ); 
    76         if ( function_exists( 'wp_script_add_data' ) ) wp_script_add_data( 'verbosa-html5shiv', 'conditional', 'lt IE 9' );     
     75        wp_enqueue_script( 'verbosa-html5shiv', get_template_directory_uri() . '/resources/js/html5shiv.min.js', null, _CRYOUT_THEME_VERSION );
     76        if ( function_exists( 'wp_script_add_data' ) ) wp_script_add_data( 'verbosa-html5shiv', 'conditional', 'lt IE 9' );
    7777} // verbosa_priority_scripts()
    7878add_action('wp_enqueue_scripts', 'verbosa_priority_scripts', 1 ); */
    … …  
    9999/* Main theme scripts */
    100100function verbosa_scripts_method() {
    101        
     101
    102102        wp_enqueue_script( 'verbosa-frontend', get_template_directory_uri() . '/resources/js/frontend.js', array('jquery'), _CRYOUT_THEME_VERSION );
    103        
     103
    104104        wp_enqueue_script( 'jquery-masonry' );
    105        
     105
    106106        if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
    107        
     107
    108108}
    109109add_action('wp_footer', 'verbosa_scripts_method');
    110110
    111 function verbosa_scripts_filter($tag) { 
    112         $scripts_to_defer = array('comment-reply.min.js', 'frontend.js', 'masonry.min.js'); 
    113         foreach($scripts_to_defer as $defer_script){ 
    114                 if(true == strpos($tag, $defer_script ) ) 
    115                         return str_replace( ' src', ' defer src', $tag ); // ' async' causes issues with masonry 
    116         } 
    117         return $tag; 
    118 } 
    119 add_filter('script_loader_tag', 'verbosa_scripts_filter', 10, 2);
     111function verbosa_scripts_filter($tag) {
     112        $scripts_to_defer = array('comment-reply.min.js', 'frontend.js', 'masonry.min.js');
     113        foreach($scripts_to_defer as $defer_script){
     114                if(true == strpos($tag, $defer_script ) )
     115                        return str_replace( ' src', ' defer src', $tag ); // ' async' causes issues with masonry
     116        }
     117        return $tag;
     118}
     119//add_filter('script_loader_tag', 'verbosa_scripts_filter', 10, 2);
    120120
    121121function verbosa_responsive_meta() {
  • verbosa/0.9.2/languages/verbosa.pot

    r357746 r357746  
    22msgstr ""
    33"Project-Id-Version: Fluida 0.9\n"
    4 "POT-Creation-Date: 2016-02-13 17:55+0200\n"
    5 "PO-Revision-Date: 2016-02-13 17:55+0200\n"
     4"POT-Creation-Date: 2016-08-30 23:45+0200\n"
     5"PO-Revision-Date: 2016-08-30 23:45+0200\n"
    66"Last-Translator: Kay <contact@htx.ro>\n"
    77"Language-Team: Cryout Creations\n"
    … …  
    1616"X-Poedit-SearchPath-0: .\n"
    1717
    18 #: 404.php:15 includes/core.php:317
     18#: 404.php:15 includes/core.php:289
    1919msgid "Not Found"
    2020msgstr "Not Found"
    … …  
    3030msgstr ""
    3131
    32 #: admin/main.php:73
     32#: admin/main.php:70
    3333msgid "Sorry, but you do not have sufficient permissions to access this page."
    3434msgstr ""
    3535
    36 #: admin/main.php:114
     36#: admin/main.php:92
     37msgid "Verbosa Homepage"
     38msgstr ""
     39
     40#: admin/main.php:93
     41msgid "Support"
     42msgstr ""
     43
     44#: admin/main.php:99
    3745msgid "Verbosa settings updated successfully."
    3846msgstr ""
    3947
    40 #: admin/main.php:138
     48#: admin/main.php:123
    4149msgid "Customize Verbosa"
    4250msgstr ""
    4351
    44 #: admin/main.php:185
     52#: admin/main.php:160
    4553msgid "Settings Management"
    4654msgstr ""
    4755
    48 #: admin/main.php:191
    49 msgid "Export Theme Settings"
    50 msgstr ""
    51 
    52 #: admin/main.php:197
    53 msgid "Import Theme Settings"
    54 msgstr ""
    55 
    56 #: admin/main.php:203
     56#: admin/main.php:165
    5757msgid "Reset to Defaults"
    5858msgstr ""
    5959
    60 #: admin/main.php:211
    61 msgid "Latest News"
    62 msgstr ""
    63 
    64 #: admin/main.php:220
     60#: admin/main.php:173
     61msgid "Theme Updates"
     62msgstr ""
     63
     64#: admin/main.php:182
    6565msgid "Reset Verbosa Settings to Defaults?"
    6666msgstr ""
    6767
    68 #: admin/options.php:52
    69 msgid "Support"
     68#: admin/options.php:52 single.php:40
     69msgid "About"
    7070msgstr ""
    7171
    … …  
    7474msgstr ""
    7575
    76 #: admin/options.php:56
     76#: admin/options.php:60
     77msgid "Read the FAQs"
     78msgstr ""
     79
     80#: admin/options.php:66
     81msgid "Browse the Forum"
     82msgstr ""
     83
     84#: admin/options.php:72
     85msgid "Priority Support"
     86msgstr ""
     87
     88#: admin/options.php:77
    7789msgid "Rating"
    7890msgstr ""
    7991
    80 #: admin/options.php:57
     92#: admin/options.php:78
     93#, php-format
     94msgid "Rate %s on WordPress.org"
     95msgstr ""
     96
     97#: admin/options.php:79
    8198msgid ""
    8299"If you like the theme, rate it. If you hate the theme, rate it as well. Let "
    … …  
    84101msgstr ""
    85102
    86 #: admin/options.php:64
    87 msgid "Read the FAQs"
    88 msgstr ""
    89 
    90 #: admin/options.php:70
    91 msgid "Browse the Forum"
    92 msgstr ""
    93 
    94 #: admin/options.php:76
    95 msgid "Request Premium Support"
    96 msgstr ""
    97 
    98 #: admin/options.php:77
    99 msgid "We also provide fast support via our premium support system."
    100 msgstr ""
    101 
    102 #: admin/options.php:82
    103 #, php-format
    104 msgid "Rate %s on Wordpress.org"
    105 msgstr ""
    106 
    107 #: admin/options.php:90
     103#: admin/options.php:83
     104msgid "Manage Settings"
     105msgstr ""
     106
     107#: admin/options.php:84
     108msgid "Manage Theme Settings"
     109msgstr ""
     110
     111#: admin/options.php:85
     112msgid ""
     113"Theme settings can be imported, exported or reset from the theme's about "
     114"page."
     115msgstr ""
     116
     117#: admin/options.php:92
    108118msgid "Background"
    109119msgstr ""
    110120
    111 #: admin/options.php:91
     121#: admin/options.php:93
    112122msgid "Background Settings."
    113123msgstr ""
    114124
    115 #: admin/options.php:98
     125#: admin/options.php:100
    116126msgid "Header Image"
    117127msgstr ""
    118128
    119 #: admin/options.php:99
     129#: admin/options.php:101
    120130msgid "Header Image Settings."
    121131msgstr ""
    122132
    123 #: admin/options.php:106
     133#: admin/options.php:108 admin/options.php:122
    124134msgid "Site Identity"
    125135msgstr ""
    126136
     137#: admin/options.php:123
     138msgid "Graphics"
     139msgstr ""
     140
     141#: admin/options.php:124
     142msgid "Post Information"
     143msgstr ""
     144
    127145#: admin/options.php:125
    128 msgid "Header"
    129 msgstr ""
    130 
    131 #: admin/options.php:126
    132 msgid "Graphics"
    133 msgstr ""
    134 
    135 #: admin/options.php:127
    136 msgid "Post Information"
    137 msgstr ""
    138 
    139 #: admin/options.php:128
    140146msgid "Typography"
    141147msgstr ""
    142148
    143 #: admin/options.php:137
     149#: admin/options.php:134
    144150msgid "Layout"
    145151msgstr ""
    146152
    147 #: admin/options.php:139
     153#: admin/options.php:136
    148154msgid "Header Structure"
    149155msgstr ""
    150156
    151 #: admin/options.php:141 admin/options.php:388
     157#: admin/options.php:140 admin/options.php:388
    152158msgid "General Font"
    153159msgstr ""
    154160
     161#: admin/options.php:141
     162msgid "Header Fonts"
     163msgstr ""
     164
    155165#: admin/options.php:142
    156 msgid "Header Fonts"
     166msgid "Widget Fonts"
    157167msgstr ""
    158168
    159169#: admin/options.php:143
    160 msgid "Widget Fonts"
     170msgid "Content Fonts"
    161171msgstr ""
    162172
    163173#: admin/options.php:144
    164 msgid "Content Fonts"
    165 msgstr ""
    166 
    167 #: admin/options.php:145
    168174msgid "Formatting"
    169175msgstr ""
    170176
     177#: admin/options.php:146
     178msgid "Structure"
     179msgstr ""
     180
    171181#: admin/options.php:147
    172 msgid "Structure"
     182msgid "Colors"
    173183msgstr ""
    174184
    175185#: admin/options.php:148
    176 msgid "Colors"
     186msgid "Decorations"
    177187msgstr ""
    178188
    179189#: admin/options.php:149
    180 msgid "Decorations"
    181 msgstr ""
    182 
    183 #: admin/options.php:150
    184190msgid "Post Images"
    185191msgstr ""
    186192
     193#: admin/options.php:151
     194msgid "Featured Image"
     195msgstr ""
     196
    187197#: admin/options.php:152
    188 msgid "Featured Image"
     198msgid "Meta Information"
    189199msgstr ""
    190200
    191201#: admin/options.php:153
    192 msgid "Meta Information"
    193 msgstr ""
    194 
    195 #: admin/options.php:154
    196202msgid "Excerpts"
    197203msgstr ""
    198204
    199 #: admin/options.php:155 includes/comments.php:100
     205#: admin/options.php:154 includes/comments.php:100
    200206msgid "Comments"
    201207msgstr ""
    202208
     209#: admin/options.php:156
     210msgid "Home Page"
     211msgstr ""
     212
    203213#: admin/options.php:157
    204 msgid "Home Page"
     214msgid "Sticky Posts"
    205215msgstr ""
    206216
    207217#: admin/options.php:158
    208 msgid "Sticky Posts"
     218msgid "Archive and Category Pages"
    209219msgstr ""
    210220
    211221#: admin/options.php:159
    212 msgid "Archive and Category Pages"
     222msgid "Post Excerpt Length "
    213223msgstr ""
    214224
    215225#: admin/options.php:160
    216 msgid "Post Excerpt Length "
     226msgid "Excerpt suffix"
    217227msgstr ""
    218228
    219229#: admin/options.php:161
    220 msgid "Excerpt suffix"
    221 msgstr ""
    222 
    223 #: admin/options.php:162
    224230msgid "Continue reading link text "
    225231msgstr ""
    226232
    227 #: admin/options.php:164 includes/setup.php:52
     233#: admin/options.php:163 includes/setup.php:56
    228234msgid "Social Icons"
    229235msgstr ""
    230236
    231 #: admin/options.php:166
     237#: admin/options.php:165
    232238msgid "Miscellaneous"
    233239msgstr ""
    234240
    235 #: admin/options.php:181
     241#: admin/options.php:180
    236242msgid "Main Layout"
    237243msgstr ""
    238244
    239 #: admin/options.php:184
     245#: admin/options.php:183
    240246msgid "One column (no sidebars)"
    241247msgstr ""
    242248
    243 #: admin/options.php:188
     249#: admin/options.php:187
    244250msgid "Two columns, sidebar on the left"
    245251msgstr ""
    246252
    247 #: admin/options.php:192
     253#: admin/options.php:191
    248254msgid "Two columns, sidebar on the right"
    249255msgstr ""
    250256
    251 #: admin/options.php:196
     257#: admin/options.php:195
    252258msgid ""
    253259"Defines the general site layout.<br>This can be overridden in pages by using "
    … …  
    255261msgstr ""
    256262
    257 #: admin/options.php:203
     263#: admin/options.php:202
    258264msgid "Select the maximum width (in pixels) of your site."
    259265msgstr ""
    260266
    261 #: admin/options.php:219
     267#: admin/options.php:218
    262268msgid "Width (in pixels) of the sidebar."
    263269msgstr ""
    264270
    265 #: admin/options.php:225
     271#: admin/options.php:224
    266272msgid "Stretch sidebar to edge"
    267273msgstr ""
    268274
    269 #: admin/options.php:227 admin/options.php:683 admin/options.php:691
     275#: admin/options.php:226 admin/options.php:683 admin/options.php:691
    270276msgid "Enable"
    271277msgstr ""
    272278
    273 #: admin/options.php:227 admin/options.php:683 admin/options.php:691
     279#: admin/options.php:226 admin/options.php:683 admin/options.php:691
    274280msgid "Disable"
    275281msgstr ""
    276282
    277 #: admin/options.php:228
     283#: admin/options.php:227
    278284msgid ""
    279285"Stretch the sidebar background to the edge of the screen. Enabled by default "
    … …  
    281287msgstr ""
    282288
    283 #: admin/options.php:234
     289#: admin/options.php:233
    284290msgid "Magazine Layout"
    285291msgstr ""
    286292
    287 #: admin/options.php:237
     293#: admin/options.php:236
    288294msgid "One column"
    289295msgstr ""
    290296
    291 #: admin/options.php:241
     297#: admin/options.php:240
    292298msgid "Two columns"
    293299msgstr ""
    294300
    295 #: admin/options.php:245
     301#: admin/options.php:244
    296302msgid "Three columns"
    297303msgstr ""
    298304
    299 #: admin/options.php:249
     305#: admin/options.php:248
    300306msgid "This layout applies to post lists and will arrange posts in columns."
    301307msgstr ""
    302308
     309#: admin/options.php:253
     310msgid "Margin top"
     311msgstr ""
     312
    303313#: admin/options.php:254
    304 msgid "Margin top"
    305 msgstr ""
    306 
    307 #: admin/options.php:255
    308314msgid "Set the top margin (in pixels) for the main content area."
    309315msgstr ""
    310316
    311 #: admin/options.php:260
     317#: admin/options.php:259
    312318msgid "Post/page left/right padding"
    313319msgstr ""
    314320
    315 #: admin/options.php:262
     321#: admin/options.php:261
    316322msgid ""
    317323"Set the left/right padding (in percent) for each page/post/content element."
    318324msgstr ""
    319325
    320 #: admin/options.php:268
     326#: admin/options.php:267
    321327msgid "Footer Widgets Columns"
    322328msgstr ""
    323329
    324 #: admin/options.php:271
     330#: admin/options.php:270
    325331msgid "Set the number of footer widgets to display per row."
    326332msgstr ""
    327333
    328 #: admin/options.php:277 admin/options.php:658
     334#: admin/options.php:276 admin/options.php:658
    329335msgid "Default"
    330336msgstr ""
    331337
    332 #: admin/options.php:277 admin/options.php:658
     338#: admin/options.php:276 admin/options.php:658
    333339msgid "Center"
    334340msgstr ""
    335341
     342#: admin/options.php:277
     343msgid "Footer Widgets Alignment"
     344msgstr ""
     345
    336346#: admin/options.php:278
    337 msgid "Footer Widgets Alignment"
    338 msgstr ""
    339 
    340 #: admin/options.php:279
    341347msgid "Activate to center align footer widgets."
    342348msgstr ""
    343349
     350#: admin/options.php:287
     351msgid "Header Image Height"
     352msgstr ""
     353
    344354#: admin/options.php:288
    345 msgid "Header Image Height"
    346 msgstr ""
    347 
    348 #: admin/options.php:289
    349355msgid "Select the header image height (in pixels)."
    350356msgstr ""
    351357
    352 #: admin/options.php:294
     358#: admin/options.php:293
    353359msgid "Site Header Content"
    354360msgstr ""
    355361
    356 #: admin/options.php:296 admin/options.php:417
     362#: admin/options.php:295 admin/options.php:417
    357363msgid "Site Title"
    358364msgstr ""
    359365
    360 #: admin/options.php:296
     366#: admin/options.php:295
    361367msgid "Logo"
    362368msgstr ""
    363369
    364 #: admin/options.php:296
     370#: admin/options.php:295
    365371msgid "Logo & Site Title"
    366372msgstr ""
    367373
    368 #: admin/options.php:296
     374#: admin/options.php:295
    369375msgid "Empty"
    370376msgstr ""
    371377
     378#: admin/options.php:301
     379msgid "Logo Image"
     380msgstr ""
     381
    372382#: admin/options.php:302
    373 msgid "Logo Image"
    374 msgstr ""
    375 
    376 #: admin/options.php:303
    377383msgid "The logo will appear in the header."
    378384msgstr ""
    … …  
    851857msgstr ""
    852858
    853 #: admin/options.php:892 admin/options.php:900 admin/options.php:914
    854 #: admin/options.php:1000 admin/options.php:1031
     859#: admin/options.php:892 admin/options.php:900 admin/options.php:908
     860#: admin/options.php:987
    855861msgid "Enabled"
    856862msgstr ""
    857863
    858 #: admin/options.php:892 admin/options.php:900 admin/options.php:914
    859 #: admin/options.php:1000 admin/options.php:1031
     864#: admin/options.php:892 admin/options.php:900 admin/options.php:908
     865#: admin/options.php:987
    860866msgid "Disabled"
    861867msgstr ""
    … …  
    876882msgstr ""
    877883
    878 #: admin/options.php:912
     884#: admin/options.php:906
    879885msgid "Auto Select Images From Posts Content"
    880886msgstr ""
    881887
    882 #: admin/options.php:915
     888#: admin/options.php:909
    883889msgid ""
    884890"Show the first image that you inserted in a post as a thumbnail. If there is "
    … …  
    886892msgstr ""
    887893
    888 #: admin/options.php:926
     894#: admin/options.php:920
    889895msgid "Featured Image Height"
    890896msgstr ""
    891897
     898#: admin/options.php:921
     899msgid ""
     900"In pixels. The width is not configurable as it is site-width and layout "
     901"dependent.<br><u style='color: #990000;'>Remember to regenerate your "
     902"thumbnails after changing this value</u>"
     903msgstr ""
     904
    892905#: admin/options.php:927
    893 msgid ""
    894 "In pixels. The width is not configurable as it is site-width and layout "
    895 "dependent.<br>"
    896 msgstr ""
    897 
    898 #: admin/options.php:933
    899906msgid "Cropped"
    900907msgstr ""
    901908
    902 #: admin/options.php:933
     909#: admin/options.php:927
    903910msgid "Responsive"
    904911msgstr ""
    905912
    906 #: admin/options.php:934
     913#: admin/options.php:928
    907914msgid "Featured image responsiveness"
    908915msgstr ""
    909916
    910 #: admin/options.php:935
     917#: admin/options.php:929
    911918msgid ""
    912919"Select how your featured image looks and behaves.<br>A <strong>Responsive</"
    … …  
    916923msgstr ""
    917924
    918 #: admin/options.php:940
     925#: admin/options.php:934
    919926msgid "Featured Image Alignment"
    920927msgstr ""
    921928
    922 #: admin/options.php:942
     929#: admin/options.php:936
    923930msgid "Left Top"
    924931msgstr ""
    925932
    926 #: admin/options.php:942
     933#: admin/options.php:936
    927934msgid "Left Center"
    928935msgstr ""
    929936
    930 #: admin/options.php:942
     937#: admin/options.php:936
    931938msgid "Left Bottom"
    932939msgstr ""
    933940
    934 #: admin/options.php:942
     941#: admin/options.php:936
    935942msgid "Right Top"
    936943msgstr ""
    937944
    938 #: admin/options.php:942
     945#: admin/options.php:936
    939946msgid "Right Center"
    940947msgstr ""
    941948
    942 #: admin/options.php:942
     949#: admin/options.php:936
    943950msgid "Right Bottom"
    944951msgstr ""
    945952
    946 #: admin/options.php:942
     953#: admin/options.php:936
    947954msgid "Center Top"
    948955msgstr ""
    949956
    950 #: admin/options.php:942
     957#: admin/options.php:936
    951958msgid "Center Center"
    952959msgstr ""
    953960
    954 #: admin/options.php:942
     961#: admin/options.php:936
    955962msgid "Center Bottom"
    956963msgstr ""
    957964
    958 #: admin/options.php:943
     965#: admin/options.php:937
    959966msgid ""
    960967"Featured image image alignment. Only works when <b>Cropped</b> is chosen for "
    … …  
    962969msgstr ""
    963970
    964 #: admin/options.php:948
     971#: admin/options.php:942
    965972msgid "Featured Bar Height"
    966973msgstr ""
    967974
    968 #: admin/options.php:949
     975#: admin/options.php:943
    969976msgid "In pixels. The bar that appears under the featured image."
    970977msgstr ""
    971978
     979#: admin/options.php:951
     980msgid "Display above Site Title"
     981msgstr ""
     982
    972983#: admin/options.php:957
    973 msgid "Display above Site Title"
     984msgid "Display below Site Title"
    974985msgstr ""
    975986
    976987#: admin/options.php:963
    977 msgid "Display below Site Title"
    978 msgstr ""
    979 
    980 #: admin/options.php:969
    981988msgid "Display at the bottom of the sidebar"
    982989msgstr ""
    983990
    984 #: admin/options.php:977
     991#: admin/options.php:971
    985992msgid "Custom Footer Text"
    986993msgstr ""
    987994
    988 #: admin/options.php:978
     995#: admin/options.php:972
    989996msgid ""
    990997"Insert custom text or basic HTML code that will appear in you footer. <br /> "
    … …  
    992999msgstr ""
    9931000
    994 #: admin/options.php:983
     1001#: admin/options.php:977
    9951002msgid "Custom Theme CSS"
    9961003msgstr ""
    9971004
    998 #: admin/options.php:984
     1005#: admin/options.php:978
    9991006msgid ""
    10001007"Insert your custom theme CSS. Styling declarations made here will override "
    … …  
    10021009msgstr ""
    10031010
    1004 #: admin/options.php:991
    1005 msgid "Presentation Page"
    1006 msgstr ""
    1007 
    1008 #: admin/options.php:993
    1009 msgid "Enabled (with posts)"
    1010 msgstr ""
    1011 
    1012 #: admin/options.php:993
    1013 msgid "Enabled (without posts)"
    1014 msgstr ""
    1015 
    1016 #: admin/options.php:993
    1017 msgid "Disabled (use Wordpress homepage)"
    1018 msgstr ""
    1019 
    1020 #: admin/options.php:994
    1021 msgid ""
    1022 "Enable the Presentation Page homepage feature which replaces the default "
    1023 "Wordpress homepage.<br><br>If you have this option enabled and you can't see "
    1024 "the presentation page, make sure that </strong>Your Front page displays</"
    1025 "strong> is set to the default value <strong>Your Latest Posts</strong>."
    1026 "<br><br>If you want another page to hold your latest blog posts, set it to "
    1027 "use the 'Blog (Posts) Template' from the page templates list."
    1028 msgstr ""
    1029 
    1030 #: admin/options.php:1001
    1031 msgid "Top Bar"
    1032 msgstr ""
    1033 
    1034 #: admin/options.php:1002
    1035 msgid "The top bar is displayed above the menu/site title."
    1036 msgstr ""
    1037 
    1038 #: admin/options.php:1008
    1039 msgid "Top margin (%)"
    1040 msgstr ""
    1041 
    1042 #: admin/options.php:1015
    1043 msgid "Left margin (%)"
    1044 msgstr ""
    1045 
    1046 #: admin/options.php:1023
    1047 msgid "Wide"
    1048 msgstr ""
    1049 
    1050 #: admin/options.php:1023
    1051 msgid "Boxed"
    1052 msgstr ""
    1053 
    1054 #: admin/options.php:1024
    1055 msgid ""
    1056 "Select the layout format for your site.<br> <strong>Wide</strong> - full "
    1057 "width layout. <br><strong>Boxed</strong> - fixed width layout."
    1058 msgstr ""
    1059 
    1060 #: admin/options.php:1037
    1061 msgid "Custom JavaScript"
    1062 msgstr ""
    1063 
    1064 #: admin/options.php:1038
    1065 msgid ""
    1066 "Insert your simple Javascript code to include in the footer. This field does "
    1067 "not accept &lt;script&gt; tags."
    1068 msgstr ""
    1069 
    1070 #: admin/options.php:1145
     1011#: admin/options.php:985
     1012msgid "Presentation Page Slider"
     1013msgstr ""
     1014
     1015#: admin/options.php:988
     1016msgid "Enable the Presentation Page homepage slider above the posts list."
     1017msgstr ""
     1018
     1019#: admin/options.php:1097
    10711020msgid "Sidebar - Before menu"
    10721021msgstr ""
    10731022
    1074 #: admin/options.php:1152
     1023#: admin/options.php:1104
    10751024msgid "Sidebar - After menu"
    10761025msgstr ""
    10771026
    1078 #: admin/options.php:1159
     1027#: admin/options.php:1111
    10791028msgid "Footer"
    10801029msgstr ""
    10811030
    1082 #: admin/options.php:1160
     1031#: admin/options.php:1112
    10831032msgid ""
    10841033"You can select how many widgets to show per row from Graphics &raquo; Layout."
    10851034msgstr ""
    10861035
    1087 #: admin/options.php:1167
     1036#: admin/options.php:1119
    10881037msgid "Content Before"
    10891038msgstr ""
    10901039
    1091 #: admin/options.php:1174
     1040#: admin/options.php:1126
    10921041msgid "Content After"
    1093 msgstr ""
    1094 
    1095 #: archive.php:22
    1096 #, php-format
    1097 msgid "Daily Archives: %s"
    1098 msgstr ""
    1099 
    1100 #: archive.php:24
    1101 #, php-format
    1102 msgid "Monthly Archives: %s"
    1103 msgstr ""
    1104 
    1105 #: archive.php:24
    1106 msgid "F Y"
    1107 msgstr ""
    1108 
    1109 #: archive.php:26
    1110 #, php-format
    1111 msgid "Yearly Archives: %s"
    1112 msgstr ""
    1113 
    1114 #: archive.php:26
    1115 msgid "Y"
    1116 msgstr ""
    1117 
    1118 #: archive.php:28
    1119 msgid "Blog Archives"
    11201042msgstr ""
    11211043
    … …  
    11441066#: author.php:39
    11451067msgid "Author:"
    1146 msgstr ""
    1147 
    1148 #: category.php:19
    1149 #, php-format
    1150 msgid "Category Archives: %s"
    11511068msgstr ""
    11521069
    … …  
    12081125msgstr ""
    12091126
    1210 #: content/content-image.php:17 cryout/widgets.php:85
     1127#: content/content-image.php:17
    12111128msgid "Image"
    12121129msgstr ""
    12131130
    1214 #: content/content-link.php:17 cryout/widgets.php:88
     1131#: content/content-link.php:17
    12151132msgid "Link"
    12161133msgstr ""
    … …  
    12471164msgstr ""
    12481165
    1249 #: cryout/_autoupdate.php:73
    1250 msgid ""
    1251 "An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
    1252 "\" onclick=\"document.location.reload(); return false;\">Try again</a>"
    1253 msgstr ""
    1254 
    1255 #: cryout/_autoupdate.php:78
    1256 msgid "An unknown error occurred"
    1257 msgstr ""
    1258 
    1259 #: cryout/admin-functions.php:61
    1260 msgid ""
    1261 "Before you can upload your import file, you will need to fix the following "
    1262 "error:"
    1263 msgstr ""
    1264 
    1265 #: cryout/admin-functions.php:69
    1266 msgid "Import Customizer Theme Settings"
    1267 msgstr ""
    1268 
    1269 #: cryout/admin-functions.php:71
    1270 msgid "<em> Please remember that this is still an experimental feature.</em>"
    1271 msgstr ""
    1272 
    1273 #: cryout/admin-functions.php:73
    1274 msgid "Choose an XML file:"
    1275 msgstr ""
    1276 
    1277 #: cryout/admin-functions.php:75
    1278 #, php-format
    1279 msgid "Maximum size: %s"
    1280 msgstr ""
    1281 
    1282 #: cryout/admin-functions.php:81
    1283 msgid "Import"
    1284 msgstr ""
    1285 
    1286 #: cryout/admin-functions.php:150
    1287 msgid "Import Theme Options "
    1288 msgstr ""
    1289 
    1290 #: cryout/admin-functions.php:153
    1291 msgid "Great! The options have been imported!"
    1292 msgstr ""
    1293 
    1294 #: cryout/admin-functions.php:154
    1295 msgid "Go back to the theme settings page and check them out!"
    1296 msgstr ""
    1297 
    1298 #: cryout/admin-functions.php:157 cryout/admin-functions.php:163
    1299 #: cryout/admin-functions.php:169
    1300 msgid "Oops, there's a small problem."
    1301 msgstr ""
    1302 
    1303 #: cryout/admin-functions.php:158
    1304 msgid ""
    1305 "The uploaded file does not contain valid theme options. Make sure the file "
    1306 "is exported from the theme options page."
    1307 msgstr ""
    1308 
    1309 #: cryout/admin-functions.php:164
    1310 msgid "The uploaded file could not be read."
    1311 msgstr ""
    1312 
    1313 #: cryout/admin-functions.php:170
    1314 msgid ""
    1315 "The uploaded file is not supported. Make sure the file was exported from the "
    1316 "theme settings page and that it is an XML file."
    1317 msgstr ""
    1318 
    1319 #: cryout/admin-functions.php:179
    1320 msgid ""
    1321 "Oops! The file is empty or there was no file. This error could also be "
    1322 "caused by uploads being disabled in your php.ini or by post_max_size being "
    1323 "defined as smaller than upload_max_filesize in php.ini."
    1324 msgstr ""
    1325 
    1326 #: cryout/admin-functions.php:185
    1327 msgid "ERROR: You are not authorised to perform that operation"
    1328 msgstr ""
    1329 
    1330 #: cryout/admin-functions.php:206
     1166#: cryout/admin-functions.php:24
    13311167msgid "No news items."
    13321168msgstr ""
    13331169
    1334 #: cryout/admin-functions.php:210
     1170#: cryout/admin-functions.php:28
    13351171msgid "Posted on"
    13361172msgstr ""
    13371173
    1338 #: cryout/admin-functions.php:211
     1174#: cryout/admin-functions.php:29
    13391175msgid "Read the full post"
    1340 msgstr ""
    1341 
    1342 #: cryout/admin-functions.php:226
    1343 msgid "Debug Information"
    1344 msgstr ""
    1345 
    1346 #: cryout/admin-functions.php:227
    1347 msgid ""
    1348 "Please include the debug information when creating a support request or "
    1349 "posting to the forum."
    13501176msgstr ""
    13511177
    … …  
    13621188msgstr ""
    13631189
    1364 #: cryout/customizer.php:297
     1190#: cryout/customizer.php:256
    13651191#, php-format
    13661192msgid "About %s"
    13671193msgstr ""
    13681194
    1369 #: cryout/customizer.php:298
     1195#: cryout/customizer.php:257
    13701196#, php-format
    13711197msgid "%1$s by %1$s"
    1372 msgstr ""
    1373 
    1374 #: cryout/widgets.php:67
    1375 msgid "Add columns to the presentation page"
    1376 msgstr ""
    1377 
    1378 #: cryout/widgets.php:69
    1379 msgid "Cryout Column"
    1380 msgstr ""
    1381 
    1382 #: cryout/widgets.php:85
    1383 msgid "Select / Upload Image"
    1384 msgstr ""
    1385 
    1386 #: cryout/widgets.php:86
    1387 msgid "Title"
    1388 msgstr ""
    1389 
    1390 #: cryout/widgets.php:87
    1391 msgid "Text"
    1392 msgstr ""
    1393 
    1394 #: cryout/widgets.php:89
    1395 msgid "Open in new Window"
    13961198msgstr ""
    13971199
    … …  
    14611263msgstr ""
    14621264
    1463 #: includes/core.php:108
     1265#: includes/core.php:123
    14641266msgid "Powered by"
    14651267msgstr ""
    14661268
    1467 #: includes/core.php:175
     1269#: includes/core.php:145
    14681270msgid "Menu"
    14691271msgstr ""
    14701272
    1471 #: includes/core.php:232
     1273#: includes/core.php:202
    14721274msgid "Home"
    14731275msgstr ""
    14741276
    1475 #: includes/core.php:248
     1277#: includes/core.php:220
    14761278msgid "Archive for category"
    14771279msgstr ""
    14781280
    1479 #: includes/core.php:251
     1281#: includes/core.php:223
    14801282msgid "Search results for"
    14811283msgstr ""
    14821284
    1483 #: includes/core.php:309
     1285#: includes/core.php:281
    14841286msgid "Posts tagged"
    14851287msgstr ""
    14861288
    1487 #: includes/core.php:314
     1289#: includes/core.php:286
    14881290msgid "Articles posted by"
    14891291msgstr ""
    14901292
    1491 #: includes/core.php:322
     1293#: includes/core.php:294
    14921294msgid "Page"
    14931295msgstr ""
    … …  
    15051307msgstr ""
    15061308
    1507 #: includes/loop.php:196
     1309#: includes/loop.php:197
    15081310msgid "Older posts"
    15091311msgstr ""
    15101312
    1511 #: includes/loop.php:197
     1313#: includes/loop.php:198
    15121314msgid "Newer posts"
    15131315msgstr ""
    15141316
    1515 #: includes/setup.php:51
     1317#: includes/setup.php:55
    15161318msgid "Primary Navigation"
    15171319msgstr ""
    15181320
    1519 #: includes/setup.php:83
     1321#: includes/setup.php:87
    15201322msgid "Typewriter"
    15211323msgstr ""
    15221324
    1523 #: includes/setup.php:89
     1325#: includes/setup.php:93
    15241326msgid "Breakfast"
    15251327msgstr ""
    15261328
    1527 #: includes/setup.php:95
     1329#: includes/setup.php:99
    15281330msgid "Home Office"
    15291331msgstr ""
    15301332
    1531 #: includes/setup.php:116
     1333#: includes/setup.php:143
    15321334msgid "Skip to content"
    15331335msgstr ""
    … …  
    15421344msgstr ""
    15431345
    1544 #: single.php:40
    1545 msgid "About"
    1546 msgstr ""
    1547 
    15481346#: single.php:47
    15491347msgid "View all posts by "
    … …  
    15571355msgid "Next Post"
    15581356msgstr ""
    1559 
    1560 #: tag.php:19
    1561 #, php-format
    1562 msgid "Tag Archives: %s"
    1563 msgstr ""
  • verbosa/0.9.2/readme.txt

    r357746 r357746  
    66Requires at least: 4.2
    77Tested up to: 4.5.3
    8 Stable tag: 0.9.1
     8Stable tag: 0.9.2
    99License: GPLv3
    1010License URI: http://www.gnu.org/licenses/gpl.html
    1111Donate link: http://www.cryoutcreations.eu/donate/
    1212
    13 Are you a writer? Or maybe a photographer? An artist? Perhaps you do online reviews? Or are you just casually blogging about music, movies and such? Do you like to ramble on? Are you a creator? Do you generate content of any kind? Are we asking too many questions? Is this too much? Have we crossed the line? 
     13Are you a writer? Or maybe a photographer? An artist? Perhaps you do online reviews? Or are you just casually blogging about music, movies and such? Do you like to ramble on? Are you a creator? Do you generate content of any kind? Are we asking too many questions? Is this too much? Have we crossed the line?
    1414
    1515Well then you should give Verbosa a try as she may have all the tools needed to assist you and your creativity. Verbosa is all about elegant typography, efficient use of contrast, spacing and simplicity. We used all the tricks at our disposal to improve legibility, create emphasis and generate a proper design flow that would make your content more inviting to be read.
    1616
    17 Verbosa is also truly responsive, with a fluid layout, uses microformats and microdata for best SEO results, takes great advantage of featured images, supports Google fonts, has social menus with over 100 social icons, is translation ready and RTL. And everything's editable via the customizer with over 100 options! And as an extra, we've coded in a fresh and exquisite perfume that will follow you everywhere once you install the theme! 
     17Verbosa is also truly responsive, with a fluid layout, uses microformats and microdata for best SEO results, takes great advantage of featured images, supports Google fonts, has social menus with over 100 social icons, is translation ready and RTL. And everything's editable via the customizer with over 100 options! And as an extra, we've coded in a fresh and exquisite perfume that will follow you everywhere once you install the theme!
    1818
    1919
    … …  
    4343
    4444FitVids, Copyright Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
    45 Licensed under the terms of the WTFPLlicense 
     45Licensed under the terms of the WTFPLlicense
    4646Source: http://fitvidsjs.com/
    4747
    … …  
    7474== Changelog ==
    7575
     76= 0.9.2 =
     77* Removed verbosa_socials_menu_preset() function
     78* Restored default customizer Colors section
     79* Removed constant from translation string (Customizer > About Verbosa)
     80* Added text from verbosa_master_footer() and Verbosa Page links to translation
     81* Replaced "get_category(get_query_var('cat')" with core "get_queried_ojbect"
     82* Removed HTML5Shiv from header.php
     83* Escaped all outputs in custom controls from customizer.php
     84* Escaped all URLs in theme with esc_url()
     85* Escaped get_bloginfo( 'name' ) and get_bloginfo( 'description' )
     86* Escaped all theme options output
     87* Updated verbosa.pot
     88
    7689= 0.9.1 =
    7790* Fixed widget titles line not spanning all sidebar
    78 * Added auto-detection of RSS link in social icons 
     91* Added auto-detection of RSS link in social icons
    7992* Added margin botton for multi-line socials menu
    80 * Fixed mobile menu out of frame on narrow screen (<400px), horizontal scroll on chrome, removed .noscroll position:fixed 
     93* Fixed mobile menu out of frame on narrow screen (<400px), horizontal scroll on chrome, removed .noscroll position:fixed
    8194* Improved mobile menu animations
    8295* Fixed colophon flex compatibility with IE9
    8396* Removed template-blog.php page template, license.txt, bundled masonry.js
    84 * Improved arhive.php to handle archives, categories and tags (removed category.php and tag.php) 
     97* Improved arhive.php to handle archives, categories and tags (removed category.php and tag.php)
    8598* Updated Cryout Framework to 0.5.5
    86 * Rearranged customizer section overrides to account for autofocus issue 
     99* Rearranged customizer section overrides to account for autofocus issue
    87100* Improved plugin/child theme styling override support by changing #main ID to .main class
    88101* Removed social links (and respective scripts) from the admin area
    89 * Removed import/export settings from admin area 
    90 * Renamed 'Latest News' section in admin to 'Theme Updates' 
    91 * Added unminified resources/js/html5shiv.js 
    92 * Fixed cryout_schema_microdata() call in author info page HTML 
    93 * Renamed _default.pot to verbosa.pot 
    94 * Added WordPress 4.5 site logo support 
    95 * Added second textdomain support for WordPress' language packs (also deleted languages folder under cryout and removed redundant loading of text domains in admin area) 
     102* Removed import/export settings from admin area
     103* Renamed 'Latest News' section in admin to 'Theme Updates'
     104* Added unminified resources/js/html5shiv.js
     105* Fixed cryout_schema_microdata() call in author info page HTML
     106* Renamed _default.pot to verbosa.pot
     107* Added WordPress 4.5 site logo support
     108* Added second textdomain support for WordPress' language packs (also deleted languages folder under cryout and removed redundant loading of text domains in admin area)
    96109* Fixed social menu and turned off social menu locations by default
    97 * Switched to loading JS files as deferred to improve load speed. 
    98 * Switched to using core WordPress 'jquery-masonry' 
    99 * Removed deprecated style.css tags and added new ones 
     110* Switched to loading JS files as deferred to improve load speed.
     111* Switched to using core WordPress 'jquery-masonry'
     112* Removed deprecated style.css tags and added new ones
    100113* Fixed social icons placement options not refreshing in Customizer
    101114* Fixed 'Display Site Title and Tagline' option not affecting the tagline
  • verbosa/0.9.2/style.css

    r357746 r357746  
    22Theme Name: Verbosa
    33Theme URI: http://www.cryoutcreations.eu/verbosa
    4 Description: Are you a writer? Or maybe a photographer? An artist? Perhaps you do online reviews? Or are you just casually blogging about music, movies and such? Do you like to ramble on? Are you a creator? Do you generate content of any kind? Are we asking too many questions? Is this too much? Have we crossed the line? Well then you should give Verbosa a try as she may have all the tools needed to assist you and your creativity. Verbosa is all about elegant typography, efficient use of contrast, spacing and simplicity. We used all the tricks at our disposal to improve legibility, create emphasis and generate a proper design flow that would make your content more inviting to be read. Verbosa is also truly responsive, with a fluid layout, uses microformats and microdata for best SEO results, takes great advantage of featured images, supports Google fonts, has social menus with over 100 social icons, is translation ready and RTL. And everything's editable via the customizer with over 100 options! And as an extra, we've coded in a fresh and exquisite perfume that will follow you everywhere once you install the theme!
     4Description: Are you a writer? An author? Or maybe a photographer? An artist? Perhaps you do online reviews? Or are you just casually blogging about music, movies and such? Do you like to ramble on? Are you a creator? Do you generate content of any kind? Are we asking too many questions? Is this too much? Have we crossed the line? Well then you should give Verbosa a try as she may have all the tools needed to assist you and your creativity. Verbosa is all about elegant typography, efficient use of contrast, spacing and simplicity. We used all the tricks at our disposal to improve legibility, create emphasis and generate a proper design flow that would make your content more inviting to be read. Verbosa is also truly responsive, with a fluid layout, uses microformats and microdata for best SEO results, takes great advantage of featured images, supports Google fonts, has social menus with over 100 social icons, is translation ready and RTL. And everything's editable via the customizer with over 100 options! And as an extra, we've coded in a fresh and exquisite perfume that will follow you everywhere once you install the theme!
    55Author: Cryout Creations
    66Author URI: http://www.cryoutcreations.eu
    7 Version: 0.9.1
     7Version: 0.9.2
    88License: GNU General Public License v3.0
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
  • verbosa/0.9.2/templates/template-page-with-intro.php

    r357746 r357746  
    1 <?php 
     1<?php
    22/**
    33 * Template Name: Category page with intro
    … …  
    99 *
    1010 * @package Verbosa
    11  */ 
     11 */
    1212
    1313get_header(); ?>
    … …  
    2929                </article>
    3030                <?php
    31                 $slug = basename(get_permalink());
     31                $slug = basename( esc_url( get_permalink() ) );
    3232                $meta_slug = get_post_meta(get_the_ID(), "slug", $single); // slug custom field
    3333                $meta_catid = get_post_meta(get_the_ID(), "catid", $single); // category_id custom field
    3434                $key = get_post_meta(get_the_ID(), "key", $single); // either slug or category_id custom field
    35                 $slug = ($key?$key:($meta_catid?$meta_catid:($meta_slug?$meta_slug:($slug?$slug:0)))); // select one value out of the custom fields     
     35                $slug = ($key?$key:($meta_catid?$meta_catid:($meta_slug?$meta_slug:($slug?$slug:0)))); // select one value out of the custom fields
    3636                ?>
    3737        <?php endwhile; else: endif; ?>
    3838        <div id="content-masonry">
    39         <?php 
     39        <?php
    4040        $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    41         if (is_numeric($slug)&&($slug>0)): 
    42                 $the_query = new WP_Query( 'cat='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged ); 
    43         else: 
    44                 $the_query = new WP_Query( 'category_name='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged ); 
    45         endif; 
    46         /* Start the Loop */ 
     41        if (is_numeric($slug)&&($slug>0)):
     42                $the_query = new WP_Query( 'cat='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged );
     43        else:
     44                $the_query = new WP_Query( 'category_name='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged );
     45        endif;
     46        /* Start the Loop */
    4747        while ( $the_query->have_posts() ) : $the_query->the_post();
    4848                global $more; $more=0; // more gets lost inside page templates
    49                 get_template_part( 'content/content', get_post_format() ); 
     49                get_template_part( 'content/content', get_post_format() );
    5050        endwhile;
    51         verbosa_pagination();   
     51        verbosa_pagination();
    5252        ?>
    5353        </div><!-- #content-masonry -->
    54                
     54
    5555        </main><!-- #main -->
    56        
     56
    5757</div><!-- #container -->
    5858
Note: See TracChangeset for help on using the changeset viewer.