Make WordPress Themes

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


Ignore:
Location:
verbosa
Files:
2 added
11 deleted
70 edited

Legend:

Unmodified
Added
Removed
  • verbosa/0.9.1/404.php

    r357746 r357746  
    1010        <div id="container" class="<?php echo verbosa_get_layout_class(); ?>">
    1111                <?php verbosa_header_section() ?>
    12                 <main id="main" role="main" <?php cryout_schema_microdata('main'); ?>>
     12                <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> class="main">
    1313               
    1414                        <header id="post-0" class="pad-container error404 not-found" <?php cryout_schema_microdata('element'); ?>>
  • verbosa/0.9.1/admin/defaults.php

    r357746 r357746  
    1616        "verbosa_sitewidth"             => 1440, // pixels
    1717        //"verbosa_contentwidth"        => 66,  // percent
    18         //"verbosa_sidebar"             => 34,  // percent 
     18        //"verbosa_sidebar"             => 34,  // percent
    1919        "verbosa_sidebar"                       => 440, // pixels
    2020        "verbosa_sidebarback"           => 1, // 0,1
    2121        "verbosa_magazinelayout"        => 1,   // one column
    22        
     22
    2323        "verbosa_headerheight"          => 250, // pixels
    2424        "verbosa_logoupload"            => '', // empty
    … …  
    2929        "verbosa_fgeneralgoogle"        => '',
    3030        "verbosa_fgeneralsize"          => '18px',
    31         "verbosa_fgeneralweight"        => '300',
    32        
     31        "verbosa_fgeneralweight"        => '400',
     32
    3333        "verbosa_fsitetitle"            => 'Josefin Sans/gfont',
    3434        "verbosa_fsitetitlegoogle"      => '',
    … …  
    4747        "verbosa_fwtitlegoogle" => '',
    4848        "verbosa_fwtitlesize"   => '80%',
    49         "verbosa_fwtitleweight" => '400',       
     49        "verbosa_fwtitleweight" => '400',
    5050        "verbosa_fwcontent"             => 'Merriweather/gfont',
    5151        "verbosa_fwcontentgoogle"       => '',
    5252        "verbosa_fwcontentsize"         => '100%',
    53         "verbosa_fwcontentweight"       => '400',               
     53        "verbosa_fwcontentweight"       => '400',
    5454
    5555        "verbosa_ftitles"               => 'Merriweather/gfont',
    5656        "verbosa_ftitlesgoogle" => '',
    5757        "verbosa_ftitlessize"   => '220%',
    58         "verbosa_ftitlesweight" => '400',       
     58        "verbosa_ftitlesweight" => '400',
    5959        "verbosa_fmetas"                => 'Lato/gfont',
    6060        "verbosa_fmetasgoogle"  => '',
    6161        "verbosa_fmetassize"    => '85%',
    62         "verbosa_fmetasweight"  => '300',       
     62        "verbosa_fmetasweight"  => '400',
    6363        "verbosa_fheadings"             => 'Merriweather/gfont',
    6464        "verbosa_fheadingsgoogle"       => '',
    6565        "verbosa_fheadingssize"         => '120%',
    66         "verbosa_fheadingsweight"       => '400',       
     66        "verbosa_fheadingsweight"       => '400',
    6767
    6868        "verbosa_textalign"                     => "Default",
    … …  
    7676        "verbosa_contentbackground"     => "#fff",
    7777        "verbosa_sidebarbackground" => "#fff",
    78         "verbosa_footerbackground"      => "#fff", 
     78        "verbosa_footerbackground"      => "#fff",
    7979        "verbosa_menutext"                      => "#555",
    8080        "verbosa_menutexthover"         => "#F26E3F",
    … …  
    8787        "verbosa_pagination"            => 1,
    8888        "verbosa_contenttitles"         => 1, // 1, 2, 3, 0
    89        
     89
    9090        "verbosa_elementborder"                 => 0,
    9191        "verbosa_elementshadow"                 => 1,
    … …  
    109109        "verbosa_comdate"               => 2, // 1, 2
    110110        "verbosa_comclosed"             => 1, // 1, 2, 3, 0
    111         "verbosa_comformwidth"  => 0, // pixels 
     111        "verbosa_comformwidth"  => 0, // pixels
    112112
    113113        "verbosa_excerpthome"           => 'excerpt',
    … …  
    127127
    128128        "verbosa_socials_header_above"          => 0,
    129         "verbosa_socials_header_below"          => 1,
     129        "verbosa_socials_header_below"          => 0,
    130130        "verbosa_socials_footer"                        => 0,
    131131
  • verbosa/0.9.1/admin/js/admin.js

    r357746 r357746  
    2020                if (!confirm(reset_confirmation)) { return false;}
    2121        });
    22        
    23         /* jQuery version for admin page system info */
    24         text = jQuery('#cryout-sysinfo').val();
    25         text = text.replace('jQuery not detected', jQuery.fn.jquery);
    26         if(text.length) jQuery('#cryout-sysinfo').val(text);
    2722
    2823});/* document.ready */
    2924
    3025
    31 /* FB like button */
    32 (function(d, s, id) {
    33   var js, fjs = d.getElementsByTagName(s)[0];
    34   if (d.getElementById(id)) return;
    35   js = d.createElement(s); js.id = id;
    36   js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
    37   fjs.parentNode.insertBefore(js, fjs);
    38 }(document, 'script', 'facebook-jssdk'));
    39 
    40 /* Twitter follow button */
    41 window.twttr = (function (d, s, id) {
    42   var t, js, fjs = d.getElementsByTagName(s)[0];
    43   if (d.getElementById(id)) return;
    44   js = d.createElement(s); js.id = id;
    45   js.src= "https://platform.twitter.com/widgets.js";
    46   fjs.parentNode.insertBefore(js, fjs);
    47   return window.twttr || (t = { _e: [], ready: function (f) { t._e.push(f) } });
    48 }(document, "script", "twitter-wjs"));
    49 
    5026/* FIN */
  • verbosa/0.9.1/admin/main.php

    r357746 r357746  
    3838// Hooks/Filters
    3939add_action('admin_menu', 'verbosa_add_page_fn');
    40 add_action('init', 'verbosa_init');
     40//add_action('init', 'verbosa_init');
    4141
    4242// Add admin scripts
    … …  
    6363} // verbosa_add_page_fn()
    6464
     65
    6566// Display the admin options page
    66 
    67 if ( isset( $_POST['verbosa_export'] ) ){
    68         add_action( 'init', 'cryout_export_options' );
    69 }
    7067function verbosa_page_fn() {
    7168
    … …  
    7471        }
    7572
    76         // Load the import form page if the import button has been pressed
    77         if (isset($_POST['verbosa_import'])) {
    78                 cryout_import_form();
    79                 return;
    80         }
    81 
    82         // Load the import form  page after upload button has been pressed
    83         if (isset($_POST['cryout_import_confirmed'])) {
    84                 cryout_import_file();
    85                 return;
    86         }
    87        
    8873        // Reset settings to defaults if the reset button has been pressed
    8974        if (isset($_POST['verbosa_reset_defaults'])) {
    … …  
    137122
    138123                <a class="button" href="customize.php" id="customizer"> <?php _e('Customize Verbosa', 'verbosa'); ?> </a>
    139 
    140                 <div id="debuginfo">
    141                         <?php cryout_sysinfo(); ?>
    142                 </div> 
    143124       
    144125        </div><!--lefty -->
    … …  
    170151                                        </form>
    171152                                </div>
    172                        
    173                                 <p>or socially smother, caress and embrace us:</p>     
    174                                 <div style="display:table;float:none;margin:0 auto;">
    175                                         <div id="fb-root"></div><div class="fb-like" data-href="https://www.facebook.com/CryoutCreations" data-layout="button" data-action="like" data-show-faces="false" data-share="false"></div>
    176                                         <a href="https://twitter.com/cryoutcreations" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false">Follow @cryoutcreations</a>
    177                                         <script src="https://apis.google.com/js/platform.js" async defer></script> <div class="g-plusone" data-href="https://plus.google.com/+CryoutcreationsEuCR2"  data-size="medium" data-annotation="none"></div>
    178                                 </div>
     153
    179154                        </div><!-- inside -->
    180155                       
    … …  
    185160                        <h3 class="hndle"><?php _e( 'Settings Management', 'verbosa' ); ?></h3>
    186161                        <div class="panel-wrap inside">
    187                        
    188                                 <form action="" method="post">
    189                                         <?php wp_nonce_field('verbosa-export', 'verbosa-export'); ?>
    190                                         <input type="hidden" name="verbosa_export" value="true" />
    191                                         <input type="submit" class="button" value="<?php _e('Export Theme Settings', 'verbosa'); ?>" />
    192                                 </form>
    193                                 <br />
    194                                
    195                                 <form action="" method="post">
    196                                         <input type="hidden" name="verbosa_import" value="true" />
    197                                         <input type="submit" class="button" value="<?php _e('Import Theme Settings', 'verbosa'); ?>" />
    198                                 </form>
    199                                 <br />
    200                                
     162                                       
    201163                                <form action="" method="post">
    202164                                        <input type="hidden" name="verbosa_reset_defaults" value="true" />
    … …  
    209171
    210172                <div id="verbosa-news" class="postbox news" >
    211                         <h3 class="hndle"><?php _e( 'Latest News', 'verbosa' ); ?></h3>
     173                        <h3 class="hndle"><?php _e( 'Theme Updates', 'verbosa' ); ?></h3>
    212174                        <div class="panel-wrap inside">
    213175                        </div><!-- inside -->
  • verbosa/0.9.1/admin/options.php

    r357746 r357746  
    4949
    5050'info_sections' => array(
    51         'support' => array(
    52                 'title' => __( 'Support', 'cryout' ),
     51        'about' => array(
     52                'title' => __( 'About ' . _CRYOUT_THEME_NAME, 'cryout' ),
    5353                'desc' => __( 'Got a question? Need help?', 'cryout' ),
    5454        ),
    55         'rating' => array(
    56                 'title' => __( 'Rating', 'cryout' ),
    57                 'desc' => __( 'If you like the theme, rate it. If you hate the theme, rate it as well. Let us know how we can make it better.', 'cryout' ),
    58         ),
    5955), // info_sections
    6056
    6157'info_settings' => array(
    62         'support_link1' => array(
    63                 'default' => 'http://www.cryoutcreations.eu/' . _CRYOUT_THEME_NAME . '/' . _CRYOUT_THEME_NAME .'-faqs',
    64                 'label' => __( 'Read the FAQs', 'cryout' ),
    65                 'desc' => '',
    66                 'section' => 'support',
    67         ),
    68         'support_link2' => array(
    69                 'default' => 'http://www.cryoutcreations.eu/forums/f/wordpress/' . cryout_sanitize_tn( _CRYOUT_THEME_NAME ),
    70                 'label' => __( 'Browse the Forum', 'cryout' ),
    71                 'desc' => '',
    72                 'section' => 'support',
     58        'support_link_faqs' => array(
     59                'label' => '',
     60                'default' => sprintf( '<a href="http://www.cryoutcreations.eu/' . _CRYOUT_THEME_NAME . '/' . _CRYOUT_THEME_NAME .'-faqs" target="_blank">%s</a>', __( 'Read the FAQs', 'cryout' ) ),
     61                'desc' =>  '',
     62                'section' => 'about',
     63        ),
     64        'support_link_forum' => array(
     65                'label' => '',
     66                'default' => sprintf( '<a href="http://www.cryoutcreations.eu/forums/f/wordpress/' . cryout_sanitize_tn( _CRYOUT_THEME_NAME ) . '" target="_blank">%s</a>', __( 'Browse the Forum', 'cryout' ) ),
     67                'desc' => '',
     68                'section' => 'about',
    7369        ),
    7470        'premium_support_link' => array(
    75                 'default' => 'https://www.cryoutcreations.eu/premium-support',
    76                 'label' => __( 'Request Premium Support', 'cryout' ),
    77                 'desc' => __( 'We also provide fast support via our premium support system.', 'cryout' ),
    78                 'section' => 'support',
     71                'label' => '',
     72                'default' => sprintf( '<a href="https://www.cryoutcreations.eu/premium-support" target="_blank">%s</a>', __( 'Priority Support', 'cryout' ) ),
     73                'desc' => '',
     74                'section' => 'about',
    7975        ),
    8076        'rating_url' => array(
    81                 'default' => 'https://wordpress.org/support/view/theme-reviews/'. cryout_sanitize_tn( _CRYOUT_THEME_NAME ).'#postform',
    82                 'label' => sprintf( __( 'Rate %s on Wordpress.org', 'cryout' ) , ucwords(_CRYOUT_THEME_NAME) ),
    83                 'desc' => '',
    84                 'section' => 'rating',
    85         ),
    86 ), // info_settings
     77                'label' => __('Rating', 'cryout'),
     78                'default' => sprintf( '<a href="https://wordpress.org/support/view/theme-reviews/'. cryout_sanitize_tn( _CRYOUT_THEME_NAME ).'#postform" target="_blank">%s</a>', sprintf( __( 'Rate %s on WordPress.org', 'cryout' ) , ucwords(_CRYOUT_THEME_NAME) ) ),
     79                'desc' => __('If you like the theme, rate it. If you hate the theme, rate it as well. Let us know how we can make it better.', 'cryout'),
     80                'section' => 'about',
     81        ),
     82        'management' => array(
     83                'label' => __('Manage Settings', 'cryout') ,
     84                'default' => sprintf( '<a href="themes.php?page=about-' . cryout_sanitize_tn( _CRYOUT_THEME_NAME ) . '-theme">%s</a>', __('Manage Theme Settings', 'cryout') ),
     85                'desc' => __('Theme settings can be imported, exported or reset from the theme\'s about page.', 'cryout'),
     86                'section' => 'about',
     87        ),
     88), // info_settings   
    8789
    8890'panel_overrides' => array(
    8991        'background' => array(
    90                 'title' => __( 'Background', 'cryout' ),
     92        'title' => __( 'Background', 'cryout' ),
    9193                'desc' => __( 'Background Settings.', 'cryout' ),
    9294                'priority' => 50,
    93                 'section' => 'verbosa_graphics_section',
     95                'section' => 'cryoutoverride-verbosa_siteidentity',
    9496                'replaces' => 'background_image',
    9597                'type' => 'section',
    … …  
    99101                'desc' => __( 'Header Image Settings.', 'cryout' ),
    100102                'priority' => 50,
    101                 'section' => 'verbosa_header_section',
     103                'section' => 'cryoutoverride-verbosa_siteidentity',
    102104                'replaces' => 'header_image',
    103105                'type' => 'section',
    … …  
    107109                'desc' => '',
    108110                'priority' => 50,
    109                 'section' => 'verbosa_header_section',
     111                'section' => 'cryoutoverride-verbosa_siteidentity',
    110112                'replaces' => 'title_tagline',
    111113                'type' => 'section',
    … …  
    123125'panels' => array(
    124126
    125         array('id'=>'verbosa_header_section', 'title'=>__('Header','verbosa'), 'callback'=>''),
     127        array('id'=>'verbosa_siteidentity', 'title'=>__('Site Identity','verbosa'), 'callback'=>'', 'identifier'=>'cryoutoverride-' ),
    126128        array('id'=>'verbosa_graphics_section', 'title'=>__('Graphics','verbosa') , 'callback'=>''),
    127129        array('id'=>'verbosa_post_section', 'title'=>__('Post Information','verbosa') , 'callback'=>''),
    … …  
    137139        array('id'=>'verbosa_layout', 'title'=>__('Layout', 'verbosa'), 'callback'=>'', 'sid'=>''),
    138140        // header
    139         array('id'=>'verbosa_siteheader', 'title'=>__('Header Structure','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_header_section'),
     141        array('id'=>'verbosa_siteheader', 'title'=>__('Header Structure','verbosa'), 'callback'=>'', 'sid'=> ''),
     142        // presentation 
     143        /* to be done */
    140144        // text
    141145        array('id'=>'verbosa_fontfamily', 'title'=>__('General Font','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'),
    … …  
    302306                'label' => __('Logo Image','verbosa'),
    303307                'desc' => __("The logo will appear in the header.","verbosa"),
     308                'disable_if' => 'the_custom_logo',
    304309        'section' => 'verbosa_siteheader' ),
    305310        array(
    … …  
    901906                'desc' => __("Enable to also show the selected featured image on single posts and pages.","verbosa"),
    902907        'section' => 'verbosa_featured' ),
    903         /*array(
    904         'id' => 'verbosa_fpostlink',
    905                 'type' => 'checkbox',
    906                 'label' => __( 'Link the thumbnail to the post', 'verbosa' ),
    907                 'desc' => __("Show featured images as thumbnails on posts. The images must be selected for each post in the Featured Image section.","verbosa"),
    908         'section' => 'verbosa_featured' ),*/
    909908        array(
    910909        'id' => 'verbosa_fauto',
    … …  
    925924                'type' => 'number',
    926925                'label' => __( 'Featured Image Height', 'verbosa' ),
    927                 'desc' => __("In pixels. The width is not configurable as it is site-width and layout dependent.<br>" , "verbosa"), //<strong style='color: #990000;'>You will need to use a thumbnail regeneration plugin after changing size options to recreate the thumbnails at the new size.</strong>"
     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"),
    928927        'section' => 'verbosa_featured' ),     
    929928        array(
    … …  
    987986        //////////////////////////////////////////////////// !!! DEVELOPER !!! ////////////////////////////////////////////////////
    988987        array(
    989         'id' => 'verbosa_frontpage',
    990                 'type' => 'select',
    991                 'label' => __('Presentation Page','verbosa'),
    992                 'values' => array( 2, 1, 0 ),
    993                 'labels' => array( __("Enabled (with posts)", "verbosa"), __("Enabled (without posts)","verbosa"), __("Disabled (use Wordpress homepage)","verbosa") ),
    994                 'desc' => sprintf( __("Enable the Presentation Page homepage feature which replaces the default Wordpress homepage.<br><br>If you have this option enabled and you can't see the presentation page, make sure that </strong>Your Front page displays</strong> is set to the default value <strong>Your Latest Posts</strong>.<br><br>If you want another page to hold your latest blog posts, set it to use the 'Blog (Posts) Template' from the page templates list.","verbosa"), '#'),
     988        'id' => 'verbosa_frontpageslider',
     989                'type' => 'select',
     990                'label' => __('Presentation Page Slider','verbosa'),
     991                'values' => array( 1, 0 ),
     992                'labels' => array( __("Enabled", "verbosa"), __("Disabled","verbosa") ),
     993                'desc' => sprintf( __("Enable the Presentation Page homepage slider above the posts list.","verbosa"), '#'),
    995994        'section' => 'verbosa_developer' ),
    996         array(
    997         'id' => 'verbosa_topbar',
    998                 'type' => 'select',
    999                 'values' => array( 1, 0 ),
    1000                 'labels' => array( __("Enabled","verbosa"), __("Disabled","verbosa") ),         
    1001                 'label' => __('Top Bar','verbosa'),
    1002                 'desc' => __("The top bar is displayed above the menu/site title.","verbosa"),
    1003         'section' => 'verbosa_developer' ),
    1004         array(
    1005         'id' => 'verbosa_headermargintop',
    1006                 'type' => 'number',
    1007                 'label' => 'Header Content Spacing',
    1008                 'desc' => __("Top margin (%)","verbosa"),
    1009                 'order' => 4,
    1010         'section' => 'verbosa_developer' ),
    1011         array(
    1012         'id' => 'verbosa_headermarginleft',
    1013                 'type' => 'number',
    1014                 'label' => '',
    1015                 'desc' => __("Left margin (%)","verbosa"),
    1016                 'order' => 4,
    1017         'section' => 'verbosa_developer' ),
    1018         array(
    1019         'id' => 'verbosa_duality',
    1020                 'type' => 'select',
    1021                 'label' => 'Duality',
    1022                 'values' => array( "Wide" , "Boxed" ),
    1023                 'labels' => array( __("Wide","verbosa"), __("Boxed","verbosa") ),
    1024                 'desc' => __("Select the layout format for your site.<br> <strong>Wide</strong> - full width layout. <br><strong>Boxed</strong> - fixed width layout.","verbosa"),
    1025         'section' => 'verbosa_developer' ),
    1026         array(
    1027         'id' => 'verbosa_mobile',
    1028                 'type' => 'select',
    1029                 'label' => 'Mobile',
    1030                 'values' => array( 1, 0 ),
    1031                 'labels' => array( __("Enabled","verbosa"), __("Disabled","verbosa") ),
    1032                 'desc' => '',
    1033         'section' => 'verbosa_developer' ),
    1034         array(
    1035                 'id' => 'verbosa_customjs',
    1036                 'type' => 'textarea',
    1037                 'label' => __( 'Custom JavaScript', 'verbosa' ),
    1038                 'desc' => __("Insert your simple Javascript code to include in the footer. This field does not accept &lt;script&gt; tags.","verbosa"),
    1039         'section' => 'verbosa_developer' ),             
    1040 
    1041995
    1042996), // options
    … …  
    10571011                'labels' => array(  ),
    10581012                'desc' => '',
     1013                // conditionals
     1014                'disable_if' => 'function_name',
     1015                'require_fn' => 'function_name',
    10591016        'section' => '' ),
    10601017       
  • verbosa/0.9.1/archive.php

    r357746 r357746  
    44 *
    55 * Used to display archive-type pages if nothing more specific matches a query.
     6 * For example, puts together date-based pages if no date.php file exists.
     7 *
     8 * If you'd like to further customize these archive views, you may create a
     9 * new template file for each one. For example, tag.php (Tag archives),
     10 * category.php (Category archives), author.php (Author archives), etc.
     11 *
     12 * @link https://codex.wordpress.org/Template_Hierarchy
    613 *
    714 * @package Verbosa
     15 *
    816 */
    917
    1018get_header(); ?>
    1119
    12                 <div id="container" class="<?php echo verbosa_get_layout_class(); ?>">
    13                         <?php verbosa_header_section() ?>
    14                         <main id="main" role="main" <?php cryout_schema_microdata('main'); ?>>
    15                         <?php cryout_before_content_hook(); ?>
     20        <div id="container" class="<?php echo verbosa_get_layout_class(); ?>">
     21                <?php verbosa_header_section() ?>
     22                <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> class="main">
     23                <?php cryout_before_content_hook(); ?>
    1624                       
    1725                        <?php if ( have_posts() ) : ?>
    1826
    19                                 <header class="arhive-header pad-container" <?php cryout_schema_microdata('element'); ?>>
    20                                         <h1 class="page-title" <?php cryout_schema_microdata('entry-title'); ?>>
    21                                                 <?php if ( is_day() ) : ?>
    22                                                         <?php printf( __( 'Daily Archives: %s', 'verbosa' ), '<strong>' . get_the_date() . '</strong>' ); ?>
    23                                                 <?php elseif ( is_month() ) : ?>
    24                                                         <?php printf( __( 'Monthly Archives: %s', 'verbosa' ), '<strong>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'verbosa' ) ) . '</strong>' ); ?>
    25                                                 <?php elseif ( is_year() ) : ?>
    26                                                         <?php printf( __( 'Yearly Archives: %s', 'verbosa' ), '<strong>' . get_the_date( _x( 'Y', 'yearly archives date format', 'verbosa' ) ) . '</strong>' ); ?>
    27                                                 <?php else : ?>
    28                                                         <?php _e( 'Blog Archives', 'verbosa' ); ?>
    29                                                 <?php endif; ?>
    30                                         </h1>
    31                                 </header>
    32                                
    33                                 <div id="content-masonry">
    34                                 <?php /* Start the Loop */ ?>
    35                                 <?php while ( have_posts() ) : the_post(); ?>
     27                        <header class="page-header pad-container" <?php cryout_schema_microdata('element'); ?>>
     28                                <?php
     29                                        the_archive_title( '<h1 class="page-title" ' . cryout_schema_microdata('entry-title', 0) . '>', '</h1>' );
     30                                        the_archive_description( '<div class="taxonomy-description">', '</div>' );
     31                                ?>
     32                        </header><!-- .page-header -->
     33                       
     34                        <div id="content-masonry">
     35                        <?php
     36                        while ( have_posts() ) : the_post();
    3637
    37                                         <?php
    38                                                 /* Include the Post-Format-specific template for the content.
    39                                                  * If you want to overload this in a child theme then include a file
    40                                                  * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    41                                                  */
    42                                                 get_template_part( 'content/content', get_post_format() );
    43                                         ?>
     38                                /*
     39                                 * Include the Post-Format-specific template for the content.
     40                                 * If you want to override this in a child theme, then include a file
     41                                 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
     42                                 */
     43                                get_template_part( 'content/content', get_post_format() );
    4444
    45                                 <?php endwhile; ?>
    46                                 </div><!--content-masonry-->
    47                                 <?php
    48                                 verbosa_pagination();
     45                        endwhile;
     46                        ?>
     47                       
     48                        </div><!--content-masonry-->
     49                        <?php verbosa_pagination();
    4950
    50                         else :
    51                        
     51                        // If no content, include the "No posts found" template.
     52                        else :
    5253                                get_template_part( 'content/content', 'notfound' );
    53                                 ?><div id="content-masonry"></div><?php
    54                        
    55                         endif; ?>
    56                        
    57                         <?php cryout_after_content_hook(); ?>
    58                         </main><!-- #main -->
    59                 </div><!-- #container -->
     54                        endif;
    6055
     56                cryout_after_content_hook(); ?>
     57                </main><!-- #main -->
     58        </div><!-- #container -->
    6159
    6260<?php get_footer(); ?>
  • verbosa/0.9.1/attachment.php

    r357746 r357746  
    1010<div id="container" class="single-attachment <?php echo verbosa_get_layout_class(); ?>">
    1111        <?php verbosa_header_section() ?>
    12         <main id="main" role="main">
     12        <main id="main" role="main" class="main">
    1313                       
    1414        <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  • verbosa/0.9.1/author.php

    r357746 r357746  
    1010                <div id="container" class="<?php echo verbosa_get_layout_class(); ?>">
    1111                        <?php verbosa_header_section() ?>
    12                         <main id="main" role="main" <?php cryout_schema_microdata('main'); ?>>
     12                        <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> class="main">
    1313                        <?php cryout_before_content_hook(); ?>
    1414       
    … …  
    2525                                        the_post();
    2626                                ?>
    27                         <header class="author-header pad-container">
     27                        <header class="page-header pad-container">
    2828                                <?php
    2929                                        /* Since we called the_post() above, we need to
    … …  
    3737                                                <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'verbosa_author_bio_avatar_size', 80 ), '', '', array('extra_attr' => cryout_schema_microdata('image', 0) ) ); ?>
    3838                                        </div><!-- #author-avatar -->
    39                                         <h2 class="page-title" cryout_schema_microdata('author-name', 0)><?php echo __('Author:', 'verbosa') . ' <strong' . cryout_schema_microdata('author-name', 0) . '>' . esc_attr( get_the_author() ) . '</strong>'; ?></h2>
     39                                        <h2 class="page-title" <?php cryout_schema_microdata('author-name', 0) ?>><?php echo __('Author:', 'verbosa') . ' <strong' . cryout_schema_microdata('author-name', 0) . '>' . esc_attr( get_the_author() ) . '</strong>'; ?></h2>
    4040                                       
    4141                                <?php // If a user has filled out their description, show a bio on their entries.
  • verbosa/0.9.1/content/content-index.php

    r357746 r357746  
    88<div id="container" class="<?php echo verbosa_get_layout_class(); ?>">
    99        <?php verbosa_header_section() ?>
    10         <main id="main" role="main" <?php cryout_schema_microdata('main'); ?>>
     10        <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> class="main">
    1111        <?php cryout_before_content_hook(); ?>
    1212                               
  • verbosa/0.9.1/cryout/admin-functions.php

    r357746 r357746  
    44 * @since Cryout 0.5.1
    55 */
    6  
    7 // generic functions
    8  
    9 function cryout_export_options(){
    10 
    11     if (ob_get_contents()) ob_clean();
    12 
    13         /* Check authorisation */
    14         $authorised = true;
    15         // Check nonce
    16         if ( ! wp_verify_nonce( $_POST[_CRYOUT_THEME_NAME.'-export'], _CRYOUT_THEME_NAME.'-export' ) ) {
    17                 $authorised = false;
    18         }
    19         // Check permissions
    20         if ( ! current_user_can( 'edit_theme_options' ) ){
    21                 $authorised = false;
    22         }
    23 
    24         if ( $authorised) {
    25        
    26         date_default_timezone_set('UTC');
    27         $name = _CRYOUT_THEME_NAME.'settings-'.preg_replace("/[^a-z0-9-_]/i",'',preg_replace("/https?\:\/\//","",get_option('siteurl'))).'-'.date('Ymd-His').'.xml';
    28                 $data = cryout_get_theme_options();
    29                 $data[_CRYOUT_THEME_NAME . '_version'] = _CRYOUT_THEME_VERSION;
    30                 //$data = json_encode( $data );
    31                 //$size = strlen( $data );
    32                 $xml = Cryout_Array2XML::createXML(_CRYOUT_THEME_NAME . '-settings', $data);
    33 
    34                 header( 'Content-Type: text/xml' );
    35                 header( 'Content-Disposition: attachment; filename="'.$name.'"' );
    36                 header( "Content-Transfer-Encoding: binary" );
    37                 header( 'Accept-Ranges: bytes' );
    38 
    39                 /* The three lines below basically make the download non-cacheable */
    40                 header( "Cache-control: private" );
    41                 header( 'Pragma: private' );
    42                 header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
    43 
    44                 //header( "Content-Length: " . sizeof($xml) );
    45                 print ( $xml->saveXML() );
    46 }
    47 die();
    48 } // cryout_export_options()
    49 
    50 /**
    51  * This file manages the theme settings uploading and import operations.
    52  * Uses the theme page to create a new form for uplaoding the settings
    53  * Uses WP_Filesystem
    54 */
    55 function cryout_import_form(){
    56 
    57     $bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );
    58     $size = size_format( $bytes );
    59     $upload_dir = wp_upload_dir();
    60     if ( ! empty( $upload_dir['error'] ) ) :
    61         ?><div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:', 'cryout'); ?></p>
    62             <p><strong><?php echo $upload_dir['error']; ?></strong></p></div><?php
    63     else :
    64     ?>
    65         <style>.notice, div.error, div.updated {max-width: 400px;padding: 1em; margin: 2em 2em 0 2em;}</style>
    66     <div class="wrap">
    67                 <div style="display: inline-block; margin: 2em; padding: 2em; background: #fff;">
    68         <div id="icon-tools" class="icon32"><br></div>
    69         <h2><?php echo __( 'Import Customizer Theme Settings', 'cryout' );?></h2>
    70         <form enctype="multipart/form-data" id="import-upload-form" method="post" action="">
    71                 <p><?php _e('<em> Please remember that this is still an experimental feature.</em>', 'cryout'); ?></p>
    72             <p>
    73                 <label for="upload"><strong><?php _e('Choose an XML file:', 'cryout'); ?> </strong><i>(<?php echo _CRYOUT_THEME_NAME; ?>-settings.xml)</i></label><br><br>
    74                        <input type="file" id="upload" name="import" size="25"  />
    75                                 <span style="font-size:11px;">(<?php  printf( __( 'Maximum size: %s', 'cryout' ), $size ); ?> )</span>
    76                 <input type="hidden" name="action" value="save" />
    77                 <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
    78                 <?php wp_nonce_field(_CRYOUT_THEME_NAME.'-import', _CRYOUT_THEME_NAME.'-import'); ?>
    79                 <input type="hidden" name="cryout_import_confirmed" value="true" />
    80             </p><br>
    81             <input type="submit" class="button" value="<?php _e('Import', 'cryout'); ?>" style="display: table; margin: 0 auto;"/>
    82         </form>
    83         </div>
    84     </div> <!-- end wrap -->
    85     <?php
    86     endif;
    87 } // cryout_import_form()
    88 
    89 /**
    90  * This actual import of the options from the file to the settings array.
    91 */
    92 function cryout_import_file() {
    93 
    94         $theme_settings = cryout_get_theme_options();
    95 
    96     /* Check authorisation */
    97     $authorised = true;
    98     // Check nonce
    99     if (!wp_verify_nonce($_POST[_CRYOUT_THEME_NAME.'-import'], _CRYOUT_THEME_NAME.'-import')) {$authorised = false;}
    100     // Check permissions
    101     if (!current_user_can('edit_theme_options')){ $authorised = false; }
    102 
    103     // If the user is authorised, import the theme's options to the database
    104     if ($authorised) {?>
    105         <?php
    106         // make sure there is an import file uploaded
    107         if ( (isset($_FILES["import"]["size"]) &&  ($_FILES["import"]["size"] > 0) ) ) {
    108 
    109                         $form_fields = array('import');
    110                         $method = '';
    111 
    112                         $url = wp_nonce_url('themes.php?page='._CRYOUT_THEME_NAME.'-page', _CRYOUT_THEME_NAME.'-import');
    113 
    114                         // Get file writing credentials
    115                         if (false === ($creds = request_filesystem_credentials($url, $method, false, false, $form_fields) ) ) {
    116                                 return true;
    117                         }
    118 
    119                         if ( ! WP_Filesystem($creds) ) {
    120                                 // our credentials were no good, ask the user for them again
    121                                 request_filesystem_credentials($url, $method, true, false, $form_fields);
    122                                 return true;
    123                         }
    124 
    125                         // Write the file if credentials are good
    126                         $upload_dir = wp_upload_dir();
    127                         $filename = trailingslashit($upload_dir['path'])._CRYOUT_THEME_NAME.'-settings-import-'.date('Ymd-His').'.xml';
    128 
    129                         // by this point, the $wp_filesystem global should be working, so let's use it to create a file
    130                         global $wp_filesystem;
    131                         if ( ! $wp_filesystem->move($_FILES['import']['tmp_name'], $filename, true) ) {
    132                                 echo 'Error saving file!';
    133                                 return;
    134                         }
    135 
    136                         $file = $_FILES['import'];
    137 
    138                         if ($file['type'] == 'text/xml') {
    139 
    140                                 $data = $wp_filesystem->get_contents($filename);
    141                                 // try to read the file
    142                                 if ($data !== FALSE){
    143                                         //$settings = json_decode($data, true);
    144                                         $settings = Cryout_XML2Array::createArray($data);
    145                                         $settings = $settings["verbosa-settings"];
    146                                         // try to read the settings array
    147                                         if (isset($settings[_CRYOUT_THEME_NAME . '_db'])){ ?>
    148         <div class="wrap">
    149         <div id="icon-tools" class="icon32"><br></div>
    150         <h2><?php echo __( 'Import Theme Options ', 'cryout' );?></h2> <?php
    151                                                 $settings = array_merge($theme_settings, $settings);
    152                                                 update_option(_CRYOUT_THEME_NAME.'_settings', $settings);
    153                                                 echo '<div class="updated fade"><p>'. __('Great! The options have been imported!', 'cryout').'<br />';
    154                                                 echo '<a href="themes.php?page=about-'._CRYOUT_THEME_NAME.'-theme">'.__('Go back to the theme settings page and check them out!', 'cryout').'<a></p></div>';
    155                                         }
    156                                         else { // else: try to read the settings array
    157                                                 echo '<div class="error"><p><strong>'.__('Oops, there\'s a small problem.', 'cryout').'</strong><br />';
    158                                                 echo __('The uploaded file does not contain valid theme options. Make sure the file is exported from the theme options page.', 'cryout').'</p></div>';
    159                                                 cryout_import_form();
    160                                         }
    161                                 }
    162                                 else { // else: try to read the file
    163                                         echo '<div class="error"><p><strong>'.__('Oops, there\'s a small problem.', 'cryout').'</strong><br />';
    164                                         echo __('The uploaded file could not be read.', 'cryout').'</p></div>';
    165                                         cryout_import_form();
    166                                 }
    167                         }
    168                         else { // else: make sure the file uploaded was a plain text file
    169                                 echo '<div class="error"><p><strong>'.__('Oops, there\'s a small problem.', 'cryout').'</strong><br />';
    170                                 echo __('The uploaded file is not supported. Make sure the file was exported from the theme settings page and that it is an XML file.', 'cryout').'</p></div>';
    171                                 cryout_import_form();
    172                         }
    173 
    174                         // Delete the file after we're done
    175                         $wp_filesystem->delete($filename);
    176 
    177         }
    178         else { // else: make sure there is an import file uploaded
    179             echo '<div class="error"><p>'.__( 'Oops! The file is empty or there was no file. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.', 'cryout' ).'</p></div>';
    180                         cryout_import_form();
    181         }
    182         echo '</div> <!-- end wrap -->';
    183     }
    184     else {
    185         wp_die(__('ERROR: You are not authorised to perform that operation', 'cryout'));
    186     }
    187 } // cryout_import_file()
    1886
    1897// Truncate function for use in the Admin RSS feed
    … …  
    19513add_action('wp_ajax_feed_action', 'cryout_fetch_feed');
    19614function cryout_fetch_feed() {
    197        
     15
    19816        $theme_news = fetch_feed( array( 'http://www.cryoutcreations.eu/cat/'._CRYOUT_THEME_NAME.'/feed/') );
    19917        $maxitems = 0;
    … …  
    21129                                                        <a class="news-more" target="_blank" href='<?php echo esc_url( $news_item->get_permalink() ); ?>'><?php _e('Read the full post','cryout');?> &#8594;</a>
    21230                        </li>
    213                                                 <?php endforeach; 
     31                                                <?php endforeach;
    21432                                endif; ?>
    21533          </ul>
    216 <?php 
     34<?php
    21735die();
    21836} // cryout_fetch_feed()
    219 
    220 // Gather sys info for debug
    221 /* Inspired by Easy Digital Download plugin by Pippin Williamson */
    222 function cryout_sysinfo($echo=true) {
    223         ob_start();
    224         ?>
    225         <div class="wrap">
    226         <h3><?php _e( 'Debug Information', 'cryout' ); ?></h3>
    227         <p><?php _e( 'Please include the debug information when creating a support request or posting to the forum.' , 'cryout' ) ?></p>
    228        
    229         <textarea readonly="readonly" onclick="this.focus();" id="cryout-sysinfo" name="cryout-sysinfo" title="" rows="10">
    230 General Information
    231 -------------------
    232 Website URL            : <?php echo site_url() . "\n"; ?>
    233 Home URL               : <?php echo home_url() . "\n"; ?>
    234 Multisite              : <?php echo ( is_multisite() ? 'Yes' : 'No' ) . "\n" ?>
    235 
    236 Theme                  : <?php printf( '%1$s v%2$s', _CRYOUT_THEME_NAME, _CRYOUT_THEME_VERSION ); echo "\n"; ?>
    237 <?php if ( get_stylesheet_directory() != get_template_directory() ) { $child_theme = wp_get_theme(); ?>
    238 Child Theme            : <?php printf( '%1$s v%2$s', $child_theme->get('Name'), $child_theme->get('Version') ); echo "\n" ?>
    239 <?php }; ?>
    240 WordPress              : <?php echo get_bloginfo( 'version' ) . "\n"; ?>
    241 Language               : <?php echo get_bloginfo( 'language' ) . (is_RTL() ? ' (RTL)' : '') . "\n" ; ?>
    242 jQuery                 : jQuery not detected
    243 Permalinks             : <?php echo get_option( 'permalink_structure' ) . "\n"; ?>
    244 WP_DEBUG               : <?php echo defined( 'WP_DEBUG' ) ? WP_DEBUG ? 'On' . "\n" : 'Off' . "\n" : 'Undefined' . "\n" ?>
    245 
    246 Show On Front          : <?php echo get_option( 'show_on_front' ) . "\n" ?>
    247 Page On Front          : <?php $id = get_option( 'page_on_front' ); echo get_the_title( $id ) . ' ID=' . $id . '' . "\n" ?>
    248 Page For Posts         : <?php $id = get_option( 'page_for_posts' ); echo get_the_title( $id ) . ' ID=' . $id . '' . "\n" ?>
    249 
    250 PHP                    : <?php echo PHP_VERSION . "\n"; ?>
    251 MySQL                  : <?php echo @mysql_get_server_info() . "\n"; ?>
    252 Server                 : <?php echo $_SERVER['SERVER_SOFTWARE'] . "\n"; ?>
    253 
    254 WordPress Memory Limit : <?php echo WP_MEMORY_LIMIT; echo "\n"; ?>
    255 PHP Safe Mode          : <?php echo ini_get( 'safe_mode' ) ? "Yes" : "No\n"; ?>
    256 PHP Memory Limit       : <?php echo ini_get( 'memory_limit' ) . "\n"; ?>
    257 PHP Upload Max Size    : <?php echo ini_get( 'upload_max_filesize' ) . "\n"; ?>
    258 PHP Post Max Size      : <?php echo ini_get( 'post_max_size' ) . "\n"; ?>
    259 PHP Time Limit         : <?php echo ini_get( 'max_execution_time' ) . "\n"; ?>
    260 PHP Max Input Vars     : <?php echo ini_get( 'max_input_vars' ) . "\n"; ?>
    261 PHP Allow URL FOpen    : <?php echo ini_get( 'allow_url_fopen' ) ? "Yes\n" : "No\n"; ?>
    262 
    263 Currently active plugins
    264 ------------------------
    265 <?php
    266         $plugins = get_plugins();
    267         $active_plugins = get_option( 'active_plugins', array() );
    268 
    269         foreach ( $plugins as $plugin_path => $plugin ) {
    270           // If the plugin isn't active, don't show it.
    271           if ( ! in_array( $plugin_path, $active_plugins ) )
    272                 continue;
    273 
    274           echo $plugin['Name'] . ': ' . $plugin['Version'] ."\n";
    275         }
    276 
    277         if ( is_multisite() ) :
    278         $plugins = wp_get_active_network_plugins();
    279         $active_plugins = get_site_option( 'active_sitewide_plugins', array() );
    280 
    281         foreach ( $plugins as $plugin_path ) {
    282           $plugin_base = plugin_basename( $plugin_path );
    283 
    284           // If the plugin isn't active, don't show it.
    285           if ( ! array_key_exists( $plugin_base, $active_plugins ) )
    286                 continue;
    287 
    288           $plugin = get_plugin_data( $plugin_path );
    289 
    290           echo $plugin['Name'] . ' :' . $plugin['Version'] . " (multisite)\n";
    291         }
    292 
    293         endif;
    294 ?>
    295 --
    296         </textarea>
    297         </div> <?php
    298         $output = ob_get_contents();
    299         ob_end_clean();
    300         if ($echo) echo $output; else return $output;
    301 } // cryout_sysinfo()
  • verbosa/0.9.1/cryout/css/customizer.css

    r357746 r357746  
    1313        margin-left: 0 !important;
    1414        width: 40% !important; }
    15 
     15/* wp 4.5+ */
     16.wp-full-overlay .wp-full-overlay-footer { transition: width .2s; }
     17.wp-full-overlay.cryout-maximized .wp-full-overlay-footer { width: 40% !important; }
     18.wp-full-overlay-footer .devices .cryout-expand-sidebar { float: left; position: static; }
     19.wp-full-overlay-footer .devices .cryout-expand-sidebar .collapse-sidebar-label { display: none; }
    1620       
    1721/* 1 */
    … …  
    96100}
    97101
     102#accordion-section-about .accordion-section-content {
     103        display: block;
     104}
     105#accordion-section-about .customize-cryout-about-link a {
     106        background: #fff;
     107        padding: 4px 10px;
     108        font-weight: bold;
     109}
     110
    98111/* Theme logo in Customizer >> About menu item */
    99112#accordion-panel-cryout-about-theme > .accordion-section-title::before {
    100         background: url(../../admin/images/logo-customizer.png) no-repeat;
     113        background: url(../../admin/images/logo-customizer.png) center right no-repeat;
    101114    content: "";
    102115    height: 22px;
    … …  
    104117    right: 40px;
    105118    top: 11px;
    106     width: 90px;
     119    min-width: 35%;
    107120}
    108121       
  • verbosa/0.9.1/cryout/customizer.php

    r357746 r357746  
    22/**
    33 * Custom WP Customizer functionality
    4  * @since Cryout 0.5.2
    54 */
    65
    … …  
    3029
    3130function cryout_customizer_sanitize_color($input){
    32         if ( preg_match('/#?([0-9a-f]{6}|[0-9a-f]{3})/i', $input, $ms) ) return '#' . $ms[1];
    33         return '';
     31        return sanitize_hex_color($input);
    3432} // cryout_customizer_sanitize_color()
    3533
    … …  
    6664                        public $type = 'about';
    6765                        public function render_content() {
    68                                 ?>
    69                 <label>
    70                     <?php if ( ! empty( $this->label ) ) : ?>
    71                         <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
    72                     <?php endif;
    73                     if ( ! empty( $this->description ) ) : ?>
    74                         <span class="description customize-control-description"><?php echo $this->description; ?></span>
    75                     <?php endif; ?>
    76                 </label>
    77                                 <?php
     66                                        if ( ! empty( $this->label ) ) { ?>
     67                        <span class="customize-control-title"><?php echo $this->label ?></span>
     68                                        <?php }
     69                                        if ( ! empty( $this->description ) ) { ?>
     70                        <span class="description customize-control-description cryout-nomove"><?php echo $this->description; ?></span>
     71                    <?php } ?>
     72                                        <span class="customize-control-content customize-cryout-about-link"><?php echo $this->value() ?></span>
     73                        <?php
    7874                        }
    7975        } // class Cryout_Customize_About_Control
    … …  
    8581                                echo '&nbsp;';
    8682                        }
    87         } // class Cryout_Customize_Link_Control
     83        } // class Cryout_Customize_Blank_Control
    8884       
    8985       
    … …  
    9389                        public function render_content() {
    9490                                $this->fonts = cryout_get_theme_structure('fonts');
    95                             ?>
    96                 <label>
    97                     <?php if ( ! empty( $this->label ) ) : ?>
    98                         <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
    99                     <?php endif;
    100                     if ( ! empty( $this->description ) ) : ?>
    101                         <span class="description customize-control-description"><?php echo $this->description; ?></span>
    102                     <?php endif; ?>
    103  
    104                     <select <?php $this->link(); ?>>
    105                         <?php
     91                                ?>
     92                                <label>
     93                                        <?php if ( ! empty( $this->label ) ) : ?>
     94                                                <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
     95                                        <?php endif;
     96                                        if ( ! empty( $this->description ) ) : ?>
     97                                                <span class="description customize-control-description"><?php echo $this->description; ?></span>
     98                                        <?php endif; ?>
     99
     100                                        <select <?php $this->link(); ?>>
     101                                                <?php
    106102                                                foreach ( $this->fonts as $fgroup => $fsubs ): ?>
    107103                                                        <optgroup label='<?php echo $fgroup; ?>'>
    … …  
    114110                                                        </optgroup>
    115111                                                <?php endforeach; // $this->fonts ?>
    116                     </select>
    117                 </label>
    118                 <?php
     112                                        </select>
     113                                </label>
     114                                <?php
    119115                        } // render_content()
     116                               
     117                        public function enqueue() {
     118                                wp_enqueue_script( 'jquery-ui-core' );
     119                                wp_enqueue_script( 'jquery-ui-slider' );
     120                                wp_enqueue_script( 'cryout-customizer-controls-js', get_template_directory_uri() . '/cryout/js/customizer-controls.js', array('jquery'), _CRYOUT_THEME_VERSION );
     121                                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 );   
     123                        } // enqueue()
    120124               
    121125        } // class Cryout_Customize_Font_Control
    … …  
    123127       
    124128        class Cryout_Customize_Slider_Control extends WP_Customize_Control {
    125                 public $type = 'slider';
    126                 public function __construct($manager, $id, $args = array(), $options = array()) {
    127                         parent::__construct( $manager, $id, $args );
    128                 } // __construct()
    129 
    130                 public function render_content() { ?>
    131                         <label>
    132                                 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?>:
    133                                         <strong class="value"><?php echo $this->value(); ?></strong><?php echo $this->input_attrs['um']; ?>
    134                                 </span>
    135                         </label>
    136                         <input name="<?php echo $this->id; ?>" type="number" <?php $this->link(); ?> value="<?php echo $this->value(); ?>" class="slider"
    137                                 step="<?php echo $this->input_attrs['step'] ?>" min="<?php echo $this->input_attrs['min'] ?>" max="<?php echo $this->input_attrs['max'] ?>" />
    138                         <div class="slider"></div>
    139                         <?php if ( ! empty( $this->description ) ) : ?>
    140                  <span class="description cryout-nomove customize-control-description"><?php echo $this->description; ?></span>
    141             <?php endif; ?>
    142                 <?php
    143                 } // render_content()
    144                
    145                 public function enqueue() {
    146                         wp_enqueue_script( 'jquery-ui-core' );
    147                         wp_enqueue_script( 'jquery-ui-slider' );
    148                         wp_enqueue_script( 'cryout-customizer-controls-js', get_template_directory_uri() . '/cryout/js/customizer-controls.js', array('jquery'), _CRYOUT_THEME_VERSION );
    149                         wp_enqueue_style( 'jquery-ui-slider', get_template_directory_uri() . '/cryout/css/jquery-ui.structure.css', NULL, _CRYOUT_THEME_VERSION );
    150                         wp_enqueue_style( 'jquery-ui-slider-theme', get_template_directory_uri() . '/cryout/css//jquery-ui.theme.css', NULL, _CRYOUT_THEME_VERSION );
    151                         $cryout_theme_structure = cryout_get_theme_structure();
    152                         $verbosas = cryout_get_option();
    153 
    154                         // google fonts enqueues for the font selectors preview
    155                         $gfonts = array();
    156                         $cryout_theme_structure = cryout_get_theme_structure();
    157                         $cryout_theme_options = cryout_get_option();
    158                         foreach ($cryout_theme_structure['google-font-enabled-fields'] as $item) {
    159                                 if ( preg_match('/^(.*)\/gfont$/i', $cryout_theme_options[$item], $bits) ) $gfonts[] = $bits[1];
    160                         };                     
    161                         if ( count($gfonts) ):
    162                                 wp_enqueue_style( 'cryout-googlefonts', '//fonts.googleapis.com/css?family=' . implode( "|" , array_unique($gfonts) ), null, _CRYOUT_THEME_VERSION );
    163                         endif; 
    164                 } // enqueue()
     129
     130        public $type = 'slider';
     131                        public function __construct($manager, $id, $args = array(), $options = array()) {
     132                                parent::__construct( $manager, $id, $args );
     133                        } // __construct()
     134
     135                        public function render_content() { ?>
     136                                <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']; ?>
     139                                        </span>
     140                                </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'] ?>" />
     143                                <div class="slider"></div>
     144                                <?php if ( ! empty( $this->description ) ) : ?>
     145                                         <span class="description cryout-nomove customize-control-description"><?php echo $this->description; ?></span>
     146                                <?php endif; ?>
     147                        <?php
     148                        } // render_content()
     149                       
     150                        public function enqueue() {
     151                                // google fonts enqueues for the font selectors preview
     152                                $gfonts = array();
     153                                $cryout_theme_structure = cryout_get_theme_structure();
     154                                $cryout_theme_options = cryout_get_option();
     155                                foreach ($cryout_theme_structure['google-font-enabled-fields'] as $item) {
     156                                        if ( preg_match('/^(.*)\/gfont$/i', $cryout_theme_options[$item], $bits) ) $gfonts[] = $bits[1];
     157                                };                     
     158                                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()         
    165162               
    166163        } // class Cryout_Customize_Slider_Control
    … …  
    168165       
    169166        class Cryout_Customize_SliderTwo_Control extends WP_Customize_Control {
    170                 public $type = 'slidertwo';
    171                 public function __construct($manager, $id, $args = array(), $options = array()) {
    172                         parent::__construct( $manager, $id, $args );
    173                 } // __construct()
    174 
    175                 public function render_content() { ?>
    176                         <label><span class="customize-control-title"><?php echo esc_html( $this->label ); ?>:
    177                                 <strong class="value"><?php echo $this->value(); ?></strong><?php echo $this->input_attrs['um']; ?> /
    178                                 <strong class="value2"><?php echo ( intval($this->input_attrs['total']) - intval($this->value()) ); ?></strong><?php echo $this->input_attrs['um']; ?>
    179                         </span></label>
    180                         <input name="<?php echo $this->id; ?>" type="number" <?php $this->link(); ?> value="<?php echo $this->value(); ?>" class="slidertwo"
    181                                 step="<?php echo $this->input_attrs['step'] ?>" min="<?php echo $this->input_attrs['min'] ?>"
    182                                 max="<?php echo $this->input_attrs['max'] ?>" size="<?php echo $this->input_attrs['total'] ?>"/>
    183                         <div class="slidertwo"></div>
    184                         <?php if ( ! empty( $this->description ) ) : ?>
    185                 <span class="description cryout-nomove customize-control-description"><?php echo $this->description; ?></span>
    186             <?php endif; ?>
    187                 <?php
    188                 } // render_content()
    189                
    190                 public function enqueue() {
    191                         wp_enqueue_script( 'jquery-ui-core' );
    192                         wp_enqueue_script( 'jquery-ui-slider' );
    193                         wp_enqueue_script( 'cryout-customizer-controls-js', get_template_directory_uri() . '/cryout/js/customizer-controls.js', array('jquery'), _CRYOUT_THEME_VERSION );
    194                         wp_enqueue_style( 'jquery-ui-slider', get_template_directory_uri() . '/cryout/css/jquery-ui.structure.css' );
    195                         wp_enqueue_style( 'jquery-ui-slider-theme', get_template_directory_uri() . '/cryout/css//jquery-ui.theme.css' );
    196                 } // enqueue()
     167                        public $type = 'slidertwo';
     168                        public function __construct($manager, $id, $args = array(), $options = array()) {
     169                                parent::__construct( $manager, $id, $args );
     170                        } // __construct()
     171
     172                        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']; ?>
     176                                </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'] ?>"/>
     180                                <div class="slidertwo"></div>
     181                                <?php if ( ! empty( $this->description ) ) : ?>
     182                                        <span class="description cryout-nomove customize-control-description"><?php echo $this->description; ?></span>
     183                                <?php endif; ?>
     184                        <?php
     185                        } // render_content()
     186                       
     187                        public function enqueue() {
     188                                wp_enqueue_script( 'jquery-ui-core' );
     189                                wp_enqueue_script( 'jquery-ui-slider' );
     190                                wp_enqueue_script( 'cryout-customizer-controls-js', get_template_directory_uri() . '/cryout/js/customizer-controls.js', array('jquery'), _CRYOUT_THEME_VERSION );
     191                                wp_enqueue_style( 'jquery-ui-slider', get_template_directory_uri() . '/cryout/css/jquery-ui.structure.css' );
     192                                wp_enqueue_style( 'jquery-ui-slider-theme', get_template_directory_uri() . '/cryout/css//jquery-ui.theme.css' );
     193                        } // enqueue()
    197194               
    198195        } // class Cryout_Customize_Slider_Control
    … …  
    200197       
    201198        class Cryout_Customize_RadioImage_Control extends WP_Customize_Control {
    202                 public $type = 'radioimage';
    203                 public function __construct($manager, $id, $args = array(), $options = array()) {
    204                         parent::__construct( $manager, $id, $args );
    205                 } // __construct()
    206                
    207                 public function render_content() {
    208                
    209             if ( empty( $this->choices ) ) return;
    210                        
    211                         $name = '_customize-imageradio-' . $this->id;  ?>
    212                        
    213                         <?php if ( ! empty( $this->label ) ) { ?> <span class="customize-control-title"><?php echo esc_html( $this->label ) ?></span> <?php } ?>                       
    214                        
    215                         <div class="buttonset"> <?php
    216                                 foreach ( $this->choices as $value => $data ) :
     199                        public $type = 'radioimage';
     200                        public function __construct($manager, $id, $args = array(), $options = array()) {
     201                                parent::__construct( $manager, $id, $args );
     202                        } // __construct()
     203                       
     204                        public function render_content() {
     205                       
     206                                if ( empty( $this->choices ) ) return;
    217207                               
    218                                                 $data['url'] = esc_url( sprintf( $data['url'], get_template_directory_uri(), get_stylesheet_directory_uri() ) );
    219                                                 ?>
    220                                                 <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 ); ?> />
    221                                                 <label for="<?php echo esc_attr( $name ) . "-" . $value; ?>">
    222                                                                 <img src="<?php echo $data['url'] ?>" alt="<?php echo esc_html( $data['label'] ) ?>" title="<?php echo esc_html( $data['label'] ) ?>"/>
    223                                                                 <span class="screen-reader-text"><?php echo esc_html( $data['label'] ); ?></span>
    224                                                 </label>
    225                                                 <?php
    226                                 endforeach; ?>
    227                         </div><!-- .buttonset -->
    228                        
    229                         <?php if ( ! empty( $this->description ) ) { ?> <span class="description cryout-nomove customize-control-description"><?php echo $this->description; ?></span><?php } ?>
    230                 <?php
    231                 } // render_content()
    232                
    233                 public function enqueue() {
    234                         wp_enqueue_script( 'jquery-ui-core' );
    235                         wp_enqueue_script( 'jquery-ui-button' );
    236                         wp_enqueue_script( 'cryout-customizer-controls-js', get_template_directory_uri() . '/cryout/js/customizer-controls.js', array('jquery'), _CRYOUT_THEME_VERSION );
    237                 }
     208                                $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
     213                                        foreach ( $this->choices as $value => $data ) :
     214                                       
     215                                                        $data['url'] = esc_url( sprintf( $data['url'], get_template_directory_uri(), get_stylesheet_directory_uri() ) );
     216                                                        ?>
     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'] ) ?>"/>
     220                                                                        <span class="screen-reader-text"><?php echo esc_html( $data['label'] ); ?></span>
     221                                                        </label>
     222                                                        <?php
     223                                        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
     228                        } // render_content()
     229                       
     230                        public function enqueue() {
     231                                wp_enqueue_script( 'jquery-ui-core' );
     232                                wp_enqueue_script( 'jquery-ui-button' );
     233                                wp_enqueue_script( 'cryout-customizer-controls-js', get_template_directory_uri() . '/cryout/js/customizer-controls.js', array('jquery'), _CRYOUT_THEME_VERSION );
     234                        }
    238235        } // class Cryout_Customize_RadioImage_Control
    239236
    … …  
    242239
    243240
    244         ////////// THE CUSTOMIZER CLASS /////////
     241////////// THE CUSTOMIZER CLASS /////////
    245242class Cryout_Customizer {
    246243       
    … …  
    252249                global $cryout_theme_settings;
    253250                global $cryout_theme_defaults;
     251               
     252                ////////// add about theme panel and sections //////////
     253                if (!empty($cryout_theme_settings['info_sections'])):
     254                $wp_customize->add_panel( 'cryout-about-theme', array(
     255                        'priority'       => 0,
     256                        'title'          => sprintf( __( 'About %s', 'cryout' ), ucwords(_CRYOUT_THEME_NAME) ),
     257                        'description'    => sprintf( __( '%1$s by %1$s', 'cryout' ), ucwords(_CRYOUT_THEME_NAME), 'Cryout Creations' ),
     258                ) );
     259                $section_priority = 10;
     260               
     261                foreach ($cryout_theme_settings['info_sections'] as $iid=>$info):
     262                        $wp_customize->add_section( $iid, array(
     263                                'title'          => $info['title'],
     264                                'description'    => $info['desc'],
     265                                'priority'       => $section_priority++,
     266                                'panel'  => 'cryout-about-theme',
     267                        ) );
     268                endforeach;
     269                endif; //!empty
     270
     271                foreach ($cryout_theme_settings['info_settings'] as $iid => $info):
     272                        $wp_customize->add_setting( $iid, array(
     273                                'default'        => $info['default'],
     274                                'capability'     => 'edit_theme_options',
     275                                'sanitize_callback' => 'cryout_customizer_sanitize_blank'
     276                        ) );
     277                        $wp_customize->add_control( new Cryout_Customize_About_Control( $wp_customize, $iid, array(
     278                                'label'          => $info['label'],
     279                                'description' => $info['desc'],
     280                                'section'        => $info['section'],
     281                                'default'        => $info['default'],
     282                                'settings'   => $iid,
     283                                'priority'   => 10,
     284                        ) ) );                         
     285                endforeach;             
     286                ////////// end about panel
     287               
     288                ////////// add custom theme options panels //////////
     289                $priority = 45;
     290                foreach ($cryout_theme_settings['panels'] as $panel):
     291
     292                        $identifier = ( !empty($panel['identifier'])? $panel['identifier'] : 'cryout-' );
     293                        $wp_customize->add_panel( $identifier . $panel['id'], array(
     294                          'title' => $panel['title'],
     295                          'description' => '',
     296                          'priority' => $priority+=5,
     297                        ) );           
     298               
     299                endforeach;
     300               
     301                ////////// add custom theme options sections, settings and empty placeholder control //////////
     302                $section_priority = 60;
     303                foreach ($cryout_theme_settings['sections'] as $section):
     304               
     305                        // override section id to make it uniquely identifiable
     306                        $wp_customize->add_section( 'cryout-' . $section['id'], array(
     307                                'title'          => $section['title'],
     308                                'description'    => '', //__( '', 'cryout' ),
     309                                'priority'       => ( isset($section['priority']) ? $section['priority'] : $section_priority+=5 ),
     310                                'panel'                  => ($section['sid']?'cryout-' . $section['sid']:''),
     311                        ) );
     312                       
     313                        $wp_customize->add_setting( 'placeholder_'.$section_priority, array(
     314                                'default'        => '',
     315                                'capability'     => 'edit_theme_options',
     316                                'sanitize_callback' => 'cryout_customizer_sanitize_blank'
     317                        ) );   
     318                       
     319                        // override section id to make it uniquely identifiable
     320                        $wp_customize->add_control( new Cryout_Customize_Blank_Control( $wp_customize, 'placeholder_'.$section_priority, array(
     321                                'section' => 'cryout-' . $section['id'],
     322                                'settings'   => 'placeholder_'.$section_priority,
     323                                'priority'   => 10,
     324                        ) ) );         
     325                       
     326                endforeach;
     327                ////////// end option panels/sections
    254328               
    255329                ////////// override built-in wordpress customizer panels, if set //////////
    … …  
    274348                                        break;
    275349                                case 'section': // move built-in setting to theme panel
    276                                         $wp_customize->get_section( $pover['replaces'] )->panel = 'cryout-' . $pover['section'];       
     350                                        $wp_customize->get_section( $pover['replaces'] )->panel = $pover['section'];   
    277351                                        $wp_customize->get_section( $pover['replaces'] )->priority = $pover['priority2'];
    278352                                        break;
    … …  
    290364                       
    291365                endforeach;
    292 
    293                 ////////// add about theme panel and sections //////////
    294                 if (!empty($cryout_theme_settings['info_sections'])):
    295                 $wp_customize->add_panel( 'cryout-about-theme', array(
    296                         'priority'       => 0,
    297                         'title'          => sprintf( __( 'About %s', 'cryout' ), ucwords(_CRYOUT_THEME_NAME) ),
    298                         'description'    => sprintf( __( '%1$s by %1$s', 'cryout' ), ucwords(_CRYOUT_THEME_NAME), 'Cryout Creations' ),
    299                 ) );
    300                 $section_priority = 10;
    301                
    302                 foreach ($cryout_theme_settings['info_sections'] as $iid=>$info):
    303                         $wp_customize->add_section( $iid, array(
    304                                 'title'          => $info['title'],
    305                                 'description'    => $info['desc'],
    306                                 'priority'       => $section_priority++,
    307                                 'panel'  => 'cryout-about-theme',
    308                         ) );
    309                 endforeach;
    310                 endif; //!empty
    311                
    312                 foreach ($cryout_theme_settings['info_settings'] as $iid => $info):
    313                         $wp_customize->add_setting( $iid, array(
    314                                 'default'        => $info['default'],
    315                                 'capability'     => 'edit_theme_options',
    316                                 'sanitize_callback' => 'cryout_customizer_sanitize_blank'
    317                         ) );
    318                         $wp_customize->add_control( new Cryout_Customize_Link_Control( $wp_customize, $iid, array(
    319                                 'label'   => $info['label'],
    320                                 'description'   => $info['desc'],
    321                                 'section' => $info['section'],
    322                                 'settings'   => $iid,
    323                                 'priority'   => 10,
    324                         ) ) );                         
    325                 endforeach;             
    326                 ////////// end about panel
    327                
    328                 ////////// add custom theme options panels //////////
    329                 $priority = 50;
    330                 foreach ($cryout_theme_settings['panels'] as $section):
    331 
    332                         $wp_customize->add_panel( 'cryout-' . $section['id'], array(
    333                           'title' => $section['title'],
    334                           'description' => '',
    335                           'priority' => $priority++,
    336                         ) );           
    337                
    338                 endforeach;
    339                
    340                 ////////// add custom theme options sections, settings and empty placeholder control //////////
    341                 $section_priority = 50;
    342                 foreach ($cryout_theme_settings['sections'] as $field):
    343                
    344                         // override field id to make it uniquely identifiable
    345                         $wp_customize->add_section( 'cryout-' . $field['id'], array(
    346                                 'title'          => $field['title'],
    347                                 'description'    => '', //__( '', 'cryout' ),
    348                                 'priority'       => ( isset($field['priority']) ? $field['priority'] : $section_priority++ ),
    349                                 'panel'                  => ($field['sid']?'cryout-' . $field['sid']:''),
    350                         ) );
    351                        
    352                         $wp_customize->add_setting( 'placeholder_'.$section_priority, array(
    353                                 'default'        => '',
    354                                 'capability'     => 'edit_theme_options',
    355                                 'sanitize_callback' => 'cryout_customizer_sanitize_blank'
    356                         ) );   
    357                        
    358                         // override section id to make it uniquely identifiable
    359                         $wp_customize->add_control( new Cryout_Customize_Blank_Control( $wp_customize, 'placeholder_'.$section_priority, array(
    360                                 'section' => 'cryout-' . $field['id'],
    361                                 'settings'   => 'placeholder_'.$section_priority,
    362                                 'priority'   => 10,
    363                         ) ) );         
    364                        
    365                 endforeach;
    366                 ////////// end option panels/sections
    367366               
    368367                ////////// add custom theme option controls, based on option type //////////
    369368                foreach ($cryout_theme_settings['options'] as $opt):
     369               
     370                        // check if option should be visible on this wp version
     371                        if ( !empty( $opt['disable_if'] ) ) {
     372                                if ( function_exists($opt['disable_if']) ) continue;                           
     373                        }       
     374                        if ( !empty( $opt['require_fn'] ) ) {
     375                                if ( ! function_exists($opt['require_fn']) ) continue;                         
     376                        }       
    370377               
    371378                        ////////// sanitizer function callback select
    … …  
    556563        wp_enqueue_style( 'cryout-customizer-css', get_template_directory_uri() . '/cryout/css/customizer.css', array(), _CRYOUT_FRAMEWORK_VERSION );
    557564        wp_enqueue_script( 'cryout-customizer-js', get_template_directory_uri() . '/cryout/js/customizer.js', array( 'jquery' ), _CRYOUT_FRAMEWORK_VERSION, true );
    558         //wp_enqueue_style( 'cryout-genericons', get_template_directory_uri() . '/cryout/css/genericons.css', array(), _CRYOUT_FRAMEWORK_VERSION );
    559565}
    560566add_action('customize_controls_enqueue_scripts', 'cryout_customizer_enqueue_scripts');
  • verbosa/0.9.1/cryout/framework.php

    r357746 r357746  
    22/**
    33 * @package Cryout Framework
    4  * @version 0.5.2
    5  * @revision 20160207
    6  * @author  Cryout Creations - www.cryoutcreations.eu
     4 * @version 0.5.5
     5 * @revision 20160525
     6 * @author Cryout Creations - www.cryoutcreations.eu
    77 */
    8  
     8
    99define('_CRYOUT_FRAMEWORK_VERSION', '0.5.5');
    1010
    … …  
    1717require_once(get_template_directory() . "/cryout/prototypes.php");
    1818require_once(get_template_directory() . "/cryout/customizer.php");
    19 require_once(get_template_directory() . "/cryout/widgets.php");
    2019require_once(get_template_directory() . "/cryout/ajax.php");
    21 @include_once(get_template_directory() . "/cryout/_autoupdate.php"); // temporary for on-site release until approved in the repo
    2220
    2321if( is_admin() ) {
    2422        // Admin functionality
    2523        require_once(get_template_directory() . "/cryout/admin-functions.php");
    26         require_once(get_template_directory() . "/cryout/settings-xml.php");
    2724}
    2825
  • verbosa/0.9.1/cryout/js/customizer.js

    r357746 r357746  
    33
    44var innerHTML = '<button class="collapse-sidebar cryout-expand-sidebar button-secondary" aria-expanded="true" aria-label="' + _label_max + '" href="#">\
    5         <span class="collapse-sidebar-arrow"></span>\
    65        <span class="collapse-sidebar-label">' + _label_max + '</span>\
     6                <span class="collapse-sidebar-arrow" title="' + _label_max + '"></span>\
    77</button> ';
    88
    … …  
    1111
    1212        jQuery('#customize-theme-controls .customize-control-description:not(.cryout-nomove)').each(function() {
    13                 jQuery(this).insertAfter(jQuery(this).parent().children('.customize-control-content, select, input:not(input[type=checkbox]), .buttonset'));
     13                        jQuery(this).insertAfter(jQuery(this).parent().children('.customize-control-content, select, input:not(input[type=checkbox]), .buttonset'));
    1414        });
    1515       
    16         jQuery('#customize-footer-actions').append(innerHTML);
     16        if (jQuery('#customize-footer-actions .devices').length>0) {
     17        /* wp 4.5 or newer */
     18                jQuery('#customize-footer-actions .devices').prepend(innerHTML);
     19        } else {
     20                jQuery('#customize-footer-actions').append(innerHTML);
     21        }
    1722
    1823        jQuery('.collapse-sidebar:not(.cryout-expand-sidebar)').on( 'click', function( event ) {
  • verbosa/0.9.1/cryout/prototypes.php

    r357746 r357746  
    22/**
    33 * Framework prototypes
    4  * @since Cryout 0.5.2
     4 * @updated Cryout 0.5.5
    55 */
    66
    … …  
    185185 *      Returns the cleaned up Google font name to be displayed in the font list and used in custom styling
    186186 */
    187 function cryout_clean_gfont( $font, $identifier = '\/gfont$' ){
     187function cryout_clean_gfont( $font, $identifier = '(:\d+)?\/gfont$' ){
    188188        return preg_replace( "/$identifier/i", '', $font );
    189189} // cryout_clean_gfont()
    … …  
    224224 * Returns the first attached post image (or none if images were not uploaded directly to post).
    225225 */
    226 function cryout_post_first_image( $postID ) {
     226function cryout_post_first_image( $postID, $size = 'cryout-featured' ) {
    227227        $args = array(
    228228                'numberposts'   => 1,
    … …  
    239239        if ($attachments) {
    240240                foreach($attachments as $attachment) {
    241                         $image_attributes = wp_get_attachment_image_src( $attachment->ID, 'featured' ) ?
    242                                                                 wp_get_attachment_image_src( $attachment->ID, 'featured' ) :
     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];
  • verbosa/0.9.1/functions.php

    r357746 r357746  
    33 * Functions file - Calls all other required files
    44 *
    5  * PLEASE DO NOT EDIT ANY THEME FILES 
     5 * PLEASE DO NOT EDIT ANY THEME FILES
    66 * unless you are prepared to lose all changes on the next update
    77 *
    … …  
    99 */
    1010
    11 // variables for theme identification - do NOT edit unless you know what you are doing 
    12 define ("_CRYOUT_THEME_NAME", "verbosa"); 
    13 define ("_CRYOUT_THEME_VERSION", "0.9.0");
     11// variables for theme identification - do NOT edit unless you know what you are doing
     12define ("_CRYOUT_THEME_NAME", "verbosa");
     13define ("_CRYOUT_THEME_VERSION", "0.9.1");
    1414
    1515require_once(get_template_directory() . "/admin/main.php");             // Admin side
  • verbosa/0.9.1/includes/core.php

    r357746 r357746  
    3333        echo '<div class="identity">';
    3434        if ( in_array($verbosas['verbosa_siteheader'], array( 'logo', 'both' ) ) ) {
    35                 if ( !empty($verbosas['verbosa_logoupload']) ) :
    36                         $img = wp_get_attachment_image_src($verbosas['verbosa_logoupload'], 'full');
    37                         echo '<a id="logo" href="'.esc_url( home_url( '/' ) ).'" ><img title="" alt="" src="' . $img[0] . '" /></a>';
    38                 endif;
     35                echo verbosa_logo_helper($verbosas['verbosa_logoupload']);
    3936        }
    4037        if ( in_array($verbosas['verbosa_siteheader'], array('title', 'both') ) ) {
    … …  
    5148add_action ('cryout_branding_hook', 'verbosa_title_and_description');
    5249
     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');
     59                    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()
    5366
    5467/**
    … …  
    104117 * Footer Hook
    105118 */
    106 add_action('cryout_footer_hook', function() { 
     119add_action('cryout_master_footer_hook', 'verbosa_master_footer');
     120function verbosa_master_footer() { 
     121        do_action('cryout_footer_hook');
    107122        echo '<div id="site-copyright">' . cryout_get_option( 'verbosa_copyright' ) . '</div>';
    108123        echo '<div style="display:block;float:none;clear: both;font-size:.85em; text-align: center;">' . __("Powered by","verbosa") .
    … …  
    110125        echo 'Verbosa Theme by ' . 'Cryout Creations"> ' . 'Verbosa' .'</a> &amp; <a target="_blank" href="' . esc_url("http://wordpress.org/");
    111126        echo '" title="' . esc_attr("Semantic Personal Publishing Platform", "verbosa") . '"> ' . sprintf( " %s.", "WordPress" ) . '</a></div>';
    112 }, 20 );
    113 
    114 
    115 add_action('wp_ajax_nopriv_do_ajax', 'verbosa_ajax_function');
    116 add_action('wp_ajax_do_ajax', 'verbosa_ajax_function');
    117 
    118 if ( ! function_exists( 'verbosa_ajax_function' ) ) :
    119 function verbosa_ajax_function(){
    120         ob_clean();
    121 
    122    // the first part is a SWITCHBOARD that fires specific functions
    123    // according to the value of Query Var 'fn'
    124 
    125         switch($_REQUEST['fn']){
    126                 case 'get_latest_posts':
    127                         $output = verbosa_ajax_get_latest_posts($_REQUEST['count'],$_REQUEST['categName']);
    128                 break;
    129                 default:
    130                         $output = 'No function specified, check your jQuery.ajax() call';
    131                 break;
    132         }
    133 
    134         // at this point, $output contains some sort of valuable data!
    135         // Now, convert $output to JSON and echo it to the browser
    136         // That way, we can recapture it with jQuery and run our success function
    137 
    138         $output=json_encode($output);
    139         if(is_array($output)) { print_r($output); }
    140                          else { echo $output; }
    141         die;
    142 } // verbosa_ajax_function()
    143 endif;
    144 
    145 if ( ! function_exists( 'verbosa_ajax_get_latest_posts' ) ) :
    146 function verbosa_ajax_get_latest_posts($count,$categName){
    147         $testVar='';
    148         // The Query
    149         $the_query = new WP_Query( 'category_name='.$categName);
    150         // The Loop
    151         if ( $the_query->have_posts() ) :
    152                 while ( $the_query->have_posts() ) : $the_query->the_post();
    153                         $testVar .= the_title("<option>","</option>",0);
    154                 endwhile;
    155         endif;
    156         return $testVar;
    157 } // verbosa_ajax_get_latest_posts()
    158 endif;
     127}
     128
    159129
    160130if ( ! function_exists( 'verbosa_header_section' ) ) :
    … …  
    181151               
    182152                <?php get_sidebar('right'); ?>
    183                 <?php cryout_footer_hook(); ?>
     153                <?php cryout_master_footer_hook(); ?>
    184154               
    185155                </div><!--sidebar-->
    … …  
    481451                'verbosa_searchboxmain',
    482452                'verbosa_searchboxfooter',
    483                 'verbosa_comlabels')
     453                'verbosa_comlabels',
     454                'verbosa_socials_header_above',
     455                'verbosa_socials_header_below',
     456                'verbosa_socials_sidebar',
     457                )
    484458        );
    485459        if ( $verbosa_interim_options['verbosa_breadcrumbs'] )  add_action('cryout_before_content_hook', 'verbosa_breadcrumbs');
    … …  
    489463                add_filter('comment_form_field_comment', 'verbosa_comments_form_textarea');
    490464        }
     465       
     466        if ( $verbosa_interim_options['verbosa_socials_header_above'] ) add_action('cryout_branding_hook', 'verbosa_socials_menu_header_above', 5);
     467        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       
    491470};
    492471endif;
  • verbosa/0.9.1/includes/custom-styles.php

    r357746 r357746  
    7575#container.one-column                                           { }
    7676#container.two-columns-left #sidebar            { float: left; }
    77 #container.two-columns-left #main                       { width: calc(<?php echo 97-(int)$colPadding ?>% - <?php echo $verbosa_sidebar; ?>px); float: left; margin-left: 3%; }
     77#container.two-columns-left .main                       { width: calc(<?php echo 97-(int)$colPadding ?>% - <?php echo $verbosa_sidebar; ?>px); float: left; margin-left: 3%; }
    7878#container.two-columns-left #sidebar-back       { width: calc( 50% - <?php echo (($verbosa_sitewidth)/2 - $verbosa_sidebar); ?>px); min-width: <?php echo $verbosa_sidebar;?>px;}
    7979#container.two-columns-right #sidebar           { float: right; }
    80 #container.two-columns-right #main                      { width: calc(<?php echo 97-(int)$colPadding ?>% - <?php echo $verbosa_sidebar; ?>px); float: right; margin-right: 3%; }
     80#container.two-columns-right .main                      { width: calc(<?php echo 97-(int)$colPadding ?>% - <?php echo $verbosa_sidebar; ?>px); float: right; margin-right: 3%; }
    8181#container.two-columns-right #sidebar-back      { left: auto; right: 0; width: calc( 50% - <?php echo (($verbosa_sitewidth)/2 - $verbosa_sidebar); ?>px); min-width: <?php echo $verbosa_sidebar;?>px;}
    8282
    … …  
    135135                                                                                          color: <?php echo esc_html($verbosa_sidebarbackground) ?>;}
    136136
    137 article.hentry, #main > div:not(#content-masonry), .comment-header,
    138 #main > header, #main > nav#nav-below, .pagination span, .pagination a, #nav-old-below, .content-widget
     137article.hentry, .main > div:not(#content-masonry), .comment-header,
     138.main > header, .main > nav#nav-below, .pagination span, .pagination a, #nav-old-below, .content-widget
    139139                                                                                        { background-color: <?php echo esc_html($verbosa_contentbackground) ?>; }
    140140#sidebar-back, #sidebar                                         { background-color: <?php echo esc_html($verbosa_sidebarbackground) ?>; }
    … …  
    167167.socials a:after                                                        { background-color: <?php echo esc_html($verbosa_accent2); ?>; }
    168168
    169 
    170169#commentform                                                            { <?php if ($verbosa_comformwidth) { echo 'max-width:' . esc_html($verbosa_comformwidth) . 'px;';}?>}
    171170
    … …  
    175174.page-link > span > em                                          { background-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,17)) ?>; }
    176175
    177 .verbosa-caption-one #main .wp-caption .wp-caption-text         { border-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,17)) ?>; }
    178 .verbosa-caption-two #main .wp-caption .wp-caption-text         { background-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,10)) ?>; }
     176.verbosa-caption-one .main .wp-caption .wp-caption-text         { border-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,17)) ?>; }
     177.verbosa-caption-two .main .wp-caption .wp-caption-text         { background-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,10)) ?>; }
    179178
    180179.verbosa-image-one .entry-content img[class*="align"],
    … …  
    188187
    189188#sidebar .searchform                                            { border-color: <?php echo esc_html( cryout_hexdiff($verbosa_sidebarbackground, 17) ) ?>; }
    190 #main .searchform                                                       { border-color: <?php echo esc_html( cryout_hexdiff($verbosa_contentbackground, 17) ) ?>;
     189.main .searchform                                                       { border-color: <?php echo esc_html( cryout_hexdiff($verbosa_contentbackground, 17) ) ?>;
    191190                                                                                          background-color: <?php echo esc_html($verbosa_contentbackground) ?>;}
    192191.searchform .searchsubmit                                       { color: <?php echo esc_html($verbosa_metatext); ?>;}
    … …  
    246245/////////// LAYOUT ///////////
    247246/*if ($verbosa_tables) { ?>
    248         #main table, #main tr, #main tr th, #main thead th, #main tr td, #main tr.even { background:none; border:none; color:inherit; }
     247        .main table, .main tr, .main tr th, .main thead th, .main tr td, .main tr.even { background:none; border:none; color:inherit; }
    249248<?php }*/ ?>
    250 #main .entry-content, #main .entry-summary      { text-align: <?php echo esc_html($verbosa_textalign) ?>; }
    251 #main p, #main ul, #main ol, #main dd, #main pre, #main hr
     249.main .entry-content, .main .entry-summary      { text-align: <?php echo esc_html($verbosa_textalign) ?>; }
     250.main p, .main ul, .main ol, .main dd, .main pre, .main hr
    252251                                                                                        { margin-bottom: <?php echo esc_html($verbosa_paragraphspace) ?>; }
    253 #main p                                                                         { text-indent: <?php echo esc_html($verbosa_parindent) ?>;}
    254 #main a.post-featured-image                             { background-position: <?php echo esc_html($verbosa_falign) ?>; }
    255 #main .featured-bar                                                     { height: <?php echo esc_html($verbosa_fbar); ?>px;
     252.main p                                                                         { text-indent: <?php echo esc_html($verbosa_parindent) ?>;}
     253.main a.post-featured-image                             { background-position: <?php echo esc_html($verbosa_falign) ?>; }
     254.main .featured-bar                                                     { height: <?php echo esc_html($verbosa_fbar); ?>px;
    256255                                                                                          background-color: <?php echo esc_html($verbosa_accent2);?>;}
    257256
    258 #main                                                                           { margin-top: <?php echo esc_html($verbosa_contentmargintop) ?>px; }
     257.main                                                                           { margin-top: <?php echo esc_html($verbosa_contentmargintop) ?>px; }
    259258<?php if ($verbosa_fpost) { ?>
    260 .verbosa-cropped-featured #main .post-thumbnail-container
     259.verbosa-cropped-featured .main .post-thumbnail-container
    261260                                                                                        { height: <?php echo esc_html($verbosa_fheight) ?>px; }
    262 .verbosa-responsive-featured #main .post-thumbnail-container
     261.verbosa-responsive-featured .main .post-thumbnail-container
    263262                                                                                        { max-height: <?php echo esc_html($verbosa_fheight) ?>px; height: auto; }
    264263<?php } ?>
    … …  
    287286#branding img.header-image                              { max-height: <?php echo esc_html($verbosa_headerheight) ?>px; }
    288287<?php if (! display_header_text() ) { ?>
    289         #site-title                                                     { display: none; }
     288        #site-title, #site-description          { display: none; }
    290289<?php };
    291290 // end </style>
  • verbosa/0.9.1/includes/hooks.php

    r357746 r357746  
    6363*/
    6464
    65 // Footer hook
    66 function cryout_footer_hook() { ?>
     65// Footer hook is handled in core master footer
     66
     67// Master Footer hook
     68function cryout_master_footer_hook() { ?>
    6769        <footer id="footer" role="contentinfo" <?php cryout_schema_microdata('footer');?>>
    6870                <div id="footer-inside">
    69                         <?php do_action('cryout_footer_hook'); ?>
     71                        <?php do_action('cryout_master_footer_hook'); ?>
    7072                </div> <!-- #footer-inside -->
    7173        </footer><!-- #footer -->
    7274<?php   
    7375}
    74 
    7576
    7677/**
  • verbosa/0.9.1/includes/loop.php

    r357746 r357746  
    160160function verbosa_posted_after() {
    161161        edit_post_link( __( 'Edit', 'verbosa' ), '<span class="edit-link icon-metas"><i class="icon-pencil2 icon-metas"></i> ', '</span>' );
    162         cryout_post_footer_hook(); /* ?!? */
     162        //cryout_post_footer_hook(); /* ?!? */
    163163       
    164164}; // verbosa_posted_after()
    … …  
    172172        add_action( 'cryout_post_meta_hook', 'verbosa_posted_after', 99 );
    173173        add_action( 'cryout_post_after_content_hook', 'verbosa_posted_tags' );
     174        add_action( 'cryout_post_footer_hook', 'verbosa_posted_tags' );
    174175}
    175176add_action('wp_head','verbosa_meta_infos');
    … …  
    216217        if ( function_exists("has_post_thumbnail") && has_post_thumbnail() && $verbosas['verbosa_fpost']) {
    217218                // has featured image
    218                 $featured_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'featured' );
     219                $featured_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'verbosa-featured' );
    219220                $featured_image = $featured_image[0];
    220221               
    … …  
    241242                                       
    242243                                </a>
    243                                 <a href="<?php echo get_permalink( $post->ID ) ?>" title="<?php echo esc_attr( get_post_field( 'post_title', $post->ID ) ) ?>">
     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 ) ) ?>">
    244245                                        <img class="post-featured-image" alt="" itemprop="image" src="<?php echo $featured_image; ?>" />
    245246                                </a>
  • verbosa/0.9.1/includes/setup.php

    r357746 r357746  
    4242        // Make theme available for translation
    4343        load_theme_textdomain( 'verbosa', get_template_directory() . '/languages' );
    44         load_theme_textdomain( 'cryout', get_template_directory() . '/cryout/languages' );
     44        load_theme_textdomain( 'cryout', '' );
    4545
    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' );
    4852       
    4953        // This theme uses wp_nav_menu() in 3 locations.
    … …  
    5761        set_post_thumbnail_size( 1440, 1440 ); // default Post Thumbnail dimensions (cropped)
    5862        // Custom image size for use with post thumbnails
    59         add_image_size( 'featured', 1440, 1440, array( 'center', 'center') );
     63        add_image_size( 'verbosa-featured', 1440, 1440, array( 'center', 'center') );
    6064
    6165        // We'll be using post thumbnails for custom header images on posts and pages.
    … …  
    100104endif;
    101105
     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);
     128}
    102129
    103130/**
    … …  
    149176                echo strip_tags(
    150177                        wp_nav_menu( array(
    151                                 'menu'          => 'Socials Menu',
    152178                                'container' => 'nav',
    153179                                'container_class' => 'socials',
    … …  
    167193function verbosa_socials_menu_footer()   { verbosa_socials_menu('sfooter');   }
    168194
    169 if ( cryout_get_option('verbosa_socials_header_above') ) add_action('cryout_branding_hook', 'verbosa_socials_menu_header_above', 5);
    170 if ( cryout_get_option('verbosa_socials_header_below') ) add_action('cryout_branding_hook', 'verbosa_socials_menu_header_below', 30);
    171 if ( cryout_get_option('verbosa_socials_sidebar') ) add_action('cryout_footer_hook', 'verbosa_socials_menu_footer', 17);
     195/* social hooking moved to master hook to avoid customizer option caching */
     196
    172197
    173198/**
    … …  
    175200 * Uses cryout_widgets_init() from cryout/widget-areas.php
    176201 */
     202function cryout_widgets_init() {
     203
     204        $areas = cryout_get_theme_structure('widget-areas');
     205
     206        if (!empty( $areas )):
     207                foreach ($areas as $aid => $area):
     208                        register_sidebar( array(
     209                                'name' => $area['name'],
     210                                'id' => $aid,
     211                                'description' => ( isset($area['description'])?$area['description']:'' ),
     212                                'before_widget' => $area['before_widget'],
     213                                'after_widget' => $area['after_widget'],
     214                                'before_title' => $area['before_title'],
     215                                'after_title' => $area['after_title'],
     216                        ) );
     217                endforeach;
     218        endif;
     219
     220} // cryout_widgets_init()
    177221add_action( 'widgets_init', 'cryout_widgets_init' );
    178222
    … …  
    218262add_action ('cryout_before_content_hook', 'verbosa_widget_before');
    219263add_action ('cryout_after_content_hook', 'verbosa_widget_after');
    220 
    221 /* ajax frontpage read more button hooks */
    222 /* if (  'posts' == get_option( 'show_on_front' )) add_action('pre_get_posts', 'cryout_query_offset', 1 );
    223 if (  'posts' == get_option( 'show_on_front' )) add_action('template_redirect', 'cryout_ajax_init'); */
    224264
    225265
  • verbosa/0.9.1/includes/styles.php

    r357746 r357746  
    2121        foreach ($cryout_theme_structure['google-font-enabled-fields'] as $item) {
    2222                $itemg = $item . 'google';
    23                 if ( !empty($verbosas[$itemg]) )  $gfonts[] = cryout_gfontclean( $verbosas[$itemg] );
    24                 if ( preg_match('/^(.*)\/gfont$/i', $verbosas[$item], $bits) ) $gfonts[] = $bits[1];
     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];
    2526        };
    2627
    … …  
    100101       
    101102        wp_enqueue_script( 'verbosa-frontend', get_template_directory_uri() . '/resources/js/frontend.js', array('jquery'), _CRYOUT_THEME_VERSION );
    102         wp_enqueue_script( 'verbosa-masonry', get_template_directory_uri() . '/resources/js/masonry.min.js', array('jquery'), _CRYOUT_THEME_VERSION );
     103       
     104        wp_enqueue_script( 'jquery-masonry' );
    103105       
    104106        if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
    … …  
    106108}
    107109add_action('wp_footer', 'verbosa_scripts_method');
     110
     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}
     119add_filter('script_loader_tag', 'verbosa_scripts_filter', 10, 2);
    108120
    109121function verbosa_responsive_meta() {
  • verbosa/0.9.1/page.php

    r357746 r357746  
    1414        <div id="container" class="<?php echo verbosa_get_layout_class(); ?>">
    1515                <?php verbosa_header_section() ?>
    16                 <main id="main" role="main" <?php cryout_schema_microdata('main'); ?>>
     16                <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> class="main">
    1717                <?php cryout_before_content_hook(); ?>
    1818
  • verbosa/0.9.1/readme.txt

    r357746 r357746  
    11=============
    22Verbosa WordPress Theme
    3 Copyright 2015 Cryout Creations
     3Copyright 2015-2016 Cryout Creations
    44
    55Author: Cryout Creations
    66Requires at least: 4.2
    7 Tested up to: 4.4
    8 Stable tag: 0.9.0
     7Tested up to: 4.5.3
     8Stable tag: 0.9.1
    99License: GPLv3
    1010License URI: http://www.gnu.org/licenses/gpl.html
    … …  
    4646Source: http://fitvidsjs.com/
    4747
    48 Masonry, Copyright David DeSandro
    49 Licensed under the terms of the MIT LIcense
    50 Source: http://masonry.desandro.com/
    51 
    52 Array2XML & XML2Array, Copyright Lalit Patel
    53 Licensed under the terms of the Apache License 2.0
    54 Source: http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes
    55 
    5648== Bundled Fonts ==
    5749
    … …  
    8274== Changelog ==
    8375
     76= 0.9.1 =
     77* Fixed widget titles line not spanning all sidebar
     78* Added auto-detection of RSS link in social icons
     79* 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
     81* Improved mobile menu animations
     82* Fixed colophon flex compatibility with IE9
     83* 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)
     85* Updated Cryout Framework to 0.5.5
     86* Rearranged customizer section overrides to account for autofocus issue
     87* Improved plugin/child theme styling override support by changing #main ID to .main class
     88* 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)
     96* 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
     100* Fixed social icons placement options not refreshing in Customizer
     101* Fixed 'Display Site Title and Tagline' option not affecting the tagline
     102
    84103= 0.9 =
    85104Initial release
  • verbosa/0.9.1/resources/fonts/fontfaces.css

    r357746 r357746  
    465465.socials a[href*="plancast.com"]:before, .socials a.plancast:before { content: '\e82c'; }
    466466.socials a[href*="disqus.com"]:before, .socials a.disqus:before { content: '\e82d'; }
    467 .socials a[href*="/feed"]:before, .socials a.rss:before, .socials a.feed:before { content: '\e82e'; }
     467.socials a[href*="/feed"]:before, .socials a[href*="/rss"]:before, .socials a.rss:before, .socials a.feed:before { content: '\e82e'; }
    468468.socials a[href^="callto:"]:before, .socials a.skype:before { content: '\e82f'; }
    469469.socials a[href*="twitter.com"]:before, .socials a.twitter:before { content: '\e830'; }
  • verbosa/0.9.1/resources/js/frontend.js

    r357746 r357746  
    102102        //Toggle buttons and submenu items with active children menu items.
    103103        container.find( '.current-menu-ancestor > button, .current-page-ancestor > button' ).addClass( 'toggle-on' );
    104         container.find( '.current-menu-ancestor > .sub-menu, .current-page-ancestor > .sub-menu, .current-menu-ancestor .children, .current-page-ancestor .children' ).addClass( 'toggled-on' );
     104        container.find( '.current-menu-ancestor > .sub-menu, .current-page-ancestor > .sub-menu, .current-menu-ancestor .children, .current-page-ancestor .children' ).show(0).addClass( 'toggled-on' );
    105105
    106106        container.find( '.dropdown-toggle' ).click( function( e ) {
    … …  
    108108                e.preventDefault();
    109109                _this.toggleClass( 'toggle-on' );
    110                 _this.next( '.children, .sub-menu' ).toggleClass( 'toggled-on' );
     110                if ( _this.hasClass( 'toggle-on') ) {
     111                        _this.next( '.children, .sub-menu' ).show(0).addClass( 'toggled-on' );
     112                }
     113                else {
     114                        _this.next( '.children, .sub-menu' ).removeClass( 'toggled-on' );
     115                }
     116               
    111117                //_this.parent().find( 'a' ).toggleClass( 'toggled-on' );
    112118                _this.attr( 'aria-expanded', _this.attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' );
  • verbosa/0.9.1/resources/styles/responsive.css

    r357746 r357746  
    1 /** ==Responsive Styling== */ 
    2 body.mobile {-webkit-text-size-adjust: 100%;} /* Iphone browser fix*/ 
    3 body.mobile #main {min-height:0;}       
     1/** ==Responsive Styling== */
     2body.mobile {-webkit-text-size-adjust: 100%;} /* Iphone browser fix*/
     3body.mobile .main {min-height:0;}
    44
    55@media (max-width: 1280px) {
    … …  
    99                margin-top: 0; /* removed fixed header menu */
    1010        }
    11        
     11
    1212        .magazine-three #content-masonry article.hentry {
    1313                width: 48%;
    1414        }
    15        
     15
    1616        .noscroll { /* to be added to body on mobile */
    17                 position: fixed;
    1817                overflow: hidden;
    1918        }
    20        
    21 }       
    2219
    23 @media (max-width: 1024px) {   
     20}
    2421
    25         #container[class*="two-"] #main {
     22@media (max-width: 1024px) {
     23
     24        #container[class*="two-"] .main {
    2625                width: 100%;
    2726                margin: 0 0 1.5em;
    2827        }
    29        
     28
    3029        #container[class*="two-"] #primary,
    3130        #container[class*="two-"] #secondary {
    … …  
    3433                float: none;
    3534        }
    36        
     35
    3736        #container[class*="two-"] .widget-container,
    3837        #colophon .widget-container     {
    … …  
    4039                margin: 0 5% 1.5em;
    4140                float: left;
    42         }       
    43        
     41        }
     42
    4443        .magazine-three #content-masonry article.hentry {
    4544                width: 48%;
    4645        }
    47        
     46
    4847        #branding {
    4948                margin-top: 1.5em;
    5049        }
    51        
     50
    5251        #sidebar {
    5352                float: none;
    … …  
    7069                display: block;
    7170        }
    72        
     71
    7372}
    74        
    75 @media (max-width: 800px) {     
     73
     74@media (max-width: 800px) {
    7675
    7776        body {
    7877                font-size: .90em;
    7978        }
    80        
     79
    8180        .magazine-three #content-masonry article.hentry,
    8281        .magazine-two #content-masonry article.hentry {
    8382                width: 98%;
    84         }       
    85                
     83        }
     84
    8685}
    8786
    … …  
    9190                font-size: .85em;
    9291        }
    93        
     92
    9493        #container[class*="two-"] .widget-container,
    9594        #colophon .widget-container {
    … …  
    9897                clear: both;
    9998        }
    100        
     99
    101100}
    102101
    103 @media (max-width: 480px) {     
     102@media (max-width: 480px) {
    104103
    105104        body {
    106105                font-size: .8em;
    107106        }
    108        
     107
     108        #mobile-menu > div {
     109                max-width: 300px;
     110        }
     111
    109112}
    110113
  • verbosa/0.9.1/search.php

    r357746 r357746  
    1010                <div id="container" class="<?php echo verbosa_get_layout_class(); ?>">
    1111                        <?php verbosa_header_section() ?>
    12                         <main id="main" role="main" <?php cryout_schema_microdata('main'); ?>>
     12                        <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> class="main">
    1313        <?php cryout_before_content_hook(); ?>
    1414       
  • verbosa/0.9.1/single.php

    r357746 r357746  
    1010<div id="container" class="<?php echo verbosa_get_layout_class(); ?>">
    1111        <?php verbosa_header_section() ?>
    12         <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> >
     12        <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> class="main">
    1313        <?php cryout_before_content_hook(); ?>
    1414                       
  • verbosa/0.9.1/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? 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.0
     7Version: 0.9.1
    88License: GNU General Public License v3.0
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    10 Tags: white, orange, red, gray, silver, light, black, one-column, two-columns, right-sidebar, left-sidebar, fixed-layout, fluid-layout, responsive-layout, custom-background, custom-colors, custom-header, flexible-header, custom-menu, featured-images, front-page-post-form, full-width-template, microformats, post-formats, rtl-language-support,  sticky-post, theme-options, threaded-comments, translation-ready
     10Tags: one-column, two-columns, right-sidebar, left-sidebar, footer-widgets, grid-layout, custom-background, custom-colors, custom-header, flexible-header, custom-menu, featured-images, front-page-post-form, full-width-template, microformats, post-formats, rtl-language-support,  sticky-post, theme-options, threaded-comments, translation-ready, blog, entertainment, food-and-drink, news, photography
    1111Text Domain: verbosa
    1212
    … …  
    2727
    2828--------------------------------------------------------------
    29         == TABLE OF CONTENTS == 
     29        == TABLE OF CONTENTS ==
    3030--------------------------------------------------------------
    3131
    … …  
    6363                ## Blockquotes
    6464        # Conditionals
    65         # Fixes 
     65        # Fixes
    6666
    6767
    … …  
    9393
    9494*, *:before, *:after {
    95         -webkit-box-sizing: border-box; 
     95        -webkit-box-sizing: border-box;
    9696        -moz-box-sizing: border-box;
    9797        box-sizing: border-box;
    … …  
    193193
    194194/* Text elements */
    195 #main ul ul,
    196 #main ul ol,
    197 #main ol ol,
    198 #main ol ul {
     195.main ul ul,
     196.main ul ol,
     197.main ol ol,
     198.main ol ul {
    199199        margin-bottom: 0;
    200200}
    201201
    202 #main ol > li {
     202.main ol > li {
    203203        text-indent: 0;
    204204}
    205205
    206 #main li li {
     206.main li li {
    207207        margin-left: 1em;
    208208}
    … …  
    360360
    361361embed, iframe {
    362         max-width: 100%; 
     362        max-width: 100%;
    363363}
    364364
    … …  
    389389}
    390390
    391 #main {
     391.main {
    392392        margin-bottom: 0;
    393393        min-height: 400px;
    … …  
    501501        -webkit-transition: all .5s ease-in-out;
    502502        -moz-transition: all .5s ease-in-out;
    503         -o-transition: all .5s ease-in-out; 
     503        -o-transition: all .5s ease-in-out;
    504504        transition: all .5s ease-in-out;
    505505}
    … …  
    518518}
    519519
    520 #branding .header-image { 
     520#branding .header-image {
    521521        width: auto;
    522522        max-width: 100%;
    … …  
    621621
    622622.dropdown-toggle:hover:after {
    623        
     623
    624624}
    625625
    … …  
    633633nav .sub-menu,
    634634nav .children {
    635         display: block;
     635        display: none;
    636636        opacity: 0;
    637637        max-height: 0;
    638         -webkit-transition: .5s max-height ease-in-out;
    639         -moz-transition: .5s max-height ease-in-out;
    640         -o-transition: .5s max-height ease-in-out;
    641         transition: .5s max-height ease-in-out;
     638        -webkit-transition: .5s max-height ease-in-out, .3s opacity ease-in-out, .3s padding ease;
     639        -moz-transition: .5s max-height ease-in-out, .3s opacity ease-in-out, .3s padding ease;
     640        -o-transition: .5s max-height ease-in-out, .3s opacity ease-in-out, .3s padding ease;
     641        transition: .5s max-height ease-in-out, .3s opacity ease-in-out, .3s padding ease;
    642642}
    643643
    … …  
    655655
    656656/*--------------------------------------------------------------
    657         ## MOBILE MENU 
     657        ## MOBILE MENU
    658658--------------------------------------------------------------*/
    659 #nav-toggle { /* Mobile nav toggle will only be visible on mobile */ 
     659#nav-toggle { /* Mobile nav toggle will only be visible on mobile */
    660660        display: none;
    661661        float: right;
    … …  
    663663        position: absolute;
    664664        top: 0;
     665        left: 49%;
    665666        left: calc(50% - 1em);
    666667}
    … …  
    686687        display: none;
    687688        position: fixed;
    688         overflow-y: scroll;
     689        overflow-y: auto;
     690        overflow-x: hidden;
    689691        top: 0;
    690692        left: -100%;
    … …  
    701703        margin: 6em auto 0;
    702704        max-width: 400px;
     705        position: static;
    703706}
    704707
    705708nav#mobile-menu a {
    706         display: inline-block;
     709        display: inline;
    707710        text-decoration: none;
    708711        text-transform: uppercase;
    … …  
    714717        display: inline-block;
    715718}
     719
    716720nav#mobile-menu .dropdown-toggle {
    717721        right: auto;
    … …  
    732736        float: none;
    733737        clear: both;
    734         white-space: nowrap;
     738        white-space: normal;
    735739        line-height: 3;
    736740}
    … …  
    796800
    797801/*--------------------------------------------------------------
    798         ## FOOTER WIDGET AREA 
     802        ## FOOTER WIDGET AREA
    799803--------------------------------------------------------------*/
    800804#colophon {
    801         display: table;
     805        display: block;
    802806        float: none;
    803807        display: -webkit-box;
    … …  
    805809        display: -ms-flexbox;
    806810        display: -webkit-flex;
    807         display: flex;     
     811        display: flex;
    808812        -webkit-box-flex: 1;
    809813        -webkit-flex: 1;
    810814        -moz-flex: 1;
    811         -ms-flex: 1; 
     815        -ms-flex: 1;
    812816        flex: 1;
    813817        -webkit-flex-flow: row wrap;
    … …  
    818822        overflow: hidden;
    819823        margin: 2em auto 0;
     824        max-width: 100%;
    820825}
    821826
    … …  
    831836        display: -ms-flexbox;
    832837        display: -webkit-flex;
    833         display: flex; 
     838        display: flex;
    834839        -webkit-flex-direction: column;
    835840        -moz-flex-direction: column;
    … …  
    883888--------------------------------------------------------------*/
    884889
    885 #main h1,
    886 #main h2,
    887 #main h3,
    888 #main h4,
    889 #main h5,
    890 #main h6 {
     890.main h1,
     891.main h2,
     892.main h3,
     893.main h4,
     894.main h5,
     895.main h6 {
    891896        margin: 1em 0 .5em;
    892897}
    893898
    894 #main table {
     899.main table {
    895900        border: 0;
    896901        margin: 0 0 2em 0;
    … …  
    899904}
    900905
    901 #main tr {
     906.main tr {
    902907        vertical-align: top;
    903908}
    904909
    905 #main .alternate {}
    906 
    907 #main tr th,
    908 #main thead th {
     910.main .alternate {}
     911
     912.main tr th,
     913.main thead th {
    909914        padding: .5em;
    910915        font-weight: 600;
    911916}
    912917
    913 #main tr td {
     918.main tr td {
    914919        border-top: 1px solid transparent;
    915920        padding: .5em;
    916921}
    917922
    918 #main tr td:last-child,
    919 #main tr th:last-child {
     923.main tr td:last-child,
     924.main tr th:last-child {
    920925        border-right: none;
    921926}
    922927
    923 #main tr.odd td {}
     928.main tr.odd td {}
    924929
    925930.entry-header {
    … …  
    948953}
    949954
    950 #main .entry-summary p:last-child {
     955.main .entry-summary p:last-child {
    951956        margin-bottom: 1em;
    952957}
    … …  
    986991
    987992/*--------------------------------------------------------------
    988         ## PAGE TITLES 
     993        ## PAGE TITLES
    989994--------------------------------------------------------------*/
    990 #main .page-title {
     995.main .page-title {
    991996        display: block;
    992997        float: none;
    … …  
    9971002}
    9981003
    999 #main .page-title:only-child {
     1004.main .page-title:only-child {
    10001005        padding: 0;
    10011006}
    10021007
    1003 #main .pad-container p:last-child {
     1008.main .pad-container p:last-child {
    10041009        margin: 0;
    10051010}
    … …  
    10411046}
    10421047
    1043 #main .entry-title,
    1044 #main #comments-title {
     1048.main .entry-title,
     1049.main #comments-title {
    10451050        margin: 0;
    10461051}
    10471052
    10481053/*--------------------------------------------------------------
    1049         ## POST METAS 
     1054        ## POST METAS
    10501055--------------------------------------------------------------*/
    10511056.entry-meta {
    … …  
    10751080.entry-meta a {
    10761081        background-repeat: no-repeat;
    1077         background-size: 0 1px;
     1082        background-size: 0 2px;
    10781083        background-position: 0 100%;
    10791084        -webkit-transition: all .3s ease-in-out;
    … …  
    11151120
    11161121.comments-link strong {
    1117         font-weight: 300;
     1122        font-weight: 400;
    11181123}
    11191124
    … …  
    11491154}
    11501155
    1151 span.edit-link {       
     1156span.edit-link {
    11521157        display: block;
    11531158        padding: 0;
    … …  
    11731178
    11741179/*--------------------------------------------------------------
    1175         ## AUTHOR INFO 
     1180        ## AUTHOR INFO
    11761181--------------------------------------------------------------*/
    11771182
    … …  
    12421247
    12431248#author-avatar .avatar {
    1244         border-radius: 4px;
     1249        border-radius: 100px;
    12451250}
    12461251#entry-author-info #author-description {
    … …  
    12561261}
    12571262
    1258 #main .video-player {
     1263.main .video-player {
    12591264        padding: 0;
    12601265}
    12611266
    12621267/*--------------------------------------------------------------
    1263         ## ARTICLES 
     1268        ## ARTICLES
    12641269--------------------------------------------------------------*/
    12651270
    … …  
    12691274
    12701275article.hentry,
    1271 #main .content-widget {
     1276.main .content-widget {
    12721277        display: block;
    12731278        position: relative;
    … …  
    13041309}
    13051310
    1306 #main .content-search.pad-container .page-title {
     1311.main .content-search.pad-container .page-title {
    13071312        padding-top: 1em;
    13081313        padding-bottom: 0;
    … …  
    13171322}
    13181323
    1319 .verbosa-cropped-featured #main .post-thumbnail-container img.post-featured-image {display: none;}
    1320 .verbosa-responsive-featured #main .post-thumbnail-container a.post-featured-image {display: none;}
     1324.verbosa-cropped-featured .main .post-thumbnail-container img.post-featured-image {display: none;}
     1325.verbosa-responsive-featured .main .post-thumbnail-container a.post-featured-image {display: none;}
    13211326
    13221327.magazine-one #content-masonry article.hentry,
    1323 .magazine-one .pad-container { 
     1328.magazine-one .pad-container {
    13241329        width: 100%;
    13251330        margin-left: 0;
    … …  
    13371342        padding: 1em;
    13381343        margin-bottom: 1.5em;
    1339         width: 31.333333333%; 
     1344        width: 31.333333333%;
    13401345        float: left;
    13411346}
    … …  
    13451350.verbosa-elementborder #sidebar-bg,
    13461351.verbosa-elementborder .page-numbers:not(.dots) {
    1347         border: 1px solid rgba(0, 0, 0, .07);
     1352        border: 1px solid rgba(0, 0, 0, .1);
    13481353}
    13491354
    … …  
    13621367
    13631368/*--------------------------------------------------------------
    1364         ## IMAGES 
     1369        ## IMAGES
    13651370--------------------------------------------------------------*/
    13661371
    13671372/* Prevent overlfow */
    1368 .size-auto, 
     1373.size-auto,
    13691374.size-full,
    13701375.size-large,
    … …  
    13751380}
    13761381
    1377 #main a.post-featured-image {
     1382.main a.post-featured-image {
    13781383    background-position: center center;
    13791384    background-size: cover;
    … …  
    13891394}
    13901395
    1391 #main a.post-featured-image:hover {
     1396.main a.post-featured-image:hover {
    13921397        background-position: 50% 0%;
    13931398}
    1394 #main a.post-featured-image::before {
     1399.main a.post-featured-image::before {
    13951400        content: "";
    13961401        position: absolute;
    … …  
    14061411}
    14071412
    1408 #main a.post-featured-image:hover::before {
     1413.main a.post-featured-image:hover::before {
    14091414        bottom: -1px;
    14101415}
    14111416
    1412 #main img.post-featured-image {
     1417.main img.post-featured-image {
    14131418        display: table;
    14141419        margin: 0 auto;
    … …  
    14221427}
    14231428
    1424 #main .post-thumbnail-container + .featured-bar {
     1429.main .post-thumbnail-container + .featured-bar {
    14251430        margin-top: -.5em;
    14261431}
    14271432
    1428 #main img {
     1433.main img {
    14291434        margin: 0;
    14301435        height: auto;
    … …  
    14321437}
    14331438
    1434 #main .alignleft,
    1435 #main img.alignleft {
     1439.main .alignleft,
     1440.main img.alignleft {
    14361441        display: inline;
    14371442        float: left;
    … …  
    14391444}
    14401445
    1441 #main .alignright,
    1442 #main img.alignright {
     1446.main .alignright,
     1447.main img.alignright {
    14431448        display: inline;
    14441449        float: right;
    … …  
    14461451}
    14471452
    1448 #main .aligncenter,
    1449 #main img.aligncenter {
     1453.main .aligncenter,
     1454.main img.aligncenter {
    14501455        clear: both;
    14511456        display: block;
    … …  
    14541459}
    14551460
    1456 #main img.alignleft,
    1457 #main img.alignright,
    1458 #main img.aligncenter {
     1461.main img.alignleft,
     1462.main img.alignright,
     1463.main img.aligncenter {
    14591464        margin-bottom: 1em;
    14601465}
    14611466
    1462 #main img.alignleft,
    1463 #main img.alignright,
    1464 #main img.aligncenter,
    1465 #main img.alignnone,
    1466 #main .wp-caption img {
     1467.main img.alignleft,
     1468.main img.alignright,
     1469.main img.aligncenter,
     1470.main img.alignnone,
     1471.main .wp-caption img {
    14671472        -webkit-transition:all .3s ease-in-out;
    14681473        -moz-transition: all .3s ease-in-out;
    … …  
    14711476}
    14721477
    1473 #main img.alignleft:hover,
    1474 #main img.alignright:hover,
    1475 #main img.aligncenter:hover,
    1476 #main img.alignnone:hover,
    1477 #main .wp-caption img:hover {}
    1478 
    1479 #main .wp-caption {
     1478.main img.alignleft:hover,
     1479.main img.alignright:hover,
     1480.main img.aligncenter:hover,
     1481.main img.alignnone:hover,
     1482.main .wp-caption img:hover {}
     1483
     1484.main .wp-caption {
    14801485        margin-bottom: 1em;
    14811486        text-align: center;
    … …  
    14831488}
    14841489
    1485 body #main .wp-caption > a {
    1486         display: block;
    1487 }
    1488 
    1489 #main .wp-caption img {
     1490body .main .wp-caption > a {
     1491        display: block;
     1492}
     1493
     1494.main .wp-caption img {
    14901495        display: block;
    14911496        border: none;
    … …  
    14951500}
    14961501
    1497 #main .wp-caption .wp-caption-text {
     1502.main .wp-caption .wp-caption-text {
    14981503    padding: .7em .5em;
    14991504    text-align: center;
    15001505        font-style: italic;
    15011506}
    1502 #main .wp-smiley {
     1507.main .wp-smiley {
    15031508        margin: 0;
    15041509        width: auto;
    … …  
    15101515
    15111516/*--------------------------------------------------------------
    1512         ## PAGE NAVIGATION 
     1517        ## PAGE NAVIGATION
    15131518--------------------------------------------------------------*/
    15141519
    … …  
    18501855}
    18511856
    1852 #main .attachment img { /* single attachment images should be centered */
     1857.main .attachment img { /* single attachment images should be centered */
    18531858        display: block;
    18541859        margin: 2em auto;
    … …  
    19061911}
    19071912
    1908 #main h3#comments-title {
     1913.main h3#comments-title {
    19091914        margin-bottom: 1.5em;
    19101915        line-height: 1.5;
    … …  
    19341939}
    19351940
    1936 #main .commentlist .pingback p {
     1941.main .commentlist .pingback p {
    19371942        margin: 0;
    19381943}
    … …  
    19521957
    19531958.commentlist img.avatar {
    1954         height: 60px; 
     1959        height: 60px;
    19551960        width: 60px;
    19561961        padding: 5px;
    … …  
    20682073}
    20692074
    2070 #main .nocomments, #main .nocomments2 {
     2075.main .nocomments, .main .nocomments2 {
    20712076        margin-bottom: 0;
    20722077}
    … …  
    20772082
    20782083/*--------------------------------------------------------------
    2079         ## COMMENT FORM 
     2084        ## COMMENT FORM
    20802085--------------------------------------------------------------*/
    20812086#respond {
    … …  
    20882093        font-size: 0.8em;
    20892094}
     2095
    20902096.form-allowed-tags {
    20912097        line-height: 1em;
    20922098}
     2099
    20932100.children #respond {
    20942101        margin: 0 4em 0 0;
    20952102        min-width: 400px;
    20962103}
     2104
    20972105h3#reply-title {
    20982106        margin: 0;
    … …  
    21012109        font-weight: 300;
    21022110}
     2111
    21032112#comments-list #respond {
    21042113        margin: 0 0 1.5em 0;
    21052114}
     2115
    21062116#comments-list ul #respond {
    21072117        margin: 0;
    21082118}
     2119
    21092120#cancel-comment-reply-link {
    21102121        font-size: 1em;
    … …  
    21122123        line-height: 1.5em;
    21132124}
     2125
    21142126#respond .required {}
    21152127
    … …  
    22742286        overflow: hidden;
    22752287        margin-left: -2.5em;
     2288        width: 100%;
     2289        width: calc(100% + 2.5em);
     2290        max-width: 100%;
     2291        max-width: calc(100% + 2.5em);
    22762292}
    22772293
    … …  
    23622378
    23632379/*--------------------------------------------------------------
    2364         # SEARCHFORM 
     2380        # SEARCHFORM
    23652381--------------------------------------------------------------*/
    23662382
    … …  
    23762392}
    23772393
    2378 #main .no-results .content-search {
     2394.main .no-results .content-search {
    23792395        padding: 0;
    23802396}
    23812397
    2382 #main .no-results .entry-title,
    2383 #main .not-found .entry-title {
     2398.main .no-results .entry-title,
     2399.main .not-found .entry-title {
    23842400        margin: 1em auto;
    23852401}
    … …  
    24772493}
    24782494
    2479 /*-------------------------------------------------------------- 
     2495/*--------------------------------------------------------------
    24802496        # SOCIALS
    24812497--------------------------------------------------------------*/
    … …  
    24972513        position: relative;
    24982514        z-index: 99;
    2499         margin: 0 .6em;
     2515        margin: 0 .6em .5em .6em;
    25002516        overflow: hidden;
    25012517        font-size: .8em;
    … …  
    25142530}
    25152531.socials a:before,
    2516 .socials a:after { 
     2532.socials a:after {
    25172533        background: transparent;
    25182534        border-radius: 100px;
    … …  
    25652581
    25662582
    2567 /*-------------------------------------------------------------- 
    2568         # MISCELLANEOUS 
     2583/*--------------------------------------------------------------
     2584        # MISCELLANEOUS
    25692585--------------------------------------------------------------*/
    25702586
    … …  
    26582674
    26592675/* ## CUSTOM CAPTION LOOK */
    2660 .verbosa-caption-zero #main .wp-caption .wp-caption-text {}
    2661 
    2662 .verbosa-caption-one #main .wp-caption .wp-caption-text {
     2676.verbosa-caption-zero .main .wp-caption .wp-caption-text {}
     2677
     2678.verbosa-caption-one .main .wp-caption .wp-caption-text {
    26632679        border-bottom: 1px solid transparent;
    26642680        border-top: 1px solid transparent;
    … …  
    26662682}
    26672683
    2668 .verbosa-caption-two #main  .wp-caption .wp-caption-text {
     2684.verbosa-caption-two .main  .wp-caption .wp-caption-text {
    26692685        margin-top: 2px;
    26702686        border-top: 2px solid;
    … …  
    28272843}
    28282844
    2829 #main blockquote p{
     2845.main blockquote p{
    28302846        margin-bottom: 0;
    28312847}
    28322848
    2833 /*-------------------------------------------------------------- 
     2849/*--------------------------------------------------------------
    28342850        # CONDITIONALS
    28352851--------------------------------------------------------------*/
    … …  
    28372853.page.comhide-in-pages .nocomments { display: none; }
    28382854.hide-page-title .page h1.entry-title, .home.hide-page-title .page h2.entry-title { display: none; }
    2839 .hide-cat-title .category-header, .hide-cat-title .arhive-header, .hide-cat-title .tag-header { display: none; }
    2840 
    2841 /*-------------------------------------------------------------- 
     2855.hide-cat-title .page-header { display: none; }
     2856
     2857/*--------------------------------------------------------------
    28422858        # FIXES
    28432859-------------------------------------------------------------- */
    28442860
    2845 /* woocommerce  fix*/ 
     2861/* woocommerce  fix*/
    28462862.woocommerce .product .entry-summary {
    28472863        clear: none;
  • verbosa/0.9.1/templates/template-onecolumn.php

    r357746 r357746  
    1414                <div id="container" class="one-column">
    1515                <?php verbosa_header_section() ?>
    16                         <main id="main" role="main" <?php cryout_schema_microdata('main'); ?>>
     16                        <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> class="main">
    1717                                <?php get_template_part( 'content/content', 'page'); ?>
    1818                        </main><!-- #main -->   
  • verbosa/0.9.1/templates/template-page-with-intro.php

    r357746 r357746  
    1515<div id="container" class="<?php echo verbosa_get_layout_class(); ?>">
    1616        <?php verbosa_header_section() ?>
    17         <main id="main" role="main" <?php cryout_schema_microdata('main'); ?>>
     17        <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> class="main">
    1818
    1919         <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  • verbosa/0.9.1/templates/template-twocolumns-left.php

    r357746 r357746  
    1010                <div id="container" class="<?php echo $verbosa_template_layout;?>">
    1111                <?php verbosa_header_section() ?>
    12                         <main id="main" role="main" <?php cryout_schema_microdata('main'); ?>>
     12                        <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> class="main">
    1313                                <?php get_template_part( 'content/content', 'page'); ?>
    1414                        </main><!-- #main -->
  • verbosa/0.9.1/templates/template-twocolumns-right.php

    r357746 r357746  
    1010                <div id="container" class="<?php echo $verbosa_template_layout;?>">
    1111                <?php verbosa_header_section() ?>
    12                         <main id="main" role="main" <?php cryout_schema_microdata('main'); ?>>
     12                        <main id="main" role="main" <?php cryout_schema_microdata('main'); ?> class="main">
    1313                                <?php get_template_part( 'content/content', 'page'); ?>
    1414                        </main><!-- #main -->
Note: See TracChangeset for help on using the changeset viewer.