Plugin Directory

Changeset 3327924


Ignore:
Timestamp:
07/15/2025 06:03:58 AM (7 months ago)
Author:
spiraclethemes
Message:

updating to ver 1.5.4

Location:
spiraclethemes-site-library
Files:
176 added
15 edited

Legend:

Unmodified
Added
Removed
  • spiraclethemes-site-library/trunk/Changelogs.txt

    r3325444 r3327924  
    11
    22== Changelog ==
     3
     4== 1.5.4 ==
     5- Fixed security updates
    36
    47== 1.5.3 ==
  • spiraclethemes-site-library/trunk/README.txt

    r3325444 r3327924  
    33Contributors: spiraclethemes
    44Tags: spiraclethemes, demo, import, themes
    5 Stable tag: 1.5.3
     5Stable tag: 1.5.4
    66Requires at least: 5.0
    77Requires PHP: 5.6
  • spiraclethemes-site-library/trunk/admin/admin-init.php

    r3299691 r3327924  
    165165            $exists = $wpdb->get_var(
    166166                $wpdb->prepare(
    167                     'SELECT COUNT(*) FROM %i WHERE option_name = %s',
    168                     [$wpdb->options, $option_name]
     167                    "SELECT COUNT(*) FROM {$wpdb->options} WHERE option_name = %s",
     168                    $option_name
    169169                )
    170170            );
     
    292292                                <?php
    293293                                // Assume ssl_get_sysinfo() is properly sanitized
    294                                 echo wp_kses_post(nl2br(spiraclethemes_site_library_get_sysinfo()));
     294                                echo nl2br(wp_kses_post(spiraclethemes_site_library_get_sysinfo()));
    295295                                ?>
    296296                            </div>
     
    303303                                <?php
    304304                                // Assume ssl_get_syssettings() is properly sanitized
    305                                 echo spiraclethemes_site_library_get_syssettings();
     305                                echo wp_kses_post(spiraclethemes_site_library_get_syssettings());
    306306                                ?>
    307307                                <p class="submit">
  • spiraclethemes-site-library/trunk/elements/blogson/post-grid/template/view.php

    r3325444 r3327924  
    33$id = $this->get_id();
    44
    5 $section_title              = sanitize_text_field($settings['section_title'] ?? '');
     5$section_title              = esc_attr($settings['section_title'] ?? '');
    66$section_title_size        = sanitize_text_field($settings['section_title_size'] ?? 'h2');
    77$post_count                = absint($settings['post_count'] ?? 4);
     
    1212$post_thumbsize            = sanitize_text_field($settings['post_thumbsize'] ?? 'post-thumbnail');
    1313$post_excerpt_count        = absint($settings['post_excerpt_count'] ?? 15);
    14 $post_display_author_pre_text = sanitize_text_field($settings['post_display_author_pre_text'] ?? 'By');
    15 $post_readmore_text        = sanitize_text_field($settings['post_readmore_text'] ?? 'Read More');
     14$post_display_author_pre_text = esc_attr($settings['post_display_author_pre_text'] ?? 'By');
     15$post_readmore_text        = esc_attr($settings['post_readmore_text'] ?? 'Read More');
    1616$post_trim_title_count     = absint($settings['post_trim_title_count'] ?? 7);
    1717$post_text_position        = sanitize_text_field($settings['post_text_position'] ?? 'bottomcenter');
  • spiraclethemes-site-library/trunk/elements/own-shop/list-prod/template/view.php

    r3325444 r3327924  
    1111
    1212if (is_array($prod_options_raw)) {
    13     $prod_options = implode(',', array_map('sanitize_text_field', $prod_options_raw));
     13    $prod_options = implode(',', array_map('esc_attr', $prod_options_raw));
    1414} else {
    15     $prod_options = sanitize_text_field($prod_options_raw);
     15    $prod_options = esc_attr($prod_options_raw);
    1616}
    1717
  • spiraclethemes-site-library/trunk/elements/own-shop/recent-blog/template/view.php

    r3325444 r3327924  
    1010$post_display_readmore = (($settings['post_display_readmore'] ?? 'true') === 'true' || ($settings['post_display_readmore'] ?? 'true') === '1') ? 'true' : 'false';
    1111
    12 $post_read_more = sanitize_text_field($settings['post_read_more'] ?? 'READ MORE');
     12$post_read_more = esc_attr($settings['post_read_more'] ?? 'READ MORE');
    1313
    1414$post_cat_slug = $settings['post_cat_slug'] ?? '';
  • spiraclethemes-site-library/trunk/inc/blogson-functions.php

    r3325444 r3327924  
    293293                    $output .= '<div class="post-image"><img src="' . esc_url($img) . '" alt=""></div>';
    294294                } else {
    295                     $output .= '<div class="post-grid-area-content" style="background-image:url(' . esc_url($img) . ');">';
     295                    $output .= '<div class="post-grid-area-content" style="background-image:url(\'' . esc_url($img) . '\');">';
    296296                    $output .= '<div class="content-wrapper">';
    297297                }
  • spiraclethemes-site-library/trunk/inc/own-shop-functions.php

    r3325444 r3327924  
    152152                                                    ?><li><?php
    153153                                                endif;
    154                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('All','spiraclethemes-site-library'); ?></a></li><?php
     154                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('All','spiraclethemes-site-library'); ?></a></li><?php
    155155                                            endif;
    156156                                            if (in_array("featured", $arr)) :
     
    161161                                                    ?><li><?php
    162162                                                endif;
    163                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('Featured','spiraclethemes-site-library'); ?></a></li><?php
     163                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('Featured','spiraclethemes-site-library'); ?></a></li><?php
    164164                                            endif;
    165165                                            if (in_array("new", $arr)) :
     
    170170                                                    ?><li><?php
    171171                                                endif;
    172                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('New','spiraclethemes-site-library'); ?></a></li><?php
     172                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('New','spiraclethemes-site-library'); ?></a></li><?php
    173173                                            endif;
    174174                                            if (in_array("popular", $arr)) :
     
    179179                                                    ?><li><?php
    180180                                                endif;
    181                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('Popular','spiraclethemes-site-library'); ?></a></li><?php
     181                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('Popular','spiraclethemes-site-library'); ?></a></li><?php
    182182                                            endif;
    183183                                        ?>
     
    416416                                                <?php
    417417                                                    if ( is_sticky() && is_home() ) :
    418                                                         echo "<i class='la la-thumbtack'></i>";
     418                                                        echo wp_kses_post( "<i class='la la-thumbtack'></i>" );
    419419                                                    endif;
    420420                                                ?>
  • spiraclethemes-site-library/trunk/inc/own-shop-lite-functions.php

    r3325444 r3327924  
    148148                                                    ?><li><?php
    149149                                                endif;
    150                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('All','spiraclethemes-site-library'); ?></a></li><?php
     150                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('All','spiraclethemes-site-library'); ?></a></li><?php
    151151                                            endif;
    152152                                            if (in_array("featured", $arr)) :
     
    157157                                                    ?><li><?php
    158158                                                endif;
    159                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('Featured','spiraclethemes-site-library'); ?></a></li><?php
     159                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('Featured','spiraclethemes-site-library'); ?></a></li><?php
    160160                                            endif;
    161161                                            if (in_array("new", $arr)) :
     
    166166                                                    ?><li><?php
    167167                                                endif;
    168                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('New','spiraclethemes-site-library'); ?></a></li><?php
     168                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('New','spiraclethemes-site-library'); ?></a></li><?php
    169169                                            endif;
    170170                                            if (in_array("popular", $arr)) :
     
    175175                                                    ?><li><?php
    176176                                                endif;
    177                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('Popular','spiraclethemes-site-library'); ?></a></li><?php
     177                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('Popular','spiraclethemes-site-library'); ?></a></li><?php
    178178                                            endif;
    179179                                        ?>
     
    412412                                                <?php
    413413                                                    if ( is_sticky() && is_home() ) :
    414                                                         echo "<i class='la la-thumbtack'></i>";
     414                                                        echo wp_kses_post( "<i class='la la-thumbtack'></i>" );
    415415                                                    endif;
    416416                                                ?>
  • spiraclethemes-site-library/trunk/inc/own-shope-functions.php

    r3325444 r3327924  
    148148                                                    ?><li><?php
    149149                                                endif;
    150                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('All','spiraclethemes-site-library'); ?></a></li><?php
     150                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('All','spiraclethemes-site-library'); ?></a></li><?php
    151151                                            endif;
    152152                                            if (in_array("featured", $arr)) :
     
    157157                                                    ?><li><?php
    158158                                                endif;
    159                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('Featured','spiraclethemes-site-library'); ?></a></li><?php
     159                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('Featured','spiraclethemes-site-library'); ?></a></li><?php
    160160                                            endif;
    161161                                            if (in_array("new", $arr)) :
     
    166166                                                    ?><li><?php
    167167                                                endif;
    168                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('New','spiraclethemes-site-library'); ?></a></li><?php
     168                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('New','spiraclethemes-site-library'); ?></a></li><?php
    169169                                            endif;
    170170                                            if (in_array("popular", $arr)) :
     
    175175                                                    ?><li><?php
    176176                                                endif;
    177                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('Popular','spiraclethemes-site-library'); ?></a></li><?php
     177                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('Popular','spiraclethemes-site-library'); ?></a></li><?php
    178178                                            endif;
    179179                                        ?>
     
    412412                                                <?php
    413413                                                    if ( is_sticky() && is_home() ) :
    414                                                         echo "<i class='la la-thumbtack'></i>";
     414                                                        echo wp_kses_post( "<i class='la la-thumbtack'></i>" );
    415415                                                    endif;
    416416                                                ?>
  • spiraclethemes-site-library/trunk/inc/own-store-functions.php

    r3325444 r3327924  
    148148                                                    ?><li><?php
    149149                                                endif;
    150                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('All','spiraclethemes-site-library'); ?></a></li><?php
     150                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('All','spiraclethemes-site-library'); ?></a></li><?php
    151151                                            endif;
    152152                                            if (in_array("featured", $arr)) :
     
    157157                                                    ?><li><?php
    158158                                                endif;
    159                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('Featured','spiraclethemes-site-library'); ?></a></li><?php
     159                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('Featured','spiraclethemes-site-library'); ?></a></li><?php
    160160                                            endif;
    161161                                            if (in_array("new", $arr)) :
     
    166166                                                    ?><li><?php
    167167                                                endif;
    168                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('New','spiraclethemes-site-library'); ?></a></li><?php
     168                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('New','spiraclethemes-site-library'); ?></a></li><?php
    169169                                            endif;
    170170                                            if (in_array("popular", $arr)) :
     
    175175                                                    ?><li><?php
    176176                                                endif;
    177                                                 ?><a href="#tab_default_<?php echo $tabcount; ?>" data-toggle="tab"><?php esc_html_e('Popular','spiraclethemes-site-library'); ?></a></li><?php
     177                                                ?><a href="#tab_default_<?php echo esc_attr( $tabcount ); ?>" data-toggle="tab"><?php esc_html_e('Popular','spiraclethemes-site-library'); ?></a></li><?php
    178178                                            endif;
    179179                                        ?>
     
    412412                                                <?php
    413413                                                    if ( is_sticky() && is_home() ) :
    414                                                         echo "<i class='la la-thumbtack'></i>";
     414                                                        echo wp_kses_post( "<i class='la la-thumbtack'></i>" );
    415415                                                    endif;
    416416                                                ?>
  • spiraclethemes-site-library/trunk/inc/widget/widget.php

    r3299691 r3327924  
    127127    echo '<h3><span><img src="' . esc_url($rocket_img) . '" /> </span><b>' . __( 'Design, Build or Revamp existing WordPress website starting from $999', 'spiraclethemes-site-library' ) . '</b></h3>';
    128128
    129     echo '<ul style="list-style: disc; padding-left: 20px;">';
     129    wp_add_inline_style( 'spiraclethemes-site-library-main', 'ul { list-style: disc; padding-left: 20px; }' );
     130    echo '<ul>';
    130131    echo '<li><b>Stunning Custom Design</b> – Make a lasting impression with a beautiful, modern website or redesign.</li>';
    131132    echo '<li><b>Tailor-Made Features</b> – We build exactly what your business needs – no fluff, just functionality.</li>';
     
    142143
    143144    echo sprintf(
    144         '<p style="text-align: left; margin-bottom:20px; margin-top:20px;">
    145             <a href="https://spiraclethemes.com/hire-us/" target="_blank" style="background-color:#35a62e; color:#fff; border-radius:4px; padding:10px 15px; text-decoration:none; display:inline-block;box-shadow: 3px 3px #bcedbe;">
    146                 %s
    147             </a>
    148         </p>',
     145        '<p><a href="https://spiraclethemes.com/hire-us/" target="_blank" class="button button-primary">%s</a></p>',
    149146        __('Get Started Today for Just $999 (Limited Time Offer)!', 'spiraclethemes-site-library')
    150147    );
     
    219216
    220217    // Display footer links
    221     echo '<div style="margin-top: 10px; border-top: 1px solid #e5e5e5; padding-top: 10px;">';
     218    echo '<div>';
    222219    printf(
    223         '<a href="%1$s" target="_blank" style="text-decoration:none;color:#93003f;font-weight: 600;">' . __( 'Help Us to Translate %2$s', 'spiraclethemes-site-library' ) . ' <span class="dashicons dashicons-external" style="text-decoration: none;font-size: 16px;color: #6c6969;"></span></a> | ',
     220        '<a href="%1$s" target="_blank">' . __( 'Help Us to Translate %2$s', 'spiraclethemes-site-library' ) . ' <span class="dashicons dashicons-external"></span></a> | ',
    224221        esc_url( 'https://translate.wordpress.org/projects/wp-themes/' . WP_THEME_SLUG . '/' ),
    225222        esc_html( WP_THEME )
    226223    );
    227224    printf(
    228         '<a href="%1$s" target="_blank" style="text-decoration:none;color: #93003f;font-weight: 600;">' . __( 'Write a Review', 'spiraclethemes-site-library' ) . '<span class="dashicons dashicons-external" style="text-decoration: none;font-size: 16px;color: #6c6969;"></span></a>',
     225        '<a href="%1$s" target="_blank">' . __( 'Write a Review', 'spiraclethemes-site-library' ) . '<span class="dashicons dashicons-external"></span></a>',
    229226        esc_url( 'https://wordpress.org/support/theme/' . WP_THEME_SLUG . '/reviews/#new-post' )
    230227    );
  • spiraclethemes-site-library/trunk/spiraclethemes-site-library.php

    r3325444 r3327924  
    44 * Plugin URI:        https://wordpress.org/plugins/spiraclethemes-site-library/
    55 * Description:       A plugin by Spiracle Themes that adds one-click demo import, theme customization, starter templates, and page builder support to its free themes.
    6  * Version:           1.5.3
     6 * Version:           1.5.4
    77 * Author:            SpiracleThemes
    88 * Author URI:        https://spiraclethemes.com
     
    275275    private function spiraclethemes_site_library_handle_ignore_notice( $param, $meta_key ) {
    276276        if ( current_user_can( 'manage_options' ) && isset( $_GET[ $param ] ) && isset( $_GET['_wpnonce'] ) ) {
    277             if ( wp_verify_nonce( $_GET['_wpnonce'], $param . '_nonce' ) ) {
     277            if ( wp_verify_nonce( sanitize_text_field($_GET['_wpnonce']), $param . '_nonce' ) ) {
    278278                $user_id = get_current_user_id();
    279279                add_user_meta( $user_id, sanitize_key( $meta_key ), true, true );
  • spiraclethemes-site-library/trunk/vendor/ocdi/inc/OneClickDemoImport.php

    r2845589 r3327924  
    220220                    'ajax_url'         => admin_url( 'admin-ajax.php' ),
    221221                    'ajax_nonce'       => wp_create_nonce( 'ocdi-ajax-verification' ),
    222                     'import_files'     => $this->import_files,
     222                    'import_files'     => array_map( 'sanitize_text_field', $this->import_files ),
    223223                    'wp_customize_on'  => Helpers::apply_filters( 'ocdi/enable_wp_customize_save_hooks', false ),
    224                     'theme_screenshot' => $theme->get_screenshot(),
    225                     'missing_plugins'  => $this->plugin_installer->get_missing_plugins(),
    226                     'plugin_url'       => OCDI_URL,
     224                    'theme_screenshot' => esc_url_raw( $theme->get_screenshot() ),
     225                    'missing_plugins'  => array_map( 'sanitize_text_field', $this->plugin_installer->get_missing_plugins() ),
     226                    'plugin_url'       => esc_url_raw( OCDI_URL ),
    227227                    'import_url'       => $this->get_plugin_settings_url( [ 'step' => 'import' ] ),
    228228                    'texts'            => array(
  • spiraclethemes-site-library/trunk/vendor/ocdi/views/import.php

    r3325444 r3327924  
    3535                            <?php if ( ! empty( $this->import_files[ $import_index ]['import_notice'] ) ) : ?>
    3636                                <div class="notice  notice-info">
    37                                     <p><?php echo wp_kses_post( $this->import_files[ $_GET['import'] ]['import_notice'] ); ?></p>
     37                                    <p><?php echo wp_kses_post( $this->import_files[ $import_index ]['import_notice'] ); ?></p>
    3838                                </div>
    3939                            <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.