Changes from verbosa/0.9.1 at r357746 to verbosa/0.9.2 at r357746
- Location:
- verbosa/0.9.2
- Files:
-
- 1 added
- 52 edited
-
admin/defaults.php (modified) (1 diff)
-
admin/images/1c.png (modified) ( previous)
-
admin/images/2cSl.png (modified) ( previous)
-
admin/images/2cSr.png (modified) ( previous)
-
admin/images/coffee.png (modified) ( previous)
-
admin/images/image-style-0.png (modified) ( previous)
-
admin/images/image-style-1.png (modified) ( previous)
-
admin/images/image-style-2.png (modified) ( previous)
-
admin/images/image-style-3.png (modified) ( previous)
-
admin/images/image-style-4.png (modified) ( previous)
-
admin/images/image-style-5.png (modified) ( previous)
-
admin/images/logo-about-customize.png (modified) ( previous)
-
admin/images/logo-about-top.png (modified) ( previous)
-
admin/images/logo-customizer.png (modified) ( previous)
-
admin/images/magazine-1col.png (modified) ( previous)
-
admin/images/magazine-2col.png (modified) ( previous)
-
admin/images/magazine-3col.png (modified) ( previous)
-
admin/main.php (modified) (10 diffs)
-
admin/options.php (modified) (58 diffs)
-
attachment.php (modified) (7 diffs)
-
cryout/customizer.php (modified) (34 diffs)
-
cryout/prototypes.php (modified) (15 diffs)
-
functions.php (modified) (1 diff)
-
header.php (modified) (2 diffs)
-
includes/core.php (modified) (19 diffs)
-
includes/loop.php (modified) (15 diffs)
-
includes/setup.php (modified) (15 diffs)
-
includes/styles.php (modified) (6 diffs)
-
languages/verbosa.mo (added)
-
languages/verbosa.pot (modified) (22 diffs)
-
readme.txt (modified) (3 diffs)
-
resources/fonts/fontello.eot (modified) ( previous)
-
resources/fonts/fontello.ttf (modified) ( previous)
-
resources/fonts/fontello.woff (modified) ( previous)
-
resources/fonts/icomoon.eot (modified) ( previous)
-
resources/fonts/icomoon.ttf (modified) ( previous)
-
resources/fonts/icomoon.woff (modified) ( previous)
-
resources/images/headers/breakfast.jpg (modified) ( previous)
-
resources/images/headers/homeoffice.jpg (modified) ( previous)
-
resources/images/headers/typewriter.jpg (modified) ( previous)
-
resources/images/patterns/pattern.png (modified) ( previous)
-
resources/images/patterns/pattern1.png (modified) ( previous)
-
resources/images/patterns/pattern2.png (modified) ( previous)
-
resources/images/patterns/pattern3.png (modified) ( previous)
-
resources/images/patterns/pattern4.png (modified) ( previous)
-
resources/images/patterns/pattern5.png (modified) ( previous)
-
resources/images/patterns/pattern6.png (modified) ( previous)
-
resources/images/patterns/pattern7.png (modified) ( previous)
-
resources/images/patterns/pattern8.png (modified) ( previous)
-
resources/images/patterns/pattern9.png (modified) ( previous)
-
screenshot.png (modified) ( previous)
-
style.css (modified) (1 diff)
-
templates/template-page-with-intro.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
verbosa/0.9.2/admin/defaults.php
r357746 r357746 55 55 "verbosa_ftitles" => 'Merriweather/gfont', 56 56 "verbosa_ftitlesgoogle" => '', 57 "verbosa_ftitlessize" => '2 20%',58 "verbosa_ftitlesweight" => ' 400',57 "verbosa_ftitlessize" => '200%', 58 "verbosa_ftitlesweight" => '300', 59 59 "verbosa_fmetas" => 'Lato/gfont', 60 60 "verbosa_fmetasgoogle" => '', -
verbosa/0.9.2/admin/main.php
r357746 r357746 5 5 * @package Verbosa 6 6 */ 7 7 8 8 // Theme particulars 9 9 require_once(get_template_directory() . "/admin/defaults.php"); … … 15 15 // Framework 16 16 require_once(get_template_directory() . "/cryout/framework.php"); 17 17 18 18 // Get the theme options and make sure defaults are used if no values are set 19 19 function verbosa_get_theme_options() { … … 32 32 33 33 // load up theme options 34 $cryout_theme_settings = $verbosa_big; 34 $cryout_theme_settings = $verbosa_big; 35 35 $cryout_theme_options = verbosa_get_theme_options(); 36 36 $cryout_theme_defaults = verbosa_get_option_defaults(); … … 80 80 <div class="wrap" id="main-page"><!-- Admin wrap page --> 81 81 <div id="lefty"> 82 82 83 83 <div id="admin_header"> 84 84 <img src="<?php echo get_template_directory_uri() . '/admin/images/logo-about-top.png' ?>" /> 85 85 <span id="version"> 86 Verbosa Theme v<?php echo _CRYOUT_THEME_VERSION; ?> by 86 Verbosa Theme v<?php echo _CRYOUT_THEME_VERSION; ?> by 87 87 <a href="http://www.cryoutcreations.eu" target="_blank">Cryout Creations</a> 88 88 </span> 89 89 </div> 90 90 91 91 <div id="admin_links"> 92 <a target="_blank" href="http://www.cryoutcreations.eu/verbosa"> Verbosa Homepage</a>93 <a target="_blank" href="http://www.cryoutcreations.eu/forum"> Support</a>92 <a target="_blank" href="http://www.cryoutcreations.eu/verbosa"><?php _e( 'Verbosa Homepage', 'verbosa' ) ?></a> 93 <a target="_blank" href="http://www.cryoutcreations.eu/forum"><?php _e( 'Support', 'verbosa' ) ?></a> 94 94 <a target="_blank" href="http://www.cryoutcreations.eu">Cryout Creations</a> 95 95 </div> … … 99 99 echo "<div class='updated fade' style='clear:left;'><p>" . __('Verbosa settings updated successfully.', 'verbosa') . "</p></div>"; 100 100 }?> 101 101 102 102 <div id="description"> 103 103 <p>You wake up and you're a WordPress theme. You have a funny yet resonating name. You can't quite recall it but it's definitely a feminine name, 104 one word, ending with the vo cal 'a'. Always ending with that darn vocal - that's a clear trademark for a Cryout Creations theme.</p>104 one word, ending with the vowel 'a'. Always ending with that darn vowel - that's a clear trademark for a Cryout Creations theme.</p> 105 105 <p>People are always checking you out, previewing your lines, curves and colors. Always keeping you in the spotlight, they're testing various elements, 106 106 checking to see if you can satisfy their specific needs, if you can fit within the confines of their preconceived ideas of a perfect theme. 107 And when you do fit that description- the install button is pressed and the horror begins...</p> 108 <p>Articles and pages are constantly added, edited, sometimes deleted. Countless plugins are cramped in, all shapes and sizes, 107 And when you do fit that description- the install button is pressed and the horror begins...</p> 108 <p>Articles and pages are constantly added, edited, sometimes deleted. Countless plugins are cramped in, all shapes and sizes, 109 109 shamelessly biting at the fringes of compatibility. And when that compatibility does fail, you're always the one to take the blame. 110 And so you're always being tampered with by those damned developers, adding patch over patch over patch, relentlessly changing you 110 And so you're always being tampered with by those damned developers, adding patch over patch over patch, relentlessly changing you 111 111 (they use the word 'improving' but we all know that's a lie) until you barely resemble your initial form.</p> 112 <p>And since you're a Cryout Creations theme, people can, and will, customize you a great deal. You're one but you're not the same. 112 <p>And since you're a Cryout Creations theme, people can, and will, customize you a great deal. You're one but you're not the same. 113 113 Different layouts, color schemes, fonts, widgets - you name it and it's customizable. It's near impossible for you to know who you really are anymore, 114 114 a myriad of personas and you can't relate with any of them. Plus, with the whole responsive trend lately, they keep putting you in all these tight, 115 115 uncomfortable places and expect you to just act natural.</p> 116 116 <p>And sometimes, after all this probing and poking around, they decide you're simply not good enough. You don't fit with the subject matter. 117 You're too dark. Too round. Not enough umph. So they choose another theme, the first that shows up in search, some soulless Twenty-something 118 theme and then just move on. And that- that is the worst. You feel dirty, used and abandoned. But somehow you must move on as well, 117 You're too dark. Too round. Not enough umph. So they choose another theme, the first that shows up in search, some soulless Twenty-something 118 theme and then just move on. And that- that is the worst. You feel dirty, used and abandoned. But somehow you must move on as well, 119 119 because another download is in progress and that Install button is about to be pressed once more... </p> 120 120 <p>You wake up and you're a WordPress theme. You don't know your name but that's all right. </p> 121 121 </div> 122 122 123 <a class="button" href="customize.php" id="customizer"> <?php _e( 'Customize Verbosa', 'verbosa'); ?> </a>124 123 <a class="button" href="customize.php" id="customizer"> <?php _e( 'Customize Verbosa', 'verbosa'); ?> </a> 124 125 125 </div><!--lefty --> 126 126 … … 128 128 <div id="righty" > 129 129 <div id="verbosa-donate" class="postbox donate"> 130 130 131 131 <h3 class="hndle"> Coffee Break </h3> 132 132 <div class="inside"> … … 137 137 for us to fall asleep so he can trap and torture us in our own dreams and make us create themes for nightmares (whatever that means). </p> 138 138 139 <p>So after much though we've come to the conclusion that the only way to beat this is to stay awake until he dies of old age. 139 <p>So after much though we've come to the conclusion that the only way to beat this is to stay awake until he dies of old age. 140 140 But in order for us to stay awake that long, we'd need some sort of stimulant. So, unless you have a better idea, 141 141 we'd really appreciate it if you'd... </p> … … 153 153 154 154 </div><!-- inside --> 155 155 156 156 </div><!-- donate --> 157 157 158 158 <div id="verbosa-export" class="postbox export" > 159 159 160 160 <h3 class="hndle"><?php _e( 'Settings Management', 'verbosa' ); ?></h3> 161 161 <div class="panel-wrap inside"> 162 162 163 163 <form action="" method="post"> 164 164 <input type="hidden" name="verbosa_reset_defaults" value="true" /> … … 167 167 168 168 </div><!-- inside --> 169 169 170 170 </div><!-- export --> 171 171 … … 181 181 <script type="text/javascript"> 182 182 var reset_confirmation = '<?php echo esc_html(__('Reset Verbosa Settings to Defaults?', 'verbosa')); ?>'; 183 </script> <?php 183 </script> <?php 184 184 } // verbosa_page_fn() -
verbosa/0.9.2/admin/options.php
r357746 r357746 1 1 <?php 2 2 /** 3 * Customizer settings and other theme related settings (fonts arrays, widget areas) 3 * Customizer settings and other theme related settings (fonts arrays, widget areas) 4 4 * 5 5 * @package Verbosa 6 6 */ 7 7 8 8 function cryout_sanitize_tn($input){ 9 9 return preg_replace( '/[^a-z0-9-]/i', '-', $input ); … … 16 16 function cryout_gen_values( $from, $to, $step = 1, $attr = array() ){ 17 17 // prepend extra values 18 if ( !empty($attr['pre']) && is_array($attr['pre']) ) $data = $attr['pre']; 18 if ( !empty($attr['pre']) && is_array($attr['pre']) ) $data = $attr['pre']; 19 19 else $data = array(); 20 20 // set float precision … … 24 24 if ( !empty($attr['um']) ) $um = $attr['um']; 25 25 else $um = ''; 26 26 27 27 // generate numbers 28 if ($step < 1): 28 if ($step < 1): 29 29 // floats 30 30 for ($i=$from;$i<=$to;$i+=$step) { 31 31 $data[] = number_format($i,$precision).$um; 32 32 } 33 else: 33 else: 34 34 // integers 35 35 for ($i=$from;$i<=$to;$i+=$step) { 36 36 $data[] = $i.$um; 37 } 37 } 38 38 endif; 39 39 40 40 // append extra values 41 41 if ( !empty($attr['post']) && is_array($attr['post']) ) $data = array_merge($data,$attr['post']); 42 42 43 43 return $data; 44 44 } // cryout_gen_values() … … 50 50 'info_sections' => array( 51 51 'about' => array( 52 'title' => __( 'About ' . _CRYOUT_THEME_NAME, 'cryout' ),52 'title' => __( 'About', 'cryout' ) . ' ' . _CRYOUT_THEME_NAME, 53 53 'desc' => __( 'Got a question? Need help?', 'cryout' ), 54 54 ), … … 86 86 'section' => 'about', 87 87 ), 88 ), // info_settings 88 ), // info_settings 89 89 90 90 'panel_overrides' => array( … … 113 113 'type' => 'section', 114 114 ), 115 'colors' => array( 116 'section' => 'section', 117 'replaces' => 'colors', 118 'type' => 'remove', 119 ), 120 115 121 116 ), // panel_overrides 122 117 … … 138 133 // layout 139 134 array('id'=>'verbosa_layout', 'title'=>__('Layout', 'verbosa'), 'callback'=>'', 'sid'=>''), 140 // header 135 // header 141 136 array('id'=>'verbosa_siteheader', 'title'=>__('Header Structure','verbosa'), 'callback'=>'', 'sid'=> ''), 142 // presentation 137 // presentation 143 138 /* to be done */ 144 139 // text 145 140 array('id'=>'verbosa_fontfamily', 'title'=>__('General Font','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'), 146 array('id'=>'verbosa_fontheader', 'title'=>__('Header Fonts','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'), 141 array('id'=>'verbosa_fontheader', 'title'=>__('Header Fonts','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'), 147 142 array('id'=>'verbosa_fontwidget', 'title'=>__('Widget Fonts','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'), 148 array('id'=>'verbosa_fontcontent', 'title'=>__('Content Fonts','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'), 143 array('id'=>'verbosa_fontcontent', 'title'=>__('Content Fonts','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'), 149 144 array('id'=>'verbosa_textformatting', 'title'=>__('Formatting','verbosa'), 'callback'=>'', 'sid'=> 'verbosa_text_section'), 150 145 // graphics … … 168 163 array('id'=>'verbosa_socials', 'title'=>__('Social Icons','verbosa'), 'callback'=>'', 'sid'=> ''), 169 164 // misc 170 array('id'=>'verbosa_misc', 'title'=>__('Miscellaneous','verbosa'), 'callback'=>'', 'sid'=> ''), 171 165 array('id'=>'verbosa_misc', 'title'=>__('Miscellaneous','verbosa'), 'callback'=>'', 'sid'=> ''), 166 172 167 /*** developer options ***/ 173 168 //array('id'=>'verbosa_developer', 'title'=>__('[ Developer Options ]','verbosa'), 'callback'=>'', 'sid'=>''), 174 169 175 170 ), // sections 176 171 … … 199 194 ), 200 195 'desc' => __("Defines the general site layout.<br>This can be overridden in pages by using Page Templates.","verbosa"), 201 'section' => 'verbosa_layout' ), 196 'section' => 'verbosa_layout' ), 202 197 array( 203 198 'id' => 'verbosa_sitewidth', … … 223 218 'desc' => __("Width (in pixels) of the sidebar.","verbosa"), 224 219 'section' => 'verbosa_layout' ), 225 220 226 221 array( 227 222 'id' => 'verbosa_sidebarback', … … 252 247 ), 253 248 'desc' => __("This layout applies to post lists and will arrange posts in columns.","verbosa"), 254 'section' => 'verbosa_layout' ), 249 'section' => 'verbosa_layout' ), 255 250 array( 256 251 'id' => 'verbosa_contentmargintop', … … 265 260 'values' => cryout_gen_values( 0, 15, 1, array('um'=>'') ), 266 261 'desc' => __("Set the left/right padding (in percent) for each page/post/content element.","verbosa"), 267 'section' => 'verbosa_layout' ), 268 262 'section' => 'verbosa_layout' ), 263 269 264 array( 270 265 'id' => 'verbosa_footercols', … … 274 269 'labels' => array( "All in a row" , "1 Column", "2 Columns" , "3 Columns" , "4 Columns" ), 275 270 'desc' => __("Set the number of footer widgets to display per row.","verbosa"), 276 'section' => 'verbosa_layout' ), 271 'section' => 'verbosa_layout' ), 277 272 array( 278 273 'id' => 'verbosa_footeralign', … … 283 278 'desc' => __("Activate to center align footer widgets.","verbosa"), 284 279 'section' => 'verbosa_layout' ), 285 280 286 281 // Header 287 282 array( … … 300 295 'labels' => array( __("Site Title","verbosa"), __("Logo","verbosa"), __("Logo & Site Title","verbosa"), __("Empty","verbosa") ), 301 296 'desc' => '', 302 'section' => 'verbosa_siteheader' ), 297 'section' => 'verbosa_siteheader' ), 303 298 array( 304 299 'id' => 'verbosa_logoupload', … … 316 311 'desc' => __("Show or hide the menu bullets","verbosa"), 317 312 'section' => 'verbosa_siteheader' ), 318 319 313 314 320 315 //////////////////////////////////////////////////// Colors //////////////////////////////////////////////////// 321 316 322 317 array( 323 318 'id' => 'verbosa_sitebackground', … … 355 350 'label' => __('Menu Text on Hover','verbosa'), 356 351 'desc' => '', 357 'section' => 'verbosa_colors' ), 352 'section' => 'verbosa_colors' ), 358 353 array( 359 354 'id' => 'verbosa_footerbackground', … … 386 381 'desc' => '', 387 382 'section' => 'verbosa_colors' ), 388 383 389 384 //////////////////////////////////////////////////// Fonts //////////////////////////////////////////////////// 390 385 array( // general font … … 416 411 'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ), 417 412 'section' => 'verbosa_fontfamily' ), 418 413 419 414 array( // site title font 420 415 'id' => 'verbosa_fsitetitlesize', … … 436 431 'type' => 'font', 437 432 'label' => '', 438 'desc' => '', 433 'desc' => '', 439 434 'section' => 'verbosa_fontheader' ), 440 435 array( … … 444 439 'desc' => __("Insert a Google font name/identifier in the field above to override the selected font.","verbosa"), 445 440 'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ), 446 'section' => 'verbosa_fontheader' ), 447 441 'section' => 'verbosa_fontheader' ), 442 448 443 array( // site description font 449 444 'id' => 'verbosa_fsitedescsize', … … 465 460 'type' => 'font', 466 461 'label' => '', 467 'desc' => '', 462 'desc' => '', 468 463 'section' => 'verbosa_fontheader' ), 469 464 array( … … 473 468 'desc' => __("Insert a Google font name/identifier in the field above to override the selected font.","verbosa"), 474 469 'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ), 475 'section' => 'verbosa_fontheader' ), 476 470 'section' => 'verbosa_fontheader' ), 471 477 472 array( // menu font 478 473 'id' => 'verbosa_fmenusize', … … 503 498 'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ), 504 499 'section' => 'verbosa_fontheader' ), 505 500 506 501 array( // widget fonts 507 502 'id' => 'verbosa_fwtitlesize', … … 527 522 array( 528 523 'id' => 'verbosa_fwtitlegoogle', 529 'type' => 'googlefont',530 'label' => '',531 'desc' => __("Insert a Google font name/identifier in the field above to override the selected font.","verbosa"),532 'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ),533 'section' => 'verbosa_fontwidget' ),534 535 array(536 'id' => 'verbosa_fwcontentsize',537 'type' => 'select',538 'label' => __('Widget Content','verbosa'),539 'values' => cryout_gen_values( 80, 120, 10, array('um'=>'%') ),540 'desc' => '',541 'section' => 'verbosa_fontwidget' ),542 array(543 'id' => 'verbosa_fwcontentweight',544 'type' => 'select',545 'label' => '',546 'values' => array('300','400','700','800'),547 'labels' => array( __('300 (ligher)','verbosa'), __('400 (normal)','verbosa'), __('700 (bold)','verbosa'), __('800 (bolder)','verbosa') ),548 'desc' => '',549 'section' => 'verbosa_fontwidget' ),550 array(551 'id' => 'verbosa_fwcontent',552 'type' => 'font',553 'label' => '',554 'desc' => '',555 'section' => 'verbosa_fontwidget' ),556 array(557 'id' => 'verbosa_fwcontentgoogle',558 524 'type' => 'googlefont', 559 525 'label' => '', … … 561 527 'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ), 562 528 'section' => 'verbosa_fontwidget' ), 563 529 530 array( 531 'id' => 'verbosa_fwcontentsize', 532 'type' => 'select', 533 'label' => __('Widget Content','verbosa'), 534 'values' => cryout_gen_values( 80, 120, 10, array('um'=>'%') ), 535 'desc' => '', 536 'section' => 'verbosa_fontwidget' ), 537 array( 538 'id' => 'verbosa_fwcontentweight', 539 'type' => 'select', 540 'label' => '', 541 'values' => array('300','400','700','800'), 542 'labels' => array( __('300 (ligher)','verbosa'), __('400 (normal)','verbosa'), __('700 (bold)','verbosa'), __('800 (bolder)','verbosa') ), 543 'desc' => '', 544 'section' => 'verbosa_fontwidget' ), 545 array( 546 'id' => 'verbosa_fwcontent', 547 'type' => 'font', 548 'label' => '', 549 'desc' => '', 550 'section' => 'verbosa_fontwidget' ), 551 array( 552 'id' => 'verbosa_fwcontentgoogle', 553 'type' => 'googlefont', 554 'label' => '', 555 'desc' => __("Insert a Google font name/identifier in the field above to override the selected font.","verbosa"), 556 'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ), 557 'section' => 'verbosa_fontwidget' ), 558 564 559 array( // content fonts 565 560 'id' => 'verbosa_ftitlessize', … … 590 585 'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ), 591 586 'section' => 'verbosa_fontcontent' ), 592 587 593 588 array( // post meta fonts 594 589 'id' => 'verbosa_fmetassize', … … 619 614 'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ), 620 615 'section' => 'verbosa_fontcontent' ), 621 616 622 617 array( 623 618 'id' => 'verbosa_fheadingssize', … … 647 642 'desc' => __("Insert a Google font name/identifier in the field above to override the selected font.","verbosa"), 648 643 'input_attrs' => array( 'placeholder' => __('or enter Google Font','verbosa') ), 649 'section' => 'verbosa_fontcontent' ), 644 'section' => 'verbosa_fontcontent' ), 650 645 651 646 array( // formatting … … 655 650 'values' => cryout_gen_values( 1.0, 2.4, 0.2, array('um'=>'em') ), 656 651 'desc' => __(" ","verbosa"), 657 'section' => 'verbosa_textformatting' ), 658 array( 652 'section' => 'verbosa_textformatting' ), 653 array( 659 654 'id' => 'verbosa_textalign', 660 655 'type' => 'select', … … 677 672 'values' => cryout_gen_values( 0, 2, 0.5, array('um'=>'em') ), 678 673 'desc' => __("Choose the indentation for your paragraphs.","verbosa"), 679 'section' => 'verbosa_textformatting' ), 680 674 'section' => 'verbosa_textformatting' ), 675 681 676 //////////////////////////////////////////////////// Structure //////////////////////////////////////////////////// 682 677 683 678 array( 684 679 'id' => 'verbosa_breadcrumbs', … … 696 691 'labels' => array( __("Enable","verbosa"), __("Disable","verbosa") ), 697 692 'desc' => __("Show numbered pagination. Where there is more than one page, instead of the bottom <em>Older Posts</em> and <em>Newer posts</em> links you will have a numbered pagination. ","verbosa"), 698 'section' => 'verbosa_contentstructure' ), 693 'section' => 'verbosa_contentstructure' ), 699 694 array( 700 695 'id' => 'verbosa_contenttitles', … … 704 699 'labels' => array( __('Always Visible','verbosa'), __('Hide on Pages','verbosa'), __('Hide on Categories','verbosa'), __('Always Hidden','verbosa') ), 705 700 'desc' => __("Control the visibility of titles on pages, categories and/or archives.","verbosa"), 706 'section' => 'verbosa_contentstructure' ), 701 'section' => 'verbosa_contentstructure' ), 707 702 708 703 //////////////////////////////////////////////////// Graphics //////////////////////////////////////////////////// … … 713 708 'label' => __('Border','verbosa'), 714 709 'desc' => '', 715 'section' => 'verbosa_contentgraphics' ), 710 'section' => 'verbosa_contentgraphics' ), 716 711 array( 717 712 'id' => 'verbosa_elementshadow', … … 719 714 'label' => __('Shadow','verbosa'), 720 715 'desc' => '', 721 'section' => 'verbosa_contentgraphics' ), 716 'section' => 'verbosa_contentgraphics' ), 722 717 array( 723 718 'id' => 'verbosa_elementborderradius', … … 725 720 'label' => __('Rounded Corners','verbosa'), 726 721 'desc' => __('These decorations apply to certain theme elements.','verbosa'), 727 'section' => 'verbosa_contentgraphics' ), 728 722 'section' => 'verbosa_contentgraphics' ), 723 729 724 //////////////////////////////////////////////////// Search Box //////////////////////////////////////////////////// 730 725 731 726 //////////////////////////////////////////////////// Post Image //////////////////////////////////////////////////// 732 727 733 728 array( 734 729 'id' => 'verbosa_image_style', … … 762 757 ), 763 758 'desc' => __("Define the border style for your images. Applies to captionless images in posts and pages.","verbosa"), 764 'section' => 'verbosa_postimage' ), 759 'section' => 'verbosa_postimage' ), 765 760 array( 766 761 'id' => 'verbosa_caption_style', … … 770 765 'labels' => array( __('Plain','verbosa'), __('With Border','verbosa'), __('With Background','verbosa') ), 771 766 'desc' => __("Define the caption style for your images. Applies to images that have captions. ","verbosa"), 772 'section' => 'verbosa_postimage' ), 773 774 767 'section' => 'verbosa_postimage' ), 768 769 775 770 //////////////////////////////////////////////////// Post Information //////////////////////////////////////////////////// 776 771 … … 811 806 'desc' => __("Choose the meta information you want to show on posts.","verbosa"), 812 807 'section' => 'verbosa_metas' ), 813 814 808 809 815 810 array( // comments 816 811 'id' => 'verbosa_comclosed', … … 845 840 'desc' => __("In pixels. Sets the maximum width for the comment form. Entering 0 as the value makes the comment form full width.","verbosa"), 846 841 'section' => 'verbosa_comments' ), 847 842 848 843 array( // excerpts 849 844 'id' => 'verbosa_excerpthome', … … 853 848 'labels' => array( __("Excerpt","verbosa"), __("Full Post","verbosa") ), 854 849 'desc' => __("Controls posts appearance on homepage. Only applies to standard posts; other post formats (aside, image, chat, quote etc.) have their specific formatting.","verbosa"), 855 'section' => 'verbosa_excerpts' ), 856 array( 850 'section' => 'verbosa_excerpts' ), 851 array( 857 852 'id' => 'verbosa_excerptsticky', 858 853 'type' => 'select', … … 861 856 'labels' => array( __("Inherit","verbosa"), __("Full Post","verbosa") ), 862 857 'desc' => __("Controls sticky posts appearance on the homepage.","verbosa"), 863 'section' => 'verbosa_excerpts' ), 864 array( 858 'section' => 'verbosa_excerpts' ), 859 array( 865 860 'id' => 'verbosa_excerptarchive', 866 861 'type' => 'select', … … 881 876 'label' => __( 'Excerpt Suffix', 'verbosa' ), 882 877 'desc' => __("Defines the three dots '[...]' that are appended automatically to excerpts.","verbosa"), 883 'section' => 'verbosa_excerpts' ), 878 'section' => 'verbosa_excerpts' ), 884 879 array( 885 880 'id' => 'verbosa_excerptcont', … … 887 882 'label' => __( 'Continue Reading Link', 'verbosa' ), 888 883 'desc' => __("Defines the 'Continue Reading' link text appended to post excerpts.","verbosa"), 889 'section' => 'verbosa_excerpts' ), 890 884 'section' => 'verbosa_excerpts' ), 885 891 886 //////////////////////////////////////////////////// Featured Images //////////////////////////////////////////////////// 892 887 array( … … 924 919 'type' => 'number', 925 920 'label' => __( 'Featured Image Height', 'verbosa' ), 926 'desc' => __("In pixels. The width is not configurable as it is site-width and layout dependent.<br><u style='color: #990000;'>Remember to regenerate your thumbnails after changing this value</u>" , "verbosa"), 927 'section' => 'verbosa_featured' ), 921 'desc' => __("In pixels. The width is not configurable as it is site-width and layout dependent.<br><u style='color: #990000;'>Remember to regenerate your thumbnails after changing this value</u>" , "verbosa"), 922 'section' => 'verbosa_featured' ), 928 923 array( 929 924 'id' => 'verbosa_fresponsive', … … 948 943 'desc' => __("In pixels. The bar that appears under the featured image." , "verbosa"), 949 944 'section' => 'verbosa_featured' ), 950 945 951 946 //////////////////////////////////////////////////// Social Positions //////////////////////////////////////////////////// 952 947 953 948 array( 954 949 'id' => 'verbosa_socials_header_above', … … 956 951 'label' => __( 'Display above Site Title', 'verbosa' ), 957 952 'desc' => '', 958 'section' => 'verbosa_socials' ), 953 'section' => 'verbosa_socials' ), 959 954 array( 960 955 'id' => 'verbosa_socials_header_below', … … 962 957 'label' => __( 'Display below Site Title', 'verbosa' ), 963 958 'desc' => '', 964 'section' => 'verbosa_socials' ), 959 'section' => 'verbosa_socials' ), 965 960 array( 966 961 'id' => 'verbosa_socials_sidebar', … … 968 963 'label' => __( 'Display at the bottom of the sidebar', 'verbosa' ), 969 964 'desc' => '', 970 'section' => 'verbosa_socials' ), 971 965 'section' => 'verbosa_socials' ), 966 972 967 //////////////////////////////////////////////////// Miscellaneous //////////////////////////////////////////////////// 973 968 array( … … 983 978 'desc' => __("Insert your custom theme CSS. Styling declarations made here will override the theme's if they are specific enough.","verbosa"), 984 979 'section' => 'verbosa_misc' ), 985 980 986 981 //////////////////////////////////////////////////// !!! DEVELOPER !!! //////////////////////////////////////////////////// 987 982 array( … … 992 987 'labels' => array( __("Enabled", "verbosa"), __("Disabled","verbosa") ), 993 988 'desc' => sprintf( __("Enable the Presentation Page homepage slider above the posts list.","verbosa"), '#'), 994 'section' => 'verbosa_developer' ), 989 'section' => 'verbosa_developer' ), 995 990 996 991 ), // options … … 1011 1006 'labels' => array( ), 1012 1007 'desc' => '', 1013 // conditionals 1014 'disable_if' => 'function_name', 1015 'require_fn' => 'function_name', 1008 // conditionals 1009 'disable_if' => 'function_name', 1010 'require_fn' => 'function_name', 1016 1011 'section' => '' ), 1017 1018 */ 1012 1013 */ 1019 1014 1020 1015 /*** fonts ***/ … … 1065 1060 "Bodoni MT, serif", 1066 1061 "Copperplate Light, Copperplate Gothic Light, serif", 1067 "Garamond, Times New Roman, Times, serif" 1062 "Garamond, Times New Roman, Times, serif" 1068 1063 ), 1069 'MonoSpace' => array( 1064 'MonoSpace' => array( 1070 1065 "Courier New, Courier, monospace" , 1071 1066 "Lucida Console, Monaco, monospace", 1072 1067 "Consolas, Lucida Console, Monaco, monospace", 1073 "Monaco, monospace" 1068 "Monaco, monospace" 1074 1069 ), 1075 'Cursive' => array( 1070 'Cursive' => array( 1076 1071 "Lucida Casual, Comic Sans MS , cursive ", 1077 1072 "Brush Script MT,Phyllis,Lucida Handwriting,cursive", 1078 1073 "Phyllis,Lucida Handwriting,cursive", 1079 1074 "Lucida Handwriting,cursive", 1080 "Comic Sans MS, cursive" 1075 "Comic Sans MS, cursive" 1081 1076 ) 1082 1077 ), // fonts … … 1094 1089 'verbosa_fheadings', 1095 1090 ), 1096 1097 1091 1092 1098 1093 /************* widget areas *************/ 1099 1094 … … 1104 1099 'after_widget' => '</section>', 1105 1100 'before_title' => '<h3 class="widget-title"><span>', 1106 'after_title' => '</span></h3>', 1101 'after_title' => '</span></h3>', 1107 1102 ), 1108 1103 'widget-area-right' => array( … … 1115 1110 'footer-widget-area' => array( 1116 1111 'name' => __( 'Footer', 'verbosa' ), 1117 'description' => __('You can select how many widgets to show per row from Graphics » Layout.', 'verbosa'), 1112 'description' => __('You can select how many widgets to show per row from Graphics » Layout.', 'verbosa'), 1118 1113 'before_widget' => '<section id="%1$s" class="widget-container %2$s"><div class="footer-widget-inside">', 1119 1114 'after_widget' => '</div></section>', 1120 1115 'before_title' => '<h3 class="widget-title"><span>', 1121 'after_title' => '</span></h3>', 1116 'after_title' => '</span></h3>', 1122 1117 ), 1123 1118 'content-widget-area-before' => array( … … 1126 1121 'after_widget' => '</section>', 1127 1122 'before_title' => '<h3 class="widget-title"><span>', 1128 'after_title' => '</span></h3>', 1123 'after_title' => '</span></h3>', 1129 1124 ), 1130 1125 'content-widget-area-after' => array( … … 1133 1128 'after_widget' => '</section>', 1134 1129 'before_title' => '<h3 class="widget-title"><span>', 1135 'after_title' => '</span></h3>', 1130 'after_title' => '</span></h3>', 1136 1131 ), 1137 1132 1138 1133 ), // widget-areas 1139 1134 1140 1135 1141 1136 ); // $verbosa_big 1142 -
verbosa/0.9.2/attachment.php
r357746 r357746 11 11 <?php verbosa_header_section() ?> 12 12 <main id="main" role="main" class="main"> 13 13 14 14 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 15 15 16 16 <article id="post-<?php the_ID(); ?>" <?php post_class("post"); cryout_schema_microdata('article');?>> 17 17 18 18 <header> 19 19 <?php cryout_post_title_hook(); ?> … … 26 26 printf( __( 'Full size is %s pixels', 'verbosa'), 27 27 sprintf( '<a href="%1$s" title="%2$s">%3$s × %4$s</a>', 28 wp_get_attachment_url(),28 esc_url( wp_get_attachment_url() ), 29 29 esc_attr( __('Link to full-size image', 'verbosa') ), 30 30 $metadata['width'], … … 39 39 <div class="entry-content" <?php cryout_schema_microdata('entry-content'); ?>> 40 40 <div class="entry-attachment"> 41 41 42 42 <?php if ( wp_attachment_is_image() ) : 43 43 $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); … … 51 51 if ( isset( $attachments[ $k ] ) ) 52 52 // get the URL of the next image attachment 53 $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID);53 $next_attachment_url = esc_url( get_attachment_link( $attachments[ $k ]->ID ) ); 54 54 else 55 55 // or get the URL of the first image attachment 56 $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID);56 $next_attachment_url = esc_url( get_attachment_link( $attachments[ 0 ]->ID ) ); 57 57 } else { 58 58 // or, if there's only 1 image attachment, get the URL of the image 59 $next_attachment_url = wp_get_attachment_url();59 $next_attachment_url = esc_url( wp_get_attachment_url() ); 60 60 } 61 61 ?> … … 65 65 echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height.?> 66 66 </a> 67 </p> 68 67 </p> 68 69 69 <div class="entry-caption"> 70 70 <?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?> 71 71 </div> 72 72 73 73 <?php else : ?> 74 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>74 <a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( esc_url( get_permalink() ) ); ?></a> 75 75 <?php endif; ?> 76 76 </div><!-- .entry-attachment --> 77 77 78 78 <footer class="entry-meta"> 79 79 <?php cryout_post_footer_hook(); ?> 80 80 <?php if ( ! empty( $post->post_parent ) ) : ?> 81 <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent );?>" title="<?php esc_attr( printf( __( 'Return to %s', 'verbosa' ), get_the_title( $post->post_parent ) ) ); ?>" ><?php81 <p class="page-title"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ) ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'verbosa' ), get_the_title( $post->post_parent ) ) ); ?>" ><?php 82 82 /* translators: %s - title of parent post */ 83 83 printf( '« %s', get_the_title( $post->post_parent ) ); 84 84 ?></a></p> 85 85 <?php endif; ?> 86 </footer><!-- .entry-meta --> 86 </footer><!-- .entry-meta --> 87 87 88 88 … … 93 93 <div class="nav-previous"><?php previous_image_link( false,'<i class="icon-arrow-left2"></i>'.__("Previous image","verbosa")); ?></div> 94 94 <div class="nav-next"><?php next_image_link( false,__("Next image","verbosa").'<i class="icon-arrow-right2"></i>' ); ?></div> 95 </div><!-- #nav-below --> 96 97 <?php comments_template( '', true ); ?> 98 95 </div><!-- #nav-below --> 96 97 <?php comments_template( '', true ); ?> 98 99 99 </article><!-- #post-## --> 100 100 … … 102 102 <?php endwhile; ?> 103 103 104 104 105 105 106 106 </main><!-- #main --> -
verbosa/0.9.2/cryout/customizer.php
r357746 r357746 5 5 6 6 ///////// SANITIZERS ///////// 7 7 8 8 function cryout_customizer_sanitize_blank(){ 9 9 // dummy function that does nothing, since the sanitized add_section … … 21 21 22 22 function cryout_customizer_sanitize_url($input){ 23 return esc_url_raw( $input ); 23 return esc_url_raw( $input ); 24 24 } // cryout_customizer_sanitize_url() 25 25 26 26 function cryout_customizer_sanitize_googlefont($input){ 27 return preg_replace( '/\+/', ' ', wp_kses_post($input) ); 27 return preg_replace( '/\+/', ' ', wp_kses_post($input) ); 28 28 } // cryout_customizer_sanitize_url() 29 29 … … 38 38 39 39 function cryout_customizer_sanitize_generic($input){ 40 return wp_kses_post( $input ); 40 return wp_kses_post( $input ); 41 41 } // cryout_customizer_sanitize_generic() 42 42 … … 48 48 class Cryout_Customize_Link_Control extends WP_Customize_Control { 49 49 public $type = 'link'; 50 public function render_content() { 50 public function render_content() { 51 51 if ( !empty( $this->description ) ) { ?> 52 52 <li class="customize-section-description-container"> … … 60 60 } 61 61 } // class Cryout_Customize_Link_Control 62 62 63 63 class Cryout_Customize_About_Control extends WP_Customize_Control { 64 64 public $type = 'about'; 65 public function render_content() { 65 public function render_content() { 66 66 if ( ! empty( $this->label ) ) { ?> 67 <span class="customize-control-title"><?php echo $this->label?></span>68 <?php } 67 <span class="customize-control-title"><?php echo esc_attr( $this->label ) ?></span> 68 <?php } 69 69 if ( ! empty( $this->description ) ) { ?> 70 <span class="description customize-control-description cryout-nomove"><?php echo $this->description;?></span>70 <span class="description customize-control-description cryout-nomove"><?php echo wp_kses_post( $this->description ) ?></span> 71 71 <?php } ?> 72 <span class="customize-control-content customize-cryout-about-link"><?php echo $this->value() ?></span>72 <span class="customize-control-content customize-cryout-about-link"><?php echo wp_kses_post( $this->value() ) ?></span> 73 73 <?php 74 74 } 75 75 } // class Cryout_Customize_About_Control 76 77 76 77 78 78 class Cryout_Customize_Blank_Control extends WP_Customize_Control { 79 79 public $type = 'blank'; 80 public function render_content() { 80 public function render_content() { 81 81 echo ' '; 82 82 } 83 83 } // class Cryout_Customize_Blank_Control 84 85 84 85 86 86 class Cryout_Customize_Font_Control extends WP_Customize_Control { 87 87 public $type = 'font'; … … 114 114 <?php 115 115 } // render_content() 116 116 117 117 public function enqueue() { 118 118 wp_enqueue_script( 'jquery-ui-core' ); … … 120 120 wp_enqueue_script( 'cryout-customizer-controls-js', get_template_directory_uri() . '/cryout/js/customizer-controls.js', array('jquery'), _CRYOUT_THEME_VERSION ); 121 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 ); 122 wp_enqueue_style( 'jquery-ui-slider-theme', get_template_directory_uri() . '/cryout/css//jquery-ui.theme.css', NULL, _CRYOUT_THEME_VERSION ); 123 123 } // enqueue() 124 124 125 125 } // class Cryout_Customize_Font_Control 126 126 127 127 128 128 class Cryout_Customize_Slider_Control extends WP_Customize_Control { 129 129 … … 135 135 public function render_content() { ?> 136 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']; ?>137 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?>: 138 <strong class="value"><?php echo esc_attr( $this->value() ) ?></strong><?php echo $this->input_attrs['um']; ?> 139 139 </span> 140 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']?>" />141 <input name="<?php echo esc_attr( $this->id ) ?>" type="number" <?php esc_attr( $this->link() ) ?> value="<?php echo absint( $this->value() ) ?>" class="slider" 142 step="<?php echo absint($this->input_attrs['step']) ?>" min="<?php echo absint( $this->input_attrs['min']) ?>" max="<?php echo absint( $this->input_attrs['max'] ) ?>" /> 143 143 <div class="slider"></div> 144 144 <?php if ( ! empty( $this->description ) ) : ?> 145 <span class="description cryout-nomove customize-control-description"><?php echo $this->description;?></span>145 <span class="description cryout-nomove customize-control-description"><?php echo wp_kses_post( $this->description ) ?></span> 146 146 <?php endif; ?> 147 147 <?php 148 148 } // render_content() 149 149 150 150 public function enqueue() { 151 151 // google fonts enqueues for the font selectors preview … … 155 155 foreach ($cryout_theme_structure['google-font-enabled-fields'] as $item) { 156 156 if ( preg_match('/^(.*)\/gfont$/i', $cryout_theme_options[$item], $bits) ) $gfonts[] = $bits[1]; 157 }; 157 }; 158 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() 162 159 wp_enqueue_style( 'cryout-googlefonts', '//fonts.googleapis.com/css?family=' . implode( "|" , array_unique($gfonts) ), null, _CRYOUT_THEME_VERSION ); 160 endif; 161 } // enqueue() 162 163 163 } // class Cryout_Customize_Slider_Control 164 165 164 165 166 166 class Cryout_Customize_SliderTwo_Control extends WP_Customize_Control { 167 167 public $type = 'slidertwo'; … … 171 171 172 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']; ?>173 <label><span class="customize-control-title"><?php echo esc_html( $this->label ); ?>: 174 <strong class="value"><?php echo absint( $this->value() ); ?></strong><?php echo $this->input_attrs['um']; ?> / 175 <strong class="value2"><?php echo ( intval($this->input_attrs['total']) - intval($this->value()) ); ?></strong><?php echo esc_attr( $this->input_attrs['um'] ); ?> 176 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']?>"/>177 <input name="<?php echo esc_attr( $this->id ) ?>" type="number" <?php esc_attr( $this->link() ); ?> value="<?php echo absint( $this->value() ); ?>" class="slidertwo" 178 step="<?php echo absint( $this->input_attrs['step'] ) ?>" min="<?php echo absint( $this->input_attrs['min'] ) ?>" 179 max="<?php echo absint( $this->input_attrs['max'] ) ?>" size="<?php echo absint( $this->input_attrs['total'] ) ?>"/> 180 180 <div class="slidertwo"></div> 181 181 <?php if ( ! empty( $this->description ) ) : ?> 182 <span class="description cryout-nomove customize-control-description"><?php echo $this->description;?></span>182 <span class="description cryout-nomove customize-control-description"><?php echo wp_kses_post( $this->description ) ?></span> 183 183 <?php endif; ?> 184 184 <?php 185 185 } // render_content() 186 186 187 187 public function enqueue() { 188 188 wp_enqueue_script( 'jquery-ui-core' ); … … 192 192 wp_enqueue_style( 'jquery-ui-slider-theme', get_template_directory_uri() . '/cryout/css//jquery-ui.theme.css' ); 193 193 } // enqueue() 194 194 195 195 } // class Cryout_Customize_Slider_Control 196 197 196 197 198 198 class Cryout_Customize_RadioImage_Control extends WP_Customize_Control { 199 199 public $type = 'radioimage'; … … 201 201 parent::__construct( $manager, $id, $args ); 202 202 } // __construct() 203 204 public function render_content() { 205 206 if ( empty( $this->choices ) ) return; 207 203 204 public function render_content() { 205 206 if ( empty( $this->choices ) ) return; 207 208 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 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 213 foreach ( $this->choices as $value => $data ) : 214 214 215 215 $data['url'] = esc_url( sprintf( $data['url'], get_template_directory_uri(), get_stylesheet_directory_uri() ) ); 216 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'] ) ?>"/>217 <input type="radio" value="<?php echo esc_attr( $value ); ?>" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ) . "-" . $value; ?>" <?php esc_attr( $this->link() ); checked( $this->value(), $value ); ?> /> 218 <label for="<?php echo esc_attr( $name ) . "-" . esc_attr( $value ) ?>"> 219 <img src="<?php echo esc_url( $data['url'] ) ?>" alt="<?php echo esc_html( $data['label'] ) ?>" title="<?php echo esc_html( $data['label'] ) ?>"/> 220 220 <span class="screen-reader-text"><?php echo esc_html( $data['label'] ); ?></span> 221 221 </label> 222 222 <?php 223 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 224 </div><!-- .buttonset --> 225 226 <?php if ( ! empty( $this->description ) ) { ?> <span class="description cryout-nomove customize-control-description"><?php echo wp_kses_post( $this->description ); ?></span><?php } ?> 227 <?php 228 228 } // render_content() 229 229 230 230 public function enqueue() { 231 231 wp_enqueue_script( 'jquery-ui-core' ); … … 235 235 } // class Cryout_Customize_RadioImage_Control 236 236 237 237 238 238 } // cryout_customizer_extras() 239 239 … … 241 241 ////////// THE CUSTOMIZER CLASS ///////// 242 242 class Cryout_Customizer { 243 243 244 244 public function __construct () { 245 245 246 246 } // __construct() 247 247 248 public static function register( $wp_customize ) { 248 public static function register( $wp_customize ) { 249 249 global $cryout_theme_settings; 250 250 global $cryout_theme_defaults; 251 251 252 252 ////////// add about theme panel and sections ////////// 253 253 if (!empty($cryout_theme_settings['info_sections'])): … … 255 255 'priority' => 0, 256 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' ), 257 'description' => sprintf( __( '%1$s by %1$s', 'cryout' ), ucwords(_CRYOUT_THEME_NAME), 'Cryout Creations' ), 258 258 ) ); 259 259 $section_priority = 10; 260 260 261 261 foreach ($cryout_theme_settings['info_sections'] as $iid=>$info): 262 262 $wp_customize->add_section( $iid, array( … … 282 282 'settings' => $iid, 283 283 'priority' => 10, 284 ) ) ); 285 endforeach; 284 ) ) ); 285 endforeach; 286 286 ////////// end about panel 287 287 288 288 ////////// add custom theme options panels ////////// 289 289 $priority = 45; … … 294 294 'title' => $panel['title'], 295 295 'description' => '', 296 'priority' => $priority+=5, 297 ) ); 298 299 endforeach; 300 296 'priority' => $priority+=5, 297 ) ); 298 299 endforeach; 300 301 301 ////////// add custom theme options sections, settings and empty placeholder control ////////// 302 302 $section_priority = 60; 303 303 foreach ($cryout_theme_settings['sections'] as $section): 304 304 305 305 // override section id to make it uniquely identifiable 306 306 $wp_customize->add_section( 'cryout-' . $section['id'], array( … … 310 310 'panel' => ($section['sid']?'cryout-' . $section['sid']:''), 311 311 ) ); 312 312 313 313 $wp_customize->add_setting( 'placeholder_'.$section_priority, array( 314 314 'default' => '', 315 315 'capability' => 'edit_theme_options', 316 316 'sanitize_callback' => 'cryout_customizer_sanitize_blank' 317 ) ); 318 317 ) ); 318 319 319 // override section id to make it uniquely identifiable 320 320 $wp_customize->add_control( new Cryout_Customize_Blank_Control( $wp_customize, 'placeholder_'.$section_priority, array( … … 322 322 'settings' => 'placeholder_'.$section_priority, 323 323 'priority' => 10, 324 ) ) ); 325 324 ) ) ); 325 326 326 endforeach; 327 327 ////////// end option panels/sections 328 328 329 329 ////////// override built-in wordpress customizer panels, if set ////////// 330 330 if (!empty($cryout_theme_settings['panel_overrides'])) 331 331 foreach ($cryout_theme_settings['panel_overrides'] as $poid => $pover): 332 332 333 333 if (empty($pover['priority2'])) $pover['priority2'] = 60; // failsafe 334 334 switch ($pover['type']): … … 336 336 switch( $pover['section'] ): 337 337 case 'panel': 338 $wp_customize->remove_panel( $pover['replaces']); 338 $wp_customize->remove_panel( $pover['replaces']); 339 339 break; 340 340 case 'section': 341 $wp_customize->remove_section( $pover['replaces']); 342 break; 341 $wp_customize->remove_section( $pover['replaces']); 342 break; 343 343 case 'setting': 344 344 default: 345 $wp_customize->remove_setting( $pover['replaces']); 345 $wp_customize->remove_setting( $pover['replaces']); 346 346 break; 347 347 endswitch; 348 348 break; 349 349 case 'section': // move built-in setting to theme panel 350 $wp_customize->get_section( $pover['replaces'] )->panel = $pover['section']; 350 $wp_customize->get_section( $pover['replaces'] )->panel = $pover['section']; 351 351 $wp_customize->get_section( $pover['replaces'] )->priority = $pover['priority2']; 352 352 break; … … 362 362 break; 363 363 endswitch; 364 365 endforeach; 366 364 365 endforeach; 366 367 367 ////////// add custom theme option controls, based on option type ////////// 368 368 foreach ($cryout_theme_settings['options'] as $opt): 369 369 370 370 // check if option should be visible on this wp version 371 371 if ( !empty( $opt['disable_if'] ) ) { 372 if ( function_exists($opt['disable_if']) ) continue; 373 } 372 if ( function_exists($opt['disable_if']) ) continue; 373 } 374 374 if ( !empty( $opt['require_fn'] ) ) { 375 if ( ! function_exists($opt['require_fn']) ) continue; 376 } 377 375 if ( ! function_exists($opt['require_fn']) ) continue; 376 } 377 378 378 ////////// sanitizer function callback select 379 switch ($opt['type']): 380 case 'number': case 'slider': 379 switch ($opt['type']): 380 case 'number': case 'slider': 381 381 case 'range': $sanitize_callback = 'cryout_customizer_sanitize_number'; break; 382 382 case 'checkbox': $sanitize_callback = 'cryout_customizer_sanitize_checkbox'; break; … … 387 387 $sanitize_callback = 'cryout_customizer_sanitize_number'; break; 388 388 case 'blank': $sanitize_callback = 'cryout_customizer_sanitize_blank'; break; 389 case 'text': case 'tel': case 'email': case 'search': case 'radio': 390 case 'time': case 'date': case 'datetime': case 'week': 389 case 'text': case 'tel': case 'email': case 'search': case 'radio': 390 case 'time': case 'date': case 'datetime': case 'week': 391 391 case 'textarea': $sanitize_callback = 'cryout_customizer_sanitize_textarea'; break; 392 392 default: $sanitize_callback = 'cryout_customizer_sanitize_generic'; break; 393 393 endswitch; 394 394 395 395 ////////// guess theme options variable name 396 396 if (function_exists('cryout_get_theme_options_name')) { … … 399 399 $theme_options_array = _CRYOUT_THEME_NAME . '_settings'; 400 400 }; 401 $opid = $theme_options_array . '[' . $opt['id'] . ']'; 402 401 $opid = $theme_options_array . '[' . $opt['id'] . ']'; 402 403 403 // override section id to make it uniquely identifiable 404 404 $opt['section'] = 'cryout-' . $opt['section']; … … 411 411 'sanitize_callback' => $sanitize_callback, 412 412 ) ); 413 413 414 414 ////////// cycle through and add appropriate control types 415 415 switch ($opt['type']): // control selector 416 case 'text': 417 case 'number': 418 case 'url': case 'tel': case 'email': case 'search:': case 'time': case 'date': case 'datetime': case 'week': 416 case 'text': 417 case 'number': 418 case 'url': case 'tel': case 'email': case 'search:': case 'time': case 'date': case 'datetime': case 'week': 419 419 case 'textarea': 420 420 case 'checkbox': … … 440 440 ) ); 441 441 break; 442 case 'radio': 442 case 'radio': 443 443 case 'select': 444 444 if (empty($opt['labels'])) $opt['labels'] = $opt['values']; … … 453 453 ) ); 454 454 break; 455 case 'range': 455 case 'range': 456 456 $wp_customize->add_control( $opid, array( 457 457 'label' => $opt['label'], … … 462 462 'priority' => (isset($opt['priority'])?$opt['priority']:2), 463 463 'input_attrs' => array( 'min' => $opt['min'], 'max' => $opt['max'], 'step' => (isset($opt['step'])?$opt['step']:10) ), 464 ) ); 465 break; 466 case 'slider': 464 ) ); 465 break; 466 case 'slider': 467 467 $wp_customize->add_control( new Cryout_Customize_Slider_Control( $wp_customize, $opid, array( 468 468 'label' => $opt['label'], … … 472 472 'type' => $opt['type'], 473 473 'priority' => (isset($opt['priority'])?$opt['priority']:2), 474 'input_attrs' => array( 475 'min' => $opt['min'], 476 'max' => $opt['max'], 474 'input_attrs' => array( 475 'min' => $opt['min'], 476 'max' => $opt['max'], 477 477 'step' => (isset($opt['step'])?$opt['step']:10), 478 'um' => (isset($opt['um'])?$opt['um']:'') 478 'um' => (isset($opt['um'])?$opt['um']:'') 479 479 ), 480 ) ) ); 481 break; 482 case 'slidertwo': 480 ) ) ); 481 break; 482 case 'slidertwo': 483 483 $wp_customize->add_control( new Cryout_Customize_SliderTwo_Control( $wp_customize, $opid, array( 484 484 'label' => $opt['label'], … … 488 488 'type' => $opt['type'], 489 489 'priority' => (isset($opt['priority'])?$opt['priority']:2), 490 'input_attrs' => array( 491 'min' => $opt['min'], 492 'max' => $opt['max'], 490 'input_attrs' => array( 491 'min' => $opt['min'], 492 'max' => $opt['max'], 493 493 'step' => (isset($opt['step'])?$opt['step']:10), 494 494 'total' => (isset($opt['total'])?$opt['total']:0), 495 'um' => (isset($opt['um'])?$opt['um']:'') 495 'um' => (isset($opt['um'])?$opt['um']:'') 496 496 ), 497 ) ) ); 498 break; 499 case 'radioimage': 497 ) ) ); 498 break; 499 case 'radioimage': 500 500 $wp_customize->add_control( new Cryout_Customize_RadioImage_Control( $wp_customize, $opid, array( 501 501 'label' => $opt['label'], … … 503 503 'section' => $opt['section'], 504 504 'settings' => $opid, 505 'type' => $opt['type'], 505 'type' => $opt['type'], 506 506 'priority' => (isset($opt['priority'])?$opt['priority']:2), 507 507 'choices' => (isset($opt['choices'])?$opt['choices']:array_combine($opt['values'],$opt['labels'])) 508 ) ) ); 508 ) ) ); 509 509 break; 510 510 case 'color': … … 514 514 'section' => $opt['section'], 515 515 'priority' => (isset($opt['priority'])?$opt['priority']:2), 516 ) ) ); 516 ) ) ); 517 517 break; 518 518 case 'font': … … 522 522 'section' => $opt['section'], 523 523 'priority' => (isset($opt['priority'])?$opt['priority']:2), 524 ) ) ); 524 ) ) ); 525 525 break; 526 526 case 'media-image': … … 542 542 break; 543 543 case 'blank': 544 default: 544 default: 545 545 $wp_customize->add_control( new Cryout_Customize_Blank_Control( $wp_customize, $opid, array( 546 546 'label' => $opt['label'], … … 549 549 'settings' => $opid, 550 550 'priority' => (isset($opt['priority'])?$opt['priority']:2), 551 ) ) ); 552 break; 553 endswitch; 554 endforeach; 551 ) ) ); 552 break; 553 endswitch; 554 endforeach; 555 555 ////////// end options sections 556 556 557 557 } // register() 558 558 559 559 } // class Cryout_Customizer 560 560 -
verbosa/0.9.2/cryout/prototypes.php
r357746 r357746 10 10 function cryout_get_theme_options($sub=''){ 11 11 $opts = array(); 12 if ( function_exists( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_options') ) $opts = call_user_func( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME) . '_get_theme_options' ); 12 if ( function_exists( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_options') ) $opts = call_user_func( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME) . '_get_theme_options' ); 13 13 if ( !empty($sub) && !empty($opts[$sub]) ) return $opts[$sub]; 14 14 else return $opts; … … 20 20 function cryout_get_theme_structure($sub=''){ 21 21 $opts = array(); 22 if ( function_exists( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_structure' ) ) $opts = call_user_func( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_structure' ); 22 if ( function_exists( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_structure' ) ) $opts = call_user_func( preg_replace( '/[^a-z0-9]/i', '_', _CRYOUT_THEME_NAME ) . '_get_theme_structure' ); 23 23 if ( !empty($sub) && !empty($opts[$sub]) ) return $opts[$sub]; 24 24 else return $opts; … … 33 33 // if ( !empty($cryout_theme_options) ): // OPTIMIZATION DISABLED DUE TO CUSTOMIZER / CACHING ISSUE 34 34 // get options from global options array 35 // $opts = $cryout_theme_options; 36 // else: 35 // $opts = $cryout_theme_options; 36 // else: 37 37 // no global options array; re-read options from db 38 38 $opts = cryout_get_theme_options(); … … 60 60 */ 61 61 function cryout_is_true( $key ){ 62 if ( in_array( strtolower($key), array( true, 1, "1" , 'enabled', 'enable', 'show' ) ) ) return true; 62 if ( in_array( strtolower($key), array( true, 1, "1" , 'enabled', 'enable', 'show' ) ) ) return true; 63 63 return false; 64 64 } … … 81 81 82 82 /** 83 * 83 * 84 84 */ 85 85 function cryout_optset($var,$val1,$val2='',$val3='',$val4=''){ … … 88 88 } // cryout_optset() 89 89 90 /** 90 /** 91 91 * Converts hex colour code to RGB series to be used in a rgba() CSS colour definition 92 */ 92 */ 93 93 function cryout_hex2rgb($hex) { 94 94 $hex = str_replace("#", "", $hex); … … 125 125 $b = hexdec(substr($hex,4,2)); 126 126 } 127 127 128 128 $rgb_array = array($r,$g,$b); 129 129 $newhex="#"; 130 130 foreach ($rgb_array as $el) { 131 131 $el+=$inc; 132 if ($el<=0) { $el='00'; } 133 elseif ($el>=255) {$el='ff';} 132 if ($el<=0) { $el='00'; } 133 elseif ($el>=255) {$el='ff';} 134 134 else {$el=dechex($el);} 135 135 if(strlen($el)==1) {$el='0'.$el;} … … 146 146 */ 147 147 function cryout_hexdiff($hex,$inc,$f='') { 148 // $f = '-' | '+' 148 // $f = '-' | '+' 149 149 $hex = str_replace("#", "", $hex); 150 150 if (preg_match("/^([a-f0-9]{3}|[a-f0-9]{6})$/i",$hex)): … … 158 158 $b = hexdec(substr($hex,4,2)); 159 159 } 160 160 161 161 $rgb_array = array($r,$g,$b); 162 162 $newhex="#"; 163 164 // guess decimal lightness 163 164 // guess decimal lightness 165 165 if ( ((int)$r < 102) && ((int)$g < 102) && ((int)$b < 102) ) $sign = +1; else $sign = -1; 166 166 167 167 // forced sign handling 168 168 if (!empty($f)) $sign = ($f == '-'? -1 : +1); 169 169 170 170 foreach ($rgb_array as $el) { 171 171 $el += $sign * (int)$inc; 172 if ( $el<0 ) { $el='00'; } 173 elseif ( $el>255 ) { $el='ff'; } 172 if ( $el<0 ) { $el='00'; } 173 elseif ( $el>255 ) { $el='ff'; } 174 174 else { $el = dechex($el); } 175 175 if ( strlen($el)==1 ) { $el='0'.$el; } … … 182 182 } // cryout_hexdiff() 183 183 184 /** 185 * Returns the cleaned up Google font name to be displayed in the font list and used in custom styling 184 /** 185 * Returns the cleaned up Google font name to be displayed in the font list and used in custom styling 186 186 */ 187 187 function cryout_clean_gfont( $font, $identifier = '(:\d+)?\/gfont$' ){ … … 189 189 } // cryout_clean_gfont() 190 190 191 /** 191 /** 192 192 * Returns the correct Google font name style to be used in the frontend 193 193 * based on the configured font identifier … … 197 197 if ( !empty($gfont) ): 198 198 $fontname = esc_attr( preg_replace( '/[:&].*/', '', preg_replace( '/\+/', ' ', $gfont ) ) ); 199 if (preg_match('/:(\d{1,4})/',$gfont,$ms)) $weight = $ms[1]; 200 return "'$fontname'" . ( !empty($weight) ? ";font-weight:$weight" : ""); 199 if (preg_match('/:(\d{1,4})/',$gfont,$ms)) $weight = $ms[1]; 200 return "'$fontname'" . ( !empty($weight) ? ";font-weight:$weight" : ""); 201 201 else: 202 202 return "$font"; … … 211 211 case 2: // for custom styling DEPRECATED 212 212 // $fontname = esc_attr( preg_replace( '/[:&].*/', '', preg_replace( '/\+/', ' ',$gfont ) ) ); 213 // if (preg_match('/:(\d{1,4})/',$gfont,$ms)) $weight = $ms[1]; 213 // if (preg_match('/:(\d{1,4})/',$gfont,$ms)) $weight = $ms[1]; 214 214 // return "'$fontname'" . ( !empty($weight) ? ";font-weight:$weight" : ""); 215 215 break; 216 216 case 1: // for font enqueuing 217 default: 218 return esc_attr(preg_replace( '/\s+/', '+',$gfont)); 217 default: 218 return esc_attr(preg_replace( '/\s+/', '+',$gfont)); 219 219 break; 220 220 } // switch … … 239 239 if ($attachments) { 240 240 foreach($attachments as $attachment) { 241 $image_attributes = wp_get_attachment_image_src( $attachment->ID, $size ) ? 242 wp_get_attachment_image_src( $attachment->ID, $size ) : 241 $image_attributes = wp_get_attachment_image_src( $attachment->ID, $size ) ? 242 wp_get_attachment_image_src( $attachment->ID, $size ) : 243 243 wp_get_attachment_image_src( $attachment->ID ); 244 244 return $image_attributes[0]; … … 248 248 249 249 /** 250 * Outputs inline background image styling 250 * Outputs inline background image styling 251 251 * Used by the header image and post featured images 252 252 */ 253 253 function cryout_echo_bgimage( $image_url, $classes = NULL ) { 254 echo ' style="background-image: url(' . $image_url . ')" ';254 echo ' style="background-image: url(' . esc_url( $image_url ). ')" '; 255 255 if (!empty($classes)): 256 256 if (is_array($classes)) $classes = implode( ' ', $classes ); 257 echo ' class="' . $classes . '" '; 257 echo ' class="' . $classes . '" '; 258 258 endif; 259 259 }; // cryout_echo_bgimage() 260 260 261 /** 262 * Retrieves the IDs for images in a gallery. 263 * Returns array list of image IDs from the post gallery. 264 */ 265 function cryout_get_gallery_images() { 266 $images = array(); 267 268 if ( function_exists( 'get_post_galleries' ) ) { 269 $galleries = get_post_galleries( get_the_ID(), false ); 270 if ( isset( $galleries[0]['ids'] ) ) 271 $images = explode( ',', $galleries[0]['ids'] ); 272 } else { 273 $pattern = get_shortcode_regex(); 274 preg_match( "/$pattern/s", get_the_content(), $match ); 275 $atts = shortcode_parse_atts( $match[3] ); 276 if ( isset( $atts['ids'] ) ) 277 $images = explode( ',', $atts['ids'] ); 278 } 279 280 if ( ! $images ) { 281 $images = get_posts( array( 282 'fields' => 'ids', 283 'numberposts' => 999, 284 'order' => 'ASC', 285 'orderby' => 'none', 286 'post_mime_type' => 'image', 287 'post_parent' => get_the_ID(), 288 'post_type' => 'attachment', 289 ) ); 290 } 291 292 return $images; 261 /** 262 * Retrieves the IDs for images in a gallery. 263 * Returns array list of image IDs from the post gallery. 264 */ 265 function cryout_get_gallery_images() { 266 $images = array(); 267 268 if ( function_exists( 'get_post_galleries' ) ) { 269 $galleries = get_post_galleries( get_the_ID(), false ); 270 if ( isset( $galleries[0]['ids'] ) ) 271 $images = explode( ',', $galleries[0]['ids'] ); 272 } else { 273 $pattern = get_shortcode_regex(); 274 preg_match( "/$pattern/s", get_the_content(), $match ); 275 $atts = shortcode_parse_atts( $match[3] ); 276 if ( isset( $atts['ids'] ) ) 277 $images = explode( ',', $atts['ids'] ); 278 } 279 280 if ( ! $images ) { 281 $images = get_posts( array( 282 'fields' => 'ids', 283 'numberposts' => 999, 284 'order' => 'ASC', 285 'orderby' => 'none', 286 'post_mime_type' => 'image', 287 'post_parent' => get_the_ID(), 288 'post_type' => 'attachment', 289 ) ); 290 } 291 292 return $images; 293 293 } // cryout_get_gallery_images() 294 294 -
verbosa/0.9.2/functions.php
r357746 r357746 11 11 // variables for theme identification - do NOT edit unless you know what you are doing 12 12 define ("_CRYOUT_THEME_NAME", "verbosa"); 13 define ("_CRYOUT_THEME_VERSION", "0.9. 1");13 define ("_CRYOUT_THEME_VERSION", "0.9.2"); 14 14 15 15 require_once(get_template_directory() . "/admin/main.php"); // Admin side -
verbosa/0.9.2/header.php
r357746 r357746 14 14 <link rel="profile" href="http://gmpg.org/xfn/11"> 15 15 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> 16 <!--[if lt IE 9]>17 <script src="<?php echo get_template_directory_uri() . '/resources/js/html5shiv.min.js' ?>"></script>18 <![endif]-->19 16 <?php 20 17 cryout_header_hook(); … … 29 26 <?php cryout_main_hook(); ?> 30 27 <?php cryout_breadcrumbs_hook();?> 31 -
verbosa/0.9.2/includes/core.php
r357746 r357746 12 12 if ( ! function_exists( 'verbosa_header_image' ) ) : 13 13 function verbosa_header_image() { 14 if (get_header_image() != '') { 14 if (get_header_image() != '') { 15 15 $header_image = get_header_image(); 16 16 } 17 17 18 18 if ( !empty($header_image) ):?> 19 19 <?php cryout_header_widget_hook(); ?> 20 <img class="header-image" alt="" src="<?php echo $header_image;?>" />20 <img class="header-image" alt="" src="<?php echo esc_url( $header_image ) ?>" /> 21 21 <?php endif; 22 22 } // verbosa_header_image() … … 28 28 */ 29 29 if ( ! function_exists( 'verbosa_title_and_description' ) ) : 30 function verbosa_title_and_description() { 30 function verbosa_title_and_description() { 31 31 32 32 $verbosas = cryout_get_option( array('verbosa_logoupload','verbosa_siteheader') ); 33 33 echo '<div class="identity">'; 34 34 if ( in_array($verbosas['verbosa_siteheader'], array( 'logo', 'both' ) ) ) { 35 echo verbosa_logo_helper($verbosas['verbosa_logoupload']); 35 echo verbosa_logo_helper($verbosas['verbosa_logoupload']); 36 36 } 37 37 if ( in_array($verbosas['verbosa_siteheader'], array('title', 'both') ) ) { 38 38 $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; 39 39 echo '<' . $heading_tag . cryout_schema_microdata('site-title', 0) . ' id="site-title">'; 40 echo '<span> <a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . get_bloginfo( 'name') . '</a> </span>';40 echo '<span> <a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . esc_attr( get_bloginfo( 'name' ) ) . '</a> </span>'; 41 41 echo '</' . $heading_tag . '>'; 42 echo '<span id="site-description" ' . cryout_schema_microdata('site-description', 0) . ' >' . get_bloginfo( 'description') . '</span>';42 echo '<span id="site-description" ' . cryout_schema_microdata('site-description', 0) . ' >' . esc_attr( get_bloginfo( 'description' ) ) . '</span>'; 43 43 } 44 44 45 45 echo '</div>'; 46 46 } // verbosa_title_and_description() … … 48 48 add_action ('cryout_branding_hook', 'verbosa_title_and_description'); 49 49 50 function verbosa_logo_helper($verbosa_logo) { 51 if ( function_exists( 'the_custom_logo' ) ) { 52 // WP 4.5+ 53 $wp_logo = str_replace('class="custom-logo-link"','id="logo" class="custom-logo-link"', get_custom_logo()); 54 if (!empty($wp_logo) ) return $wp_logo; 55 } else { 56 // older WP 57 if ( !empty($verbosa_logo) ) : 58 $img = wp_get_attachment_image_src($verbosa_logo, 'full'); 50 function verbosa_logo_helper($verbosa_logo) { 51 if ( function_exists( 'the_custom_logo' ) ) { 52 // WP 4.5+ 53 $wp_logo = str_replace('class="custom-logo-link"','id="logo" class="custom-logo-link"', get_custom_logo()); 54 if (!empty($wp_logo) ) return $wp_logo; 55 } else { 56 // older WP 57 if ( !empty($verbosa_logo) ) : 58 $img = wp_get_attachment_image_src($verbosa_logo, 'full'); 59 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() 60 <img title="'.get_bloginfo( 'name' ).'" alt="'.get_bloginfo( 'name' ).'" src="' . esc_url( $img[0] ) . '" /> 61 </a>'; 62 endif; 63 } 64 return ''; 65 } // verbosa_logo_helper() 66 66 67 67 /** … … 73 73 echo '<div id="toTop"><i class="icon-back2top"></i> </div>'; 74 74 } // verbosa_back_top() 75 endif; 75 endif; 76 76 add_action ('cryout_footer_hook', 'verbosa_back_top'); 77 77 … … 85 85 $pagination = cryout_get_option('verbosa_pagination'); 86 86 if ($pagination && function_exists( 'the_posts_pagination' ) ): 87 the_posts_pagination( array( 88 'prev_text' => '<i class="icon-arrow-left2"></i>', 87 the_posts_pagination( array( 88 'prev_text' => '<i class="icon-arrow-left2"></i>', 89 89 'next_text' => '<i class="icon-arrow-right2"></i>', 90 90 'mid_size' => $range 91 ) ); 91 ) ); 92 92 else: 93 93 //posts_nav_link(); 94 94 verbosa_content_nav( 'nav-old-below' ); 95 95 endif; 96 96 97 97 } // verbosa_pagination() 98 98 endif; 99 99 100 100 /** 101 * 101 * 102 102 */ 103 103 if ( ! function_exists( 'verbosa_nextpage_links' ) ) : … … 118 118 */ 119 119 add_action('cryout_master_footer_hook', 'verbosa_master_footer'); 120 function verbosa_master_footer() { 120 function verbosa_master_footer() { 121 121 do_action('cryout_footer_hook'); 122 echo '<div id="site-copyright">' . cryout_get_option( 'verbosa_copyright' ). '</div>';123 echo '<div style="display:block;float:none;clear: both;font-size:.85em; text-align: center;">' . __("Powered by","verbosa") . 124 '<a target="_blank" href="' . esc_url("http://www.cryoutcreations.eu"). '" title="';125 echo 'Verbosa Theme by ' . 'Cryout Creations"> ' . 'Verbosa' .'</a> & <a target="_blank" href="' . esc_url("http://wordpress.org/");126 echo '" title="' . esc_attr ("Semantic Personal Publishing Platform", "verbosa") . '"> ' . sprintf( " %s.", "WordPress" ) . '</a></div>';122 echo '<div id="site-copyright">' . wp_kses_post( cryout_get_option( 'verbosa_copyright' ) ). '</div>'; 123 echo '<div style="display:block;float:none;clear: both;font-size:.85em; text-align: center;">' . __("Powered by","verbosa") . 124 '<a target="_blank" href="' . "https://www.cryoutcreations.eu" . '" title="'; 125 echo esc_attr__( 'Verbosa Theme by', 'verbosa') . ' Cryout Creations"> ' . 'Verbosa' .'</a> & <a target="_blank" href="' . "http://wordpress.org/"; 126 echo '" title="' . esc_attr__( "Semantic Personal Publishing Platform", "verbosa" ) . '"> ' . sprintf( " %s.", "WordPress" ) . '</a></div>'; 127 127 } 128 128 … … 131 131 function verbosa_header_section() { ?> 132 132 <div id="sidebar"> 133 133 134 134 <header id="header" <?php cryout_schema_microdata('header') ?>> 135 <nav id="mobile-menu"> 135 <nav id="mobile-menu"> 136 136 <span id="nav-cancel"><i class="icon-cross"></i></span> 137 137 <?php cryout_mobilemenu_hook(); ?> … … 146 146 <?php cryout_access_hook();?> 147 147 </nav><!-- #access --> 148 148 149 149 </div><!-- #branding --> 150 150 </header><!-- #header --> 151 151 152 152 <?php get_sidebar('right'); ?> 153 153 <?php cryout_master_footer_hook(); ?> 154 154 155 155 </div><!--sidebar--> 156 156 <div id="sidebar-back"></div> … … 161 161 function verbosa_get_layout_class() { 162 162 $verbosa_sitelayout = cryout_get_option( 'verbosa_sitelayout' ); 163 163 164 164 /* If page template, return the page template's layout */ 165 165 global $verbosa_template_layout; 166 166 if (isset($verbosa_template_layout)) return $verbosa_template_layout; 167 167 168 168 /* If not, return the general layout */ 169 169 switch($verbosa_sitelayout) { … … 177 177 178 178 179 /** 180 * Checks the browser agent string for mobile ids and adds "mobile" class to body if true 181 * @return array list of classes. 182 */ 183 function verbosa_mobile_body_class($classes){ 184 $browser = (!empty($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:''); 185 $keys = 'mobile|android|mobi|tablet|ipad|opera mini|series 60|s60|blackberry'; 186 if (preg_match("/($keys)/i",$browser)): $classes[] = 'mobile'; endif; // mobile browser detected 187 return $classes; 179 /** 180 * Checks the browser agent string for mobile ids and adds "mobile" class to body if true 181 * @return array list of classes. 182 */ 183 function verbosa_mobile_body_class($classes){ 184 $browser = (!empty($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:''); 185 $keys = 'mobile|android|mobi|tablet|ipad|opera mini|series 60|s60|blackberry'; 186 if (preg_match("/($keys)/i",$browser)): $classes[] = 'mobile'; endif; // mobile browser detected 187 return $classes; 188 188 } // verbosa_mobile_body_class() 189 189 add_filter('body_class', 'verbosa_mobile_body_class'); … … 198 198 199 199 $verbosas = cryout_get_option( 'verbosa_frontpage' ); 200 200 201 201 $separator = '<i class="icon-ctrl-right"></i>'; // separator between crumbs 202 $home = '<a href="'. home_url().'" title="'.__('Home','verbosa').'"><i class="icon-home"></i></a>'; // text for the 'Home' link202 $home = '<a href="'. esc_url( home_url() ).'" title="'.__('Home','verbosa').'"><i class="icon-home"></i></a>'; // text for the 'Home' link 203 203 $showCurrent = 1; // whether to show current post/page title in breadcrumbs 204 204 $before = '<span class="current">'; // tag before the current crumb 205 205 $after = '</span>'; // tag after the current crumb 206 206 207 207 global $post; 208 $homeLink = home_url();208 $homeLink = esc_url( home_url() ); 209 209 if ( is_front_page() ) { return; } // don't display breadcrumbs on the homepage (yet) 210 210 211 211 // let's begin 212 212 echo '<div id="breadcrumbs-container" class="' . verbosa_get_layout_class() . '"><div id="breadcrumbs"> <nav id="breadcrumbs-nav" ' . cryout_schema_microdata('breadcrumbs', 0) . '>' . $home . $separator . ' '; 213 213 214 214 if ( is_category() ) { 215 215 // category section 216 $thisCat = get_category(get_query_var('cat'), false); 217 if (!empty($thisCat->parent)) echo get_category_parents($thisCat->parent, TRUE, ' ' . $separator . ' '); 216 $queried_object = get_queried_object(); 217 $cat_parents = $queried_object->category_parent; 218 219 if ( !empty( $cat_parents ) ) echo get_category_parents( $cat_parents, TRUE, ' ' . $separator . ' '); 218 220 echo $before . __('Archive for category','verbosa').' "' . single_cat_title('', false) . '"' . $after; 219 221 } elseif ( is_search() ) { … … 222 224 } elseif ( is_day() ) { 223 225 // daily archive 224 echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $separator . ' ';225 echo '<a href="' . get_month_link(get_the_time('Y'),get_the_time('m')) . '">' . get_the_time('F') . '</a> ' . $separator . ' ';226 echo '<a href="' . esc_url( get_year_link( get_the_time('Y') ) ) . '">' . get_the_time('Y') . '</a> ' . $separator . ' '; 227 echo '<a href="' . esc_url( get_month_link( get_the_time('Y'), get_the_time('m') ) ) . '">' . get_the_time('F') . '</a> ' . $separator . ' '; 226 228 echo $before . get_the_time('d') . $after; 227 229 } elseif ( is_month() ) { 228 230 // monthly archive 229 echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $separator . ' ';231 echo '<a href="' . esc_url( get_year_link( get_the_time('Y') ) ) . '">' . get_the_time('Y') . '</a> ' . $separator . ' '; 230 232 echo $before . get_the_time('F') . $after; 231 233 } elseif ( is_year() ) { … … 255 257 $cat = get_the_category($parent->ID); if (isset($cat[0])) {$cat = $cat[0];} else {$cat=false;} 256 258 if ($cat) echo get_category_parents($cat, TRUE, ' ' . $separator . ' '); 257 echo '<a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a>';259 echo '<a href="' . esc_url( get_permalink($parent) ) . '">' . $parent->post_title . '</a>'; 258 260 if ($showCurrent) echo ' ' . $separator . ' ' . $before . get_the_title() . $after; 259 261 } elseif ( is_page() && !$post->post_parent ) { … … 266 268 while ($parent_id) { 267 269 $page = get_page($parent_id); 268 $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>';270 $breadcrumbs[] = '<a href="' . esc_url( get_permalink($page->ID) ) . '">' . get_the_title($page->ID) . '</a>'; 269 271 $parent_id = $page->post_parent; 270 272 } … … 279 281 echo $before . __('Posts tagged','verbosa').' "' . single_tag_title('', false) . '"' . $after; 280 282 } elseif ( is_author() ) { 281 // author archive 283 // author archive 282 284 global $author; 283 285 $userdata = get_userdata($author); … … 287 289 echo $before . __('Not Found','verbosa') . $after; 288 290 } 289 291 290 292 if ( get_query_var('paged') ) { 291 293 if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ' ('; … … 293 295 if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ')'; 294 296 } 295 297 296 298 echo '</nav></div></div><!-- breadcrumbs -->'; 297 299 } // verbosa_breadcrumbs() 298 endif; 300 endif; 299 301 300 302 … … 306 308 if ( ! function_exists( 'cryout_schema_microdata' ) ) : 307 309 function cryout_schema_microdata($location = '', $echo = 1) { 308 310 309 311 $output = ''; 310 312 311 313 switch ($location) { 312 314 313 315 case 'body': 314 316 $output = 'itemscope="itemscope" itemtype="http://schema.org/WebPage"'; 315 317 break; 316 318 317 319 case 'header': 318 320 $output = 'itemscope="itemscope" itemtype="http://schema.org/WPHeader"'; 319 321 break; 320 322 321 323 case 'main': 322 324 $output = 'itemscope="itemscope" itemtype="http://schema.org/Blog"'; 323 325 break; 324 326 325 327 case 'element': 326 328 $output = 'itemscope="itemscope" itemtype="http://schema.org/WebPageElement"'; 327 329 break; 328 330 329 331 case 'sidebar': 330 332 $output = 'itemscope="itemscope" itemtype="http://schema.org/WPSideBar"'; 331 333 break; 332 334 333 335 case 'footer': 334 336 $output = 'itemscope="itemscope" itemtype="http://schema.org/WPFooter"'; 335 337 break; 336 338 337 339 case 'breadcrumbs': 338 340 $output = 'itemprop="breadcrumb"'; 339 341 break; 340 342 341 343 case 'menu': 342 344 $output = 'itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"'; 343 345 break; 344 345 346 /* SITE HEADER */ 346 347 348 /* SITE HEADER */ 347 349 case 'site-title': 348 350 $output = 'itemprop="headline"'; 349 351 break; 350 352 351 353 case 'site-description': 352 354 $output = 'itemprop="description"'; 353 355 break; 354 355 356 /* MAIN CONTENT - BLOG */ 356 357 358 /* MAIN CONTENT - BLOG */ 357 359 case 'article': 358 360 $output = 'itemscope="itemscope" itemtype="http://schema.org/BlogPosting" itemprop="blogPost"'; 359 361 break; 360 362 361 363 case 'page': 362 364 $output = 'itemscope="itemscope" itemtype="http://schema.org/CreativeWork"'; 363 365 break; 364 366 365 367 case 'entry-title': 366 368 $output = 'itemprop="headline"'; 367 369 break; 368 370 369 371 case 'url': 370 372 $output = 'itemprop="url"'; 371 373 break; 372 374 373 375 case 'entry-summary': 374 376 $output = 'itemprop="description"'; 375 377 break; 376 378 377 379 case 'entry-content': 378 380 $output = 'itemprop="articleBody"'; 379 381 break; 380 382 381 383 case 'text': 382 384 $output = 'itemprop="text"'; 383 385 break; 384 386 385 387 case 'comment': 386 388 $output = 'itemscope="itemscope" itemtype="http://schema.org/Comment"'; 387 389 break; 388 390 389 391 case 'comment-author': 390 392 $output = 'itemscope="itemscope" itemtype="http://schema.org/Person" itemprop="creator"'; 391 393 break; 392 393 394 /* POST META */ 394 395 396 /* POST META */ 395 397 case 'author': 396 398 $output = 'itemscope="itemscope" itemtype="http://schema.org/Person" itemprop="author"'; 397 399 break; 398 400 399 401 case 'author-url': 400 402 $output = 'itemprop="url"'; 401 403 break; 402 404 403 405 case 'author-name': 404 406 $output = 'itemprop="name"'; 405 407 break; 406 408 407 409 case 'author-description': 408 410 $output = 'itemprop="description"'; 409 411 break; 410 412 411 413 case 'time': 412 414 $output = 'itemprop="datePublished"'; 413 415 break; 414 416 415 417 case 'time-modified': 416 418 $output = 'itemprop="dateModified"'; 417 419 break; 418 420 419 421 case 'category': 420 422 $output = ''; 421 423 break; 422 424 423 425 case 'tags': 424 426 $output = 'itemprop="keywords"'; 425 427 break; 426 428 427 429 case 'comment-meta': 428 430 $output = 'itemprop="discussionURL"'; 429 431 break; 430 432 431 433 case 'image': 432 434 $output = 'itemprop="image"'; 433 435 break; 434 436 435 437 } // switch 436 438 437 439 $output = ' ' . $output; 438 if ($echo) echo $output; 439 else return $output; 440 440 if ($echo) echo $output; 441 else return $output; 442 441 443 } // cryout_schema_microdata 442 endif; 443 444 /** 444 endif; 445 446 /** 445 447 * Master hook to bypass customizer options 446 */ 448 */ 447 449 if ( ! function_exists( 'cryout_master_hook' ) ) : 448 450 function cryout_master_hook(){ … … 458 460 ); 459 461 if ( $verbosa_interim_options['verbosa_breadcrumbs'] ) add_action('cryout_before_content_hook', 'verbosa_breadcrumbs'); 460 462 461 463 if ( $verbosa_interim_options['verbosa_comlabels'] == 1) { 462 464 add_filter('comment_form_default_fields', 'verbosa_comments_form'); 463 465 add_filter('comment_form_field_comment', 'verbosa_comments_form_textarea'); 464 466 } 465 467 466 468 if ( $verbosa_interim_options['verbosa_socials_header_above'] ) add_action('cryout_branding_hook', 'verbosa_socials_menu_header_above', 5); 467 469 if ( $verbosa_interim_options['verbosa_socials_header_below'] ) add_action('cryout_branding_hook', 'verbosa_socials_menu_header_below', 30); 468 if ( $verbosa_interim_options['verbosa_socials_sidebar'] ) add_action('cryout_footer_hook', 'verbosa_socials_menu_footer', 17); 469 470 }; 470 if ( $verbosa_interim_options['verbosa_socials_sidebar'] ) add_action('cryout_footer_hook', 'verbosa_socials_menu_footer', 17); 471 472 }; 471 473 endif; 472 474 add_action('wp', 'cryout_master_hook'); -
verbosa/0.9.2/includes/loop.php
r357746 r357746 1 <?php 1 <?php 2 2 /** 3 3 * Loop related functions … … 11 11 */ 12 12 function verbosa_excerpt_length_words( $length ) { 13 return cryout_get_option('verbosa_excerptlength');13 return absint( cryout_get_option('verbosa_excerptlength') ); 14 14 } 15 15 /** … … 24 24 function verbosa_continue_reading_link() { 25 25 $verbosa_excerptcont = cryout_get_option('verbosa_excerptcont'); 26 return '<a class="continue-reading-link" href="'. get_permalink() . '"><span>' . $verbosa_excerptcont. '</span><i class="icon-arrow-right2"></i></a>';26 return '<a class="continue-reading-link" href="'. esc_url( get_permalink() ) . '"><span>' . wp_kses_post( $verbosa_excerptcont ) . '</span><i class="icon-arrow-right2"></i></a>'; 27 27 } 28 28 … … 30 30 add_action( 'cryout_post_excerpt_hook', 'verbosa_custom_excerpt_more',10 ); 31 31 add_filter( 'the_content_more_link', 'verbosa_continue_reading_link' ); // 'More' tag 32 32 33 33 34 34 /** … … 36 36 */ 37 37 function verbosa_auto_excerpt_more( $more ) { 38 return cryout_get_option('verbosa_excerptdots');38 return wp_kses_post( cryout_get_option( 'verbosa_excerptdots' ) ); 39 39 } 40 40 add_filter( 'excerpt_more', 'verbosa_auto_excerpt_more' ); … … 67 67 68 68 /** 69 * Posted in category 69 * Posted in category 70 70 */ 71 71 if ( ! function_exists( ' verbosa_posted_category ') ) : 72 72 function verbosa_posted_category() { 73 73 $verbosa_meta_category = cryout_get_option( 'verbosa_meta_category' ); 74 75 if ($verbosa_meta_category && get_the_category_list()) { 74 75 if ($verbosa_meta_category && get_the_category_list()) { 76 76 echo '<span class="bl_categ"' . cryout_schema_microdata('category', 0) . '> 77 77 <i class="icon-books icon-metas" title="'.__("Categories", "verbosa").'"></i>' 78 . get_the_category_list( ' / ' ) . 78 . get_the_category_list( ' / ' ) . 79 79 '</span>'; 80 80 } 81 81 } // verbosa_posted_category() 82 endif; 82 endif; 83 83 84 84 /** … … 97 97 </a> 98 98 </span>', 99 get_author_posts_url( get_the_author_meta( 'ID') ),99 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 100 100 sprintf( esc_attr__( 'View all posts by %s', 'verbosa' ), get_the_author() ), 101 101 get_the_author() … … 103 103 } 104 104 } // verbosa_posted_author 105 endif; 106 107 /** 108 * Posted date/time 105 endif; 106 107 /** 108 * Posted date/time 109 109 */ 110 110 if ( ! function_exists( 'verbosa_posted_meta' ) ) : … … 113 113 $verbosa_meta_time = cryout_get_option( 'verbosa_meta_time' ); 114 114 115 if ($verbosa_meta_date || $verbosa_meta_time ) { 115 if ($verbosa_meta_date || $verbosa_meta_time ) { 116 116 $date = ''; $time = ''; 117 117 if ($verbosa_meta_date) { $date = get_the_date(); } 118 118 if ($verbosa_meta_time) { $time = esc_attr( get_the_time() ); } 119 119 120 120 ?> 121 121 … … 127 127 <time class="updated" datetime="<?php echo get_the_modified_time('c') ?>" <?php cryout_schema_microdata('time-modified') ?>></time> 128 128 </span> 129 <?php 130 } 131 129 <?php 130 } 131 132 132 }; // verbosa_posted_date() 133 133 endif; 134 134 135 135 /** 136 * Posted tags 136 * Posted tags 137 137 */ 138 138 if ( ! function_exists( 'verbosa_posted_meta' ) ) : 139 139 function verbosa_posted_tags() { 140 140 $verbosa_meta_tag = cryout_get_option( 'verbosa_meta_tag' ); 141 141 142 142 $tag_list = get_the_tag_list( '', ' / ' ); 143 143 if ($verbosa_meta_tag && $tag_list) { ?> … … 149 149 <?php 150 150 } 151 151 152 152 }; // verbosa_posted_tags() 153 153 endif; … … 158 158 */ 159 159 if ( ! function_exists( 'verbosa_posted_after' ) ) : 160 function verbosa_posted_after() { 160 function verbosa_posted_after() { 161 161 edit_post_link( __( 'Edit', 'verbosa' ), '<span class="edit-link icon-metas"><i class="icon-pencil2 icon-metas"></i> ', '</span>' ); 162 162 //cryout_post_footer_hook(); /* ?!? */ 163 163 164 164 }; // verbosa_posted_after() 165 165 endif; … … 179 179 /* Remove category from rel in category tags */ 180 180 function verbosa_remove_category_tag( $text ) { 181 $text = str_replace('rel="category tag"', 'rel="tag"', $text); 181 $text = str_replace('rel="category tag"', 'rel="tag"', $text); 182 182 return $text; 183 183 } … … 193 193 global $wp_query; 194 194 if ( $wp_query->max_num_pages > 1 ) : ?> 195 195 196 196 <nav id="<?php echo $nav_id; ?>" class="navigation"> 197 197 <span class="nav-previous"><?php next_posts_link( '<i class="icon-arrow-left2"></i>' . __( 'Older posts', 'verbosa' ) ); ?></span> 198 198 <span class="nav-next"><?php previous_posts_link(__( 'Newer posts', 'verbosa' ) . '<i class="icon-arrow-right2"></i>' ); ?></span> 199 199 </nav><!-- #<?php echo $nav_id; ?> --> 200 200 201 201 <?php endif; 202 202 }; // verbosa_content_nav() … … 206 206 /** 207 207 * Adds a post thumbnail and if one doesn't exist the first post image is returned 208 * @uses cryout_get_first_image( $postID ) 208 * @uses cryout_get_first_image( $postID ) 209 209 */ 210 210 if ( ! function_exists( 'verbosa_set_featured_thumb' ) ) : 211 211 function verbosa_set_featured_thumb() { 212 212 213 213 global $post; 214 214 $verbosas = cryout_get_option( array('verbosa_fpost', 'verbosa_fauto', 'verbosa_falign') ); 215 $featured_image = cryout_post_first_image( $post->ID ); 216 215 $featured_image = cryout_post_first_image( $post->ID ); 216 217 217 if ( function_exists("has_post_thumbnail") && has_post_thumbnail() && $verbosas['verbosa_fpost']) { 218 218 // has featured image 219 219 $featured_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'verbosa-featured' ); 220 $featured_image = $featured_image[0];221 220 $featured_image = esc_url( $featured_image[0] ); 221 222 222 } elseif ( $verbosas['verbosa_fpost'] && $verbosas['verbosa_fauto'] && !empty($featured_image) ) { 223 223 // nothing to do, already got image from inside post 224 225 } else { 224 225 } else { 226 226 // featured image not enabled or not obtainable 227 227 $featured_image = ''; 228 228 }; 229 229 230 230 if ( !empty($featured_image) ): ?> 231 <div class="post-thumbnail-container"> 231 <div class="post-thumbnail-container"> 232 232 <?php if (is_single() || is_page()) { ?> 233 233 234 234 <a <?php cryout_echo_bgimage($featured_image, 'post-featured-image') ?>> </a> 235 235 <a><img class="post-featured-image" alt="" itemprop="image" src="<?php echo $featured_image; ?>" /></a> 236 236 237 237 <?php } 238 238 239 239 else { ?> 240 <a href="<?php echo get_permalink( $post->ID) ?>" title="<?php echo esc_attr( get_post_field( 'post_title', $post->ID ) ) ?>"240 <a href="<?php echo esc_url( get_permalink( $post->ID ) ) ?>" title="<?php echo esc_attr( get_post_field( 'post_title', $post->ID ) ) ?>" 241 241 <?php cryout_echo_bgimage($featured_image, 'post-featured-image') ?>> 242 242 243 243 </a> 244 <a class="responsive-featured-image" href="<?php echo get_permalink( $post->ID) ?>" title="<?php echo esc_attr( get_post_field( 'post_title', $post->ID ) ) ?>">245 <img class="post-featured-image" alt="" itemprop="image" src="<?php echo $featured_image;?>" />244 <a class="responsive-featured-image" href="<?php echo esc_url( get_permalink( $post->ID ) ) ?>" title="<?php echo esc_attr( get_post_field( 'post_title', $post->ID ) ) ?>"> 245 <img class="post-featured-image" alt="" itemprop="image" src="<?php echo esc_url( $featured_image ) ?>" /> 246 246 </a> 247 247 <?php } ?> 248 248 249 249 </div> 250 250 <?php -
verbosa/0.9.2/includes/setup.php
r357746 r357746 22 22 */ 23 23 function verbosa_setup() { 24 24 25 25 $verbosas = cryout_get_option(); 26 26 27 27 // This theme styles the visual editor with editor-style.css to match the theme style. 28 28 add_editor_style( "resources/styles/editor-style.css" ); 29 29 30 30 // Support title tag since WP 4.1 31 31 add_theme_support( 'title-tag' ); … … 33 33 // Add default posts and comments RSS feed links to head 34 34 add_theme_support( 'automatic-feed-links' ); 35 35 36 36 // Add HTML5 support 37 37 add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) ); 38 38 39 39 // Add post formats 40 40 add_theme_support('post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'audio', 'video')); … … 46 46 // This theme allows users to set a custom backgrounssd 47 47 add_theme_support( 'custom-background' ); 48 49 // This theme supports WordPress 4.5 logos 50 add_theme_support( 'custom-logo', array( 'height' => 240, 'width' => 240, 'flex-height' => true, 'flex-width' => true ) ); 51 add_filter('get_custom_logo', 'verbosa_filter_wp_logo_img' ); 52 48 49 // This theme supports WordPress 4.5 logos 50 add_theme_support( 'custom-logo', array( 'height' => 240, 'width' => 240, 'flex-height' => true, 'flex-width' => true ) ); 51 add_filter('get_custom_logo', 'verbosa_filter_wp_logo_img' ); 52 53 53 // This theme uses wp_nav_menu() in 3 locations. 54 54 register_nav_menus( array( … … 69 69 $verbosa_headerwidth = apply_filters( 'verbosa_header_image_width', (int)$verbosas['verbosa_sidebar'] ); 70 70 $verbosa_headerheight = apply_filters( 'verbosa_header_image_height', (int)$verbosas['verbosa_headerheight'] ); 71 add_image_size('header', $verbosa_headerwidth, $verbosa_headerheight, true); 71 add_image_size('header', $verbosa_headerwidth, $verbosa_headerheight, true); 72 72 73 73 // Add support for flexible headers … … 87 87 'description' => __( 'Typewriter', 'verbosa' ) 88 88 ), 89 89 90 90 'breakfast' => array( 91 91 'url' => '%s/resources/images/headers/breakfast.jpg', … … 93 93 'description' => __( 'Breakfast', 'verbosa' ) 94 94 ), 95 95 96 96 'homeoffice' => array( 97 97 'url' => '%s/resources/images/headers/homeoffice.jpg', … … 104 104 endif; 105 105 106 /* 107 * Have two textdomains work with translation systems. 108 * https://gist.github.com/justintadlock/7a605c29ae26c80878d0 109 */ 110 add_filter( 'override_load_textdomain', 'verbosa_override_load_textdomain', 10, 2 ); 111 112 function verbosa_override_load_textdomain( $override, $domain ) { 113 // Check if the domain is our framework domain. 114 if ( 'cryout' === $domain ) { 115 global $l10n; 116 // If the theme's textdomain is loaded, assign the theme's translations 117 // to the framework's textdomain. 118 if ( isset( $l10n[ 'verbosa' ] ) ) 119 $l10n[ $domain ] = $l10n[ 'verbosa' ]; 120 // Always override. We only want the theme to handle translations. 121 $override = true; 122 } 123 return $override; 124 } 125 126 function verbosa_filter_wp_logo_img ( $input ) { 127 return preg_replace( '/(height=".*?"|width=".*?")/i', '', $input); 106 /* 107 * Have two textdomains work with translation systems. 108 * https://gist.github.com/justintadlock/7a605c29ae26c80878d0 109 */ 110 add_filter( 'override_load_textdomain', 'verbosa_override_load_textdomain', 10, 2 ); 111 112 function verbosa_override_load_textdomain( $override, $domain ) { 113 // Check if the domain is our framework domain. 114 if ( 'cryout' === $domain ) { 115 global $l10n; 116 // If the theme's textdomain is loaded, assign the theme's translations 117 // to the framework's textdomain. 118 if ( isset( $l10n[ 'verbosa' ] ) ) 119 $l10n[ $domain ] = $l10n[ 'verbosa' ]; 120 // Always override. We only want the theme to handle translations. 121 $override = true; 122 } 123 return $override; 124 } 125 126 function verbosa_filter_wp_logo_img ( $input ) { 127 return preg_replace( '/(height=".*?"|width=".*?")/i', '', $input); 128 128 } 129 129 … … 143 143 <a href="#main" title="<?php esc_attr_e( 'Skip to content', 'verbosa' ); ?>"> <?php _e( 'Skip to content', 'verbosa' ); ?> </a> 144 144 </div> 145 <?php 146 wp_nav_menu( array( 147 'container' => '', 148 'menu_id' => 'prime_nav', 149 'menu_class' => '', 150 'theme_location'=> 'primary', 151 'link_before' => '<span>', 145 <?php 146 wp_nav_menu( array( 147 'container' => '', 148 'menu_id' => 'prime_nav', 149 'menu_class' => '', 150 'theme_location'=> 'primary', 151 'link_before' => '<span>', 152 152 'link_after' => '</span>', 153 153 'items_wrap' => '<div><ul id="%s" class="%s">%s</ul></div>' 154 154 155 155 ) ); 156 156 } // verbosa_main_menu() … … 158 158 159 159 /** MOBILE MENU **/ 160 function verbosa_mobile_menu() { 161 wp_nav_menu( array( 162 'container' => '', 163 'menu_id' => 'mobile-nav', 160 function verbosa_mobile_menu() { 161 wp_nav_menu( array( 162 'container' => '', 163 'menu_id' => 'mobile-nav', 164 164 'menu_class' => '', 165 'theme_location'=> 'primary', 166 'link_before' => '<span>', 167 'link_after' => '</span>', 165 'theme_location'=> 'primary', 166 'link_before' => '<span>', 167 'link_after' => '</span>', 168 168 'items_wrap' => '<div><ul id="%s" class="%s">%s</ul></div>' 169 169 ) ); … … 173 173 /** SOCIALS MENU **/ 174 174 function verbosa_socials_menu( $location ) { 175 if ( has_nav_menu( 'socials' ) ) 176 echo strip_tags( 177 wp_nav_menu( array( 178 'container' => 'nav', 175 if ( has_nav_menu( 'socials' ) ) 176 echo strip_tags( 177 wp_nav_menu( array( 178 'container' => 'nav', 179 179 'container_class' => 'socials', 180 180 'container_id' => $location, 181 'theme_location' => 'socials', 181 'theme_location' => 'socials', 182 182 'link_before' => '<span>', 183 183 'link_after' => '</span>', … … 186 186 'echo' => false, 187 187 ) ), 188 '<a><div><span><nav>' 188 '<a><div><span><nav>' 189 189 ); 190 190 } //verbosa_socials_menu() … … 227 227 */ 228 228 function verbosa_footer_colophon_class() { 229 229 230 230 $opts = cryout_get_option( array('verbosa_footercols', 'verbosa_footeralign') ); 231 231 … … 242 242 243 243 /** 244 * Set up widget areas 245 */ 246 244 * Set up widget areas 245 */ 246 247 247 function verbosa_widget_before() { 248 248 if ( is_active_sidebar( 'content-widget-area-before' )) { ?> 249 249 <aside class="content-widget content-widget-before" <?php cryout_schema_microdata('sidebar');?>> 250 250 <?php dynamic_sidebar( 'content-widget-area-before' ); ?> 251 </aside><!--content-widget--><?php 252 } 251 </aside><!--content-widget--><?php 252 } 253 253 } 254 254 function verbosa_widget_after() { … … 256 256 <aside class="content-widget content-widget-after" <?php cryout_schema_microdata('sidebar');?>> 257 257 <?php dynamic_sidebar( 'content-widget-area-after' ); ?> 258 </aside><!--content-widget--><?php 259 } 258 </aside><!--content-widget--><?php 259 } 260 260 } 261 261 … … 263 263 add_action ('cryout_after_content_hook', 'verbosa_widget_after'); 264 264 265 266 function verbosa_socials_menu_preset() {267 268 $menu_name = 'Socials Menu';269 $menu_exists = wp_get_nav_menu_object( $menu_name );270 271 if( !$menu_exists){272 $menu_id = wp_create_nav_menu($menu_name);273 274 wp_update_nav_menu_item($menu_id, 0, array(275 'menu-item-title' => 'Facebook',276 'menu-item-url' => 'http://www.facebook.com/profile',277 'menu-item-target' => '_blank',278 'menu-item-status' => 'publish'));279 280 wp_update_nav_menu_item($menu_id , 0, array(281 'menu-item-title' => 'Twitter',282 'menu-item-url' => 'http://www.twitter.com/profile',283 'menu-item-target' => '_blank',284 'menu-item-status' => 'publish'));285 286 wp_update_nav_menu_item($menu_id, 0, array(287 'menu-item-title' => 'Google Plus',288 'menu-item-url' => 'http://plus.google.com/profile',289 'menu-item-target' => '_blank',290 'menu-item-status' => 'publish'));291 292 wp_update_nav_menu_item($menu_id, 0, array(293 'menu-item-title' => 'Custom Social',294 'menu-item-classes' => 'custom',295 'menu-item-url' => '#',296 'menu-item-status' => 'publish'));297 }298 299 if (!empty($menu_id)) {300 $locations = get_theme_mod('nav_menu_locations');301 $locations['socials'] = $menu_id; //$foo is term_id of menu302 set_theme_mod('nav_menu_locations', $locations);303 }304 305 }306 307 add_action('after_switch_theme', 'verbosa_socials_menu_preset');308 309 265 /* FIN */ -
verbosa/0.9.2/includes/styles.php
r357746 r357746 8 8 /* Styles and scripts */ 9 9 function verbosa_enqueue_styles() { 10 11 wp_enqueue_script( 'verbosa-html5shiv', get_template_directory_uri() . '/resources/js/html5shiv.min.js', null, _CRYOUT_THEME_VERSION ); 12 if ( function_exists( 'wp_script_add_data' ) ) wp_script_add_data( 'verbosa-html5shiv', 'conditional', 'lt IE 9' ); 13 10 11 wp_enqueue_script( 'verbosa-html5shiv', get_template_directory_uri() . '/resources/js/html5shiv.min.js', null, _CRYOUT_THEME_VERSION ); 12 if ( function_exists( 'wp_script_add_data' ) ) wp_script_add_data( 'verbosa-html5shiv', 'conditional', 'lt IE 9' ); 13 14 14 $cryout_theme_structure = cryout_get_theme_structure(); 15 15 $verbosas = cryout_get_option(); … … 17 17 wp_enqueue_style( 'verbosa-themefonts', get_template_directory_uri() . '/resources/fonts/fontfaces.css', null, _CRYOUT_THEME_VERSION ); // fontfaces.css 18 18 19 // google fonts 19 // google fonts 20 20 $gfonts = array(); 21 21 foreach ($cryout_theme_structure['google-font-enabled-fields'] as $item) { 22 22 $itemg = $item . 'google'; 23 $itemw = $item . 'weight'; 24 if ( !empty($verbosas[$itemg]) ) $gfonts[] = cryout_gfontclean( $verbosas[$itemg].":".$verbosas[$itemw] ); 25 if ( preg_match('/^(.*)\/gfont$/i', $verbosas[$item], $bits) ) $gfonts[] = $bits[1].":".$verbosas[$itemw]; 23 $itemw = $item . 'weight'; 24 if ( !empty($verbosas[$itemg]) ) $gfonts[] = cryout_gfontclean( $verbosas[$itemg].":".$verbosas[$itemw] ); 25 if ( preg_match('/^(.*)\/gfont$/i', $verbosas[$item], $bits) ) $gfonts[] = $bits[1].":".$verbosas[$itemw]; 26 26 }; 27 27 … … 31 31 // do nothing 32 32 else: 33 wp_enqueue_style( 'verbosa-googlefont'.$i, '//fonts.googleapis.com/css?family=' . $gfont, null, _CRYOUT_THEME_VERSION ); 33 wp_enqueue_style( 'verbosa-googlefont'.$i, '//fonts.googleapis.com/css?family=' . $gfont, null, _CRYOUT_THEME_VERSION ); 34 34 unset($gfonts[$i]); 35 endif; 35 endif; 36 36 endforeach; 37 38 // merged google fonts 37 38 // merged google fonts 39 39 if ( count($gfonts)>0 ): 40 wp_enqueue_style( 'verbosa-googlefonts', '//fonts.googleapis.com/css?family=' . implode( "|" , array_unique($gfonts) ), null, _CRYOUT_THEME_VERSION ); 40 wp_enqueue_style( 'verbosa-googlefonts', '//fonts.googleapis.com/css?family=' . implode( "|" , array_unique($gfonts) ), null, _CRYOUT_THEME_VERSION ); 41 41 endif; 42 42 43 43 // main theme style 44 44 wp_enqueue_style( 'verbosa-main', get_stylesheet_uri(), null, _CRYOUT_THEME_VERSION ); … … 46 46 // RTL style 47 47 if (is_RTL()) wp_enqueue_style( 'verbosa-rtl', get_template_directory_uri() . '/resources/styles/rtl.css', null, _CRYOUT_THEME_VERSION ); 48 48 49 49 // theme generated style 50 50 wp_add_inline_style( 'verbosa-main', preg_replace("/[\n\r\t\s]+/"," " ,verbosa_custom_styles()) ); // includes/custom-styles.php 51 51 52 52 // user custom style 53 53 wp_add_inline_style( 'verbosa-main', preg_replace("/[\n\r\t\s]+/"," " , htmlspecialchars_decode( $verbosas['verbosa_customcss'], ENT_QUOTES ) ) ); 54 54 55 55 // responsive style 56 56 wp_enqueue_style( 'verbosa-responsive', get_template_directory_uri() . '/resources/styles/responsive.css', null, _CRYOUT_THEME_VERSION ); 57 57 58 58 } // verbosa_enqueue_styles 59 59 add_action('wp_head', 'verbosa_enqueue_styles', 5 ); … … 70 70 71 71 72 /* CURRENTLY DISABLED AND HARDCODED TO HEADER.PHP 72 /* CURRENTLY DISABLED AND HARDCODED TO HEADER.PHP 73 73 function verbosa_priority_scripts() { 74 74 // html5shiv 75 wp_enqueue_script( 'verbosa-html5shiv', get_template_directory_uri() . '/resources/js/html5shiv.min.js', null, _CRYOUT_THEME_VERSION ); 76 if ( function_exists( 'wp_script_add_data' ) ) wp_script_add_data( 'verbosa-html5shiv', 'conditional', 'lt IE 9' ); 75 wp_enqueue_script( 'verbosa-html5shiv', get_template_directory_uri() . '/resources/js/html5shiv.min.js', null, _CRYOUT_THEME_VERSION ); 76 if ( function_exists( 'wp_script_add_data' ) ) wp_script_add_data( 'verbosa-html5shiv', 'conditional', 'lt IE 9' ); 77 77 } // verbosa_priority_scripts() 78 78 add_action('wp_enqueue_scripts', 'verbosa_priority_scripts', 1 ); */ … … 99 99 /* Main theme scripts */ 100 100 function verbosa_scripts_method() { 101 101 102 102 wp_enqueue_script( 'verbosa-frontend', get_template_directory_uri() . '/resources/js/frontend.js', array('jquery'), _CRYOUT_THEME_VERSION ); 103 103 104 104 wp_enqueue_script( 'jquery-masonry' ); 105 105 106 106 if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); 107 107 108 108 } 109 109 add_action('wp_footer', 'verbosa_scripts_method'); 110 110 111 function verbosa_scripts_filter($tag) { 112 $scripts_to_defer = array('comment-reply.min.js', 'frontend.js', 'masonry.min.js'); 113 foreach($scripts_to_defer as $defer_script){ 114 if(true == strpos($tag, $defer_script ) ) 115 return str_replace( ' src', ' defer src', $tag ); // ' async' causes issues with masonry 116 } 117 return $tag; 118 } 119 add_filter('script_loader_tag', 'verbosa_scripts_filter', 10, 2);111 function verbosa_scripts_filter($tag) { 112 $scripts_to_defer = array('comment-reply.min.js', 'frontend.js', 'masonry.min.js'); 113 foreach($scripts_to_defer as $defer_script){ 114 if(true == strpos($tag, $defer_script ) ) 115 return str_replace( ' src', ' defer src', $tag ); // ' async' causes issues with masonry 116 } 117 return $tag; 118 } 119 //add_filter('script_loader_tag', 'verbosa_scripts_filter', 10, 2); 120 120 121 121 function verbosa_responsive_meta() { -
verbosa/0.9.2/languages/verbosa.pot
r357746 r357746 2 2 msgstr "" 3 3 "Project-Id-Version: Fluida 0.9\n" 4 "POT-Creation-Date: 2016-0 2-13 17:55+0200\n"5 "PO-Revision-Date: 2016-0 2-13 17:55+0200\n"4 "POT-Creation-Date: 2016-08-30 23:45+0200\n" 5 "PO-Revision-Date: 2016-08-30 23:45+0200\n" 6 6 "Last-Translator: Kay <contact@htx.ro>\n" 7 7 "Language-Team: Cryout Creations\n" … … 16 16 "X-Poedit-SearchPath-0: .\n" 17 17 18 #: 404.php:15 includes/core.php: 31718 #: 404.php:15 includes/core.php:289 19 19 msgid "Not Found" 20 20 msgstr "Not Found" … … 30 30 msgstr "" 31 31 32 #: admin/main.php:7 332 #: admin/main.php:70 33 33 msgid "Sorry, but you do not have sufficient permissions to access this page." 34 34 msgstr "" 35 35 36 #: admin/main.php:114 36 #: admin/main.php:92 37 msgid "Verbosa Homepage" 38 msgstr "" 39 40 #: admin/main.php:93 41 msgid "Support" 42 msgstr "" 43 44 #: admin/main.php:99 37 45 msgid "Verbosa settings updated successfully." 38 46 msgstr "" 39 47 40 #: admin/main.php:1 3848 #: admin/main.php:123 41 49 msgid "Customize Verbosa" 42 50 msgstr "" 43 51 44 #: admin/main.php:1 8552 #: admin/main.php:160 45 53 msgid "Settings Management" 46 54 msgstr "" 47 55 48 #: admin/main.php:191 49 msgid "Export Theme Settings" 50 msgstr "" 51 52 #: admin/main.php:197 53 msgid "Import Theme Settings" 54 msgstr "" 55 56 #: admin/main.php:203 56 #: admin/main.php:165 57 57 msgid "Reset to Defaults" 58 58 msgstr "" 59 59 60 #: admin/main.php: 21161 msgid " Latest News"62 msgstr "" 63 64 #: admin/main.php: 22060 #: admin/main.php:173 61 msgid "Theme Updates" 62 msgstr "" 63 64 #: admin/main.php:182 65 65 msgid "Reset Verbosa Settings to Defaults?" 66 66 msgstr "" 67 67 68 #: admin/options.php:52 69 msgid " Support"68 #: admin/options.php:52 single.php:40 69 msgid "About" 70 70 msgstr "" 71 71 … … 74 74 msgstr "" 75 75 76 #: admin/options.php:56 76 #: admin/options.php:60 77 msgid "Read the FAQs" 78 msgstr "" 79 80 #: admin/options.php:66 81 msgid "Browse the Forum" 82 msgstr "" 83 84 #: admin/options.php:72 85 msgid "Priority Support" 86 msgstr "" 87 88 #: admin/options.php:77 77 89 msgid "Rating" 78 90 msgstr "" 79 91 80 #: admin/options.php:57 92 #: admin/options.php:78 93 #, php-format 94 msgid "Rate %s on WordPress.org" 95 msgstr "" 96 97 #: admin/options.php:79 81 98 msgid "" 82 99 "If you like the theme, rate it. If you hate the theme, rate it as well. Let " … … 84 101 msgstr "" 85 102 86 #: admin/options.php:64 87 msgid "Read the FAQs" 88 msgstr "" 89 90 #: admin/options.php:70 91 msgid "Browse the Forum" 92 msgstr "" 93 94 #: admin/options.php:76 95 msgid "Request Premium Support" 96 msgstr "" 97 98 #: admin/options.php:77 99 msgid "We also provide fast support via our premium support system." 100 msgstr "" 101 102 #: admin/options.php:82 103 #, php-format 104 msgid "Rate %s on Wordpress.org" 105 msgstr "" 106 107 #: admin/options.php:90 103 #: admin/options.php:83 104 msgid "Manage Settings" 105 msgstr "" 106 107 #: admin/options.php:84 108 msgid "Manage Theme Settings" 109 msgstr "" 110 111 #: admin/options.php:85 112 msgid "" 113 "Theme settings can be imported, exported or reset from the theme's about " 114 "page." 115 msgstr "" 116 117 #: admin/options.php:92 108 118 msgid "Background" 109 119 msgstr "" 110 120 111 #: admin/options.php:9 1121 #: admin/options.php:93 112 122 msgid "Background Settings." 113 123 msgstr "" 114 124 115 #: admin/options.php: 98125 #: admin/options.php:100 116 126 msgid "Header Image" 117 127 msgstr "" 118 128 119 #: admin/options.php: 99129 #: admin/options.php:101 120 130 msgid "Header Image Settings." 121 131 msgstr "" 122 132 123 #: admin/options.php:10 6133 #: admin/options.php:108 admin/options.php:122 124 134 msgid "Site Identity" 125 135 msgstr "" 126 136 137 #: admin/options.php:123 138 msgid "Graphics" 139 msgstr "" 140 141 #: admin/options.php:124 142 msgid "Post Information" 143 msgstr "" 144 127 145 #: admin/options.php:125 128 msgid "Header"129 msgstr ""130 131 #: admin/options.php:126132 msgid "Graphics"133 msgstr ""134 135 #: admin/options.php:127136 msgid "Post Information"137 msgstr ""138 139 #: admin/options.php:128140 146 msgid "Typography" 141 147 msgstr "" 142 148 143 #: admin/options.php:13 7149 #: admin/options.php:134 144 150 msgid "Layout" 145 151 msgstr "" 146 152 147 #: admin/options.php:13 9153 #: admin/options.php:136 148 154 msgid "Header Structure" 149 155 msgstr "" 150 156 151 #: admin/options.php:14 1admin/options.php:388157 #: admin/options.php:140 admin/options.php:388 152 158 msgid "General Font" 153 159 msgstr "" 154 160 161 #: admin/options.php:141 162 msgid "Header Fonts" 163 msgstr "" 164 155 165 #: admin/options.php:142 156 msgid " HeaderFonts"166 msgid "Widget Fonts" 157 167 msgstr "" 158 168 159 169 #: admin/options.php:143 160 msgid " Widget Fonts"170 msgid "Content Fonts" 161 171 msgstr "" 162 172 163 173 #: admin/options.php:144 164 msgid "Content Fonts"165 msgstr ""166 167 #: admin/options.php:145168 174 msgid "Formatting" 169 175 msgstr "" 170 176 177 #: admin/options.php:146 178 msgid "Structure" 179 msgstr "" 180 171 181 #: admin/options.php:147 172 msgid " Structure"182 msgid "Colors" 173 183 msgstr "" 174 184 175 185 #: admin/options.php:148 176 msgid " Colors"186 msgid "Decorations" 177 187 msgstr "" 178 188 179 189 #: admin/options.php:149 180 msgid "Decorations"181 msgstr ""182 183 #: admin/options.php:150184 190 msgid "Post Images" 185 191 msgstr "" 186 192 193 #: admin/options.php:151 194 msgid "Featured Image" 195 msgstr "" 196 187 197 #: admin/options.php:152 188 msgid " Featured Image"198 msgid "Meta Information" 189 199 msgstr "" 190 200 191 201 #: admin/options.php:153 192 msgid "Meta Information"193 msgstr ""194 195 #: admin/options.php:154196 202 msgid "Excerpts" 197 203 msgstr "" 198 204 199 #: admin/options.php:15 5includes/comments.php:100205 #: admin/options.php:154 includes/comments.php:100 200 206 msgid "Comments" 201 207 msgstr "" 202 208 209 #: admin/options.php:156 210 msgid "Home Page" 211 msgstr "" 212 203 213 #: admin/options.php:157 204 msgid " Home Page"214 msgid "Sticky Posts" 205 215 msgstr "" 206 216 207 217 #: admin/options.php:158 208 msgid " Sticky Posts"218 msgid "Archive and Category Pages" 209 219 msgstr "" 210 220 211 221 #: admin/options.php:159 212 msgid " Archive and Category Pages"222 msgid "Post Excerpt Length " 213 223 msgstr "" 214 224 215 225 #: admin/options.php:160 216 msgid " Post Excerpt Length"226 msgid "Excerpt suffix" 217 227 msgstr "" 218 228 219 229 #: admin/options.php:161 220 msgid "Excerpt suffix"221 msgstr ""222 223 #: admin/options.php:162224 230 msgid "Continue reading link text " 225 231 msgstr "" 226 232 227 #: admin/options.php:16 4 includes/setup.php:52233 #: admin/options.php:163 includes/setup.php:56 228 234 msgid "Social Icons" 229 235 msgstr "" 230 236 231 #: admin/options.php:16 6237 #: admin/options.php:165 232 238 msgid "Miscellaneous" 233 239 msgstr "" 234 240 235 #: admin/options.php:18 1241 #: admin/options.php:180 236 242 msgid "Main Layout" 237 243 msgstr "" 238 244 239 #: admin/options.php:18 4245 #: admin/options.php:183 240 246 msgid "One column (no sidebars)" 241 247 msgstr "" 242 248 243 #: admin/options.php:18 8249 #: admin/options.php:187 244 250 msgid "Two columns, sidebar on the left" 245 251 msgstr "" 246 252 247 #: admin/options.php:19 2253 #: admin/options.php:191 248 254 msgid "Two columns, sidebar on the right" 249 255 msgstr "" 250 256 251 #: admin/options.php:19 6257 #: admin/options.php:195 252 258 msgid "" 253 259 "Defines the general site layout.<br>This can be overridden in pages by using " … … 255 261 msgstr "" 256 262 257 #: admin/options.php:20 3263 #: admin/options.php:202 258 264 msgid "Select the maximum width (in pixels) of your site." 259 265 msgstr "" 260 266 261 #: admin/options.php:21 9267 #: admin/options.php:218 262 268 msgid "Width (in pixels) of the sidebar." 263 269 msgstr "" 264 270 265 #: admin/options.php:22 5271 #: admin/options.php:224 266 272 msgid "Stretch sidebar to edge" 267 273 msgstr "" 268 274 269 #: admin/options.php:22 7admin/options.php:683 admin/options.php:691275 #: admin/options.php:226 admin/options.php:683 admin/options.php:691 270 276 msgid "Enable" 271 277 msgstr "" 272 278 273 #: admin/options.php:22 7admin/options.php:683 admin/options.php:691279 #: admin/options.php:226 admin/options.php:683 admin/options.php:691 274 280 msgid "Disable" 275 281 msgstr "" 276 282 277 #: admin/options.php:22 8283 #: admin/options.php:227 278 284 msgid "" 279 285 "Stretch the sidebar background to the edge of the screen. Enabled by default " … … 281 287 msgstr "" 282 288 283 #: admin/options.php:23 4289 #: admin/options.php:233 284 290 msgid "Magazine Layout" 285 291 msgstr "" 286 292 287 #: admin/options.php:23 7293 #: admin/options.php:236 288 294 msgid "One column" 289 295 msgstr "" 290 296 291 #: admin/options.php:24 1297 #: admin/options.php:240 292 298 msgid "Two columns" 293 299 msgstr "" 294 300 295 #: admin/options.php:24 5301 #: admin/options.php:244 296 302 msgid "Three columns" 297 303 msgstr "" 298 304 299 #: admin/options.php:24 9305 #: admin/options.php:248 300 306 msgid "This layout applies to post lists and will arrange posts in columns." 301 307 msgstr "" 302 308 309 #: admin/options.php:253 310 msgid "Margin top" 311 msgstr "" 312 303 313 #: admin/options.php:254 304 msgid "Margin top"305 msgstr ""306 307 #: admin/options.php:255308 314 msgid "Set the top margin (in pixels) for the main content area." 309 315 msgstr "" 310 316 311 #: admin/options.php:2 60317 #: admin/options.php:259 312 318 msgid "Post/page left/right padding" 313 319 msgstr "" 314 320 315 #: admin/options.php:26 2321 #: admin/options.php:261 316 322 msgid "" 317 323 "Set the left/right padding (in percent) for each page/post/content element." 318 324 msgstr "" 319 325 320 #: admin/options.php:26 8326 #: admin/options.php:267 321 327 msgid "Footer Widgets Columns" 322 328 msgstr "" 323 329 324 #: admin/options.php:27 1330 #: admin/options.php:270 325 331 msgid "Set the number of footer widgets to display per row." 326 332 msgstr "" 327 333 328 #: admin/options.php:27 7admin/options.php:658334 #: admin/options.php:276 admin/options.php:658 329 335 msgid "Default" 330 336 msgstr "" 331 337 332 #: admin/options.php:27 7admin/options.php:658338 #: admin/options.php:276 admin/options.php:658 333 339 msgid "Center" 334 340 msgstr "" 335 341 342 #: admin/options.php:277 343 msgid "Footer Widgets Alignment" 344 msgstr "" 345 336 346 #: admin/options.php:278 337 msgid "Footer Widgets Alignment"338 msgstr ""339 340 #: admin/options.php:279341 347 msgid "Activate to center align footer widgets." 342 348 msgstr "" 343 349 350 #: admin/options.php:287 351 msgid "Header Image Height" 352 msgstr "" 353 344 354 #: admin/options.php:288 345 msgid "Header Image Height"346 msgstr ""347 348 #: admin/options.php:289349 355 msgid "Select the header image height (in pixels)." 350 356 msgstr "" 351 357 352 #: admin/options.php:29 4358 #: admin/options.php:293 353 359 msgid "Site Header Content" 354 360 msgstr "" 355 361 356 #: admin/options.php:29 6admin/options.php:417362 #: admin/options.php:295 admin/options.php:417 357 363 msgid "Site Title" 358 364 msgstr "" 359 365 360 #: admin/options.php:29 6366 #: admin/options.php:295 361 367 msgid "Logo" 362 368 msgstr "" 363 369 364 #: admin/options.php:29 6370 #: admin/options.php:295 365 371 msgid "Logo & Site Title" 366 372 msgstr "" 367 373 368 #: admin/options.php:29 6374 #: admin/options.php:295 369 375 msgid "Empty" 370 376 msgstr "" 371 377 378 #: admin/options.php:301 379 msgid "Logo Image" 380 msgstr "" 381 372 382 #: admin/options.php:302 373 msgid "Logo Image"374 msgstr ""375 376 #: admin/options.php:303377 383 msgid "The logo will appear in the header." 378 384 msgstr "" … … 851 857 msgstr "" 852 858 853 #: admin/options.php:892 admin/options.php:900 admin/options.php:9 14854 #: admin/options.php: 1000 admin/options.php:1031859 #: admin/options.php:892 admin/options.php:900 admin/options.php:908 860 #: admin/options.php:987 855 861 msgid "Enabled" 856 862 msgstr "" 857 863 858 #: admin/options.php:892 admin/options.php:900 admin/options.php:9 14859 #: admin/options.php: 1000 admin/options.php:1031864 #: admin/options.php:892 admin/options.php:900 admin/options.php:908 865 #: admin/options.php:987 860 866 msgid "Disabled" 861 867 msgstr "" … … 876 882 msgstr "" 877 883 878 #: admin/options.php:9 12884 #: admin/options.php:906 879 885 msgid "Auto Select Images From Posts Content" 880 886 msgstr "" 881 887 882 #: admin/options.php:9 15888 #: admin/options.php:909 883 889 msgid "" 884 890 "Show the first image that you inserted in a post as a thumbnail. If there is " … … 886 892 msgstr "" 887 893 888 #: admin/options.php:92 6894 #: admin/options.php:920 889 895 msgid "Featured Image Height" 890 896 msgstr "" 891 897 898 #: admin/options.php:921 899 msgid "" 900 "In pixels. The width is not configurable as it is site-width and layout " 901 "dependent.<br><u style='color: #990000;'>Remember to regenerate your " 902 "thumbnails after changing this value</u>" 903 msgstr "" 904 892 905 #: admin/options.php:927 893 msgid ""894 "In pixels. The width is not configurable as it is site-width and layout "895 "dependent.<br>"896 msgstr ""897 898 #: admin/options.php:933899 906 msgid "Cropped" 900 907 msgstr "" 901 908 902 #: admin/options.php:9 33909 #: admin/options.php:927 903 910 msgid "Responsive" 904 911 msgstr "" 905 912 906 #: admin/options.php:9 34913 #: admin/options.php:928 907 914 msgid "Featured image responsiveness" 908 915 msgstr "" 909 916 910 #: admin/options.php:9 35917 #: admin/options.php:929 911 918 msgid "" 912 919 "Select how your featured image looks and behaves.<br>A <strong>Responsive</" … … 916 923 msgstr "" 917 924 918 #: admin/options.php:9 40925 #: admin/options.php:934 919 926 msgid "Featured Image Alignment" 920 927 msgstr "" 921 928 922 #: admin/options.php:9 42929 #: admin/options.php:936 923 930 msgid "Left Top" 924 931 msgstr "" 925 932 926 #: admin/options.php:9 42933 #: admin/options.php:936 927 934 msgid "Left Center" 928 935 msgstr "" 929 936 930 #: admin/options.php:9 42937 #: admin/options.php:936 931 938 msgid "Left Bottom" 932 939 msgstr "" 933 940 934 #: admin/options.php:9 42941 #: admin/options.php:936 935 942 msgid "Right Top" 936 943 msgstr "" 937 944 938 #: admin/options.php:9 42945 #: admin/options.php:936 939 946 msgid "Right Center" 940 947 msgstr "" 941 948 942 #: admin/options.php:9 42949 #: admin/options.php:936 943 950 msgid "Right Bottom" 944 951 msgstr "" 945 952 946 #: admin/options.php:9 42953 #: admin/options.php:936 947 954 msgid "Center Top" 948 955 msgstr "" 949 956 950 #: admin/options.php:9 42957 #: admin/options.php:936 951 958 msgid "Center Center" 952 959 msgstr "" 953 960 954 #: admin/options.php:9 42961 #: admin/options.php:936 955 962 msgid "Center Bottom" 956 963 msgstr "" 957 964 958 #: admin/options.php:9 43965 #: admin/options.php:937 959 966 msgid "" 960 967 "Featured image image alignment. Only works when <b>Cropped</b> is chosen for " … … 962 969 msgstr "" 963 970 964 #: admin/options.php:94 8971 #: admin/options.php:942 965 972 msgid "Featured Bar Height" 966 973 msgstr "" 967 974 968 #: admin/options.php:94 9975 #: admin/options.php:943 969 976 msgid "In pixels. The bar that appears under the featured image." 970 977 msgstr "" 971 978 979 #: admin/options.php:951 980 msgid "Display above Site Title" 981 msgstr "" 982 972 983 #: admin/options.php:957 973 msgid "Display aboveSite Title"984 msgid "Display below Site Title" 974 985 msgstr "" 975 986 976 987 #: admin/options.php:963 977 msgid "Display below Site Title"978 msgstr ""979 980 #: admin/options.php:969981 988 msgid "Display at the bottom of the sidebar" 982 989 msgstr "" 983 990 984 #: admin/options.php:97 7991 #: admin/options.php:971 985 992 msgid "Custom Footer Text" 986 993 msgstr "" 987 994 988 #: admin/options.php:97 8995 #: admin/options.php:972 989 996 msgid "" 990 997 "Insert custom text or basic HTML code that will appear in you footer. <br /> " … … 992 999 msgstr "" 993 1000 994 #: admin/options.php:9 831001 #: admin/options.php:977 995 1002 msgid "Custom Theme CSS" 996 1003 msgstr "" 997 1004 998 #: admin/options.php:9 841005 #: admin/options.php:978 999 1006 msgid "" 1000 1007 "Insert your custom theme CSS. Styling declarations made here will override " … … 1002 1009 msgstr "" 1003 1010 1004 #: admin/options.php:991 1005 msgid "Presentation Page" 1006 msgstr "" 1007 1008 #: admin/options.php:993 1009 msgid "Enabled (with posts)" 1010 msgstr "" 1011 1012 #: admin/options.php:993 1013 msgid "Enabled (without posts)" 1014 msgstr "" 1015 1016 #: admin/options.php:993 1017 msgid "Disabled (use Wordpress homepage)" 1018 msgstr "" 1019 1020 #: admin/options.php:994 1021 msgid "" 1022 "Enable the Presentation Page homepage feature which replaces the default " 1023 "Wordpress homepage.<br><br>If you have this option enabled and you can't see " 1024 "the presentation page, make sure that </strong>Your Front page displays</" 1025 "strong> is set to the default value <strong>Your Latest Posts</strong>." 1026 "<br><br>If you want another page to hold your latest blog posts, set it to " 1027 "use the 'Blog (Posts) Template' from the page templates list." 1028 msgstr "" 1029 1030 #: admin/options.php:1001 1031 msgid "Top Bar" 1032 msgstr "" 1033 1034 #: admin/options.php:1002 1035 msgid "The top bar is displayed above the menu/site title." 1036 msgstr "" 1037 1038 #: admin/options.php:1008 1039 msgid "Top margin (%)" 1040 msgstr "" 1041 1042 #: admin/options.php:1015 1043 msgid "Left margin (%)" 1044 msgstr "" 1045 1046 #: admin/options.php:1023 1047 msgid "Wide" 1048 msgstr "" 1049 1050 #: admin/options.php:1023 1051 msgid "Boxed" 1052 msgstr "" 1053 1054 #: admin/options.php:1024 1055 msgid "" 1056 "Select the layout format for your site.<br> <strong>Wide</strong> - full " 1057 "width layout. <br><strong>Boxed</strong> - fixed width layout." 1058 msgstr "" 1059 1060 #: admin/options.php:1037 1061 msgid "Custom JavaScript" 1062 msgstr "" 1063 1064 #: admin/options.php:1038 1065 msgid "" 1066 "Insert your simple Javascript code to include in the footer. This field does " 1067 "not accept <script> tags." 1068 msgstr "" 1069 1070 #: admin/options.php:1145 1011 #: admin/options.php:985 1012 msgid "Presentation Page Slider" 1013 msgstr "" 1014 1015 #: admin/options.php:988 1016 msgid "Enable the Presentation Page homepage slider above the posts list." 1017 msgstr "" 1018 1019 #: admin/options.php:1097 1071 1020 msgid "Sidebar - Before menu" 1072 1021 msgstr "" 1073 1022 1074 #: admin/options.php:11 521023 #: admin/options.php:1104 1075 1024 msgid "Sidebar - After menu" 1076 1025 msgstr "" 1077 1026 1078 #: admin/options.php:11 591027 #: admin/options.php:1111 1079 1028 msgid "Footer" 1080 1029 msgstr "" 1081 1030 1082 #: admin/options.php:11 601031 #: admin/options.php:1112 1083 1032 msgid "" 1084 1033 "You can select how many widgets to show per row from Graphics » Layout." 1085 1034 msgstr "" 1086 1035 1087 #: admin/options.php:11 671036 #: admin/options.php:1119 1088 1037 msgid "Content Before" 1089 1038 msgstr "" 1090 1039 1091 #: admin/options.php:11 741040 #: admin/options.php:1126 1092 1041 msgid "Content After" 1093 msgstr ""1094 1095 #: archive.php:221096 #, php-format1097 msgid "Daily Archives: %s"1098 msgstr ""1099 1100 #: archive.php:241101 #, php-format1102 msgid "Monthly Archives: %s"1103 msgstr ""1104 1105 #: archive.php:241106 msgid "F Y"1107 msgstr ""1108 1109 #: archive.php:261110 #, php-format1111 msgid "Yearly Archives: %s"1112 msgstr ""1113 1114 #: archive.php:261115 msgid "Y"1116 msgstr ""1117 1118 #: archive.php:281119 msgid "Blog Archives"1120 1042 msgstr "" 1121 1043 … … 1144 1066 #: author.php:39 1145 1067 msgid "Author:" 1146 msgstr ""1147 1148 #: category.php:191149 #, php-format1150 msgid "Category Archives: %s"1151 1068 msgstr "" 1152 1069 … … 1208 1125 msgstr "" 1209 1126 1210 #: content/content-image.php:17 cryout/widgets.php:851127 #: content/content-image.php:17 1211 1128 msgid "Image" 1212 1129 msgstr "" 1213 1130 1214 #: content/content-link.php:17 cryout/widgets.php:881131 #: content/content-link.php:17 1215 1132 msgid "Link" 1216 1133 msgstr "" … … 1247 1164 msgstr "" 1248 1165 1249 #: cryout/_autoupdate.php:73 1250 msgid "" 1251 "An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?" 1252 "\" onclick=\"document.location.reload(); return false;\">Try again</a>" 1253 msgstr "" 1254 1255 #: cryout/_autoupdate.php:78 1256 msgid "An unknown error occurred" 1257 msgstr "" 1258 1259 #: cryout/admin-functions.php:61 1260 msgid "" 1261 "Before you can upload your import file, you will need to fix the following " 1262 "error:" 1263 msgstr "" 1264 1265 #: cryout/admin-functions.php:69 1266 msgid "Import Customizer Theme Settings" 1267 msgstr "" 1268 1269 #: cryout/admin-functions.php:71 1270 msgid "<em> Please remember that this is still an experimental feature.</em>" 1271 msgstr "" 1272 1273 #: cryout/admin-functions.php:73 1274 msgid "Choose an XML file:" 1275 msgstr "" 1276 1277 #: cryout/admin-functions.php:75 1278 #, php-format 1279 msgid "Maximum size: %s" 1280 msgstr "" 1281 1282 #: cryout/admin-functions.php:81 1283 msgid "Import" 1284 msgstr "" 1285 1286 #: cryout/admin-functions.php:150 1287 msgid "Import Theme Options " 1288 msgstr "" 1289 1290 #: cryout/admin-functions.php:153 1291 msgid "Great! The options have been imported!" 1292 msgstr "" 1293 1294 #: cryout/admin-functions.php:154 1295 msgid "Go back to the theme settings page and check them out!" 1296 msgstr "" 1297 1298 #: cryout/admin-functions.php:157 cryout/admin-functions.php:163 1299 #: cryout/admin-functions.php:169 1300 msgid "Oops, there's a small problem." 1301 msgstr "" 1302 1303 #: cryout/admin-functions.php:158 1304 msgid "" 1305 "The uploaded file does not contain valid theme options. Make sure the file " 1306 "is exported from the theme options page." 1307 msgstr "" 1308 1309 #: cryout/admin-functions.php:164 1310 msgid "The uploaded file could not be read." 1311 msgstr "" 1312 1313 #: cryout/admin-functions.php:170 1314 msgid "" 1315 "The uploaded file is not supported. Make sure the file was exported from the " 1316 "theme settings page and that it is an XML file." 1317 msgstr "" 1318 1319 #: cryout/admin-functions.php:179 1320 msgid "" 1321 "Oops! The file is empty or there was no file. This error could also be " 1322 "caused by uploads being disabled in your php.ini or by post_max_size being " 1323 "defined as smaller than upload_max_filesize in php.ini." 1324 msgstr "" 1325 1326 #: cryout/admin-functions.php:185 1327 msgid "ERROR: You are not authorised to perform that operation" 1328 msgstr "" 1329 1330 #: cryout/admin-functions.php:206 1166 #: cryout/admin-functions.php:24 1331 1167 msgid "No news items." 1332 1168 msgstr "" 1333 1169 1334 #: cryout/admin-functions.php:2 101170 #: cryout/admin-functions.php:28 1335 1171 msgid "Posted on" 1336 1172 msgstr "" 1337 1173 1338 #: cryout/admin-functions.php:2 111174 #: cryout/admin-functions.php:29 1339 1175 msgid "Read the full post" 1340 msgstr ""1341 1342 #: cryout/admin-functions.php:2261343 msgid "Debug Information"1344 msgstr ""1345 1346 #: cryout/admin-functions.php:2271347 msgid ""1348 "Please include the debug information when creating a support request or "1349 "posting to the forum."1350 1176 msgstr "" 1351 1177 … … 1362 1188 msgstr "" 1363 1189 1364 #: cryout/customizer.php:2 971190 #: cryout/customizer.php:256 1365 1191 #, php-format 1366 1192 msgid "About %s" 1367 1193 msgstr "" 1368 1194 1369 #: cryout/customizer.php:2 981195 #: cryout/customizer.php:257 1370 1196 #, php-format 1371 1197 msgid "%1$s by %1$s" 1372 msgstr ""1373 1374 #: cryout/widgets.php:671375 msgid "Add columns to the presentation page"1376 msgstr ""1377 1378 #: cryout/widgets.php:691379 msgid "Cryout Column"1380 msgstr ""1381 1382 #: cryout/widgets.php:851383 msgid "Select / Upload Image"1384 msgstr ""1385 1386 #: cryout/widgets.php:861387 msgid "Title"1388 msgstr ""1389 1390 #: cryout/widgets.php:871391 msgid "Text"1392 msgstr ""1393 1394 #: cryout/widgets.php:891395 msgid "Open in new Window"1396 1198 msgstr "" 1397 1199 … … 1461 1263 msgstr "" 1462 1264 1463 #: includes/core.php:1 081265 #: includes/core.php:123 1464 1266 msgid "Powered by" 1465 1267 msgstr "" 1466 1268 1467 #: includes/core.php:1 751269 #: includes/core.php:145 1468 1270 msgid "Menu" 1469 1271 msgstr "" 1470 1272 1471 #: includes/core.php:2 321273 #: includes/core.php:202 1472 1274 msgid "Home" 1473 1275 msgstr "" 1474 1276 1475 #: includes/core.php:2 481277 #: includes/core.php:220 1476 1278 msgid "Archive for category" 1477 1279 msgstr "" 1478 1280 1479 #: includes/core.php:2 511281 #: includes/core.php:223 1480 1282 msgid "Search results for" 1481 1283 msgstr "" 1482 1284 1483 #: includes/core.php: 3091285 #: includes/core.php:281 1484 1286 msgid "Posts tagged" 1485 1287 msgstr "" 1486 1288 1487 #: includes/core.php: 3141289 #: includes/core.php:286 1488 1290 msgid "Articles posted by" 1489 1291 msgstr "" 1490 1292 1491 #: includes/core.php: 3221293 #: includes/core.php:294 1492 1294 msgid "Page" 1493 1295 msgstr "" … … 1505 1307 msgstr "" 1506 1308 1507 #: includes/loop.php:19 61309 #: includes/loop.php:197 1508 1310 msgid "Older posts" 1509 1311 msgstr "" 1510 1312 1511 #: includes/loop.php:19 71313 #: includes/loop.php:198 1512 1314 msgid "Newer posts" 1513 1315 msgstr "" 1514 1316 1515 #: includes/setup.php:5 11317 #: includes/setup.php:55 1516 1318 msgid "Primary Navigation" 1517 1319 msgstr "" 1518 1320 1519 #: includes/setup.php:8 31321 #: includes/setup.php:87 1520 1322 msgid "Typewriter" 1521 1323 msgstr "" 1522 1324 1523 #: includes/setup.php: 891325 #: includes/setup.php:93 1524 1326 msgid "Breakfast" 1525 1327 msgstr "" 1526 1328 1527 #: includes/setup.php:9 51329 #: includes/setup.php:99 1528 1330 msgid "Home Office" 1529 1331 msgstr "" 1530 1332 1531 #: includes/setup.php:1 161333 #: includes/setup.php:143 1532 1334 msgid "Skip to content" 1533 1335 msgstr "" … … 1542 1344 msgstr "" 1543 1345 1544 #: single.php:401545 msgid "About"1546 msgstr ""1547 1548 1346 #: single.php:47 1549 1347 msgid "View all posts by " … … 1557 1355 msgid "Next Post" 1558 1356 msgstr "" 1559 1560 #: tag.php:191561 #, php-format1562 msgid "Tag Archives: %s"1563 msgstr "" -
verbosa/0.9.2/readme.txt
r357746 r357746 6 6 Requires at least: 4.2 7 7 Tested up to: 4.5.3 8 Stable tag: 0.9. 18 Stable tag: 0.9.2 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl.html 11 11 Donate link: http://www.cryoutcreations.eu/donate/ 12 12 13 Are you a writer? Or maybe a photographer? An artist? Perhaps you do online reviews? Or are you just casually blogging about music, movies and such? Do you like to ramble on? Are you a creator? Do you generate content of any kind? Are we asking too many questions? Is this too much? Have we crossed the line? 13 Are you a writer? Or maybe a photographer? An artist? Perhaps you do online reviews? Or are you just casually blogging about music, movies and such? Do you like to ramble on? Are you a creator? Do you generate content of any kind? Are we asking too many questions? Is this too much? Have we crossed the line? 14 14 15 15 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. 16 16 17 Verbosa is also truly responsive, with a fluid layout, uses microformats and microdata for best SEO results, takes great advantage of featured images, supports Google fonts, has social menus with over 100 social icons, is translation ready and RTL. And everything's editable via the customizer with over 100 options! And as an extra, we've coded in a fresh and exquisite perfume that will follow you everywhere once you install the theme! 17 Verbosa is also truly responsive, with a fluid layout, uses microformats and microdata for best SEO results, takes great advantage of featured images, supports Google fonts, has social menus with over 100 social icons, is translation ready and RTL. And everything's editable via the customizer with over 100 options! And as an extra, we've coded in a fresh and exquisite perfume that will follow you everywhere once you install the theme! 18 18 19 19 … … 43 43 44 44 FitVids, Copyright Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 45 Licensed under the terms of the WTFPLlicense 45 Licensed under the terms of the WTFPLlicense 46 46 Source: http://fitvidsjs.com/ 47 47 … … 74 74 == Changelog == 75 75 76 = 0.9.2 = 77 * Removed verbosa_socials_menu_preset() function 78 * Restored default customizer Colors section 79 * Removed constant from translation string (Customizer > About Verbosa) 80 * Added text from verbosa_master_footer() and Verbosa Page links to translation 81 * Replaced "get_category(get_query_var('cat')" with core "get_queried_ojbect" 82 * Removed HTML5Shiv from header.php 83 * Escaped all outputs in custom controls from customizer.php 84 * Escaped all URLs in theme with esc_url() 85 * Escaped get_bloginfo( 'name' ) and get_bloginfo( 'description' ) 86 * Escaped all theme options output 87 * Updated verbosa.pot 88 76 89 = 0.9.1 = 77 90 * Fixed widget titles line not spanning all sidebar 78 * Added auto-detection of RSS link in social icons 91 * Added auto-detection of RSS link in social icons 79 92 * Added margin botton for multi-line socials menu 80 * Fixed mobile menu out of frame on narrow screen (<400px), horizontal scroll on chrome, removed .noscroll position:fixed 93 * Fixed mobile menu out of frame on narrow screen (<400px), horizontal scroll on chrome, removed .noscroll position:fixed 81 94 * Improved mobile menu animations 82 95 * Fixed colophon flex compatibility with IE9 83 96 * Removed template-blog.php page template, license.txt, bundled masonry.js 84 * Improved arhive.php to handle archives, categories and tags (removed category.php and tag.php) 97 * Improved arhive.php to handle archives, categories and tags (removed category.php and tag.php) 85 98 * Updated Cryout Framework to 0.5.5 86 * Rearranged customizer section overrides to account for autofocus issue 99 * Rearranged customizer section overrides to account for autofocus issue 87 100 * Improved plugin/child theme styling override support by changing #main ID to .main class 88 101 * Removed social links (and respective scripts) from the admin area 89 * Removed import/export settings from admin area 90 * Renamed 'Latest News' section in admin to 'Theme Updates' 91 * Added unminified resources/js/html5shiv.js 92 * Fixed cryout_schema_microdata() call in author info page HTML 93 * Renamed _default.pot to verbosa.pot 94 * Added WordPress 4.5 site logo support 95 * Added second textdomain support for WordPress' language packs (also deleted languages folder under cryout and removed redundant loading of text domains in admin area) 102 * Removed import/export settings from admin area 103 * Renamed 'Latest News' section in admin to 'Theme Updates' 104 * Added unminified resources/js/html5shiv.js 105 * Fixed cryout_schema_microdata() call in author info page HTML 106 * Renamed _default.pot to verbosa.pot 107 * Added WordPress 4.5 site logo support 108 * Added second textdomain support for WordPress' language packs (also deleted languages folder under cryout and removed redundant loading of text domains in admin area) 96 109 * Fixed social menu and turned off social menu locations by default 97 * Switched to loading JS files as deferred to improve load speed. 98 * Switched to using core WordPress 'jquery-masonry' 99 * Removed deprecated style.css tags and added new ones 110 * Switched to loading JS files as deferred to improve load speed. 111 * Switched to using core WordPress 'jquery-masonry' 112 * Removed deprecated style.css tags and added new ones 100 113 * Fixed social icons placement options not refreshing in Customizer 101 114 * Fixed 'Display Site Title and Tagline' option not affecting the tagline -
verbosa/0.9.2/style.css
r357746 r357746 2 2 Theme Name: Verbosa 3 3 Theme 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!4 Description: Are you a writer? An author? Or maybe a photographer? An artist? Perhaps you do online reviews? Or are you just casually blogging about music, movies and such? Do you like to ramble on? Are you a creator? Do you generate content of any kind? Are we asking too many questions? Is this too much? Have we crossed the line? Well then you should give Verbosa a try as she may have all the tools needed to assist you and your creativity. Verbosa is all about elegant typography, efficient use of contrast, spacing and simplicity. We used all the tricks at our disposal to improve legibility, create emphasis and generate a proper design flow that would make your content more inviting to be read. Verbosa is also truly responsive, with a fluid layout, uses microformats and microdata for best SEO results, takes great advantage of featured images, supports Google fonts, has social menus with over 100 social icons, is translation ready and RTL. And everything's editable via the customizer with over 100 options! And as an extra, we've coded in a fresh and exquisite perfume that will follow you everywhere once you install the theme! 5 5 Author: Cryout Creations 6 6 Author URI: http://www.cryoutcreations.eu 7 Version: 0.9. 17 Version: 0.9.2 8 8 License: GNU General Public License v3.0 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html -
verbosa/0.9.2/templates/template-page-with-intro.php
r357746 r357746 1 <?php 1 <?php 2 2 /** 3 3 * Template Name: Category page with intro … … 9 9 * 10 10 * @package Verbosa 11 */ 11 */ 12 12 13 13 get_header(); ?> … … 29 29 </article> 30 30 <?php 31 $slug = basename( get_permalink());31 $slug = basename( esc_url( get_permalink() ) ); 32 32 $meta_slug = get_post_meta(get_the_ID(), "slug", $single); // slug custom field 33 33 $meta_catid = get_post_meta(get_the_ID(), "catid", $single); // category_id custom field 34 34 $key = get_post_meta(get_the_ID(), "key", $single); // either slug or category_id custom field 35 $slug = ($key?$key:($meta_catid?$meta_catid:($meta_slug?$meta_slug:($slug?$slug:0)))); // select one value out of the custom fields 35 $slug = ($key?$key:($meta_catid?$meta_catid:($meta_slug?$meta_slug:($slug?$slug:0)))); // select one value out of the custom fields 36 36 ?> 37 37 <?php endwhile; else: endif; ?> 38 38 <div id="content-masonry"> 39 <?php 39 <?php 40 40 $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; 41 if (is_numeric($slug)&&($slug>0)): 42 $the_query = new WP_Query( 'cat='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged ); 43 else: 44 $the_query = new WP_Query( 'category_name='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged ); 45 endif; 46 /* Start the Loop */ 41 if (is_numeric($slug)&&($slug>0)): 42 $the_query = new WP_Query( 'cat='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged ); 43 else: 44 $the_query = new WP_Query( 'category_name='.$slug.'&post_status=publish&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged ); 45 endif; 46 /* Start the Loop */ 47 47 while ( $the_query->have_posts() ) : $the_query->the_post(); 48 48 global $more; $more=0; // more gets lost inside page templates 49 get_template_part( 'content/content', get_post_format() ); 49 get_template_part( 'content/content', get_post_format() ); 50 50 endwhile; 51 verbosa_pagination(); 51 verbosa_pagination(); 52 52 ?> 53 53 </div><!-- #content-masonry --> 54 54 55 55 </main><!-- #main --> 56 56 57 57 </div><!-- #container --> 58 58
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)