Make WordPress Themes

Changeset 144713


Ignore:
Timestamp:
03/15/2021 07:00:53 PM (5 years ago)
Author:
themedropbox
Message:

New version of Fluida - 1.8.6

Location:
fluida/1.8.6
Files:
2 added
4 deleted
45 edited
1 copied

Legend:

Unmodified
Added
Removed
  • fluida/1.8.6/admin/css/admin.css

    r135857 r144713  
    44 * @package Fluida
    55 */
    6 
    7 @import url("../../resources/fonts/fontfaces.css");
    86
    97.wrap,
  • fluida/1.8.6/admin/css/meta.css

    r135857 r144713  
    11/**
    2  * Styling for the meta boxes
     2 * Styling for the page templates meta
    33 *
    44 * @package Fluida
  • fluida/1.8.6/admin/main.php

    r135857 r144713  
    6161    wp_enqueue_style( 'wp-jquery-ui-dialog' );
    6262    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 );
    6464    $js_admin_options = array(
    6565        'reset_confirmation' => esc_html( __( 'Reset Fluida Settings to Defaults?', 'fluida' ) ),
     
    7878
    7979function fluida_page_fn() {
    80 
    81     $options = cryout_get_option();
    8280
    8381    if (!current_user_can('edit_theme_options'))  {
     
    9997
    10098        <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' ) ?>" />
    102100            <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' ),
    104102                    _CRYOUT_THEME_VERSION,
    105103                    '<a href="https://www.cryoutcreations.eu" target="_blank">Cryout Creations</a>'
    106                 ) ); ?><br>
     104                ) ) ); ?><br>
    107105                <?php do_action( 'cryout_admin_version' ); ?>
    108106            </span>
     
    119117            <?php
    120118                $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' ) ) ) );
    122120            ?>
    123121        </div>
     
    133131            <h3 class="hndle"><?php _e( 'Upgrade to Plus', 'fluida' ); ?></h3>
    134132            <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' ) ?>" />
    137135                <a class="button" href="https://www.cryoutcreations.eu/wordpress-themes/fluida" target="_blank" style="display: block;"><?php _e( 'Upgrade to Plus', 'fluida' ); ?></a>
    138136
  • fluida/1.8.6/admin/options.php

    r135857 r144713  
    9393
    9494    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;
    9698    };
    9799
    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;
    99110
    100111    return false;
     
    405416        'type' => 'notice',
    406417        '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') . ' &raquo;</strong></a>' ),
    408419        'input_attrs' => array( 'class' => '' ),
    409420        'priority' => 55,
    410421        'addon' => TRUE, // this option gets added to built-in WordPress section
    411422    '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') . ' &raquo;</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' ),
    412433
    413434    // Header
     
    441462        'type' => 'select',
    442463        'label' => __('Site Header Content','fluida'),
    443         'values' => array( 'title' , 'logo' , 'both' , 'empty' ),
     464        'values' => array( 'title', 'logo' , 'both' , 'empty' ),
    444465        'labels' => array( __("Site Title","fluida"), __("Logo","fluida"), __("Logo & Site Title","fluida"), __("Empty","fluida") ),
    445466        'desc' => '',
     
    463484        'input_attrs' => array( 'class' => '' ),
    464485        '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>' ),
    466487    'section' => 'fluida_headercontent' ),
    467488    array(
     
    565586            __("Serious Slider", "fluida"),
    566587            __("Use Shortcode","fluida"),
    567             __("Static Image","fluida"),
     588            __("Banner Image","fluida"),
    568589            __("Header Image","fluida"),
    569590            __("Disabled","fluida")
     
    574595    'id' => 'fluida_lpsliderimage',
    575596        'type' => 'media-image',
    576         'label' => __('Slider Image','fluida'),
    577         'desc' => __('The default image can be replaced by setting a new static image.', 'fluida'),
     597        'label' => __('Banner Image','fluida'),
     598        'desc' => __('The default image can be replaced by setting a new banner image.', 'fluida'),
    578599        'active_callback' => 'fluida_conditionals',
    579600    'section' => 'fluida_lpslider' ),
     
    604625    'id' => 'fluida_lpslidertitle',
    605626        'type' => 'text',
    606         'label' => __('Slider Caption','fluida'),
     627        'label' => __('Caption','fluida'),
    607628        'desc' => '',
    608629        'input_attrs' => array( 'placeholder' => __('Title', 'fluida') ),
     
    10571078        'label' => '',
    10581079        'desc' => '',
     1080        'no_inherit' => TRUE,
    10591081    'section' => 'fluida_fontfamily' ),
    10601082    array(
     
    16301652        'type' => 'checkbox',
    16311653        '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' ),
    16331655    'section' => 'fluida_socials' ),
    16341656
     
    17351757'fonts' => array(
    17361758
     1759    'Inherit' => array( // capitalization matters
     1760        'Inherit General Font',
     1761    ),
    17371762    'Preferred Theme Fonts'=> array(
    17381763                    "Source Sans Pro/gfont",
     
    17891814                    ),
    17901815    'Advanced' => array(
    1791                     "* Custom Font *",
     1816                    "* Local Font *",
    17921817                    ),
    17931818    ), // fonts
     
    22082233        'before_widget' => '<section id="%1$s" class="widget-container %2$s">',
    22092234        'after_widget' => '</section>',
    2210         'before_title' => '<h3 class="widget-title"><span>',
    2211         'after_title' => '</span></h3>',
     2235        'before_title' => '<h2 class="widget-title"><span>',
     2236        'after_title' => '</span></h2>',
    22122237    ),
    22132238    'sidebar-1' => array(
     
    22152240        'before_widget' => '<section id="%1$s" class="widget-container %2$s">',
    22162241        'after_widget' => '</section>',
    2217         'before_title' => '<h3 class="widget-title"><span>',
    2218         'after_title' => '</span></h3>',
     2242        'before_title' => '<h2 class="widget-title"><span>',
     2243        'after_title' => '</span></h2>',
    22192244    ),
    22202245    'footer-widget-area' => array(
     
    22232248        'before_widget' => '<section id="%1$s" class="widget-container %2$s"><div class="footer-widget-inside">',
    22242249        'after_widget' => '</div></section>',
    2225         'before_title' => '<h3 class="widget-title"><span>',
    2226         'after_title' => '</span></h3>',
     2250        'before_title' => '<h2 class="widget-title"><span>',
     2251        'after_title' => '</span></h2>',
    22272252    ),
    22282253    'content-widget-area-before' => array(
     
    22302255        'before_widget' => '<section id="%1$s" class="widget-container %2$s">',
    22312256        'after_widget' => '</section>',
    2232         'before_title' => '<h3 class="widget-title"><span>',
    2233         'after_title' => '</span></h3>',
     2257        'before_title' => '<h2 class="widget-title"><span>',
     2258        'after_title' => '</span></h2>',
    22342259    ),
    22352260    'content-widget-area-after' => array(
     
    22372262        'before_widget' => '<section id="%1$s" class="widget-container %2$s">',
    22382263        'after_widget' => '</section>',
    2239         'before_title' => '<h3 class="widget-title"><span>',
    2240         'after_title' => '</span></h3>',
     2264        'before_title' => '<h2 class="widget-title"><span>',
     2265        'after_title' => '</span></h2>',
    22412266    ),
    22422267    'widget-area-header' => array(
    22432268        'name' => __( 'Header', 'fluida' ),
     2269        'description'   => __('This widget area is displayed over the header image and requires an image to be set.', 'fluida'),
    22442270        'before_widget' => '<section id="%1$s" class="widget-container %2$s">',
    22452271        'after_widget' => '</section>',
    2246         'before_title' => '<h3 class="widget-title"><span>',
    2247         'after_title' => '</span></h3>',
     2272        'before_title' => '<h2 class="widget-title"><span>',
     2273        'after_title' => '</span></h2>',
    22482274    ),
    22492275), // widget-areas
  • fluida/1.8.6/archive.php

    r135857 r144713  
    1818get_header(); ?>
    1919
    20     <div id="container" class="<?php echo fluida_get_layout_class(); ?>">
     20    <div id="container" class="<?php fluida_get_layout_class(); ?>">
    2121        <main id="main" role="main" class="main">
    2222            <?php cryout_before_content_hook(); ?>
  • fluida/1.8.6/comments.php

    r135857 r144713  
    1818    <?php if ( have_comments() ) : ?>
    1919
    20         <h3 id="comments-title">
     20        <h2 id="comments-title">
    2121            <span>
    2222                <?php if ( 1 === absint( get_comments_number() ) ) {
     
    2727                } ?>
    2828            </span>
    29         </h3>
     29        </h2>
    3030
    3131        <ol class="commentlist">
  • fluida/1.8.6/content/user-bio.php

    r135857 r144713  
    99 */
    1010
    11 $fluida_heading_tag = ( is_single() ) ? 'h4' : 'h1';
     11$fluida_heading_tag = ( is_single() ) ? 'h2' : 'h1';
    1212?>
    13 <div id="author-info" <?php cryout_schema_microdata( 'author' ); ?>>
     13<div class="author-info" <?php cryout_schema_microdata( 'author' ); ?>>
    1414
    1515    <<?php echo $fluida_heading_tag ?> class="page-title">
     
    1818
    1919    <?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' );?>>
    2121            <?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 -->
    2323
    24         <div id="author-description"  <?php cryout_schema_microdata( 'author-description' ); ?>>
     24        <div class="author-description"  <?php cryout_schema_microdata( 'author-description' ); ?>>
    2525
    2626            <span><?php the_author_meta( 'description' ); ?></span>
    2727            <?php if ( is_single() ) { ?>
    28                 <div id="author-link">
     28                <div class="author-link">
    2929                    <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"  <?php cryout_schema_microdata( 'author-url' ); ?>>
    3030                        <?php printf( __( 'View all posts by ', 'fluida' ) . '%s <span class="meta-nav">&rarr;</span>', get_the_author() ); ?>
    3131                    </a>
    32                 </div><!-- #author-link -->
     32                </div><!-- .author-link -->
    3333            <?php } ?>
    3434
    35         </div><!-- #author-description -->
     35        </div><!-- .author-description -->
    3636    <?php endif; ?>
    3737
    38 </div><!-- #entry-author-info -->
     38</div><!-- .author-info -->
  • fluida/1.8.6/cryout/controls.php

    r135857 r144713  
    55
    66class Cryout_Customize_Link_Control extends WP_Customize_Control {
    7             public $type = 'link';
     7            public $type = 'cryout-link';
    88            public function render_content() {
    99                if ( !empty( $this->description ) ) { ?>
     
    2020
    2121    class Cryout_Customize_About_Section extends WP_Customize_Section {
    22         public $type = 'about';
     22        public $type = 'cryout-about-section';
    2323        public $button = FALSE;
    2424        public $button_label = '';
     
    7070
    7171    class Cryout_Customize_About_Control extends WP_Customize_Control {
    72             public $type = 'about';
     72            public $type = 'cryout-about';
    7373            public function render_content() {
    7474                    if ( ! empty( $this->label ) ) { ?>
     
    8484
    8585    class Cryout_Customize_Spacer_Control extends WP_Customize_Control {
    86             public $type = 'spacer';
     86            public $type = 'cryout-spacer';
    8787            public function render_content() { ?>
    8888                    <div class="customize-control-content customize-cryoutcontrol-spacer">
     
    9494
    9595    class Cryout_Customize_Description_Control extends WP_Customize_Control {
    96             public $type = 'description';
     96            public $type = 'cryout-description';
    9797            public function render_content() {
    9898                    if ( ! empty( $this->label ) ) { ?>
     
    100100                    <?php }
    101101                    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>
    103103                    <?php } ?>
    104104                    <span class="customize-control-content customize-cryoutcontrol-description-value"><?php echo wp_kses_post( $this->value() ) ?></span>
     
    114114                    <?php }
    115115                    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>
    117117                    <?php } ?>
    118118                    <span class="customize-control-content customize-cryoutcontrol-hint-value"><?php echo wp_kses_post( $this->value() ) ?></span>
     
    126126                    if (empty($this->input_attrs['class'])) $this->input_attrs['class'] = '';
    127127                    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>
    129129                    <?php }
    130130                    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>
    132132                    <?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>
    134134            <?php
    135135            }
     
    137137
    138138    class Cryout_Customize_Blank_Control extends WP_Customize_Control {
    139             public $type = 'blank';
     139            public $type = 'cryout-blank';
    140140            public function render_content() {
    141141                echo '&nbsp;';
     
    152152
    153153    class Cryout_Customize_Font_Control extends WP_Customize_Control {
    154             public $type = 'font';
     154            public $type = 'cryout-font';
    155155            private $fonts = array();
    156156            public function render_content() {
     
    169169                        <?php
    170170                        foreach ( $this->fonts as $fgroup => $fsubs ): ?>
    171                             <optgroup label='<?php echo $fgroup; ?>'>
     171                            <optgroup label='<?php echo esc_attr( $fgroup ); ?>'>
    172172                            <?php foreach($fsubs as $item):
    173173                                $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 ); ?>>
    175175                                    <?php echo cryout_clean_gfont( $item_show[0] ); ?>
    176176                                </option>
     
    184184
    185185            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 );
    186189                // google fonts enqueues for the font selectors preview
    187190                $gfonts = array();
     
    201204    class Cryout_Customize_Slider_Control extends WP_Customize_Control {
    202205
    203     public $type = 'slider';
     206            public $type = 'cryout-slider';
    204207            public function __construct($manager, $id, $args = array(), $options = array()) {
    205208                parent::__construct( $manager, $id, $args );
     
    209212                <label>
    210213                    <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'] ); ?>
    212215                    </span>
    213216                </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'] ) ?>" />
    216219                <div class="slider"></div>
    217220                <?php if ( ! empty( $this->description ) ) : ?>
     
    233236
    234237    class Cryout_Customize_SliderTwo_Control extends WP_Customize_Control {
    235             public $type = 'slidertwo';
     238            public $type = 'cryout-slidertwo';
    236239            public function __construct($manager, $id, $args = array(), $options = array()) {
    237240                parent::__construct( $manager, $id, $args );
     
    240243            public function render_content() { ?>
    241244                <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'] ); ?>
    244247                </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'] ) ?>"/>
    248251                <div class="slidertwo"></div>
    249252                <?php if ( ! empty( $this->description ) ) : ?>
     
    266269    class Cryout_Customize_NumberSlider_Control extends WP_Customize_Control {
    267270
    268     public $type = 'numberslider';
     271            public $type = 'cryout-numberslider';
    269272            public function __construct($manager, $id, $args = array(), $options = array()) {
    270273                parent::__construct( $manager, $id, $args );
     
    276279                </label>
    277280                <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'] ); ?>
    281284                </div>
    282285                <div class="slider"></div>
     
    299302
    300303    class Cryout_Customize_RadioImage_Control extends WP_Customize_Control {
    301             public $type = 'radioimage';
     304            public $type = 'cryout-radioimage';
    302305            public function __construct($manager, $id, $args = array(), $options = array()) {
    303306                parent::__construct( $manager, $id, $args );
     
    317320                            $data['url'] = esc_url( sprintf( $data['url'], get_template_directory_uri(), get_stylesheet_directory_uri() ) );
    318321                            ?>
    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'] ) ?>"/>
    322325                                    <span class="screen-reader-text"><?php echo esc_html( $data['label'] ); ?></span>
    323326                            </label>
     
    338341
    339342    class Cryout_Customize_SelectShort_Control extends WP_Customize_Control {
    340             public $type = 'selectshort';
     343            public $type = 'cryout-selectshort';
    341344            public function render_content() {
    342345                if ( empty( $this->choices ) )
     
    347350                <?php endif; ?>
    348351                <?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 ) ?>">
    353356                    <?php
    354357                    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>';
    356359                    }
    357360                    ?>
     
    362365
    363366    class Cryout_Customize_Select2_Control extends WP_Customize_Control {
    364             public $type = 'select2';
     367            public $type = 'cryout-select2';
    365368            public function render_content() {
    366369                if ( empty( $this->choices ) )
     
    371374                <?php endif; ?>
    372375                <?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 ) ?>">
    377380                    <?php
    378381                    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>';
    380383                    }
    381384                    ?>
     
    392395
    393396    class Cryout_Customize_OptSelect_Control extends WP_Customize_Control {
    394             public $type = 'optselect';
     397            public $type = 'cryout-optselect';
    395398            public function render_content() {
    396399                if ( empty( $this->choices ) )
     
    402405                    <?php endif;
    403406                    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>
    405408                    <?php endif; ?>
    406409
     
    409412                        <?php
    410413                        foreach ( $this->choices as $optgroup_id => $optgroup ) {
    411                             echo '<optgroup label="' . $optgroup_id . '">';
     414                            echo '<optgroup label="' . esc_attr( $optgroup_id ) . '">';
    412415                            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>';
    414417                            echo '</optgroup>';
    415418                        } ?>
     
    421424
    422425    class Cryout_Customize_IconSelect_Control extends WP_Customize_Control {
    423             public $type = 'iconselect';
     426            public $type = 'cryout-iconselect';
    424427            public function render_content() {
    425428                $this->icons = cryout_get_theme_structure('block-icons');
     
    436439                        <?php
    437440                        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;" : '&nbsp;' ) ?> <?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 ) . ";" : '&nbsp;' ); ?> <?php echo esc_html( $id )?> </option>
    439442                        <?php endforeach; // $this->icons ?>
    440443                    </select>
     
    454457
    455458    class Cryout_Customize_Toggle_Control extends WP_Customize_Control {
    456             public $type = 'toggle';
     459            public $type = 'cryout-toggle';
    457460            public function render_content() { ?>
    458461                <?php if ( ! empty( $this->label ) ) : ?>
     
    472475
    473476                <?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>
    475478                <?php endif; ?>
    476479
  • fluida/1.8.6/cryout/css/customizer.css

    r135857 r144713  
    148148}
    149149
    150 #customize-theme-controls [id*="accordion-section-about"] .customize-control,
     150#customize-theme-controls [id*="accordion-section-cryout-about"] .customize-control,
    151151#customize-theme-controls [id*="accordion-section-cryoutspecial-about-theme"] .customize-control {
    152152    margin: 0 auto -1px;
    153153}
    154154
    155 #customize-theme-controls [id*="accordion-section-about"] .accordion-section-content,
     155#customize-theme-controls [id*="accordion-section-cryout-about"] .accordion-section-content,
    156156#customize-theme-controls [id*="accordion-section-cryoutspecial-about-theme"] .accordion-section-content {
    157157    display: block;
     
    265265.customize-control-sortable .sortable-edit:hover {
    266266    opacity: 1;
     267}
     268
     269.customize-control-cryout-sortable .sortable li.status-disabled {
     270    opacity: .5;
    267271}
    268272
     
    360364}
    361365
    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 {
    363368    background: #fff;
    364369    border: 1px solid #ddd;
     
    371376}
    372377
    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 {
    374380    cursor: pointer;
    375381}
    376382
    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 {
    378385    color: #900;
    379 }
    380 
    381 .customize-control-sortable .sortable li.status-disabled {
    382     opacity: 0.5;
    383386}
    384387
  • fluida/1.8.6/cryout/css/select2.css

    r135857 r144713  
    189189    .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    190190      list-style: none; }
    191   .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    192     color: #999;
    193     margin-top: 5px;
    194     float: left; }
    195191  .select2-container--default .select2-selection--multiple .select2-selection__clear {
    196192    cursor: pointer;
     
    198194    font-weight: bold;
    199195    margin-top: 5px;
    200     margin-right: 10px; }
     196    margin-right: 10px;
     197    padding: 1px; }
    201198  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    202199    background-color: #e4e4e4;
     
    217214      color: #333; }
    218215
    219 .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 {
     216.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
    220217  float: right; }
    221218
  • 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  
    272272                            'section'   => $opt['section'],
    273273                            'settings'  => $opid,
     274                            'type'      => $opt['type'],
    274275                            'input_attrs'   => (isset($opt['disabled'])?array('disabled'=>$opt['disabled']):array('disabled'=>false)),
    275276                            '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))),
    277278                            'disabled'  => (isset($opt['disabled'])?$opt['disabled']:''),
    278279                            'active_callback' => ( (isset($opt['active_callback'])) ? $opt['active_callback'] : NULL),
  • fluida/1.8.6/cryout/framework.php

    r135857 r144713  
    22/**
    33 * @package Cryout Framework
    4  * @version 0.8.5.1
    5  * @revision 20200714
     4 * @version 0.8.5.7
     5 * @revision 20210226
    66 * @author Cryout Creations - www.cryoutcreations.eu
    77 */
    88
    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 }
     9define('_CRYOUT_FRAMEWORK_VERSION', '0.8.5.7');
    2410
    2511// Load everything
     
    2814require_once(get_template_directory() . "/cryout/customizer.php");
    2915require_once(get_template_directory() . "/cryout/ajax.php");
    30 require_once(get_template_directory() . "/cryout/demo.php");
    3116
    3217if( is_admin() ) {
  • fluida/1.8.6/cryout/js/customizer-controls.js

    r135857 r144713  
    55 */
    66
    7 jQuery(window).load(function(){
    8 
    9     var settings = [];
     7jQuery(document).ready(function(){
    108
    119    setTimeout(function() {
     
    3028                step: parseInt( settings[4] ),
    3129                slide: function( event, ui){
    32                     jQuery(the_input).val( ui.value ).change();
     30                    jQuery(the_input).val( ui.value ).trigger('change');
    3331                    jQuery(this).parent().find('.value').text( ui.value );
    3432                }
     
    3634
    3735        }); // each
    38        
     36
    3937        // NumberSlider Control
    4038        jQuery('input[type="number"].numberslider').each(function() {
     
    5452                step: settings[4],
    5553                slide: function( event, ui){
    56                     jQuery(the_input).val( ui.value ).change();
     54                    jQuery(the_input).val( ui.value ).trigger('change');
    5755                }
    5856            });
    5957
    6058            // update slider on input change
    61             jQuery(this).change( function(){
     59            jQuery(this).on('change', function(){
    6260                jQuery(this).closest('.customize-control').find('div.slider').slider( 'option', 'value', jQuery(this).val() );
    6361            } );
     
    8482                step: parseInt( settings[4] ),
    8583                slide: function( event, ui){
    86                     jQuery(the_input).val( ui.value ).change();
     84                    jQuery(the_input).val( ui.value ).trigger('change');
    8785                    jQuery(this).parent().find('.value').text( ui.value );
    8886                    jQuery(this).parent().find('.value2').text( settings[5] - parseInt(ui.value) );
     
    9189
    9290        }); // each
    93        
     91
    9492        // Sortable control
    9593        jQuery('.customize-control-sortable .sortable-row').sortable({
     
    9997                    order.push(jQuery(this).attr("id"));
    10098                });
    101                 jQuery(this).parent().children('.the_sorted').val(order.join()).change();
     99                jQuery(this).parent().children('.the_sorted').val(order.join()).trigger('change');
    102100            }
    103101        }); // sortable
    104102
    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        }
    106116
     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' );
    107129
    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       
    136131
    137132}); // load
     133/* FIN */
  • fluida/1.8.6/cryout/js/customizer.js

    r135857 r144713  
    55 */
    66
    7 var _label_max = 'Maximize';
    8 var _label_min = 'Restore';
     7var _cryout_label_max = 'Maximize';
     8var _cryout_label_min = 'Restore';
    99
    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>\
     10var _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>\
    1313</button> ';
    1414
     
    2222    if (jQuery('#customize-footer-actions .devices').length>0) {
    2323    /* wp 4.5 or newer */
    24         jQuery('#customize-footer-actions .devices').prepend(innerHTML);
     24        jQuery('#customize-footer-actions .devices').prepend(_cryout_innerHTML);
    2525    } else {
    26         jQuery('#customize-footer-actions').append(innerHTML);
     26        jQuery('#customize-footer-actions').append(_cryout_innerHTML);
    2727    }
    2828
     
    3131            if ( jQuery('.wp-full-overlay').hasClass('cryout-maximized') ) {
    3232                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);
    3535            }
    3636
     
    4141            var label = jQuery('.cryout-expand-sidebar span.collapse-sidebar-label');
    4242            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);
    4646                    jQuery('.wp-full-overlay').removeClass( 'collapsed' ).addClass( 'expanded' ).addClass( 'cryout-maximized' );
    4747            } 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);
    5050                    jQuery('.wp-full-overlay').removeClass( 'collapsed' ).addClass( 'expanded' ).removeClass( 'cryout-maximized' );
    5151            }
  • fluida/1.8.6/cryout/js/select2.js

    r135857 r144713  
    11/*!
    2  * Select2 4.0.6-rc.1
     2 * Select2 4.0.13
    33 * https://select2.github.io
    44 *
     
    778778  var id = 0;
    779779  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.
    783783    // If an id already exists, it simply returns it.
    784784
     
    799799  Utils.StoreData = function (element, name, value) {
    800800    // Stores an item in the cache for a specified element.
    801     // name is the cache key.   
     801    // name is the cache key.
    802802    var id = Utils.GetUniqueElementId(element);
    803803    if (!Utils.__cache[id]) {
     
    810810  Utils.GetData = function (element, name) {
    811811    // 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
    813813    // all cache items for the specified element.
    814814    // and for a specified element.
     
    816816    if (name) {
    817817      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.
    821822      }
    822823      return $(element).data(name); // Fallback to HTML5 data attribs.
    823824    } else {
    824       return Utils.__cache[id];           
     825      return Utils.__cache[id];
    825826    }
    826827  };
     
    832833      delete Utils.__cache[id];
    833834    }
     835
     836    element.removeAttribute('data-select2-id');
    834837  };
    835838
     
    853856  Results.prototype.render = function () {
    854857    var $results = $(
    855       '<ul class="select2-results__options" role="tree"></ul>'
     858      '<ul class="select2-results__options" role="listbox"></ul>'
    856859    );
    857860
     
    876879
    877880    var $message = $(
    878       '<li role="treeitem" aria-live="assertive"' +
     881      '<li role="alert" aria-live="assertive"' +
    879882      ' class="select2-results__option"></li>'
    880883    );
     
    10101013
    10111014    var attrs = {
    1012       'role': 'treeitem',
     1015      'role': 'option',
    10131016      'aria-selected': 'false'
    10141017    };
    10151018
    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)) {
    10171025      delete attrs['aria-selected'];
    10181026      attrs['aria-disabled'] = 'true';
     
    11151123
    11161124      self.setClasses();
    1117       self.highlightFirstItem();
     1125
     1126      if (self.options.get('scrollAfterSelect')) {
     1127        self.highlightFirstItem();
     1128      }
    11181129    });
    11191130
     
    11241135
    11251136      self.setClasses();
    1126       self.highlightFirstItem();
     1137
     1138      if (self.options.get('scrollAfterSelect')) {
     1139        self.highlightFirstItem();
     1140      }
    11271141    });
    11281142
     
    11781192      var currentIndex = $options.index($highlighted);
    11791193
    1180       // If we are already at te top, don't move further
     1194      // If we are already at the top, don't move further
    11811195      // If no options, currentIndex will be -1
    11821196      if (currentIndex <= 0) {
     
    14191433    $selection.attr('title', this.$element.attr('title'));
    14201434    $selection.attr('tabindex', this._tabindex);
     1435    $selection.attr('aria-disabled', 'false');
    14211436
    14221437    this.$selection = $selection;
     
    14281443    var self = this;
    14291444
    1430     var id = container.id + '-container';
    14311445    var resultsId = container.id + '-results';
    14321446
     
    14711485      self.$selection.removeAttr('aria-owns');
    14721486
    1473       self.$selection.focus();
    1474       window.setTimeout(function () {
    1475         self.$selection.focus();
    1476       }, 0);
     1487      self.$selection.trigger('focus');
    14771488
    14781489      self._detachCloseHandler(container);
     
    14811492    container.on('enable', function () {
    14821493      self.$selection.attr('tabindex', self._tabindex);
     1494      self.$selection.attr('aria-disabled', 'false');
    14831495    });
    14841496
    14851497    container.on('disable', function () {
    14861498      self.$selection.attr('tabindex', '-1');
     1499      self.$selection.attr('aria-disabled', 'true');
    14871500    });
    14881501  };
     
    15071520
    15081521  BaseSelection.prototype._attachCloseHandler = function (container) {
    1509     var self = this;
    15101522
    15111523    $(document.body).on('mousedown.select2.' + container.id, function (e) {
     
    15171529
    15181530      $all.each(function () {
    1519         var $this = $(this);
    1520 
    15211531        if (this == $select[0]) {
    15221532          return;
     
    15451555  BaseSelection.prototype.update = function (data) {
    15461556    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');
    15471578  };
    15481579
     
    16111642    container.on('focus', function (evt) {
    16121643      if (!container.isOpen()) {
    1613         self.$selection.focus();
     1644        self.$selection.trigger('focus');
    16141645      }
    16151646    });
     
    16451676
    16461677    $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    }
    16481686  };
    16491687
     
    16901728      function (evt) {
    16911729        // Ignore the event if it is disabled
    1692         if (self.options.get('disabled')) {
     1730        if (self.isDisabled()) {
    16931731          return;
    16941732        }
     
    17481786
    17491787      $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      }
    17511794
    17521795      Utils.StoreData($selection[0], 'data', selection);
     
    18461889  AllowClear.prototype._handleClear = function (_, evt) {
    18471890    // Ignore the event if it is disabled
    1848     if (this.options.get('disabled')) {
     1891    if (this.isDisabled()) {
    18491892      return;
    18501893    }
     
    18891932    }
    18901933
    1891     this.$element.trigger('change');
     1934    this.$element.trigger('input').trigger('change');
    18921935
    18931936    this.trigger('toggle', {});
     
    19121955    }
    19131956
     1957    var removeAll = this.options.get('translations').get('removeAllItems');
     1958
    19141959    var $remove = $(
    1915       '<span class="select2-selection__clear">' +
     1960      '<span class="select2-selection__clear" title="' + removeAll() +'">' +
    19161961        '&times;' +
    19171962      '</span>'
     
    19391984        '<input class="select2-search__field" type="search" tabindex="-1"' +
    19401985        ' autocomplete="off" autocorrect="off" autocapitalize="none"' +
    1941         ' spellcheck="false" role="textbox" aria-autocomplete="list" />' +
     1986        ' spellcheck="false" role="searchbox" aria-autocomplete="list" />' +
    19421987      '</li>'
    19431988    );
     
    19562001    var self = this;
    19572002
     2003    var resultsId = container.id + '-results';
     2004
    19582005    decorated.call(this, container, $container);
    19592006
    19602007    container.on('open', function () {
     2008      self.$search.attr('aria-controls', resultsId);
    19612009      self.$search.trigger('focus');
    19622010    });
     
    19642012    container.on('close', function () {
    19652013      self.$search.val('');
     2014      self.$search.removeAttr('aria-controls');
    19662015      self.$search.removeAttr('aria-activedescendant');
    19672016      self.$search.trigger('focus');
     
    19832032
    19842033    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      }
    19862039    });
    19872040
     
    20142067          evt.preventDefault();
    20152068        }
     2069      }
     2070    });
     2071
     2072    this.$selection.on('click', '.select2-search--inline', function (evt) {
     2073      if (self.$search.val()) {
     2074        evt.stopPropagation();
    20162075      }
    20172076    });
     
    21022161    this.resizeSearch();
    21032162    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');
    21112164    }
    21122165  };
     
    21412194
    21422195    if (this.$search.attr('placeholder') !== '') {
    2143       width = this.$selection.find('.select2-selection__rendered').innerWidth();
     2196      width = this.$selection.find('.select2-selection__rendered').width();
    21442197    } else {
    21452198      var minimumWidth = this.$search.val().length + 1;
     
    25042557    '\uA74A': 'O',
    25052558    '\uA74C': 'O',
     2559    '\u0152': 'OE',
    25062560    '\u01A2': 'OI',
    25072561    '\uA74E': 'OO',
     
    29132967    '\uA74D': 'o',
    29142968    '\u0275': 'o',
     2969    '\u0153': 'oe',
    29152970    '\u01A3': 'oi',
    29162971    '\u0223': 'ou',
     
    30813136    '\u03CB': '\u03C5',
    30823137    '\u03B0': '\u03C5',
    3083     '\u03C9': '\u03C9',
    3084     '\u03C2': '\u03C3'
     3138    '\u03CE': '\u03C9',
     3139    '\u03C2': '\u03C3',
     3140    '\u2019': '\''
    30853141  };
    30863142
     
    31673223      data.element.selected = true;
    31683224
    3169       this.$element.trigger('change');
     3225      this.$element.trigger('input').trigger('change');
    31703226
    31713227      return;
     
    31883244
    31893245        self.$element.val(val);
    3190         self.$element.trigger('change');
     3246        self.$element.trigger('input').trigger('change');
    31913247      });
    31923248    } else {
     
    31943250
    31953251      this.$element.val(val);
    3196       this.$element.trigger('change');
     3252      this.$element.trigger('input').trigger('change');
    31973253    }
    31983254  };
     
    32103266      data.element.selected = false;
    32113267
    3212       this.$element.trigger('change');
     3268      this.$element.trigger('input').trigger('change');
    32133269
    32143270      return;
     
    32283284      self.$element.val(val);
    32293285
    3230       self.$element.trigger('change');
     3286      self.$element.trigger('input').trigger('change');
    32313287    });
    32323288  };
     
    34213477], function (SelectAdapter, Utils, $) {
    34223478  function ArrayAdapter ($element, options) {
    3423     var data = options.get('data') || [];
     3479    this._dataToConvert = options.get('data') || [];
    34243480
    34253481    ArrayAdapter.__super__.constructor.call(this, $element, options);
    3426 
    3427     this.addOptions(this.convertToOptions(data));
    34283482  }
    34293483
    34303484  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  };
    34313491
    34323492  ArrayAdapter.prototype.select = function (data) {
     
    37193779
    37203780  Tags.prototype._removeOldTags = function (_) {
    3721     var tag = this._lastTag;
    3722 
    37233781    var $options = this.$element.find('option[data-select2-tag]');
    37243782
     
    37953853      if (this.$search.length) {
    37963854        this.$search.val(tokenData.term);
    3797         this.$search.focus();
     3855        this.$search.trigger('focus');
    37983856      }
    37993857
     
    39243982  }
    39253983
     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
    39263995  MaximumSelectionLength.prototype.query =
    39273996    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) {
    39284006      var self = this;
    39294007
     
    39404018          return;
    39414019        }
    3942         decorated.call(self, params, callback);
     4020
     4021        if (successCallback) {
     4022          successCallback();
     4023        }
    39434024      });
    39444025  };
     
    39794060
    39804061  Dropdown.prototype.position = function ($dropdown, $container) {
    3981     // Should be implmented in subclasses
     4062    // Should be implemented in subclasses
    39824063  };
    39834064
     
    40034084        '<input class="select2-search__field" type="search" tabindex="-1"' +
    40044085        ' autocomplete="off" autocorrect="off" autocapitalize="none"' +
    4005         ' spellcheck="false" role="textbox" />' +
     4086        ' spellcheck="false" role="searchbox" aria-autocomplete="list" />' +
    40064087      '</span>'
    40074088    );
     
    40174098  Search.prototype.bind = function (decorated, container, $container) {
    40184099    var self = this;
     4100
     4101    var resultsId = container.id + '-results';
    40194102
    40204103    decorated.call(this, container, $container);
     
    40404123    container.on('open', function () {
    40414124      self.$search.attr('tabindex', 0);
    4042 
    4043       self.$search.focus();
     4125      self.$search.attr('aria-controls', resultsId);
     4126
     4127      self.$search.trigger('focus');
    40444128
    40454129      window.setTimeout(function () {
    4046         self.$search.focus();
     4130        self.$search.trigger('focus');
    40474131      }, 0);
    40484132    });
     
    40504134    container.on('close', function () {
    40514135      self.$search.attr('tabindex', -1);
     4136      self.$search.removeAttr('aria-controls');
     4137      self.$search.removeAttr('aria-activedescendant');
    40524138
    40534139      self.$search.val('');
    4054       self.$search.blur();
     4140      self.$search.trigger('blur');
    40554141    });
    40564142
    40574143    container.on('focus', function () {
    40584144      if (!container.isOpen()) {
    4059         self.$search.focus();
     4145        self.$search.trigger('focus');
    40604146      }
    40614147    });
     
    40704156          self.$searchContainer.addClass('select2-search--hide');
    40714157        }
     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');
    40724166      }
    40734167    });
     
    41564250    if (this.showLoadingMore(data)) {
    41574251      this.$results.append(this.$loadingMore);
     4252      this.loadMoreIfNeeded();
    41584253    }
    41594254  };
     
    41744269    });
    41754270
    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    }
    41954292  };
    41964293
     
    42134310      '<li ' +
    42144311      'class="select2-results__option select2-results__option--load-more"' +
    4215       'role="treeitem" aria-disabled="true"></li>'
     4312      'role="option" aria-disabled="true"></li>'
    42164313    );
    42174314
     
    42314328], function ($, Utils) {
    42324329  function AttachBody (decorated, $element, options) {
    4233     this.$dropdownParent = options.get('dropdownParent') || $(document.body);
     4330    this.$dropdownParent = $(options.get('dropdownParent') || document.body);
    42344331
    42354332    decorated.call(this, $element, options);
     
    42384335  AttachBody.prototype.bind = function (decorated, container, $container) {
    42394336    var self = this;
    4240 
    4241     var setupResultsEvents = false;
    42424337
    42434338    decorated.call(this, container, $container);
     
    42474342      self._attachPositioningHandler(container);
    42484343
    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);
    42624346    });
    42634347
     
    43064390  AttachBody.prototype._hideDropdown = function (decorated) {
    43074391    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;
    43084430  };
    43094431
     
    43844506    };
    43854507
    4386     // Determine what the parent element is to use for calciulating the offset
     4508    // Determine what the parent element is to use for calculating the offset
    43874509    var $offsetParent = this.$dropdownParent;
    43884510
    4389     // For statically positoned elements, we need to get the element
     4511    // For statically positioned elements, we need to get the element
    43904512    // that is determining the offset
    43914513    if ($offsetParent.css('position') === 'static') {
     
    43934515    }
    43944516
    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    }
    43964528
    43974529    css.top -= parentOffset.top;
     
    45634695
    45644696    // Don't close if the control key is being held
    4565     if (originalEvent && originalEvent.ctrlKey) {
     4697    if (originalEvent && (originalEvent.ctrlKey || originalEvent.metaKey)) {
    45664698      return;
    45674699    }
     
    46174749    searching: function () {
    46184750      return 'Searching…';
     4751    },
     4752    removeAllItems: function () {
     4753      return 'Remove all items';
    46194754    }
    46204755  };
     
    48554990    }
    48564991
    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    );
    49175015
    49185016    return options;
     
    49815079      dropdownAutoWidth: false,
    49825080      escapeMarkup: Utils.escapeMarkup,
    4983       language: EnglishTranslation,
     5081      language: {},
    49845082      matcher: matcher,
    49855083      minimumInputLength: 0,
     
    49885086      minimumResultsForSearch: 0,
    49895087      selectOnClose: false,
     5088      scrollAfterSelect: false,
    49905089      sorter: function (data) {
    49915090        return data;
     
    50025101  };
    50035102
     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
    50045200  Defaults.prototype.set = function (key, value) {
    50055201    var camelKey = $.camelCase(key);
     
    50315227    }
    50325228
     5229    if ($element != null) {
     5230      this.options = Defaults.applyFromElement(this.options, $element);
     5231    }
     5232
    50335233    this.options = Defaults.apply(this.options);
    50345234
     
    50525252    if (this.options.disabled == null) {
    50535253      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       }
    50625254    }
    50635255
     
    50995291      $e.attr('ajax--url', Utils.GetData($e[0], 'ajaxUrl'));
    51005292      Utils.StoreData($e[0], 'ajax-Url', Utils.GetData($e[0], 'ajaxUrl'));
    5101      
    51025293    }
    51035294
    51045295    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    }
    51055321
    51065322    // Prefer the element's `dataset` attribute if it exists
    51075323    // jQuery 1.x does not correctly handle data attributes with multiple dashes
    51085324    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);
    51155330
    51165331    data = Utils._convertData(data);
     
    53065521    }
    53075522
     5523    if (method == 'computedstyle') {
     5524      var computedStyle = window.getComputedStyle($element[0]);
     5525
     5526      return computedStyle.width;
     5527    }
     5528
    53085529    return method;
    53095530  };
     
    53465567    if (observer != null) {
    53475568      this._observer = new observer(function (mutations) {
    5348         $.each(mutations, self._syncA);
    5349         $.each(mutations, self._syncS);
     5569        self._syncA();
     5570        self._syncS(null, mutations);
    53505571      });
    53515572      this._observer.observe(this.$element[0], {
     
    54695690        if (key === KEYS.ESC || key === KEYS.TAB ||
    54705691            (key === KEYS.UP && evt.altKey)) {
    5471           self.close();
     5692          self.close(evt);
    54725693
    54735694          evt.preventDefault();
     
    55035724    this.options.set('disabled', this.$element.prop('disabled'));
    55045725
    5505     if (this.options.get('disabled')) {
     5726    if (this.isDisabled()) {
    55065727      if (this.isOpen()) {
    55075728        this.close();
     
    55145735  };
    55155736
    5516   Select2.prototype._syncSubtree = function (evt, mutations) {
     5737  Select2.prototype._isChangeMutation = function (evt, mutations) {
    55175738    var changed = false;
    55185739    var self = this;
     
    55425763    } else if (mutations.removedNodes && mutations.removedNodes.length > 0) {
    55435764      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;
    55455781
    55465782    // Only re-pull the data if we think there is a change
     
    55935829
    55945830  Select2.prototype.toggleDropdown = function () {
    5595     if (this.options.get('disabled')) {
     5831    if (this.isDisabled()) {
    55965832      return;
    55975833    }
     
    56095845    }
    56105846
     5847    if (this.isDisabled()) {
     5848      return;
     5849    }
     5850
    56115851    this.trigger('query', {});
    56125852  };
    56135853
    5614   Select2.prototype.close = function () {
     5854  Select2.prototype.close = function (evt) {
    56155855    if (!this.isOpen()) {
    56165856      return;
    56175857    }
    56185858
    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');
    56205881  };
    56215882
     
    56945955    }
    56955956
    5696     this.$element.val(newVal).trigger('change');
     5957    this.$element.val(newVal).trigger('input').trigger('change');
    56975958  };
    56985959
  • 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={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};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">&times;</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">&times;</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={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};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">&times;</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()+'">&times;</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  
    44"Project-Id-Version: Framework\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2019-09-23 12:45+0000\n"
     6"POT-Creation-Date: 2021-03-11 19:14+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1616"X-Loco-Version: 2.2.2; wp-5.2.1"
    1717
    18 #: cryout/prototypes.php:805
     18#: cryout/prototypes.php:822
    1919msgid "Skip to content"
    20 msgstr ""
    21 
    22 #: cryout/back-compat.php:15
    23 #, php-format
    24 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:15
    31 #, php-format
    32 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:25
    39 msgid "No update news."
    40 msgstr ""
    41 
    42 #: cryout/admin-functions.php:29
    43 msgid "Posted on"
    44 msgstr ""
    45 
    46 #: cryout/admin-functions.php:30
    47 msgid "Read the full post"
    4820msgstr ""
    4921
     
    150122
    151123#: cryout/tgmpa-class.php:388 cryout/tgmpa-class.php:2952
     124#| msgid "The following plugin was activated successfully:"
    152125msgid "The following plugin was activated successfully:"
    153 msgstr ""
     126msgid_plural "The following plugins were activated successfully:"
     127msgstr[0] ""
     128msgstr[1] ""
    154129
    155130#. 1: plugin name.
     
    404379
    405380#: 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:"
    406383msgid "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] ""
     384msgstr ""
    410385
    411386#: cryout/tgmpa-class.php:3158
  • fluida/1.8.6/cryout/prototypes.php

    r135857 r144713  
    295295 *  based on the configured font identifier
    296296 */
    297 function cryout_font_select( $font, $gfont ) {
     297function 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    };
    298304    $font = cryout_clean_gfont( $font );
     305    $output = '';
    299306    if ( !empty($gfont) ):
    300         $fontname = esc_attr( preg_replace( '/[:&].*/', '', preg_replace( '/\+/', ' ', $gfont ) ) );
     307        $fontname = preg_replace( '/[:&].*/', '', preg_replace( '/\+/', ' ', $gfont ) );
    301308        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 ) ) : "");
    303310    else:
    304         return "$font";
     311        $output = sprintf( "%s", esc_attr( $font ) );
    305312    endif;
     313    if ($echo) {
     314        echo $output;
     315    } else {
     316        return $output;
     317    }
    306318} // cryout_font_select()
    307319
     
    310322 */
    311323function 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)) {
    313325        // first part is the font name
    314326        if (empty($bits[1])) $bits[1] = '';
    315327        // second part is the font weight (optional)
    316328        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)
    318330        if (empty($bits[3])) $bits[3] = '';
     331        // clean up duplicate weights
     332        $bits[2] = ':' . implode( ',', array_unique( explode( ',', str_replace(':','', $bits[2]) ) ) );
    319333        return esc_attr( preg_replace( '/\s+/', '+', $bits[1] . $bits[2] . $bits[3]) );
    320334    } else {
     
    469483    if (!empty($classes)):
    470484        if (is_array($classes)) $classes = implode( ' ', $classes );
    471         echo ' class="' . $classes . '" ';
     485        echo ' class="' . esc_attr( $classes ) . '" ';
    472486    endif;
    473487}; // cryout_echo_bgimage()
     
    495509               $images = get_posts( array(
    496510                       'fields'         => 'ids',
    497                        'numberposts'    => 999,
     511                       'numberposts'    => 99,
    498512                       'order'          => 'ASC',
    499513                       'orderby'        => 'none',
     
    765779
    766780    $output = ' ' . $output;
    767     if ($echo) echo $output;
    768         else return $output;
     781    if ($echo) {
     782        echo $output;
     783    } else {
     784        return $output;
     785    }
    769786
    770787} // cryout_schema_microdata
     
    815832function cryout_breadcrumbs(
    816833            $separator = '<i class="icon-angle-right"></i>',                        // separator between crumbs
    817             $home = '<i class="icon-homebread"></i>',                               // text for the 'Home' item
    818             $showCurrent = 1,                                                       // whether to show current post/page title in breadcrumbs
    819             $before = '<span class="current">',                                     // tag before the current crumb
    820             $after = '</span>',                                                     // tag after the current crumb
     834            $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
    821838            $wrapper_pre = '<div id="breadcrumbs"> <nav id="breadcrumbs-nav" %2$s>',
    822839            $wrapper_post = '</nav></div><!-- breadcrumbs -->',
     
    860877
    861878    // 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() ) {
    867882        // category section
    868883        $queried_object = get_queried_object();
    869884        $cat_parents = $queried_object->category_parent;
    870         if ( !empty( $cat_parents ) ) echo get_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() ) {
    873888        // 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() ) {
    876891        // 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() ) {
    881896        // 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() ) {
    885900        // 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() ) {
    888903        // single post
    889904        if ( get_post_type() != 'post' ) {
    890905            $post_type = get_post_type_object( get_post_type() );
    891906            $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;
    894909        } else {
    895910            $cat = get_the_category(); if ( isset( $cat[0] ) ) { $cat = $cat[0]; } else { $cat = false; }
    896911            if ( $cat ) { $cats = get_category_parents( $cat, TRUE, ' ' . $separator . ' '); } else { $cats = false; }
    897912            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() ) {
    902917        // some other single item
    903918        $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;
    905920    } elseif ( is_attachment() ) {
    906921        // attachment section
    907922        $parent = get_post( $post->post_parent );
    908923        $cat = get_the_category( $parent->ID ); if ( isset( $cat[0] ) ) { $cat = $cat[0]; } else { $cat = false; }
    909         if ( $cat ) echo get_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 ) {
    913928        // 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 ) {
    916931        // child page
    917932        $parent_id  = $post->post_parent;
     
    919934        while ( $parent_id ) {
    920935            $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>';
    922937            $parent_id  = $page->post_parent;
    923938        }
    924939        $breadcrumbs = array_reverse( $breadcrumbs );
    925940        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() ) {
    931946        // 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() ) {
    934949        // author archive
    935950        global $author;
    936951        $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() ) {
    939954        // 404
    940         echo $before . $text_404 . $after;
    941     } elseif ( get_post_format() ) {
     955        $output .= $before . $text_404 . $after;
     956    } elseif ( get_post_format() ) {
    942957        // 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 );
    953969} // cryout_breadcrumbs()
    954970endif;
  • fluida/1.8.6/footer.php

    r135857 r144713  
    1212        <?php cryout_absolute_bottom_hook(); ?>
    1313
    14         <aside id="colophon" role="complementary" <?php cryout_schema_microdata( 'sidebar' );?>>
     14        <aside id="colophon" <?php cryout_schema_microdata( 'sidebar' );?>>
    1515            <div id="colophon-inside" <?php fluida_footer_colophon_class();?>>
    1616                <?php get_sidebar( 'footer' );?>
     
    2020    </div><!-- #main -->
    2121
    22     <footer id="footer" class="cryout" role="contentinfo" <?php cryout_schema_microdata( 'footer' );?>>
     22    <footer id="footer" class="cryout" <?php cryout_schema_microdata( 'footer' );?>>
    2323        <?php cryout_master_footer_hook(); ?>
    2424    </footer>
  • fluida/1.8.6/front-page.php

    r135857 r144713  
    2222
    2323    <div id="container" class="fluida-landing-page one-column">
    24         <main id="main" role="main" class="main">
     24        <main id="main" class="main">
    2525        <?php
    2626        //cryout_before_content_hook();
  • fluida/1.8.6/functions.php

    r135857 r144713  
    1111// theme identification and options management - do NOT edit unless you know what you are doing
    1212define ( "_CRYOUT_THEME_NAME", "fluida" );
    13 define ( "_CRYOUT_THEME_VERSION", "1.8.5" );
     13define ( "_CRYOUT_THEME_VERSION", "1.8.6" );
    1414
    1515// prefixes for theme options and functions
  • fluida/1.8.6/header.php

    r135857 r144713  
    1313<meta charset="<?php bloginfo( 'charset' ); ?>">
    1414<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; ?>
    1618<?php
    1719    cryout_header_hook();
     
    2527    <div id="site-wrapper">
    2628
    27     <header id="masthead" class="cryout" <?php cryout_schema_microdata( 'header' ) ?> role="banner">
     29    <header id="masthead" class="cryout" <?php cryout_schema_microdata( 'header' ) ?>>
    2830
    2931        <div id="site-header-main">
  • fluida/1.8.6/image.php

    r135857 r144713  
    88get_header(); ?>
    99
    10 <div id="container" class="single-attachment <?php echo fluida_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">
    1212
    1313        <?php while ( have_posts() ) : the_post(); ?>
     
    3838                                        <i class="icon-edit-alt icon-metas" title="<?php esc_attr_e( 'Published in', 'fluida' ); ?>"></i>
    3939                                        <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 ) )?>
    4141                                        </a>
    4242                                    </span>
  • fluida/1.8.6/includes/comments.php

    r135857 r144713  
    145145function fluida_comments_form_textarea( $arg ) {
    146146    $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">' .
    148148            '</textarea></p>';
    149149
  • fluida/1.8.6/includes/core.php

    r135857 r144713  
    150150        the_custom_header_markup();
    151151    } elseif ( ! empty( $header_image ) ) { ?>
    152             <div class="header-image" <?php echo cryout_echo_bgimage( esc_url( $header_image ) ) ?>></div>
     152            <div class="header-image" <?php cryout_echo_bgimage( esc_url( $header_image ) ) ?>></div>
    153153            <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 ) ?>" />
    154154            <?php cryout_header_widget_hook(); ?>
     
    168168
    169169    if ( in_array( $options['fluida_siteheader'], array( 'logo', 'both' ) ) ) {
    170         echo fluida_logo_helper( $options['fluida_logoupload'] );
     170        fluida_logo_helper( $options['fluida_logoupload'] );
    171171    }
    172172    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';
    174174        echo '<div id="site-text">';
    175175        echo '<' . $heading_tag . cryout_schema_microdata( 'site-title', 0 ) . ' id="site-title">';
     
    187187        // WP 4.5+
    188188        $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>';
    190190    } else {
    191191        // older WP
    192192        if ( ! empty( $fluida_logo ) ) :
    193193            $img = wp_get_attachment_image_src( $fluida_logo, 'full' );
    194             return '<div class="identity">
     194            echo '<div class="identity">
    195195                        <a id="logo" href="' . esc_url( home_url( '/' ) ) . '" >
    196196                            <img title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" src="' . esc_url( $img[0] ) . '" />
     
    199199        endif;
    200200    }
    201     return '';
     201    echo '';
    202202} // fluida_logo_helper()
    203203
     
    269269        '<a target="_blank" href="' . esc_html( $the_theme->get( 'ThemeURI' ) ) . '" title="';
    270270    echo 'Fluida WordPress Theme by ' . 'Cryout Creations"> ' . 'Fluida' .'</a> &amp; <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>';
    272272}
    273273
     
    304304 */
    305305if ( ! function_exists( 'fluida_get_layout_class' ) ) :
    306 function fluida_get_layout_class() {
     306function fluida_get_layout_class( $echo = true ) {
    307307
    308308    $layout = cryout_get_layout();
     
    316316        case '3cSs' : $class = "three-columns-sided"; break;
    317317        case '1c':
    318         default: return "one-column"; break;
     318        default: $class = "one-column"; break;
    319319    }
    320320
    321321    // 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    }
    323329} // fluida_get_layout_class()
    324330endif;
     
    344350        '<div id="breadcrumbs-container" class="cryout %1$s"><div id="breadcrumbs-container-inside"><div id="breadcrumbs"> <nav id="breadcrumbs-nav" %2$s>', // $wrapper_pre
    345351        '</nav></div></div></div><!-- breadcrumbs -->',         // $wrapper_post
    346         fluida_get_layout_class(),                              // $layout_class
     352        fluida_get_layout_class(false),                         // $layout_class
    347353        __( 'Home', 'fluida' ),                                 // $text_home
    348         __( 'Archive for category', 'fluida' ),                 // $text_archive
    349         __( 'Search results for', 'fluida' ),                   // $text_search
     354        __( 'Archive for category "%s"', 'fluida' ),                    // $text_archive
     355        __( 'Search results for "%s"', 'fluida' ),                  // $text_search
    350356        __( 'Posts tagged', 'fluida' ),                         // $text_tag
    351357        __( 'Articles posted by', 'fluida' ),                   // $text_author
  • fluida/1.8.6/includes/custom-styles.php

    r135857 r144713  
    111111/////////// COLUMNS ///////////
    112112$colPadding = 2; // percent
    113 $sidebarP = absint($fluida_primarysidebar);
    114 $sidebarS = absint($fluida_secondarysidebar);
     113$sidebarP = $fluida_primarysidebar;
     114$sidebarS = $fluida_secondarysidebar;
    115115?>
    116116
    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                   { }
    121121#container.two-columns-right #secondary     { float: right; }
    122122#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; }
    124124#container.two-columns-left #primary        { float: left; }
    125125#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; }
    127127
    128128#container.three-columns-right #primary,
     
    135135
    136136#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 ) ?>%; }
    138138#container.three-columns-right .main,
    139139.three-columns-right #breadcrumbs           { width: calc( <?php echo 100 - absint( $colPadding ) * 2 ?>% - <?php echo absint( $sidebarS + $sidebarP ); ?>px ); float: left; }
    140140#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; }
    142142
    143143#container.three-columns-sided #secondary   { float: right; }
     
    145145#container.three-columns-sided .main,
    146146.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; }
    148148
    149149<?php if ( in_array( $fluida_siteheader, array( 'logo', 'empty' ) ) ) { ?>
    150150    #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;
    157157    }
    158158<?php }
     
    161161?>
    162162html
    163                     { font-family: <?php echo cryout_font_select( $fluida_fgeneral, $fluida_fgeneralgoogle ) ?>;
     163                    { font-family: <?php cryout_font_select( $fluida_fgeneral, $fluida_fgeneralgoogle, true ) ?>;
    164164                      font-size: <?php echo esc_html( $fluida_fgeneralsize ) ?>; font-weight: <?php echo esc_html( $fluida_fgeneralweight ) ?>;
    165165                      line-height: <?php echo esc_html( floatval($fluida_lineheight) ) ?>; }
    166166
    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 ) ?>;
    168168                      font-size: <?php echo esc_html( $fluida_fsitetitlesize ) ?>; font-weight: <?php echo esc_html( $fluida_fsitetitleweight ) ?>; }
    169169
    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 ) ?>;
    171171                      font-size: <?php echo esc_html( $fluida_fmenusize ) ?>; font-weight: <?php echo esc_html( $fluida_fmenuweight ) ?>; }
    172172
    173 #access i.search-icon { font-size: <?php echo 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 ) ?>;
    176176                      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 ) ?>;
    178178                      font-size: <?php echo esc_html( $fluida_fwcontentsize ) ?>; font-weight: <?php echo esc_html( $fluida_fwcontentweight ) ?>; }
    179179.entry-title, #reply-title,
    180180.woocommerce .main .page-title,
    181181.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 ) ?>;
    183183                      font-size: <?php echo esc_html( $fluida_ftitlessize ) ?>; font-weight: <?php echo esc_html( $fluida_ftitlesweight ) ?>; }
    184184.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 ) ?>%; }
    186186
    187187<?php
     
    189189for ( $i = 1; $i <= 6; $i++ ) {
    190190        $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; } <?php
     191    h<?php echo absint( $i ) ?> { font-size: <?php echo esc_html( $size ) ?>em; } <?php
    192192} //for ?>
    193 h1, h2, h3, h4, h5, h6 { font-family: <?php echo cryout_font_select( $fluida_fheadings, $fluida_fheadingsgoogle ) ?>;
     193h1, h2, h3, h4, h5, h6 { font-family: <?php cryout_font_select( $fluida_fheadings, $fluida_fheadingsgoogle, true ) ?>;
    194194                         font-weight: <?php echo esc_html( $fluida_fheadingsweight ) ?>; }
    195195.lp-staticslider .staticslider-caption-title,
    196196.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 ) ?>;
    198198}
    199199
     
    317317#nav-below .nav-previous a:before, #nav-below .nav-next a:before, .reply a:after
    318318                                            { 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,
     319pre, .entry-meta .author, nav.sidebarmenu, .page-link > span, article .author-info, .comment-author,
    320320.commentlist .comment-body, .commentlist .pingback, nav.sidebarmenu li a
    321321                                            { border-color: <?php echo esc_html( cryout_hexdiff( $fluida_contentbackground, 17 ) ) ?>; }
     
    429429.main p, .main ul, .main ol, .main dd, .main pre, .main hr
    430430                                            { 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; }
    432432.main a.post-featured-image                 { background-position: <?php echo esc_html( $fluida_falign ) ?>; }
    433433
     
    560560<?php
    561561for ($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 ) ) ) ?>; }
    563563<?php }
    564564
     
    608608
    609609body.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 ) ?>; }
    611611body.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 ) ?>;
    614614    font-size: <?php echo esc_html( $fluida_fgeneralsize ) ?>;
    615615    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 ) ?>; }
    617617.block-editor .editor-post-title__block .editor-post-title__input {
    618618    color: <?php echo esc_html( $fluida_accent2 ) ?>; }
     
    621621for ( $i = 1; $i <= 6; $i++ ) {
    622622$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; } <?php
     623h<?php echo absint( $i ) ?> { font-size: <?php echo esc_html( $size ) ?>em; } <?php
    624624} //for ?>
    625625%%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 ) ?>;
    627627    font-weight: <?php echo esc_html( $fluida_fheadingsweight ) ?>;
    628628    color: <?php echo esc_html( $fluida_headingstext ) ?>; }
    629629
    630630%%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}
    632633
    633634%%scope%% a         { color: <?php echo esc_html( $fluida_accent1 ); ?>; }
    634635%%scope%% a:hover   { color: <?php echo esc_html( $fluida_accent2 ); ?>; }
    635636
    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 ) ) ?>; }
    637638%%scope%% pre       { border-color: <?php echo esc_html(cryout_hexdiff( $fluida_contentbackground, 17 ) ) ?>; }
    638639
    639 %%scope%% select, %%scope%% input[type], %%scope%% textarea {
     640%%scope%% select,
     641%%scope%% input[type],
     642%%scope%% textarea {
    640643    color: <?php echo esc_html( $fluida_sitetext ); ?>;
    641644    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}
    643647
    644648%%scope%% p, %%scope%% ul, %%scope%% ol, %%scope%% dd, %%scope%% pre, %%scope%% hr {
  • fluida/1.8.6/includes/landing-page.php

    r135857 r144713  
    7272        <?php } ?>
    7373        <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 } ?>
    7575            <?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 } ?>
    7777            <div class="staticslider-caption-buttons">
    7878                <?php if ( ! empty( $lpslidercta1text ) ) { echo '<a class="staticslider-button" href="' . esc_url( $lpslidercta1link ) . '">' . esc_html( $lpslidercta1text ) . '</a>'; } ?>
     
    104104    if ( -1 == $blockscontent ) return;
    105105    ?>
    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) ) ?>">
    107107        <?php if(  ! empty( $maintitle ) || ! empty( $maindesc ) ) { ?>
    108108            <header class="lp-section-header">
    109                 <?php if( ! empty( $maintitle ) ) { ?><h2 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 } ?>
    111111            </header>
    112112        <?php } ?>
     
    153153    <?php extract($data) ?>
    154154            <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 } ?>
    156156                    <?php if ( ! empty ( $icon ) )  { ?> <i class="blicon-<?php echo esc_attr( $icon ); ?>"></i><?php } ?>
    157157                <?php if ( $click ) { ?></a> <?php } ?>
    158158                    <div class="lp-block-content">
    159                         <?php if ( ! empty ( $title ) ) { ?><h5 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 } ?>
    161161                        <?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 } ?>
    162162                    </div>
     
    212212            <?php if( $options['fluida_lpboxmaintitle' . $sid] || $options['fluida_lpboxmaindesc' . $sid] ) { ?>
    213213                <header class="lp-section-header">
    214                     <?php if ( ! empty( $options['fluida_lpboxmaintitle' . $sid] ) ) { ?> <h2 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 } ?>
    216216                </header>
    217217            <?php } ?>
     
    220220                        <?php if ( $options['fluida_lpboxmargins' . $sid] == 1 ) { echo 'lp-boxes-padding'; }?>">
    221221            <?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']);
    240240
    241241            fluida_lpbox_output( $box );
     
    243243            </div>
    244244        </section><!-- .lp-boxes -->
    245     <?php endif;
     245<?php endif;
    246246    wp_reset_postdata();
    247247} //  fluida_lpboxes()
     
    256256    extract($data); ?>
    257257            <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 ); } ?>
    260260                        <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>
    261261                        <div class="lp-box-overlay"></div>
    262262                    </div>
    263263                    <div class="lp-box-content">
    264                         <?php if ( ! empty( $title ) ) { ?><h5 class="lp-box-title">
     264                        <?php if ( ! empty( $title ) ) { ?><h4 class="lp-box-title">
    265265                            <?php if ( !empty( $readmore ) && !empty( $link ) ) { ?> <a href="<?php echo esc_url( $link ); ?>" <?php echo esc_attr( $target ); ?>><?php } ?>
    266266                                <?php echo do_shortcode( $title ); ?>
    267267                            <?php if ( !empty( $readmore ) && !empty( $link ) ) { ?> </a> <?php } ?>
    268                         </h5><?php } ?>
     268                        </h4><?php } ?>
    269269                        <div class="lp-box-text">
    270270                            <?php if ( ! empty( $content ) ) { ?>
     
    272272                            <?php } ?>
    273273                            <?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>
    275275                            <?php } ?>
    276276                        </div>
     
    297297            'id'    => $what,
    298298        );
    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' );
    300300        fluida_lptext_output( $data );
    301301    }
     
    308308if ( ! function_exists( 'fluida_lptext_output' ) ):
    309309function 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'] ); ?> -->
    318318<?php
    319319} // fluida_lptext_output()
     
    326326function fluida_lpindex() {
    327327
    328     $fluida_lpposts = cryout_get_option( 'fluida_lpposts' );
     328    $fluida_lpposts = cryout_get_option('fluida_lpposts');
    329329
    330330    switch ($fluida_lpposts) {
     
    357357                <?php fluida_pagination();
    358358                wp_reset_postdata();
    359             /* else :
     359            //else :
    360360                //get_template_part( 'content/content', 'notfound' );
    361             */
    362361            endif;
    363362
  • fluida/1.8.6/includes/loop.php

    r135857 r144713  
    8484        echo '<div class="entry-meta">
    8585                <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>'
    8787                    . get_the_category_list( ', ' ) .
    8888                '</span>
     
    129129        $date = ''; $time = '';
    130130        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() ); }
    132132        ?>
    133133
    134134        <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>
    136136            <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>
    138138        </span>
    139139        <?php
    140140    }
    141141
    142 }; // fluida_posted_date()
     142} // fluida_posted_date()
    143143endif;
    144144
     
    155155    if ( $fluida_meta_tag && $tag_list ) { ?>
    156156        <span class="footer-tags" <?php cryout_schema_microdata( 'tags' ) ?>>
    157                 <i class="icon-tag icon-metas" title="<?php _e( 'Tagged', 'fluida' ) ?>"></i>&nbsp;<?php echo $tag_list ?>
     157                <i class="icon-tag icon-metas" title="<?php esc_attr_e( 'Tagged', 'fluida' ) ?>"></i>&nbsp;<?php echo $tag_list ?>
    158158        </span>
    159159        <?php
    160160    }
    161 }; // fluida_posted_tags()
     161} // fluida_posted_tags()
    162162endif;
    163163
     
    170170    cryout_post_footer_hook(); /* ?!? */
    171171
    172 }; // fluida_posted_edit()
     172} // fluida_posted_edit()
    173173endif;
    174174
     
    183183        printf( '<span class="entry-format"><a href="%1$s"><i class="icon-%2$s" title="%3$s"></i></a></span>',
    184184            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 ) )
    187187        );
    188188    }
     
    226226    if ( $wp_query->max_num_pages > 1 ) : ?>
    227227
    228         <nav id="<?php echo $nav_id; ?>" class="navigation">
     228        <nav id="<?php echo esc_attr( $nav_id ); ?>" class="navigation">
    229229
    230230            <span class="nav-previous">
     
    289289            <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">
    290290                <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 ) ) ?>">
    294294                    <?php } ?>
    295295                    <img alt="<?php the_title_attribute();?>" <?php cryout_schema_microdata( 'url' ); ?> src="<?php echo cryout_get_picture_src( $fimage_id, 'fluida-featured' ); ?>" />
    296296                </picture>
    297297            </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 ?>">
    300300
    301301        </div>
  • fluida/1.8.6/includes/meta.php

    r135857 r144713  
    3838    <p>
    3939        <?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() ); ?>
    4141
    4242            <label>
    4343                <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>
    4545            </label>
    4646
     
    7474    }
    7575
    76     global $fluida_big;
    77     $valid_layouts = $fluida_big['options'][0]['choices'];
     76        global $fluida_big;
     77        $valid_layouts = $fluida_big['options'][0]['choices'];
    7878    $layout = ( isset( $_POST['_cryout_layout'] ) && array_key_exists( sanitize_text_field( $_POST['_cryout_layout'] ), $valid_layouts ) ? sanitize_text_field( $_POST['_cryout_layout'] ) : '0' );
    7979
  • fluida/1.8.6/includes/setup.php

    r135857 r144713  
    3535
    3636    // 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' ) );
    3838
    3939    // Add post formats
     
    120120    add_theme_support( 'custom-header', array(
    121121        // for later: 'flex-height' => true,
     122        'height'        => $fluida_headerheight,
    122123        // for later: 'flex-width' => true,
    123         'height'        => $fluida_headerheight,
    124124        'width'         => $fluida_headerwidth,
    125125        'default-image' => get_template_directory_uri() . '/resources/images/headers/glows.jpg',
     
    266266add_filter( 'wp_page_menu_args', 'fluida_page_menu_args' );
    267267
     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 */
     272function fluida_default_menu() {
     273    wp_page_menu($args = array(
     274        'menu_class'    => '',
     275        'before'        => '<ul id="prime_nav">',
     276        'after'         => '</ul>'
     277    ));
     278}
    268279/** Main menu */
    269280function fluida_main_menu() { ?>
     
    276287        'link_before'   => '<span>',
    277288        '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'
    279291
    280292    ) );
     
    382394        case '4':   $class = 'four';    break;
    383395    }
    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' : '' ) . '"';
    385397} // fluida_footer_colophon_class()
    386398
  • fluida/1.8.6/includes/styles.php

    r135857 r144713  
    4646
    4747    // 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 ):
    5050            wp_enqueue_style( 'fluida-googlefont' . $i, '//fonts.googleapis.com/css?family=' . $gfont, null, _CRYOUT_THEME_VERSION );
    5151            unset( $gfonts[$i] );
    5252            unset( $roots[$i] );
    53         //else:
    54             // do nothing
    5553        endif;
    56     endforeach;
     54    };
    5755
    5856    // Merged google fonts
    59     if ( count( $gfonts ) > 0 ):
     57    if ( !empty($gfonts) ){
    6058        wp_enqueue_style( 'fluida-googlefonts', '//fonts.googleapis.com/css?family=' . implode( "|" , array_unique( array_merge( $roots, $gfonts ) ) ), null, _CRYOUT_THEME_VERSION );
    61     endif;
     59    };
    6260    // Main theme style
    6361    wp_enqueue_style( 'fluida-main', get_stylesheet_uri(), null, _CRYOUT_THEME_VERSION );
     
    8482add_action ( 'wp_head', 'fluida_author_link' );
    8583
    86 // Adds HTML5 tags for IEs
    87 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 <?php
    100 } // fluida_header_scripts()
    101 //add_action('wp_head','fluida_header_scripts',100);
    10284
    10385/**
     
    166148
    167149/*
    168  * fluida_custom_editor_styles() is located in custom-styles.php
     150 * fluida_editor_styles() is located in custom-styles.php
    169151 */
    170152function fluida_add_editor_styles() {
  • fluida/1.8.6/includes/tgmpa.php

    r135857 r144713  
    2525            'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.
    2626        ),
     27        /* plugin is no longer maintained
    2728        array(
    2829            'name'               => 'Force Regenerate Thumbnails', // The plugin name.
     
    3233            'force_activation'   => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.
    3334            'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.
    34         ),
     35        ), */
    3536
    3637    );
     
    5960            'notice_can_install_required'     => _n_noop(
    6061                /* translators: 1: plugin name(s). */
    61                 'This theme requires the following plugin: %1$s.',
    62                 'This theme requires the following plugins: %1$s.',
     62                'This theme recommends the following plugin: %1$s.',
     63                'This theme recommends the following plugins: %1$s.',
    6364                'cryout'
    6465            ),
    6566            'notice_can_install_recommended'  => _n_noop(
    6667                /* 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.',
    6970                'cryout'
    7071            ),
     
    8384            'notice_can_activate_required'    => _n_noop(
    8485                /* translators: 1: plugin name(s). */
    85                 'The following required plugin is currently inactive: %1$s.',
    86                 'The following required 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.',
    8788                'cryout'
    8889            ),
    8990            'notice_can_activate_recommended' => _n_noop(
    9091                /* 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.',
    9394                'cryout'
    9495            ),
  • fluida/1.8.6/index.php

    r135857 r144713  
    1212get_header();
    1313?>
    14 <div id="container" class="<?php echo fluida_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">
    1616        <?php cryout_before_content_hook(); ?>
    1717
  • fluida/1.8.6/languages/fluida.pot

    r135857 r144713  
    33msgstr ""
    44"Project-Id-Version: Fluida 1.1\n"
    5 "POT-Creation-Date: 2019-09-23 12:45+0000\n"
     5"POT-Creation-Date: 2021-03-11 19:14+0000\n"
    66"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    77"Last-Translator: Cryout Creations\n"
     
    1717"Language: "
    1818
    19 #: 404.php:15 includes/core.php:352
     19#. $text_author
     20#: 404.php:15 includes/core.php:358
    2021msgid "Not Found"
    2122msgstr ""
     
    5455msgstr ""
    5556
    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
    5858msgid "Pages:"
    5959msgstr ""
     
    6363msgstr ""
    6464
    65 #: searchform.php:12 searchform.php:14 includes/core.php:370
     65#: searchform.php:12 searchform.php:14 includes/core.php:376
    6666msgid "Search"
    6767msgstr ""
     
    8888msgstr ""
    8989
    90 #: comments.php:21 includes/comments.php:95 includes/comments.php:98
    91 #, php-format
    92 msgid "One Comment"
     90#: comments.php:23
     91msgid "One comment"
     92msgstr ""
     93
     94#: comments.php:25 includes/comments.php:95
     95#, php-format
     96msgid "%1$s Comment"
    9397msgid_plural "%1$s Comments"
    9498msgstr[0] ""
    9599msgstr[1] ""
    96100
    97 #: comments.php:45
     101#: comments.php:50
    98102msgid "Comments are closed."
    99103msgstr ""
    100104
    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
    106106msgid "Edit"
    107107msgstr ""
    108108
    109 #: content/author-bio.php:16
     109#: content/user-bio.php:16
    110110msgid "Author:"
    111111msgstr ""
    112112
    113 #: content/author-bio.php:30
     113#: content/user-bio.php:30
    114114msgid "View all posts by "
    115115msgstr ""
     
    136136msgstr ""
    137137
    138 #: admin/main.php:84 admin/main.php:194
     138#: admin/main.php:82
    139139msgid "Sorry, but you do not have sufficient permissions to access this page."
    140140msgstr ""
    141141
    142 #: admin/main.php:93
    143 msgid "Fluida settings loaded successfully."
     142#: admin/main.php:94
     143msgid "Fluida settings have been reset successfully."
    144144msgstr ""
    145145
    146146#: admin/main.php:101
    147 msgid "Fluida settings have been reset successfully."
    148 msgstr ""
    149 
    150 #: admin/main.php:108
    151147#, php-format
    152148msgid "Fluida Theme v%1$s by %2$s"
    153149msgstr ""
    154150
    155 #: admin/main.php:117
     151#: admin/main.php:110
    156152msgid "Fluida Homepage"
    157153msgstr ""
    158154
    159 #: admin/main.php:118
     155#: admin/main.php:111
    160156msgid "Theme Support"
    161157msgstr ""
    162158
    163 #: admin/main.php:119
     159#: admin/main.php:112
    164160msgid "Upgrade to PLUS"
    165161msgstr ""
    166162
    167 #: admin/main.php:130
     163#: admin/main.php:123
    168164msgid "Customize"
    169165msgstr ""
    170166
    171 #: admin/main.php:138 admin/main.php:142
     167#: admin/main.php:131 admin/main.php:135
    172168msgid "Upgrade to Plus"
    173169msgstr ""
    174170
    175 #: admin/main.php:140
    176 #, php-format
     171#: admin/main.php:133
    177172msgid ""
    178173"Find out what features you're missing out on and how the Plus version of "
    179 "%1$s can improve your site."
    180 msgstr ""
    181 
    182 #: admin/main.php:150
     174"Fluida can improve your site."
     175msgstr ""
     176
     177#: admin/main.php:143
    183178msgid "Settings Management"
    184179msgstr ""
    185180
    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
    195182msgid "Reset to Defaults"
    196183msgstr ""
    197184
    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
    234186msgid "Site Identity"
    235187msgstr ""
    236188
    237 #: admin/options.php:194 admin/options.php:536
     189#: admin/options.php:205 admin/options.php:557
    238190msgid "Layout"
    239191msgstr ""
    240192
    241 #: admin/options.php:195 admin/options.php:237 admin/options.php:2259
     193#: admin/options.php:206 admin/options.php:248 admin/options.php:2268
    242194msgid "Header"
    243195msgstr ""
    244196
    245 #: admin/options.php:196 admin/options.php:239 admin/options.php:520
     197#: admin/options.php:207 admin/options.php:250 admin/options.php:541
    246198msgid "Landing Page"
    247199msgstr ""
    248200
    249 #: admin/options.php:197
     201#: admin/options.php:208
    250202msgid "General"
    251203msgstr ""
    252204
    253 #: admin/options.php:198
     205#: admin/options.php:209
    254206msgid "Colors"
    255207msgstr ""
    256208
    257 #: admin/options.php:199
     209#: admin/options.php:210
    258210msgid "Typography"
    259211msgstr ""
    260212
    261 #: admin/options.php:200
     213#: admin/options.php:211
    262214msgid "Post Information"
    263215msgstr ""
    264216
    265 #: admin/options.php:209
     217#: admin/options.php:220
    266218msgid "General Layout"
    267219msgstr ""
    268220
    269 #: admin/options.php:210
     221#: admin/options.php:221
    270222msgid "Other Layouts"
    271223msgstr ""
    272224
    273 #: admin/options.php:213
     225#: admin/options.php:224
    274226msgid "Menu"
    275227msgstr ""
    276228
    277 #: admin/options.php:214 admin/options.php:236
     229#: admin/options.php:225 admin/options.php:247
    278230msgid "Content"
    279231msgstr ""
    280232
    281 #: admin/options.php:216
     233#: admin/options.php:227
    282234msgid "Settings"
    283235msgstr ""
    284236
    285 #: admin/options.php:217 admin/options.php:562
     237#: admin/options.php:228 admin/options.php:583
    286238msgid "Slider"
    287239msgstr ""
    288240
    289 #: admin/options.php:218
     241#: admin/options.php:229
    290242msgid "Featured Icon Blocks"
    291243msgstr ""
    292244
    293 #: admin/options.php:219
     245#: admin/options.php:230
    294246msgid "Featured Boxes"
    295247msgstr ""
    296248
    297 #: admin/options.php:220
     249#: admin/options.php:231
    298250msgid "Featured Boxes 2"
    299251msgstr ""
    300252
    301 #: admin/options.php:221 admin/options.php:1033
     253#: admin/options.php:232 admin/options.php:1054
    302254msgid "Text Areas"
    303255msgstr ""
    304256
    305 #: admin/options.php:222 admin/options.php:544
     257#: admin/options.php:233 admin/options.php:565
    306258msgid "Featured Content"
    307259msgstr ""
    308260
    309 #: admin/options.php:224 admin/options.php:1042
     261#: admin/options.php:235 admin/options.php:1063
    310262msgid "General Font"
    311263msgstr ""
    312264
    313 #: admin/options.php:225
     265#: admin/options.php:236
    314266msgid "Header Fonts"
    315267msgstr ""
    316268
    317 #: admin/options.php:226
     269#: admin/options.php:237
    318270msgid "Content Fonts"
    319271msgstr ""
    320272
    321 #: admin/options.php:227
     273#: admin/options.php:238
    322274msgid "Widget Fonts"
    323275msgstr ""
    324276
    325 #: admin/options.php:228
     277#: admin/options.php:239
    326278msgid "Formatting"
    327279msgstr ""
    328280
    329 #: admin/options.php:230
     281#: admin/options.php:241
    330282msgid "Structure"
    331283msgstr ""
    332284
    333 #: admin/options.php:231
     285#: admin/options.php:242
    334286msgid "Decorations"
    335287msgstr ""
    336288
    337 #: admin/options.php:232
     289#: admin/options.php:243
    338290msgid "Content Images"
    339291msgstr ""
    340292
    341 #: admin/options.php:233
     293#: admin/options.php:244
    342294msgid "Search Box Locations"
    343295msgstr ""
    344296
    345 #: admin/options.php:234 includes/setup.php:59
     297#: admin/options.php:245 includes/setup.php:59
    346298msgid "Social Icons"
    347299msgstr ""
    348300
    349 #: admin/options.php:238 admin/options.php:2237
     301#: admin/options.php:249 admin/options.php:2246
    350302msgid "Footer"
    351303msgstr ""
    352304
    353 #: admin/options.php:241
     305#: admin/options.php:252
    354306msgid "Featured Image"
    355307msgstr ""
    356308
    357 #: admin/options.php:242
     309#: admin/options.php:253
    358310msgid "Meta Information"
    359311msgstr ""
    360312
    361 #: admin/options.php:243
     313#: admin/options.php:254
    362314msgid "Excerpts"
    363315msgstr ""
    364316
    365 #: admin/options.php:244
     317#: admin/options.php:255
    366318msgid "Comments"
    367319msgstr ""
    368320
    369 #: admin/options.php:246
     321#: admin/options.php:257
    370322msgid "Miscellaneous"
    371323msgstr ""
    372324
    373 #: admin/options.php:266
     325#: admin/options.php:277
    374326msgid "Main Layout"
    375327msgstr ""
    376328
    377 #: admin/options.php:269
     329#: admin/options.php:280
    378330msgid "One column (no sidebars)"
    379331msgstr ""
    380332
    381 #: admin/options.php:273
     333#: admin/options.php:284
    382334msgid "Two columns, sidebar on the right"
    383335msgstr ""
    384336
    385 #: admin/options.php:277
     337#: admin/options.php:288
    386338msgid "Two columns, sidebar on the left"
    387339msgstr ""
    388340
    389 #: admin/options.php:281
     341#: admin/options.php:292
    390342msgid "Three columns, sidebars on the right"
    391343msgstr ""
    392344
    393 #: admin/options.php:285
     345#: admin/options.php:296
    394346msgid "Three columns, sidebars on the left"
    395347msgstr ""
    396348
    397 #: admin/options.php:289
     349#: admin/options.php:300
    398350msgid "Three columns, one sidebar on each side"
    399351msgstr ""
    400352
    401 #: admin/options.php:298
     353#: admin/options.php:309
    402354msgid "Site Width"
    403355msgstr ""
    404356
    405 #: admin/options.php:306
     357#: admin/options.php:317
    406358msgid "Theme alignment"
    407359msgstr ""
    408360
    409 #: admin/options.php:308
     361#: admin/options.php:319
    410362msgid "Left contained"
    411363msgstr ""
    412364
    413 #: admin/options.php:308 admin/options.php:435 admin/options.php:512
    414 #: admin/options.php:1258
     365#: admin/options.php:319 admin/options.php:456 admin/options.php:533
     366#: admin/options.php:1280
    415367msgid "Left"
    416368msgstr ""
    417369
    418 #: admin/options.php:308
     370#: admin/options.php:319
    419371msgid "Center (default)"
    420372msgstr ""
    421373
    422 #: admin/options.php:308
     374#: admin/options.php:319
    423375msgid "Center contained"
    424376msgstr ""
    425377
    426 #: admin/options.php:309
     378#: admin/options.php:320
    427379msgid "Control how the entire theme content is aligned in the browser"
    428380msgstr ""
    429381
    430 #: admin/options.php:315
     382#: admin/options.php:326
    431383msgid "Left Sidebar Width"
    432384msgstr ""
    433385
    434 #: admin/options.php:322
     386#: admin/options.php:333
    435387msgid "Right Sidebar Width"
    436388msgstr ""
    437389
    438 #: admin/options.php:331
     390#: admin/options.php:342
    439391msgid "Posts Layout"
    440392msgstr ""
    441393
    442 #: admin/options.php:334
     394#: admin/options.php:345
    443395msgid "One column"
    444396msgstr ""
    445397
    446 #: admin/options.php:338
     398#: admin/options.php:349
    447399msgid "Two columns"
    448400msgstr ""
    449401
    450 #: admin/options.php:342
     402#: admin/options.php:353
    451403msgid "Three columns"
    452404msgstr ""
    453405
    454 #: admin/options.php:351
     406#: admin/options.php:362
    455407msgid "Margin top"
    456408msgstr ""
    457409
    458 #: admin/options.php:361
     410#: admin/options.php:372
    459411msgid "Site left/right padding"
    460412msgstr ""
    461413
    462 #: admin/options.php:371
     414#: admin/options.php:382
    463415msgid "Post/page left/right padding"
    464416msgstr ""
    465417
    466 #: admin/options.php:382
     418#: admin/options.php:393
    467419msgid "Footer Widgets Columns"
    468420msgstr ""
    469421
    470 #: admin/options.php:385
     422#: admin/options.php:396
    471423msgid "All in a row"
    472424msgstr ""
    473425
    474 #: admin/options.php:386
     426#: admin/options.php:397
    475427msgid "1 Column"
    476428msgstr ""
    477429
    478 #: admin/options.php:387
     430#: admin/options.php:398
    479431msgid "2 Columns"
    480432msgstr ""
    481433
    482 #: admin/options.php:388
     434#: admin/options.php:399
    483435msgid "3 Columns"
    484436msgstr ""
    485437
    486 #: admin/options.php:389
     438#: admin/options.php:400
    487439msgid "4 Columns"
    488440msgstr ""
    489441
    490 #: admin/options.php:397 admin/options.php:1258
     442#: admin/options.php:408 admin/options.php:1280
    491443msgid "Default"
    492444msgstr ""
    493445
    494 #: admin/options.php:397 admin/options.php:435 admin/options.php:512
    495 #: admin/options.php:1258
     446#: admin/options.php:408 admin/options.php:456 admin/options.php:533
     447#: admin/options.php:1280
    496448msgid "Center"
    497449msgstr ""
    498450
    499 #: admin/options.php:398
     451#: admin/options.php:409
    500452msgid "Footer Widgets Alignment"
    501453msgstr ""
    502454
    503 #: admin/options.php:407
    504 msgid ""
    505 "Fine tune the visibility of these elements in the theme's Header options"
    506 msgstr ""
    507 
    508455#: admin/options.php:418
     456#, php-format
     457msgid "Fine tune the visibility of these elements from the theme's %s"
     458msgstr ""
     459
     460#: admin/options.php:418
     461msgid "Header options"
     462msgstr ""
     463
     464#: admin/options.php:427
     465#, php-format
     466msgid ""
     467"Configure the image currently visible on the homepage from the theme's "
     468"options under %s"
     469msgstr ""
     470
     471#: admin/options.php:427
     472msgid "Landing Page > Slider > Banner Image"
     473msgstr ""
     474
     475#: admin/options.php:439
    509476msgid "Fixed Menu"
    510477msgstr ""
    511478
    512 #: admin/options.php:428
     479#: admin/options.php:449
    513480msgid "Header/Menu Height"
    514481msgstr ""
    515482
    516 #: admin/options.php:435 admin/options.php:512 admin/options.php:1258
     483#: admin/options.php:456 admin/options.php:533 admin/options.php:1280
    517484msgid "Right"
    518485msgstr ""
    519486
    520 #: admin/options.php:436
     487#: admin/options.php:457
    521488msgid "Menu Alignment"
    522489msgstr ""
    523490
    524 #: admin/options.php:442
     491#: admin/options.php:463
    525492msgid "Site Header Content"
    526493msgstr ""
    527494
    528 #: admin/options.php:444 admin/options.php:1072
     495#: admin/options.php:465 admin/options.php:1094
    529496msgid "Site Title"
    530497msgstr ""
    531498
    532 #: admin/options.php:444
     499#: admin/options.php:465
    533500msgid "Logo"
    534501msgstr ""
    535502
    536 #: admin/options.php:444
     503#: admin/options.php:465
    537504msgid "Logo & Site Title"
    538505msgstr ""
    539506
    540 #: admin/options.php:444
     507#: admin/options.php:465
    541508msgid "Empty"
    542509msgstr ""
    543510
    544 #: admin/options.php:450
     511#: admin/options.php:471
    545512msgid "Show Tagline"
    546513msgstr ""
    547514
    548 #: admin/options.php:456
     515#: admin/options.php:477
    549516msgid "Logo Image"
    550517msgstr ""
    551518
    552 #: admin/options.php:465
    553 msgid ""
    554 "Edit the site's title, tagline and logo from WordPress' Site Identity panel."
    555 msgstr ""
    556 
    557 #: admin/options.php:473
     519#: admin/options.php:486
     520#, php-format
     521msgid "Edit the site's title, tagline and logo from the %s panel"
     522msgstr ""
     523
     524#: admin/options.php:494
    558525msgid "Header Image Height"
    559526msgstr ""
    560527
    561 #: admin/options.php:481 admin/options.php:1571 admin/options.php:1596
     528#: admin/options.php:502 admin/options.php:1593 admin/options.php:1618
    562529msgid "Changing this value may require to recreate your thumbnails."
    563530msgstr ""
    564531
    565 #: admin/options.php:488 admin/options.php:1578
     532#: admin/options.php:509 admin/options.php:1600
    566533msgid "Cropped"
    567534msgstr ""
    568535
    569 #: admin/options.php:488 admin/options.php:538 admin/options.php:1578
     536#: admin/options.php:509 admin/options.php:559 admin/options.php:1600
    570537msgid "Contained"
    571538msgstr ""
    572539
    573 #: admin/options.php:489
     540#: admin/options.php:510
    574541msgid "Header Image Behaviour"
    575542msgstr ""
    576543
    577 #: admin/options.php:495
     544#: admin/options.php:516
    578545msgid "Title Accent"
    579546msgstr ""
    580547
    581 #: admin/options.php:497
     548#: admin/options.php:518
    582549msgid ""
    583550"Letter index the accent should apply to. Set to zero to disable accent "
     
    585552msgstr ""
    586553
    587 #: admin/options.php:503
     554#: admin/options.php:524
    588555msgid "Header Widget Width"
    589556msgstr ""
    590557
    591 #: admin/options.php:510
     558#: admin/options.php:531
    592559msgid "Header Widget Alignment"
    593560msgstr ""
    594561
    595 #: admin/options.php:522
     562#: admin/options.php:543
    596563msgid "Enabled"
    597564msgstr ""
    598565
    599 #: admin/options.php:522
     566#: admin/options.php:543
    600567msgid "Disabled (use WordPress homepage)"
    601568msgstr ""
    602569
    603 #: admin/options.php:530
     570#: admin/options.php:551
    604571#, php-format
    605572msgid ""
     
    608575msgstr ""
    609576
    610 #: admin/options.php:530
     577#: admin/options.php:551
    611578msgid "use a static page"
    612579msgstr ""
    613580
    614 #: admin/options.php:538
     581#: admin/options.php:559
    615582msgid "Wide"
    616583msgstr ""
    617584
    618 #: admin/options.php:546
     585#: admin/options.php:567
    619586msgid "Static Page"
    620587msgstr ""
    621588
    622 #: admin/options.php:546
     589#: admin/options.php:567
    623590msgid "Posts"
    624591msgstr ""
    625592
    626 #: admin/options.php:546 admin/options.php:569 admin/options.php:677
    627 #: admin/options.php:713 admin/options.php:714 admin/options.php:732
    628 #: admin/options.php:733 admin/options.php:751 admin/options.php:752
    629 #: admin/options.php:770 admin/options.php:771 admin/options.php:801
    630 #: admin/options.php:802 admin/options.php:903 admin/options.php:904
    631 #: admin/options.php:911 admin/options.php:912 admin/options.php:919
    632 #: admin/options.php:920 admin/options.php:927 admin/options.php:928
    633 #: admin/options.php:1305
     593#: 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
    634601msgid "Disabled"
    635602msgstr ""
    636603
    637 #: admin/options.php:553
     604#: admin/options.php:574
    638605msgid "More Posts Label"
    639606msgstr ""
    640607
    641 #: admin/options.php:565 admin/options.php:597
     608#: admin/options.php:586 admin/options.php:618
    642609msgid "Serious Slider"
    643610msgstr ""
    644611
    645 #: admin/options.php:566
     612#: admin/options.php:587
    646613msgid "Use Shortcode"
    647614msgstr ""
    648615
    649 #: admin/options.php:567
    650 msgid "Static Image"
    651 msgstr ""
    652 
    653 #: admin/options.php:568
     616#: admin/options.php:588 admin/options.php:597
     617msgid "Banner Image"
     618msgstr ""
     619
     620#: admin/options.php:589
    654621msgid "Header Image"
    655622msgstr ""
    656623
    657 #: admin/options.php:571
     624#: admin/options.php:592
    658625#, php-format
    659626msgid ""
     
    662629msgstr ""
    663630
    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
     632msgid "The default image can be replaced by setting a new banner image."
     633msgstr ""
     634
     635#: admin/options.php:604
    673636msgid "Slider Link"
    674637msgstr ""
    675638
    676 #: admin/options.php:590
     639#: admin/options.php:611
    677640msgid "Shortcode"
    678641msgstr ""
    679642
    680 #: admin/options.php:591
     643#: admin/options.php:612
    681644msgid ""
    682645"Enter shortcode provided by slider plugin. The plugin will be responsible "
     
    684647msgstr ""
    685648
    686 #: admin/options.php:599
     649#: admin/options.php:620
    687650msgid " - Please install, activate or update Serious Slider plugin - "
    688651msgstr ""
    689652
    690 #: admin/options.php:599
     653#: admin/options.php:620
    691654msgid " - No sliders defined - "
    692655msgstr ""
    693656
    694 #: admin/options.php:600
     657#: admin/options.php:621
    695658msgid ""
    696659"Select the desired slider from the list. Sliders can be administered in the "
     
    698661msgstr ""
    699662
    700 #: admin/options.php:606
    701 msgid "Slider Caption"
    702 msgstr ""
    703 
    704 #: admin/options.php:608
     663#: admin/options.php:627
     664msgid "Caption"
     665msgstr ""
     666
     667#: admin/options.php:629
    705668msgid "Title"
    706669msgstr ""
    707670
    708 #: admin/options.php:616 admin/options.php:624 admin/options.php:640
     671#: admin/options.php:637 admin/options.php:645 admin/options.php:661
    709672msgid "Text"
    710673msgstr ""
    711674
    712 #: admin/options.php:622 admin/options.php:638
     675#: admin/options.php:643 admin/options.php:659
    713676msgid "CTA Button"
    714677msgstr ""
    715678
    716 #: admin/options.php:632 admin/options.php:648
     679#: admin/options.php:653 admin/options.php:669
    717680msgid "Link"
    718681msgstr ""
    719682
    720 #: admin/options.php:656 admin/options.php:781
     683#: admin/options.php:677 admin/options.php:802
    721684msgid "Section Title"
    722685msgstr ""
    723686
    724 #: admin/options.php:663 admin/options.php:788
     687#: admin/options.php:684 admin/options.php:809
    725688msgid "Section Description"
    726689msgstr ""
    727690
    728 #: admin/options.php:675
     691#: admin/options.php:696
    729692msgid "Blocks Content"
    730693msgstr ""
    731694
    732 #: admin/options.php:677
     695#: admin/options.php:698
    733696msgid "No Text"
    734697msgstr ""
    735698
    736 #: admin/options.php:677 admin/options.php:1464 admin/options.php:1480
     699#: admin/options.php:698 admin/options.php:1486 admin/options.php:1502
    737700msgid "Excerpt"
    738701msgstr ""
    739702
    740 #: admin/options.php:677
     703#: admin/options.php:698
    741704msgid "Full Content"
    742705msgstr ""
    743706
    744 #: admin/options.php:684 admin/options.php:883
     707#: admin/options.php:705 admin/options.php:904
    745708msgid "Read More Button"
    746709msgstr ""
    747710
    748 #: admin/options.php:685
     711#: admin/options.php:706
    749712msgid "Configure the 'Read More' link text."
    750713msgstr ""
    751714
    752 #: admin/options.php:691
     715#: admin/options.php:712
    753716msgid "Make icons clickable (linking to their respective pages)."
    754717msgstr ""
    755718
    756 #: admin/options.php:703 admin/options.php:722 admin/options.php:741
    757 #: admin/options.php:760
     719#: admin/options.php:724 admin/options.php:743 admin/options.php:762
     720#: admin/options.php:781
    758721#, php-format
    759722msgid "Block %d"
    760723msgstr ""
    761724
    762 #: admin/options.php:800
     725#: admin/options.php:821
    763726msgid "Boxes Content"
    764727msgstr ""
    765728
    766 #: admin/options.php:801 admin/options.php:802
     729#: admin/options.php:822 admin/options.php:823
    767730msgid "All Categories"
    768731msgstr ""
    769732
    770 #: admin/options.php:816
     733#: admin/options.php:837
    771734msgid "Number of Boxes"
    772735msgstr ""
    773736
    774 #: admin/options.php:823
     737#: admin/options.php:844
    775738msgid "Boxes Per Row"
    776739msgstr ""
    777740
    778 #: admin/options.php:839
     741#: admin/options.php:860
    779742msgid "Box Height"
    780743msgstr ""
    781744
    782 #: admin/options.php:840
     745#: admin/options.php:861
    783746msgid ""
    784747"The width is a percentage dependent on total site width and number of "
     
    786749msgstr ""
    787750
    788 #: admin/options.php:851
     751#: admin/options.php:872
    789752msgid "Box Layout"
    790753msgstr ""
    791754
    792 #: admin/options.php:853
     755#: admin/options.php:874
    793756msgid "Full width"
    794757msgstr ""
    795758
    796 #: admin/options.php:853
     759#: admin/options.php:874
    797760msgid "Boxed (content width)"
    798761msgstr ""
    799762
    800 #: admin/options.php:860
     763#: admin/options.php:881
    801764msgid "Box Stacking"
    802765msgstr ""
    803766
    804 #: admin/options.php:862
     767#: admin/options.php:883
    805768msgid "Joined"
    806769msgstr ""
    807770
    808 #: admin/options.php:862
     771#: admin/options.php:883
    809772msgid "Apart"
    810773msgstr ""
    811774
    812 #: admin/options.php:869
     775#: admin/options.php:890
    813776msgid "Box Appearance"
    814777msgstr ""
    815778
    816 #: admin/options.php:871
     779#: admin/options.php:892
    817780msgid "Animated"
    818781msgstr ""
    819782
    820 #: admin/options.php:871
     783#: admin/options.php:892
    821784msgid "Static"
    822785msgstr ""
    823786
    824 #: admin/options.php:893
     787#: admin/options.php:914
    825788msgid "Content Length (words)"
    826789msgstr ""
    827790
    828 #: admin/options.php:902 admin/options.php:910 admin/options.php:918
    829 #: admin/options.php:926
     791#: admin/options.php:923 admin/options.php:931 admin/options.php:939
     792#: admin/options.php:947
    830793#, php-format
    831794msgid "Text Area %d"
    832795msgstr ""
    833796
    834 #: admin/options.php:935
     797#: admin/options.php:956
    835798msgid ""
    836799"Page properties that will be used:<br>- page title as text title<br>- page "
     
    839802msgstr ""
    840803
    841 #: admin/options.php:944
     804#: admin/options.php:965
    842805msgid "Site Background"
    843806msgstr ""
    844807
    845 #: admin/options.php:950 includes/setup.php:187
     808#: admin/options.php:971 includes/setup.php:187
    846809msgid "Site Text"
    847810msgstr ""
    848811
    849 #: admin/options.php:956 includes/setup.php:182
     812#: admin/options.php:977 includes/setup.php:182
    850813msgid "Content Headings"
    851814msgstr ""
    852815
    853 #: admin/options.php:962 includes/setup.php:192
     816#: admin/options.php:983 includes/setup.php:192
    854817msgid "Content Background"
    855818msgstr ""
    856819
    857 #: admin/options.php:968
     820#: admin/options.php:989
    858821msgid "Secondary Content Background"
    859822msgstr ""
    860823
    861 #: admin/options.php:969
     824#: admin/options.php:990
    862825msgid "Secondary sidebar"
    863826msgstr ""
    864827
    865 #: admin/options.php:978
     828#: admin/options.php:999
    866829msgid "Primary Accent"
    867830msgstr ""
    868831
    869 #: admin/options.php:984
     832#: admin/options.php:1005
    870833msgid "Secondary Accent"
    871834msgstr ""
    872835
    873 #: admin/options.php:991
     836#: admin/options.php:1012
    874837msgid "Header Background"
    875838msgstr ""
    876839
    877 #: admin/options.php:997
     840#: admin/options.php:1018
    878841msgid "Menu Text"
    879842msgstr ""
    880843
    881 #: admin/options.php:1003
     844#: admin/options.php:1024
    882845msgid "Submenu Text"
    883846msgstr ""
    884847
    885 #: admin/options.php:1009
     848#: admin/options.php:1030
    886849msgid "Footer Background"
    887850msgstr ""
    888851
    889 #: admin/options.php:1015
     852#: admin/options.php:1036
    890853msgid "Footer Text"
    891854msgstr ""
    892855
    893 #: admin/options.php:1021
     856#: admin/options.php:1042
    894857msgid "Blocks"
    895858msgstr ""
    896859
    897 #: admin/options.php:1027
     860#: admin/options.php:1048
    898861msgid "Boxes"
    899862msgstr ""
    900863
    901 #: admin/options.php:1051 admin/options.php:1081 admin/options.php:1110
    902 #: admin/options.php:1140 admin/options.php:1169 admin/options.php:1199
    903 #: admin/options.php:1228
     864#: 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
    904867msgid "100 thin"
    905868msgstr ""
    906869
    907 #: admin/options.php:1051 admin/options.php:1081 admin/options.php:1110
    908 #: admin/options.php:1140 admin/options.php:1169 admin/options.php:1199
    909 #: admin/options.php:1228
     870#: 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
    910873msgid "200 extra-light"
    911874msgstr ""
    912875
    913 #: admin/options.php:1051 admin/options.php:1081 admin/options.php:1110
    914 #: admin/options.php:1140 admin/options.php:1169 admin/options.php:1199
    915 #: admin/options.php:1228
     876#: 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
    916879msgid "300 ligher"
    917880msgstr ""
    918881
    919 #: admin/options.php:1051 admin/options.php:1081 admin/options.php:1110
    920 #: admin/options.php:1140 admin/options.php:1169 admin/options.php:1199
    921 #: admin/options.php:1228
     882#: 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
    922885msgid "400 regular"
    923886msgstr ""
    924887
    925 #: admin/options.php:1051 admin/options.php:1081 admin/options.php:1110
    926 #: admin/options.php:1140 admin/options.php:1169 admin/options.php:1199
    927 #: admin/options.php:1228
     888#: 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
    928891msgid "500 medium"
    929892msgstr ""
    930893
    931 #: admin/options.php:1051 admin/options.php:1081 admin/options.php:1110
    932 #: admin/options.php:1140 admin/options.php:1169 admin/options.php:1199
    933 #: admin/options.php:1228
     894#: 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
    934897msgid "600 semi-bold"
    935898msgstr ""
    936899
    937 #: admin/options.php:1051 admin/options.php:1081 admin/options.php:1110
    938 #: admin/options.php:1140 admin/options.php:1169 admin/options.php:1199
    939 #: admin/options.php:1228
     900#: 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
    940903msgid "700 bold"
    941904msgstr ""
    942905
    943 #: admin/options.php:1051 admin/options.php:1081 admin/options.php:1110
    944 #: admin/options.php:1140 admin/options.php:1169 admin/options.php:1199
    945 #: admin/options.php:1228
     906#: 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
    946909msgid "800 extra-bold"
    947910msgstr ""
    948911
    949 #: admin/options.php:1051 admin/options.php:1081 admin/options.php:1110
    950 #: admin/options.php:1140 admin/options.php:1169 admin/options.php:1199
    951 #: admin/options.php:1228
     912#: 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
    952915msgid "900 black"
    953916msgstr ""
    954917
    955 #: admin/options.php:1064
     918#: admin/options.php:1086
    956919msgid ""
    957920"The fonts under the <em>Preferred Theme Fonts</em> list are recommended "
     
    959922msgstr ""
    960923
    961 #: admin/options.php:1065 admin/options.php:1095 admin/options.php:1124
    962 #: admin/options.php:1154 admin/options.php:1183 admin/options.php:1213
    963 #: admin/options.php:1242
     924#: 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
    964927msgid "or enter Google Font Identifier"
    965928msgstr ""
    966929
    967 #: admin/options.php:1101
     930#: admin/options.php:1123
    968931msgid "Main Menu"
    969932msgstr ""
    970933
    971 #: admin/options.php:1131
     934#: admin/options.php:1153
    972935msgid "Widget Title"
    973936msgstr ""
    974937
    975 #: admin/options.php:1160
     938#: admin/options.php:1182
    976939msgid "Widget Content"
    977940msgstr ""
    978941
    979 #: admin/options.php:1190
     942#: admin/options.php:1212
    980943msgid "Post/Page Titles"
    981944msgstr ""
    982945
    983 #: admin/options.php:1219
     946#: admin/options.php:1241
    984947msgid "Headings"
    985948msgstr ""
    986949
    987 #: admin/options.php:1249
     950#: admin/options.php:1271
    988951msgid "Line Height"
    989952msgstr ""
    990953
    991 #: admin/options.php:1256
     954#: admin/options.php:1278
    992955msgid "Text Alignment"
    993956msgstr ""
    994957
    995 #: admin/options.php:1258
     958#: admin/options.php:1280
    996959msgid "Justify"
    997960msgstr ""
    998961
    999 #: admin/options.php:1264
     962#: admin/options.php:1286
    1000963msgid "Paragraph Spacing"
    1001964msgstr ""
    1002965
    1003 #: admin/options.php:1271
     966#: admin/options.php:1293
    1004967msgid "Paragraph Indentation"
    1005968msgstr ""
    1006969
    1007 #: admin/options.php:1281
     970#: admin/options.php:1303
    1008971msgid "Breadcrumbs"
    1009972msgstr ""
    1010973
    1011 #: admin/options.php:1288
     974#: admin/options.php:1310
    1012975msgid "Numbered Pagination"
    1013976msgstr ""
    1014977
    1015 #: admin/options.php:1295
     978#: admin/options.php:1317
    1016979msgid "Page/Category Titles"
    1017980msgstr ""
    1018981
    1019 #: admin/options.php:1297
     982#: admin/options.php:1319
    1020983msgid "Always Visible"
    1021984msgstr ""
    1022985
    1023 #: admin/options.php:1297
     986#: admin/options.php:1319
    1024987msgid "Hide on Pages"
    1025988msgstr ""
    1026989
    1027 #: admin/options.php:1297
     990#: admin/options.php:1319
    1028991msgid "Hide on Categories"
    1029992msgstr ""
    1030993
    1031 #: admin/options.php:1297
     994#: admin/options.php:1319
    1032995msgid "Always Hidden"
    1033996msgstr ""
    1034997
    1035 #: admin/options.php:1303
     998#: admin/options.php:1325
    1036999msgid "Back to Top Button"
    10371000msgstr ""
    10381001
    1039 #: admin/options.php:1305
     1002#: admin/options.php:1327
    10401003msgid "Bottom of page"
    10411004msgstr ""
    10421005
    1043 #: admin/options.php:1305
     1006#: admin/options.php:1327
    10441007msgid "In footer"
    10451008msgstr ""
    10461009
    1047 #: admin/options.php:1311
     1010#: admin/options.php:1333
    10481011msgid "Tables Style"
    10491012msgstr ""
    10501013
    1051 #: admin/options.php:1313
     1014#: admin/options.php:1335
    10521015msgid "No border"
    10531016msgstr ""
    10541017
    1055 #: admin/options.php:1313
     1018#: admin/options.php:1335
    10561019msgid "Clean"
    10571020msgstr ""
    10581021
    1059 #: admin/options.php:1313
     1022#: admin/options.php:1335
    10601023msgid "Stripped"
    10611024msgstr ""
    10621025
    1063 #: admin/options.php:1313
     1026#: admin/options.php:1335
    10641027msgid "Bordered"
    10651028msgstr ""
    10661029
    1067 #: admin/options.php:1319
     1030#: admin/options.php:1341
    10681031msgid "Tags Cloud Appearance"
    10691032msgstr ""
    10701033
    1071 #: admin/options.php:1321
     1034#: admin/options.php:1343
    10721035msgid "Size Emphasis"
    10731036msgstr ""
    10741037
    1075 #: admin/options.php:1321
     1038#: admin/options.php:1343
    10761039msgid "Uniform Boxes"
    10771040msgstr ""
    10781041
    1079 #: admin/options.php:1327
     1042#: admin/options.php:1349
    10801043msgid "Custom Footer Text"
    10811044msgstr ""
    10821045
    1083 #: admin/options.php:1328
     1046#: admin/options.php:1350
    10841047msgid ""
    10851048"Insert custom text or basic HTML code that will appear in your footer. <br />"
     
    10871050msgstr ""
    10881051
    1089 #: admin/options.php:1336
     1052#: admin/options.php:1358
    10901053msgid "Border"
    10911054msgstr ""
    10921055
    1093 #: admin/options.php:1342
     1056#: admin/options.php:1364
    10941057msgid "Shadow"
    10951058msgstr ""
    10961059
    1097 #: admin/options.php:1348
     1060#: admin/options.php:1370
    10981061msgid "Rounded Corners"
    10991062msgstr ""
    11001063
    1101 #: admin/options.php:1349
     1064#: admin/options.php:1371
    11021065msgid "These decorations apply to certain theme elements."
    11031066msgstr ""
    11041067
    1105 #: admin/options.php:1354
     1068#: admin/options.php:1376
    11061069msgid "Article Animation on Scroll"
    11071070msgstr ""
    11081071
    1109 #: admin/options.php:1356
     1072#: admin/options.php:1378
    11101073msgid "None"
    11111074msgstr ""
    11121075
    1113 #: admin/options.php:1356
     1076#: admin/options.php:1378
    11141077msgid "Fade"
    11151078msgstr ""
    11161079
    1117 #: admin/options.php:1356
     1080#: admin/options.php:1378
    11181081msgid "Slide"
    11191082msgstr ""
    11201083
    1121 #: admin/options.php:1356
     1084#: admin/options.php:1378
    11221085msgid "Grow"
    11231086msgstr ""
    11241087
    1125 #: admin/options.php:1365
     1088#: admin/options.php:1387
    11261089msgid "Add Search to Main Menu"
    11271090msgstr ""
    11281091
    1129 #: admin/options.php:1371
     1092#: admin/options.php:1393
    11301093msgid "Add Search to Footer Menu"
    11311094msgstr ""
    11321095
    1133 #: admin/options.php:1380
     1096#: admin/options.php:1402
    11341097msgid "Post Images"
    11351098msgstr ""
    11361099
    1137 #: admin/options.php:1383
     1100#: admin/options.php:1405
    11381101msgid "No Styling"
    11391102msgstr ""
    11401103
    1141 #: admin/options.php:1387 admin/options.php:1391 admin/options.php:1395
    1142 #: admin/options.php:1399 admin/options.php:1403
     1104#: admin/options.php:1409 admin/options.php:1413 admin/options.php:1417
     1105#: admin/options.php:1421 admin/options.php:1425
    11431106#, php-format
    11441107msgid "Style %d"
    11451108msgstr ""
    11461109
    1147 #: admin/options.php:1412
     1110#: admin/options.php:1434
    11481111msgid "Post Captions"
    11491112msgstr ""
    11501113
    1151 #: admin/options.php:1414
     1114#: admin/options.php:1436
    11521115msgid "Plain"
    11531116msgstr ""
    11541117
    1155 #: admin/options.php:1414
     1118#: admin/options.php:1436
    11561119msgid "With Border"
    11571120msgstr ""
    11581121
    1159 #: admin/options.php:1414
     1122#: admin/options.php:1436
    11601123msgid "With Background"
    11611124msgstr ""
    11621125
    1163 #: admin/options.php:1424
     1126#: admin/options.php:1446
    11641127msgid "Display Author"
    11651128msgstr ""
    11661129
    1167 #: admin/options.php:1430
     1130#: admin/options.php:1452
    11681131msgid "Display Date"
    11691132msgstr ""
    11701133
    1171 #: admin/options.php:1436
     1134#: admin/options.php:1458
    11721135msgid "Display Time"
    11731136msgstr ""
    11741137
    1175 #: admin/options.php:1442
     1138#: admin/options.php:1464
    11761139msgid "Display Category"
    11771140msgstr ""
    11781141
    1179 #: admin/options.php:1448
     1142#: admin/options.php:1470
    11801143msgid "Display Tags"
    11811144msgstr ""
    11821145
    1183 #: admin/options.php:1454
     1146#: admin/options.php:1476
    11841147msgid "Display Comments"
    11851148msgstr ""
    11861149
    1187 #: admin/options.php:1455
     1150#: admin/options.php:1477
    11881151msgid "Choose meta information to show on posts."
    11891152msgstr ""
    11901153
    1191 #: admin/options.php:1462
     1154#: admin/options.php:1484
    11921155msgid "Standard Posts On Homepage"
    11931156msgstr ""
    11941157
    1195 #: admin/options.php:1464 admin/options.php:1472 admin/options.php:1480
     1158#: admin/options.php:1486 admin/options.php:1494 admin/options.php:1502
    11961159msgid "Full Post"
    11971160msgstr ""
    11981161
    1199 #: admin/options.php:1465
     1162#: admin/options.php:1487
    12001163msgid "Post formats always display full posts."
    12011164msgstr ""
    12021165
    1203 #: admin/options.php:1470
     1166#: admin/options.php:1492
    12041167msgid "Sticky Posts on Homepage"
    12051168msgstr ""
    12061169
    1207 #: admin/options.php:1472
     1170#: admin/options.php:1494
    12081171msgid "Inherit"
    12091172msgstr ""
    12101173
    1211 #: admin/options.php:1478
     1174#: admin/options.php:1500
    12121175msgid "Standard Posts in Categories/Archives"
    12131176msgstr ""
    12141177
    1215 #: admin/options.php:1489
     1178#: admin/options.php:1511
    12161179msgid "Excerpt Length (words)"
    12171180msgstr ""
    12181181
    1219 #: admin/options.php:1495
     1182#: admin/options.php:1517
    12201183msgid "Excerpt Suffix"
    12211184msgstr ""
    12221185
    1223 #: admin/options.php:1501
     1186#: admin/options.php:1523
    12241187msgid "Continue Reading Label"
    12251188msgstr ""
    12261189
    1227 #: admin/options.php:1509
     1190#: admin/options.php:1531
    12281191msgid "'Comments Are Closed' Text"
    12291192msgstr ""
    12301193
    1231 #: admin/options.php:1511
     1194#: admin/options.php:1533
    12321195msgid "Show"
    12331196msgstr ""
    12341197
    1235 #: admin/options.php:1511
     1198#: admin/options.php:1533
    12361199msgid "Hide in posts"
    12371200msgstr ""
    12381201
    1239 #: admin/options.php:1511
     1202#: admin/options.php:1533
    12401203msgid "Hide in pages"
    12411204msgstr ""
    12421205
    1243 #: admin/options.php:1511
     1206#: admin/options.php:1533
    12441207msgid "Hide everywhere"
    12451208msgstr ""
    12461209
    1247 #: admin/options.php:1517
     1210#: admin/options.php:1539
    12481211msgid "Comment Date Format"
    12491212msgstr ""
    12501213
    1251 #: admin/options.php:1519
     1214#: admin/options.php:1541
    12521215msgid "Specific"
    12531216msgstr ""
    12541217
    1255 #: admin/options.php:1519
     1218#: admin/options.php:1541
    12561219msgid "Relative"
    12571220msgstr ""
    12581221
    1259 #: admin/options.php:1525
     1222#: admin/options.php:1547
    12601223msgid "Comment Field Label"
    12611224msgstr ""
    12621225
    1263 #: admin/options.php:1527
     1226#: admin/options.php:1549
    12641227msgid "Placeholders"
    12651228msgstr ""
    12661229
    1267 #: admin/options.php:1527
     1230#: admin/options.php:1549
    12681231msgid "Labels"
    12691232msgstr ""
    12701233
    1271 #: admin/options.php:1528
     1234#: admin/options.php:1550
    12721235msgid "Change to labels for better compatibility with comment-related plugins."
    12731236msgstr ""
    12741237
    1275 #: admin/options.php:1537
     1238#: admin/options.php:1559
    12761239msgid "Comment Form Width"
    12771240msgstr ""
    12781241
    1279 #: admin/options.php:1545
     1242#: admin/options.php:1567
    12801243msgid "Featured Images"
    12811244msgstr ""
    12821245
    1283 #: admin/options.php:1552
     1246#: admin/options.php:1574
    12841247msgid "Auto Select Image From Content"
    12851248msgstr ""
    12861249
    1287 #: admin/options.php:1563
     1250#: admin/options.php:1585
    12881251msgid "Featured Image Height"
    12891252msgstr ""
    12901253
    1291 #: admin/options.php:1564
     1254#: admin/options.php:1586
    12921255msgid "Set to 0 to disable image processing"
    12931256msgstr ""
    12941257
    1295 #: admin/options.php:1579
     1258#: admin/options.php:1601
    12961259msgid "Featured Image Behaviour"
    12971260msgstr ""
    12981261
    1299 #: admin/options.php:1580
     1262#: admin/options.php:1602
    13001263msgid ""
    13011264"<strong>Contained</strong> will scale depending on the viewed resolution<br>"
     
    13031266msgstr ""
    13041267
    1305 #: admin/options.php:1585
     1268#: admin/options.php:1607
    13061269msgid "Featured Image Crop Position"
    13071270msgstr ""
    13081271
    1309 #: admin/options.php:1587
     1272#: admin/options.php:1609
    13101273msgid "No Crop"
    13111274msgstr ""
    13121275
    1313 #: admin/options.php:1587
     1276#: admin/options.php:1609
    13141277msgid "Left Top"
    13151278msgstr ""
    13161279
    1317 #: admin/options.php:1587
     1280#: admin/options.php:1609
    13181281msgid "Left Center"
    13191282msgstr ""
    13201283
    1321 #: admin/options.php:1587
     1284#: admin/options.php:1609
    13221285msgid "Left Bottom"
    13231286msgstr ""
    13241287
    1325 #: admin/options.php:1587
     1288#: admin/options.php:1609
    13261289msgid "Right Top"
    13271290msgstr ""
    13281291
    1329 #: admin/options.php:1587
     1292#: admin/options.php:1609
    13301293msgid "Right Center"
    13311294msgstr ""
    13321295
    1333 #: admin/options.php:1587
     1296#: admin/options.php:1609
    13341297msgid "Right Bottom"
    13351298msgstr ""
    13361299
    1337 #: admin/options.php:1587
     1300#: admin/options.php:1609
    13381301msgid "Center Top"
    13391302msgstr ""
    13401303
    1341 #: admin/options.php:1587
     1304#: admin/options.php:1609
    13421305msgid "Center Center"
    13431306msgstr ""
    13441307
    1345 #: admin/options.php:1587
     1308#: admin/options.php:1609
    13461309msgid "Center Bottom"
    13471310msgstr ""
    13481311
    1349 #: admin/options.php:1603
     1312#: admin/options.php:1625
    13501313msgid "Use Featured Images in Header"
    13511314msgstr ""
    13521315
    1353 #: admin/options.php:1613
     1316#: admin/options.php:1635
    13541317msgid "Display in Header"
    13551318msgstr ""
    13561319
    1357 #: admin/options.php:1619
     1320#: admin/options.php:1641
    13581321msgid "Display in Footer"
    13591322msgstr ""
    13601323
    1361 #: admin/options.php:1625
     1324#: admin/options.php:1647
    13621325msgid "Display in Left Sidebar"
    13631326msgstr ""
    13641327
    1365 #: admin/options.php:1631
     1328#: admin/options.php:1653
    13661329msgid "Display in Right Sidebar"
    13671330msgstr ""
    13681331
    1369 #: admin/options.php:1632
    1370 #, 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:1640
     1332#: admin/options.php:1654
     1333#, php-format
     1334msgid ""
     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."
     1339msgstr ""
     1340
     1341#: admin/options.php:1662
    13791342msgid "Default Pages Menu"
    13801343msgstr ""
    13811344
    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
    13991346msgid "Masonry"
    14001347msgstr ""
    14011348
    1402 #: admin/options.php:1672
     1349#: admin/options.php:1678
    14031350msgid "JS Defer loading"
    14041351msgstr ""
    14051352
    1406 #: admin/options.php:1681
     1353#: admin/options.php:1687
    14071354msgid "Autoscroll"
    14081355msgstr ""
    14091356
    1410 #: admin/options.php:1689
     1357#: admin/options.php:1695
    14111358msgid "Header image size requirements"
    14121359msgstr ""
    14131360
    1414 #: admin/options.php:1697
     1361#: admin/options.php:1703
    14151362msgid "Force mobile menu on iOS mobile devices"
    14161363msgstr ""
    14171364
    1418 #: admin/options.php:1705
     1365#: admin/options.php:1711
    14191366msgid "Editor Styles"
    14201367msgstr ""
    14211368
    1422 #: admin/options.php:1713
     1369#: admin/options.php:1719
    14231370msgid "FitVids"
    14241371msgstr ""
    14251372
    1426 #: admin/options.php:1715
     1373#: admin/options.php:1721
    14271374msgid "Enable"
    14281375msgstr ""
    14291376
    1430 #: admin/options.php:1715
     1377#: admin/options.php:1721
    14311378msgid "Enable on mobiles"
    14321379msgstr ""
    14331380
    1434 #: admin/options.php:1715
     1381#: admin/options.php:1721
    14351382msgid "Disable"
    14361383msgstr ""
    14371384
    1438 #: admin/options.php:1716
     1385#: admin/options.php:1722
    14391386msgid "<br>Only use these options to troubleshoot issues."
    14401387msgstr ""
    14411388
    1442 #: admin/options.php:2223
     1389#: admin/options.php:2232
    14431390msgid "Sidebar Left"
    14441391msgstr ""
    14451392
    1446 #: admin/options.php:2230
     1393#: admin/options.php:2239
    14471394msgid "Sidebar Right"
    14481395msgstr ""
    14491396
    1450 #: admin/options.php:2238
     1397#: admin/options.php:2247
    14511398msgid ""
    14521399"You can configure how many columns the footer displays from the theme options"
    14531400msgstr ""
    14541401
    1455 #: admin/options.php:2245
     1402#: admin/options.php:2254
    14561403msgid "Content Before"
    14571404msgstr ""
    14581405
    1459 #: admin/options.php:2252
     1406#: admin/options.php:2261
    14601407msgid "Content After"
     1408msgstr ""
     1409
     1410#: admin/options.php:2269
     1411msgid ""
     1412"This widget area is displayed over the header image and requires an image to "
     1413"be set."
    14611414msgstr ""
    14621415
     
    15131466msgstr ""
    15141467
    1515 #: includes/core.php:347
     1468#. $layout_class
     1469#: includes/core.php:353
    15161470msgid "Home"
    15171471msgstr ""
    15181472
    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
     1476msgid "Archive for category \"%s\""
     1477msgstr ""
     1478
     1479#. $text_archive
     1480#: includes/core.php:355
     1481#, php-format
     1482msgid "Search results for \"%s\""
     1483msgstr ""
     1484
     1485#. $text_search
     1486#: includes/core.php:356
    15281487msgid "Posts tagged"
    15291488msgstr ""
    15301489
    1531 #: includes/core.php:351
     1490#. $text_tag
     1491#: includes/core.php:357
    15321492msgid "Articles posted by"
    15331493msgstr ""
    15341494
    1535 #: includes/core.php:353
     1495#. $text_404
     1496#: includes/core.php:359
    15361497msgid "Post format"
    15371498msgstr ""
    15381499
    1539 #: includes/core.php:354
     1500#. $text_format
     1501#: includes/core.php:360
    15401502msgid "Page"
    15411503msgstr ""
     
    15831545msgstr ""
    15841546
    1585 #: includes/comments.php:25
     1547#: includes/comments.php:24
    15861548msgid "Pingback: "
    15871549msgstr ""
    15881550
    1589 #: includes/comments.php:25 includes/comments.php:55
     1551#: includes/comments.php:24 includes/comments.php:54
    15901552msgid "(Edit)"
    15911553msgstr ""
    15921554
    1593 #: includes/comments.php:47
     1555#. 1: date, 2: time
     1556#: includes/comments.php:46
    15941557msgid "at"
    15951558msgstr ""
    15961559
    1597 #: includes/comments.php:50
     1560#: includes/comments.php:49
    15981561#, php-format
    15991562msgctxt "%s = human-readable time difference"
     
    16011564msgstr ""
    16021565
    1603 #: includes/comments.php:62
     1566#: includes/comments.php:61
    16041567msgid "Your comment is awaiting moderation."
    16051568msgstr ""
    16061569
    1607 #: includes/comments.php:70
     1570#: includes/comments.php:69
    16081571msgid "Reply"
    16091572msgstr ""
    16101573
     1574#: includes/comments.php:92
     1575msgid "Leave a comment"
     1576msgstr ""
     1577
    16111578#: 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"
     1581msgid "One Comment"
     1582msgstr ""
     1583
     1584#: includes/comments.php:124 includes/comments.php:125
    16161585msgid "Name"
    16171586msgstr ""
    16181587
    1619 #: includes/comments.php:131 includes/comments.php:132
     1588#: includes/comments.php:128 includes/comments.php:129
    16201589msgid "Email"
    16211590msgstr ""
    16221591
    1623 #: includes/comments.php:135 includes/comments.php:136
     1592#: includes/comments.php:132 includes/comments.php:133
    16241593msgid "Website"
    16251594msgstr ""
    16261595
    1627 #: includes/comments.php:140
     1596#: includes/comments.php:137
    16281597msgid ""
    16291598"Save my name, email, and site URL in my browser for next time I post a "
     
    16311600msgstr ""
    16321601
    1633 #: includes/comments.php:149 includes/comments.php:150
     1602#: includes/comments.php:146 includes/comments.php:147
    16341603msgctxt "noun"
    16351604msgid "Comment"
  • fluida/1.8.6/page.php

    r135857 r144713  
    1313get_header(); ?>
    1414
    15     <div id="container" class="<?php echo fluida_get_layout_class(); ?>">
     15    <div id="container" class="<?php fluida_get_layout_class(); ?>">
    1616
    17         <main id="main" role="main" class="main">
     17        <main id="main" class="main">
    1818            <?php cryout_before_content_hook(); ?>
    19            
     19
    2020            <?php get_template_part( 'content/content', 'page' ); ?>
    2121
  • fluida/1.8.6/readme.txt

    r135857 r144713  
    33Contributors: Cryout Creations
    44Requires at least: 4.5
    5 Tested up to: 5.5
    6 Stable tag: 1.8.5
    7 Requires PHP: 5.3
     5Tested up to: 5.7
     6Stable tag: 1.8.6
     7Requires PHP: 5.4
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    1616Fluida 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.
    1717
    18 Copyright 2015-2019 Cryout Creations
     18Copyright 2015-2021 Cryout Creations
    1919https://www.cryoutcreations.eu/
    2020
     
    8787== Changelog ==
    8888
     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
    89117= 1.8.5 =
    90118*Release date - 03.09.2020*
    91119* Improved mobile menu color options handling
    92120* Additional accessibility improvements
    93 * Fixed editor font sizes using the incorrect normal font size
     121* Fixed block editor font sizes using the incorrect 'regular' slug
    94122* Fixed page layout meta option not working since 1.8.4
    95123* Fixed social icons sometimes overlapping mobile menu toggler on RTL
  • fluida/1.8.6/resources/fonts/fontfaces.css

    r135857 r144713  
    55 */
    66
     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}
    713/* Glyph Icons */
    814
     
    2329    font-style: normal;
    2430    font-weight: normal;
    25     speak: none;
     31    speak: never;
    2632    display: inline-block;
    2733    text-decoration: inherit;
     
    277283    font-style: normal;
    278284    font-weight: normal;
    279     speak: none;
     285    speak: never;
    280286    content:  '\e83d';
    281287    display: inline-block;
     
    516522    font-style: normal;
    517523    font-weight: normal;
    518     speak: none;
     524    speak: never;
    519525    display: inline-block;
    520526    text-decoration: inherit;
     
    530536}
    531537
    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,
    538541.select2-container.cryout-iconselect .select2-results__option {
    539     font-family: "fluida-blocks";
     542    font-family: "fluida-blocks", -apple-system, BlinkMacSystemFont, sans-serif;
    540543}
    541544
  • fluida/1.8.6/resources/js/ajax.js

    r135857 r144713  
    3030     * Load new posts when the link is clicked.
    3131     */
    32     $( '#cryout_ajax_more_trigger' ).click( function() {
     32    $( '#cryout_ajax_more_trigger' ).on( 'click', function() {
    3333        /* Loading gif */
    3434        $( this ).addClass( 'cryout_click_loading' );
     
    4646                    /* Add articles one by one */
    4747                    $data.each( function() {
    48                         $( this ).css( 'opacity', '0' ).appendTo( '#content-masonry' );
     48                        $( this ).css( 'opacity', 0 ).appendTo( '#content-masonry' );
    4949                    });
    5050
     
    5353                        /* Add articles one by one */
    5454                        $data.each( function() {
    55                             $( this ).css( 'opacity', '0' ).appendTo( '#content-masonry' );
     55                            $( this ).css( 'opacity', 0 ).appendTo( '#content-masonry' );
    5656                        });
    5757
     
    7171                    else { // if not masonry
    7272                        $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' );
    7474                        });
    7575                        if ( cryout_theme_settings.fitvids == 1 ) { $( this ).fitVids(); }
  • fluida/1.8.6/resources/js/frontend.js

    r135857 r144713  
    55 */
    66
    7 /*
    8  * DOCUMENT.READY()
    9  */
    107jQuery( document ).ready( function() {
    118
     
    1310    cryoutMobileMenuInit();
    1411    cryoutFixedMobileMenu();
    15     cryoutInitNav('#mobile-menu');
     12    cryoutInitNav( '#mobile-menu' );
    1613    cryoutMenuAnimate();
    1714    cryoutBackToTop();
     
    2320    cryoutTitleLettering()
    2421    cryoutBoxesAnimation();
    25     cryoutRemoveFocus('#access a, #site-title a, button');
     22    cryoutRemoveFocus();
    2623
    2724    if ( ( (cryout_theme_settings.fitvids == 2) && (cryout_theme_settings.is_mobile == 1) ) || ( cryout_theme_settings.fitvids == 1 ) ) {
     
    3532}); /* document.ready */
    3633
    37 /*
    38  * WINDOW.LOAD()
    39  */
    40 jQuery( window ).load( function() {
     34jQuery( window ).on( 'load', function() {
    4135
    4236    /* trigger scroll on load */
     
    4943
    5044/*
    51  * FUNCTIONS
    52  */
    53 
     45 * Functions
     46**/
     47
     48/* Force LP boxes images ratios */
    5449function 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] );
    5752    }
    5853} /* cryoutLpBoxesRatios() */
     
    6055function cryoutBoxesAnimation() {
    6156    jQuery( ".lp-boxes-animated.lp-boxes" ).mousedir( ".lp-boxes-animated.lp-boxes:not(.lp-boxes-animated2) .lp-box" );
    62 }
     57} /* cryoutBoxesAnimation() */
    6358
    6459/* Site Title Letter break */
     
    8277/* Menu animation */
    8378function 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() {
    9388        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() {
    9792        jQuery( this ).parents( '.menu-item, .page_item' ).removeClass( 'menu-hover' );
    98     });
     93    } );
    9994} /* cryoutMenuAnimate() */
    10095
    10196/* Back to top button animation */
    10297function cryoutBackToTop() {
    103     jQuery( window ).scroll( function() {
     98    jQuery( window ).on( 'scroll', function() {
    10499        if ( jQuery( this ).scrollTop() > 500 ) {
    105100            jQuery( "#toTop" ).css( { "bottom": "-2px", "opacity": 1 } );
     
    112107            jQuery( ".fluida-fixed-menu #site-header-main" ).removeClass( "header-fixed" );
    113108        }
    114     });
    115     jQuery( "#toTop" ).click( function( event ) {
     109    } );
     110
     111    jQuery( '#toTop' ).on( 'click', function( event ) {
    116112        event.preventDefault();
    117         jQuery( "html, body" ).animate( { scrollTop: 0 }, 500 );
     113        jQuery( 'html, body' ).animate( { scrollTop: 0 }, 500 );
    118114        return false;
    119     });
     115    } );
    120116} /* cryoutBackToTop() */
    121117
    122118/* Search form animation */
    123119function cryoutSearchFormAnimation() {
    124     var searchIcon = jQuery( "#access .menu-search-animated > a" );
    125     var searchForm = jQuery( ".menu-search-animated .searchform" );
    126     var searchInput = 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" );
    127123
    128124    searchIcon.on( 'click', function( event ) {
    129125        event.preventDefault();
    130126        searchForm.slideToggle( 100 );
    131         searchInput.focus();
     127        searchInput.trigger( 'focus' );
    132128        searchInput.css('outline', 'none');
    133129        event.stopPropagation();
    134     });
    135 
    136     searchForm.click( function( event ){
     130    } );
     131
     132    searchForm.on( 'click', function( event ){
    137133        event.stopPropagation();
    138     });
    139 
    140     searchInput.blur( function() {
     134    } );
     135
     136    searchInput.on( 'blur', function() {
    141137        searchForm.fadeOut( 100 );
    142     });
     138    } );
    143139
    144140} /* cryoutSearchFormAnimation() */
     
    149145    /* First and last elements in the menu */
    150146    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){
    154149        e.preventDefault();
    155150        jQuery("#mobile-menu").show().animate({left: "0"}, 500);
    156151        jQuery('body').addClass("noscroll");
    157         firstTab.focus();
     152        firstTab.trigger('focus');
    158153        return false;
    159154    });
    160155
    161     jQuery("#nav-cancel").click(function(e){
     156    jQuery("#nav-cancel").on( 'click', function(e){
    162157        e.preventDefault();
    163158        jQuery("#mobile-menu").animate({left: "100%"},500,function(){jQuery(this).css("left","-100%").hide();});
    164159        jQuery('body').removeClass("noscroll");
    165         jQuery("#nav-toggle").focus();
     160        jQuery("#nav-toggle").trigger('focus');
    166161        return false;
    167162    });
     
    181176        if ((e.which === 9 && e.shiftKey)) {
    182177            e.preventDefault();
    183             lastTab.focus();
     178            lastTab.trigger('focus');
    184179        }
    185180    });
     
    190185        if (e.keyCode === 27 ) {
    191186            jQuery('body').removeClass('noscroll');
    192             lastTab.focus();
     187            lastTab.trigger('focus');
    193188        };
    194189    });
     
    212207    body = jQuery( 'body' );
    213208
    214     jQuery(window).scroll(function () {
     209    jQuery(window).on( 'scroll', function () {
    215210        var a = jQuery(window).scrollTop();
    216211        var b = jQuery(document).height();
     
    221216        currentScrollBottom = b;
    222217
    223         if (c < currentScrollTop && a > navbarHeight + navbarHeight) {
     218        if ( c < currentScrollTop && a > navbarHeight + navbarHeight ) {
    224219            /* scrolling down */
    225220            body.removeClass('mobile-fixed');
     
    240235
    241236/* Add submenus toggles to the primary navigation */
    242 function cryoutInitNav(selector) {
    243 
    244     container = jQuery(selector);
     237function cryoutInitNav( selector ) {
     238
     239    container = jQuery( selector );
    245240
    246241    /* Add dropdown toggle that display child menu items. */
     
    250245    /* Toggle buttons and submenu items with active children menu items. */
    251246    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 ) {
    255250        var _this = jQuery( this );
    256251        e.preventDefault();
    257252        _this.toggleClass( 'toggle-on' );
    258253        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' );
    261256        }
    262257        else {
     
    265260            _this.next( '.children, .sub-menu' ).find( 'a' ).removeClass( 'toggled-on' );
    266261            _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 );
    273268        }
    274269
     
    278273
    279274    /* 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    } );
    283278
    284279} /* cryoutInitNav() */
     
    289284    var $this = jQuery( this );
    290285    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() {
    293289        var nh = $this.width() / ratio;
    294         $this.css( "height", nh + "px" );
    295     });
     290        $this.css( 'height', nh + 'px' );
     291    } );
    296292
    297293}; /* keepRatio() */
     
    299295/* LP Box Mouse direction overlay animation */
    300296jQuery.fn.mousedir = function( el ) {
    301     if ( ! jQuery( "body" ).hasClass( "fluida-landing-page" ) ) return;
     297    if ( ! jQuery( 'body' ).hasClass( 'fluida-landing-page' ) ) return;
    302298
    303299    var $this = jQuery( this ),
    304300        $el = jQuery( el ),
    305301        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';
    323318            }
    324319        }
    325320        last_position = {
    326             x : event.offsetX,
    327             y : event.offsetY
     321            x : event.offsetX,
     322            y : event.offsetY
    328323        };
    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 );
    335330        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 );
    340337        return;
    341     });
     338    } );
    342339
    343340}; /* mouseDir() */
    344341
    345 /* See if element is visible in browser window */
     342/* Check if element is visible in browser window */
    346343jQuery.fn.visible = function( partial ) {
    347344    var $t            = jQuery( this ),
     
    410407
    411408/* Remove all off-canvas states */
    412 function cryoutRemoveFocus( selector ) {
    413     jQuery( selector ).on('mouseup mousedown', function() {
     409function cryoutRemoveFocus() {
     410    jQuery( '#access a, #site-title a').on('mouseup mousedown', function() {
    414411        jQuery( this ).blur();
    415412    });
     
    421418/*  Tabs widget */
    422419function 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            } );
    441444            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' );
    443447
    444448} /* cryoutTabsWidget() */
     
    446450/* Blog Masonry */
    447451function 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( {
    450457            itemSelector: 'article',
    451458            columnWidth: 'article',
    452459            percentPosition: true,
    453460            isRTL: cryout_theme_settings.rtl,
    454         });
     461        } );
    455462    }
    456463} /* cryoutMasonry() */
     
    459466function cryoutPortfolioMasonry() {
    460467    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( {
    462469            itemSelector: '.portfolio-entry',
    463470            columnWidth: '.portfolio-entry:not(.hidey)',
    464471            percentPosition: true,
    465472            isRTL: cryout_theme_settings.rtl,
    466         });
     473        } );
    467474    }
    468475} /* cryoutPortfolioMasonry() */
     
    470477/* Portfolio filtering */
    471478function cryoutPortfolioFilter() {
    472     jQuery('body').on('click', '#portfolio-filter > a', function(e) {
     479    jQuery( 'body' ).on( 'click', '#portfolio-filter > a', function( e ) {
    473480        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' );
    480487            } 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' );
    483490                } else {
    484                     jQuery(elm).removeClass('hidey').fadeIn('fast');
     491                    jQuery( elm ).removeClass( 'hidey' ).fadeIn( 'fast' );
    485492                }
    486493            }
    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        } );
    491498        return false;
    492     });
     499    } );
    493500} /* cryoutPortfolioFilter() */
     501/**
     502 * Scroll to anchors
     503 */
     504function 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}
    494575
    495576/* FitVids 1.1*/
     
    573654
    574655/* 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),
     656if ( window.Element && ( ! Element.prototype.closest ) ) {
     657    Element.prototype.closest = function( s ) {
     658        var matches = ( this.document || this.ownerDocument ).querySelectorAll( s ),
    579659            i,
    580660            el = this;
    581661        do {
    582662            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 ) );
    585665        return el;
    586666    };
    587667}
    588668
    589 /**
    590  * Scroll to anchors
    591  */
    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 calculations
    613         */
    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 the
    620         * page, scroll to it.
    621         * @param  {String} href
    622         * @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 
    670669/* FIN */
  • fluida/1.8.6/search.php

    r135857 r144713  
    88get_header(); ?>
    99
    10     <div id="container" class="<?php echo fluida_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">
    1212            <?php cryout_before_content_hook(); ?>
    1313
  • fluida/1.8.6/sidebar-left.php

    r135857 r144713  
    77?>
    88
    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' );?>>
    1111    <?php cryout_before_primary_widgets_hook(); ?>
    1212
     
    1414                dynamic_sidebar( 'sidebar-2' );
    1515            else:
    16               if ( current_user_can( 'edit_theme_options' ) ) { ?>
     16              if ( current_user_can( 'edit_theme_options' ) && ! has_nav_menu( 'sidebar' ) ) { ?>
    1717                <section class="widget-container widget-placeholder">
    18                     <h3 class="widget-title"><?php _e( 'Left Sidebar', 'fluida' ); ?></h3>
     18                    <h2 class="widget-title"><?php _e( 'Left Sidebar', 'fluida' ); ?></h2>
    1919                    <p>
    2020                        <?php
  • fluida/1.8.6/sidebar-right.php

    r135857 r144713  
    88
    99<?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' );?>>
    1111    <?php cryout_before_secondary_widgets_hook(); ?>
    1212
     
    1616            if ( current_user_can( 'edit_theme_options' ) ) { ?>
    1717            <section class="widget-container widget-placeholder">
    18                 <h3 class="widget-title"><?php _e( 'Right Sidebar', 'fluida' ); ?></h3>
     18                <h2 class="widget-title"><?php _e( 'Right Sidebar', 'fluida' ); ?></h2>
    1919                <p>
    2020                    <?php
     
    2424                </p>
    2525            </section>
    26            
     26
    2727            <?php }
    2828          endif; ?>
  • fluida/1.8.6/single.php

    r135857 r144713  
    88get_header();?>
    99
    10 <div id="container" class="<?php echo fluida_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">
    1212        <?php cryout_before_content_hook(); ?>
    1313
  • fluida/1.8.6/style.css

    r135857 r144713  
    55Author: Cryout Creations
    66Author URI: http://www.cryoutcreations.eu
    7 Version: 1.8.5
    8 Tested up to: 5.5
    9 Requires PHP: 5.3
     7Version: 1.8.6
     8Tested up to: 5.7
     9Requires PHP: 5.4
    1010License: GNU General Public License v3.0
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1313Text Domain: fluida
    1414
    15 Fluida WordPress Theme - Copyright 2015, Cryout Creations - http://www.cryoutcreations.eu
     15Fluida WordPress Theme - Copyright 2015-2021, Cryout Creations - http://www.cryoutcreations.eu
    1616This theme, like WordPress, is licensed under the GPL.
    1717*/
     
    461461textarea:focus,
    462462select:focus,
    463 input:focus {
    464     outline: thin dotted;
     463input:focus,
     464button:focus,
     465a:focus {
     466    /* outline: thin dotted; */
    465467}
    466468
     
    507509}
    508510
     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
    509523/* Text meant only for screen readers. */
    510524.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. */
    522536}
    523537
    524538.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. */
    543557}
    544558
     
    561575.wp-block-quote.is-large, .wp-block-quote.is-style-large {
    562576    padding: 1.5em;
    563 }
    564 
    565 .aligncenter[class^='wp-block']:not([class^='wp-block-cover']) {
    566     display: table;
    567577}
    568578
     
    987997
    988998#access .sub-menu,
    989 #access .children {}
     999#access .children {
     1000}
    9901001
    9911002#access ul ul {
     
    12671278}
    12681279
    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 */
    12701281    position: absolute;
    12711282    top: 0;
     
    12771288    border: none;
    12781289    font-size: 1.2em;
     1290    z-index: -1;
    12791291}
    12801292
     
    18311843    ## AUTHOR INFO
    18321844--------------------------------------------------------------*/
    1833 #author-info {
     1845.author-info {
    18341846    display: block;
    18351847    clear: both;
     
    18371849}
    18381850
    1839 #author-info #author-avatar {
     1851.author-info .author-avatar {
    18401852    float: right;
    18411853    height: 80px;
     
    18431855
    18441856}
    1845 #author-info #author-description {
     1857.author-info .author-description {
    18461858    float: left;
    18471859    margin-right: 100px;
    18481860}
    18491861
    1850 article #author-info {
     1862article .author-info {
    18511863    clear: both;
    18521864    overflow: hidden;
     
    18561868}
    18571869
    1858 #author-avatar .avatar {
     1870.author-avatar .avatar {
    18591871    border-radius: 4px;
    18601872}
    18611873
    1862 #author-info #author-link {
     1874.author-info .author-link {
    18631875    margin-top: .5em;
    18641876}
     
    38623874}
    38633875
    3864 .format-status .avatar {
     3876.format-status .avatar-container {
    38653877    display: block;
    38663878    float: left;
    3867     width: auto;
    38683879    margin-top: .5em;
    38693880    margin-right: 1em;
     
    38963907
    38973908#comments-title,
    3898 #reply-title {
     3909#reply-title,
     3910.related-main-title {
    38993911    font-size: 1.8em;
    39003912}
     
    42864298}
    42874299
    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
    42894314.yoyo .widget-title {
    42904315    background: none;
     
    46874712    margin-top: 0.5em;
    46884713    margin-bottom: 0;
     4714    font-size: 1em;
    46894715    line-height: 1.3;
     4716}
     4717
     4718.related-posts .related-title a {
     4719    word-wrap: break-word;
    46904720}
    46914721
     
    56675697.fluida-metahide-headerimg #header-image-main-inside,
    56685698.fluida-metahide-breadcrumbs #breadcrumbs-container,
     5699.fluida-metahide-title.page .article-inner .entry-title,
     5700.fluida-metahide-title.single .article-inner .entry-title,
    56695701.fluida-metahide-colophon #colophon,
    56705702.fluida-metahide-footer #footer {
     
    58065838
    58075839/* Team Members */
    5808 .tmm .tmm_member .tmm_photo {
     5840.tmm .tmm_container .tmm_member .tmm_photo {
    58095841    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 {
    58135846    padding: 10px 25px;
    58145847}
     
    58165849/* Jetpack Portfolio shortcode in widget */
    58175850.widget-container h2.portfolio-entry-title {
    5818     font-size: 1.2em;
     5851    font-size: 1.2em;
    58195852}
    58205853
     
    58225855body.safari,
    58235856.safari .lp-text {
    5824     background-attachment: scroll;
     5857    background-attachment: scroll;
    58255858    background-position: top center !important;
    58265859}
     
    63336366    #nav-below,
    63346367    .comment-navigation,
    6335     #author-link,
     6368    .author-link,
    63366369    #breadcrumbs-container,
    63376370    a.continue-reading-link,
Note: See TracChangeset for help on using the changeset viewer.