Changeset 144713
- Timestamp:
- 03/15/2021 07:00:53 PM (5 years ago)
- Location:
- fluida/1.8.6
- Files:
-
- 2 added
- 4 deleted
- 45 edited
- 1 copied
-
. (copied) (copied from fluida/1.8.5)
-
admin/css/admin.css (modified) (1 diff)
-
admin/css/meta.css (modified) (1 diff)
-
admin/main.php (modified) (5 diffs)
-
admin/options.php (modified) (16 diffs)
-
archive.php (modified) (1 diff)
-
comments.php (modified) (2 diffs)
-
content/user-bio.php (modified) (2 diffs)
-
cryout/back-compat-php.php (deleted)
-
cryout/back-compat.php (deleted)
-
cryout/controls.php (modified) (31 diffs)
-
cryout/css/customizer.css (modified) (4 diffs)
-
cryout/css/select2.css (modified) (3 diffs)
-
cryout/css/select2.min.css (modified) (1 diff)
-
cryout/customizer.php (modified) (1 diff)
-
cryout/demo.php (deleted)
-
cryout/framework.php (modified) (2 diffs)
-
cryout/js/customizer-controls.js (modified) (7 diffs)
-
cryout/js/customizer.js (modified) (4 diffs)
-
cryout/js/select2.js (modified) (79 diffs)
-
cryout/js/select2.min.js (modified) (1 diff)
-
cryout/languages/cryout.pot (modified) (4 diffs)
-
cryout/prototypes.php (modified) (8 diffs)
-
footer.php (modified) (2 diffs)
-
front-page.php (modified) (1 diff)
-
functions.php (modified) (1 diff)
-
header.php (modified) (2 diffs)
-
image.php (modified) (2 diffs)
-
includes/comments.php (modified) (1 diff)
-
includes/core.php (modified) (8 diffs)
-
includes/custom-styles.php (modified) (10 diffs)
-
includes/landing-page.php (modified) (12 diffs)
-
includes/loop.php (modified) (7 diffs)
-
includes/meta.php (modified) (2 diffs)
-
includes/setup.php (modified) (5 diffs)
-
includes/styles.php (modified) (3 diffs)
-
includes/tgmpa.php (modified) (4 diffs)
-
index.php (modified) (1 diff)
-
languages/fluida.pot (modified) (20 diffs)
-
page.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
resources/fonts/fontfaces.css (modified) (5 diffs)
-
resources/images/demo (deleted)
-
resources/images/headers/mountain-lake.jpg (added)
-
resources/images/slider/reservoir.jpg (added)
-
resources/js/ajax.js (modified) (4 diffs)
-
resources/js/frontend.js (modified) (25 diffs)
-
search.php (modified) (1 diff)
-
sidebar-left.php (modified) (2 diffs)
-
sidebar-right.php (modified) (3 diffs)
-
single.php (modified) (1 diff)
-
style.css (modified) (21 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fluida/1.8.6/admin/css/admin.css
r135857 r144713 4 4 * @package Fluida 5 5 */ 6 7 @import url("../../resources/fonts/fontfaces.css");8 6 9 7 .wrap, -
fluida/1.8.6/admin/css/meta.css
r135857 r144713 1 1 /** 2 * Styling for the meta boxes2 * Styling for the page templates meta 3 3 * 4 4 * @package Fluida -
fluida/1.8.6/admin/main.php
r135857 r144713 61 61 wp_enqueue_style( 'wp-jquery-ui-dialog' ); 62 62 wp_enqueue_style( 'fluida-admin-style', get_template_directory_uri() . '/admin/css/admin.css', NULL, _CRYOUT_THEME_VERSION ); 63 wp_enqueue_script( 'fluida-admin-js', get_template_directory_uri() . '/admin/js/admin.js', array('jquery-ui-dialog'), _CRYOUT_THEME_VERSION );63 wp_enqueue_script( 'fluida-admin-js', get_template_directory_uri() . '/admin/js/admin.js', array('jquery-ui-dialog'), _CRYOUT_THEME_VERSION ); 64 64 $js_admin_options = array( 65 65 'reset_confirmation' => esc_html( __( 'Reset Fluida Settings to Defaults?', 'fluida' ) ), … … 78 78 79 79 function fluida_page_fn() { 80 81 $options = cryout_get_option();82 80 83 81 if (!current_user_can('edit_theme_options')) { … … 99 97 100 98 <div id="admin_header"> 101 <img src="<?php echo esc_url( get_template_directory_uri() ) . '/admin/images/logo-about-top.png'?>" />99 <img src="<?php echo esc_url( get_template_directory_uri() . '/admin/images/logo-about-top.png' ) ?>" /> 102 100 <span class="version"> 103 <?php echo apply_filters( 'cryout_admin_version', sprintf( __( 'Fluida Theme v%1$s by %2$s', 'fluida' ),101 <?php echo wp_kses_post( apply_filters( 'cryout_admin_version', sprintf( __( 'Fluida Theme v%1$s by %2$s', 'fluida' ), 104 102 _CRYOUT_THEME_VERSION, 105 103 '<a href="https://www.cryoutcreations.eu" target="_blank">Cryout Creations</a>' 106 ) ) ; ?><br>104 ) ) ); ?><br> 107 105 <?php do_action( 'cryout_admin_version' ); ?> 108 106 </span> … … 119 117 <?php 120 118 $theme = wp_get_theme(); 121 echo apply_filters( 'cryout_theme_description', esc_html( $theme->get( 'Description') ) );119 echo wp_kses_post( apply_filters( 'cryout_theme_description', esc_html( $theme->get( 'Description' ) ) ) ); 122 120 ?> 123 121 </div> … … 133 131 <h3 class="hndle"><?php _e( 'Upgrade to Plus', 'fluida' ); ?></h3> 134 132 <div class="inside"> 135 <p><?php printf( __('Find out what features you\'re missing out on and how the Plus version of %1$s can improve your site.', 'fluida'), cryout_sanitize_tnl(_CRYOUT_THEME_NAME)); ?></p>136 <img src="<?php echo esc_url( get_template_directory_uri() ) . '/admin/images/features.png'?>" />133 <p><?php _e('Find out what features you\'re missing out on and how the Plus version of Fluida can improve your site.', 'fluida'); ?></p> 134 <img src="<?php echo esc_url( get_template_directory_uri() . '/admin/images/features.png' ) ?>" /> 137 135 <a class="button" href="https://www.cryoutcreations.eu/wordpress-themes/fluida" target="_blank" style="display: block;"><?php _e( 'Upgrade to Plus', 'fluida' ); ?></a> 138 136 -
fluida/1.8.6/admin/options.php
r135857 r144713 93 93 94 94 foreach ($conditionals as $elem) { 95 if ( $control->id == sprintf( '%1$s_settings[%2$s]', cryout_sanitize_tn(_CRYOUT_THEME_NAME), $elem['id'] ) && $control->manager->get_setting( sprintf( '%1$s_settings[%2$s]', cryout_sanitize_tn(_CRYOUT_THEME_NAME), $elem['parent'] ) )->value() == $elem['value'] ) return true; 95 if ( $control->id == sprintf( '%1$s_settings[%2$s]', cryout_sanitize_tn(_CRYOUT_THEME_NAME), $elem['id'] ) && 96 $control->manager->get_setting( sprintf( '%1$s_settings[%2$s]', cryout_sanitize_tn(_CRYOUT_THEME_NAME), $elem['parent'] ) )->value() == $elem['value'] 97 ) return true; 96 98 }; 97 99 98 if ( ($control->id == sprintf( '%1$s_settings[%2$s_landingpage_notice]', cryout_sanitize_tn(_CRYOUT_THEME_NAME), _CRYOUT_THEME_PREFIX ) ) && ('posts' == get_option('show_on_front')) ) return true; 100 // handle landing page hint 101 if ( ( $control->id == sprintf( '%1$s_settings[%2$s_landingpage_notice]', cryout_sanitize_tn(_CRYOUT_THEME_NAME), _CRYOUT_THEME_PREFIX ) ) && 102 ('posts' == get_option('show_on_front')) 103 ) return true; 104 105 // handle landing page slider banner hint 106 if ( ( $control->id == sprintf( '%1$s_settings[%2$s_headerorbannerhint]', cryout_sanitize_tn(_CRYOUT_THEME_NAME), _CRYOUT_THEME_PREFIX ) ) && 107 ( $control->manager->get_setting( sprintf( '%1$s_settings[%2$s_landingpage]', cryout_sanitize_tn(_CRYOUT_THEME_NAME), _CRYOUT_THEME_PREFIX ) )->value() == 1 ) && 108 ( $control->manager->get_setting( sprintf( '%1$s_settings[%2$s_lpslider]', cryout_sanitize_tn(_CRYOUT_THEME_NAME), _CRYOUT_THEME_PREFIX ) )->value() == 1 ) 109 ) return true; 99 110 100 111 return false; … … 405 416 'type' => 'notice', 406 417 'label' => '', 407 'desc' => __('Fine tune the visibility of these elements in the theme\'s Header options', 'fluida'),418 'desc' => sprintf( __( 'Fine tune the visibility of these elements from the theme\'s %s','fluida' ), '<a data-type="section" data-id="cryout-theme_headercontent" class="cryout-customizer-focus"><strong>' . __('Header options', 'fluida') . ' »</strong></a>' ), 408 419 'input_attrs' => array( 'class' => '' ), 409 420 'priority' => 55, 410 421 'addon' => TRUE, // this option gets added to built-in WordPress section 411 422 'section' => 'title_tagline' ), 423 array( 424 'id' => 'fluida_headerorbannerhint', 425 'type' => 'notice', 426 'label' => '', 427 'desc' => sprintf( __( 'Configure the image currently visible on the homepage from the theme\'s options under %s','fluida' ), '<a data-type="section" data-id="cryout-theme_lpslider" class="cryout-customizer-focus"><strong>' . __('Landing Page > Slider > Banner Image', 'fluida') . ' »</strong></a>' ), 428 'input_attrs' => array( 'class' => '' ), 429 'priority' => 9, 430 'active_callback' => 'fluida_conditionals', 431 'addon' => TRUE, // this option gets added to built-in WordPress section 432 'section' => 'header_image' ), 412 433 413 434 // Header … … 441 462 'type' => 'select', 442 463 'label' => __('Site Header Content','fluida'), 443 'values' => array( 'title' , 'logo' , 'both' , 'empty' ),464 'values' => array( 'title', 'logo' , 'both' , 'empty' ), 444 465 'labels' => array( __("Site Title","fluida"), __("Logo","fluida"), __("Logo & Site Title","fluida"), __("Empty","fluida") ), 445 466 'desc' => '', … … 463 484 'input_attrs' => array( 'class' => '' ), 464 485 'label' => '', 465 'desc' => __('Edit the site\'s title, tagline and logo from WordPress\' Site Identity panel.', 'fluida'),486 'desc' => sprintf( __( 'Edit the site\'s title, tagline and logo from the %s panel','fluida' ), '<a data-type="section" data-id="title_tagline" class="cryout-customizer-focus"><strong>' . __('Site Identity', 'fluida') . ' </strong></a>' ), 466 487 'section' => 'fluida_headercontent' ), 467 488 array( … … 565 586 __("Serious Slider", "fluida"), 566 587 __("Use Shortcode","fluida"), 567 __(" StaticImage","fluida"),588 __("Banner Image","fluida"), 568 589 __("Header Image","fluida"), 569 590 __("Disabled","fluida") … … 574 595 'id' => 'fluida_lpsliderimage', 575 596 'type' => 'media-image', 576 'label' => __(' Slider Image','fluida'),577 'desc' => __('The default image can be replaced by setting a new staticimage.', 'fluida'),597 'label' => __('Banner Image','fluida'), 598 'desc' => __('The default image can be replaced by setting a new banner image.', 'fluida'), 578 599 'active_callback' => 'fluida_conditionals', 579 600 'section' => 'fluida_lpslider' ), … … 604 625 'id' => 'fluida_lpslidertitle', 605 626 'type' => 'text', 606 'label' => __(' SliderCaption','fluida'),627 'label' => __('Caption','fluida'), 607 628 'desc' => '', 608 629 'input_attrs' => array( 'placeholder' => __('Title', 'fluida') ), … … 1057 1078 'label' => '', 1058 1079 'desc' => '', 1080 'no_inherit' => TRUE, 1059 1081 'section' => 'fluida_fontfamily' ), 1060 1082 array( … … 1630 1652 'type' => 'checkbox', 1631 1653 'label' => __( 'Display in Right Sidebar', 'fluida' ), 1632 'desc' => sprintf( __( 'Select where social icons should be visible in.<br><br><strong>Social Icons are defined using the <a href="%1$s" target="_blank">social icons menu</a></strong>. Read the <a href="%2$s" target="_blank">theme documentation</a> on how to create a social menu.', 'fluida' ), 'nav-menus.php?action=locations', 'http://www.cryoutcreations.eu/wordpress-tutorials/use-new-social-menu' ),1654 'desc' => sprintf( __( 'Select where social icons should be displayed.<br><br><strong>Social Icons are defined using the <a href="%1$s" target="_blank">socials menu</a></strong>. Read the <a href="%2$s" target="_blank">theme documentation</a> for detailed information.', 'fluida' ), 'nav-menus.php?action=locations', 'http://www.cryoutcreations.eu/wordpress-tutorials/use-new-social-menu' ), 1633 1655 'section' => 'fluida_socials' ), 1634 1656 … … 1735 1757 'fonts' => array( 1736 1758 1759 'Inherit' => array( // capitalization matters 1760 'Inherit General Font', 1761 ), 1737 1762 'Preferred Theme Fonts'=> array( 1738 1763 "Source Sans Pro/gfont", … … 1789 1814 ), 1790 1815 'Advanced' => array( 1791 "* CustomFont *",1816 "* Local Font *", 1792 1817 ), 1793 1818 ), // fonts … … 2208 2233 'before_widget' => '<section id="%1$s" class="widget-container %2$s">', 2209 2234 'after_widget' => '</section>', 2210 'before_title' => '<h 3class="widget-title"><span>',2211 'after_title' => '</span></h 3>',2235 'before_title' => '<h2 class="widget-title"><span>', 2236 'after_title' => '</span></h2>', 2212 2237 ), 2213 2238 'sidebar-1' => array( … … 2215 2240 'before_widget' => '<section id="%1$s" class="widget-container %2$s">', 2216 2241 'after_widget' => '</section>', 2217 'before_title' => '<h 3class="widget-title"><span>',2218 'after_title' => '</span></h 3>',2242 'before_title' => '<h2 class="widget-title"><span>', 2243 'after_title' => '</span></h2>', 2219 2244 ), 2220 2245 'footer-widget-area' => array( … … 2223 2248 'before_widget' => '<section id="%1$s" class="widget-container %2$s"><div class="footer-widget-inside">', 2224 2249 'after_widget' => '</div></section>', 2225 'before_title' => '<h 3class="widget-title"><span>',2226 'after_title' => '</span></h 3>',2250 'before_title' => '<h2 class="widget-title"><span>', 2251 'after_title' => '</span></h2>', 2227 2252 ), 2228 2253 'content-widget-area-before' => array( … … 2230 2255 'before_widget' => '<section id="%1$s" class="widget-container %2$s">', 2231 2256 'after_widget' => '</section>', 2232 'before_title' => '<h 3class="widget-title"><span>',2233 'after_title' => '</span></h 3>',2257 'before_title' => '<h2 class="widget-title"><span>', 2258 'after_title' => '</span></h2>', 2234 2259 ), 2235 2260 'content-widget-area-after' => array( … … 2237 2262 'before_widget' => '<section id="%1$s" class="widget-container %2$s">', 2238 2263 'after_widget' => '</section>', 2239 'before_title' => '<h 3class="widget-title"><span>',2240 'after_title' => '</span></h 3>',2264 'before_title' => '<h2 class="widget-title"><span>', 2265 'after_title' => '</span></h2>', 2241 2266 ), 2242 2267 'widget-area-header' => array( 2243 2268 'name' => __( 'Header', 'fluida' ), 2269 'description' => __('This widget area is displayed over the header image and requires an image to be set.', 'fluida'), 2244 2270 'before_widget' => '<section id="%1$s" class="widget-container %2$s">', 2245 2271 'after_widget' => '</section>', 2246 'before_title' => '<h 3class="widget-title"><span>',2247 'after_title' => '</span></h 3>',2272 'before_title' => '<h2 class="widget-title"><span>', 2273 'after_title' => '</span></h2>', 2248 2274 ), 2249 2275 ), // widget-areas -
fluida/1.8.6/archive.php
r135857 r144713 18 18 get_header(); ?> 19 19 20 <div id="container" class="<?php echofluida_get_layout_class(); ?>">20 <div id="container" class="<?php fluida_get_layout_class(); ?>"> 21 21 <main id="main" role="main" class="main"> 22 22 <?php cryout_before_content_hook(); ?> -
fluida/1.8.6/comments.php
r135857 r144713 18 18 <?php if ( have_comments() ) : ?> 19 19 20 <h 3id="comments-title">20 <h2 id="comments-title"> 21 21 <span> 22 22 <?php if ( 1 === absint( get_comments_number() ) ) { … … 27 27 } ?> 28 28 </span> 29 </h 3>29 </h2> 30 30 31 31 <ol class="commentlist"> -
fluida/1.8.6/content/user-bio.php
r135857 r144713 9 9 */ 10 10 11 $fluida_heading_tag = ( is_single() ) ? 'h 4' : 'h1';11 $fluida_heading_tag = ( is_single() ) ? 'h2' : 'h1'; 12 12 ?> 13 <div id="author-info" <?php cryout_schema_microdata( 'author' ); ?>>13 <div class="author-info" <?php cryout_schema_microdata( 'author' ); ?>> 14 14 15 15 <<?php echo $fluida_heading_tag ?> class="page-title"> … … 18 18 19 19 <?php if ( get_the_author_meta( 'description' ) ) : ?> 20 <div id="author-avatar" <?php cryout_schema_microdata( 'image' );?>>20 <div class="author-avatar" <?php cryout_schema_microdata( 'image' );?>> 21 21 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'fluida_author_bio_avatar_size', 80 ), '', '', array( 'extra_attr' => cryout_schema_microdata( 'url', 0) ) ); ?> 22 </div><!-- #author-avatar -->22 </div><!-- .author-avatar --> 23 23 24 <div id="author-description" <?php cryout_schema_microdata( 'author-description' ); ?>>24 <div class="author-description" <?php cryout_schema_microdata( 'author-description' ); ?>> 25 25 26 26 <span><?php the_author_meta( 'description' ); ?></span> 27 27 <?php if ( is_single() ) { ?> 28 <div id="author-link">28 <div class="author-link"> 29 29 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" <?php cryout_schema_microdata( 'author-url' ); ?>> 30 30 <?php printf( __( 'View all posts by ', 'fluida' ) . '%s <span class="meta-nav">→</span>', get_the_author() ); ?> 31 31 </a> 32 </div><!-- #author-link -->32 </div><!-- .author-link --> 33 33 <?php } ?> 34 34 35 </div><!-- #author-description -->35 </div><!-- .author-description --> 36 36 <?php endif; ?> 37 37 38 </div><!-- #entry-author-info -->38 </div><!-- .author-info --> -
fluida/1.8.6/cryout/controls.php
r135857 r144713 5 5 6 6 class Cryout_Customize_Link_Control extends WP_Customize_Control { 7 public $type = ' link';7 public $type = 'cryout-link'; 8 8 public function render_content() { 9 9 if ( !empty( $this->description ) ) { ?> … … 20 20 21 21 class Cryout_Customize_About_Section extends WP_Customize_Section { 22 public $type = ' about';22 public $type = 'cryout-about-section'; 23 23 public $button = FALSE; 24 24 public $button_label = ''; … … 70 70 71 71 class Cryout_Customize_About_Control extends WP_Customize_Control { 72 public $type = ' about';72 public $type = 'cryout-about'; 73 73 public function render_content() { 74 74 if ( ! empty( $this->label ) ) { ?> … … 84 84 85 85 class Cryout_Customize_Spacer_Control extends WP_Customize_Control { 86 public $type = ' spacer';86 public $type = 'cryout-spacer'; 87 87 public function render_content() { ?> 88 88 <div class="customize-control-content customize-cryoutcontrol-spacer"> … … 94 94 95 95 class Cryout_Customize_Description_Control extends WP_Customize_Control { 96 public $type = ' description';96 public $type = 'cryout-description'; 97 97 public function render_content() { 98 98 if ( ! empty( $this->label ) ) { ?> … … 100 100 <?php } 101 101 if ( ! empty( $this->description ) ) { ?> 102 <span class="description customize-control-description cryout-nomove customize-cryoutcontrol-description-desc"><?php echo $this->description?></span>102 <span class="description customize-control-description cryout-nomove customize-cryoutcontrol-description-desc"><?php echo wp_kses_post( $this->description ) ?></span> 103 103 <?php } ?> 104 104 <span class="customize-control-content customize-cryoutcontrol-description-value"><?php echo wp_kses_post( $this->value() ) ?></span> … … 114 114 <?php } 115 115 if ( ! empty( $this->description ) ) { ?> 116 <span class="description customize-control-description cryout-nomove customize-cryoutcontrol-hint-desc"><?php echo $this->description?></span>116 <span class="description customize-control-description cryout-nomove customize-cryoutcontrol-hint-desc"><?php echo wp_kses_post( $this->description ) ?></span> 117 117 <?php } ?> 118 118 <span class="customize-control-content customize-cryoutcontrol-hint-value"><?php echo wp_kses_post( $this->value() ) ?></span> … … 126 126 if (empty($this->input_attrs['class'])) $this->input_attrs['class'] = ''; 127 127 if ( ! empty( $this->label ) ) { ?> 128 <span class="customize-control-title customize-cryoutcontrol-notice customize-cryoutcontrol-notice-<?php echo $this->input_attrs['class']?>"><?php echo esc_html( $this->label ) ?></span>128 <span class="customize-control-title customize-cryoutcontrol-notice customize-cryoutcontrol-notice-<?php echo esc_attr( $this->input_attrs['class'] ) ?>"><?php echo esc_html( $this->label ) ?></span> 129 129 <?php } 130 130 if ( ! empty( $this->description ) ) { ?> 131 <span class="description customize-control-description cryout-nomove customize-cryoutcontrol-notice-desc customize-cryoutcontrol-notice-<?php echo $this->input_attrs['class'] ?>-desc"><?php echo $this->description?></span>131 <span class="description customize-control-description cryout-nomove customize-cryoutcontrol-notice-desc customize-cryoutcontrol-notice-<?php echo esc_attr( $this->input_attrs['class'] ) ?>-desc"><?php echo wp_kses_post( $this->description ) ?></span> 132 132 <?php } ?> 133 <span class="customize-control-content customize-cryoutcontrol-notice-value customize-cryoutcontrol-notice-<?php echo $this->input_attrs['class']?>-value"><?php echo wp_kses_post( $this->value() ) ?></span>133 <span class="customize-control-content customize-cryoutcontrol-notice-value customize-cryoutcontrol-notice-<?php echo esc_attr( $this->input_attrs['class'] ) ?>-value"><?php echo wp_kses_post( $this->value() ) ?></span> 134 134 <?php 135 135 } … … 137 137 138 138 class Cryout_Customize_Blank_Control extends WP_Customize_Control { 139 public $type = ' blank';139 public $type = 'cryout-blank'; 140 140 public function render_content() { 141 141 echo ' '; … … 152 152 153 153 class Cryout_Customize_Font_Control extends WP_Customize_Control { 154 public $type = ' font';154 public $type = 'cryout-font'; 155 155 private $fonts = array(); 156 156 public function render_content() { … … 169 169 <?php 170 170 foreach ( $this->fonts as $fgroup => $fsubs ): ?> 171 <optgroup label='<?php echo $fgroup; ?>'>171 <optgroup label='<?php echo esc_attr( $fgroup ); ?>'> 172 172 <?php foreach($fsubs as $item): 173 173 $item_show = explode(',',$item); ?> 174 <option style='font-family:<?php echo cryout_clean_gfont($item); ?>;' value='<?php echo $item; ?>' <?php selected( $this->value(), $item ); ?>>174 <option style='font-family:<?php echo cryout_clean_gfont($item); ?>;' value='<?php echo esc_attr( $item ); ?>' <?php selected( $this->value(), $item ); ?>> 175 175 <?php echo cryout_clean_gfont( $item_show[0] ); ?> 176 176 </option> … … 184 184 185 185 public function enqueue() { 186 // font control requires select2 library 187 wp_enqueue_script( 'cryout-select2-js', get_template_directory_uri() . '/cryout/js/select2.min.js', array('jquery'), _CRYOUT_THEME_VERSION ); 188 wp_enqueue_style( 'cryout-select2-css', get_template_directory_uri() . '/cryout/css/select2.min.css', NULL, _CRYOUT_THEME_VERSION ); 186 189 // google fonts enqueues for the font selectors preview 187 190 $gfonts = array(); … … 201 204 class Cryout_Customize_Slider_Control extends WP_Customize_Control { 202 205 203 public $type = 'slider';206 public $type = 'cryout-slider'; 204 207 public function __construct($manager, $id, $args = array(), $options = array()) { 205 208 parent::__construct( $manager, $id, $args ); … … 209 212 <label> 210 213 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?>: 211 <strong class="value"><?php echo esc_html( $this->value() ) ?></strong><?php echo $this->input_attrs['um']; ?>214 <strong class="value"><?php echo esc_html( $this->value() ) ?></strong><?php echo wp_kses_post( $this->input_attrs['um'] ); ?> 212 215 </span> 213 216 </label> 214 <input name="<?php echo $this->id; ?>" type="number" <?php $this->link(); ?> value="<?php echo esc_attr( $this->value() ) ?>" class="slider"215 step="<?php echo $this->input_attrs['step'] ?>" min="<?php echo $this->input_attrs['min'] ?>" max="<?php echo $this->input_attrs['max']?>" />217 <input name="<?php echo esc_attr( $this->id ); ?>" type="number" <?php $this->link(); ?> value="<?php echo esc_attr( $this->value() ) ?>" class="slider" 218 step="<?php echo esc_attr( $this->input_attrs['step'] ) ?>" min="<?php echo esc_attr( $this->input_attrs['min'] ) ?>" max="<?php echo esc_attr( $this->input_attrs['max'] ) ?>" /> 216 219 <div class="slider"></div> 217 220 <?php if ( ! empty( $this->description ) ) : ?> … … 233 236 234 237 class Cryout_Customize_SliderTwo_Control extends WP_Customize_Control { 235 public $type = ' slidertwo';238 public $type = 'cryout-slidertwo'; 236 239 public function __construct($manager, $id, $args = array(), $options = array()) { 237 240 parent::__construct( $manager, $id, $args ); … … 240 243 public function render_content() { ?> 241 244 <label><span class="customize-control-title"><?php echo esc_html( $this->label ); ?>: 242 <strong class="value"><?php echo esc_html( $this->value() ) ?></strong><?php echo $this->input_attrs['um']; ?> /243 <strong class="value2"><?php echo ( intval($this->input_attrs['total']) - intval($this->value()) ); ?></strong><?php echo $this->input_attrs['um']; ?>245 <strong class="value"><?php echo esc_html( $this->value() ) ?></strong><?php echo wp_kses_post( $this->input_attrs['um'] ); ?> / 246 <strong class="value2"><?php echo ( intval($this->input_attrs['total']) - intval($this->value()) ); ?></strong><?php echo wp_kses_post( $this->input_attrs['um'] ); ?> 244 247 </span></label> 245 <input name="<?php echo $this->id; ?>" type="number" <?php $this->link(); ?> value="<?php echo esc_attr( $this->value() ) ?>" class="slidertwo"246 step="<?php echo $this->input_attrs['step'] ?>" min="<?php echo $this->input_attrs['min']?>"247 max="<?php echo $this->input_attrs['max'] ?>" size="<?php echo $this->input_attrs['total']?>"/>248 <input name="<?php echo esc_attr( $this->id ); ?>" type="number" <?php $this->link(); ?> value="<?php echo esc_attr( $this->value() ) ?>" class="slidertwo" 249 step="<?php echo esc_attr( $this->input_attrs['step'] ) ?>" min="<?php echo esc_attr( $this->input_attrs['min'] ) ?>" 250 max="<?php echo esc_attr( $this->input_attrs['max'] ) ?>" size="<?php echo esc_attr( $this->input_attrs['total'] ) ?>"/> 248 251 <div class="slidertwo"></div> 249 252 <?php if ( ! empty( $this->description ) ) : ?> … … 266 269 class Cryout_Customize_NumberSlider_Control extends WP_Customize_Control { 267 270 268 public $type = 'numberslider';271 public $type = 'cryout-numberslider'; 269 272 public function __construct($manager, $id, $args = array(), $options = array()) { 270 273 parent::__construct( $manager, $id, $args ); … … 276 279 </label> 277 280 <div class="inputcontainer"> 278 <input name="<?php echo $this->id; ?>" type="number" <?php $this->link(); ?> value="<?php echo esc_attr( $this->value() ) ?>" class="numberslider"279 step="<?php echo $this->input_attrs['step'] ?>" min="<?php echo $this->input_attrs['min'] ?>" max="<?php echo $this->input_attrs['max']?>" <?php if (!empty($this->input_attrs['readonly'])) { ?>readonly="readonly"<?php } ?> />280 <?php echo $this->input_attrs['um']; ?>281 <input name="<?php echo esc_attr( $this->id ); ?>" type="number" <?php $this->link(); ?> value="<?php echo esc_attr( $this->value() ) ?>" class="numberslider" 282 step="<?php echo esc_attr( $this->input_attrs['step'] ) ?>" min="<?php echo esc_attr( $this->input_attrs['min'] )?>" max="<?php echo esc_attr( $this->input_attrs['max'] ) ?>" <?php if (!empty($this->input_attrs['readonly'])) { ?>readonly="readonly"<?php } ?> /> 283 <?php echo wp_kses_post( $this->input_attrs['um'] ); ?> 281 284 </div> 282 285 <div class="slider"></div> … … 299 302 300 303 class Cryout_Customize_RadioImage_Control extends WP_Customize_Control { 301 public $type = ' radioimage';304 public $type = 'cryout-radioimage'; 302 305 public function __construct($manager, $id, $args = array(), $options = array()) { 303 306 parent::__construct( $manager, $id, $args ); … … 317 320 $data['url'] = esc_url( sprintf( $data['url'], get_template_directory_uri(), get_stylesheet_directory_uri() ) ); 318 321 ?> 319 <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 ); ?> />320 <label for="<?php echo esc_attr( $name ) . "-" . $value; ?>">321 <img src="<?php echo $data['url']?>" alt="<?php echo esc_html( $data['label'] ) ?>" title="<?php echo esc_html( $data['label'] ) ?>"/>322 <input type="radio" value="<?php echo esc_attr( $value ); ?>" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ) . "-" . esc_attr( $value ); ?>" <?php $this->link(); checked( $this->value(), $value ); ?> /> 323 <label for="<?php echo esc_attr( $name ) . "-" . esc_attr( $value ); ?>"> 324 <img src="<?php echo esc_url( $data['url'] )?>" alt="<?php echo esc_html( $data['label'] ) ?>" title="<?php echo esc_html( $data['label'] ) ?>"/> 322 325 <span class="screen-reader-text"><?php echo esc_html( $data['label'] ); ?></span> 323 326 </label> … … 338 341 339 342 class Cryout_Customize_SelectShort_Control extends WP_Customize_Control { 340 public $type = ' selectshort';343 public $type = 'cryout-selectshort'; 341 344 public function render_content() { 342 345 if ( empty( $this->choices ) ) … … 347 350 <?php endif; ?> 348 351 <?php if ( ! empty( $this->description ) ) : ?> 349 <span class="description customize-control-description"><?php echo $this->description; ?></span>350 <?php endif; ?> 351 352 <select id="<?php echo esc_attr( $this->id ); ?>" <?php $this->link(); ?> class="<?php echo $this->type?>">352 <span class="description customize-control-description"><?php echo wp_kses_post( $this->description ); ?></span> 353 <?php endif; ?> 354 355 <select id="<?php echo esc_attr( $this->id ); ?>" <?php $this->link(); ?> class="<?php echo esc_attr( $this->type ) ?>"> 353 356 <?php 354 357 foreach ( $this->choices as $value => $label ) { 355 echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label. '</option>';358 echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . wp_kses_post( $label ) . '</option>'; 356 359 } 357 360 ?> … … 362 365 363 366 class Cryout_Customize_Select2_Control extends WP_Customize_Control { 364 public $type = ' select2';367 public $type = 'cryout-select2'; 365 368 public function render_content() { 366 369 if ( empty( $this->choices ) ) … … 371 374 <?php endif; ?> 372 375 <?php if ( ! empty( $this->description ) ) : ?> 373 <span class="description customize-control-description"><?php echo $this->description; ?></span>374 <?php endif; ?> 375 376 <select id="<?php echo esc_attr( $this->id ); ?>" <?php $this->link(); ?> class="<?php echo $this->type ?>" class="select2">376 <span class="description customize-control-description"><?php echo wp_kses_post( $this->description ); ?></span> 377 <?php endif; ?> 378 379 <select id="<?php echo esc_attr( $this->id ); ?>" <?php $this->link(); ?> class="<?php echo esc_attr( $this->type ) ?>"> 377 380 <?php 378 381 foreach ( $this->choices as $value => $label ) { 379 echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label. '</option>';382 echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . wp_kses_post( $label ) . '</option>'; 380 383 } 381 384 ?> … … 392 395 393 396 class Cryout_Customize_OptSelect_Control extends WP_Customize_Control { 394 public $type = ' optselect';397 public $type = 'cryout-optselect'; 395 398 public function render_content() { 396 399 if ( empty( $this->choices ) ) … … 402 405 <?php endif; 403 406 if ( ! empty( $this->description ) ) : ?> 404 <span class="description customize-control-description"><?php echo $this->description; ?></span>407 <span class="description customize-control-description"><?php echo wp_kses_post( $this->description ); ?></span> 405 408 <?php endif; ?> 406 409 … … 409 412 <?php 410 413 foreach ( $this->choices as $optgroup_id => $optgroup ) { 411 echo '<optgroup label="' . $optgroup_id. '">';414 echo '<optgroup label="' . esc_attr( $optgroup_id ) . '">'; 412 415 foreach ( $optgroup as $value => $label ) 413 echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label. '</option>';416 echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . wp_kses_post( $label ) . '</option>'; 414 417 echo '</optgroup>'; 415 418 } ?> … … 421 424 422 425 class Cryout_Customize_IconSelect_Control extends WP_Customize_Control { 423 public $type = ' iconselect';426 public $type = 'cryout-iconselect'; 424 427 public function render_content() { 425 428 $this->icons = cryout_get_theme_structure('block-icons'); … … 436 439 <?php 437 440 foreach ( $this->icons as $id => $icon ): ?> 438 <option value='<?php echo $id; ?>' <?php selected( $this->value(), $id ); ?> class="blicon-<?php echo $id ?>"> <?php echo ( $id!='no-icon' ? "&#x$icon;" : ' ' ) ?> <?php echo $id?> </option>441 <option value='<?php echo esc_attr( $id ); ?>' <?php selected( $this->value(), $id ); ?> class="blicon-<?php echo esc_attr( $id ) ?>"> <?php echo ( $id!='no-icon' ? "&#x" . esc_html( $icon ) . ";" : ' ' ); ?> <?php echo esc_html( $id )?> </option> 439 442 <?php endforeach; // $this->icons ?> 440 443 </select> … … 454 457 455 458 class Cryout_Customize_Toggle_Control extends WP_Customize_Control { 456 public $type = ' toggle';459 public $type = 'cryout-toggle'; 457 460 public function render_content() { ?> 458 461 <?php if ( ! empty( $this->label ) ) : ?> … … 472 475 473 476 <?php if ( ! empty( $this->description ) ) : ?> 474 <span class="description customize-control-description"><?php echo $this->description; ?></span>477 <span class="description customize-control-description"><?php echo wp_kses_post( $this->description ); ?></span> 475 478 <?php endif; ?> 476 479 -
fluida/1.8.6/cryout/css/customizer.css
r135857 r144713 148 148 } 149 149 150 #customize-theme-controls [id*="accordion-section- about"] .customize-control,150 #customize-theme-controls [id*="accordion-section-cryout-about"] .customize-control, 151 151 #customize-theme-controls [id*="accordion-section-cryoutspecial-about-theme"] .customize-control { 152 152 margin: 0 auto -1px; 153 153 } 154 154 155 #customize-theme-controls [id*="accordion-section- about"] .accordion-section-content,155 #customize-theme-controls [id*="accordion-section-cryout-about"] .accordion-section-content, 156 156 #customize-theme-controls [id*="accordion-section-cryoutspecial-about-theme"] .accordion-section-content { 157 157 display: block; … … 265 265 .customize-control-sortable .sortable-edit:hover { 266 266 opacity: 1; 267 } 268 269 .customize-control-cryout-sortable .sortable li.status-disabled { 270 opacity: .5; 267 271 } 268 272 … … 360 364 } 361 365 362 #customize-theme-controls [id*="cryout-"] .customize-control-cryout-notice .customize-cryoutcontrol-notice-desc { 366 #customize-theme-controls [id*="cryout-"] .customize-control-cryout-notice .customize-cryoutcontrol-notice-desc, 367 .customize-control-cryout-notice .customize-cryoutcontrol-notice-desc { 363 368 background: #fff; 364 369 border: 1px solid #ddd; … … 371 376 } 372 377 373 #customize-theme-controls [id*="cryout-"] .customize-control-cryout-notice .customize-cryoutcontrol-notice-desc a { 378 #customize-theme-controls [id*="cryout-"] .customize-control-cryout-notice .customize-cryoutcontrol-notice-desc a, 379 .customize-control-cryout-notice .customize-cryoutcontrol-notice-desc a { 374 380 cursor: pointer; 375 381 } 376 382 377 #customize-theme-controls [id*="cryout-"] .customize-control-cryout-notice .customize-cryoutcontrol-notice-warning-desc { 383 #customize-theme-controls [id*="cryout-"] .customize-control-cryout-notice .customize-cryoutcontrol-notice-warning-desc, 384 .customize-control-cryout-notice .customize-cryoutcontrol-notice-warning-desc { 378 385 color: #900; 379 }380 381 .customize-control-sortable .sortable li.status-disabled {382 opacity: 0.5;383 386 } 384 387 -
fluida/1.8.6/cryout/css/select2.css
r135857 r144713 189 189 .select2-container--default .select2-selection--multiple .select2-selection__rendered li { 190 190 list-style: none; } 191 .select2-container--default .select2-selection--multiple .select2-selection__placeholder {192 color: #999;193 margin-top: 5px;194 float: left; }195 191 .select2-container--default .select2-selection--multiple .select2-selection__clear { 196 192 cursor: pointer; … … 198 194 font-weight: bold; 199 195 margin-top: 5px; 200 margin-right: 10px; } 196 margin-right: 10px; 197 padding: 1px; } 201 198 .select2-container--default .select2-selection--multiple .select2-selection__choice { 202 199 background-color: #e4e4e4; … … 217 214 color: #333; } 218 215 219 .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-se lection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {216 .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline { 220 217 float: right; } 221 218 -
fluida/1.8.6/cryout/css/select2.min.css
r135857 r144713 1 .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__ placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}1 .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb} -
fluida/1.8.6/cryout/customizer.php
r135857 r144713 272 272 'section' => $opt['section'], 273 273 'settings' => $opid, 274 'type' => $opt['type'], 274 275 'input_attrs' => (isset($opt['disabled'])?array('disabled'=>$opt['disabled']):array('disabled'=>false)), 275 276 'priority' => (isset($opt['priority'])?$opt['priority']:$priority), 276 'choices' => (isset($opt['choices'])?$opt['choices']: $opt['values']),277 'choices' => (isset($opt['choices'])?$opt['choices']:(isset($opt['values'])?$opt['values']:array(0,1))), 277 278 'disabled' => (isset($opt['disabled'])?$opt['disabled']:''), 278 279 'active_callback' => ( (isset($opt['active_callback'])) ? $opt['active_callback'] : NULL), -
fluida/1.8.6/cryout/framework.php
r135857 r144713 2 2 /** 3 3 * @package Cryout Framework 4 * @version 0.8.5. 15 * @revision 202 007144 * @version 0.8.5.7 5 * @revision 20210226 6 6 * @author Cryout Creations - www.cryoutcreations.eu 7 7 */ 8 8 9 define('_CRYOUT_FRAMEWORK_VERSION', '0.8.5.1'); 10 11 // requirements 12 if (!defined('_CRYOUT_THEME_REQUIRED_PHP')) define('_CRYOUT_THEME_REQUIRED_PHP', '5.3'); 13 if (!defined('_CRYOUT_THEME_REQUIRED_WP')) define('_CRYOUT_THEME_REQUIRED_WP', '4.1'); 14 15 // Check if minimum supported PHP version is used 16 if ( FALSE !== phpversion() && version_compare( phpversion(), _CRYOUT_THEME_REQUIRED_PHP, '<' ) ) { 17 require get_template_directory() . '/cryout/back-compat-php.php'; 18 } 19 20 // Check if minimum supported WordPress version is used 21 elseif ( version_compare( $GLOBALS['wp_version'], _CRYOUT_THEME_REQUIRED_WP, '<' ) ) { 22 require get_template_directory() . '/cryout/back-compat.php'; 23 } 9 define('_CRYOUT_FRAMEWORK_VERSION', '0.8.5.7'); 24 10 25 11 // Load everything … … 28 14 require_once(get_template_directory() . "/cryout/customizer.php"); 29 15 require_once(get_template_directory() . "/cryout/ajax.php"); 30 require_once(get_template_directory() . "/cryout/demo.php");31 16 32 17 if( is_admin() ) { -
fluida/1.8.6/cryout/js/customizer-controls.js
r135857 r144713 5 5 */ 6 6 7 jQuery(window).load(function(){ 8 9 var settings = []; 7 jQuery(document).ready(function(){ 10 8 11 9 setTimeout(function() { … … 30 28 step: parseInt( settings[4] ), 31 29 slide: function( event, ui){ 32 jQuery(the_input).val( ui.value ). change();30 jQuery(the_input).val( ui.value ).trigger('change'); 33 31 jQuery(this).parent().find('.value').text( ui.value ); 34 32 } … … 36 34 37 35 }); // each 38 36 39 37 // NumberSlider Control 40 38 jQuery('input[type="number"].numberslider').each(function() { … … 54 52 step: settings[4], 55 53 slide: function( event, ui){ 56 jQuery(the_input).val( ui.value ). change();54 jQuery(the_input).val( ui.value ).trigger('change'); 57 55 } 58 56 }); 59 57 60 58 // update slider on input change 61 jQuery(this). change(function(){59 jQuery(this).on('change', function(){ 62 60 jQuery(this).closest('.customize-control').find('div.slider').slider( 'option', 'value', jQuery(this).val() ); 63 61 } ); … … 84 82 step: parseInt( settings[4] ), 85 83 slide: function( event, ui){ 86 jQuery(the_input).val( ui.value ). change();84 jQuery(the_input).val( ui.value ).trigger('change'); 87 85 jQuery(this).parent().find('.value').text( ui.value ); 88 86 jQuery(this).parent().find('.value2').text( settings[5] - parseInt(ui.value) ); … … 91 89 92 90 }); // each 93 91 94 92 // Sortable control 95 93 jQuery('.customize-control-sortable .sortable-row').sortable({ … … 99 97 order.push(jQuery(this).attr("id")); 100 98 }); 101 jQuery(this).parent().children('.the_sorted').val(order.join()). change();99 jQuery(this).parent().children('.the_sorted').val(order.join()).trigger('change'); 102 100 } 103 101 }); // sortable 104 102 105 }); // setTimeout 103 // RadioImage Control 104 jQuery( '.customize-control-radio-image .buttonset' ).buttonset(); 105 106 // Icon Select2 Control 107 var cryoutSelect2Texts = { 108 errorLoading: function(){ return "The results could not be loaded" }, 109 inputTooLong: function(){ return "Please delete some characters" }, 110 inputTooShort:function(){ return "Please enter more characters" }, 111 loadingMore: function(){ return "Loading more results..." }, 112 noResults: function(){ return "No results found" }, 113 searching: function(){ return "Searching…" }, 114 maximumSelected:function(){ return "You have selected too many items"} 115 } 106 116 117 // init select2 control on font selectors 118 if ( jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd ) jQuery('select.fontselect.select2').select2({ 119 width: "element", 120 theme: 'default cryout-select2', 121 language: cryoutSelect2Texts 122 }).addClass( 'cryout-select2' ); 123 // init select2 control for icon selectors (needs extra class for custom font) 124 if ( jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd ) jQuery('select.iconselect.select2').select2({ 125 width: "element", 126 theme: 'default cryout-select2 cryout-iconselect', 127 language: cryoutSelect2Texts 128 }).addClass( 'cryout-select2 cryout-iconselect' ); 107 129 108 // RadioImage Control 109 jQuery( '.customize-control-radio-image .buttonset' ).buttonset(); 110 111 // Icon Select2 Control 112 (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/en",[],function(){}),{define:e.define,require:e.require}})(); 113 114 var cryoutSelect2Texts = { 115 errorLoading: function(){ return "The results could not be loaded" }, 116 inputTooLong: function(){ return "Please delete some characters" }, 117 inputTooShort:function(){ return "Please enter more characters" }, 118 loadingMore: function(){ return "Loading more results..." }, 119 noResults: function(){ return "No results found" }, 120 searching: function(){ return "Searching…" }, 121 maximumSelected:function(){ return "You have selected too many items"} 122 } 123 124 // init select2 control on font selectors 125 if ( jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) jQuery('select.fontselect.select2').select2({ 126 width: "element", 127 theme: 'default cryout-select2', 128 language: cryoutSelect2Texts 129 }); 130 // init select2 control for icon selectors (needs extra class for custom font) 131 if ( jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) jQuery('select.iconselect.select2').select2({ 132 width: "element", 133 theme: 'default cryout-select2 cryout-iconselect', 134 language: cryoutSelect2Texts 135 }); 130 }); // setTimeout 136 131 137 132 }); // load 133 /* FIN */ -
fluida/1.8.6/cryout/js/customizer.js
r135857 r144713 5 5 */ 6 6 7 var _ label_max = 'Maximize';8 var _ label_min = 'Restore';7 var _cryout_label_max = 'Maximize'; 8 var _cryout_label_min = 'Restore'; 9 9 10 var innerHTML = '<button class="button cryout-expand-sidebar button-secondary" aria-expanded="true" aria-label="' + _label_max + '" title="' +_label_max + '" href="#">\11 <span class="collapse-sidebar-label">' + _ label_max + '</span>\12 <span class="collapse-sidebar-arrow" title="' + _ label_max + '"></span>\10 var _cryout_innerHTML = '<button class="button cryout-expand-sidebar button-secondary" aria-expanded="true" aria-label="' + _cryout_label_max + '" title="' + _cryout_label_max + '" href="#">\ 11 <span class="collapse-sidebar-label">' + _cryout_label_max + '</span>\ 12 <span class="collapse-sidebar-arrow" title="' + _cryout_label_max + '"></span>\ 13 13 </button> '; 14 14 … … 22 22 if (jQuery('#customize-footer-actions .devices').length>0) { 23 23 /* wp 4.5 or newer */ 24 jQuery('#customize-footer-actions .devices').prepend( innerHTML);24 jQuery('#customize-footer-actions .devices').prepend(_cryout_innerHTML); 25 25 } else { 26 jQuery('#customize-footer-actions').append( innerHTML);26 jQuery('#customize-footer-actions').append(_cryout_innerHTML); 27 27 } 28 28 … … 31 31 if ( jQuery('.wp-full-overlay').hasClass('cryout-maximized') ) { 32 32 jQuery('.wp-full-overlay').removeClass( 'cryout-maximized' ); 33 jQuery('a.cryout-expand-sidebar span.collapse-sidebar-label').html(_ label_max);34 jQuery('a.cryout-expand-sidebar').attr('title',_ label_max);33 jQuery('a.cryout-expand-sidebar span.collapse-sidebar-label').html(_cryout_label_max); 34 jQuery('a.cryout-expand-sidebar').attr('title',_cryout_label_max); 35 35 } 36 36 … … 41 41 var label = jQuery('.cryout-expand-sidebar span.collapse-sidebar-label'); 42 42 var lebutton = jQuery('.cryout-expand-sidebar'); 43 if (jQuery(label).html() == _ label_max) {44 jQuery(label).html(_ label_min);45 jQuery(lebutton).attr('title',_ label_min);43 if (jQuery(label).html() == _cryout_label_max) { 44 jQuery(label).html(_cryout_label_min); 45 jQuery(lebutton).attr('title',_cryout_label_min); 46 46 jQuery('.wp-full-overlay').removeClass( 'collapsed' ).addClass( 'expanded' ).addClass( 'cryout-maximized' ); 47 47 } else { 48 jQuery(label).html(_ label_max);49 jQuery(lebutton).attr('title',_ label_max);48 jQuery(label).html(_cryout_label_max); 49 jQuery(lebutton).attr('title',_cryout_label_max); 50 50 jQuery('.wp-full-overlay').removeClass( 'collapsed' ).addClass( 'expanded' ).removeClass( 'cryout-maximized' ); 51 51 } -
fluida/1.8.6/cryout/js/select2.js
r135857 r144713 1 1 /*! 2 * Select2 4.0. 6-rc.12 * Select2 4.0.13 3 3 * https://select2.github.io 4 4 * … … 778 778 var id = 0; 779 779 Utils.GetUniqueElementId = function (element) { 780 // Get a unique element Id. If element has no id, 781 // creates a new unique number, stores it in the id 782 // attribute and returns the new id. 780 // Get a unique element Id. If element has no id, 781 // creates a new unique number, stores it in the id 782 // attribute and returns the new id. 783 783 // If an id already exists, it simply returns it. 784 784 … … 799 799 Utils.StoreData = function (element, name, value) { 800 800 // Stores an item in the cache for a specified element. 801 // name is the cache key. 801 // name is the cache key. 802 802 var id = Utils.GetUniqueElementId(element); 803 803 if (!Utils.__cache[id]) { … … 810 810 Utils.GetData = function (element, name) { 811 811 // Retrieves a value from the cache by its key (name) 812 // name is optional. If no name specified, return 812 // name is optional. If no name specified, return 813 813 // all cache items for the specified element. 814 814 // and for a specified element. … … 816 816 if (name) { 817 817 if (Utils.__cache[id]) { 818 return Utils.__cache[id][name] != null ? 819 Utils.__cache[id][name]: 820 $(element).data(name); // Fallback to HTML5 data attribs. 818 if (Utils.__cache[id][name] != null) { 819 return Utils.__cache[id][name]; 820 } 821 return $(element).data(name); // Fallback to HTML5 data attribs. 821 822 } 822 823 return $(element).data(name); // Fallback to HTML5 data attribs. 823 824 } else { 824 return Utils.__cache[id]; 825 return Utils.__cache[id]; 825 826 } 826 827 }; … … 832 833 delete Utils.__cache[id]; 833 834 } 835 836 element.removeAttribute('data-select2-id'); 834 837 }; 835 838 … … 853 856 Results.prototype.render = function () { 854 857 var $results = $( 855 '<ul class="select2-results__options" role=" tree"></ul>'858 '<ul class="select2-results__options" role="listbox"></ul>' 856 859 ); 857 860 … … 876 879 877 880 var $message = $( 878 '<li role=" treeitem" aria-live="assertive"' +881 '<li role="alert" aria-live="assertive"' + 879 882 ' class="select2-results__option"></li>' 880 883 ); … … 1010 1013 1011 1014 var attrs = { 1012 'role': ' treeitem',1015 'role': 'option', 1013 1016 'aria-selected': 'false' 1014 1017 }; 1015 1018 1016 if (data.disabled) { 1019 var matches = window.Element.prototype.matches || 1020 window.Element.prototype.msMatchesSelector || 1021 window.Element.prototype.webkitMatchesSelector; 1022 1023 if ((data.element != null && matches.call(data.element, ':disabled')) || 1024 (data.element == null && data.disabled)) { 1017 1025 delete attrs['aria-selected']; 1018 1026 attrs['aria-disabled'] = 'true'; … … 1115 1123 1116 1124 self.setClasses(); 1117 self.highlightFirstItem(); 1125 1126 if (self.options.get('scrollAfterSelect')) { 1127 self.highlightFirstItem(); 1128 } 1118 1129 }); 1119 1130 … … 1124 1135 1125 1136 self.setClasses(); 1126 self.highlightFirstItem(); 1137 1138 if (self.options.get('scrollAfterSelect')) { 1139 self.highlightFirstItem(); 1140 } 1127 1141 }); 1128 1142 … … 1178 1192 var currentIndex = $options.index($highlighted); 1179 1193 1180 // If we are already at t e top, don't move further1194 // If we are already at the top, don't move further 1181 1195 // If no options, currentIndex will be -1 1182 1196 if (currentIndex <= 0) { … … 1419 1433 $selection.attr('title', this.$element.attr('title')); 1420 1434 $selection.attr('tabindex', this._tabindex); 1435 $selection.attr('aria-disabled', 'false'); 1421 1436 1422 1437 this.$selection = $selection; … … 1428 1443 var self = this; 1429 1444 1430 var id = container.id + '-container';1431 1445 var resultsId = container.id + '-results'; 1432 1446 … … 1471 1485 self.$selection.removeAttr('aria-owns'); 1472 1486 1473 self.$selection.focus(); 1474 window.setTimeout(function () { 1475 self.$selection.focus(); 1476 }, 0); 1487 self.$selection.trigger('focus'); 1477 1488 1478 1489 self._detachCloseHandler(container); … … 1481 1492 container.on('enable', function () { 1482 1493 self.$selection.attr('tabindex', self._tabindex); 1494 self.$selection.attr('aria-disabled', 'false'); 1483 1495 }); 1484 1496 1485 1497 container.on('disable', function () { 1486 1498 self.$selection.attr('tabindex', '-1'); 1499 self.$selection.attr('aria-disabled', 'true'); 1487 1500 }); 1488 1501 }; … … 1507 1520 1508 1521 BaseSelection.prototype._attachCloseHandler = function (container) { 1509 var self = this;1510 1522 1511 1523 $(document.body).on('mousedown.select2.' + container.id, function (e) { … … 1517 1529 1518 1530 $all.each(function () { 1519 var $this = $(this);1520 1521 1531 if (this == $select[0]) { 1522 1532 return; … … 1545 1555 BaseSelection.prototype.update = function (data) { 1546 1556 throw new Error('The `update` method must be defined in child classes.'); 1557 }; 1558 1559 /** 1560 * Helper method to abstract the "enabled" (not "disabled") state of this 1561 * object. 1562 * 1563 * @return {true} if the instance is not disabled. 1564 * @return {false} if the instance is disabled. 1565 */ 1566 BaseSelection.prototype.isEnabled = function () { 1567 return !this.isDisabled(); 1568 }; 1569 1570 /** 1571 * Helper method to abstract the "disabled" state of this object. 1572 * 1573 * @return {true} if the disabled option is true. 1574 * @return {false} if the disabled option is false. 1575 */ 1576 BaseSelection.prototype.isDisabled = function () { 1577 return this.options.get('disabled'); 1547 1578 }; 1548 1579 … … 1611 1642 container.on('focus', function (evt) { 1612 1643 if (!container.isOpen()) { 1613 self.$selection. focus();1644 self.$selection.trigger('focus'); 1614 1645 } 1615 1646 }); … … 1645 1676 1646 1677 $rendered.empty().append(formatted); 1647 $rendered.attr('title', selection.title || selection.text); 1678 1679 var title = selection.title || selection.text; 1680 1681 if (title) { 1682 $rendered.attr('title', title); 1683 } else { 1684 $rendered.removeAttr('title'); 1685 } 1648 1686 }; 1649 1687 … … 1690 1728 function (evt) { 1691 1729 // Ignore the event if it is disabled 1692 if (self. options.get('disabled')) {1730 if (self.isDisabled()) { 1693 1731 return; 1694 1732 } … … 1748 1786 1749 1787 $selection.append(formatted); 1750 $selection.attr('title', selection.title || selection.text); 1788 1789 var title = selection.title || selection.text; 1790 1791 if (title) { 1792 $selection.attr('title', title); 1793 } 1751 1794 1752 1795 Utils.StoreData($selection[0], 'data', selection); … … 1846 1889 AllowClear.prototype._handleClear = function (_, evt) { 1847 1890 // Ignore the event if it is disabled 1848 if (this. options.get('disabled')) {1891 if (this.isDisabled()) { 1849 1892 return; 1850 1893 } … … 1889 1932 } 1890 1933 1891 this.$element.trigger(' change');1934 this.$element.trigger('input').trigger('change'); 1892 1935 1893 1936 this.trigger('toggle', {}); … … 1912 1955 } 1913 1956 1957 var removeAll = this.options.get('translations').get('removeAllItems'); 1958 1914 1959 var $remove = $( 1915 '<span class="select2-selection__clear" >' +1960 '<span class="select2-selection__clear" title="' + removeAll() +'">' + 1916 1961 '×' + 1917 1962 '</span>' … … 1939 1984 '<input class="select2-search__field" type="search" tabindex="-1"' + 1940 1985 ' autocomplete="off" autocorrect="off" autocapitalize="none"' + 1941 ' spellcheck="false" role=" textbox" aria-autocomplete="list" />' +1986 ' spellcheck="false" role="searchbox" aria-autocomplete="list" />' + 1942 1987 '</li>' 1943 1988 ); … … 1956 2001 var self = this; 1957 2002 2003 var resultsId = container.id + '-results'; 2004 1958 2005 decorated.call(this, container, $container); 1959 2006 1960 2007 container.on('open', function () { 2008 self.$search.attr('aria-controls', resultsId); 1961 2009 self.$search.trigger('focus'); 1962 2010 }); … … 1964 2012 container.on('close', function () { 1965 2013 self.$search.val(''); 2014 self.$search.removeAttr('aria-controls'); 1966 2015 self.$search.removeAttr('aria-activedescendant'); 1967 2016 self.$search.trigger('focus'); … … 1983 2032 1984 2033 container.on('results:focus', function (params) { 1985 self.$search.attr('aria-activedescendant', params.id); 2034 if (params.data._resultId) { 2035 self.$search.attr('aria-activedescendant', params.data._resultId); 2036 } else { 2037 self.$search.removeAttr('aria-activedescendant'); 2038 } 1986 2039 }); 1987 2040 … … 2014 2067 evt.preventDefault(); 2015 2068 } 2069 } 2070 }); 2071 2072 this.$selection.on('click', '.select2-search--inline', function (evt) { 2073 if (self.$search.val()) { 2074 evt.stopPropagation(); 2016 2075 } 2017 2076 }); … … 2102 2161 this.resizeSearch(); 2103 2162 if (searchHadFocus) { 2104 var isTagInput = this.$element.find('[data-select2-tag]').length; 2105 if (isTagInput) { 2106 // fix IE11 bug where tag input lost focus 2107 this.$element.focus(); 2108 } else { 2109 this.$search.focus(); 2110 } 2163 this.$search.trigger('focus'); 2111 2164 } 2112 2165 }; … … 2141 2194 2142 2195 if (this.$search.attr('placeholder') !== '') { 2143 width = this.$selection.find('.select2-selection__rendered'). innerWidth();2196 width = this.$selection.find('.select2-selection__rendered').width(); 2144 2197 } else { 2145 2198 var minimumWidth = this.$search.val().length + 1; … … 2504 2557 '\uA74A': 'O', 2505 2558 '\uA74C': 'O', 2559 '\u0152': 'OE', 2506 2560 '\u01A2': 'OI', 2507 2561 '\uA74E': 'OO', … … 2913 2967 '\uA74D': 'o', 2914 2968 '\u0275': 'o', 2969 '\u0153': 'oe', 2915 2970 '\u01A3': 'oi', 2916 2971 '\u0223': 'ou', … … 3081 3136 '\u03CB': '\u03C5', 3082 3137 '\u03B0': '\u03C5', 3083 '\u03C9': '\u03C9', 3084 '\u03C2': '\u03C3' 3138 '\u03CE': '\u03C9', 3139 '\u03C2': '\u03C3', 3140 '\u2019': '\'' 3085 3141 }; 3086 3142 … … 3167 3223 data.element.selected = true; 3168 3224 3169 this.$element.trigger(' change');3225 this.$element.trigger('input').trigger('change'); 3170 3226 3171 3227 return; … … 3188 3244 3189 3245 self.$element.val(val); 3190 self.$element.trigger(' change');3246 self.$element.trigger('input').trigger('change'); 3191 3247 }); 3192 3248 } else { … … 3194 3250 3195 3251 this.$element.val(val); 3196 this.$element.trigger(' change');3252 this.$element.trigger('input').trigger('change'); 3197 3253 } 3198 3254 }; … … 3210 3266 data.element.selected = false; 3211 3267 3212 this.$element.trigger(' change');3268 this.$element.trigger('input').trigger('change'); 3213 3269 3214 3270 return; … … 3228 3284 self.$element.val(val); 3229 3285 3230 self.$element.trigger(' change');3286 self.$element.trigger('input').trigger('change'); 3231 3287 }); 3232 3288 }; … … 3421 3477 ], function (SelectAdapter, Utils, $) { 3422 3478 function ArrayAdapter ($element, options) { 3423 var data= options.get('data') || [];3479 this._dataToConvert = options.get('data') || []; 3424 3480 3425 3481 ArrayAdapter.__super__.constructor.call(this, $element, options); 3426 3427 this.addOptions(this.convertToOptions(data));3428 3482 } 3429 3483 3430 3484 Utils.Extend(ArrayAdapter, SelectAdapter); 3485 3486 ArrayAdapter.prototype.bind = function (container, $container) { 3487 ArrayAdapter.__super__.bind.call(this, container, $container); 3488 3489 this.addOptions(this.convertToOptions(this._dataToConvert)); 3490 }; 3431 3491 3432 3492 ArrayAdapter.prototype.select = function (data) { … … 3719 3779 3720 3780 Tags.prototype._removeOldTags = function (_) { 3721 var tag = this._lastTag;3722 3723 3781 var $options = this.$element.find('option[data-select2-tag]'); 3724 3782 … … 3795 3853 if (this.$search.length) { 3796 3854 this.$search.val(tokenData.term); 3797 this.$search. focus();3855 this.$search.trigger('focus'); 3798 3856 } 3799 3857 … … 3924 3982 } 3925 3983 3984 MaximumSelectionLength.prototype.bind = 3985 function (decorated, container, $container) { 3986 var self = this; 3987 3988 decorated.call(this, container, $container); 3989 3990 container.on('select', function () { 3991 self._checkIfMaximumSelected(); 3992 }); 3993 }; 3994 3926 3995 MaximumSelectionLength.prototype.query = 3927 3996 function (decorated, params, callback) { 3997 var self = this; 3998 3999 this._checkIfMaximumSelected(function () { 4000 decorated.call(self, params, callback); 4001 }); 4002 }; 4003 4004 MaximumSelectionLength.prototype._checkIfMaximumSelected = 4005 function (_, successCallback) { 3928 4006 var self = this; 3929 4007 … … 3940 4018 return; 3941 4019 } 3942 decorated.call(self, params, callback); 4020 4021 if (successCallback) { 4022 successCallback(); 4023 } 3943 4024 }); 3944 4025 }; … … 3979 4060 3980 4061 Dropdown.prototype.position = function ($dropdown, $container) { 3981 // Should be impl mented in subclasses4062 // Should be implemented in subclasses 3982 4063 }; 3983 4064 … … 4003 4084 '<input class="select2-search__field" type="search" tabindex="-1"' + 4004 4085 ' autocomplete="off" autocorrect="off" autocapitalize="none"' + 4005 ' spellcheck="false" role=" textbox" />' +4086 ' spellcheck="false" role="searchbox" aria-autocomplete="list" />' + 4006 4087 '</span>' 4007 4088 ); … … 4017 4098 Search.prototype.bind = function (decorated, container, $container) { 4018 4099 var self = this; 4100 4101 var resultsId = container.id + '-results'; 4019 4102 4020 4103 decorated.call(this, container, $container); … … 4040 4123 container.on('open', function () { 4041 4124 self.$search.attr('tabindex', 0); 4042 4043 self.$search.focus(); 4125 self.$search.attr('aria-controls', resultsId); 4126 4127 self.$search.trigger('focus'); 4044 4128 4045 4129 window.setTimeout(function () { 4046 self.$search. focus();4130 self.$search.trigger('focus'); 4047 4131 }, 0); 4048 4132 }); … … 4050 4134 container.on('close', function () { 4051 4135 self.$search.attr('tabindex', -1); 4136 self.$search.removeAttr('aria-controls'); 4137 self.$search.removeAttr('aria-activedescendant'); 4052 4138 4053 4139 self.$search.val(''); 4054 self.$search. blur();4140 self.$search.trigger('blur'); 4055 4141 }); 4056 4142 4057 4143 container.on('focus', function () { 4058 4144 if (!container.isOpen()) { 4059 self.$search. focus();4145 self.$search.trigger('focus'); 4060 4146 } 4061 4147 }); … … 4070 4156 self.$searchContainer.addClass('select2-search--hide'); 4071 4157 } 4158 } 4159 }); 4160 4161 container.on('results:focus', function (params) { 4162 if (params.data._resultId) { 4163 self.$search.attr('aria-activedescendant', params.data._resultId); 4164 } else { 4165 self.$search.removeAttr('aria-activedescendant'); 4072 4166 } 4073 4167 }); … … 4156 4250 if (this.showLoadingMore(data)) { 4157 4251 this.$results.append(this.$loadingMore); 4252 this.loadMoreIfNeeded(); 4158 4253 } 4159 4254 }; … … 4174 4269 }); 4175 4270 4176 this.$results.on('scroll', function () { 4177 var isLoadMoreVisible = $.contains( 4178 document.documentElement, 4179 self.$loadingMore[0] 4180 ); 4181 4182 if (self.loading || !isLoadMoreVisible) { 4183 return; 4184 } 4185 4186 var currentOffset = self.$results.offset().top + 4187 self.$results.outerHeight(false); 4188 var loadingMoreOffset = self.$loadingMore.offset().top + 4189 self.$loadingMore.outerHeight(false); 4190 4191 if (currentOffset + 50 >= loadingMoreOffset) { 4192 self.loadMore(); 4193 } 4194 }); 4271 this.$results.on('scroll', this.loadMoreIfNeeded.bind(this)); 4272 }; 4273 4274 InfiniteScroll.prototype.loadMoreIfNeeded = function () { 4275 var isLoadMoreVisible = $.contains( 4276 document.documentElement, 4277 this.$loadingMore[0] 4278 ); 4279 4280 if (this.loading || !isLoadMoreVisible) { 4281 return; 4282 } 4283 4284 var currentOffset = this.$results.offset().top + 4285 this.$results.outerHeight(false); 4286 var loadingMoreOffset = this.$loadingMore.offset().top + 4287 this.$loadingMore.outerHeight(false); 4288 4289 if (currentOffset + 50 >= loadingMoreOffset) { 4290 this.loadMore(); 4291 } 4195 4292 }; 4196 4293 … … 4213 4310 '<li ' + 4214 4311 'class="select2-results__option select2-results__option--load-more"' + 4215 'role=" treeitem" aria-disabled="true"></li>'4312 'role="option" aria-disabled="true"></li>' 4216 4313 ); 4217 4314 … … 4231 4328 ], function ($, Utils) { 4232 4329 function AttachBody (decorated, $element, options) { 4233 this.$dropdownParent = options.get('dropdownParent') || $(document.body);4330 this.$dropdownParent = $(options.get('dropdownParent') || document.body); 4234 4331 4235 4332 decorated.call(this, $element, options); … … 4238 4335 AttachBody.prototype.bind = function (decorated, container, $container) { 4239 4336 var self = this; 4240 4241 var setupResultsEvents = false;4242 4337 4243 4338 decorated.call(this, container, $container); … … 4247 4342 self._attachPositioningHandler(container); 4248 4343 4249 if (!setupResultsEvents) { 4250 setupResultsEvents = true; 4251 4252 container.on('results:all', function () { 4253 self._positionDropdown(); 4254 self._resizeDropdown(); 4255 }); 4256 4257 container.on('results:append', function () { 4258 self._positionDropdown(); 4259 self._resizeDropdown(); 4260 }); 4261 } 4344 // Must bind after the results handlers to ensure correct sizing 4345 self._bindContainerResultHandlers(container); 4262 4346 }); 4263 4347 … … 4306 4390 AttachBody.prototype._hideDropdown = function (decorated) { 4307 4391 this.$dropdownContainer.detach(); 4392 }; 4393 4394 AttachBody.prototype._bindContainerResultHandlers = 4395 function (decorated, container) { 4396 4397 // These should only be bound once 4398 if (this._containerResultsHandlersBound) { 4399 return; 4400 } 4401 4402 var self = this; 4403 4404 container.on('results:all', function () { 4405 self._positionDropdown(); 4406 self._resizeDropdown(); 4407 }); 4408 4409 container.on('results:append', function () { 4410 self._positionDropdown(); 4411 self._resizeDropdown(); 4412 }); 4413 4414 container.on('results:message', function () { 4415 self._positionDropdown(); 4416 self._resizeDropdown(); 4417 }); 4418 4419 container.on('select', function () { 4420 self._positionDropdown(); 4421 self._resizeDropdown(); 4422 }); 4423 4424 container.on('unselect', function () { 4425 self._positionDropdown(); 4426 self._resizeDropdown(); 4427 }); 4428 4429 this._containerResultsHandlersBound = true; 4308 4430 }; 4309 4431 … … 4384 4506 }; 4385 4507 4386 // Determine what the parent element is to use for calc iulating the offset4508 // Determine what the parent element is to use for calculating the offset 4387 4509 var $offsetParent = this.$dropdownParent; 4388 4510 4389 // For statically posit oned elements, we need to get the element4511 // For statically positioned elements, we need to get the element 4390 4512 // that is determining the offset 4391 4513 if ($offsetParent.css('position') === 'static') { … … 4393 4515 } 4394 4516 4395 var parentOffset = $offsetParent.offset(); 4517 var parentOffset = { 4518 top: 0, 4519 left: 0 4520 }; 4521 4522 if ( 4523 $.contains(document.body, $offsetParent[0]) || 4524 $offsetParent[0].isConnected 4525 ) { 4526 parentOffset = $offsetParent.offset(); 4527 } 4396 4528 4397 4529 css.top -= parentOffset.top; … … 4563 4695 4564 4696 // Don't close if the control key is being held 4565 if (originalEvent && originalEvent.ctrlKey) {4697 if (originalEvent && (originalEvent.ctrlKey || originalEvent.metaKey)) { 4566 4698 return; 4567 4699 } … … 4617 4749 searching: function () { 4618 4750 return 'Searching…'; 4751 }, 4752 removeAllItems: function () { 4753 return 'Remove all items'; 4619 4754 } 4620 4755 }; … … 4855 4990 } 4856 4991 4857 if (typeof options.language === 'string') { 4858 // Check if the language is specified with a region 4859 if (options.language.indexOf('-') > 0) { 4860 // Extract the region information if it is included 4861 var languageParts = options.language.split('-'); 4862 var baseLanguage = languageParts[0]; 4863 4864 options.language = [options.language, baseLanguage]; 4865 } else { 4866 options.language = [options.language]; 4867 } 4868 } 4869 4870 if ($.isArray(options.language)) { 4871 var languages = new Translation(); 4872 options.language.push('en'); 4873 4874 var languageNames = options.language; 4875 4876 for (var l = 0; l < languageNames.length; l++) { 4877 var name = languageNames[l]; 4878 var language = {}; 4879 4880 try { 4881 // Try to load it with the original name 4882 language = Translation.loadPath(name); 4883 } catch (e) { 4884 try { 4885 // If we couldn't load it, check if it wasn't the full path 4886 name = this.defaults.amdLanguageBase + name; 4887 language = Translation.loadPath(name); 4888 } catch (ex) { 4889 // The translation could not be loaded at all. Sometimes this is 4890 // because of a configuration problem, other times this can be 4891 // because of how Select2 helps load all possible translation files. 4892 if (options.debug && window.console && console.warn) { 4893 console.warn( 4894 'Select2: The language file for "' + name + '" could not be ' + 4895 'automatically loaded. A fallback will be used instead.' 4896 ); 4897 } 4898 4899 continue; 4900 } 4901 } 4902 4903 languages.extend(language); 4904 } 4905 4906 options.translations = languages; 4907 } else { 4908 var baseTranslation = Translation.loadPath( 4909 this.defaults.amdLanguageBase + 'en' 4910 ); 4911 var customTranslation = new Translation(options.language); 4912 4913 customTranslation.extend(baseTranslation); 4914 4915 options.translations = customTranslation; 4916 } 4992 // If the defaults were not previously applied from an element, it is 4993 // possible for the language option to have not been resolved 4994 options.language = this._resolveLanguage(options.language); 4995 4996 // Always fall back to English since it will always be complete 4997 options.language.push('en'); 4998 4999 var uniqueLanguages = []; 5000 5001 for (var l = 0; l < options.language.length; l++) { 5002 var language = options.language[l]; 5003 5004 if (uniqueLanguages.indexOf(language) === -1) { 5005 uniqueLanguages.push(language); 5006 } 5007 } 5008 5009 options.language = uniqueLanguages; 5010 5011 options.translations = this._processTranslations( 5012 options.language, 5013 options.debug 5014 ); 4917 5015 4918 5016 return options; … … 4981 5079 dropdownAutoWidth: false, 4982 5080 escapeMarkup: Utils.escapeMarkup, 4983 language: EnglishTranslation,5081 language: {}, 4984 5082 matcher: matcher, 4985 5083 minimumInputLength: 0, … … 4988 5086 minimumResultsForSearch: 0, 4989 5087 selectOnClose: false, 5088 scrollAfterSelect: false, 4990 5089 sorter: function (data) { 4991 5090 return data; … … 5002 5101 }; 5003 5102 5103 Defaults.prototype.applyFromElement = function (options, $element) { 5104 var optionLanguage = options.language; 5105 var defaultLanguage = this.defaults.language; 5106 var elementLanguage = $element.prop('lang'); 5107 var parentLanguage = $element.closest('[lang]').prop('lang'); 5108 5109 var languages = Array.prototype.concat.call( 5110 this._resolveLanguage(elementLanguage), 5111 this._resolveLanguage(optionLanguage), 5112 this._resolveLanguage(defaultLanguage), 5113 this._resolveLanguage(parentLanguage) 5114 ); 5115 5116 options.language = languages; 5117 5118 return options; 5119 }; 5120 5121 Defaults.prototype._resolveLanguage = function (language) { 5122 if (!language) { 5123 return []; 5124 } 5125 5126 if ($.isEmptyObject(language)) { 5127 return []; 5128 } 5129 5130 if ($.isPlainObject(language)) { 5131 return [language]; 5132 } 5133 5134 var languages; 5135 5136 if (!$.isArray(language)) { 5137 languages = [language]; 5138 } else { 5139 languages = language; 5140 } 5141 5142 var resolvedLanguages = []; 5143 5144 for (var l = 0; l < languages.length; l++) { 5145 resolvedLanguages.push(languages[l]); 5146 5147 if (typeof languages[l] === 'string' && languages[l].indexOf('-') > 0) { 5148 // Extract the region information if it is included 5149 var languageParts = languages[l].split('-'); 5150 var baseLanguage = languageParts[0]; 5151 5152 resolvedLanguages.push(baseLanguage); 5153 } 5154 } 5155 5156 return resolvedLanguages; 5157 }; 5158 5159 Defaults.prototype._processTranslations = function (languages, debug) { 5160 var translations = new Translation(); 5161 5162 for (var l = 0; l < languages.length; l++) { 5163 var languageData = new Translation(); 5164 5165 var language = languages[l]; 5166 5167 if (typeof language === 'string') { 5168 try { 5169 // Try to load it with the original name 5170 languageData = Translation.loadPath(language); 5171 } catch (e) { 5172 try { 5173 // If we couldn't load it, check if it wasn't the full path 5174 language = this.defaults.amdLanguageBase + language; 5175 languageData = Translation.loadPath(language); 5176 } catch (ex) { 5177 // The translation could not be loaded at all. Sometimes this is 5178 // because of a configuration problem, other times this can be 5179 // because of how Select2 helps load all possible translation files 5180 if (debug && window.console && console.warn) { 5181 console.warn( 5182 'Select2: The language file for "' + language + '" could ' + 5183 'not be automatically loaded. A fallback will be used instead.' 5184 ); 5185 } 5186 } 5187 } 5188 } else if ($.isPlainObject(language)) { 5189 languageData = new Translation(language); 5190 } else { 5191 languageData = language; 5192 } 5193 5194 translations.extend(languageData); 5195 } 5196 5197 return translations; 5198 }; 5199 5004 5200 Defaults.prototype.set = function (key, value) { 5005 5201 var camelKey = $.camelCase(key); … … 5031 5227 } 5032 5228 5229 if ($element != null) { 5230 this.options = Defaults.applyFromElement(this.options, $element); 5231 } 5232 5033 5233 this.options = Defaults.apply(this.options); 5034 5234 … … 5052 5252 if (this.options.disabled == null) { 5053 5253 this.options.disabled = $e.prop('disabled'); 5054 }5055 5056 if (this.options.language == null) {5057 if ($e.prop('lang')) {5058 this.options.language = $e.prop('lang').toLowerCase();5059 } else if ($e.closest('[lang]').prop('lang')) {5060 this.options.language = $e.closest('[lang]').prop('lang');5061 }5062 5254 } 5063 5255 … … 5099 5291 $e.attr('ajax--url', Utils.GetData($e[0], 'ajaxUrl')); 5100 5292 Utils.StoreData($e[0], 'ajax-Url', Utils.GetData($e[0], 'ajaxUrl')); 5101 5102 5293 } 5103 5294 5104 5295 var dataset = {}; 5296 5297 function upperCaseLetter(_, letter) { 5298 return letter.toUpperCase(); 5299 } 5300 5301 // Pre-load all of the attributes which are prefixed with `data-` 5302 for (var attr = 0; attr < $e[0].attributes.length; attr++) { 5303 var attributeName = $e[0].attributes[attr].name; 5304 var prefix = 'data-'; 5305 5306 if (attributeName.substr(0, prefix.length) == prefix) { 5307 // Get the contents of the attribute after `data-` 5308 var dataName = attributeName.substring(prefix.length); 5309 5310 // Get the data contents from the consistent source 5311 // This is more than likely the jQuery data helper 5312 var dataValue = Utils.GetData($e[0], dataName); 5313 5314 // camelCase the attribute name to match the spec 5315 var camelDataName = dataName.replace(/-([a-z])/g, upperCaseLetter); 5316 5317 // Store the data attribute contents into the dataset since 5318 dataset[camelDataName] = dataValue; 5319 } 5320 } 5105 5321 5106 5322 // Prefer the element's `dataset` attribute if it exists 5107 5323 // jQuery 1.x does not correctly handle data attributes with multiple dashes 5108 5324 if ($.fn.jquery && $.fn.jquery.substr(0, 2) == '1.' && $e[0].dataset) { 5109 dataset = $.extend(true, {}, $e[0].dataset, Utils.GetData($e[0])); 5110 } else { 5111 dataset = Utils.GetData($e[0]); 5112 } 5113 5114 var data = $.extend(true, {}, dataset); 5325 dataset = $.extend(true, {}, $e[0].dataset, dataset); 5326 } 5327 5328 // Prefer our internal data cache if it exists 5329 var data = $.extend(true, {}, Utils.GetData($e[0]), dataset); 5115 5330 5116 5331 data = Utils._convertData(data); … … 5306 5521 } 5307 5522 5523 if (method == 'computedstyle') { 5524 var computedStyle = window.getComputedStyle($element[0]); 5525 5526 return computedStyle.width; 5527 } 5528 5308 5529 return method; 5309 5530 }; … … 5346 5567 if (observer != null) { 5347 5568 this._observer = new observer(function (mutations) { 5348 $.each(mutations, self._syncA);5349 $.each(mutations, self._syncS);5569 self._syncA(); 5570 self._syncS(null, mutations); 5350 5571 }); 5351 5572 this._observer.observe(this.$element[0], { … … 5469 5690 if (key === KEYS.ESC || key === KEYS.TAB || 5470 5691 (key === KEYS.UP && evt.altKey)) { 5471 self.close( );5692 self.close(evt); 5472 5693 5473 5694 evt.preventDefault(); … … 5503 5724 this.options.set('disabled', this.$element.prop('disabled')); 5504 5725 5505 if (this. options.get('disabled')) {5726 if (this.isDisabled()) { 5506 5727 if (this.isOpen()) { 5507 5728 this.close(); … … 5514 5735 }; 5515 5736 5516 Select2.prototype._ syncSubtree= function (evt, mutations) {5737 Select2.prototype._isChangeMutation = function (evt, mutations) { 5517 5738 var changed = false; 5518 5739 var self = this; … … 5542 5763 } else if (mutations.removedNodes && mutations.removedNodes.length > 0) { 5543 5764 changed = true; 5544 } 5765 } else if ($.isArray(mutations)) { 5766 $.each(mutations, function(evt, mutation) { 5767 if (self._isChangeMutation(evt, mutation)) { 5768 // We've found a change mutation. 5769 // Let's escape from the loop and continue 5770 changed = true; 5771 return false; 5772 } 5773 }); 5774 } 5775 return changed; 5776 }; 5777 5778 Select2.prototype._syncSubtree = function (evt, mutations) { 5779 var changed = this._isChangeMutation(evt, mutations); 5780 var self = this; 5545 5781 5546 5782 // Only re-pull the data if we think there is a change … … 5593 5829 5594 5830 Select2.prototype.toggleDropdown = function () { 5595 if (this. options.get('disabled')) {5831 if (this.isDisabled()) { 5596 5832 return; 5597 5833 } … … 5609 5845 } 5610 5846 5847 if (this.isDisabled()) { 5848 return; 5849 } 5850 5611 5851 this.trigger('query', {}); 5612 5852 }; 5613 5853 5614 Select2.prototype.close = function ( ) {5854 Select2.prototype.close = function (evt) { 5615 5855 if (!this.isOpen()) { 5616 5856 return; 5617 5857 } 5618 5858 5619 this.trigger('close', {}); 5859 this.trigger('close', { originalEvent : evt }); 5860 }; 5861 5862 /** 5863 * Helper method to abstract the "enabled" (not "disabled") state of this 5864 * object. 5865 * 5866 * @return {true} if the instance is not disabled. 5867 * @return {false} if the instance is disabled. 5868 */ 5869 Select2.prototype.isEnabled = function () { 5870 return !this.isDisabled(); 5871 }; 5872 5873 /** 5874 * Helper method to abstract the "disabled" state of this object. 5875 * 5876 * @return {true} if the disabled option is true. 5877 * @return {false} if the disabled option is false. 5878 */ 5879 Select2.prototype.isDisabled = function () { 5880 return this.options.get('disabled'); 5620 5881 }; 5621 5882 … … 5694 5955 } 5695 5956 5696 this.$element.val(newVal).trigger(' change');5957 this.$element.val(newVal).trigger('input').trigger('change'); 5697 5958 }; 5698 5959 -
fluida/1.8.6/cryout/js/select2.min.js
r135857 r144713 1 /*! Select2 4.0.6-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return v.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o=b&&b.split("/"),p=t.map,q=p&&p["*"]||{};if(a){for(a=a.split("/"),g=a.length-1,t.nodeIdCompat&&x.test(a[g])&&(a[g]=a[g].replace(x,"")),"."===a[0].charAt(0)&&o&&(n=o.slice(0,o.length-1),a=n.concat(a)),k=0;k<a.length;k++)if("."===(m=a[k]))a.splice(k,1),k-=1;else if(".."===m){if(0===k||1===k&&".."===a[2]||".."===a[k-1])continue;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}if((o||q)&&p){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),o)for(l=o.length;l>0;l-=1)if((e=p[o.slice(0,l).join("/")])&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&q&&q[d]&&(i=q[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=w.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),o.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){r[a]=b}}function j(a){if(e(s,a)){var c=s[a];delete s[a],u[a]=!0,n.apply(b,c)}if(!e(r,a)&&!e(u,a))throw new Error("No "+a);return r[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return a?k(a):[]}function m(a){return function(){return t&&t.config&&t.config[a]||{}}}var n,o,p,q,r={},s={},t={},u={},v=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;p=function(a,b){var c,d=k(a),e=d[0],g=b[1];return a=d[1],e&&(e=f(e,g),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(g)):f(a,g):(a=f(a,g),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},q={require:function(a){return g(a)},exports:function(a){var b=r[a];return void 0!==b?b:r[a]={}},module:function(a){return{id:a,uri:"",exports:r[a],config:m(a)}}},n=function(a,c,d,f){var h,k,m,n,o,t,v,w=[],x=typeof d;if(f=f||a,t=l(f),"undefined"===x||"function"===x){for(c=!c.length&&d.length?["require","exports","module"]:c,o=0;o<c.length;o+=1)if(n=p(c[o],t),"require"===(k=n.f))w[o]=q.require(a);else if("exports"===k)w[o]=q.exports(a),v=!0;else if("module"===k)h=w[o]=q.module(a);else if(e(r,k)||e(s,k)||e(u,k))w[o]=j(k);else{if(!n.p)throw new Error(a+" missing "+k);n.p.load(n.n,g(f,!0),i(k),{}),w[o]=r[k]}m=d?d.apply(r[a],w):void 0,a&&(h&&h.exports!==b&&h.exports!==r[a]?r[a]=h.exports:m===b&&v||(r[a]=m))}else a&&(r[a]=d)},a=c=o=function(a,c,d,e,f){if("string"==typeof a)return q[a]?q[a](c):j(p(a,l(c)).f);if(!a.splice){if(t=a,t.deps&&o(t.deps,t.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?n(b,a,c,d):setTimeout(function(){n(b,a,c,d)},4),o},o.config=function(a){return o(a)},a._defined=r,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(r,a)||e(s,a)||(s[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){"function"==typeof b[d]&&("constructor"!==d&&c.push(d))}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){return Array.prototype.unshift.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._type=a,a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;c<d;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;c<a;c++){b+=Math.floor(36*Math.random()).toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return(e!==f||"hidden"!==f&&"visible"!==f)&&("scroll"===e||"scroll"===f||(d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth))},c.escapeMarkup=function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c.__cache={};var e=0;return c.GetUniqueElementId=function(a){var b=a.getAttribute("data-select2-id");return null==b&&(a.id?(b=a.id,a.setAttribute("data-select2-id",b)):(a.setAttribute("data-select2-id",++e),b=e.toString())),b},c.StoreData=function(a,b,d){var e=c.GetUniqueElementId(a);c.__cache[e]||(c.__cache[e]={}),c.__cache[e][b]=d},c.GetData=function(b,d){var e=c.GetUniqueElementId(b);return d?c.__cache[e]&&null!=c.__cache[e][d]?c.__cache[e][d]:a(b).data(d):c.__cache[e]},c.RemoveData=function(a){var b=c.GetUniqueElementId(a);null!=c.__cache[b]&&delete c.__cache[b]},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){b.find(".select2-results").append(a)},c.prototype.sort=function(a){return this.options.get("sorter")(a)},c.prototype.highlightFirstItem=function(){var a=this.$results.find(".select2-results__option[aria-selected]"),b=a.filter("[aria-selected=true]");b.length>0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var c=this;this.data.current(function(d){var e=a.map(d,function(a){return a.id.toString()});c.$results.find(".select2-results__option[aria-selected]").each(function(){var c=a(this),d=b.GetData(this,"data"),f=""+d.id;null!=d.element&&d.element.selected||null==d.element&&a.inArray(f,e)>-1?c.attr("aria-selected","true"):c.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(c){var d=document.createElement("li");d.className="select2-results__option";var e={role:"treeitem","aria-selected":"false"};c.disabled&&(delete e["aria-selected"],e["aria-disabled"]="true"),null==c.id&&delete e["aria-selected"],null!=c._resultId&&(d.id=c._resultId),c.title&&(d.title=c.title),c.children&&(e.role="group",e["aria-label"]=c.text,delete e["aria-selected"]);for(var f in e){var g=e[f];d.setAttribute(f,g)}if(c.children){var h=a(d),i=document.createElement("strong");i.className="select2-results__group";a(i);this.template(c,i);for(var j=[],k=0;k<c.children.length;k++){var l=c.children[k],m=this.option(l);j.push(m)}var n=a("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});n.append(j),h.append(i),h.append(n)}else this.template(c,d);return b.StoreData(d,"data",c),d},c.prototype.bind=function(c,d){var e=this,f=c.id+"-results";this.$results.attr("id",f),c.on("results:all",function(a){e.clear(),e.append(a.data),c.isOpen()&&(e.setClasses(),e.highlightFirstItem())}),c.on("results:append",function(a){e.append(a.data),c.isOpen()&&e.setClasses()}),c.on("query",function(a){e.hideMessages(),e.showLoading(a)}),c.on("select",function(){c.isOpen()&&(e.setClasses(),e.highlightFirstItem())}),c.on("unselect",function(){c.isOpen()&&(e.setClasses(),e.highlightFirstItem())}),c.on("open",function(){e.$results.attr("aria-expanded","true"),e.$results.attr("aria-hidden","false"),e.setClasses(),e.ensureHighlightVisible()}),c.on("close",function(){e.$results.attr("aria-expanded","false"),e.$results.attr("aria-hidden","true"),e.$results.removeAttr("aria-activedescendant")}),c.on("results:toggle",function(){var a=e.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),c.on("results:select",function(){var a=e.getHighlightedResults();if(0!==a.length){var c=b.GetData(a[0],"data");"true"==a.attr("aria-selected")?e.trigger("close",{}):e.trigger("select",{data:c})}}),c.on("results:previous",function(){var a=e.getHighlightedResults(),b=e.$results.find("[aria-selected]"),c=b.index(a);if(!(c<=0)){var d=c-1;0===a.length&&(d=0);var f=b.eq(d);f.trigger("mouseenter");var g=e.$results.offset().top,h=f.offset().top,i=e.$results.scrollTop()+(h-g);0===d?e.$results.scrollTop(0):h-g<0&&e.$results.scrollTop(i)}}),c.on("results:next",function(){var a=e.getHighlightedResults(),b=e.$results.find("[aria-selected]"),c=b.index(a),d=c+1;if(!(d>=b.length)){var f=b.eq(d);f.trigger("mouseenter");var g=e.$results.offset().top+e.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=e.$results.scrollTop()+h-g;0===d?e.$results.scrollTop(0):h>g&&e.$results.scrollTop(i)}}),c.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),c.on("results:message",function(a){e.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=e.$results.scrollTop(),c=e.$results.get(0).scrollHeight-b+a.deltaY,d=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=e.$results.height();d?(e.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(e.$results.scrollTop(e.$results.get(0).scrollHeight-e.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(c){var d=a(this),f=b.GetData(this,"data");if("true"===d.attr("aria-selected"))return void(e.options.get("multiple")?e.trigger("unselect",{originalEvent:c,data:f}):e.trigger("close",{}));e.trigger("select",{originalEvent:c,data:f})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(c){var d=b.GetData(this,"data");e.getHighlightedResults().removeClass("select2-results__option--highlighted"),e.trigger("results:focus",{data:d,element:a(this)})})},c.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),c<=2?this.$results.scrollTop(0):(g>this.$results.outerHeight()||g<0)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var c=a('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=b.GetData(this.$element[0],"old-tabindex")?this._tabindex=b.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),c.attr("title",this.$element.attr("title")),c.attr("tabindex",this._tabindex),this.$selection=c,c},d.prototype.bind=function(a,b){var d=this,e=(a.id,a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),window.setTimeout(function(){d.$selection.focus()},0),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(c){a(document.body).on("mousedown.select2."+c.id,function(c){var d=a(c.target),e=d.closest(".select2");a(".select2.select2-container--open").each(function(){a(this),this!=e[0]&&b.GetData(this,"element").select2("close")})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){b.find(".selection").append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()})},e.prototype.clear=function(){var a=this.$selection.find(".select2-selection__rendered");a.empty(),a.removeAttr("title")},e.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.attr("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(b,e){var f=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){f.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!f.options.get("disabled")){var d=a(this),e=d.parent(),g=c.GetData(e[0],"data");f.trigger("unselect",{originalEvent:b,data:g})}})},d.prototype.clear=function(){var a=this.$selection.find(".select2-selection__rendered");a.empty(),a.removeAttr("title")},d.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},d.prototype.selectionContainer=function(){return a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.attr("title",e.title||e.text),c.StoreData(f[0],"data",e),b.push(f)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id;if(b.length>1||c)return a.call(this,b);this.clear();var d=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(d)},b}),b.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(a,b,c){function d(){}return d.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},d.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var d=this.$selection.find(".select2-selection__clear");if(0!==d.length){b.stopPropagation();var e=c.GetData(d[0],"data"),f=this.$element.val();this.$element.val(this.placeholder.id);var g={data:e};if(this.trigger("clear",g),g.prevented)return void this.$element.val(f);for(var h=0;h<e.length;h++)if(g={data:e[h]},this.trigger("unselect",g),g.prevented)return void this.$element.val(f);this.$element.trigger("change"),this.trigger("toggle",{})}}},d.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||c.which!=b.DELETE&&c.which!=b.BACKSPACE||this._handleClear(c)},d.prototype.update=function(b,d){if(b.call(this,d),!(this.$selection.find(".select2-selection__placeholder").length>0||0===d.length)){var e=a('<span class="select2-selection__clear">×</span>');c.StoreData(e[0],"data",d),this.$selection.find(".select2-selection__rendered").prepend(e)}},d}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,d,e){var f=this;a.call(this,d,e),d.on("open",function(){f.$search.trigger("focus")}),d.on("close",function(){f.$search.val(""),f.$search.removeAttr("aria-activedescendant"),f.$search.trigger("focus")}),d.on("enable",function(){f.$search.prop("disabled",!1),f._transferTabIndex()}),d.on("disable",function(){f.$search.prop("disabled",!0)}),d.on("focus",function(a){f.$search.trigger("focus")}),d.on("results:focus",function(a){f.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){f.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){f._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){if(a.stopPropagation(),f.trigger("keypress",a),f._keyUpPrevented=a.isDefaultPrevented(),a.which===c.BACKSPACE&&""===f.$search.val()){var d=f.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var e=b.GetData(d[0],"data");f.searchRemoveChoice(e),a.preventDefault()}}});var g=document.documentMode,h=g&&g<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){if(h)return void f.$selection.off("input.search input.searchcheck");f.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(h&&"input"===a.type)return void f.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&f.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;if(this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c){this.$element.find("[data-select2-tag]").length?this.$element.focus():this.$search.focus()}},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{a=.75*(this.$search.val().length+1)+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],g=["opening","closing","selecting","unselecting","clearing"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),null!=c.id?d+="-"+c.id.toString():d+="-"+a.generateChars(4),d},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple")){if(a.selected=!1,c(a.element).is("option"))return a.element.selected=!1,void this.$element.trigger("change");this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})}},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){b.RemoveData(this)})},d.prototype.query=function(a,b){var d=[],e=this;this.$element.children().each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var d;a.children?(d=document.createElement("optgroup"),d.label=a.text):(d=document.createElement("option"),void 0!==d.textContent?d.textContent=a.text:d.innerText=a.text),void 0!==a.id&&(d.value=a.id),a.disabled&&(d.disabled=!0),a.selected&&(d.selected=!0),a.title&&(d.title=a.title);var e=c(d),f=this._normalizeItem(a);return f.element=d,b.StoreData(d,"data",f),e},d.prototype.item=function(a){var d={};if(null!=(d=b.GetData(a[0],"data")))return d;if(a.is("option"))d={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){d={text:a.prop("label"),children:[],title:a.prop("title")};for(var e=a.children("option"),f=[],g=0;g<e.length;g++){var h=c(e[g]),i=this.item(h);f.push(i)}d.children=f}return d=this._normalizeItem(d),d.element=a[0],b.StoreData(a[0],"data",d),d},d.prototype._normalizeItem=function(a){a!==Object(a)&&(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){return this.options.get("matcher")(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){"status"in d&&(0===d.status||"0"===d.status)||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0);if((i.text||"").toUpperCase()===(b.term||"").toUpperCase()||j)return!f&&(a.data=g,void c(a))}if(f)return!0;var k=e.createTag(b);if(null!=k){var l=e.option(k);l.attr("data-select2-tag",!0),e.addOptions([l]),e.insertTag(g,k)}a.results=g,c(a)}var e=this;if(this._removeOldTags(),null==b.term||null!=b.page)return void a.call(this,b,c);a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){this._lastTag;this.$element.find("option[data-select2-tag]").each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(b,c,d){function e(b){var c=g._normalizeItem(b);if(!g.$element.find("option").filter(function(){return a(this).val()===c.id}).length){var d=g.option(c);d.attr("data-select2-tag",!0),g._removeOldTags(),g.addOptions([d])}f(c)}function f(a){g.trigger("select",{data:a})}var g=this;c.term=c.term||"";var h=this.tokenizer(c,this.options,e);h.term!==c.term&&(this.$search.length&&(this.$search.val(h.term),this.$search.focus()),c.term=h.term),b.call(this,c,d)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);null!=m?(e(m),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){if(b.term=b.term||"",b.term.length<this.minimumInputLength)return void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){if(b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength)return void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;if(d.maximumSelectionLength>0&&f>=d.maximumSelectionLength)return void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}});a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val(""),e.$search.blur()}),c.on("focus",function(){c.isOpen()||e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){e.showSearch(a)?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){e.$results.offset().top+e.$results.outerHeight(!1)+50>=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1)&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){b.StoreData(this,"select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(c){var d=b.GetData(this,"select2-scroll-position");a(this).scrollTop(d.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id;this.$container.parents().filter(b.hasScroll).off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return!(a(c.data.results)<this.minimumResultsForSearch)&&b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",["../utils"],function(a){function b(){}return b.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},b.prototype._handleSelectOnClose=function(b,c){if(c&&null!=c.originalSelect2Event){var d=c.originalSelect2Event;if("select"===d._type||"unselect"===d._type)return}var e=this.getHighlightedResults();if(!(e.length<1)){var f=a.GetData(e[0],"data");null!=f.element&&f.element.selected||null==f.element&&f.selected||this.trigger("select",{data:f})}},b}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){return"Please enter "+(a.minimum-a.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}return D.prototype.apply=function(l){if(l=a.extend(!0,{},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),null==l.tokenSeparators&&null==l.tokenizer||(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(a){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(a){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var O=k.loadPath(this.defaults.amdLanguageBase+"en"),P=new k(l.language);P.extend(O),l.translations=P}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){null==c(d,e.children[g])&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var h=b(e.text).toUpperCase(),i=b(d.term).toUpperCase();return h.indexOf(i)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(!0,this.defaults,f)},new D}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),d.GetData(a[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),d.StoreData(a[0],"data",d.GetData(a[0],"select2Tags")),d.StoreData(a[0],"tags",!0)),d.GetData(a[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",d.GetData(a[0],"ajaxUrl")),d.StoreData(a[0],"ajax-Url",d.GetData(a[0],"ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,d.GetData(a[0])):d.GetData(a[0]);var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,d){null!=c.GetData(a[0],"select2")&&c.GetData(a[0],"select2").destroy(),this.$element=a,this.id=this._generateId(a),d=d||{},this.options=new b(d,a),e.__super__.constructor.call(this);var f=a.attr("tabindex")||0;c.StoreData(a[0],"old-tabindex",f),a.attr("tabindex","-1");var g=this.options.get("dataAdapter");this.dataAdapter=new g(a,this.options);var h=this.render();this._placeContainer(h);var i=this.options.get("selectionAdapter");this.selection=new i(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,h);var j=this.options.get("dropdownAdapter");this.dropdown=new j(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,h);var k=this.options.get("resultsAdapter");this.results=new k(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){l.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),c.StoreData(a[0],"select2",this),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return e<=0?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;h<i;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e<b.addedNodes.length;e++){var f=b.addedNodes[e];f.selected&&(c=!0)}else b.removedNodes&&b.removedNodes.length>0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=a&&0!==a.length||(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",c.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),c.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),c.StoreData(b[0],"element",this.$element),b},e}),b.define("jquery-mousewheel",["jquery"],function(a){return a}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(a,b,c,d,e){if(null==a.fn.select2){var f=["open","close","destroy"];a.fn.select2=function(b){if("object"==typeof(b=b||{}))return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,g=Array.prototype.slice.call(arguments,1);return this.each(function(){var a=e.GetData(this,"select2");null==a&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=a[b].apply(a,g)}),a.inArray(b,f)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c}); 1 /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,b;function w(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(r=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if(i=(i=f[h.slice(0,d).join("/")])&&i[r]){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},i=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,r=c(e),i=r[0],o=t[1];return e=r[1],i&&(n=D(i=l(i,o))),i?e=n&&n.normalize?n.normalize(e,function(t){return function(e){return l(e,t)}}(o)):l(e,o):(i=(r=c(e=l(e,o)))[0],e=r[1],i&&(n=D(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},o=function(e,t,n,r){var i,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(r=r||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)i=d[l]=g.module(e);else if(w(m,o)||w(v,o)||w(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(r,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(i&&i.exports!==h&&i.exports!==m[e]?m[e]=i.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,r,i){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=r,r=i),r?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=r),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var i={};function u(e){var t=e.prototype,n=[];for(var r in t){"function"==typeof t[r]&&"constructor"!==r&&n.push(r)}return n}i.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i.Decorate=function(r,i){var e=u(i),t=u(r);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=r.prototype.constructor;0<t&&(e.call(arguments,r.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=r.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=r.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},i.Observable=e,i.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=o(t),r=t.style.overflowX,i=t.style.overflowY;return(r!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===r||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var t=this;this.data.current(function(e){var r=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,r)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},r.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var i in(null!=e.element&&r.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();r?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.isDisabled()){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.selectionContainer(),o=this.display(r,i);i.append(o);var s=r.title||r.text;s&&i.attr("title",s),l.StoreData(i[0],"data",r),t.push(i)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,a){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var s=0;s<r.length;s++)if(o={data:r[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),r=i('<span class="select2-selection__clear" title="'+n()+'">×</span>');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");r.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&r.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var r=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,i)){t=t||{};var n=s.Event("select2:"+e,{params:t});r.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])},r}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(r){function n(e,t){n.__super__.constructor.call(this)}return r.Extend(n,r.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=r.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+r.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],r=this;this.$element.find(":selected").each(function(){var e=l(this),t=r.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,l(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,l(i.element).is("option"))return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].id;r!==i.id&&-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(r,e){var i=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(r,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),r=this._normalizeItem(e);return r.element=t,a.StoreData(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],i=0;i<n.length;i++){var o=l(n[i]),s=this.item(o);r.push(s)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return f.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),r=n.map(function(){return t.item(g(this)).id}).get(),i=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,r)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}i.push(p)}}return i},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);return r.then(t),r.fail(n),r}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,r){var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),r(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(r))for(var s=0;s<r.length;s++){var a=r[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var r=t.results,i=0;i<r.length;i++){var o=r[i],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=r,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(r,a)}t.results=r,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var r=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t=r._normalizeItem(e);if(!r.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=r.option(t);n.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([n])}!function(e){r.trigger("select",{data:e})}(t)});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,r){for(var i=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,i)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(r(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-s,u=l>i.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=o.GetData(r[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,$,b,w,A,x,D,S,E,C,O,T,q,L,I,j,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=b:null!=e.data?e.dataAdapter=$:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,w)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=E;else{var r=y.Decorate(E,C);e.dropdownAdapter=r}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var i=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var r=c.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&r.children.splice(i,1);return 0<r.children.length?r:e(t,r)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,i=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],r=0;r<t.length;r++)if(n.push(t[r]),"string"==typeof t[r]&&0<t[r].indexOf("-")){var i=t[r].split("-")[0];n.push(i)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,r=0;r<e.length;r++){var i=new s,o=e[r];if("string"==typeof o)try{i=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=c.isPlainObject(o)?new s(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var r=y._convertData(n);c.extend(!0,this.defaults,r)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(r,d,i,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options),t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function r(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,r)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,u,r){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,r)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===r.ESC||t===r.TAB||t===r.UP&&e.altKey?(n.close(e),e.preventDefault()):t===r.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===r.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===r.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===r.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length?n=!0:o.isArray(t)&&o.each(t,function(e,t){if(r._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},d.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),r=this;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-1<i.inArray(t,a)?this:n}}return null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t}); -
fluida/1.8.6/cryout/languages/cryout.pot
r135857 r144713 4 4 "Project-Id-Version: Framework\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 20 19-09-23 12:45+0000\n"6 "POT-Creation-Date: 2021-03-11 19:14+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 16 16 "X-Loco-Version: 2.2.2; wp-5.2.1" 17 17 18 #: cryout/prototypes.php:8 0518 #: cryout/prototypes.php:822 19 19 msgid "Skip to content" 20 msgstr ""21 22 #: cryout/back-compat.php:1523 #, php-format24 msgid ""25 "<strong>%1$s requires at least WordPress version %2$s. Your site is running "26 "version %3$s.</strong><br>The theme will not be able to function on the "27 "curent setup. Please upgrade."28 msgstr ""29 30 #: cryout/back-compat-php.php:1531 #, php-format32 msgid ""33 "<strong>%1$s requires at least PHP version %2$s. Your site is running "34 "version %3$s.</strong><br>The theme will not be able to function correctly "35 "on the curent setup. Please upgrade or change the hosting provider."36 msgstr ""37 38 #: cryout/admin-functions.php:2539 msgid "No update news."40 msgstr ""41 42 #: cryout/admin-functions.php:2943 msgid "Posted on"44 msgstr ""45 46 #: cryout/admin-functions.php:3047 msgid "Read the full post"48 20 msgstr "" 49 21 … … 150 122 151 123 #: cryout/tgmpa-class.php:388 cryout/tgmpa-class.php:2952 124 #| msgid "The following plugin was activated successfully:" 152 125 msgid "The following plugin was activated successfully:" 153 msgstr "" 126 msgid_plural "The following plugins were activated successfully:" 127 msgstr[0] "" 128 msgstr[1] "" 154 129 155 130 #. 1: plugin name. … … 404 379 405 380 #: cryout/tgmpa-class.php:2934 381 #| msgid "No plugins are available to be activated at this time." 382 #| msgid_plural "The following plugins were activated successfully:" 406 383 msgid "No plugins are available to be activated at this time." 407 msgid_plural "The following plugins were activated successfully:" 408 msgstr[0] "" 409 msgstr[1] "" 384 msgstr "" 410 385 411 386 #: cryout/tgmpa-class.php:3158 -
fluida/1.8.6/cryout/prototypes.php
r135857 r144713 295 295 * based on the configured font identifier 296 296 */ 297 function cryout_font_select( $font, $gfont ) { 297 function cryout_font_select( $font, $gfont, $echo = 0 ) { 298 // replace with general font if option is set to inherit 299 if ( preg_match('/inherit/i', $font ) && empty($gfont) ) { 300 $general_fonts = cryout_get_option( array( _CRYOUT_THEME_PREFIX . '_fgeneral', _CRYOUT_THEME_PREFIX . '_fgeneralgoogle' ) ); 301 $font = $general_fonts[ _CRYOUT_THEME_PREFIX . '_fgeneral' ]; 302 $gfont = $general_fonts[ _CRYOUT_THEME_PREFIX . '_fgeneralgoogle' ]; 303 }; 298 304 $font = cryout_clean_gfont( $font ); 305 $output = ''; 299 306 if ( !empty($gfont) ): 300 $fontname = esc_attr( preg_replace( '/[:&].*/', '', preg_replace( '/\+/', ' ', $gfont )) );307 $fontname = preg_replace( '/[:&].*/', '', preg_replace( '/\+/', ' ', $gfont ) ); 301 308 if (preg_match('/:(\d{1,4})/',$gfont,$ms)) $weight = $ms[1]; 302 return "'$fontname'" . ( !empty($weight) ? ";font-weight:$weight": "");309 $output = sprintf( "'%s'", esc_attr( $fontname )) . ( !empty($weight) ? sprintf( "; font-weight: %s", esc_attr( $weight ) ) : ""); 303 310 else: 304 return "$font";311 $output = sprintf( "%s", esc_attr( $font ) ); 305 312 endif; 313 if ($echo) { 314 echo $output; 315 } else { 316 return $output; 317 } 306 318 } // cryout_font_select() 307 319 … … 310 322 */ 311 323 function cryout_gfontclean( $gfont, $weight = '' ) { 312 if (preg_match('/^([\w\s]+):?([\d,]+)?(&a?m?p?;? subset=.*)?$/i', $gfont, $bits)) {324 if (preg_match('/^([\w\s]+):?([\d,]+)?(&a?m?p?;?(subset|display)=.*)?$/i', $gfont, $bits)) { 313 325 // first part is the font name 314 326 if (empty($bits[1])) $bits[1] = ''; 315 327 // second part is the font weight (optional) 316 328 if (empty($bits[2])) $bits[2] = $weight; elseif (!empty($weight)) $bits[2] = $weight . ',' . $bits[2]; 317 // third part is the font subset (optional)329 // third part is the font subset or display mode (optional) 318 330 if (empty($bits[3])) $bits[3] = ''; 331 // clean up duplicate weights 332 $bits[2] = ':' . implode( ',', array_unique( explode( ',', str_replace(':','', $bits[2]) ) ) ); 319 333 return esc_attr( preg_replace( '/\s+/', '+', $bits[1] . $bits[2] . $bits[3]) ); 320 334 } else { … … 469 483 if (!empty($classes)): 470 484 if (is_array($classes)) $classes = implode( ' ', $classes ); 471 echo ' class="' . $classes. '" ';485 echo ' class="' . esc_attr( $classes ) . '" '; 472 486 endif; 473 487 }; // cryout_echo_bgimage() … … 495 509 $images = get_posts( array( 496 510 'fields' => 'ids', 497 'numberposts' => 99 9,511 'numberposts' => 99, 498 512 'order' => 'ASC', 499 513 'orderby' => 'none', … … 765 779 766 780 $output = ' ' . $output; 767 if ($echo) echo $output; 768 else return $output; 781 if ($echo) { 782 echo $output; 783 } else { 784 return $output; 785 } 769 786 770 787 } // cryout_schema_microdata … … 815 832 function cryout_breadcrumbs( 816 833 $separator = '<i class="icon-angle-right"></i>', // separator between crumbs 817 $home = '<i class="icon-homebread"></i>', // text for the 'Home' item818 $showCurrent = 1, // whether to show current post/page title in breadcrumbs819 $before = '<span class="current">', // tag before the current crumb820 $after = '</span>', // tag after the current crumb834 $home = '<i class="icon-homebread"></i>', // text for the 'Home' item 835 $showCurrent = 1, // whether to show current post/page title in breadcrumbs 836 $before = '<span class="current">', // tag before the current crumb 837 $after = '</span>', // tag after the current crumb 821 838 $wrapper_pre = '<div id="breadcrumbs"> <nav id="breadcrumbs-nav" %2$s>', 822 839 $wrapper_post = '</nav></div><!-- breadcrumbs -->', … … 860 877 861 878 // let's begin 862 echo $wrapper_pre; 863 echo $homeLink; 864 echo $separator . ' '; 865 866 if ( is_category() ) { 879 $output = $wrapper_pre . $homeLink . $separator . ' '; 880 881 if ( is_category() ) { 867 882 // category section 868 883 $queried_object = get_queried_object(); 869 884 $cat_parents = $queried_object->category_parent; 870 if ( !empty( $cat_parents ) ) echoget_category_parents( $cat_parents, TRUE, ' ' . $separator . ' ');871 echo $before . $text_archive .' "' . single_cat_title('', false) . '"'. $after;872 } elseif ( is_search() ) {885 if ( !empty( $cat_parents ) ) $output .= get_category_parents( $cat_parents, TRUE, ' ' . $separator . ' '); 886 $output .= $before . sprintf( $text_archive, single_cat_title('', false) ) . $after; 887 } elseif ( is_search() ) { 873 888 // search section 874 echo $before . $text_search .' "' . get_search_query() . '"'. $after;875 } elseif ( is_day() ) {889 $output .= $before . sprintf( $text_search, get_search_query() ) . $after; 890 } elseif ( is_day() ) { 876 891 // daily archive 877 echo'<a href="' . esc_url( get_year_link( get_the_time( 'Y' ) ) ) . '">' . esc_html( get_the_time( 'Y' ) ) . '</a> ' . $separator . ' ';878 echo'<a href="' . esc_url( get_month_link( get_the_time( 'Y' ), get_the_time( 'm' ) ) ) . '">' . esc_html( get_the_time( 'F' ) ) . '</a> ' . $separator . ' ';879 echo$before . esc_html( get_the_time( 'd' ) ) . $after;880 } elseif ( is_month() ) {892 $output .= '<a href="' . esc_url( get_year_link( get_the_time( 'Y' ) ) ) . '">' . esc_html( get_the_time( 'Y' ) ) . '</a> ' . $separator . ' '; 893 $output .= '<a href="' . esc_url( get_month_link( get_the_time( 'Y' ), get_the_time( 'm' ) ) ) . '">' . esc_html( get_the_time( 'F' ) ) . '</a> ' . $separator . ' '; 894 $output .= $before . esc_html( get_the_time( 'd' ) ) . $after; 895 } elseif ( is_month() ) { 881 896 // monthly archive 882 echo'<a href="' . esc_url( get_year_link( get_the_time( 'Y' ) ) ) . '">' . esc_html( get_the_time( 'Y' ) ) . '</a> ' . $separator . ' ';883 echo$before . esc_html( get_the_time( 'F' ) ) . $after;884 } elseif ( is_year() ) {897 $output .= '<a href="' . esc_url( get_year_link( get_the_time( 'Y' ) ) ) . '">' . esc_html( get_the_time( 'Y' ) ) . '</a> ' . $separator . ' '; 898 $output .= $before . esc_html( get_the_time( 'F' ) ) . $after; 899 } elseif ( is_year() ) { 885 900 // yearly archive 886 echo$before . esc_html( get_the_time( 'Y' ) ) . $after;887 } elseif ( is_single() && ! is_attachment() ) {901 $output .= $before . esc_html( get_the_time( 'Y' ) ) . $after; 902 } elseif ( is_single() && ! is_attachment() ) { 888 903 // single post 889 904 if ( get_post_type() != 'post' ) { 890 905 $post_type = get_post_type_object( get_post_type() ); 891 906 $slug = $post_type->rewrite; 892 echo'<a href="' . $homeUrl . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a>';893 if ( $showCurrent ) echo ' ' . $separator . ' ' . $before . esc_html( get_the_title() ) . $after;907 $output .= '<a href="' . $homeUrl . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a>'; 908 if ( $showCurrent ) $output .= ' ' . $separator . ' ' . $before . esc_html( the_title_attribute( 'echo=0' ) ) . $after; 894 909 } else { 895 910 $cat = get_the_category(); if ( isset( $cat[0] ) ) { $cat = $cat[0]; } else { $cat = false; } 896 911 if ( $cat ) { $cats = get_category_parents( $cat, TRUE, ' ' . $separator . ' '); } else { $cats = false; } 897 912 if ( ! $showCurrent && $cats ) $cats = preg_replace( "#^(.+)\s$separator\s$#", "$1", $cats ); 898 echo$cats;899 if ( $showCurrent ) echo $before . esc_html( get_the_title() ) . $after;900 } 901 } elseif ( ! is_single() && ! is_page() && get_post_type() != 'post' && ! is_404() ) {913 $output .= $cats; 914 if ( $showCurrent ) $output .= $before . esc_html( the_title_attribute( 'echo=0' ) ) . $after; 915 } 916 } elseif ( ! is_single() && ! is_page() && get_post_type() != 'post' && ! is_404() ) { 902 917 // some other single item 903 918 $post_type = get_post_type_object( get_post_type() ); 904 if (!empty($post_type->labels-> singular_name)) echo $before . $post_type->labels->singular_name . $after;919 if (!empty($post_type->labels->name)) $output .= $before . $post_type->labels->name . $after; 905 920 } elseif ( is_attachment() ) { 906 921 // attachment section 907 922 $parent = get_post( $post->post_parent ); 908 923 $cat = get_the_category( $parent->ID ); if ( isset( $cat[0] ) ) { $cat = $cat[0]; } else { $cat = false; } 909 if ( $cat ) echoget_category_parents( $cat, TRUE, ' ' . $separator . ' ');910 echo'<a href="' . esc_url( get_permalink( $parent ) ). '">' . $parent->post_title . '</a>';911 if ( $showCurrent ) echo ' ' . $separator . ' ' . $before . esc_html( get_the_title() ) . $after;912 } elseif ( is_page() && ! $post->post_parent ) {924 if ( $cat ) $output .= get_category_parents( $cat, TRUE, ' ' . $separator . ' '); 925 $output .= '<a href="' . esc_url( get_permalink( $parent ) ). '">' . $parent->post_title . '</a>'; 926 if ( $showCurrent ) $output .= ' ' . $separator . ' ' . $before . esc_html( the_title_attribute( 'echo=0' ) ) . $after; 927 } elseif ( is_page() && ! $post->post_parent ) { 913 928 // parent page 914 if ( $showCurrent ) echo $before . esc_html( get_the_title() ) . $after;915 } elseif ( is_page() && $post->post_parent ) {929 if ( $showCurrent ) $output .= $before . esc_html( the_title_attribute( 'echo=0' ) ) . $after; 930 } elseif ( is_page() && $post->post_parent ) { 916 931 // child page 917 932 $parent_id = $post->post_parent; … … 919 934 while ( $parent_id ) { 920 935 $page = get_page( $parent_id ); 921 $breadcrumbs[] = '<a href="' . esc_url( get_permalink( $page->ID ) ) . '">' . esc_html( get_the_title( $page->ID) ) . '</a>';936 $breadcrumbs[] = '<a href="' . esc_url( get_permalink( $page->ID ) ) . '">' . esc_html( the_title_attribute( array( 'echo' => 0, 'post' => get_post( $parent_id ) ) ) ) . '</a>'; 922 937 $parent_id = $page->post_parent; 923 938 } 924 939 $breadcrumbs = array_reverse( $breadcrumbs ); 925 940 for ( $i = 0; $i < count( $breadcrumbs ); $i++ ) { 926 echo$breadcrumbs[$i];927 if ( $i != count( $breadcrumbs ) - 1 ) echo' ' . $separator . ' ';928 } 929 if ( $showCurrent ) echo ' ' . $separator . ' ' . $before . esc_html( get_the_title() ) . $after;930 } elseif ( is_tag() ) {941 $output .= $breadcrumbs[$i]; 942 if ( $i != count( $breadcrumbs ) - 1 ) $output .= ' ' . $separator . ' '; 943 } 944 if ( $showCurrent ) $output .= ' ' . $separator . ' ' . $before . esc_html( the_title_attribute( 'echo=0' ) ) . $after; 945 } elseif ( is_tag() ) { 931 946 // tags archive 932 echo$before . $text_tag .' "' . single_tag_title( '', false ) . '"' . $after;933 } elseif ( is_author() ) {947 $output .= $before . $text_tag .' "' . single_tag_title( '', false ) . '"' . $after; 948 } elseif ( is_author() ) { 934 949 // author archive 935 950 global $author; 936 951 $userdata = get_userdata( $author ); 937 echo$before . $text_author . ' ' . $userdata->display_name . $after;938 } elseif ( is_404() ) {952 $output .= $before . $text_author . ' ' . $userdata->display_name . $after; 953 } elseif ( is_404() ) { 939 954 // 404 940 echo$before . $text_404 . $after;941 } elseif ( get_post_format() ) {955 $output .= $before . $text_404 . $after; 956 } elseif ( get_post_format() ) { 942 957 // post format 943 echo $before . '"' . ucwords( get_post_format() ) . '" ' . $text_format . $after; 944 } 945 946 if ( get_query_var( 'paged' ) ) { 947 if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ' ('; 948 echo $text_page . ' ' . get_query_var( 'paged' ); 949 if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ')'; 950 } 951 952 echo $wrapper_post; 958 $output .= $before . '"' . ucwords( get_post_format() ) . '" ' . $text_format . $after; 959 } 960 961 if ( get_query_var( 'paged' ) ) { 962 if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) $output .= ' ('; 963 $output .= $text_page . ' ' . get_query_var( 'paged' ); 964 if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) $output .= ')'; 965 } 966 967 $output .= $wrapper_post; 968 echo wp_kses_post( $output ); 953 969 } // cryout_breadcrumbs() 954 970 endif; -
fluida/1.8.6/footer.php
r135857 r144713 12 12 <?php cryout_absolute_bottom_hook(); ?> 13 13 14 <aside id="colophon" role="complementary"<?php cryout_schema_microdata( 'sidebar' );?>>14 <aside id="colophon" <?php cryout_schema_microdata( 'sidebar' );?>> 15 15 <div id="colophon-inside" <?php fluida_footer_colophon_class();?>> 16 16 <?php get_sidebar( 'footer' );?> … … 20 20 </div><!-- #main --> 21 21 22 <footer id="footer" class="cryout" role="contentinfo"<?php cryout_schema_microdata( 'footer' );?>>22 <footer id="footer" class="cryout" <?php cryout_schema_microdata( 'footer' );?>> 23 23 <?php cryout_master_footer_hook(); ?> 24 24 </footer> -
fluida/1.8.6/front-page.php
r135857 r144713 22 22 23 23 <div id="container" class="fluida-landing-page one-column"> 24 <main id="main" role="main"class="main">24 <main id="main" class="main"> 25 25 <?php 26 26 //cryout_before_content_hook(); -
fluida/1.8.6/functions.php
r135857 r144713 11 11 // theme identification and options management - do NOT edit unless you know what you are doing 12 12 define ( "_CRYOUT_THEME_NAME", "fluida" ); 13 define ( "_CRYOUT_THEME_VERSION", "1.8. 5" );13 define ( "_CRYOUT_THEME_VERSION", "1.8.6" ); 14 14 15 15 // prefixes for theme options and functions -
fluida/1.8.6/header.php
r135857 r144713 13 13 <meta charset="<?php bloginfo( 'charset' ); ?>"> 14 14 <link rel="profile" href="http://gmpg.org/xfn/11"> 15 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> 15 <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?> 16 <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> 17 <?php endif; ?> 16 18 <?php 17 19 cryout_header_hook(); … … 25 27 <div id="site-wrapper"> 26 28 27 <header id="masthead" class="cryout" <?php cryout_schema_microdata( 'header' ) ?> role="banner">29 <header id="masthead" class="cryout" <?php cryout_schema_microdata( 'header' ) ?>> 28 30 29 31 <div id="site-header-main"> -
fluida/1.8.6/image.php
r135857 r144713 8 8 get_header(); ?> 9 9 10 <div id="container" class="single-attachment <?php echofluida_get_layout_class(); ?>">11 <main id="main" role="main"class="main">10 <div id="container" class="single-attachment <?php fluida_get_layout_class(); ?>"> 11 <main id="main" class="main"> 12 12 13 13 <?php while ( have_posts() ) : the_post(); ?> … … 38 38 <i class="icon-edit-alt icon-metas" title="<?php esc_attr_e( 'Published in', 'fluida' ); ?>"></i> 39 39 <a href="<?php echo esc_url( get_permalink( $post->post_parent ) ) ?>"> 40 <?php echo esc_html( get_the_title( $post->post_parent ) ) ;?>40 <?php echo esc_html( get_the_title( $post->post_parent ) )?> 41 41 </a> 42 42 </span> -
fluida/1.8.6/includes/comments.php
r135857 r144713 145 145 function fluida_comments_form_textarea( $arg ) { 146 146 $arg = '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun', 'fluida' ) . 147 '</label><textarea placeholder="'. _x( 'Comment', 'noun', 'fluida' ) .'" id="comment" name="comment" cols="45" rows="8" aria-required="true">' .147 '</label><textarea placeholder="'. esc_attr_x( 'Comment', 'noun', 'fluida' ) .'" id="comment" name="comment" cols="45" rows="8" aria-required="true">' . 148 148 '</textarea></p>'; 149 149 -
fluida/1.8.6/includes/core.php
r135857 r144713 150 150 the_custom_header_markup(); 151 151 } elseif ( ! empty( $header_image ) ) { ?> 152 <div class="header-image" <?php echocryout_echo_bgimage( esc_url( $header_image ) ) ?>></div>152 <div class="header-image" <?php cryout_echo_bgimage( esc_url( $header_image ) ) ?>></div> 153 153 <img class="header-image" alt="<?php if ( is_single() ) the_title_attribute(); elseif ( is_archive() ) echo esc_attr( get_the_archive_title() ); else echo esc_attr( get_bloginfo( 'name' ) ) ?>" src="<?php echo esc_url( $header_image ) ?>" /> 154 154 <?php cryout_header_widget_hook(); ?> … … 168 168 169 169 if ( in_array( $options['fluida_siteheader'], array( 'logo', 'both' ) ) ) { 170 echofluida_logo_helper( $options['fluida_logoupload'] );170 fluida_logo_helper( $options['fluida_logoupload'] ); 171 171 } 172 172 if ( in_array( $options['fluida_siteheader'], array( 'title', 'both', 'logo', 'empty' ) ) ) { 173 $heading_tag = ( is_ home() || is_front_page() ) ? 'h1' : 'div';173 $heading_tag = ( is_front_page() || is_home() ) ? 'h1' : 'div'; 174 174 echo '<div id="site-text">'; 175 175 echo '<' . $heading_tag . cryout_schema_microdata( 'site-title', 0 ) . ' id="site-title">'; … … 187 187 // WP 4.5+ 188 188 $wp_logo = str_replace( 'class="custom-logo-link"', 'id="logo" class="custom-logo-link" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '"', get_custom_logo() ); 189 if ( ! empty( $wp_logo ) ) return'<div class="identity">' . $wp_logo . '</div>';189 if ( ! empty( $wp_logo ) ) echo '<div class="identity">' . $wp_logo . '</div>'; 190 190 } else { 191 191 // older WP 192 192 if ( ! empty( $fluida_logo ) ) : 193 193 $img = wp_get_attachment_image_src( $fluida_logo, 'full' ); 194 return'<div class="identity">194 echo '<div class="identity"> 195 195 <a id="logo" href="' . esc_url( home_url( '/' ) ) . '" > 196 196 <img title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" src="' . esc_url( $img[0] ) . '" /> … … 199 199 endif; 200 200 } 201 return'';201 echo ''; 202 202 } // fluida_logo_helper() 203 203 … … 269 269 '<a target="_blank" href="' . esc_html( $the_theme->get( 'ThemeURI' ) ) . '" title="'; 270 270 echo 'Fluida WordPress Theme by ' . 'Cryout Creations"> ' . 'Fluida' .'</a> & <a target="_blank" href="' . "http://wordpress.org/"; 271 echo '" title="' . __( "Semantic Personal Publishing Platform", "fluida") . '"> ' . sprintf( " %s.", "WordPress" ) . '</a></div>';271 echo '" title="' . esc_attr__( "Semantic Personal Publishing Platform", "fluida") . '"> ' . sprintf( " %s.", "WordPress" ) . '</a></div>'; 272 272 } 273 273 … … 304 304 */ 305 305 if ( ! function_exists( 'fluida_get_layout_class' ) ) : 306 function fluida_get_layout_class( ) {306 function fluida_get_layout_class( $echo = true ) { 307 307 308 308 $layout = cryout_get_layout(); … … 316 316 case '3cSs' : $class = "three-columns-sided"; break; 317 317 case '1c': 318 default: return"one-column"; break;318 default: $class = "one-column"; break; 319 319 } 320 320 321 321 // allow the generated layout class to be filtered 322 return apply_filters( 'fluida_general_layout_class', $class, $layout ); 322 $output = esc_attr( apply_filters( 'fluida_general_layout_class', $class, $layout ) ); 323 324 if ( $echo ) { 325 echo $output; 326 } else { 327 return $output; 328 } 323 329 } // fluida_get_layout_class() 324 330 endif; … … 344 350 '<div id="breadcrumbs-container" class="cryout %1$s"><div id="breadcrumbs-container-inside"><div id="breadcrumbs"> <nav id="breadcrumbs-nav" %2$s>', // $wrapper_pre 345 351 '</nav></div></div></div><!-- breadcrumbs -->', // $wrapper_post 346 fluida_get_layout_class( ),// $layout_class352 fluida_get_layout_class(false), // $layout_class 347 353 __( 'Home', 'fluida' ), // $text_home 348 __( 'Archive for category ', 'fluida' ), // $text_archive349 __( 'Search results for ', 'fluida' ), // $text_search354 __( 'Archive for category "%s"', 'fluida' ), // $text_archive 355 __( 'Search results for "%s"', 'fluida' ), // $text_search 350 356 __( 'Posts tagged', 'fluida' ), // $text_tag 351 357 __( 'Articles posted by', 'fluida' ), // $text_author -
fluida/1.8.6/includes/custom-styles.php
r135857 r144713 111 111 /////////// COLUMNS /////////// 112 112 $colPadding = 2; // percent 113 $sidebarP = absint($fluida_primarysidebar);114 $sidebarS = absint($fluida_secondarysidebar);113 $sidebarP = $fluida_primarysidebar; 114 $sidebarS = $fluida_secondarysidebar; 115 115 ?> 116 116 117 #primary { width: <?php echo $sidebarP; ?>px; }118 #secondary { width: <?php echo $sidebarS; ?>px; }119 120 #container.one-column { }117 #primary { width: <?php echo absint( $sidebarP ); ?>px; } 118 #secondary { width: <?php echo absint( $sidebarS ); ?>px; } 119 120 #container.one-column { } 121 121 #container.two-columns-right #secondary { float: right; } 122 122 #container.two-columns-right .main, 123 .two-columns-right #breadcrumbs { width: calc( <?php echo 100 - (int) $colPadding ?>% - <?php echo $sidebarS; ?>px ); float: left; }123 .two-columns-right #breadcrumbs { width: calc( <?php echo 100 - (int) $colPadding ?>% - <?php echo absint( $sidebarS ); ?>px ); float: left; } 124 124 #container.two-columns-left #primary { float: left; } 125 125 #container.two-columns-left .main, 126 .two-columns-left #breadcrumbs { width: calc( <?php echo 100 - (int) $colPadding ?>% - <?php echo $sidebarP; ?>px ); float: right; }126 .two-columns-left #breadcrumbs { width: calc( <?php echo 100 - (int) $colPadding ?>% - <?php echo absint( $sidebarP ); ?>px ); float: right; } 127 127 128 128 #container.three-columns-right #primary, … … 135 135 136 136 #container.three-columns-right #primary, 137 #container.three-columns-left #secondary { margin-left: <?php echo esc_html( $colPadding ) ?>%; margin-right: <?php echo esc_html( $colPadding ) ?>%; }137 #container.three-columns-left #secondary { margin-left: <?php echo absint( $colPadding ) ?>%; margin-right: <?php echo absint( $colPadding ) ?>%; } 138 138 #container.three-columns-right .main, 139 139 .three-columns-right #breadcrumbs { width: calc( <?php echo 100 - absint( $colPadding ) * 2 ?>% - <?php echo absint( $sidebarS + $sidebarP ); ?>px ); float: left; } 140 140 #container.three-columns-left .main, 141 .three-columns-left #breadcrumbs { width: calc( <?php echo 100 - absint( $colPadding ) * 2 ?>% - <?php echo absint( $sidebarS + $sidebarP ); ?>px ); float: right; }141 .three-columns-left #breadcrumbs { width: calc( <?php echo 100 - absint( $colPadding ) * 2 ?>% - <?php echo absint( $sidebarS + $sidebarP ); ?>px ); float: right; } 142 142 143 143 #container.three-columns-sided #secondary { float: right; } … … 145 145 #container.three-columns-sided .main, 146 146 .three-columns-sided #breadcrumbs { width: calc( <?php echo 100 - absint( $colPadding ) * 2 ?>% - <?php echo absint( $sidebarS + $sidebarP ); ?>px ); float: right; 147 margin: 0 calc( <?php echo absint( $colPadding ) ?>% + <?php echo absint($sidebarS) ?>px ) 0 -1920px; }147 margin: 0 calc( <?php echo absint( $colPadding ) ?>% + <?php echo absint($sidebarS) ?>px ) 0 -1920px; } 148 148 149 149 <?php if ( in_array( $fluida_siteheader, array( 'logo', 'empty' ) ) ) { ?> 150 150 #site-text { 151 clip: rect(1px, 1px, 1px, 1px);152 height: 1px;153 overflow: hidden;154 position: absolute !important;155 width: 1px;156 word-wrap: normal !important;151 clip: rect(1px, 1px, 1px, 1px); 152 height: 1px; 153 overflow: hidden; 154 position: absolute !important; 155 width: 1px; 156 word-wrap: normal !important; 157 157 } 158 158 <?php } … … 161 161 ?> 162 162 html 163 { font-family: <?php echo cryout_font_select( $fluida_fgeneral, $fluida_fgeneralgoogle ) ?>;163 { font-family: <?php cryout_font_select( $fluida_fgeneral, $fluida_fgeneralgoogle, true ) ?>; 164 164 font-size: <?php echo esc_html( $fluida_fgeneralsize ) ?>; font-weight: <?php echo esc_html( $fluida_fgeneralweight ) ?>; 165 165 line-height: <?php echo esc_html( floatval($fluida_lineheight) ) ?>; } 166 166 167 #site-title { font-family: <?php echo cryout_font_select( $fluida_fsitetitle, $fluida_fsitetitlegoogle ) ?>;167 #site-title { font-family: <?php cryout_font_select( $fluida_fsitetitle, $fluida_fsitetitlegoogle, true ) ?>; 168 168 font-size: <?php echo esc_html( $fluida_fsitetitlesize ) ?>; font-weight: <?php echo esc_html( $fluida_fsitetitleweight ) ?>; } 169 169 170 #access ul li a { font-family: <?php echo cryout_font_select( $fluida_fmenu, $fluida_fmenugoogle ) ?>;170 #access ul li a { font-family: <?php cryout_font_select( $fluida_fmenu, $fluida_fmenugoogle, true ) ?>; 171 171 font-size: <?php echo esc_html( $fluida_fmenusize ) ?>; font-weight: <?php echo esc_html( $fluida_fmenuweight ) ?>; } 172 172 173 #access i.search-icon { font-size: <?php e cho esc_html( $fluida_fmenusize ) ?>; }174 175 .widget-title { font-family: <?php echo cryout_font_select( $fluida_fwtitle, $fluida_fwtitlegoogle ) ?>;173 #access i.search-icon { font-size: <?php esc_html( $fluida_fmenusize, true ) ?>; } 174 175 .widget-title { font-family: <?php cryout_font_select( $fluida_fwtitle, $fluida_fwtitlegoogle, true ) ?>; 176 176 font-size: <?php echo esc_html( $fluida_fwtitlesize ) ?>; font-weight: <?php echo esc_html( $fluida_fwtitleweight ) ?>; } 177 .widget-container { font-family: <?php echo cryout_font_select( $fluida_fwcontent, $fluida_fwcontentgoogle ) ?>;177 .widget-container { font-family: <?php cryout_font_select( $fluida_fwcontent, $fluida_fwcontentgoogle, true ) ?>; 178 178 font-size: <?php echo esc_html( $fluida_fwcontentsize ) ?>; font-weight: <?php echo esc_html( $fluida_fwcontentweight ) ?>; } 179 179 .entry-title, #reply-title, 180 180 .woocommerce .main .page-title, 181 181 .woocommerce .main .entry-title 182 { font-family: <?php echo cryout_font_select( $fluida_ftitles, $fluida_ftitlesgoogle ) ?>;182 { font-family: <?php cryout_font_select( $fluida_ftitles, $fluida_ftitlesgoogle, true ) ?>; 183 183 font-size: <?php echo esc_html( $fluida_ftitlessize ) ?>; font-weight: <?php echo esc_html( $fluida_ftitlesweight ) ?>; } 184 184 .content-masonry .entry-title 185 { font-size: <?php echo esc_html( (int)$fluida_ftitlessize* 0.75 ) ?>%; }185 { font-size: <?php echo esc_html( intval($fluida_ftitlessize) * 0.75 ) ?>%; } 186 186 187 187 <?php … … 189 189 for ( $i = 1; $i <= 6; $i++ ) { 190 190 $size = round( ( $font_root - ( 0.27 * $i ) ) * ( preg_replace( "/[^\d]/", "", esc_html( $fluida_fheadingssize ) ) / 100), 5 ); ?> 191 h<?php echo $i ?> { font-size: <?php echo $size?>em; } <?php191 h<?php echo absint( $i ) ?> { font-size: <?php echo esc_html( $size ) ?>em; } <?php 192 192 } //for ?> 193 h1, h2, h3, h4, h5, h6 { font-family: <?php echo cryout_font_select( $fluida_fheadings, $fluida_fheadingsgoogle ) ?>;193 h1, h2, h3, h4, h5, h6 { font-family: <?php cryout_font_select( $fluida_fheadings, $fluida_fheadingsgoogle, true ) ?>; 194 194 font-weight: <?php echo esc_html( $fluida_fheadingsweight ) ?>; } 195 195 .lp-staticslider .staticslider-caption-title, 196 196 .seriousslider.seriousslider-theme .seriousslider-caption-title { 197 font-family: <?php echo cryout_font_select( $fluida_fheadings, $fluida_fheadingsgoogle ) ?>;197 font-family: <?php cryout_font_select( $fluida_fheadings, $fluida_fheadingsgoogle, true ) ?>; 198 198 } 199 199 … … 317 317 #nav-below .nav-previous a:before, #nav-below .nav-next a:before, .reply a:after 318 318 { background-color: <?php echo esc_html( cryout_hexdiff( $fluida_contentbackground, 17 ) ) ?>; } 319 pre, .entry-meta .author, nav.sidebarmenu, .page-link > span, article #author-info, .comment-author,319 pre, .entry-meta .author, nav.sidebarmenu, .page-link > span, article .author-info, .comment-author, 320 320 .commentlist .comment-body, .commentlist .pingback, nav.sidebarmenu li a 321 321 { border-color: <?php echo esc_html( cryout_hexdiff( $fluida_contentbackground, 17 ) ) ?>; } … … 429 429 .main p, .main ul, .main ol, .main dd, .main pre, .main hr 430 430 { margin-bottom: <?php echo floatval( $fluida_paragraphspace ) ?>em; } 431 .main p { text-indent: <?php echo floatval( $fluida_parindent ) ?>em; }431 .main .entry-content p { text-indent: <?php echo floatval( $fluida_parindent ) ?>em; } 432 432 .main a.post-featured-image { background-position: <?php echo esc_html( $fluida_falign ) ?>; } 433 433 … … 560 560 <?php 561 561 for ($i=1; $i<=8; $i++) { ?> 562 .lpbox-rnd<?php echo $i ?> { background-color: <?php echo esc_html( cryout_hexdiff( $fluida_contentbackground, 50+5*$i) ) ?>; }562 .lpbox-rnd<?php echo absint( $i ) ?> { background-color: <?php echo esc_html( cryout_hexdiff( $fluida_contentbackground, 50+5*absint( $i ) ) ) ?>; } 563 563 <?php } 564 564 … … 608 608 609 609 body.mce-content-body, .block-editor .edit-post-visual-editor { 610 background-color: <?php echo esc_html( $fluida_contentbackground ) ?> }610 background-color: <?php echo esc_html( $fluida_contentbackground ) ?>; } 611 611 body.mce-content-body, .wp-block { 612 max-width: <?php echo esc_html( $content_body ) ;?>px;613 font-family: <?php echo cryout_font_select( $fluida_fgeneral, $fluida_fgeneralgoogle ) ?>;612 max-width: <?php echo esc_html( $content_body ) ?>px; 613 font-family: <?php cryout_font_select( $fluida_fgeneral, $fluida_fgeneralgoogle, true ) ?>; 614 614 font-size: <?php echo esc_html( $fluida_fgeneralsize ) ?>; 615 615 line-height: <?php echo esc_html( floatval($fluida_lineheight) ) ?>; 616 color: <?php echo esc_html( $fluida_sitetext ) ;?>; }616 color: <?php echo esc_html( $fluida_sitetext ) ?>; } 617 617 .block-editor .editor-post-title__block .editor-post-title__input { 618 618 color: <?php echo esc_html( $fluida_accent2 ) ?>; } … … 621 621 for ( $i = 1; $i <= 6; $i++ ) { 622 622 $size = round( ( $font_root - ( 0.27 * $i ) ) * ( preg_replace( "/[^\d]/", "", esc_html( $fluida_fheadingssize ) ) / 100), 5 ); ?> 623 h<?php echo $i ?> { font-size: <?php echo $size?>em; } <?php623 h<?php echo absint( $i ) ?> { font-size: <?php echo esc_html( $size ) ?>em; } <?php 624 624 } //for ?> 625 625 %%scope%% h1, %%scope%% h2, %%scope%% h3, %%scope%% h4, %%scope%% h5, %%scope%% h6 { 626 font-family: <?php echo cryout_font_select( $fluida_fheadings, $fluida_fheadingsgoogle ) ?>;626 font-family: <?php cryout_font_select( $fluida_fheadings, $fluida_fheadingsgoogle, true ) ?>; 627 627 font-weight: <?php echo esc_html( $fluida_fheadingsweight ) ?>; 628 628 color: <?php echo esc_html( $fluida_headingstext ) ?>; } 629 629 630 630 %%scope%% blockquote::before, %%scope%% blockquote::after { 631 color: rgba(<?php echo cryout_hex2rgb( esc_html( $fluida_sitetext ) ) ?>,0.1); } 631 color: rgba(<?php echo esc_html( cryout_hex2rgb( $fluida_sitetext ) ) ?>,0.1); 632 } 632 633 633 634 %%scope%% a { color: <?php echo esc_html( $fluida_accent1 ); ?>; } 634 635 %%scope%% a:hover { color: <?php echo esc_html( $fluida_accent2 ); ?>; } 635 636 636 %%scope%% code { background-color: <?php echo esc_html(cryout_hexdiff( $fluida_contentbackground, 17 ) ) ?>; }637 %%scope%% code { background-color: <?php echo esc_html(cryout_hexdiff( $fluida_contentbackground, 17 ) ) ?>; } 637 638 %%scope%% pre { border-color: <?php echo esc_html(cryout_hexdiff( $fluida_contentbackground, 17 ) ) ?>; } 638 639 639 %%scope%% select, %%scope%% input[type], %%scope%% textarea { 640 %%scope%% select, 641 %%scope%% input[type], 642 %%scope%% textarea { 640 643 color: <?php echo esc_html( $fluida_sitetext ); ?>; 641 644 background-color: <?php echo esc_html( cryout_hexdiff( $fluida_contentbackground, 10 ) ) ?>; 642 border-color: <?php echo esc_html( cryout_hexdiff( $fluida_contentbackground, 17 ) ) ?> } 645 border-color: <?php echo esc_html( cryout_hexdiff( $fluida_contentbackground, 17 ) ) ?> 646 } 643 647 644 648 %%scope%% p, %%scope%% ul, %%scope%% ol, %%scope%% dd, %%scope%% pre, %%scope%% hr { -
fluida/1.8.6/includes/landing-page.php
r135857 r144713 72 72 <?php } ?> 73 73 <div class="staticslider-caption"> 74 <?php if ( ! empty( $title ) ) { ?> <h2 class="staticslider-caption-title"><?php echo do_shortcode( wp_kses_post( $title )) ?></h2><?php } ?>74 <?php if ( ! empty( $title ) ) { ?> <h2 class="staticslider-caption-title"><?php echo do_shortcode( $title ) ?></h2><?php } ?> 75 75 <?php if ( ! empty( $title ) && ! empty( $content ) ) { ?><span class="staticslider-sep"></span><?php } ?> 76 <?php if ( ! empty( $content ) ) { ?> <div class="staticslider-caption-text"><?php echo do_shortcode( wp_kses_post( $content )) ?></div><?php } ?>76 <?php if ( ! empty( $content ) ) { ?> <div class="staticslider-caption-text"><?php echo do_shortcode( $content ) ?></div><?php } ?> 77 77 <div class="staticslider-caption-buttons"> 78 78 <?php if ( ! empty( $lpslidercta1text ) ) { echo '<a class="staticslider-button" href="' . esc_url( $lpslidercta1link ) . '">' . esc_html( $lpslidercta1text ) . '</a>'; } ?> … … 104 104 if ( -1 == $blockscontent ) return; 105 105 ?> 106 <section id="lp-blocks<?php echo $sid ?>" class="lp-blocks lp-blocks<?php echo $sid ?> lp-blocks-rows-<?php echo apply_filters('fluida_blocks_perrow', $pagecount, $sid) ?>">106 <section id="lp-blocks<?php echo absint( $sid ) ?>" class="lp-blocks lp-blocks<?php echo absint( $sid ) ?> lp-blocks-rows-<?php echo esc_attr( apply_filters('fluida_blocks_perrow', $pagecount, $sid) ) ?>"> 107 107 <?php if( ! empty( $maintitle ) || ! empty( $maindesc ) ) { ?> 108 108 <header class="lp-section-header"> 109 <?php if( ! empty( $maintitle ) ) { ?><h 2 class="lp-section-title"> <?php echo do_shortcode( wp_kses_post( $maintitle ) ) ?></h2><?php } ?>110 <?php if( ! empty( $maindesc ) ) { ?><div class="lp-section-desc"> <?php echo do_shortcode( wp_kses_post( $maindesc )) ?></div><?php } ?>109 <?php if( ! empty( $maintitle ) ) { ?><h3 class="lp-section-title"> <?php echo do_shortcode( $maintitle ) ?></h3><?php } ?> 110 <?php if( ! empty( $maindesc ) ) { ?><div class="lp-section-desc"> <?php echo do_shortcode( $maindesc ) ?></div><?php } ?> 111 111 </header> 112 112 <?php } ?> … … 153 153 <?php extract($data) ?> 154 154 <div class="lp-block block<?php echo absint( $id ); ?>"> 155 <?php if ( $click ) { ?><a href="<?php echo esc_url( $link ); ?>" aria-label="<?php echo esc_attr( $title ); ?>"<?php echo $target?>><?php } ?>155 <?php if ( $click ) { ?><a href="<?php echo esc_url( $link ); ?>" aria-label="<?php echo esc_attr( $title ); ?>"<?php echo wp_kses( $target, array() ) ?>><?php } ?> 156 156 <?php if ( ! empty ( $icon ) ) { ?> <i class="blicon-<?php echo esc_attr( $icon ); ?>"></i><?php } ?> 157 157 <?php if ( $click ) { ?></a> <?php } ?> 158 158 <div class="lp-block-content"> 159 <?php if ( ! empty ( $title ) ) { ?><h 5 class="lp-block-title"><?php echo do_shortcode( $title ); ?></h5><?php } ?>160 <?php if ( ! empty ( $text ) ) { ?><div class="lp-block-text"><?php echo do_shortcode( $text ) ;?></div><?php } ?>159 <?php if ( ! empty ( $title ) ) { ?><h4 class="lp-block-title"><?php echo do_shortcode( $title ) ?></h4><?php } ?> 160 <?php if ( ! empty ( $text ) ) { ?><div class="lp-block-text"><?php echo do_shortcode( $text ) ?></div><?php } ?> 161 161 <?php if ( ! empty ( $readmore ) ) { ?><a class="lp-block-readmore" href="<?php echo esc_url( $link ); ?>" <?php echo esc_attr( $target ); ?>> <?php echo do_shortcode( wp_kses_post( $readmore ) ); ?> <em class="screen-reader-text">"<?php echo esc_attr( $title ) ?>"</em> </a><?php } ?> 162 162 </div> … … 212 212 <?php if( $options['fluida_lpboxmaintitle' . $sid] || $options['fluida_lpboxmaindesc' . $sid] ) { ?> 213 213 <header class="lp-section-header"> 214 <?php if ( ! empty( $options['fluida_lpboxmaintitle' . $sid] ) ) { ?> <h 2 class="lp-section-title"> <?php echo do_shortcode( wp_kses_post( $options['fluida_lpboxmaintitle' . $sid] ) ) ?></h2><?php } ?>215 <?php if ( ! empty( $options['fluida_lpboxmaindesc' . $sid] ) ) { ?><div class="lp-section-desc"> <?php echo do_shortcode( wp_kses_post( $options['fluida_lpboxmaindesc' . $sid] )) ?></div><?php } ?>214 <?php if ( ! empty( $options['fluida_lpboxmaintitle' . $sid] ) ) { ?> <h3 class="lp-section-title"> <?php echo do_shortcode( $options['fluida_lpboxmaintitle' . $sid] ) ?></h3><?php } ?> 215 <?php if ( ! empty( $options['fluida_lpboxmaindesc' . $sid] ) ) { ?><div class="lp-section-desc"> <?php echo do_shortcode( $options['fluida_lpboxmaindesc' . $sid] ) ?></div><?php } ?> 216 216 </header> 217 217 <?php } ?> … … 220 220 <?php if ( $options['fluida_lpboxmargins' . $sid] == 1 ) { echo 'lp-boxes-padding'; }?>"> 221 221 <?php while ( $custom_query->have_posts() ) : 222 $custom_query->the_post();223 if ( cryout_has_manual_excerpt( $custom_query->post ) ) {224 $excerpt = get_the_excerpt();225 } elseif ( has_excerpt() ) {226 $excerpt = fluida_custom_excerpt( get_the_excerpt(), $options['fluida_lpboxlength' . $sid] );227 } else {228 $excerpt = fluida_custom_excerpt( get_the_content(), $options['fluida_lpboxlength' . $sid] );229 };230 $box = array();231 $box['colno'] = $box_counter++;232 $box['counter'] = $options['fluida_lpboxcount' . $sid];233 $box['title'] = apply_filters('fluida_box_title', get_the_title(), get_the_ID() );234 $box['content'] = $excerpt;235 list( $box['image'], ) = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'fluida-lpbox-' . $sid );236 $box['link'] = apply_filters( 'fluida_box_url', get_permalink(), get_the_ID() );237 $box['readmore'] = do_shortcode( wp_kses_post( $options['fluida_lpboxreadmore' . $sid] ));238 $box['target'] = apply_filters( 'fluida_box_target', '', get_the_ID() );239 $box['image'] = apply_filters('fluida_preview_img_src', $box['image']);222 $custom_query->the_post(); 223 if ( cryout_has_manual_excerpt( $custom_query->post ) ) { 224 $excerpt = get_the_excerpt(); 225 } elseif ( has_excerpt() ) { 226 $excerpt = fluida_custom_excerpt( get_the_excerpt(), $options['fluida_lpboxlength' . $sid] ); 227 } else { 228 $excerpt = fluida_custom_excerpt( get_the_content(), $options['fluida_lpboxlength' . $sid] ); 229 }; 230 $box = array(); 231 $box['colno'] = $box_counter++; 232 $box['counter'] = $options['fluida_lpboxcount' . $sid]; 233 $box['title'] = apply_filters('fluida_box_title', get_the_title(), get_the_ID() ); 234 $box['content'] = $excerpt; 235 $box['image'] = wp_get_attachment_image( get_post_thumbnail_id( get_the_ID() ), 'fluida-lpbox-' . $sid ); 236 $box['link'] = apply_filters( 'fluida_box_url', get_permalink(), get_the_ID() ); 237 $box['readmore'] = do_shortcode( $options['fluida_lpboxreadmore' . $sid] ); 238 $box['target'] = apply_filters( 'fluida_box_target', '', get_the_ID() ); 239 $box['image'] = apply_filters('fluida_preview_img_src', $box['image']); 240 240 241 241 fluida_lpbox_output( $box ); … … 243 243 </div> 244 244 </section><!-- .lp-boxes --> 245 <?php endif;245 <?php endif; 246 246 wp_reset_postdata(); 247 247 } // fluida_lpboxes() … … 256 256 extract($data); ?> 257 257 <div class="lp-box box<?php echo absint( $colno ); ?> "> 258 <div class="lp-box-image lpbox-rnd<?php echo $randomness[$colno%8]; ?>">259 <?php if( ! empty( $image ) ) { ?><img alt="<?php echo esc_attr( $title ); ?>" src="<?php echo esc_url( $image ); ?>" /> <?php} ?>258 <div class="lp-box-image lpbox-rnd<?php echo absint( $randomness[$colno%8] ); ?>"> 259 <?php if( ! empty( $image ) ) { echo wp_kses_post( $image ); } ?> 260 260 <a class="lp-box-link" <?php if ( !empty( $link ) ) { ?> href="<?php echo esc_url( $link ); ?>" aria-label="<?php echo esc_attr( $title ); ?>" <?php echo esc_attr( $target ); ?><?php } ?>> <i class="blicon-plus2"></i> </a> 261 261 <div class="lp-box-overlay"></div> 262 262 </div> 263 263 <div class="lp-box-content"> 264 <?php if ( ! empty( $title ) ) { ?><h 5class="lp-box-title">264 <?php if ( ! empty( $title ) ) { ?><h4 class="lp-box-title"> 265 265 <?php if ( !empty( $readmore ) && !empty( $link ) ) { ?> <a href="<?php echo esc_url( $link ); ?>" <?php echo esc_attr( $target ); ?>><?php } ?> 266 266 <?php echo do_shortcode( $title ); ?> 267 267 <?php if ( !empty( $readmore ) && !empty( $link ) ) { ?> </a> <?php } ?> 268 </h 5><?php } ?>268 </h4><?php } ?> 269 269 <div class="lp-box-text"> 270 270 <?php if ( ! empty( $content ) ) { ?> … … 272 272 <?php } ?> 273 273 <?php if( ! empty( $readmore ) ) { ?> 274 <a class="lp-box-readmore" href="<?php if( ! empty( $link ) ) { echo esc_url( $link ); } ?>" <?php echo esc_attr( $target ); ?>> <?php echo do_shortcode( wp_kses_post( $readmore ) );?> <em class="screen-reader-text">"<?php echo esc_attr( $title ) ?>"</em> <i class="icon-angle-right"></i></a>274 <a class="lp-box-readmore" href="<?php if( ! empty( $link ) ) { echo esc_url( $link ); } ?>" <?php echo esc_attr( $target ); ?>> <?php echo do_shortcode( $readmore ) ?> <em class="screen-reader-text">"<?php echo esc_attr( $title ) ?>"</em> <i class="icon-angle-right"></i></a> 275 275 <?php } ?> 276 276 </div> … … 297 297 'id' => $what, 298 298 ); 299 list( $data['image'], ) = wp_get_attachment_image_src( get_post_thumbnail_id( $pageid ), 'full' );299 $data['image'] = wp_get_attachment_image( get_post_thumbnail_id( $pageid ), 'full' ); 300 300 fluida_lptext_output( $data ); 301 301 } … … 308 308 if ( ! function_exists( 'fluida_lptext_output' ) ): 309 309 function fluida_lptext_output( $data ){ ?> 310 <section class="lp-text <?php echo $data['class']?>" id="lp-text-<?php echo esc_attr( $data['id'] ); ?>"<?php if( ! empty( $data['image'] ) ) { ?> style="background-image: url( <?php echo esc_url( $data['image'] ); ?>);" <?php } ?> >311 <?php if( ! empty( $data['image'] ) ) { ?><div class="lp-text-overlay"></div><?php } ?>312 <div class="lp-text-inside">313 <?php if( ! empty( $data['title'] ) ) { ?><h2 class="lp-text-title"><?php echo do_shortcode( $data['title'] ) ?></h2><?php } ?>314 <?php if( ! empty( $data['text'] ) ) { ?><div class="lp-text-content"><?php echo do_shortcode($data['text'] ) ?></div><?php } ?>315 </div>316 317 </section><!-- .lp-text-<?php echo esc_attr( $data['id'] ); ?> -->310 <section class="lp-text <?php echo esc_attr( $data['class'] ); ?>" id="lp-text-<?php echo esc_attr( $data['id'] ); ?>"<?php if( ! empty( $data['image'] ) ) { ?> style="background-image: url( <?php echo esc_url( $data['image'] ); ?>);" <?php } ?> > 311 <?php if( ! empty( $data['image'] ) ) { ?><div class="lp-text-overlay"></div><?php } ?> 312 <div class="lp-text-inside"> 313 <?php if( ! empty( $data['title'] ) ) { ?><h3 class="lp-text-title"><?php echo do_shortcode( $data['title'] ) ?></h3><?php } ?> 314 <?php if( ! empty( $data['text'] ) ) { ?><div class="lp-text-content"><?php echo do_shortcode( $data['text'] ) ?></div><?php } ?> 315 </div> 316 317 </section><!-- #lp-text-<?php echo esc_attr( $data['id'] ); ?> --> 318 318 <?php 319 319 } // fluida_lptext_output() … … 326 326 function fluida_lpindex() { 327 327 328 $fluida_lpposts = cryout_get_option( 'fluida_lpposts');328 $fluida_lpposts = cryout_get_option('fluida_lpposts'); 329 329 330 330 switch ($fluida_lpposts) { … … 357 357 <?php fluida_pagination(); 358 358 wp_reset_postdata(); 359 / *else :359 //else : 360 360 //get_template_part( 'content/content', 'notfound' ); 361 */362 361 endif; 363 362 -
fluida/1.8.6/includes/loop.php
r135857 r144713 84 84 echo '<div class="entry-meta"> 85 85 <span class="bl_categ"' . cryout_schema_microdata( 'category', 0 ) . '> 86 <i class="icon-folder-open icon-metas" title="' . __( "Categories", "fluida" ) . '"></i>'86 <i class="icon-folder-open icon-metas" title="' . esc_attr__( "Categories", "fluida" ) . '"></i>' 87 87 . get_the_category_list( ', ' ) . 88 88 '</span> … … 129 129 $date = ''; $time = ''; 130 130 if ( $fluida_meta_date ) { $date = esc_html( get_the_date() ); } 131 if ( $fluida_meta_time ) { $time = esc_ attr( get_the_time() ); }131 if ( $fluida_meta_time ) { $time = esc_html( get_the_time() ); } 132 132 ?> 133 133 134 134 <span class="onDate date"> 135 <i class="icon-time icon-metas" title="<?php _e( "Date", "fluida" ) ?>"></i>135 <i class="icon-time icon-metas" title="<?php esc_attr_e( "Date", "fluida" ) ?>"></i> 136 136 <time class="published" datetime="<?php echo esc_attr( get_the_time( 'c' ) ) ?>" <?php cryout_schema_microdata( 'time' ) ?>><?php echo $date . ( ( $fluida_meta_date && $fluida_meta_time ) ? ', ' : '' ) . $time ?></time> 137 <time class="updated" datetime="<?php echo esc_attr( get_the_modified_time( 'c' ) ) ?>" <?php cryout_schema_microdata( 'time-modified' ) ?>><?php echo esc_html( get_the_modified_date() ) ;?></time>137 <time class="updated" datetime="<?php echo esc_attr( get_the_modified_time( 'c' ) ) ?>" <?php cryout_schema_microdata( 'time-modified' ) ?>><?php echo esc_html( get_the_modified_date() ) ?></time> 138 138 </span> 139 139 <?php 140 140 } 141 141 142 } ;// fluida_posted_date()142 } // fluida_posted_date() 143 143 endif; 144 144 … … 155 155 if ( $fluida_meta_tag && $tag_list ) { ?> 156 156 <span class="footer-tags" <?php cryout_schema_microdata( 'tags' ) ?>> 157 <i class="icon-tag icon-metas" title="<?php _e( 'Tagged', 'fluida' ) ?>"></i> <?php echo $tag_list ?>157 <i class="icon-tag icon-metas" title="<?php esc_attr_e( 'Tagged', 'fluida' ) ?>"></i> <?php echo $tag_list ?> 158 158 </span> 159 159 <?php 160 160 } 161 } ;// fluida_posted_tags()161 } // fluida_posted_tags() 162 162 endif; 163 163 … … 170 170 cryout_post_footer_hook(); /* ?!? */ 171 171 172 } ;// fluida_posted_edit()172 } // fluida_posted_edit() 173 173 endif; 174 174 … … 183 183 printf( '<span class="entry-format"><a href="%1$s"><i class="icon-%2$s" title="%3$s"></i></a></span>', 184 184 esc_url( get_post_format_link( $format ) ), 185 $format,186 get_post_format_string( $format)185 esc_attr( $format ), 186 esc_attr( get_post_format_string( $format ) ) 187 187 ); 188 188 } … … 226 226 if ( $wp_query->max_num_pages > 1 ) : ?> 227 227 228 <nav id="<?php echo $nav_id; ?>" class="navigation">228 <nav id="<?php echo esc_attr( $nav_id ); ?>" class="navigation"> 229 229 230 230 <span class="nav-previous"> … … 289 289 <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 ) ) ?>" tabindex="-1"> 290 290 <picture> 291 <source media="(max-width: 1152px)" sizes="<?php echo cryout_gen_featured_sizes($featured_width, $options['fluida_magazinelayout'], $options['fluida_landingpage'] ) ?>" srcset="<?php echo cryout_get_picture_src( $fimage_id, 'fluida-featured-third'); ?> 512w">292 <source media="(max-width: 800px)" sizes="<?php echo cryout_gen_featured_sizes($featured_width, $options['fluida_magazinelayout'], $options['fluida_landingpage'] ) ?>" srcset="<?php echo cryout_get_picture_src( $fimage_id, 'fluida-featured-half'); ?> 800w">293 <?php if ( cryout_on_landingpage() ) { ?><source sizes="<?php echo cryout_gen_featured_sizes( $featured_width, $options['fluida_magazinelayout'], $options['fluida_landingpage'] ) ?>" srcset="<?php echo cryout_get_picture_src( $fimage_id, 'fluida-featured-lp' ); ?> <?php printf( '%sw', $featured_width) ?>">291 <source media="(max-width: 1152px)" sizes="<?php echo esc_attr( cryout_gen_featured_sizes( $featured_width, $options['fluida_magazinelayout'], $options['fluida_landingpage'] ) ) ?>" srcset="<?php echo esc_url( cryout_get_picture_src( $fimage_id, 'fluida-featured-third' ) ); ?> 512w"> 292 <source media="(max-width: 800px)" sizes="<?php echo esc_attr( cryout_gen_featured_sizes( $featured_width, $options['fluida_magazinelayout'], $options['fluida_landingpage'] ) ) ?>" srcset="<?php echo esc_url( cryout_get_picture_src( $fimage_id, 'fluida-featured-half' ) ); ?> 800w"> 293 <?php if ( cryout_on_landingpage() ) { ?><source sizes="<?php echo esc_attr( cryout_gen_featured_sizes( $featured_width, $options['fluida_magazinelayout'], $options['fluida_landingpage'] ) ) ?>" srcset="<?php echo esc_url( cryout_get_picture_src( $fimage_id, 'fluida-featured-lp' ) ); ?> <?php printf( '%sw', absint( $featured_width ) ) ?>"> 294 294 <?php } ?> 295 295 <img alt="<?php the_title_attribute();?>" <?php cryout_schema_microdata( 'url' ); ?> src="<?php echo cryout_get_picture_src( $fimage_id, 'fluida-featured' ); ?>" /> 296 296 </picture> 297 297 </a> 298 <meta itemprop="width" content="<?php echo $featured_image[1]; // width ?>">299 <meta itemprop="height" content="<?php echo $featured_image[2]; // height ?>">298 <meta itemprop="width" content="<?php echo absint( $featured_image[1] ); // width ?>"> 299 <meta itemprop="height" content="<?php echo absint( $featured_image[2] ); // height ?>"> 300 300 301 301 </div> -
fluida/1.8.6/includes/meta.php
r135857 r144713 38 38 <p> 39 39 <?php foreach ($options['choices'] as $value => $data ) { 40 $data['url'] = esc_url( sprintf( $data['url'], get_template_directory_uri()) ); ?>40 $data['url'] = sprintf( $data['url'], get_template_directory_uri() ); ?> 41 41 42 42 <label> 43 43 <input type="radio" name="_cryout_layout" <?php checked( $value == $layout ); ?> value="<?php echo esc_attr( $value ); ?>" /> 44 <span><img src="<?php echo $data['url']?>" alt="<?php echo esc_html( $data['label'] ) ?>" title="<?php echo esc_html( $data['label'] ) ?>"/></span>44 <span><img src="<?php echo esc_url( $data['url'] ) ?>" alt="<?php echo esc_html( $data['label'] ) ?>" title="<?php echo esc_html( $data['label'] ) ?>"/></span> 45 45 </label> 46 46 … … 74 74 } 75 75 76 global $fluida_big;77 $valid_layouts = $fluida_big['options'][0]['choices'];76 global $fluida_big; 77 $valid_layouts = $fluida_big['options'][0]['choices']; 78 78 $layout = ( isset( $_POST['_cryout_layout'] ) && array_key_exists( sanitize_text_field( $_POST['_cryout_layout'] ), $valid_layouts ) ? sanitize_text_field( $_POST['_cryout_layout'] ) : '0' ); 79 79 -
fluida/1.8.6/includes/setup.php
r135857 r144713 35 35 36 36 // Add HTML5 support 37 add_theme_support( 'html5', array( ' comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) );37 add_theme_support( 'html5', array( 'script', 'style', 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) ); 38 38 39 39 // Add post formats … … 120 120 add_theme_support( 'custom-header', array( 121 121 // for later: 'flex-height' => true, 122 'height' => $fluida_headerheight, 122 123 // for later: 'flex-width' => true, 123 'height' => $fluida_headerheight,124 124 'width' => $fluida_headerwidth, 125 125 'default-image' => get_template_directory_uri() . '/resources/images/headers/glows.jpg', … … 266 266 add_filter( 'wp_page_menu_args', 'fluida_page_menu_args' ); 267 267 268 /** 269 * Custom menu fallback, using wp_page_menu() 270 * Created to make the fallback menu have the same HTML structure as the default 271 */ 272 function fluida_default_menu() { 273 wp_page_menu($args = array( 274 'menu_class' => '', 275 'before' => '<ul id="prime_nav">', 276 'after' => '</ul>' 277 )); 278 } 268 279 /** Main menu */ 269 280 function fluida_main_menu() { ?> … … 276 287 'link_before' => '<span>', 277 288 'link_after' => '</span>', 278 'items_wrap' => '<div><ul id="%s" class="%s">%s</ul></div>' 289 'items_wrap' => '<div><ul id="%s" class="%s">%s</ul></div>', 290 'fallback_cb' => 'fluida_default_menu' 279 291 280 292 ) ); … … 382 394 case '4': $class = 'four'; break; 383 395 } 384 if ( !empty($class) ) echo 'class="footer-' . $class. ' ' . ( $opts['fluida_footeralign'] ? 'footer-center' : '' ) . '"';396 if ( !empty($class) ) echo 'class="footer-' . esc_attr( $class ) . ' ' . ( $opts['fluida_footeralign'] ? 'footer-center' : '' ) . '"'; 385 397 } // fluida_footer_colophon_class() 386 398 -
fluida/1.8.6/includes/styles.php
r135857 r144713 46 46 47 47 // Enqueue google fonts with subsets separately 48 foreach( $gfonts as $i => $gfont ):49 if ( strpos( $gfont, "&" ) !== false ):48 if ( !empty($gfonts) ) foreach( $gfonts as $i => $gfont ) { 49 if ( strpos( $gfont, "&" ) !== false ): 50 50 wp_enqueue_style( 'fluida-googlefont' . $i, '//fonts.googleapis.com/css?family=' . $gfont, null, _CRYOUT_THEME_VERSION ); 51 51 unset( $gfonts[$i] ); 52 52 unset( $roots[$i] ); 53 //else:54 // do nothing55 53 endif; 56 endforeach;54 }; 57 55 58 56 // Merged google fonts 59 if ( count( $gfonts ) > 0 ):57 if ( !empty($gfonts) ){ 60 58 wp_enqueue_style( 'fluida-googlefonts', '//fonts.googleapis.com/css?family=' . implode( "|" , array_unique( array_merge( $roots, $gfonts ) ) ), null, _CRYOUT_THEME_VERSION ); 61 endif;59 }; 62 60 // Main theme style 63 61 wp_enqueue_style( 'fluida-main', get_stylesheet_uri(), null, _CRYOUT_THEME_VERSION ); … … 84 82 add_action ( 'wp_head', 'fluida_author_link' ); 85 83 86 // Adds HTML5 tags for IEs87 function fluida_header_scripts() {88 ?>89 <!--[if lt IE 9]>90 <script>91 document.createElement('header');92 document.createElement('nav');93 document.createElement('section');94 document.createElement('article');95 document.createElement('aside');96 document.createElement('footer');97 </script>98 <![endif]-->99 <?php100 } // fluida_header_scripts()101 //add_action('wp_head','fluida_header_scripts',100);102 84 103 85 /** … … 166 148 167 149 /* 168 * fluida_ custom_editor_styles() is located in custom-styles.php150 * fluida_editor_styles() is located in custom-styles.php 169 151 */ 170 152 function fluida_add_editor_styles() { -
fluida/1.8.6/includes/tgmpa.php
r135857 r144713 25 25 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 26 26 ), 27 /* plugin is no longer maintained 27 28 array( 28 29 'name' => 'Force Regenerate Thumbnails', // The plugin name. … … 32 33 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 33 34 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 34 ), 35 ), */ 35 36 36 37 ); … … 59 60 'notice_can_install_required' => _n_noop( 60 61 /* translators: 1: plugin name(s). */ 61 'This theme re quires the following plugin: %1$s.',62 'This theme re quires the following plugins: %1$s.',62 'This theme recommends the following plugin: %1$s.', 63 'This theme recommends the following plugins: %1$s.', 63 64 'cryout' 64 65 ), 65 66 'notice_can_install_recommended' => _n_noop( 66 67 /* translators: 1: plugin name(s). */ 67 'This theme recommends the following plugin: %1$s.',68 'This theme recommends the following plugins: %1$s.',68 'This theme suggests the following plugin: %1$s.', 69 'This theme suggests the following plugins: %1$s.', 69 70 'cryout' 70 71 ), … … 83 84 'notice_can_activate_required' => _n_noop( 84 85 /* translators: 1: plugin name(s). */ 85 'The following re quired plugin is currently inactive: %1$s.',86 'The following re quired plugins are currently inactive: %1$s.',86 'The following recommended plugin is currently inactive: %1$s.', 87 'The following recommended plugins are currently inactive: %1$s.', 87 88 'cryout' 88 89 ), 89 90 'notice_can_activate_recommended' => _n_noop( 90 91 /* translators: 1: plugin name(s). */ 91 'The following recommended plugin is currently inactive: %1$s.',92 'The following recommended plugins are currently inactive: %1$s.',92 'The following suggested plugin is currently inactive: %1$s.', 93 'The following suggested plugins are currently inactive: %1$s.', 93 94 'cryout' 94 95 ), -
fluida/1.8.6/index.php
r135857 r144713 12 12 get_header(); 13 13 ?> 14 <div id="container" class="<?php echofluida_get_layout_class(); ?>">15 <main id="main" role="main"class="main">14 <div id="container" class="<?php fluida_get_layout_class(); ?>"> 15 <main id="main" class="main"> 16 16 <?php cryout_before_content_hook(); ?> 17 17 -
fluida/1.8.6/languages/fluida.pot
r135857 r144713 3 3 msgstr "" 4 4 "Project-Id-Version: Fluida 1.1\n" 5 "POT-Creation-Date: 20 19-09-23 12:45+0000\n"5 "POT-Creation-Date: 2021-03-11 19:14+0000\n" 6 6 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 7 7 "Last-Translator: Cryout Creations\n" … … 17 17 "Language: " 18 18 19 #: 404.php:15 includes/core.php:352 19 #. $text_author 20 #: 404.php:15 includes/core.php:358 20 21 msgid "Not Found" 21 22 msgstr "" … … 54 55 msgstr "" 55 56 56 #: single.php:36 templates/template-page-with-intro.php:31 57 #: content/content-page.php:30 content/content.php:41 57 #: single.php:36 content/content-page.php:30 content/content.php:41 58 58 msgid "Pages:" 59 59 msgstr "" … … 63 63 msgstr "" 64 64 65 #: searchform.php:12 searchform.php:14 includes/core.php:37 065 #: searchform.php:12 searchform.php:14 includes/core.php:376 66 66 msgid "Search" 67 67 msgstr "" … … 88 88 msgstr "" 89 89 90 #: comments.php:21 includes/comments.php:95 includes/comments.php:98 91 #, php-format 92 msgid "One Comment" 90 #: comments.php:23 91 msgid "One comment" 92 msgstr "" 93 94 #: comments.php:25 includes/comments.php:95 95 #, php-format 96 msgid "%1$s Comment" 93 97 msgid_plural "%1$s Comments" 94 98 msgstr[0] "" 95 99 msgstr[1] "" 96 100 97 #: comments.php: 45101 #: comments.php:50 98 102 msgid "Comments are closed." 99 103 msgstr "" 100 104 101 #. Name of the template 102 msgid "Category page with intro" 103 msgstr "" 104 105 #: templates/template-page-with-intro.php:25 content/content-page.php:22 105 #: content/content-page.php:22 106 106 msgid "Edit" 107 107 msgstr "" 108 108 109 #: content/ author-bio.php:16109 #: content/user-bio.php:16 110 110 msgid "Author:" 111 111 msgstr "" 112 112 113 #: content/ author-bio.php:30113 #: content/user-bio.php:30 114 114 msgid "View all posts by " 115 115 msgstr "" … … 136 136 msgstr "" 137 137 138 #: admin/main.php:8 4 admin/main.php:194138 #: admin/main.php:82 139 139 msgid "Sorry, but you do not have sufficient permissions to access this page." 140 140 msgstr "" 141 141 142 #: admin/main.php:9 3143 msgid "Fluida settings loadedsuccessfully."142 #: admin/main.php:94 143 msgid "Fluida settings have been reset successfully." 144 144 msgstr "" 145 145 146 146 #: admin/main.php:101 147 msgid "Fluida settings have been reset successfully."148 msgstr ""149 150 #: admin/main.php:108151 147 #, php-format 152 148 msgid "Fluida Theme v%1$s by %2$s" 153 149 msgstr "" 154 150 155 #: admin/main.php:11 7151 #: admin/main.php:110 156 152 msgid "Fluida Homepage" 157 153 msgstr "" 158 154 159 #: admin/main.php:11 8155 #: admin/main.php:111 160 156 msgid "Theme Support" 161 157 msgstr "" 162 158 163 #: admin/main.php:11 9159 #: admin/main.php:112 164 160 msgid "Upgrade to PLUS" 165 161 msgstr "" 166 162 167 #: admin/main.php:1 30163 #: admin/main.php:123 168 164 msgid "Customize" 169 165 msgstr "" 170 166 171 #: admin/main.php:13 8 admin/main.php:142167 #: admin/main.php:131 admin/main.php:135 172 168 msgid "Upgrade to Plus" 173 169 msgstr "" 174 170 175 #: admin/main.php:140 176 #, php-format 171 #: admin/main.php:133 177 172 msgid "" 178 173 "Find out what features you're missing out on and how the Plus version of " 179 " %1$scan improve your site."180 msgstr "" 181 182 #: admin/main.php:1 50174 "Fluida can improve your site." 175 msgstr "" 176 177 #: admin/main.php:143 183 178 msgid "Settings Management" 184 179 msgstr "" 185 180 186 #: admin/main.php:154 187 msgid "Save Theme Settings" 188 msgstr "" 189 190 #: admin/main.php:156 191 msgid "Load Theme Settings" 192 msgstr "" 193 194 #: admin/main.php:160 181 #: admin/main.php:148 195 182 msgid "Reset to Defaults" 196 183 msgstr "" 197 184 198 #: admin/main.php:165 199 msgid "" 200 "Copy-paste all the information below to a file of your choosing and save it " 201 "to a safe location." 202 msgstr "" 203 204 #: admin/main.php:166 205 msgid "" 206 "Paste your previously saved settings in the field below and press the Load " 207 "button.<br><u>All your current settings will be overwritten!</u>" 208 msgstr "" 209 210 #: admin/main.php:186 admin/main.php:196 211 msgid "" 212 "Your server does not support the needed functionality to manage theme " 213 "settings." 214 msgstr "" 215 216 #: admin/main.php:205 217 msgid "" 218 "Unable to load theme options. Try again or check that the saved options are " 219 "valid." 220 msgstr "" 221 222 #: admin/main.php:208 223 msgid "" 224 "The supplied theme settings text appears invalid. Make sure you pasted it " 225 "entirely and without errors." 226 msgstr "" 227 228 #: admin/main.php:210 229 msgid "" 230 "You did not enter any theme settings. Remember to paste saved theme settings." 231 msgstr "" 232 233 #: admin/options.php:193 185 #: admin/options.php:204 admin/options.php:486 234 186 msgid "Site Identity" 235 187 msgstr "" 236 188 237 #: admin/options.php: 194 admin/options.php:536189 #: admin/options.php:205 admin/options.php:557 238 190 msgid "Layout" 239 191 msgstr "" 240 192 241 #: admin/options.php: 195 admin/options.php:237 admin/options.php:2259193 #: admin/options.php:206 admin/options.php:248 admin/options.php:2268 242 194 msgid "Header" 243 195 msgstr "" 244 196 245 #: admin/options.php: 196 admin/options.php:239 admin/options.php:520197 #: admin/options.php:207 admin/options.php:250 admin/options.php:541 246 198 msgid "Landing Page" 247 199 msgstr "" 248 200 249 #: admin/options.php: 197201 #: admin/options.php:208 250 202 msgid "General" 251 203 msgstr "" 252 204 253 #: admin/options.php: 198205 #: admin/options.php:209 254 206 msgid "Colors" 255 207 msgstr "" 256 208 257 #: admin/options.php: 199209 #: admin/options.php:210 258 210 msgid "Typography" 259 211 msgstr "" 260 212 261 #: admin/options.php:2 00213 #: admin/options.php:211 262 214 msgid "Post Information" 263 215 msgstr "" 264 216 265 #: admin/options.php:2 09217 #: admin/options.php:220 266 218 msgid "General Layout" 267 219 msgstr "" 268 220 269 #: admin/options.php:2 10221 #: admin/options.php:221 270 222 msgid "Other Layouts" 271 223 msgstr "" 272 224 273 #: admin/options.php:2 13225 #: admin/options.php:224 274 226 msgid "Menu" 275 227 msgstr "" 276 228 277 #: admin/options.php:2 14 admin/options.php:236229 #: admin/options.php:225 admin/options.php:247 278 230 msgid "Content" 279 231 msgstr "" 280 232 281 #: admin/options.php:2 16233 #: admin/options.php:227 282 234 msgid "Settings" 283 235 msgstr "" 284 236 285 #: admin/options.php:2 17 admin/options.php:562237 #: admin/options.php:228 admin/options.php:583 286 238 msgid "Slider" 287 239 msgstr "" 288 240 289 #: admin/options.php:2 18241 #: admin/options.php:229 290 242 msgid "Featured Icon Blocks" 291 243 msgstr "" 292 244 293 #: admin/options.php:2 19245 #: admin/options.php:230 294 246 msgid "Featured Boxes" 295 247 msgstr "" 296 248 297 #: admin/options.php:2 20249 #: admin/options.php:231 298 250 msgid "Featured Boxes 2" 299 251 msgstr "" 300 252 301 #: admin/options.php:2 21 admin/options.php:1033253 #: admin/options.php:232 admin/options.php:1054 302 254 msgid "Text Areas" 303 255 msgstr "" 304 256 305 #: admin/options.php:2 22 admin/options.php:544257 #: admin/options.php:233 admin/options.php:565 306 258 msgid "Featured Content" 307 259 msgstr "" 308 260 309 #: admin/options.php:2 24 admin/options.php:1042261 #: admin/options.php:235 admin/options.php:1063 310 262 msgid "General Font" 311 263 msgstr "" 312 264 313 #: admin/options.php:2 25265 #: admin/options.php:236 314 266 msgid "Header Fonts" 315 267 msgstr "" 316 268 317 #: admin/options.php:2 26269 #: admin/options.php:237 318 270 msgid "Content Fonts" 319 271 msgstr "" 320 272 321 #: admin/options.php:2 27273 #: admin/options.php:238 322 274 msgid "Widget Fonts" 323 275 msgstr "" 324 276 325 #: admin/options.php:2 28277 #: admin/options.php:239 326 278 msgid "Formatting" 327 279 msgstr "" 328 280 329 #: admin/options.php:2 30281 #: admin/options.php:241 330 282 msgid "Structure" 331 283 msgstr "" 332 284 333 #: admin/options.php:2 31285 #: admin/options.php:242 334 286 msgid "Decorations" 335 287 msgstr "" 336 288 337 #: admin/options.php:2 32289 #: admin/options.php:243 338 290 msgid "Content Images" 339 291 msgstr "" 340 292 341 #: admin/options.php:2 33293 #: admin/options.php:244 342 294 msgid "Search Box Locations" 343 295 msgstr "" 344 296 345 #: admin/options.php:2 34includes/setup.php:59297 #: admin/options.php:245 includes/setup.php:59 346 298 msgid "Social Icons" 347 299 msgstr "" 348 300 349 #: admin/options.php:2 38 admin/options.php:2237301 #: admin/options.php:249 admin/options.php:2246 350 302 msgid "Footer" 351 303 msgstr "" 352 304 353 #: admin/options.php:2 41305 #: admin/options.php:252 354 306 msgid "Featured Image" 355 307 msgstr "" 356 308 357 #: admin/options.php:2 42309 #: admin/options.php:253 358 310 msgid "Meta Information" 359 311 msgstr "" 360 312 361 #: admin/options.php:2 43313 #: admin/options.php:254 362 314 msgid "Excerpts" 363 315 msgstr "" 364 316 365 #: admin/options.php:2 44317 #: admin/options.php:255 366 318 msgid "Comments" 367 319 msgstr "" 368 320 369 #: admin/options.php:2 46321 #: admin/options.php:257 370 322 msgid "Miscellaneous" 371 323 msgstr "" 372 324 373 #: admin/options.php:2 66325 #: admin/options.php:277 374 326 msgid "Main Layout" 375 327 msgstr "" 376 328 377 #: admin/options.php:2 69329 #: admin/options.php:280 378 330 msgid "One column (no sidebars)" 379 331 msgstr "" 380 332 381 #: admin/options.php:2 73333 #: admin/options.php:284 382 334 msgid "Two columns, sidebar on the right" 383 335 msgstr "" 384 336 385 #: admin/options.php:2 77337 #: admin/options.php:288 386 338 msgid "Two columns, sidebar on the left" 387 339 msgstr "" 388 340 389 #: admin/options.php:2 81341 #: admin/options.php:292 390 342 msgid "Three columns, sidebars on the right" 391 343 msgstr "" 392 344 393 #: admin/options.php:2 85345 #: admin/options.php:296 394 346 msgid "Three columns, sidebars on the left" 395 347 msgstr "" 396 348 397 #: admin/options.php: 289349 #: admin/options.php:300 398 350 msgid "Three columns, one sidebar on each side" 399 351 msgstr "" 400 352 401 #: admin/options.php: 298353 #: admin/options.php:309 402 354 msgid "Site Width" 403 355 msgstr "" 404 356 405 #: admin/options.php:3 06357 #: admin/options.php:317 406 358 msgid "Theme alignment" 407 359 msgstr "" 408 360 409 #: admin/options.php:3 08361 #: admin/options.php:319 410 362 msgid "Left contained" 411 363 msgstr "" 412 364 413 #: admin/options.php:3 08 admin/options.php:435 admin/options.php:512414 #: admin/options.php:12 58365 #: admin/options.php:319 admin/options.php:456 admin/options.php:533 366 #: admin/options.php:1280 415 367 msgid "Left" 416 368 msgstr "" 417 369 418 #: admin/options.php:3 08370 #: admin/options.php:319 419 371 msgid "Center (default)" 420 372 msgstr "" 421 373 422 #: admin/options.php:3 08374 #: admin/options.php:319 423 375 msgid "Center contained" 424 376 msgstr "" 425 377 426 #: admin/options.php:3 09378 #: admin/options.php:320 427 379 msgid "Control how the entire theme content is aligned in the browser" 428 380 msgstr "" 429 381 430 #: admin/options.php:3 15382 #: admin/options.php:326 431 383 msgid "Left Sidebar Width" 432 384 msgstr "" 433 385 434 #: admin/options.php:3 22386 #: admin/options.php:333 435 387 msgid "Right Sidebar Width" 436 388 msgstr "" 437 389 438 #: admin/options.php:3 31390 #: admin/options.php:342 439 391 msgid "Posts Layout" 440 392 msgstr "" 441 393 442 #: admin/options.php:3 34394 #: admin/options.php:345 443 395 msgid "One column" 444 396 msgstr "" 445 397 446 #: admin/options.php:3 38398 #: admin/options.php:349 447 399 msgid "Two columns" 448 400 msgstr "" 449 401 450 #: admin/options.php:3 42402 #: admin/options.php:353 451 403 msgid "Three columns" 452 404 msgstr "" 453 405 454 #: admin/options.php:3 51406 #: admin/options.php:362 455 407 msgid "Margin top" 456 408 msgstr "" 457 409 458 #: admin/options.php:3 61410 #: admin/options.php:372 459 411 msgid "Site left/right padding" 460 412 msgstr "" 461 413 462 #: admin/options.php:3 71414 #: admin/options.php:382 463 415 msgid "Post/page left/right padding" 464 416 msgstr "" 465 417 466 #: admin/options.php:3 82418 #: admin/options.php:393 467 419 msgid "Footer Widgets Columns" 468 420 msgstr "" 469 421 470 #: admin/options.php:3 85422 #: admin/options.php:396 471 423 msgid "All in a row" 472 424 msgstr "" 473 425 474 #: admin/options.php:3 86426 #: admin/options.php:397 475 427 msgid "1 Column" 476 428 msgstr "" 477 429 478 #: admin/options.php:3 87430 #: admin/options.php:398 479 431 msgid "2 Columns" 480 432 msgstr "" 481 433 482 #: admin/options.php:3 88434 #: admin/options.php:399 483 435 msgid "3 Columns" 484 436 msgstr "" 485 437 486 #: admin/options.php: 389438 #: admin/options.php:400 487 439 msgid "4 Columns" 488 440 msgstr "" 489 441 490 #: admin/options.php: 397 admin/options.php:1258442 #: admin/options.php:408 admin/options.php:1280 491 443 msgid "Default" 492 444 msgstr "" 493 445 494 #: admin/options.php: 397 admin/options.php:435 admin/options.php:512495 #: admin/options.php:12 58446 #: admin/options.php:408 admin/options.php:456 admin/options.php:533 447 #: admin/options.php:1280 496 448 msgid "Center" 497 449 msgstr "" 498 450 499 #: admin/options.php: 398451 #: admin/options.php:409 500 452 msgid "Footer Widgets Alignment" 501 453 msgstr "" 502 454 503 #: admin/options.php:407504 msgid ""505 "Fine tune the visibility of these elements in the theme's Header options"506 msgstr ""507 508 455 #: admin/options.php:418 456 #, php-format 457 msgid "Fine tune the visibility of these elements from the theme's %s" 458 msgstr "" 459 460 #: admin/options.php:418 461 msgid "Header options" 462 msgstr "" 463 464 #: admin/options.php:427 465 #, php-format 466 msgid "" 467 "Configure the image currently visible on the homepage from the theme's " 468 "options under %s" 469 msgstr "" 470 471 #: admin/options.php:427 472 msgid "Landing Page > Slider > Banner Image" 473 msgstr "" 474 475 #: admin/options.php:439 509 476 msgid "Fixed Menu" 510 477 msgstr "" 511 478 512 #: admin/options.php:4 28479 #: admin/options.php:449 513 480 msgid "Header/Menu Height" 514 481 msgstr "" 515 482 516 #: admin/options.php:4 35 admin/options.php:512 admin/options.php:1258483 #: admin/options.php:456 admin/options.php:533 admin/options.php:1280 517 484 msgid "Right" 518 485 msgstr "" 519 486 520 #: admin/options.php:4 36487 #: admin/options.php:457 521 488 msgid "Menu Alignment" 522 489 msgstr "" 523 490 524 #: admin/options.php:4 42491 #: admin/options.php:463 525 492 msgid "Site Header Content" 526 493 msgstr "" 527 494 528 #: admin/options.php:4 44 admin/options.php:1072495 #: admin/options.php:465 admin/options.php:1094 529 496 msgid "Site Title" 530 497 msgstr "" 531 498 532 #: admin/options.php:4 44499 #: admin/options.php:465 533 500 msgid "Logo" 534 501 msgstr "" 535 502 536 #: admin/options.php:4 44503 #: admin/options.php:465 537 504 msgid "Logo & Site Title" 538 505 msgstr "" 539 506 540 #: admin/options.php:4 44507 #: admin/options.php:465 541 508 msgid "Empty" 542 509 msgstr "" 543 510 544 #: admin/options.php:4 50511 #: admin/options.php:471 545 512 msgid "Show Tagline" 546 513 msgstr "" 547 514 548 #: admin/options.php:4 56515 #: admin/options.php:477 549 516 msgid "Logo Image" 550 517 msgstr "" 551 518 552 #: admin/options.php:4 65553 msgid "" 554 "Edit the site's title, tagline and logo from WordPress' Site Identity panel."555 msgstr "" 556 557 #: admin/options.php:4 73519 #: admin/options.php:486 520 #, php-format 521 msgid "Edit the site's title, tagline and logo from the %s panel" 522 msgstr "" 523 524 #: admin/options.php:494 558 525 msgid "Header Image Height" 559 526 msgstr "" 560 527 561 #: admin/options.php: 481 admin/options.php:1571 admin/options.php:1596528 #: admin/options.php:502 admin/options.php:1593 admin/options.php:1618 562 529 msgid "Changing this value may require to recreate your thumbnails." 563 530 msgstr "" 564 531 565 #: admin/options.php: 488 admin/options.php:1578532 #: admin/options.php:509 admin/options.php:1600 566 533 msgid "Cropped" 567 534 msgstr "" 568 535 569 #: admin/options.php: 488 admin/options.php:538 admin/options.php:1578536 #: admin/options.php:509 admin/options.php:559 admin/options.php:1600 570 537 msgid "Contained" 571 538 msgstr "" 572 539 573 #: admin/options.php: 489540 #: admin/options.php:510 574 541 msgid "Header Image Behaviour" 575 542 msgstr "" 576 543 577 #: admin/options.php: 495544 #: admin/options.php:516 578 545 msgid "Title Accent" 579 546 msgstr "" 580 547 581 #: admin/options.php: 497548 #: admin/options.php:518 582 549 msgid "" 583 550 "Letter index the accent should apply to. Set to zero to disable accent " … … 585 552 msgstr "" 586 553 587 #: admin/options.php:5 03554 #: admin/options.php:524 588 555 msgid "Header Widget Width" 589 556 msgstr "" 590 557 591 #: admin/options.php:5 10558 #: admin/options.php:531 592 559 msgid "Header Widget Alignment" 593 560 msgstr "" 594 561 595 #: admin/options.php:5 22562 #: admin/options.php:543 596 563 msgid "Enabled" 597 564 msgstr "" 598 565 599 #: admin/options.php:5 22566 #: admin/options.php:543 600 567 msgid "Disabled (use WordPress homepage)" 601 568 msgstr "" 602 569 603 #: admin/options.php:5 30570 #: admin/options.php:551 604 571 #, php-format 605 572 msgid "" … … 608 575 msgstr "" 609 576 610 #: admin/options.php:5 30577 #: admin/options.php:551 611 578 msgid "use a static page" 612 579 msgstr "" 613 580 614 #: admin/options.php:5 38581 #: admin/options.php:559 615 582 msgid "Wide" 616 583 msgstr "" 617 584 618 #: admin/options.php:5 46585 #: admin/options.php:567 619 586 msgid "Static Page" 620 587 msgstr "" 621 588 622 #: admin/options.php:5 46589 #: admin/options.php:567 623 590 msgid "Posts" 624 591 msgstr "" 625 592 626 #: admin/options.php:5 46 admin/options.php:569 admin/options.php:677627 #: admin/options.php:7 13 admin/options.php:714 admin/options.php:732628 #: admin/options.php:7 33 admin/options.php:751 admin/options.php:752629 #: admin/options.php:7 70 admin/options.php:771 admin/options.php:801630 #: admin/options.php:8 02 admin/options.php:903 admin/options.php:904631 #: admin/options.php:9 11 admin/options.php:912 admin/options.php:919632 #: admin/options.php:9 20 admin/options.php:927 admin/options.php:928633 #: admin/options.php:13 05593 #: admin/options.php:567 admin/options.php:590 admin/options.php:698 594 #: admin/options.php:734 admin/options.php:735 admin/options.php:753 595 #: admin/options.php:754 admin/options.php:772 admin/options.php:773 596 #: admin/options.php:791 admin/options.php:792 admin/options.php:822 597 #: admin/options.php:823 admin/options.php:924 admin/options.php:925 598 #: admin/options.php:932 admin/options.php:933 admin/options.php:940 599 #: admin/options.php:941 admin/options.php:948 admin/options.php:949 600 #: admin/options.php:1327 634 601 msgid "Disabled" 635 602 msgstr "" 636 603 637 #: admin/options.php:5 53604 #: admin/options.php:574 638 605 msgid "More Posts Label" 639 606 msgstr "" 640 607 641 #: admin/options.php:5 65 admin/options.php:597608 #: admin/options.php:586 admin/options.php:618 642 609 msgid "Serious Slider" 643 610 msgstr "" 644 611 645 #: admin/options.php:5 66612 #: admin/options.php:587 646 613 msgid "Use Shortcode" 647 614 msgstr "" 648 615 649 #: admin/options.php:5 67650 msgid " StaticImage"651 msgstr "" 652 653 #: admin/options.php:5 68616 #: admin/options.php:588 admin/options.php:597 617 msgid "Banner Image" 618 msgstr "" 619 620 #: admin/options.php:589 654 621 msgid "Header Image" 655 622 msgstr "" 656 623 657 #: admin/options.php:5 71624 #: admin/options.php:592 658 625 #, php-format 659 626 msgid "" … … 662 629 msgstr "" 663 630 664 #: admin/options.php:576 665 msgid "Slider Image" 666 msgstr "" 667 668 #: admin/options.php:577 669 msgid "The default image can be replaced by setting a new static image." 670 msgstr "" 671 672 #: admin/options.php:583 631 #: admin/options.php:598 632 msgid "The default image can be replaced by setting a new banner image." 633 msgstr "" 634 635 #: admin/options.php:604 673 636 msgid "Slider Link" 674 637 msgstr "" 675 638 676 #: admin/options.php: 590639 #: admin/options.php:611 677 640 msgid "Shortcode" 678 641 msgstr "" 679 642 680 #: admin/options.php: 591643 #: admin/options.php:612 681 644 msgid "" 682 645 "Enter shortcode provided by slider plugin. The plugin will be responsible " … … 684 647 msgstr "" 685 648 686 #: admin/options.php: 599649 #: admin/options.php:620 687 650 msgid " - Please install, activate or update Serious Slider plugin - " 688 651 msgstr "" 689 652 690 #: admin/options.php: 599653 #: admin/options.php:620 691 654 msgid " - No sliders defined - " 692 655 msgstr "" 693 656 694 #: admin/options.php:6 00657 #: admin/options.php:621 695 658 msgid "" 696 659 "Select the desired slider from the list. Sliders can be administered in the " … … 698 661 msgstr "" 699 662 700 #: admin/options.php:6 06701 msgid " SliderCaption"702 msgstr "" 703 704 #: admin/options.php:6 08663 #: admin/options.php:627 664 msgid "Caption" 665 msgstr "" 666 667 #: admin/options.php:629 705 668 msgid "Title" 706 669 msgstr "" 707 670 708 #: admin/options.php:6 16 admin/options.php:624 admin/options.php:640671 #: admin/options.php:637 admin/options.php:645 admin/options.php:661 709 672 msgid "Text" 710 673 msgstr "" 711 674 712 #: admin/options.php:6 22 admin/options.php:638675 #: admin/options.php:643 admin/options.php:659 713 676 msgid "CTA Button" 714 677 msgstr "" 715 678 716 #: admin/options.php:6 32 admin/options.php:648679 #: admin/options.php:653 admin/options.php:669 717 680 msgid "Link" 718 681 msgstr "" 719 682 720 #: admin/options.php:6 56 admin/options.php:781683 #: admin/options.php:677 admin/options.php:802 721 684 msgid "Section Title" 722 685 msgstr "" 723 686 724 #: admin/options.php:6 63 admin/options.php:788687 #: admin/options.php:684 admin/options.php:809 725 688 msgid "Section Description" 726 689 msgstr "" 727 690 728 #: admin/options.php:6 75691 #: admin/options.php:696 729 692 msgid "Blocks Content" 730 693 msgstr "" 731 694 732 #: admin/options.php:6 77695 #: admin/options.php:698 733 696 msgid "No Text" 734 697 msgstr "" 735 698 736 #: admin/options.php:6 77 admin/options.php:1464 admin/options.php:1480699 #: admin/options.php:698 admin/options.php:1486 admin/options.php:1502 737 700 msgid "Excerpt" 738 701 msgstr "" 739 702 740 #: admin/options.php:6 77703 #: admin/options.php:698 741 704 msgid "Full Content" 742 705 msgstr "" 743 706 744 #: admin/options.php: 684 admin/options.php:883707 #: admin/options.php:705 admin/options.php:904 745 708 msgid "Read More Button" 746 709 msgstr "" 747 710 748 #: admin/options.php: 685711 #: admin/options.php:706 749 712 msgid "Configure the 'Read More' link text." 750 713 msgstr "" 751 714 752 #: admin/options.php: 691715 #: admin/options.php:712 753 716 msgid "Make icons clickable (linking to their respective pages)." 754 717 msgstr "" 755 718 756 #: admin/options.php:7 03 admin/options.php:722 admin/options.php:741757 #: admin/options.php:7 60719 #: admin/options.php:724 admin/options.php:743 admin/options.php:762 720 #: admin/options.php:781 758 721 #, php-format 759 722 msgid "Block %d" 760 723 msgstr "" 761 724 762 #: admin/options.php:8 00725 #: admin/options.php:821 763 726 msgid "Boxes Content" 764 727 msgstr "" 765 728 766 #: admin/options.php:8 01 admin/options.php:802729 #: admin/options.php:822 admin/options.php:823 767 730 msgid "All Categories" 768 731 msgstr "" 769 732 770 #: admin/options.php:8 16733 #: admin/options.php:837 771 734 msgid "Number of Boxes" 772 735 msgstr "" 773 736 774 #: admin/options.php:8 23737 #: admin/options.php:844 775 738 msgid "Boxes Per Row" 776 739 msgstr "" 777 740 778 #: admin/options.php:8 39741 #: admin/options.php:860 779 742 msgid "Box Height" 780 743 msgstr "" 781 744 782 #: admin/options.php:8 40745 #: admin/options.php:861 783 746 msgid "" 784 747 "The width is a percentage dependent on total site width and number of " … … 786 749 msgstr "" 787 750 788 #: admin/options.php:8 51751 #: admin/options.php:872 789 752 msgid "Box Layout" 790 753 msgstr "" 791 754 792 #: admin/options.php:8 53755 #: admin/options.php:874 793 756 msgid "Full width" 794 757 msgstr "" 795 758 796 #: admin/options.php:8 53759 #: admin/options.php:874 797 760 msgid "Boxed (content width)" 798 761 msgstr "" 799 762 800 #: admin/options.php:8 60763 #: admin/options.php:881 801 764 msgid "Box Stacking" 802 765 msgstr "" 803 766 804 #: admin/options.php:8 62767 #: admin/options.php:883 805 768 msgid "Joined" 806 769 msgstr "" 807 770 808 #: admin/options.php:8 62771 #: admin/options.php:883 809 772 msgid "Apart" 810 773 msgstr "" 811 774 812 #: admin/options.php:8 69775 #: admin/options.php:890 813 776 msgid "Box Appearance" 814 777 msgstr "" 815 778 816 #: admin/options.php:8 71779 #: admin/options.php:892 817 780 msgid "Animated" 818 781 msgstr "" 819 782 820 #: admin/options.php:8 71783 #: admin/options.php:892 821 784 msgid "Static" 822 785 msgstr "" 823 786 824 #: admin/options.php: 893787 #: admin/options.php:914 825 788 msgid "Content Length (words)" 826 789 msgstr "" 827 790 828 #: admin/options.php:9 02 admin/options.php:910 admin/options.php:918829 #: admin/options.php:9 26791 #: admin/options.php:923 admin/options.php:931 admin/options.php:939 792 #: admin/options.php:947 830 793 #, php-format 831 794 msgid "Text Area %d" 832 795 msgstr "" 833 796 834 #: admin/options.php:9 35797 #: admin/options.php:956 835 798 msgid "" 836 799 "Page properties that will be used:<br>- page title as text title<br>- page " … … 839 802 msgstr "" 840 803 841 #: admin/options.php:9 44804 #: admin/options.php:965 842 805 msgid "Site Background" 843 806 msgstr "" 844 807 845 #: admin/options.php:9 50includes/setup.php:187808 #: admin/options.php:971 includes/setup.php:187 846 809 msgid "Site Text" 847 810 msgstr "" 848 811 849 #: admin/options.php:9 56includes/setup.php:182812 #: admin/options.php:977 includes/setup.php:182 850 813 msgid "Content Headings" 851 814 msgstr "" 852 815 853 #: admin/options.php:9 62includes/setup.php:192816 #: admin/options.php:983 includes/setup.php:192 854 817 msgid "Content Background" 855 818 msgstr "" 856 819 857 #: admin/options.php:9 68820 #: admin/options.php:989 858 821 msgid "Secondary Content Background" 859 822 msgstr "" 860 823 861 #: admin/options.php:9 69824 #: admin/options.php:990 862 825 msgid "Secondary sidebar" 863 826 msgstr "" 864 827 865 #: admin/options.php:9 78828 #: admin/options.php:999 866 829 msgid "Primary Accent" 867 830 msgstr "" 868 831 869 #: admin/options.php: 984832 #: admin/options.php:1005 870 833 msgid "Secondary Accent" 871 834 msgstr "" 872 835 873 #: admin/options.php: 991836 #: admin/options.php:1012 874 837 msgid "Header Background" 875 838 msgstr "" 876 839 877 #: admin/options.php: 997840 #: admin/options.php:1018 878 841 msgid "Menu Text" 879 842 msgstr "" 880 843 881 #: admin/options.php:10 03844 #: admin/options.php:1024 882 845 msgid "Submenu Text" 883 846 msgstr "" 884 847 885 #: admin/options.php:10 09848 #: admin/options.php:1030 886 849 msgid "Footer Background" 887 850 msgstr "" 888 851 889 #: admin/options.php:10 15852 #: admin/options.php:1036 890 853 msgid "Footer Text" 891 854 msgstr "" 892 855 893 #: admin/options.php:10 21856 #: admin/options.php:1042 894 857 msgid "Blocks" 895 858 msgstr "" 896 859 897 #: admin/options.php:10 27860 #: admin/options.php:1048 898 861 msgid "Boxes" 899 862 msgstr "" 900 863 901 #: admin/options.php:10 51 admin/options.php:1081 admin/options.php:1110902 #: admin/options.php:11 40 admin/options.php:1169 admin/options.php:1199903 #: admin/options.php:12 28864 #: admin/options.php:1072 admin/options.php:1103 admin/options.php:1132 865 #: admin/options.php:1162 admin/options.php:1191 admin/options.php:1221 866 #: admin/options.php:1250 904 867 msgid "100 thin" 905 868 msgstr "" 906 869 907 #: admin/options.php:10 51 admin/options.php:1081 admin/options.php:1110908 #: admin/options.php:11 40 admin/options.php:1169 admin/options.php:1199909 #: admin/options.php:12 28870 #: admin/options.php:1072 admin/options.php:1103 admin/options.php:1132 871 #: admin/options.php:1162 admin/options.php:1191 admin/options.php:1221 872 #: admin/options.php:1250 910 873 msgid "200 extra-light" 911 874 msgstr "" 912 875 913 #: admin/options.php:10 51 admin/options.php:1081 admin/options.php:1110914 #: admin/options.php:11 40 admin/options.php:1169 admin/options.php:1199915 #: admin/options.php:12 28876 #: admin/options.php:1072 admin/options.php:1103 admin/options.php:1132 877 #: admin/options.php:1162 admin/options.php:1191 admin/options.php:1221 878 #: admin/options.php:1250 916 879 msgid "300 ligher" 917 880 msgstr "" 918 881 919 #: admin/options.php:10 51 admin/options.php:1081 admin/options.php:1110920 #: admin/options.php:11 40 admin/options.php:1169 admin/options.php:1199921 #: admin/options.php:12 28882 #: admin/options.php:1072 admin/options.php:1103 admin/options.php:1132 883 #: admin/options.php:1162 admin/options.php:1191 admin/options.php:1221 884 #: admin/options.php:1250 922 885 msgid "400 regular" 923 886 msgstr "" 924 887 925 #: admin/options.php:10 51 admin/options.php:1081 admin/options.php:1110926 #: admin/options.php:11 40 admin/options.php:1169 admin/options.php:1199927 #: admin/options.php:12 28888 #: admin/options.php:1072 admin/options.php:1103 admin/options.php:1132 889 #: admin/options.php:1162 admin/options.php:1191 admin/options.php:1221 890 #: admin/options.php:1250 928 891 msgid "500 medium" 929 892 msgstr "" 930 893 931 #: admin/options.php:10 51 admin/options.php:1081 admin/options.php:1110932 #: admin/options.php:11 40 admin/options.php:1169 admin/options.php:1199933 #: admin/options.php:12 28894 #: admin/options.php:1072 admin/options.php:1103 admin/options.php:1132 895 #: admin/options.php:1162 admin/options.php:1191 admin/options.php:1221 896 #: admin/options.php:1250 934 897 msgid "600 semi-bold" 935 898 msgstr "" 936 899 937 #: admin/options.php:10 51 admin/options.php:1081 admin/options.php:1110938 #: admin/options.php:11 40 admin/options.php:1169 admin/options.php:1199939 #: admin/options.php:12 28900 #: admin/options.php:1072 admin/options.php:1103 admin/options.php:1132 901 #: admin/options.php:1162 admin/options.php:1191 admin/options.php:1221 902 #: admin/options.php:1250 940 903 msgid "700 bold" 941 904 msgstr "" 942 905 943 #: admin/options.php:10 51 admin/options.php:1081 admin/options.php:1110944 #: admin/options.php:11 40 admin/options.php:1169 admin/options.php:1199945 #: admin/options.php:12 28906 #: admin/options.php:1072 admin/options.php:1103 admin/options.php:1132 907 #: admin/options.php:1162 admin/options.php:1191 admin/options.php:1221 908 #: admin/options.php:1250 946 909 msgid "800 extra-bold" 947 910 msgstr "" 948 911 949 #: admin/options.php:10 51 admin/options.php:1081 admin/options.php:1110950 #: admin/options.php:11 40 admin/options.php:1169 admin/options.php:1199951 #: admin/options.php:12 28912 #: admin/options.php:1072 admin/options.php:1103 admin/options.php:1132 913 #: admin/options.php:1162 admin/options.php:1191 admin/options.php:1221 914 #: admin/options.php:1250 952 915 msgid "900 black" 953 916 msgstr "" 954 917 955 #: admin/options.php:10 64918 #: admin/options.php:1086 956 919 msgid "" 957 920 "The fonts under the <em>Preferred Theme Fonts</em> list are recommended " … … 959 922 msgstr "" 960 923 961 #: admin/options.php:10 65 admin/options.php:1095 admin/options.php:1124962 #: admin/options.php:11 54 admin/options.php:1183 admin/options.php:1213963 #: admin/options.php:12 42924 #: admin/options.php:1087 admin/options.php:1117 admin/options.php:1146 925 #: admin/options.php:1176 admin/options.php:1205 admin/options.php:1235 926 #: admin/options.php:1264 964 927 msgid "or enter Google Font Identifier" 965 928 msgstr "" 966 929 967 #: admin/options.php:11 01930 #: admin/options.php:1123 968 931 msgid "Main Menu" 969 932 msgstr "" 970 933 971 #: admin/options.php:11 31934 #: admin/options.php:1153 972 935 msgid "Widget Title" 973 936 msgstr "" 974 937 975 #: admin/options.php:11 60938 #: admin/options.php:1182 976 939 msgid "Widget Content" 977 940 msgstr "" 978 941 979 #: admin/options.php:1 190942 #: admin/options.php:1212 980 943 msgid "Post/Page Titles" 981 944 msgstr "" 982 945 983 #: admin/options.php:12 19946 #: admin/options.php:1241 984 947 msgid "Headings" 985 948 msgstr "" 986 949 987 #: admin/options.php:12 49950 #: admin/options.php:1271 988 951 msgid "Line Height" 989 952 msgstr "" 990 953 991 #: admin/options.php:12 56954 #: admin/options.php:1278 992 955 msgid "Text Alignment" 993 956 msgstr "" 994 957 995 #: admin/options.php:12 58958 #: admin/options.php:1280 996 959 msgid "Justify" 997 960 msgstr "" 998 961 999 #: admin/options.php:12 64962 #: admin/options.php:1286 1000 963 msgid "Paragraph Spacing" 1001 964 msgstr "" 1002 965 1003 #: admin/options.php:12 71966 #: admin/options.php:1293 1004 967 msgid "Paragraph Indentation" 1005 968 msgstr "" 1006 969 1007 #: admin/options.php:1 281970 #: admin/options.php:1303 1008 971 msgid "Breadcrumbs" 1009 972 msgstr "" 1010 973 1011 #: admin/options.php:1 288974 #: admin/options.php:1310 1012 975 msgid "Numbered Pagination" 1013 976 msgstr "" 1014 977 1015 #: admin/options.php:1 295978 #: admin/options.php:1317 1016 979 msgid "Page/Category Titles" 1017 980 msgstr "" 1018 981 1019 #: admin/options.php:1 297982 #: admin/options.php:1319 1020 983 msgid "Always Visible" 1021 984 msgstr "" 1022 985 1023 #: admin/options.php:1 297986 #: admin/options.php:1319 1024 987 msgid "Hide on Pages" 1025 988 msgstr "" 1026 989 1027 #: admin/options.php:1 297990 #: admin/options.php:1319 1028 991 msgid "Hide on Categories" 1029 992 msgstr "" 1030 993 1031 #: admin/options.php:1 297994 #: admin/options.php:1319 1032 995 msgid "Always Hidden" 1033 996 msgstr "" 1034 997 1035 #: admin/options.php:13 03998 #: admin/options.php:1325 1036 999 msgid "Back to Top Button" 1037 1000 msgstr "" 1038 1001 1039 #: admin/options.php:13 051002 #: admin/options.php:1327 1040 1003 msgid "Bottom of page" 1041 1004 msgstr "" 1042 1005 1043 #: admin/options.php:13 051006 #: admin/options.php:1327 1044 1007 msgid "In footer" 1045 1008 msgstr "" 1046 1009 1047 #: admin/options.php:13 111010 #: admin/options.php:1333 1048 1011 msgid "Tables Style" 1049 1012 msgstr "" 1050 1013 1051 #: admin/options.php:13 131014 #: admin/options.php:1335 1052 1015 msgid "No border" 1053 1016 msgstr "" 1054 1017 1055 #: admin/options.php:13 131018 #: admin/options.php:1335 1056 1019 msgid "Clean" 1057 1020 msgstr "" 1058 1021 1059 #: admin/options.php:13 131022 #: admin/options.php:1335 1060 1023 msgid "Stripped" 1061 1024 msgstr "" 1062 1025 1063 #: admin/options.php:13 131026 #: admin/options.php:1335 1064 1027 msgid "Bordered" 1065 1028 msgstr "" 1066 1029 1067 #: admin/options.php:13 191030 #: admin/options.php:1341 1068 1031 msgid "Tags Cloud Appearance" 1069 1032 msgstr "" 1070 1033 1071 #: admin/options.php:13 211034 #: admin/options.php:1343 1072 1035 msgid "Size Emphasis" 1073 1036 msgstr "" 1074 1037 1075 #: admin/options.php:13 211038 #: admin/options.php:1343 1076 1039 msgid "Uniform Boxes" 1077 1040 msgstr "" 1078 1041 1079 #: admin/options.php:13 271042 #: admin/options.php:1349 1080 1043 msgid "Custom Footer Text" 1081 1044 msgstr "" 1082 1045 1083 #: admin/options.php:13 281046 #: admin/options.php:1350 1084 1047 msgid "" 1085 1048 "Insert custom text or basic HTML code that will appear in your footer. <br />" … … 1087 1050 msgstr "" 1088 1051 1089 #: admin/options.php:13 361052 #: admin/options.php:1358 1090 1053 msgid "Border" 1091 1054 msgstr "" 1092 1055 1093 #: admin/options.php:13 421056 #: admin/options.php:1364 1094 1057 msgid "Shadow" 1095 1058 msgstr "" 1096 1059 1097 #: admin/options.php:13 481060 #: admin/options.php:1370 1098 1061 msgid "Rounded Corners" 1099 1062 msgstr "" 1100 1063 1101 #: admin/options.php:13 491064 #: admin/options.php:1371 1102 1065 msgid "These decorations apply to certain theme elements." 1103 1066 msgstr "" 1104 1067 1105 #: admin/options.php:13 541068 #: admin/options.php:1376 1106 1069 msgid "Article Animation on Scroll" 1107 1070 msgstr "" 1108 1071 1109 #: admin/options.php:13 561072 #: admin/options.php:1378 1110 1073 msgid "None" 1111 1074 msgstr "" 1112 1075 1113 #: admin/options.php:13 561076 #: admin/options.php:1378 1114 1077 msgid "Fade" 1115 1078 msgstr "" 1116 1079 1117 #: admin/options.php:13 561080 #: admin/options.php:1378 1118 1081 msgid "Slide" 1119 1082 msgstr "" 1120 1083 1121 #: admin/options.php:13 561084 #: admin/options.php:1378 1122 1085 msgid "Grow" 1123 1086 msgstr "" 1124 1087 1125 #: admin/options.php:13 651088 #: admin/options.php:1387 1126 1089 msgid "Add Search to Main Menu" 1127 1090 msgstr "" 1128 1091 1129 #: admin/options.php:13 711092 #: admin/options.php:1393 1130 1093 msgid "Add Search to Footer Menu" 1131 1094 msgstr "" 1132 1095 1133 #: admin/options.php:1 3801096 #: admin/options.php:1402 1134 1097 msgid "Post Images" 1135 1098 msgstr "" 1136 1099 1137 #: admin/options.php:1 3831100 #: admin/options.php:1405 1138 1101 msgid "No Styling" 1139 1102 msgstr "" 1140 1103 1141 #: admin/options.php:1 387 admin/options.php:1391 admin/options.php:13951142 #: admin/options.php:1 399 admin/options.php:14031104 #: admin/options.php:1409 admin/options.php:1413 admin/options.php:1417 1105 #: admin/options.php:1421 admin/options.php:1425 1143 1106 #, php-format 1144 1107 msgid "Style %d" 1145 1108 msgstr "" 1146 1109 1147 #: admin/options.php:14 121110 #: admin/options.php:1434 1148 1111 msgid "Post Captions" 1149 1112 msgstr "" 1150 1113 1151 #: admin/options.php:14 141114 #: admin/options.php:1436 1152 1115 msgid "Plain" 1153 1116 msgstr "" 1154 1117 1155 #: admin/options.php:14 141118 #: admin/options.php:1436 1156 1119 msgid "With Border" 1157 1120 msgstr "" 1158 1121 1159 #: admin/options.php:14 141122 #: admin/options.php:1436 1160 1123 msgid "With Background" 1161 1124 msgstr "" 1162 1125 1163 #: admin/options.php:14 241126 #: admin/options.php:1446 1164 1127 msgid "Display Author" 1165 1128 msgstr "" 1166 1129 1167 #: admin/options.php:14 301130 #: admin/options.php:1452 1168 1131 msgid "Display Date" 1169 1132 msgstr "" 1170 1133 1171 #: admin/options.php:14 361134 #: admin/options.php:1458 1172 1135 msgid "Display Time" 1173 1136 msgstr "" 1174 1137 1175 #: admin/options.php:14 421138 #: admin/options.php:1464 1176 1139 msgid "Display Category" 1177 1140 msgstr "" 1178 1141 1179 #: admin/options.php:14 481142 #: admin/options.php:1470 1180 1143 msgid "Display Tags" 1181 1144 msgstr "" 1182 1145 1183 #: admin/options.php:14 541146 #: admin/options.php:1476 1184 1147 msgid "Display Comments" 1185 1148 msgstr "" 1186 1149 1187 #: admin/options.php:14 551150 #: admin/options.php:1477 1188 1151 msgid "Choose meta information to show on posts." 1189 1152 msgstr "" 1190 1153 1191 #: admin/options.php:14 621154 #: admin/options.php:1484 1192 1155 msgid "Standard Posts On Homepage" 1193 1156 msgstr "" 1194 1157 1195 #: admin/options.php:14 64 admin/options.php:1472 admin/options.php:14801158 #: admin/options.php:1486 admin/options.php:1494 admin/options.php:1502 1196 1159 msgid "Full Post" 1197 1160 msgstr "" 1198 1161 1199 #: admin/options.php:14 651162 #: admin/options.php:1487 1200 1163 msgid "Post formats always display full posts." 1201 1164 msgstr "" 1202 1165 1203 #: admin/options.php:14 701166 #: admin/options.php:1492 1204 1167 msgid "Sticky Posts on Homepage" 1205 1168 msgstr "" 1206 1169 1207 #: admin/options.php:14 721170 #: admin/options.php:1494 1208 1171 msgid "Inherit" 1209 1172 msgstr "" 1210 1173 1211 #: admin/options.php:1 4781174 #: admin/options.php:1500 1212 1175 msgid "Standard Posts in Categories/Archives" 1213 1176 msgstr "" 1214 1177 1215 #: admin/options.php:1 4891178 #: admin/options.php:1511 1216 1179 msgid "Excerpt Length (words)" 1217 1180 msgstr "" 1218 1181 1219 #: admin/options.php:1 4951182 #: admin/options.php:1517 1220 1183 msgid "Excerpt Suffix" 1221 1184 msgstr "" 1222 1185 1223 #: admin/options.php:15 011186 #: admin/options.php:1523 1224 1187 msgid "Continue Reading Label" 1225 1188 msgstr "" 1226 1189 1227 #: admin/options.php:15 091190 #: admin/options.php:1531 1228 1191 msgid "'Comments Are Closed' Text" 1229 1192 msgstr "" 1230 1193 1231 #: admin/options.php:15 111194 #: admin/options.php:1533 1232 1195 msgid "Show" 1233 1196 msgstr "" 1234 1197 1235 #: admin/options.php:15 111198 #: admin/options.php:1533 1236 1199 msgid "Hide in posts" 1237 1200 msgstr "" 1238 1201 1239 #: admin/options.php:15 111202 #: admin/options.php:1533 1240 1203 msgid "Hide in pages" 1241 1204 msgstr "" 1242 1205 1243 #: admin/options.php:15 111206 #: admin/options.php:1533 1244 1207 msgid "Hide everywhere" 1245 1208 msgstr "" 1246 1209 1247 #: admin/options.php:15 171210 #: admin/options.php:1539 1248 1211 msgid "Comment Date Format" 1249 1212 msgstr "" 1250 1213 1251 #: admin/options.php:15 191214 #: admin/options.php:1541 1252 1215 msgid "Specific" 1253 1216 msgstr "" 1254 1217 1255 #: admin/options.php:15 191218 #: admin/options.php:1541 1256 1219 msgid "Relative" 1257 1220 msgstr "" 1258 1221 1259 #: admin/options.php:15 251222 #: admin/options.php:1547 1260 1223 msgid "Comment Field Label" 1261 1224 msgstr "" 1262 1225 1263 #: admin/options.php:15 271226 #: admin/options.php:1549 1264 1227 msgid "Placeholders" 1265 1228 msgstr "" 1266 1229 1267 #: admin/options.php:15 271230 #: admin/options.php:1549 1268 1231 msgid "Labels" 1269 1232 msgstr "" 1270 1233 1271 #: admin/options.php:15 281234 #: admin/options.php:1550 1272 1235 msgid "Change to labels for better compatibility with comment-related plugins." 1273 1236 msgstr "" 1274 1237 1275 #: admin/options.php:15 371238 #: admin/options.php:1559 1276 1239 msgid "Comment Form Width" 1277 1240 msgstr "" 1278 1241 1279 #: admin/options.php:15 451242 #: admin/options.php:1567 1280 1243 msgid "Featured Images" 1281 1244 msgstr "" 1282 1245 1283 #: admin/options.php:15 521246 #: admin/options.php:1574 1284 1247 msgid "Auto Select Image From Content" 1285 1248 msgstr "" 1286 1249 1287 #: admin/options.php:15 631250 #: admin/options.php:1585 1288 1251 msgid "Featured Image Height" 1289 1252 msgstr "" 1290 1253 1291 #: admin/options.php:15 641254 #: admin/options.php:1586 1292 1255 msgid "Set to 0 to disable image processing" 1293 1256 msgstr "" 1294 1257 1295 #: admin/options.php:1 5791258 #: admin/options.php:1601 1296 1259 msgid "Featured Image Behaviour" 1297 1260 msgstr "" 1298 1261 1299 #: admin/options.php:1 5801262 #: admin/options.php:1602 1300 1263 msgid "" 1301 1264 "<strong>Contained</strong> will scale depending on the viewed resolution<br>" … … 1303 1266 msgstr "" 1304 1267 1305 #: admin/options.php:1 5851268 #: admin/options.php:1607 1306 1269 msgid "Featured Image Crop Position" 1307 1270 msgstr "" 1308 1271 1309 #: admin/options.php:1 5871272 #: admin/options.php:1609 1310 1273 msgid "No Crop" 1311 1274 msgstr "" 1312 1275 1313 #: admin/options.php:1 5871276 #: admin/options.php:1609 1314 1277 msgid "Left Top" 1315 1278 msgstr "" 1316 1279 1317 #: admin/options.php:1 5871280 #: admin/options.php:1609 1318 1281 msgid "Left Center" 1319 1282 msgstr "" 1320 1283 1321 #: admin/options.php:1 5871284 #: admin/options.php:1609 1322 1285 msgid "Left Bottom" 1323 1286 msgstr "" 1324 1287 1325 #: admin/options.php:1 5871288 #: admin/options.php:1609 1326 1289 msgid "Right Top" 1327 1290 msgstr "" 1328 1291 1329 #: admin/options.php:1 5871292 #: admin/options.php:1609 1330 1293 msgid "Right Center" 1331 1294 msgstr "" 1332 1295 1333 #: admin/options.php:1 5871296 #: admin/options.php:1609 1334 1297 msgid "Right Bottom" 1335 1298 msgstr "" 1336 1299 1337 #: admin/options.php:1 5871300 #: admin/options.php:1609 1338 1301 msgid "Center Top" 1339 1302 msgstr "" 1340 1303 1341 #: admin/options.php:1 5871304 #: admin/options.php:1609 1342 1305 msgid "Center Center" 1343 1306 msgstr "" 1344 1307 1345 #: admin/options.php:1 5871308 #: admin/options.php:1609 1346 1309 msgid "Center Bottom" 1347 1310 msgstr "" 1348 1311 1349 #: admin/options.php:16 031312 #: admin/options.php:1625 1350 1313 msgid "Use Featured Images in Header" 1351 1314 msgstr "" 1352 1315 1353 #: admin/options.php:16 131316 #: admin/options.php:1635 1354 1317 msgid "Display in Header" 1355 1318 msgstr "" 1356 1319 1357 #: admin/options.php:16 191320 #: admin/options.php:1641 1358 1321 msgid "Display in Footer" 1359 1322 msgstr "" 1360 1323 1361 #: admin/options.php:16 251324 #: admin/options.php:1647 1362 1325 msgid "Display in Left Sidebar" 1363 1326 msgstr "" 1364 1327 1365 #: admin/options.php:16 311328 #: admin/options.php:1653 1366 1329 msgid "Display in Right Sidebar" 1367 1330 msgstr "" 1368 1331 1369 #: admin/options.php:16 321370 #, php-format 1371 msgid "" 1372 "Select where social icons should be visible in.<br><br><strong>Social Icons "1373 "are defined using the <a href=\"%1$s\" target=\"_blank\">social icons"1374 " menu</a></strong>. Read the <a href=\"%2$s\" target=\"_blank\">theme "1375 "documentation</a> on how to create a social menu."1376 msgstr "" 1377 1378 #: admin/options.php:16 401332 #: admin/options.php:1654 1333 #, php-format 1334 msgid "" 1335 "Select where social icons should be displayed.<br><br><strong>Social Icons " 1336 "are defined using the <a href=\"%1$s\" target=\"_blank\">socials menu</a>" 1337 "</strong>. Read the <a href=\"%2$s\" target=\"_blank\">theme " 1338 "documentation</a> for detailed information." 1339 msgstr "" 1340 1341 #: admin/options.php:1662 1379 1342 msgid "Default Pages Menu" 1380 1343 msgstr "" 1381 1344 1382 #: admin/options.php:1648 1383 msgid "Custom Theme CSS" 1384 msgstr "" 1385 1386 #: admin/options.php:1649 1387 msgid "" 1388 "Insert your custom theme CSS. Styling declarations made here will override " 1389 "the theme's if they are specific enough." 1390 msgstr "" 1391 1392 #: admin/options.php:1657 1393 msgid "" 1394 "Since version 4.7 WordPress includes an Additional CSS field of its own. We " 1395 "recommend you switch to using that one for better options consistency." 1396 msgstr "" 1397 1398 #: admin/options.php:1664 1345 #: admin/options.php:1670 1399 1346 msgid "Masonry" 1400 1347 msgstr "" 1401 1348 1402 #: admin/options.php:167 21349 #: admin/options.php:1678 1403 1350 msgid "JS Defer loading" 1404 1351 msgstr "" 1405 1352 1406 #: admin/options.php:168 11353 #: admin/options.php:1687 1407 1354 msgid "Autoscroll" 1408 1355 msgstr "" 1409 1356 1410 #: admin/options.php:16 891357 #: admin/options.php:1695 1411 1358 msgid "Header image size requirements" 1412 1359 msgstr "" 1413 1360 1414 #: admin/options.php:1 6971361 #: admin/options.php:1703 1415 1362 msgid "Force mobile menu on iOS mobile devices" 1416 1363 msgstr "" 1417 1364 1418 #: admin/options.php:17 051365 #: admin/options.php:1711 1419 1366 msgid "Editor Styles" 1420 1367 msgstr "" 1421 1368 1422 #: admin/options.php:171 31369 #: admin/options.php:1719 1423 1370 msgid "FitVids" 1424 1371 msgstr "" 1425 1372 1426 #: admin/options.php:17 151373 #: admin/options.php:1721 1427 1374 msgid "Enable" 1428 1375 msgstr "" 1429 1376 1430 #: admin/options.php:17 151377 #: admin/options.php:1721 1431 1378 msgid "Enable on mobiles" 1432 1379 msgstr "" 1433 1380 1434 #: admin/options.php:17 151381 #: admin/options.php:1721 1435 1382 msgid "Disable" 1436 1383 msgstr "" 1437 1384 1438 #: admin/options.php:17 161385 #: admin/options.php:1722 1439 1386 msgid "<br>Only use these options to troubleshoot issues." 1440 1387 msgstr "" 1441 1388 1442 #: admin/options.php:22 231389 #: admin/options.php:2232 1443 1390 msgid "Sidebar Left" 1444 1391 msgstr "" 1445 1392 1446 #: admin/options.php:223 01393 #: admin/options.php:2239 1447 1394 msgid "Sidebar Right" 1448 1395 msgstr "" 1449 1396 1450 #: admin/options.php:22 381397 #: admin/options.php:2247 1451 1398 msgid "" 1452 1399 "You can configure how many columns the footer displays from the theme options" 1453 1400 msgstr "" 1454 1401 1455 #: admin/options.php:22 451402 #: admin/options.php:2254 1456 1403 msgid "Content Before" 1457 1404 msgstr "" 1458 1405 1459 #: admin/options.php:22 521406 #: admin/options.php:2261 1460 1407 msgid "Content After" 1408 msgstr "" 1409 1410 #: admin/options.php:2269 1411 msgid "" 1412 "This widget area is displayed over the header image and requires an image to " 1413 "be set." 1461 1414 msgstr "" 1462 1415 … … 1513 1466 msgstr "" 1514 1467 1515 #: includes/core.php:347 1468 #. $layout_class 1469 #: includes/core.php:353 1516 1470 msgid "Home" 1517 1471 msgstr "" 1518 1472 1519 #: includes/core.php:348 1520 msgid "Archive for category" 1521 msgstr "" 1522 1523 #: includes/core.php:349 1524 msgid "Search results for" 1525 msgstr "" 1526 1527 #: includes/core.php:350 1473 #. $text_home 1474 #: includes/core.php:354 1475 #, php-format 1476 msgid "Archive for category \"%s\"" 1477 msgstr "" 1478 1479 #. $text_archive 1480 #: includes/core.php:355 1481 #, php-format 1482 msgid "Search results for \"%s\"" 1483 msgstr "" 1484 1485 #. $text_search 1486 #: includes/core.php:356 1528 1487 msgid "Posts tagged" 1529 1488 msgstr "" 1530 1489 1531 #: includes/core.php:351 1490 #. $text_tag 1491 #: includes/core.php:357 1532 1492 msgid "Articles posted by" 1533 1493 msgstr "" 1534 1494 1535 #: includes/core.php:353 1495 #. $text_404 1496 #: includes/core.php:359 1536 1497 msgid "Post format" 1537 1498 msgstr "" 1538 1499 1539 #: includes/core.php:354 1500 #. $text_format 1501 #: includes/core.php:360 1540 1502 msgid "Page" 1541 1503 msgstr "" … … 1583 1545 msgstr "" 1584 1546 1585 #: includes/comments.php:2 51547 #: includes/comments.php:24 1586 1548 msgid "Pingback: " 1587 1549 msgstr "" 1588 1550 1589 #: includes/comments.php:2 5 includes/comments.php:551551 #: includes/comments.php:24 includes/comments.php:54 1590 1552 msgid "(Edit)" 1591 1553 msgstr "" 1592 1554 1593 #: includes/comments.php:47 1555 #. 1: date, 2: time 1556 #: includes/comments.php:46 1594 1557 msgid "at" 1595 1558 msgstr "" 1596 1559 1597 #: includes/comments.php: 501560 #: includes/comments.php:49 1598 1561 #, php-format 1599 1562 msgctxt "%s = human-readable time difference" … … 1601 1564 msgstr "" 1602 1565 1603 #: includes/comments.php:6 21566 #: includes/comments.php:61 1604 1567 msgid "Your comment is awaiting moderation." 1605 1568 msgstr "" 1606 1569 1607 #: includes/comments.php: 701570 #: includes/comments.php:69 1608 1571 msgid "Reply" 1609 1572 msgstr "" 1610 1573 1574 #: includes/comments.php:92 1575 msgid "Leave a comment" 1576 msgstr "" 1577 1611 1578 #: includes/comments.php:93 1612 msgid "Leave a comment" 1613 msgstr "" 1614 1615 #: includes/comments.php:127 includes/comments.php:128 1579 #| msgid "One Comment" 1580 #| msgid_plural "%1$s Comments" 1581 msgid "One Comment" 1582 msgstr "" 1583 1584 #: includes/comments.php:124 includes/comments.php:125 1616 1585 msgid "Name" 1617 1586 msgstr "" 1618 1587 1619 #: includes/comments.php:1 31 includes/comments.php:1321588 #: includes/comments.php:128 includes/comments.php:129 1620 1589 msgid "Email" 1621 1590 msgstr "" 1622 1591 1623 #: includes/comments.php:13 5 includes/comments.php:1361592 #: includes/comments.php:132 includes/comments.php:133 1624 1593 msgid "Website" 1625 1594 msgstr "" 1626 1595 1627 #: includes/comments.php:1 401596 #: includes/comments.php:137 1628 1597 msgid "" 1629 1598 "Save my name, email, and site URL in my browser for next time I post a " … … 1631 1600 msgstr "" 1632 1601 1633 #: includes/comments.php:14 9 includes/comments.php:1501602 #: includes/comments.php:146 includes/comments.php:147 1634 1603 msgctxt "noun" 1635 1604 msgid "Comment" -
fluida/1.8.6/page.php
r135857 r144713 13 13 get_header(); ?> 14 14 15 <div id="container" class="<?php echofluida_get_layout_class(); ?>">15 <div id="container" class="<?php fluida_get_layout_class(); ?>"> 16 16 17 <main id="main" role="main"class="main">17 <main id="main" class="main"> 18 18 <?php cryout_before_content_hook(); ?> 19 19 20 20 <?php get_template_part( 'content/content', 'page' ); ?> 21 21 -
fluida/1.8.6/readme.txt
r135857 r144713 3 3 Contributors: Cryout Creations 4 4 Requires at least: 4.5 5 Tested up to: 5. 56 Stable tag: 1.8. 57 Requires PHP: 5. 35 Tested up to: 5.7 6 Stable tag: 1.8.6 7 Requires PHP: 5.4 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl.html … … 16 16 Fluida also features social menus with over 100 social network icons available in 4 locations, 3 menus, 6 widget areas, 8 page templates, all post formats, is translation ready, RTL and compatible with older browsers. 17 17 18 Copyright 2015-20 19Cryout Creations18 Copyright 2015-2021 Cryout Creations 19 19 https://www.cryoutcreations.eu/ 20 20 … … 87 87 == Changelog == 88 88 89 = 1.8.6 = 90 *Release date - 15.03.2021* 91 92 * Fixed "Inherit General Font" option not working as expected 93 * Fixed block editor galleries layout 94 * Fixed team members photos having a weird aspect ratio after Team Members plugin update 95 * Fixed text indent option adding indentation to icons (including shortcodes) 96 * Fixed search form overlapping mobile menu elements with small general font sizes 97 * Fixed left sidebar navigation not being displayed when there are no widgets assigned 98 * Fixed JS focus effects possibly breaking dynamic buttons functionality 99 * Improved main navigation fallback markup 100 * Renamed landing page 'static image' element to 'banner image' for clarity 101 * Removed all padding/margins from before/after content and top/bottom inner widget areas 102 * Added click-navigation to target panels in header content and site identity hints 103 * Added configuration hint for header image when the theme's slider / banner image is active on the homepage 104 * Cleaned up and optimized frontend scripts, including for WordPress 5.5/5.6 jQuery updates 105 * Updated to Cryout Framework 0.8.5.7: 106 * Expanded hint control styling to apply in the Site Identity panel 107 * Fixed multi-font choices failing to apply correctly 108 * Added echo parameters to cryout_schema_microdata() and cryout_font_select() functions 109 * Improved breadcrumbs compatibility with plugins that filter section titles and add HTML markup 110 * Improved JS code to remove jQuery deprecation notices since WordPress 5.6 111 * Changed custom post type label in breadcrumbs from singular_name to name 112 * Better cleaning of weights in font enqueues 113 * Added the ability to inherit the general font on all other font control options 114 * Fixed Select2 selectors no longer working with WordPress 5.6 on Firefox 115 * Removed PHP and WP versions checks as these are now handled by WordPress 116 89 117 = 1.8.5 = 90 118 *Release date - 03.09.2020* 91 119 * Improved mobile menu color options handling 92 120 * Additional accessibility improvements 93 * Fixed editor font sizes using the incorrect normal font size121 * Fixed block editor font sizes using the incorrect 'regular' slug 94 122 * Fixed page layout meta option not working since 1.8.4 95 123 * Fixed social icons sometimes overlapping mobile menu toggler on RTL -
fluida/1.8.6/resources/fonts/fontfaces.css
r135857 r144713 5 5 */ 6 6 7 /* System Fonts */ 8 @font-face { 9 font-family: "System Font"; 10 font-style: normal; 11 src: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; 12 } 7 13 /* Glyph Icons */ 8 14 … … 23 29 font-style: normal; 24 30 font-weight: normal; 25 speak: n one;31 speak: never; 26 32 display: inline-block; 27 33 text-decoration: inherit; … … 277 283 font-style: normal; 278 284 font-weight: normal; 279 speak: n one;285 speak: never; 280 286 content: '\e83d'; 281 287 display: inline-block; … … 516 522 font-style: normal; 517 523 font-weight: normal; 518 speak: n one;524 speak: never; 519 525 display: inline-block; 520 526 text-decoration: inherit; … … 530 536 } 531 537 532 [id*="fluida_settings"].customize-control-iconselect select, 533 [id*="fluida_settings"].customize-control-iconselect select option, 534 [id*="fluida_settings"].customize-control-iconselect .select2-container, 535 [id*="fluida-plus_settings"].customize-control-iconselect select, 536 [id*="fluida-plus_settings"].customize-control-iconselect select option, 537 [id*="fluida-plus_settings"].customize-control-iconselect .select2-container, 538 .customize-control-cryout-iconselect select, 539 .customize-control-cryout-iconselect select option, 540 .customize-control-cryout-iconselect .select2-container, 538 541 .select2-container.cryout-iconselect .select2-results__option { 539 font-family: "fluida-blocks" ;542 font-family: "fluida-blocks", -apple-system, BlinkMacSystemFont, sans-serif; 540 543 } 541 544 -
fluida/1.8.6/resources/js/ajax.js
r135857 r144713 30 30 * Load new posts when the link is clicked. 31 31 */ 32 $( '#cryout_ajax_more_trigger' ). click(function() {32 $( '#cryout_ajax_more_trigger' ).on( 'click', function() { 33 33 /* Loading gif */ 34 34 $( this ).addClass( 'cryout_click_loading' ); … … 46 46 /* Add articles one by one */ 47 47 $data.each( function() { 48 $( this ).css( 'opacity', '0').appendTo( '#content-masonry' );48 $( this ).css( 'opacity', 0 ).appendTo( '#content-masonry' ); 49 49 }); 50 50 … … 53 53 /* Add articles one by one */ 54 54 $data.each( function() { 55 $( this ).css( 'opacity', '0').appendTo( '#content-masonry' );55 $( this ).css( 'opacity', 0 ).appendTo( '#content-masonry' ); 56 56 }); 57 57 … … 71 71 else { // if not masonry 72 72 $data.each( function() { 73 $( this ).css( {'opacity': '1', 'transform': 'none', '-webkit-transform': 'none'} ).appendTo( '#content-masonry' );73 $( this ).css( {'opacity': 1, 'transform': 'none', '-webkit-transform': 'none'} ).appendTo( '#content-masonry' ); 74 74 }); 75 75 if ( cryout_theme_settings.fitvids == 1 ) { $( this ).fitVids(); } -
fluida/1.8.6/resources/js/frontend.js
r135857 r144713 5 5 */ 6 6 7 /*8 * DOCUMENT.READY()9 */10 7 jQuery( document ).ready( function() { 11 8 … … 13 10 cryoutMobileMenuInit(); 14 11 cryoutFixedMobileMenu(); 15 cryoutInitNav( '#mobile-menu');12 cryoutInitNav( '#mobile-menu' ); 16 13 cryoutMenuAnimate(); 17 14 cryoutBackToTop(); … … 23 20 cryoutTitleLettering() 24 21 cryoutBoxesAnimation(); 25 cryoutRemoveFocus( '#access a, #site-title a, button');22 cryoutRemoveFocus(); 26 23 27 24 if ( ( (cryout_theme_settings.fitvids == 2) && (cryout_theme_settings.is_mobile == 1) ) || ( cryout_theme_settings.fitvids == 1 ) ) { … … 35 32 }); /* document.ready */ 36 33 37 /* 38 * WINDOW.LOAD() 39 */ 40 jQuery( window ).load( function() { 34 jQuery( window ).on( 'load', function() { 41 35 42 36 /* trigger scroll on load */ … … 49 43 50 44 /* 51 * FUNCTIONS 52 */ 53 45 * Functions 46 **/ 47 48 /* Force LP boxes images ratios */ 54 49 function cryoutLpBoxesRatios() { 55 for ( index = 1; index <= cryout_theme_settings.lpboxratios.length; ++index) {56 jQuery( '.lp-boxes-' +index+' .lp-box-image' ).keepRatio( cryout_theme_settings.lpboxratios[index-1] );50 for ( var index = 1; index <= cryout_theme_settings.lpboxratios.length; ++index ) { 51 jQuery( '.lp-boxes-' + index + ' .lp-box-image' ).keepRatio( cryout_theme_settings.lpboxratios[index-1] ); 57 52 } 58 53 } /* cryoutLpBoxesRatios() */ … … 60 55 function cryoutBoxesAnimation() { 61 56 jQuery( ".lp-boxes-animated.lp-boxes" ).mousedir( ".lp-boxes-animated.lp-boxes:not(.lp-boxes-animated2) .lp-box" ); 62 } 57 } /* cryoutBoxesAnimation() */ 63 58 64 59 /* Site Title Letter break */ … … 82 77 /* Menu animation */ 83 78 function cryoutMenuAnimate() { 84 jQuery( "#access > .menu ul li > a:not(:only-child)" ).attr( "aria-haspopup", "true");/* IE10 mobile Fix */85 86 jQuery( "#access li" ).hover(function() {87 jQuery( this ).addClass( 'menu-hover');88 } , function() {89 jQuery( this ).removeClass( 'menu-hover');90 } );91 92 jQuery( '#access ul').find('a').on( 'focus', function() {79 jQuery( '#access > .menu ul li > a:not(:only-child)' ).attr( 'aria-haspopup', 'true' );/* IE10 mobile Fix */ 80 81 jQuery( '#access li' ).on( 'mouseenter', function() { 82 jQuery( this ).addClass( 'menu-hover' ); 83 } ).on( 'mouseleave', function() { 84 jQuery( this ).removeClass( 'menu-hover' ); 85 } ); 86 87 jQuery( '#access ul' ).find( 'a' ).on( 'focus', function() { 93 88 jQuery( this ).parents( '.menu-item, .page_item' ).addClass( 'menu-hover' ); 94 } );95 96 jQuery( '#access ul').find('a').on( 'blur', function() {89 } ); 90 91 jQuery( '#access ul' ).find( 'a' ).on( 'blur', function() { 97 92 jQuery( this ).parents( '.menu-item, .page_item' ).removeClass( 'menu-hover' ); 98 } );93 } ); 99 94 } /* cryoutMenuAnimate() */ 100 95 101 96 /* Back to top button animation */ 102 97 function cryoutBackToTop() { 103 jQuery( window ). scroll(function() {98 jQuery( window ).on( 'scroll', function() { 104 99 if ( jQuery( this ).scrollTop() > 500 ) { 105 100 jQuery( "#toTop" ).css( { "bottom": "-2px", "opacity": 1 } ); … … 112 107 jQuery( ".fluida-fixed-menu #site-header-main" ).removeClass( "header-fixed" ); 113 108 } 114 }); 115 jQuery( "#toTop" ).click( function( event ) { 109 } ); 110 111 jQuery( '#toTop' ).on( 'click', function( event ) { 116 112 event.preventDefault(); 117 jQuery( "html, body").animate( { scrollTop: 0 }, 500 );113 jQuery( 'html, body' ).animate( { scrollTop: 0 }, 500 ); 118 114 return false; 119 } );115 } ); 120 116 } /* cryoutBackToTop() */ 121 117 122 118 /* Search form animation */ 123 119 function cryoutSearchFormAnimation() { 124 var searchIcon = jQuery( "#access .menu-search-animated > a" ) ;125 var searchForm = jQuery( ".menu-search-animated .searchform" );126 varsearchInput = jQuery( "#access .menu-search-animated .s" );120 var searchIcon = jQuery( "#access .menu-search-animated > a" ), 121 searchForm = jQuery( ".menu-search-animated .searchform" ), 122 searchInput = jQuery( "#access .menu-search-animated .s" ); 127 123 128 124 searchIcon.on( 'click', function( event ) { 129 125 event.preventDefault(); 130 126 searchForm.slideToggle( 100 ); 131 searchInput. focus();127 searchInput.trigger( 'focus' ); 132 128 searchInput.css('outline', 'none'); 133 129 event.stopPropagation(); 134 } );135 136 searchForm. click(function( event ){130 } ); 131 132 searchForm.on( 'click', function( event ){ 137 133 event.stopPropagation(); 138 } );139 140 searchInput. blur(function() {134 } ); 135 136 searchInput.on( 'blur', function() { 141 137 searchForm.fadeOut( 100 ); 142 } );138 } ); 143 139 144 140 } /* cryoutSearchFormAnimation() */ … … 149 145 /* First and last elements in the menu */ 150 146 var firstTab = jQuery('nav#mobile-menu #mobile-nav > li:first-child a'); 151 var lastTab = jQuery('#nav-cancel '); /* Cancel button will always be last */ 152 153 jQuery("#nav-toggle").click(function(e){ 147 var lastTab = jQuery('#nav-cancel'); /* Cancel button will always be last */ 148 jQuery("#nav-toggle").on( 'click', function(e){ 154 149 e.preventDefault(); 155 150 jQuery("#mobile-menu").show().animate({left: "0"}, 500); 156 151 jQuery('body').addClass("noscroll"); 157 firstTab. focus();152 firstTab.trigger('focus'); 158 153 return false; 159 154 }); 160 155 161 jQuery("#nav-cancel"). click(function(e){156 jQuery("#nav-cancel").on( 'click', function(e){ 162 157 e.preventDefault(); 163 158 jQuery("#mobile-menu").animate({left: "100%"},500,function(){jQuery(this).css("left","-100%").hide();}); 164 159 jQuery('body').removeClass("noscroll"); 165 jQuery("#nav-toggle"). focus();160 jQuery("#nav-toggle").trigger('focus'); 166 161 return false; 167 162 }); … … 181 176 if ((e.which === 9 && e.shiftKey)) { 182 177 e.preventDefault(); 183 lastTab. focus();178 lastTab.trigger('focus'); 184 179 } 185 180 }); … … 190 185 if (e.keyCode === 27 ) { 191 186 jQuery('body').removeClass('noscroll'); 192 lastTab. focus();187 lastTab.trigger('focus'); 193 188 }; 194 189 }); … … 212 207 body = jQuery( 'body' ); 213 208 214 jQuery(window). scroll(function () {209 jQuery(window).on( 'scroll', function () { 215 210 var a = jQuery(window).scrollTop(); 216 211 var b = jQuery(document).height(); … … 221 216 currentScrollBottom = b; 222 217 223 if ( c < currentScrollTop && a > navbarHeight + navbarHeight) {218 if ( c < currentScrollTop && a > navbarHeight + navbarHeight ) { 224 219 /* scrolling down */ 225 220 body.removeClass('mobile-fixed'); … … 240 235 241 236 /* Add submenus toggles to the primary navigation */ 242 function cryoutInitNav( selector) {243 244 container = jQuery( selector);237 function cryoutInitNav( selector ) { 238 239 container = jQuery( selector ); 245 240 246 241 /* Add dropdown toggle that display child menu items. */ … … 250 245 /* Toggle buttons and submenu items with active children menu items. */ 251 246 container.find( '.current-menu-ancestor > button, .current-page-ancestor > button' ).addClass( 'toggle-on' ); 252 container.find( '.current-menu-ancestor > .sub-menu, .current-page-ancestor > .sub-menu, .current-menu-ancestor .children, .current-page-ancestor .children' ).show( 0).addClass( 'toggled-on' );253 254 container.find( '.dropdown-toggle' ). click(function( e ) {247 container.find( '.current-menu-ancestor > .sub-menu, .current-page-ancestor > .sub-menu, .current-menu-ancestor .children, .current-page-ancestor .children' ).show( 0 ).addClass( 'toggled-on' ); 248 249 container.find( '.dropdown-toggle' ).on( 'click', function( e ) { 255 250 var _this = jQuery( this ); 256 251 e.preventDefault(); 257 252 _this.toggleClass( 'toggle-on' ); 258 253 if ( _this.hasClass( 'toggle-on') ) { 259 _this.next( '.children, .sub-menu' ).show( 0).addClass( 'toggled-on' );260 _this.prev( "a").addClass( "toggled-on");254 _this.next( '.children, .sub-menu' ).show( 0 ).addClass( 'toggled-on' ); 255 _this.prev( 'a' ).addClass( 'toggled-on' ); 261 256 } 262 257 else { … … 265 260 _this.next( '.children, .sub-menu' ).find( 'a' ).removeClass( 'toggled-on' ); 266 261 _this.next( '.children, .sub-menu' ).find( '.dropdown-toggle' ).removeClass( 'toggled-on' ); 267 _this.prev( "a").removeClass( "toggled-on");268 269 setTimeout( function() {270 _this.next( '.children, .sub-menu' ).hide( 0);271 _this.next( '.children, .sub-menu' ).find( '.children, .sub-menu' ).hide( 0);272 }, 600)262 _this.prev( 'a' ).removeClass( 'toggled-on' ); 263 264 setTimeout( function() { 265 _this.next( '.children, .sub-menu' ).hide( 0 ); 266 _this.next( '.children, .sub-menu' ).find( '.children, .sub-menu' ).hide( 0 ); 267 }, 600 ); 273 268 } 274 269 … … 278 273 279 274 /* Close mobile menu on click/tap */ 280 jQuery( 'body').on('click','#mobile-nav a', function() {281 jQuery( '#nav-cancel i').trigger('click');282 } );275 jQuery( 'body' ).on( 'click', '#mobile-nav a', function() { 276 jQuery( '#nav-cancel i' ).trigger( 'click' ); 277 } ); 283 278 284 279 } /* cryoutInitNav() */ … … 289 284 var $this = jQuery( this ); 290 285 var nh = $this.width() / ratio; 291 $this.css( "height", nh + "px" ); 292 jQuery( window ).resize( function() { 286 $this.css( 'height', nh + 'px' ); 287 288 jQuery( window ).on( 'resize', function() { 293 289 var nh = $this.width() / ratio; 294 $this.css( "height", nh + "px");295 } );290 $this.css( 'height', nh + 'px' ); 291 } ); 296 292 297 293 }; /* keepRatio() */ … … 299 295 /* LP Box Mouse direction overlay animation */ 300 296 jQuery.fn.mousedir = function( el ) { 301 if ( ! jQuery( "body" ).hasClass( "fluida-landing-page") ) return;297 if ( ! jQuery( 'body' ).hasClass( 'fluida-landing-page' ) ) return; 302 298 303 299 var $this = jQuery( this ), 304 300 $el = jQuery( el ), 305 301 last_position = {}, 306 $output = "direction-down"; 307 308 jQuery( document ).on( "mousemove", function (event) { 309 310 if ( typeof( last_position.x ) != "undefined" ) { 311 var deltaX = last_position.x - event.offsetX, 312 deltaY = last_position.y - event.offsetY; 313 if ( Math.abs( deltaX ) > Math.abs( deltaY ) && deltaX > 0 ) { 314 $output = "direction-left"; 315 } else if ( Math.abs( deltaX ) > Math.abs( deltaY ) && deltaX < 0 ) { 316 $output = "direction-right"; 317 } else if ( Math.abs( deltaY ) > Math.abs( deltaX ) && deltaY > 0 ) { 318 $output = "direction-up"; 319 } else if ( Math.abs( deltaY ) > Math.abs( deltaX ) && deltaY < 0 ) { 320 $output = "direction-down"; 321 } else { 322 $output = "direction-down"; 302 $output = 'direction-down'; 303 304 jQuery( document ).on( 'mousemove', function ( event ) { 305 if ( typeof( last_position.x ) !== 'undefined' ) { 306 var deltaX = last_position.x - event.offsetX, 307 deltaY = last_position.y - event.offsetY; 308 if ( ( Math.abs( deltaX ) > Math.abs( deltaY ) ) && ( deltaX > 0 ) ) { 309 $output = 'direction-left'; 310 } else if ( ( Math.abs( deltaX ) > Math.abs( deltaY ) ) && ( deltaX < 0 ) ) { 311 $output = 'direction-right'; 312 } else if ( ( Math.abs( deltaY ) > Math.abs( deltaX ) ) && ( deltaY > 0 ) ) { 313 $output = 'direction-up'; 314 } else if ( ( Math.abs( deltaY ) > Math.abs( deltaX ) ) && ( deltaY < 0 ) ) { 315 $output = 'direction-down'; 316 } else { 317 $output = 'direction-down'; 323 318 } 324 319 } 325 320 last_position = { 326 x : event.offsetX,327 y : event.offsetY321 x : event.offsetX, 322 y : event.offsetY 328 323 }; 329 330 }); 331 332 $el.on( "mouseenter", function() {333 jQuery( this ).removeClass( "in-direction-left in-direction-right in-direction-up in-direction-down out-direction-left out-direction-right out-direction-up out-direction-down");334 jQuery( this ).addClass( "in-"+ $output );324 } ); 325 326 $el.on( 'mouseenter', function() { 327 $this.removeClass( 'in-direction-left in-direction-right in-direction-up in-direction-down' + 328 ' out-direction-left out-direction-right out-direction-up out-direction-down' ); 329 $this.addClass( 'in-' + $output ); 335 330 return; 336 }); 337 $el.on( "mouseleave", function() { 338 jQuery( this ).removeClass( "in-direction-left in-direction-right in-direction-up in-direction-down out-direction-left out-direction-right out-direction-up out-direction-down" ); 339 jQuery( this ).addClass( "out-" + $output ); 331 } ); 332 333 $el.on( 'mouseleave', function() { 334 $this.removeClass( 'in-direction-left in-direction-right in-direction-up in-direction-down ' + 335 ' out-direction-left out-direction-right out-direction-up out-direction-down' ); 336 $this.addClass( 'out-' + $output ); 340 337 return; 341 } );338 } ); 342 339 343 340 }; /* mouseDir() */ 344 341 345 /* Seeif element is visible in browser window */342 /* Check if element is visible in browser window */ 346 343 jQuery.fn.visible = function( partial ) { 347 344 var $t = jQuery( this ), … … 410 407 411 408 /* Remove all off-canvas states */ 412 function cryoutRemoveFocus( selector) {413 jQuery( selector).on('mouseup mousedown', function() {409 function cryoutRemoveFocus() { 410 jQuery( '#access a, #site-title a').on('mouseup mousedown', function() { 414 411 jQuery( this ).blur(); 415 412 }); … … 421 418 /* Tabs widget */ 422 419 function cryoutTabsWidget() { 423 var tabsNav = jQuery('.cryout-wtabs-nav'), 424 tabsNavLis = tabsNav.children('li'), 425 tabsContainer = jQuery('.cryout-wtabs-container'); 426 427 tabsNav.each(function() { 428 var localthis = jQuery(this); 429 localthis.next().children('.cryout-wtab').stop(true, true).children('li').hide().parent().siblings( localthis.find('a').attr('href') ).children('li').show(); 430 localthis.children('li').first().addClass('active').stop(true, true).show(); 431 }); 432 433 tabsNavLis.on('click', function(e) { 434 var localthis = jQuery(this); 435 436 localthis.siblings().removeClass('active').end().addClass('active'); 437 var tabs_duration = 200; 438 localthis.parent().next().children('.cryout-wtab').stop(true, true).children( 'li' ).hide().parent().siblings( localthis.find('a').attr('href') ).children('li').each( function(index){ 439 jQuery(this).fadeIn(tabs_duration*(index+1)); 440 }); 420 var tabsNav = jQuery( '.cryout-wtabs-nav' ), 421 tabsNavLis = tabsNav.children( 'li' ); 422 423 tabsNav.each( function() { 424 var localthis = jQuery( this ); 425 localthis.next().children( '.cryout-wtab' ).stop( true, true ) 426 .children( 'li' ).hide() 427 .parent().siblings( localthis.find( 'a' ).attr( 'href' ) ) 428 .children( 'li' ).show(); 429 localthis.children( 'li' ).first() 430 .addClass( 'active' ).stop( true, true ).show(); 431 } ); 432 433 tabsNavLis.on( 'click', function( e ) { 434 var localthis = jQuery( this ), 435 tabs_duration = 200; 436 437 localthis.siblings().removeClass( 'active' ).end().addClass( 'active' ); 438 localthis.parent().next().children( '.cryout-wtab' ).stop( true, true ) 439 .children( 'li' ).hide() 440 .parent().siblings( localthis.find( 'a' ).attr( 'href' ) ) 441 .children( 'li' ).each( function( index ) { 442 jQuery( this ).fadeIn( tabs_duration * ( index + 1 ) ); 443 } ); 441 444 e.preventDefault(); 442 }).children( window.location.hash ? 'a[href="' + window.location.hash + '"]' : 'a:first' ).trigger('click'); 445 } ).children( window.location.hash ? 'a[href="' + window.location.hash + '"]' : 'a:first' ) 446 .trigger( 'click' ); 443 447 444 448 } /* cryoutTabsWidget() */ … … 446 450 /* Blog Masonry */ 447 451 function cryoutMasonry() { 448 if ( ( cryout_theme_settings.masonry == 1 ) && ( cryout_theme_settings.magazine != 1 ) && ( typeof jQuery.fn.masonry !== 'undefined' ) ) { 449 jQuery('#content-masonry').masonry({ 452 if ( ( cryout_theme_settings.masonry == 1 ) && 453 ( cryout_theme_settings.magazine != 1 ) && 454 ( typeof jQuery.fn.masonry !== 'undefined' ) 455 ) { 456 jQuery( '#content-masonry' ).masonry( { 450 457 itemSelector: 'article', 451 458 columnWidth: 'article', 452 459 percentPosition: true, 453 460 isRTL: cryout_theme_settings.rtl, 454 } );461 } ); 455 462 } 456 463 } /* cryoutMasonry() */ … … 459 466 function cryoutPortfolioMasonry() { 460 467 if ( ( cryout_theme_settings.masonry == 1 ) && ( typeof jQuery.fn.masonry !== 'undefined' ) ) { 461 jQuery( '#lp-portfolio .jetpack-portfolio-shortcode').masonry({468 jQuery( '#lp-portfolio .jetpack-portfolio-shortcode' ).masonry( { 462 469 itemSelector: '.portfolio-entry', 463 470 columnWidth: '.portfolio-entry:not(.hidey)', 464 471 percentPosition: true, 465 472 isRTL: cryout_theme_settings.rtl, 466 } );473 } ); 467 474 } 468 475 } /* cryoutPortfolioMasonry() */ … … 470 477 /* Portfolio filtering */ 471 478 function cryoutPortfolioFilter() { 472 jQuery( 'body').on('click', '#portfolio-filter > a', function(e) {479 jQuery( 'body' ).on( 'click', '#portfolio-filter > a', function( e ) { 473 480 e.preventDefault(); 474 jQuery( '#portfolio-filter > a').removeClass('active');475 jQuery( this).addClass('active');476 var filter = jQuery( this).attr('data-slug');477 jQuery( '#portfolio-masonry .portfolio-entry').each( function(i,elm) {478 if ( filter == 'all') {479 jQuery( elm).removeClass('hidey').fadeIn('fast');481 jQuery( '#portfolio-filter > a' ).removeClass( 'active' ); 482 jQuery( this ).addClass( 'active' ); 483 var filter = jQuery( this ).attr( 'data-slug' ); 484 jQuery( '#portfolio-masonry .portfolio-entry' ).each( function( i, elm ) { 485 if ( filter == 'all' ) { 486 jQuery( elm ).removeClass( 'hidey' ).fadeIn( 'fast' ); 480 487 } else { 481 if ( ! jQuery(elm).hasClass('type-'+filter) ) {482 jQuery( elm).addClass('hidey').fadeOut('fast');488 if ( ! jQuery( elm ).hasClass( 'type-' + filter ) ) { 489 jQuery( elm ).addClass( 'hidey' ).fadeOut( 'fast' ); 483 490 } else { 484 jQuery( elm).removeClass('hidey').fadeIn('fast');491 jQuery( elm ).removeClass( 'hidey' ).fadeIn( 'fast' ); 485 492 } 486 493 } 487 } ).promise().done( function() {488 cryoutPortfolioMasonry();489 /*jQuery('.jetpack-portfolio-shortcode').masonry();*/490 } );494 } ).promise().done( function() { 495 cryoutPortfolioMasonry(); 496 /*jQuery('.jetpack-portfolio-shortcode').masonry();*/ 497 } ); 491 498 return false; 492 } );499 } ); 493 500 } /* cryoutPortfolioFilter() */ 501 /** 502 * Scroll to anchors 503 */ 504 function cryoutAutoScroll(document, history, location) { 505 document = window.document; 506 history = window.history; 507 location = window.location; 508 var HISTORY_SUPPORT = !! ( history && history.pushState ); 509 var anchorScrolls = { 510 ANCHOR_REGEX: /^#[^ ]+$/, 511 OFFSET_HEIGHT_PX: jQuery( '.kahuna-fixed-menu #site-header-main' ).height(), 512 513 /* Establish events, and fix initial scroll position if a hash is provided. */ 514 init: function() { 515 this.scrollToCurrent(); 516 jQuery( window ).on( 517 'hashchange', 518 jQuery.proxy( this, 'scrollToCurrent' ) 519 ); 520 jQuery( 'body' ).on( 521 'click', 522 '.main a, nav ul li a, .meta-arrow', 523 jQuery.proxy( this, 'delegateAnchors' ) 524 ); 525 }, 526 527 /* Return the offset amount to deduct from the normal scroll position. 528 Modify as appropriate to allow for dynamic calculations. */ 529 getFixedOffset: function() { 530 return ( this.OFFSET_HEIGHT_PX ) ? this.OFFSET_HEIGHT_PX : 0; 531 }, 532 533 /* If the provided href is an anchor which resolves to an element on the page, scroll to it. */ 534 scrollIfAnchor: function( href, pushToHistory ) { 535 var match, anchorOffset; 536 537 if ( ! this.ANCHOR_REGEX.test( href ) ) { 538 return false; 539 } 540 541 match = document.getElementById(href.slice(1)); 542 543 if ( match && ( ! isInViewport( match ) ) && jQuery( match ).offset().top ) { 544 anchorOffset = jQuery( match ).offset().top - this.getFixedOffset(); 545 jQuery( 'html, body' ).animate( { scrollTop: anchorOffset} ); 546 547 /* Add the state to history as-per normal anchor links */ 548 if ( HISTORY_SUPPORT && pushToHistory ) { 549 history.pushState( {}, document.title, location.pathname + href ); 550 } 551 } 552 553 return !!match; 554 }, 555 556 /* Attempt to scroll to the current location's hash */ 557 scrollToCurrent: function(e) { 558 if (this.scrollIfAnchor(window.location.hash) && e) { 559 e.preventDefault(); 560 } 561 }, 562 563 /* If the click event's target was an anchor, fix the scroll position */ 564 delegateAnchors: function( e ) { 565 var elem = e.target.closest( 'a' ); 566 567 if ( this.scrollIfAnchor( elem.getAttribute( 'href' ), true ) ) { 568 e.preventDefault(); 569 } 570 } 571 }; 572 573 jQuery( document ).ready( jQuery.proxy( anchorScrolls, 'init' ) ); 574 } 494 575 495 576 /* FitVids 1.1*/ … … 573 654 574 655 /* IE .closest() fix */ 575 if (window.Element && !Element.prototype.closest) { 576 Element.prototype.closest = 577 function(s) { 578 var matches = (this.document || this.ownerDocument).querySelectorAll(s), 656 if ( window.Element && ( ! Element.prototype.closest ) ) { 657 Element.prototype.closest = function( s ) { 658 var matches = ( this.document || this.ownerDocument ).querySelectorAll( s ), 579 659 i, 580 660 el = this; 581 661 do { 582 662 i = matches.length; 583 while (--i >= 0 && matches.item( i) !== el) {};584 } while ( (i < 0) && (el = el.parentElement));663 while (--i >= 0 && matches.item( i ) !== el) {} 664 } while ( (i < 0) && ( el = el.parentElement ) ); 585 665 return el; 586 666 }; 587 667 } 588 668 589 /**590 * Scroll to anchors591 */592 function cryoutAutoScroll(document, history, location) {593 document = window.document;594 history = window.history;595 location = window.location;596 var HISTORY_SUPPORT = !!(history && history.pushState);597 var anchorScrolls = {598 ANCHOR_REGEX: /^#[^ ]+$/,599 OFFSET_HEIGHT_PX: jQuery('.fluida-fixed-menu #site-header-main').height()+40,600 601 /**602 * Establish events, and fix initial scroll position if a hash is provided.603 */604 init: function() {605 this.scrollToCurrent();606 jQuery(window).on('hashchange', jQuery.proxy(this, 'scrollToCurrent'));607 jQuery('body').on('click', '.main a, nav ul li a', jQuery.proxy(this, 'delegateAnchors'));608 },609 610 /**611 * Return the offset amount to deduct from the normal scroll position.612 * Modify as appropriate to allow for dynamic calculations613 */614 getFixedOffset: function() {615 return this.OFFSET_HEIGHT_PX;616 },617 618 /**619 * If the provided href is an anchor which resolves to an element on the620 * page, scroll to it.621 * @param {String} href622 * @return {Boolean} - Was the href an anchor.623 */624 scrollIfAnchor: function(href, pushToHistory) {625 var match, anchorOffset;626 627 if(!this.ANCHOR_REGEX.test(href)) {628 return false;629 }630 631 match = document.getElementById(href.slice(1));632 633 if(match && ! jQuery(match).visible( true )) {634 anchorOffset = jQuery(match).offset().top - this.getFixedOffset();635 jQuery('html, body').animate({ scrollTop: anchorOffset});636 637 /* Add the state to history as-per normal anchor links */638 if(HISTORY_SUPPORT && pushToHistory) {639 history.pushState({}, document.title, location.pathname + href);640 }641 }642 643 return !!match;644 },645 646 /**647 * Attempt to scroll to the current location's hash.648 */649 scrollToCurrent: function(e) {650 if(this.scrollIfAnchor(window.location.hash) && e) {651 e.preventDefault();652 }653 },654 655 /**656 * If the click event's target was an anchor, fix the scroll position.657 */658 delegateAnchors: function(e) {659 var elem = e.target.closest('a');660 661 if(this.scrollIfAnchor(elem.getAttribute('href'), true)) {662 e.preventDefault();663 }664 }665 };666 667 jQuery(document).ready(jQuery.proxy(anchorScrolls, 'init'));668 }669 670 669 /* FIN */ -
fluida/1.8.6/search.php
r135857 r144713 8 8 get_header(); ?> 9 9 10 <div id="container" class="<?php echofluida_get_layout_class(); ?>">11 <main id="main" role="main"class="main">10 <div id="container" class="<?php fluida_get_layout_class(); ?>"> 11 <main id="main" class="main"> 12 12 <?php cryout_before_content_hook(); ?> 13 13 -
fluida/1.8.6/sidebar-left.php
r135857 r144713 7 7 ?> 8 8 9 <?php if ( is_active_sidebar( 'sidebar-2' ) || current_user_can( 'edit_theme_options' ) ): ?>10 <aside id="primary" class="widget-area sidey" role="complementary"<?php cryout_schema_microdata( 'sidebar' );?>>9 <?php if ( is_active_sidebar( 'sidebar-2' ) || has_nav_menu( 'sidebar' ) || current_user_can( 'edit_theme_options' ) ): ?> 10 <aside id="primary" class="widget-area sidey" <?php cryout_schema_microdata( 'sidebar' );?>> 11 11 <?php cryout_before_primary_widgets_hook(); ?> 12 12 … … 14 14 dynamic_sidebar( 'sidebar-2' ); 15 15 else: 16 if ( current_user_can( 'edit_theme_options' ) ) { ?>16 if ( current_user_can( 'edit_theme_options' ) && ! has_nav_menu( 'sidebar' ) ) { ?> 17 17 <section class="widget-container widget-placeholder"> 18 <h 3 class="widget-title"><?php _e( 'Left Sidebar', 'fluida' ); ?></h3>18 <h2 class="widget-title"><?php _e( 'Left Sidebar', 'fluida' ); ?></h2> 19 19 <p> 20 20 <?php -
fluida/1.8.6/sidebar-right.php
r135857 r144713 8 8 9 9 <?php if ( is_active_sidebar( 'sidebar-1' ) || current_user_can( 'edit_theme_options' ) ): ?> 10 <aside id="secondary" class="widget-area sidey" role="complementary"<?php cryout_schema_microdata( 'sidebar' );?>>10 <aside id="secondary" class="widget-area sidey" <?php cryout_schema_microdata( 'sidebar' );?>> 11 11 <?php cryout_before_secondary_widgets_hook(); ?> 12 12 … … 16 16 if ( current_user_can( 'edit_theme_options' ) ) { ?> 17 17 <section class="widget-container widget-placeholder"> 18 <h 3 class="widget-title"><?php _e( 'Right Sidebar', 'fluida' ); ?></h3>18 <h2 class="widget-title"><?php _e( 'Right Sidebar', 'fluida' ); ?></h2> 19 19 <p> 20 20 <?php … … 24 24 </p> 25 25 </section> 26 26 27 27 <?php } 28 28 endif; ?> -
fluida/1.8.6/single.php
r135857 r144713 8 8 get_header();?> 9 9 10 <div id="container" class="<?php echofluida_get_layout_class(); ?>">11 <main id="main" role="main"class="main">10 <div id="container" class="<?php fluida_get_layout_class(); ?>"> 11 <main id="main" class="main"> 12 12 <?php cryout_before_content_hook(); ?> 13 13 -
fluida/1.8.6/style.css
r135857 r144713 5 5 Author: Cryout Creations 6 6 Author URI: http://www.cryoutcreations.eu 7 Version: 1.8. 58 Tested up to: 5. 59 Requires PHP: 5. 37 Version: 1.8.6 8 Tested up to: 5.7 9 Requires PHP: 5.4 10 10 License: GNU General Public License v3.0 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 13 13 Text Domain: fluida 14 14 15 Fluida WordPress Theme - Copyright 2015 , Cryout Creations - http://www.cryoutcreations.eu15 Fluida WordPress Theme - Copyright 2015-2021, Cryout Creations - http://www.cryoutcreations.eu 16 16 This theme, like WordPress, is licensed under the GPL. 17 17 */ … … 461 461 textarea:focus, 462 462 select:focus, 463 input:focus { 464 outline: thin dotted; 463 input:focus, 464 button:focus, 465 a:focus { 466 /* outline: thin dotted; */ 465 467 } 466 468 … … 507 509 } 508 510 511 .entry-content a:not([class]), 512 .entry-excerpt a:not([class]), 513 #comments .comment-body a:not([class]), 514 .widget-container.widget_text a:not([class]), 515 .lp-text .lp-text-content a:not([class]), 516 .lp-block .lp-block-text a:not([class]), 517 .lp-box .lp-box-text-inside a:not([class]) { 518 text-decoration: underline; 519 -webkit-transition: .2s ease-out all; 520 transition: .2s ease-out all; 521 } 522 509 523 /* Text meant only for screen readers. */ 510 524 .screen-reader-text { 511 border: 0;512 clip: rect(1px, 1px, 1px, 1px);513 clip-path: inset(50%);514 height: 1px;515 margin: -1px;516 overflow: hidden;517 padding: 0;518 position: absolute !important;519 width: 1px;520 word-wrap: normal !important;521 /* Many screen reader and browser combinations announce broken words as they would appear visually. */525 border: 0; 526 clip: rect(1px, 1px, 1px, 1px); 527 clip-path: inset(50%); 528 height: 1px; 529 margin: -1px; 530 overflow: hidden; 531 padding: 0; 532 position: absolute !important; 533 width: 1px; 534 word-wrap: normal !important; 535 /* Many screen reader and browser combinations announce broken words as they would appear visually. */ 522 536 } 523 537 524 538 .screen-reader-text:focus { 525 background-color: #f1f1f1;526 box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.2);527 clip: auto !important;528 clip-path: none;529 color: #222;530 display: block;531 font-size: 14px;532 font-size: 0.875rem;533 font-weight: bold;534 height: auto;535 left: 6px;536 line-height: normal;537 padding: 15px 23px 14px;538 text-decoration: none;539 top: 6px;540 width: auto;541 z-index: 100000;542 /* Above WP toolbar. */539 background-color: #f1f1f1; 540 box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.2); 541 clip: auto !important; 542 clip-path: none; 543 color: #222; 544 display: block; 545 font-size: 14px; 546 font-size: 0.875rem; 547 font-weight: bold; 548 height: auto; 549 left: 6px; 550 line-height: normal; 551 padding: 15px 23px 14px; 552 text-decoration: none; 553 top: 6px; 554 width: auto; 555 z-index: 100000; 556 /* Above WP toolbar. */ 543 557 } 544 558 … … 561 575 .wp-block-quote.is-large, .wp-block-quote.is-style-large { 562 576 padding: 1.5em; 563 }564 565 .aligncenter[class^='wp-block']:not([class^='wp-block-cover']) {566 display: table;567 577 } 568 578 … … 987 997 988 998 #access .sub-menu, 989 #access .children {} 999 #access .children { 1000 } 990 1001 991 1002 #access ul ul { … … 1267 1278 } 1268 1279 1269 #mobile-menu .menu-main-search { /* Search form in mobile menu will always be top*/1280 #mobile-menu .menu-main-search { /* searchbar overlaps first menu item with smaller (<.9em) text */ 1270 1281 position: absolute; 1271 1282 top: 0; … … 1277 1288 border: none; 1278 1289 font-size: 1.2em; 1290 z-index: -1; 1279 1291 } 1280 1292 … … 1831 1843 ## AUTHOR INFO 1832 1844 --------------------------------------------------------------*/ 1833 #author-info {1845 .author-info { 1834 1846 display: block; 1835 1847 clear: both; … … 1837 1849 } 1838 1850 1839 #author-info #author-avatar {1851 .author-info .author-avatar { 1840 1852 float: right; 1841 1853 height: 80px; … … 1843 1855 1844 1856 } 1845 #author-info #author-description {1857 .author-info .author-description { 1846 1858 float: left; 1847 1859 margin-right: 100px; 1848 1860 } 1849 1861 1850 article #author-info {1862 article .author-info { 1851 1863 clear: both; 1852 1864 overflow: hidden; … … 1856 1868 } 1857 1869 1858 #author-avatar .avatar {1870 .author-avatar .avatar { 1859 1871 border-radius: 4px; 1860 1872 } 1861 1873 1862 #author-info #author-link {1874 .author-info .author-link { 1863 1875 margin-top: .5em; 1864 1876 } … … 3862 3874 } 3863 3875 3864 .format-status .avatar {3876 .format-status .avatar-container { 3865 3877 display: block; 3866 3878 float: left; 3867 width: auto;3868 3879 margin-top: .5em; 3869 3880 margin-right: 1em; … … 3896 3907 3897 3908 #comments-title, 3898 #reply-title { 3909 #reply-title, 3910 .related-main-title { 3899 3911 font-size: 1.8em; 3900 3912 } … … 4286 4298 } 4287 4299 4288 /* ## BEFORE CONTENT AND AFTER CONTENT WIDGET AREAS */ 4300 /* ## INNER/OUTER TOP/BOTTOM WIDGET AREAS */ 4301 4302 .top-widget-area > section, 4303 .bottom-widget-area > section, 4304 .content-widget-before > section, 4305 .content-widget-after > section { 4306 padding: 0; 4307 } 4308 4309 .top-widget-area > section, 4310 .bottom-widget-area > section { 4311 margin: 0; 4312 } 4313 4289 4314 .yoyo .widget-title { 4290 4315 background: none; … … 4687 4712 margin-top: 0.5em; 4688 4713 margin-bottom: 0; 4714 font-size: 1em; 4689 4715 line-height: 1.3; 4716 } 4717 4718 .related-posts .related-title a { 4719 word-wrap: break-word; 4690 4720 } 4691 4721 … … 5667 5697 .fluida-metahide-headerimg #header-image-main-inside, 5668 5698 .fluida-metahide-breadcrumbs #breadcrumbs-container, 5699 .fluida-metahide-title.page .article-inner .entry-title, 5700 .fluida-metahide-title.single .article-inner .entry-title, 5669 5701 .fluida-metahide-colophon #colophon, 5670 5702 .fluida-metahide-footer #footer { … … 5806 5838 5807 5839 /* Team Members */ 5808 .tmm .tmm_ member .tmm_photo {5840 .tmm .tmm_container .tmm_member .tmm_photo { 5809 5841 border-radius: 20px !important; 5810 } 5811 5812 .tmm .tmm_member .tmm_textblock { 5842 padding-bottom: 0; 5843 } 5844 5845 .tmm .tmm_container .tmm_member .tmm_textblock { 5813 5846 padding: 10px 25px; 5814 5847 } … … 5816 5849 /* Jetpack Portfolio shortcode in widget */ 5817 5850 .widget-container h2.portfolio-entry-title { 5818 font-size: 1.2em;5851 font-size: 1.2em; 5819 5852 } 5820 5853 … … 5822 5855 body.safari, 5823 5856 .safari .lp-text { 5824 background-attachment: scroll;5857 background-attachment: scroll; 5825 5858 background-position: top center !important; 5826 5859 } … … 6333 6366 #nav-below, 6334 6367 .comment-navigation, 6335 #author-link,6368 .author-link, 6336 6369 #breadcrumbs-container, 6337 6370 a.continue-reading-link,
Note: See TracChangeset
for help on using the changeset viewer.