Make WordPress Themes

Changeset 263201


Ignore:
Timestamp:
03/16/2025 03:22:36 PM (8 months ago)
Author:
themedropbox
Message:

New version of Ashe - 2.252

Location:
ashe/2.252
Files:
1 added
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ashe/2.252/inc/about/about-ashe.php

    r255105 r263201  
    146146            </div>
    147147
     148            <!-- TODO: News Magazine X Theme Installation (remove later) -->
     149            <div class="newsx-theme-banner">
     150                <div class="image-wrap">
     151                    <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/newsx-banner.jpg'; ?>" alt="">
     152                    <a href="<?php echo esc_url('https://news-magazine-x-free.wp-royal-themes.com/demo/?ref=ashe-free-dash-predefined-styles'); ?>" target="_blank">
     153                        <span class="dashicons dashicons-external"></span>
     154                    </a>
     155                </div>
     156           
     157                <div class="newsx-theme-info">
     158                    <h2>Free News / Blog / Magazine Theme</h2>
     159                    <p>Due to the high demand of our trusted users we designed a <strong>FREE</strong>, <strong>Lightning-fast</strong> and <strong>Easy to use</strong> WordPress theme with built-in Header/Footer Builder.</p>
     160                    <p>You can try it out for free right now, just click the button below to get started.</p>
     161
     162                    <a class="button button-primary newsx-theme-install">Install News Magazine X Theme</a>
     163                </div>
     164            </div>
     165
    148166            <div class="four-columns-wrap predefined-styles">
    149167
     
    155173                </p>
    156174
    157                 <div class="column-width-4">
    158                     <div class="active-style"><?php esc_html_e( 'Active', 'ashe' ); ?></div>
    159                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img1.jpg'; ?>" alt="">
    160                     <div>
    161                         <h2><?php esc_html_e( 'Main', 'ashe' ); ?></h2>
    162                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/demo/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    163                     </div>
    164                 </div>
    165                 <div class="column-width-4">
    166                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/food.jpg'; ?>" alt="">
    167                     <div>
    168                         <h2><?php esc_html_e( 'Food', 'ashe' ); ?></h2>
    169                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/food/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    170                     </div>
    171                 </div>
    172                 <div class="column-width-4">
    173                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/lifestyle.jpg'; ?>" alt="">
    174                     <div>
    175                         <h2><?php esc_html_e( 'Lifestyle', 'ashe' ); ?></h2>
    176                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/lifestyle/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    177                     </div>
    178                 </div>
    179                 <div class="column-width-4">
    180                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img2.jpg'; ?>" alt="">
    181                     <div>
    182                         <h2><?php esc_html_e( 'Dark', 'ashe' ); ?></h2>
    183                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/color-black/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    184                     </div>
    185                 </div>
    186                 <div class="column-width-4">
    187                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img7.jpg'; ?>" alt="">
    188                     <div>
    189                         <h2><?php esc_html_e( 'Style 1', 'ashe' ); ?></h2>
    190                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/typography-v2/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    191                     </div>
    192                 </div>
    193                 <div class="column-width-4">
    194                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img12.jpg'; ?>" alt="">
    195                     <div>
    196                         <h2><?php esc_html_e( 'Style 2', 'ashe' ); ?></h2>
    197                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/sample-v3/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    198                     </div>
    199                 </div>
    200                 <div class="column-width-4">
    201                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img5.jpg'; ?>" alt="">
    202                     <div>
    203                         <h2><?php esc_html_e( 'Style 3', 'ashe' ); ?></h2>
    204                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns2-sidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    205                     </div>
    206                 </div>
    207                 <div class="column-width-4">
    208                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img3.jpg'; ?>" alt="">
    209                     <div>
    210                         <h2><?php esc_html_e( 'Style 4', 'ashe' ); ?></h2>
    211                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/sample-v5/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    212                     </div>
    213                 </div>
    214                 <div class="column-width-4">
    215                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img4.jpg'; ?>" alt="">
    216                     <div>
    217                         <h2><?php esc_html_e( 'Style 5', 'ashe' ); ?></h2>
    218                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/color-colorful/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    219                     </div>
    220                 </div>
    221                 <div class="column-width-4">
    222                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img6.jpg'; ?>" alt="">
    223                     <div>
    224                         <h2><?php esc_html_e( 'Style 6', 'ashe' ); ?></h2>
    225                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns4/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    226                     </div>
    227                 </div>
    228                 <div class="column-width-4">
    229                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img8.jpg'; ?>" alt="">
    230                     <div>
    231                         <h2><?php esc_html_e( 'Style 7', 'ashe' ); ?></h2>
    232                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns3-sidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    233                     </div>
    234                 </div>
    235                 <div class="column-width-4">
    236                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img9.jpg'; ?>" alt="">
    237                     <div>
    238                         <h2><?php esc_html_e( 'Style 8', 'ashe' ); ?></h2>
    239                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/color-black-white/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    240                     </div>
    241                 </div>
    242                 <div class="column-width-4">
    243                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img10.jpg'; ?>" alt="">
    244                     <div>
    245                         <h2><?php esc_html_e( 'Style 9', 'ashe' ); ?></h2>
    246                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns3-nsidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    247                     </div>
    248                 </div>
    249                 <div class="column-width-4">
    250                     <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img11.jpg'; ?>" alt="">
    251                     <div>
    252                         <h2><?php esc_html_e( 'Style 10', 'ashe' ); ?></h2>
    253                         <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns2-nsidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
    254                     </div>
    255                 </div>
     175                <div class="predefined-styles-grid">
     176                       
     177                    <div class="column-width-4">
     178                        <div class="active-style"><?php esc_html_e( 'Active', 'ashe' ); ?></div>
     179                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img1.jpg'; ?>" alt="">
     180                        <div>
     181                            <h2><?php esc_html_e( 'Main', 'ashe' ); ?></h2>
     182                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/demo/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     183                        </div>
     184                    </div>
     185                    <div class="column-width-4">
     186                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/food.jpg'; ?>" alt="">
     187                        <div>
     188                            <h2><?php esc_html_e( 'Food', 'ashe' ); ?></h2>
     189                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/food/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     190                        </div>
     191                    </div>
     192
     193                    <div class="column-width-4">
     194                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/lifestyle.jpg'; ?>" alt="">
     195                        <div>
     196                            <h2><?php esc_html_e( 'Lifestyle', 'ashe' ); ?></h2>
     197                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/lifestyle/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     198                        </div>
     199                    </div>
     200                    <div class="column-width-4">
     201                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img2.jpg'; ?>" alt="">
     202                        <div>
     203                            <h2><?php esc_html_e( 'Dark', 'ashe' ); ?></h2>
     204                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/color-black/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     205                        </div>
     206                    </div>
     207                    <div class="column-width-4">
     208                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img7.jpg'; ?>" alt="">
     209                        <div>
     210                            <h2><?php esc_html_e( 'Style 1', 'ashe' ); ?></h2>
     211                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/typography-v2/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     212                        </div>
     213                    </div>
     214                    <div class="column-width-4">
     215                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img12.jpg'; ?>" alt="">
     216                        <div>
     217                            <h2><?php esc_html_e( 'Style 2', 'ashe' ); ?></h2>
     218                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/sample-v3/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     219                        </div>
     220                    </div>
     221                    <div class="column-width-4">
     222                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img5.jpg'; ?>" alt="">
     223                        <div>
     224                            <h2><?php esc_html_e( 'Style 3', 'ashe' ); ?></h2>
     225                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns2-sidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     226                        </div>
     227                    </div>
     228                    <div class="column-width-4">
     229                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img3.jpg'; ?>" alt="">
     230                        <div>
     231                            <h2><?php esc_html_e( 'Style 4', 'ashe' ); ?></h2>
     232                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/sample-v5/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     233                        </div>
     234                    </div>
     235                    <div class="column-width-4">
     236                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img4.jpg'; ?>" alt="">
     237                        <div>
     238                            <h2><?php esc_html_e( 'Style 5', 'ashe' ); ?></h2>
     239                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/color-colorful/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     240                        </div>
     241                    </div>
     242                    <div class="column-width-4">
     243                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img6.jpg'; ?>" alt="">
     244                        <div>
     245                            <h2><?php esc_html_e( 'Style 6', 'ashe' ); ?></h2>
     246                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns4/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     247                        </div>
     248                    </div>
     249                    <div class="column-width-4">
     250                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img8.jpg'; ?>" alt="">
     251                        <div>
     252                            <h2><?php esc_html_e( 'Style 7', 'ashe' ); ?></h2>
     253                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns3-sidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     254                        </div>
     255                    </div>
     256                    <div class="column-width-4">
     257                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img9.jpg'; ?>" alt="">
     258                        <div>
     259                            <h2><?php esc_html_e( 'Style 8', 'ashe' ); ?></h2>
     260                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/color-black-white/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     261                        </div>
     262                    </div>
     263                    <div class="column-width-4">
     264                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img10.jpg'; ?>" alt="">
     265                        <div>
     266                            <h2><?php esc_html_e( 'Style 9', 'ashe' ); ?></h2>
     267                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns3-nsidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     268                        </div>
     269                    </div>
     270                    <div class="column-width-4">
     271                        <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img11.jpg'; ?>" alt="">
     272                        <div>
     273                            <h2><?php esc_html_e( 'Style 10', 'ashe' ); ?></h2>
     274                            <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns2-nsidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a>
     275                        </div>
     276                    </div>
     277               
     278                </div> <!-- .predefined-styles-grid -->
    256279
    257280            </div>
     
    634657add_action( 'wp_ajax_ashe_plugin_auto_activation', 'ashe_plugin_auto_activation' );
    635658
     659// TODO: News Magazine X Theme Installation (remove later)
     660function ashe_install_news_magazine_x_theme() {
     661    $nonce = $_POST['nonce'];
     662
     663    if ( !wp_verify_nonce( $nonce, 'ashe_about_nonce')  || !current_user_can( 'manage_options' ) ) {
     664      exit; // Get out of here, the nonce is rotten!
     665    }
     666   
     667    if (!current_user_can('switch_themes')) {
     668        wp_send_json_error('Permission denied');
     669    }
     670
     671    $theme = sanitize_text_field($_POST['theme']);
     672    switch_theme($theme);
     673    wp_send_json_success();
     674}
     675add_action( 'wp_ajax_ashe_install_news_magazine_x_theme', 'ashe_install_news_magazine_x_theme' );
     676
    636677// enqueue ui CSS/JS
    637678function ashe_enqueue_about_page_scripts($hook) {
     
    642683
    643684    // enqueue CSS
    644     wp_enqueue_style( 'ashe-about-page-css', get_theme_file_uri( '/inc/about/css/about-ashe-page.css' ), array(), '1.9.9.5.9' );
     685    wp_enqueue_style( 'ashe-about-page-css', get_theme_file_uri( '/inc/about/css/about-ashe-page.css' ), array(), '2.252' );
    645686
    646687    // Demo Import
    647688    wp_enqueue_script( 'plugin-install' );
    648689    wp_enqueue_script( 'updates' );
    649     wp_enqueue_script( 'ashe-about-page-css', get_theme_file_uri( '/inc/about/js/about-ashe-page.js' ), array(), '1.8.2' );
     690
     691    wp_enqueue_script( 'ashe-about-page-js', get_theme_file_uri( '/inc/about/js/about-ashe-page.js' ), array(), '2.252' );
     692    wp_localize_script('ashe-about-page-js', 'ashe_about', array(
     693        'nonce' => wp_create_nonce('ashe_about_nonce')
     694    ));
    650695
    651696}
  • ashe/2.252/inc/about/css/about-ashe-page.css

    r190579 r263201  
    197197}
    198198
     199
     200/* TODO: News Magazine X Theme Installation (remove later) */
     201.newsx-theme-banner {
     202    display: flex;
     203    align-items: flex-start;
     204    gap: 30px;
     205    position: relative;
     206    border: 1px solid #efefef;
     207    margin: 40px 0;
     208}
     209
     210.newsx-theme-banner .image-wrap {
     211    position: relative;
     212    border-right: 1px solid #efefef;
     213}
     214
     215.newsx-theme-banner .image-wrap a {
     216    display: none;
     217    position: absolute;
     218    top: 0;
     219    right: 0;
     220    width: 100%;
     221    height: 100%;
     222    background-color: rgba(0, 0, 0, 0.5);
     223    color: #fff;
     224}
     225
     226.newsx-theme-banner .image-wrap:hover a {
     227    display: flex;
     228    align-items: center;
     229    justify-content: center;
     230}
     231
     232.newsx-theme-banner .image-wrap a .dashicons {
     233    font-size: 20px;
     234    line-height: 20px;
     235}
     236
     237.newsx-theme-banner .newsx-theme-info {
     238    position: sticky;
     239    top: 0;
     240    padding-top: 20px;
     241    padding-bottom: 20px;
     242    max-width: 500px;
     243}
     244
     245.newsx-theme-banner .newsx-theme-info h2 {
     246    font-size: 28px;
     247    margin-bottom: 35px;
     248    font-weight: bold;
     249}
     250
     251.newsx-theme-banner .newsx-theme-info p {
     252    font-size: 14px;
     253    margin-bottom: 10px;
     254    margin-top: 0;
     255}
     256
     257.newsx-theme-banner .newsx-theme-install {
     258    padding: 10px 20px;
     259    margin-top: 20px;
     260    font-size: 14px;
     261    font-weight: 600;
     262}
     263
     264
     265/* Predefined Styles */
    199266.predefined-styles {
    200267    margin-top: 0;
     
    212279}
    213280
     281.predefined-styles-grid {
     282    display: grid;
     283    grid-template-columns: repeat(4, 1fr);
     284    gap: 20px;
     285    align-items: start;
     286}
     287
    214288.predefined-styles .column-width-4 {
    215   overflow: hidden;
    216   border-radius: 5px;
    217   border: 1px solid #efefef;
    218   box-shadow: 0 0 15px 0 rgba(0,0,0,0.08);
     289    overflow: hidden;
     290    border-radius: 5px;
     291    border: 1px solid #efefef;
     292    box-shadow: 0 0 15px 0 rgba(0,0,0,0.08);
     293
     294    float: none;
     295    width: auto !important;
     296    max-width: 100%;
     297    margin: 0;
    219298}
    220299
  • ashe/2.252/inc/about/js/about-ashe-page.js

    r168016 r263201  
    5252        $(this).html('Activating Woocommerce...');
    5353    });
     54
     55
     56    // TODO: News Magazine X Theme Installation (remove later)
     57    $('.newsx-theme-install').on('click', function() {
     58        let $button = $(this),
     59            confirmInstall = confirm('This action will install News Magazine X WordPress theme and redirect you to the Appearance > Themes page.\n\nPlease DO NOT close or refresh the page until the installation is complete.');
     60
     61        if (!confirmInstall) {
     62            return;
     63        }
     64
     65        // Change button text
     66        $button.text('Installing Theme...');
     67       
     68        // Check if theme is already installed
     69        if (wp.themes && wp.themes.data && wp.themes.data.themes && wp.themes.data.themes['news-magazine-x']) {
     70            // Theme exists, just activate and redirect
     71            $.ajax({
     72                url: ajaxurl,
     73                type: 'POST',
     74                data: {
     75                    action: 'ashe_install_news_magazine_x_theme',
     76                    theme: 'news-magazine-x',
     77                    nonce: ashe_about.nonce
     78                },
     79                success: function() {
     80                    window.location.href = 'themes.php';
     81                }
     82            });
     83            return;
     84        }
     85       
     86        // Theme not installed, install it first
     87        wp.updates.installTheme({
     88            slug: 'news-magazine-x',
     89            success: function() {
     90                $.ajax({
     91                    url: ajaxurl,
     92                    type: 'POST',
     93                    data: {
     94                        action: 'ashe_install_news_magazine_x_theme',
     95                        theme: 'news-magazine-x',
     96                        nonce: ashe_about.nonce
     97                    },
     98                    success: function() {
     99                        window.location.href = 'themes.php';
     100                    }
     101                });
     102            },
     103            error: function(xhr, ajaxOptions, thrownerror) {
     104                if ('folder_exists' === xhr.errorCode) {
     105                    // Theme is already installed, proceed with activation
     106                    $.ajax({
     107                        url: ajaxurl,
     108                        type: 'POST',
     109                        data: {
     110                            action: 'ashe_install_news_magazine_x_theme',
     111                            theme: 'news-magazine-x',
     112                            nonce: ashe_about.nonce
     113                        },
     114                        success: function() {
     115                            window.location.href = 'themes.php';
     116                        }
     117                    });
     118                } else {
     119                    $button.text('Install Failed');
     120                    console.log('Theme installation failed:', xhr);
     121                }
     122            }
     123        });
     124    });
     125   
    54126});
  • ashe/2.252/readme.txt

    r260305 r263201  
    44Requires at least: WordPress 4.7+
    55Tested up to: WordPress 6.7.2
    6 Version: 2.251
     6Version: 2.252
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
  • ashe/2.252/style.css

    r260305 r263201  
    55Author URI: https://wp-royal-themes.com/
    66Description: Personal and Multi-Author Free WordPress Blog Theme. Perfect for personal, lifestyle, health & fitness, food, cooking, bakery, travel, beauty, fashion, wedding, photography, news, quotes blog, auto blog, small business website and any other kind of amazing blogs. Minimal, elegant & mobile friendly layout with WooCommerce shop (storefront) support will WOW and inspire your visitors. Well documented and very easy to use even for WordPress beginners. Clean and Modern Responsive design will perfectly showcase your content on any device, even on tablet, mobile & retina displays. Very fast, compatibility with many popular plugins & of course translation & RTL (right to left language) ready, coded with best SEO practices. The theme has features like Text & Image logo, Fullscreen Slider, Header image, Instagram slider widget support, footer menu support, GDPR compatibility plugins support and many more. Works perfectly with all major drag and drop page builders like Elementor, Beaver Builder, Visual Composer, SiteOrigin, Divi. You just need to write and be awesome! TEMPLATE DEMO: https://ashe-free.wp-royal-themes.com/demo/
    7 Version: 2.251
     7Version: 2.252
    88Requires at least: 4.7
    99Requires PHP: 5.2.4
Note: See TracChangeset for help on using the changeset viewer.