Make WordPress Themes

Changeset 355654


Ignore:
Timestamp:
10/27/2026 04:08:42 AM (3 hours ago)
Author:
themedropbox
Message:

New version of Antique Jewelry - 4.1.9

Location:
antique-jewelry/4.1.9
Files:
3 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • antique-jewelry/4.1.9/about-theme/about-theme.css

    r330910 r355654  
    1 .updated.notice.notice-success.is-dismissible.notice-get-started-class.admin-notice{
    2     padding: 5px 20px;
    3     background: linear-gradient(90deg, rgba(68, 40, 157, 1) 0%, rgba(106, 58, 168, 1) 100%);
     1/* Antique Jewelry - welcome admin notice */
     2.notice.antique-jewelry-notice {
     3        display: flex;
     4        align-items: center;
     5        justify-content: space-between;
     6        gap: 24px;
     7        padding: 16px 40px 16px 24px;
     8        border-left-color: #f5c400;
     9        background: linear-gradient(90deg, #44289d 0%, #6a3aa8 100%);
     10        color: #fff;
    411}
    5 .admin-notice {
    6     display: flex;
    7     align-items: center;
    8     justify-content: space-between;
    9     flex-wrap: wrap;
     12.antique-jewelry-notice .notice-dismiss::before {
     13        color: #fff;
    1014}
    11 img.notice_img {
    12     height: 160px;
    13     object-fit: cover;
     15.antique-jewelry-notice__content {
     16        flex: 1 1 60%;
    1417}
    15 .notice-dismiss::before {
    16     display: block;
    17     color: #fff;
     18.antique-jewelry-notice p.antique-jewelry-notice__title {
     19        margin: 0 0 6px;
     20        font-size: 24px;
     21        font-weight: 700;
     22        line-height: 1.3;
     23        color: #fff;
    1824}
    19 a.getting-started-notice-dismiss {
    20     position: absolute;
    21     top: 0;
    22     right: 6px;
    23     border: none;
    24     margin: 0;
    25     padding: 9px;
    26     background: 0 0;
    27     cursor: pointer;
    28     text-decoration: none;
    29     vertical-align: top;
    30     display: none;
     25.antique-jewelry-notice p.antique-jewelry-notice__text {
     26        margin: 0 0 14px;
     27        font-size: 14px;
     28        color: #e9e3ff;
    3129}
    32 .getting-started-notice-dismiss:hover,
    33 .getting-started-notice-dismiss:focus,
    34 .getting-started-notice-dismiss:active {
    35     color: #bababa;
     30.antique-jewelry-notice p.antique-jewelry-notice__buttons {
     31        display: flex;
     32        flex-wrap: wrap;
     33        gap: 12px;
     34        margin: 0;
    3635}
    37 .getting-started-notice-dismiss:before {
    38     display: inline-block;
    39     line-height: 1;
     36.wp-core-ui .antique-jewelry-notice__btn.button {
     37        padding: 4px 16px;
     38        border: 0;
     39        border-radius: 6px;
     40        font-size: 14px;
     41        font-weight: 600;
     42        color: #fff;
     43        transition: background-color .2s ease, color .2s ease;
    4044}
    41 .admin-notice-content strong {
    42     font-size: 26px;
    43     color: #fff;
     45.wp-core-ui .antique-jewelry-notice__btn.is-start { background: #2b94a5; }
     46.wp-core-ui .antique-jewelry-notice__btn.is-premium { background: #f74883; }
     47.wp-core-ui .antique-jewelry-notice__btn.is-bundle { background: #ffd400; color: #1d1d1d; }
     48.wp-core-ui .antique-jewelry-notice__btn:hover,
     49.wp-core-ui .antique-jewelry-notice__btn:focus {
     50        background: #fff;
     51        color: #44289d;
    4452}
    45 .wp-core-ui p .button {
    46     display: inline-table;
    47     vertical-align: middle;
     53.antique-jewelry-notice__image {
     54        flex: 0 0 auto;
    4855}
    49 .button-primary.button-hero:before {
    50     display: inline-block;
    51     vertical-align: middle;
    52     margin-top: -2px;
    53 }
    54 p.plugin-notice {
    55     font-size: 14px;
    56     color: #fff !important;
    57 }
    58 .titan-buttons a.titan-install-plugins.button.button-primary, .titan-buttons a.button.button-secondary,a.button.button-bundle {
    59     font-size: 14px;
    60     padding: 5px 14px;
    61     font-weight: 500;
    62     text-transform: uppercase;
     56.antique-jewelry-notice__image img {
     57        display: block;
     58        width: auto;
     59        height: 150px;
     60        object-fit: contain;
    6361}
    6462
    65 .titan-buttons a.titan-install-plugins.button.button-primary{
    66     background: #2b94a5;
    67     border-color: #2b94a5;
    68 }
    69 .titan-buttons a.titan-install-plugins.button.button-primary:hover{
    70     background: #f74883;
    71     border-color: #f74883;
    72 }
    73 .titan-buttons a.button.button-bundle{
    74     background: #FFFF00;
    75     border-color: #FFFF00;
    76     color: #000;
    77 }
    78 .titan-buttons a.button.button-bundle:hover{
    79     background: #00b8ff;
    80     border-color: #00b8ff;
    81     color: #fff;
    82 }
    83 .titan-buttons a.button.button-secondary {
    84     color: #fff;
    85     background: #f74883;
    86     border-color: #f74883;
    87     font-weight: 500;
    88 }
    89 .titan-buttons a.button.button-secondary:hover{
    90     background: #2b94a5;
    91     border-color: #2b94a5;
    92 }
    93 .titan-buttons {
    94     display: flex;
    95     gap: 15px;
    96     flex-wrap: wrap;
    97 }
    98 .antique-jewelry-themeinfo-page--wrapper {
    99     background: #fff;
    100     padding: 50px;
    101     margin: 20px 20px;
    102 }
    103 a.antique-jewelry-button.button-primary {
    104     background: #f74883;
    105     padding: 2px 10px;
    106     font-size: 14px;
    107     color: #fff;
    108     text-transform: none;
    109     text-decoration: none;
    110     font-weight: 700;
    111     border: none;
    112     border-radius: 0;
    113 }
    114 a.antique-jewelry-button.button-primary-1  {
    115     background: #f74883;
    116     padding: 13px 25px;
    117     font-size: 16px;
    118     color: #fff;
    119     text-transform: none;
    120     text-decoration: none;
    121     font-weight: 700;
    122     border: none;
    123 }
    124 a.antique-jewelry-button.button-primary:hover{
    125     background: #6b3ba9;
    126 }
    127 .antique-jewelry-features {
    128     display: flex;
    129     flex-wrap: wrap;
    130     margin: 30px -15px 0;
    131 }
    132 .antique-jewelry-features > div {
    133     flex: 0 0 40%;
    134     padding: 10px 10px 45px 20px;
    135     background: #f7f7f7;
    136     margin: 0 12px 20px;
    137     border-radius: 10px;
    138     position: relative;
    139 }
    140 .antique-jewelry-features-box i {
    141     background: #fff;
    142     height: 60px;
    143     width: 60px;
    144     display: flex;
    145     align-items: center;
    146     justify-content: center;
    147     border-radius: 50%;
    148     font-size: 33px;
    149     border: 1px solid #ebe2e2;
    150     box-shadow: 0 0 10px #c8c2c2;
    151 }
    152 .antique-jewelry-themeinfo-page--wrapper p {
    153     font-size: 16px;
    154 }
    155 p.customization-notice {
    156     background: #eee;
    157     padding: 20px;
    158     font-weight: 500;
    159     font-style: italic;
    160     border-radius: 6px;
    161 }
    162 .antique-jewelry-header-left h2 {
    163     font-size: 30px;
    164 }
    165 a.antique-jewelry-button.button-secondary-1 {
    166     position: absolute;
    167     background: #6b3ba9;
    168     bottom: 14px;
    169     padding: 10px 15px;
    170     font-size: 14px;
    171     color: #fff;
    172     text-transform: none;
    173     text-decoration: none;
    174     font-weight: 700;
    175 }
    176 a.antique-jewelry-button.button-secondary-1:hover,a.antique-jewelry-button.button-primary-1.buy-now:hover{
    177     background: #f74883;
    178 }
    179 a.antique-jewelry-button.button-primary-1.buy-now,a.antique-jewelry-button.button-primary-1.pro-demo:hover,a.antique-jewelry-button.button-primary-1.bundle:hover{
    180     background:#6b3ba9;
    181 }
    182 .free\&pro {
    183     display: flex;
    184     flex-wrap: wrap;
    185 }
    186 #antique-jewelry-admin-about-page-1,#antique-jewelry-admin-about-page-2{
    187     width: 50%;
    188 }
    189 .antique-jewelry-header-left-pro h2 {
    190     font-size: 20px;
    191     text-align: center;
    192     line-height: 30px;
    193     padding-bottom: 20px;
    194 }
    195 .antique-jewelry-header-left p {
    196     margin-right: 60px;
    197 }
    198 .antique-jewelry-header-right-2 {
    199     display: flex;
    200     gap: 40px;
    201     margin-bottom: 6%;
    202     justify-content: center;
    203     flex-wrap: wrap;
     63@media screen and (max-width: 782px) {
     64        .notice.antique-jewelry-notice {
     65                flex-direction: column;
     66                text-align: center;
     67        }
     68        .antique-jewelry-notice p.antique-jewelry-notice__buttons {
     69                justify-content: center;
     70        }
     71        .antique-jewelry-notice__image img {
     72                max-width: 100%;
     73                height: auto;
     74        }
    20475}
    20576
    20677
    207 
    208 .antique-jewelry-pro-button.bundle {
    209     display: flex;
    210     justify-content: space-between;
    211     align-items: center;
    212     background: linear-gradient(90deg,rgba(68, 40, 157, 1) 0%, rgba(106, 58, 168, 1) 100%);
    213     padding: 17px;
    214     border-radius: 12px;
    215 }
    216 img.img_bundle {
    217     height: 200px;
    218     object-fit: cover;
    219 }
    220 h3.bundle-head {
    221     font-size: 25px;
    222     color: #fff;
    223     font-weight: 700;
    224     text-transform: uppercase;
    225     line-height: 25px;
    226     margin-bottom: 15px;
    227 }
    228 .bundle-content {
    229     width: 60%;
    230 }
    231 p.bundle-para {
    232     color: #fff;
    233     font-size: 14px;
    234     margin-bottom:30px;
    235 }
    236 a.antique-jewelry-button.bundle {
    237     text-decoration: none;
    238     background: #FFFF00;
    239     border: 2px solid #FFFF00;
    240     color: #000;
    241     padding: 10px;
    242     font-weight: 700;
    243     border-radius: 6px;
    244 }
    245 a.antique-jewelry-button.bundle:hover{
    246     background: #f74883;
    247     border: 2px solid #f74883;
    248     color: #fff; 
    249 }
    250 @media screen and (max-width: 1500px){
    251     .bundle-content h3 {
    252         line-height: 33px;
    253     }
    254     img.img_bundle {
    255         margin-top: 20px;
    256         object-fit: contain;
    257     }
    258     .antique-jewelry-admin-card-header-2 {
    259         margin-top: 30px;
     78@media screen and (min-width: 1401px) and (max-width: 1600px) {
     79    .titan-quick {
     80        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    26081    }
    26182}
    262 @media screen and (max-width: 1060px){
    263     .antique-jewelry-pro-button.bundle {
    264         display: grid;
    265         grid-template-columns: 100%;
    266         justify-items: center;
    267     }
    268     .bundle-content {
    269         width: 100%;
    270     }
    271 }
    272 @media screen and (max-width: 991px){
    273     .getting-started-notice-dismiss {
    274         position: static;
    275         display: block;
    276         padding-bottom: 10px !important;
    277     }
    278 }
    279 
    280 @media screen and (min-width: 320px) and (max-width: 767px){
    281     .admin-notice, .titan-buttons{
    282         display: block;
    283     }
    284 }
    285 
    286 @media screen and (min-width: 320px) and (max-width: 1024px){
    287     .free\&pro{
    288         display: block;
    289     }
    290     #antique-jewelry-admin-about-page-1, #antique-jewelry-admin-about-page-2{
    291         width: 100%;
    292     }
    293     .titan-buttons{
    294         display: block;
    295     }
    296     .admin-notice-content{
    297         width: 100%;
    298     }
    299     .admin-notice-image{
    300         width: 40%;
    301     }
    302     .antique-jewelry-header-left p {
    303         margin-right: 0px;
    304     }
    305     .antique-jewelry-features,
    306     .antique-jewelry-pro-button.bundle {
    307         display: grid;
    308         grid-template-columns: 100%;
    309     }
    310     .antique-jewelry-themeinfo-page--wrapper {
    311         padding: 20px;
    312         text-align: justify;
    313     }
    314     .antique-jewelry-header-left h2 {
    315         font-size: 25px;
    316         line-height: 33px;
    317         text-align: center;
    318     }
    319     .antique-jewelry-features h3 {
    320         text-align: center;
    321     }
    322     .antique-jewelry-pro-button,
    323     .antique-jewelry-features a {
    324         text-align: center;
    325         display: block;
    326         margin: auto;
    327         position: static !important;
    328     }
    329     .bundle-content {
    330         width: 100%;
    331     }
    332     .titan-buttons a.titan-install-plugins.button.button-primary {
    333        display: flex;
    334     }
    335     .titan-buttons a.titan-install-plugins.button.button-primary a {
    336         min-width: 300px;
    337     }
    338     .titan-buttons a.titan-install-plugins.button.button-primary {
    339         font-size: 0;
    340         position: relative;
    341         width: fit-content;
    342     }
    343     .titan-buttons a.titan-install-plugins.button.button-primary::after {
    344         content: "Get Started";
    345         font-size: 14px;
    346         display: inline-block;
    347     }
    348     .admin-notice-image {
    349         width: 100%;
    350     }
    351     .admin-notice-image img {
    352         object-fit: contain;
    353     }
    354     .admin-notice {
    355         justify-content: center;
    356         text-align: center;
    357     }
    358     .titan-buttons p:nth-child(1) {
    359         width: fit-content;
    360         margin: auto;
    361     }
    362 }
    363 @media screen and (min-width: 1025px) and (max-width: 1339px) {
    364     .antique-jewelry-features {
    365         display: block;
    366     }
    367 }
    368 @media screen and (min-width: 1024px) and (max-width: 1440px){
    369     a.antique-jewelry-button.button-primary-1 {
    370         font-size: 13px;
    371         padding: 13px 20px;
    372     }
    373     .admin-notice-content{
    374         width: 60%;
    375     }
    376     .admin-notice-image{
    377         width: 40%;
    378     }
    379 }
  • antique-jewelry/4.1.9/about-theme/about-theme.php

    r353977 r355654  
    11<?php
    22/**
    3  * Titan Notice Handler
     3 * Antique Jewelry - Getting Started page & admin notice.
     4 *
     5 * @package Antique Jewelry
    46 */
    57
    68defined( 'ABSPATH' ) || exit;
    79
    8 define('ANTIQUE_JEWELRY_FREE_URL',__('https://www.titanthemes.net/products/free-jewelry-wordpress-theme','antique-jewelry'));
    9 define('ANTIQUE_JEWELRY_SUPPORT',__('https://wordpress.org/support/theme/antique-jewelry/','antique-jewelry'));
    10 define('ANTIQUE_JEWELRY_REVIEW',__('https://wordpress.org/support/theme/antique-jewelry/reviews/#new-post','antique-jewelry'));
    11 define('ANTIQUE_JEWELRY_BUY_NOW',__('https://www.titanthemes.net/products/jewelry-wordpress-theme','antique-jewelry'));
    12 define('ANTIQUE_JEWELRY_DOC_URL',__('https://preview.titanthemes.net/documentation/antique-jewelry/','antique-jewelry'));
    13 define('ANTIQUE_JEWELRY_LIVE_DEMO',__('https://preview.titanthemes.net/antique-jewelry/','antique-jewelry'));
    14 define('ANTIQUE_JEWELRY_BUNDLE',__('https://www.titanthemes.net/products/wordpress-theme-bundle','antique-jewelry'));
    15 
    16 /**
    17  * Admin Hook
     10define( 'ANTIQUE_JEWELRY_FREE_URL', 'https://www.titanthemes.net/products/free-jewelry-wordpress-theme' );
     11define( 'ANTIQUE_JEWELRY_SUPPORT', 'https://wordpress.org/support/theme/antique-jewelry/' );
     12define( 'ANTIQUE_JEWELRY_REVIEW', 'https://wordpress.org/support/theme/antique-jewelry/reviews/#new-post' );
     13define( 'ANTIQUE_JEWELRY_BUY_NOW', 'https://www.titanthemes.net/products/jewelry-wordpress-theme' );
     14define( 'ANTIQUE_JEWELRY_DOC_URL', 'https://preview.titanthemes.net/documentation/antique-jewelry/' );
     15define( 'ANTIQUE_JEWELRY_LIVE_DEMO', 'https://preview.titanthemes.net/antique-jewelry/' );
     16define( 'ANTIQUE_JEWELRY_BUNDLE', 'https://www.titanthemes.net/products/wordpress-theme-bundle' );
     17
     18// Pricing shown on the Getting Started page.
     19define( 'ANTIQUE_JEWELRY_PRO_PRICE', '$39' );
     20define( 'ANTIQUE_JEWELRY_BUNDLE_REGULAR_PRICE', '$1560' );
     21define( 'ANTIQUE_JEWELRY_BUNDLE_PRICE', '$79' );
     22define( 'ANTIQUE_JEWELRY_BUNDLE_COUPON', 'TITAN30' );
     23
     24/**
     25 * Register the Getting Started page under Appearance.
    1826 */
    1927function antique_jewelry_admin_menu_page() {
    20     $antique_jewelry_theme = wp_get_theme( get_template() );
    21 
    22     add_theme_page(
    23         $antique_jewelry_theme->display( 'Name' ),
    24         $antique_jewelry_theme->display( 'Name' ),
    25         'manage_options',
    26         'antique-jewelry',
    27         'antique_jewelry_do_admin_page'
    28     );
     28        $antique_jewelry_theme = wp_get_theme( get_template() );
     29
     30        add_theme_page(
     31                $antique_jewelry_theme->display( 'Name' ),
     32                $antique_jewelry_theme->display( 'Name' ),
     33                'manage_options',
     34                'antique-jewelry',
     35                'antique_jewelry_do_admin_page'
     36        );
    2937}
    3038add_action( 'admin_menu', 'antique_jewelry_admin_menu_page' );
    3139
    3240/**
    33  * Enqueue getting started styles and scripts
    34  */
    35 function titan_widgets_backend_enqueue() {
    36     wp_enqueue_style(
    37         'titan-getting-started',
    38         get_template_directory_uri() . '/about-theme/about-theme.css'
    39     );
    40 
    41     // Enqueue your admin notice JS
    42     wp_enqueue_script(
    43         'titan-admin-notice',
    44         get_template_directory_uri() . '/about-theme/admin-notice-script.js',
    45         array('jquery'), // dependencies
    46         '1.0',
    47         true
    48     );
    49 
    50     // Pass PHP data to JS
    51     wp_localize_script(
    52         'titan-admin-notice',
    53         'antique_jewelry',
    54         array(
    55             'ajax_url' => admin_url('admin-ajax.php'),
    56             'nonce'    => wp_create_nonce('antique_jewelry_nonce'),
    57         )
    58     );
    59 }
    60 add_action( 'admin_enqueue_scripts', 'titan_widgets_backend_enqueue' );
    61 
    62 
    63 /**
    64  * Class Titan_Notice_Handler
     41 * Enqueue admin notice and Getting Started assets.
     42 *
     43 * @param string $hook_suffix Current admin page.
     44 */
     45function antique_jewelry_admin_enqueue( $hook_suffix ) {
     46        $antique_jewelry_version = wp_get_theme( get_template() )->get( 'Version' );
     47        $antique_jewelry_dir     = get_template_directory_uri() . '/about-theme/';
     48
     49        if ( 'appearance_page_antique-jewelry' === $hook_suffix ) {
     50                wp_enqueue_style( 'antique-jewelry-getting-started', $antique_jewelry_dir . 'getting-started.css', array(), $antique_jewelry_version );
     51                wp_enqueue_script( 'antique-jewelry-getting-started', $antique_jewelry_dir . 'getting-started.js', array(), $antique_jewelry_version, true );
     52                wp_localize_script(
     53                        'antique-jewelry-getting-started',
     54                        'antiqueJewelryGettingStarted',
     55                        array( 'copied' => __( 'Copied!', 'antique-jewelry' ) )
     56                );
     57                return;
     58        }
     59
     60        if ( Titan_Notice_Handler::is_notice_visible() ) {
     61                wp_enqueue_style( 'antique-jewelry-admin-notice', $antique_jewelry_dir . 'about-theme.css', array(), $antique_jewelry_version );
     62                wp_enqueue_script( 'antique-jewelry-admin-notice', $antique_jewelry_dir . 'admin-notice-script.js', array(), $antique_jewelry_version, true );
     63                wp_localize_script(
     64                        'antique-jewelry-admin-notice',
     65                        'antiqueJewelryNotice',
     66                        array(
     67                                'ajaxUrl' => admin_url( 'admin-ajax.php' ),
     68                                'nonce'   => wp_create_nonce( 'antique_jewelry_nonce' ),
     69                        )
     70                );
     71        }
     72}
     73add_action( 'admin_enqueue_scripts', 'antique_jewelry_admin_enqueue' );
     74
     75/**
     76 * Welcome admin notice.
    6577 */
    6678class Titan_Notice_Handler {
    6779
    68     public static $nonce;
    69 
    70     /**
    71      * Empty Constructor
    72      */
    73     public function __construct() {
    74         // Activation notice
    75         add_action( 'switch_theme', array( $this, 'flush_dismiss_status' ) );
    76         add_action( 'admin_init', array( $this, 'getting_started_notice_dismissed' ) );
    77         add_action( 'admin_notices', array( $this, 'titan_theme_info_welcome_admin_notice' ), 3 );
    78         add_action( 'wp_ajax_antique_jewelry_dismissable_notice', array( $this, 'ajax_dismiss_notice' ) );
    79         add_action( 'wp_ajax_titan_getting_started', array( $this, 'titan_getting_started' ) );
    80     }
    81 
    82     /**
    83      * Display an admin notice linking to the about page
    84      */
    85     public function titan_theme_info_welcome_admin_notice() {
    86         $current_screen = get_current_screen();
    87         $antique_jewelry_theme = wp_get_theme();
    88 
    89         if ( is_admin() && ! get_user_meta( get_current_user_id(), 'gs_notice_dismissed' ) && $current_screen->base !== 'appearance_page_antique-jewelry' ) {
    90             echo '<div class="updated notice notice-success is-dismissible notice-get-started-class admin-notice" data-notice="getting_started_notice">';
    91             echo '<div class="admin-notice-content">';
    92             echo '<p><strong>' . sprintf( esc_html__( 'Welcome! Thank you for choosing %1$s.', 'antique-jewelry' ), esc_html( $antique_jewelry_theme->get( 'Name' ) ) ) . '</strong></p>';
    93             echo '<p class="plugin-notice">' . esc_html__( 'Thank you for choosing this theme. Use the Get Started guide to quickly set up and personalize your website.', 'antique-jewelry' ) . '</p>';
    94             echo '<div class="titan-buttons">';
    95             echo '<p><a href="' . esc_url( admin_url( 'themes.php?page=antique-jewelry' ) ) . '" class="titan-install-plugins button button-primary">' . sprintf( esc_html__( 'Get started with %s', 'antique-jewelry' ), esc_html( $antique_jewelry_theme->get( 'Name' ) ) ) . '</a></p>';
    96             echo '<p><a href="' . esc_url( ANTIQUE_JEWELRY_BUY_NOW ) . '" class="button button-secondary" target="_blank">' . esc_html__( 'GO FOR PREMIUM', 'antique-jewelry' ) . '</a></p>';
    97             echo '<p><a href="' . esc_url( ANTIQUE_JEWELRY_BUNDLE ) . '" class="button button-bundle" target="_blank">' . esc_html__( 'GET BUNDLE', 'antique-jewelry' ) . '</a></p>';
    98             echo '</div>';
    99             echo '</div>';
    100             echo '<div class="admin-notice-image">';
    101             echo '<img class="notice_img" width="100%" src="' . esc_url( get_template_directory_uri() . '/assets/images/notice.png' ) . '">';
    102             echo '</div>';
    103             echo '<a href="#" class="getting-started-notice-dismiss">Dismiss</a>';
    104             echo '</div>';
    105         }
    106     }
    107 
    108     public function getting_started_notice_dismissed() {
    109         if ( isset( $_GET['gs-notice-dismissed'] ) ) {
    110             add_user_meta( get_current_user_id(), 'gs_notice_dismissed', 'true' );
    111         }
    112     }
    113 
    114     public function flush_dismiss_status() {
    115         delete_user_meta( get_current_user_id(), 'gs_notice_dismissed' );
    116     }
    117 
    118     public function ajax_dismiss_notice() {
    119         if ( isset( $_POST['type'] ) && $_POST['type'] === 'getting_started_notice' ) {
    120             add_user_meta( get_current_user_id(), 'gs_notice_dismissed', 'true' );
    121         }
    122         wp_die();
    123     }
    124 
     80        /**
     81         * Hook everything up.
     82         */
     83        public function __construct() {
     84                add_action( 'switch_theme', array( $this, 'flush_dismiss_status' ) );
     85                add_action( 'admin_notices', array( $this, 'welcome_admin_notice' ), 3 );
     86                add_action( 'wp_ajax_antique_jewelry_dismissable_notice', array( $this, 'ajax_dismiss_notice' ) );
     87        }
     88
     89        /**
     90         * Whether the welcome notice should be displayed on the current screen.
     91         *
     92         * @return bool
     93         */
     94        public static function is_notice_visible() {
     95                $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null;
     96
     97                return current_user_can( 'manage_options' )
     98                        && ! get_user_meta( get_current_user_id(), 'gs_notice_dismissed', true )
     99                        && ! ( $screen && 'appearance_page_antique-jewelry' === $screen->base );
     100        }
     101
     102        /**
     103         * Display the welcome notice linking to the Getting Started page.
     104         */
     105        public function welcome_admin_notice() {
     106                if ( ! self::is_notice_visible() ) {
     107                        return;
     108                }
     109
     110                $theme_name = wp_get_theme( get_template() )->get( 'Name' );
     111                ?>
     112                <div class="notice notice-success is-dismissible antique-jewelry-notice" data-notice="getting_started_notice">
     113                        <div class="antique-jewelry-notice__content">
     114                                <p class="antique-jewelry-notice__title">
     115                                        <?php
     116                                        /* translators: %s: Theme name. */
     117                                        printf( esc_html__( 'Welcome! Thank you for choosing %s.', 'antique-jewelry' ), esc_html( $theme_name ) );
     118                                        ?>
     119                                </p>
     120                                <p class="antique-jewelry-notice__text"><?php esc_html_e( 'Use the Get Started guide to quickly set up and personalize your website.', 'antique-jewelry' ); ?></p>
     121                                <p class="antique-jewelry-notice__buttons">
     122                                        <a href="<?php echo esc_url( admin_url( 'themes.php?page=antique-jewelry' ) ); ?>" class="button antique-jewelry-notice__btn is-start">
     123                                                <?php
     124                                                /* translators: %s: Theme name. */
     125                                                printf( esc_html__( 'Get started with %s', 'antique-jewelry' ), esc_html( $theme_name ) );
     126                                                ?>
     127                                        </a>
     128                                        <a href="<?php echo esc_url( ANTIQUE_JEWELRY_BUY_NOW ); ?>" class="button antique-jewelry-notice__btn is-premium" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Go for Premium', 'antique-jewelry' ); ?></a>
     129                                        <a href="<?php echo esc_url( ANTIQUE_JEWELRY_BUNDLE ); ?>" class="button antique-jewelry-notice__btn is-bundle" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Get Bundle', 'antique-jewelry' ); ?></a>
     130                                </p>
     131                        </div>
     132                        <div class="antique-jewelry-notice__image">
     133                                <img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/notice.png' ); ?>" alt="" width="1103" height="806" loading="lazy">
     134                        </div>
     135                </div>
     136                <?php
     137        }
     138
     139        /**
     140         * Reset the dismissed state when the theme is switched.
     141         */
     142        public function flush_dismiss_status() {
     143                delete_user_meta( get_current_user_id(), 'gs_notice_dismissed' );
     144        }
     145
     146        /**
     147         * AJAX: remember that the notice was dismissed.
     148         */
     149        public function ajax_dismiss_notice() {
     150                check_ajax_referer( 'antique_jewelry_nonce', 'nonce' );
     151
     152                if ( isset( $_POST['type'] ) && 'getting_started_notice' === sanitize_key( wp_unslash( $_POST['type'] ) ) ) {
     153                        update_user_meta( get_current_user_id(), 'gs_notice_dismissed', 'true' );
     154                }
     155
     156                wp_send_json_success();
     157        }
    125158}
    126159
    … …  
    128161
    129162/**
    130  * Render admin page.
     163 * Inline SVG icons used on the Getting Started page.
    131164 *
    132  * @since 1.0.0
    133  */
    134 function antique_jewelry_do_admin_page() {
    135     $antique_jewelry_theme = wp_get_theme(); ?>
    136     <div class="antique-jewelry-themeinfo-page--wrapper">
    137         <div class="free&pro">
    138             <div id="antique-jewelry-admin-about-page-1">
    139                 <div class="theme-detail">
    140                    <div class="antique-jewelry-admin-card-header-1">
    141                     <div class="antique-jewelry-header-left">
    142                         <h2>
    143                             <?php echo esc_html( $antique_jewelry_theme->Name ); ?> <span><?php echo esc_html($antique_jewelry_theme['Version']);?></span>
    144                         </h2>
    145                         <p>
    146                             <?php
    147                             echo wp_kses_post( apply_filters( 'titan_theme_description', esc_html( $antique_jewelry_theme->get( 'Description' ) ) ) );
    148                         ?>
    149                         </p>
    150                     </div>
    151                     <div class="antique-jewelry-header-right">
    152                         <div class="antique-jewelry-pro-button">
    153                             <a href="<?php echo esc_url( ANTIQUE_JEWELRY_BUY_NOW ); ?>" class="antique-jewelry-button button-primary" target="_blank" rel="noreferrer">
    154                                 <?php esc_html_e( 'UPGRADE TO PREMIUM', 'antique-jewelry' ); ?>
    155                             </a>
    156                         </div>
    157                     </div>
    158                 </div>   
    159                 </div>   
    160                 <div class="antique-jewelry-features">
    161                     <div class="antique-jewelry-features-box">
    162                         <h3><?php esc_html_e( 'PREMIUM DEMONSTRATION', 'antique-jewelry' ); ?></h3>
    163                         <p><?php esc_html_e( 'Effortlessly create and customize your website by arranging text, images, and other elements using the Gutenberg editor, making web design easy and accessible for all skill levels.', 'antique-jewelry' ); ?></p>
    164                         <a href="<?php echo esc_url( ANTIQUE_JEWELRY_LIVE_DEMO ); ?>" class="antique-jewelry-button button-secondary-1" target="_blank" rel="noreferrer">
    165                                 <?php esc_html_e( 'DEMONSTRATION', 'antique-jewelry' ); ?>
    166                             </a>
    167                     </div>
    168                     <div class="antique-jewelry-features-box">
    169                         <h3><?php esc_html_e( 'REVIEWS', 'antique-jewelry' ); ?></h3>
    170                         <p><?php esc_html_e( 'We would be happy to hear your thoughts and value your evaluation.', 'antique-jewelry' ); ?></p>
    171                         <a href="<?php echo esc_url( ANTIQUE_JEWELRY_REVIEW ); ?>" class="antique-jewelry-button button-secondary-1" target="_blank" rel="noreferrer">
    172                                 <?php esc_html_e( 'REVIEWS', 'antique-jewelry' ); ?>
    173                             </a>
    174                     </div>
    175                     <div class="antique-jewelry-features-box">
    176                         <h3><?php esc_html_e( '24/7 SUPPORT', 'antique-jewelry' ); ?></h3>
    177                         <p><?php esc_html_e( 'Please do not hesitate to contact us at support if you need help installing our lite theme. We are prepared to assist you!', 'antique-jewelry' ); ?></p>
    178                         <a href="<?php echo esc_url( ANTIQUE_JEWELRY_SUPPORT ); ?>" class="antique-jewelry-button button-secondary-1" target="_blank" rel="noreferrer">
    179                             <?php esc_html_e( 'SUPPORT', 'antique-jewelry' ); ?>
    180                         </a>
    181                     </div>
    182                     <div class="antique-jewelry-features-box">
    183                         <h3><?php esc_html_e( 'THEME INSTRUCTION', 'antique-jewelry' ); ?></h3>
    184                         <p><?php esc_html_e( 'If you need assistance configuring and setting up the theme, our tutorial is available. A fast and simple method for setting up the theme.', 'antique-jewelry' ); ?></p>
    185                         <a href="<?php echo esc_url( ANTIQUE_JEWELRY_DOC_URL ); ?>" class="antique-jewelry-button button-secondary-1" target="_blank" rel="noreferrer">
    186                                 <?php esc_html_e( 'DOCUMENTATION', 'antique-jewelry' ); ?>
    187                             </a>
    188                     </div>
    189                 </div>   
    190             </div>
    191             <div id="antique-jewelry-admin-about-page-2">
    192                 <div class="antique-jewelry-pro-button bundle">
    193                     <div class="bundle-content">
    194                         <h3 class="bundle-head"><?php esc_html_e( 'Get All Themes In Single Pack', 'antique-jewelry' ); ?></h3>
    195                         <p class="bundle-para"><?php esc_html_e( 'From customization to optimization, this bundle gives you the flexibility to create stunning websites.', 'antique-jewelry' ); ?></p>
    196                         <a href="<?php echo esc_url( ANTIQUE_JEWELRY_BUNDLE ); ?>" class="antique-jewelry-button bundle" target="_blank" rel="noreferrer">
    197                             <?php esc_html_e( 'BUY THEME BUNDLE', 'antique-jewelry' ); ?>
    198                         </a>
    199                     </div>
    200                     <div class="bundle-image">
    201                         <img class="img_bundle" width="100%" src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/bundle.png' ); ?>" alt="<?php esc_attr_e('logo', 'antique-jewelry'); ?>">
    202                     </div>
    203                 </div>
    204                 <div class="theme-detail">
    205                    <div class="antique-jewelry-admin-card-header-1">
    206                         <div class="antique-jewelry-header-left-pro">
    207                             <h2><?php esc_html_e( 'The premium version of this theme will be available for you to enhance or unlock our premium features.', 'antique-jewelry' ); ?></h2>
    208                         </div>
    209                         <div class="antique-jewelry-header-right-2">
    210                             <div class="antique-jewelry-pro-button">
    211                                 <a href="<?php echo esc_url( ANTIQUE_JEWELRY_BUY_NOW ); ?>" class="antique-jewelry-button button-primary-1 buy-now" target="_blank" rel="noreferrer">
    212                                     <?php esc_html_e( 'GO TO PREMIUM', 'antique-jewelry' ); ?>
    213                                 </a>
    214                             </div>
    215                             <div class="antique-jewelry-pro-button">
    216                                 <a href="<?php echo esc_url( ANTIQUE_JEWELRY_LIVE_DEMO ); ?>" class="antique-jewelry-button button-primary-1 pro-demo" target="_blank" rel="noreferrer">
    217                                     <?php esc_html_e( 'PREMIUM DEMO', 'antique-jewelry' ); ?>
    218                                 </a>
    219                             </div>
    220                         </div>
    221                     </div>
    222                     <div class="antique-jewelry-admin-card-header-2">
    223                         <img class="img_responsive" style="width: 100%;" src="<?php echo esc_url( $antique_jewelry_theme->get_screenshot() ); ?>" />
    224                     </div>
    225                 </div>   
    226             </div>
    227         </div>
    228     </div>
    229 <?php } ?>
     165 * @param string $name Icon name.
     166 * @return string
     167 */
     168function antique_jewelry_icon( $name ) {
     169        $paths = array(
     170                'cart'     => '<circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/>',
     171                'monitor'  => '<rect x="2" y="3" width="20" height="14" rx="2"/><path d="M8 21h8M12 17v4"/>',
     172                'book'     => '<path d="M2 4h6a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2z"/><path d="M22 4h-6a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h7z"/>',
     173                'grid'     => '<rect x="3" y="3" width="7" height="7" rx="1.5"/><rect x="14" y="3" width="7" height="7" rx="1.5"/><rect x="3" y="14" width="7" height="7" rx="1.5"/><rect x="14" y="14" width="7" height="7" rx="1.5"/>',
     174                'file'     => '<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6M8 13h8M8 17h8M8 9h2"/>',
     175                'palette'  => '<path d="M12 22a10 10 0 1 1 10-10c0 2.5-2 4-4.5 4H16a2 2 0 0 0-1.5 3.3A1.6 1.6 0 0 1 12 22z"/><circle cx="7.5" cy="11.5" r="1.3"/><circle cx="10.5" cy="7" r="1.3"/><circle cx="15.5" cy="7.5" r="1.3"/>',
     176                'menu'     => '<path d="M4 6h16M4 12h16M4 18h16"/>',
     177                'rocket'   => '<path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"/><path d="M12 15l-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/>',
     178                'arrow'    => '<path d="M5 12h14M13 6l6 6-6 6"/>',
     179                'chevron'  => '<path d="M9 6l6 6-6 6"/>',
     180                'check'    => '<circle cx="12" cy="12" r="10" fill="currentColor" stroke="none"/><path d="M7.5 12.5l3 3 6-6" stroke="#fff"/>',
     181                'layers'   => '<path d="M12 2l10 5-10 5L2 7z"/><path d="M2 17l10 5 10-5M2 12l10 5 10-5"/>',
     182                'plus'     => '<circle cx="12" cy="12" r="10" fill="currentColor" stroke="none"/><path d="M12 7.5v9M7.5 12h9" stroke="#fff"/>',
     183                'crown'    => '<path d="M3 18h18l-1.5-10-4.5 4-3-6-3 6-4.5-4z" fill="currentColor"/><path d="M3 21h18"/>',
     184                'support'  => '<circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="4"/><path d="M4.93 4.93l4.24 4.24M14.83 14.83l4.24 4.24M14.83 9.17l4.24-4.24M4.93 19.07l4.24-4.24"/>',
     185                'copy'     => '<rect x="9" y="9" width="12" height="12" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>',
     186        );
     187
     188        if ( ! isset( $paths[ $name ] ) ) {
     189                return '';
     190        }
     191
     192        return '<svg class="titan-icon" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">' . $paths[ $name ] . '</svg>';
     193}
     194
     195/**
     196 * Allowed SVG markup for wp_kses().
     197 *
     198 * @return array
     199 */
     200function antique_jewelry_svg_kses() {
     201        $common = array(
     202                'fill'   => true,
     203                'stroke' => true,
     204        );
     205
     206        return array(
     207                'svg'    => array_merge( $common, array( 'class' => true, 'viewbox' => true, 'width' => true, 'height' => true, 'stroke-width' => true, 'stroke-linecap' => true, 'stroke-linejoin' => true, 'aria-hidden' => true, 'focusable' => true ) ),
     208                'path'   => array_merge( $common, array( 'd' => true ) ),
     209                'circle' => array_merge( $common, array( 'cx' => true, 'cy' => true, 'r' => true ) ),
     210                'rect'   => array_merge( $common, array( 'x' => true, 'y' => true, 'width' => true, 'height' => true, 'rx' => true ) ),
     211        );
     212}
     213
     214/**
     215 * Echo an inline SVG icon.
     216 *
     217 * @param string $name Icon name.
     218 */
     219function antique_jewelry_the_icon( $name ) {
     220        echo wp_kses( antique_jewelry_icon( $name ), antique_jewelry_svg_kses() );
     221}
     222
     223/**
     224 * Render the Getting Started page.
     225 */
     226function antique_jewelry_do_admin_page() {
     227        $antique_jewelry_theme      = wp_get_theme( get_template() );
     228        $antique_jewelry_screenshot = $antique_jewelry_theme->get_screenshot();
     229
     230        $antique_jewelry_quick_links = array(
     231                array(
     232                        'class' => 'is-purple',
     233                        'icon'  => 'cart',
     234                        'title' => __( 'Buy Premium', 'antique-jewelry' ),
     235                        'text'  => __( 'Unlock advanced features and full customization.', 'antique-jewelry' ),
     236                        'url'   => ANTIQUE_JEWELRY_BUY_NOW,
     237                ),
     238                array(
     239                        'class' => 'is-blue',
     240                        'icon'  => 'monitor',
     241                        'title' => __( 'Live Demo', 'antique-jewelry' ),
     242                        'text'  => __( 'See the theme in action before you buy.', 'antique-jewelry' ),
     243                        'url'   => ANTIQUE_JEWELRY_LIVE_DEMO,
     244                ),
     245                array(
     246                        'class' => 'is-green',
     247                        'icon'  => 'book',
     248                        'title' => __( 'Theme Documentation', 'antique-jewelry' ),
     249                        'text'  => __( 'Detailed setup guides, FAQs and support articles.', 'antique-jewelry' ),
     250                        'url'   => ANTIQUE_JEWELRY_DOC_URL,
     251                ),
     252                array(
     253                        'class' => 'is-pink',
     254                        'icon'  => 'grid',
     255                        'title' => __( 'Bundle', 'antique-jewelry' ),
     256                        'text'  => __( 'Get 50+ premium themes at the best value.', 'antique-jewelry' ),
     257                        'url'   => ANTIQUE_JEWELRY_BUNDLE,
     258                ),
     259        );
     260
     261        $antique_jewelry_setup_steps = array(
     262                array(
     263                        'icon'     => 'file',
     264                        'title'    => __( 'Documentation', 'antique-jewelry' ),
     265                        'text'     => __( 'Read the theme documentation for setup guide, customization tips and troubleshooting.', 'antique-jewelry' ),
     266                        'label'    => __( 'View Documentation', 'antique-jewelry' ),
     267                        'url'      => ANTIQUE_JEWELRY_DOC_URL,
     268                        'external' => true,
     269                        'primary'  => true,
     270                ),
     271                array(
     272                        'icon'     => 'palette',
     273                        'title'    => __( 'Customize Your Theme', 'antique-jewelry' ),
     274                        'text'     => __( 'Adjust colors, typography, and layout settings to match your brand.', 'antique-jewelry' ),
     275                        'label'    => __( 'Go to Site Editor', 'antique-jewelry' ),
     276                        'url'      => admin_url( 'site-editor.php' ),
     277                        'external' => false,
     278                        'primary'  => false,
     279                ),
     280                array(
     281                        'icon'     => 'menu',
     282                        'title'    => __( 'Set Up Your Menu', 'antique-jewelry' ),
     283                        'text'     => __( 'Create navigation menus so your customers can easily explore your store.', 'antique-jewelry' ),
     284                        'label'    => __( 'Manage Menus', 'antique-jewelry' ),
     285                        'url'      => admin_url( 'site-editor.php?path=%2Fnavigation' ),
     286                        'external' => false,
     287                        'primary'  => false,
     288                ),
     289                array(
     290                        'icon'     => 'support',
     291                        'title'    => __( 'Get Support', 'antique-jewelry' ),
     292                        'text'     => __( 'Stuck somewhere? Ask our support team and get help with your theme.', 'antique-jewelry' ),
     293                        'label'    => __( 'Contact Support', 'antique-jewelry' ),
     294                        'url'      => ANTIQUE_JEWELRY_SUPPORT,
     295                        'external' => true,
     296                        'primary'  => false,
     297                ),
     298                array(
     299                        'icon'     => 'rocket',
     300                        'title'    => __( 'Launch Your Website', 'antique-jewelry' ),
     301                        'text'     => __( 'Review your store, make final adjustments and start selling.', 'antique-jewelry' ),
     302                        'label'    => __( 'Go to Dashboard', 'antique-jewelry' ),
     303                        'url'      => admin_url(),
     304                        'external' => false,
     305                        'primary'  => false,
     306                ),
     307        );
     308
     309        $antique_jewelry_upgrade_features = array(
     310                array( 'layers', __( 'More Sections & Templates', 'antique-jewelry' ) ),
     311                array( 'check', __( 'Advanced Customization', 'antique-jewelry' ) ),
     312                array( 'check', __( 'Priority Support', 'antique-jewelry' ) ),
     313                array( 'plus', __( 'Regular Updates', 'antique-jewelry' ) ),
     314        );
     315
     316        $antique_jewelry_why_premium = array(
     317                __( 'Advanced layout options & sections', 'antique-jewelry' ),
     318                __( 'More customization controls', 'antique-jewelry' ),
     319                __( 'Premium support & updates', 'antique-jewelry' ),
     320                __( 'Build a professional and unique store', 'antique-jewelry' ),
     321        );
     322        ?>
     323        <div class="wrap titan-wrap">
     324                <h1 class="screen-reader-text"><?php echo esc_html( $antique_jewelry_theme->display( 'Name' ) ); ?></h1>
     325
     326                <div class="titan-grid">
     327
     328                        <!-- Left column -->
     329                        <div class="titan-col">
     330
     331                                <header class="titan-intro">
     332                                        <span class="titan-logo"><?php antique_jewelry_the_icon( 'layers' ); ?></span>
     333                                        <div>
     334                                                <h2 class="titan-intro__title">
     335                                                        <?php echo esc_html( $antique_jewelry_theme->display( 'Name' ) ); ?>
     336                                                        <span class="titan-badge">
     337                                                                <?php
     338                                                                /* translators: %s: Theme version. */
     339                                                                printf( esc_html__( 'Version %s', 'antique-jewelry' ), esc_html( $antique_jewelry_theme->get( 'Version' ) ) );
     340                                                                ?>
     341                                                        </span>
     342                                                </h2>
     343                                                <p class="titan-intro__text">
     344                                                        <?php
     345                                                        /* translators: %s: Theme name. */
     346                                                        printf( wp_kses( __( 'Thank you for choosing <strong>%s</strong>! Follow the steps below to set up your theme and get your store ready for launch.', 'antique-jewelry' ), array( 'strong' => array() ) ), esc_html( $antique_jewelry_theme->display( 'Name' ) ) );
     347                                                        ?>
     348                                                </p>
     349                                        </div>
     350                                </header>
     351
     352                                <nav class="titan-card titan-quick" aria-label="<?php esc_attr_e( 'Quick links', 'antique-jewelry' ); ?>">
     353                                        <?php foreach ( $antique_jewelry_quick_links as $antique_jewelry_link ) : ?>
     354                                                <a class="titan-quick__item <?php echo esc_attr( $antique_jewelry_link['class'] ); ?>" href="<?php echo esc_url( $antique_jewelry_link['url'] ); ?>" target="_blank" rel="noopener noreferrer">
     355                                                        <span class="titan-quick__icon"><?php antique_jewelry_the_icon( $antique_jewelry_link['icon'] ); ?></span>
     356                                                        <span class="titan-quick__title"><?php echo esc_html( $antique_jewelry_link['title'] ); ?> <?php antique_jewelry_the_icon( 'chevron' ); ?></span>
     357                                                        <span class="titan-quick__text"><?php echo esc_html( $antique_jewelry_link['text'] ); ?></span>
     358                                                </a>
     359                                        <?php endforeach; ?>
     360                                </nav>
     361
     362                                <section class="titan-card titan-setup">
     363                                        <div class="titan-setup__head">
     364                                                <span class="titan-setup__logo">
     365                                                        <img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/favicon.png' ); ?>" alt="" width="24" height="24">
     366                                                </span>
     367                                                <div class="titan-setup__text">
     368                                                        <h2><?php esc_html_e( 'Our Important Links', 'antique-jewelry' ); ?></h2>
     369                                                        <p><?php esc_html_e( 'Quick access to the resources you need to get the most out of your theme.', 'antique-jewelry' ); ?></p>
     370                                                </div>
     371                                        </div>
     372                                        <ol class="titan-steps">
     373                                                <?php foreach ( $antique_jewelry_setup_steps as $antique_jewelry_step ) : ?>
     374                                                        <li class="titan-step">
     375                                                                <span class="titan-step__icon"><?php antique_jewelry_the_icon( $antique_jewelry_step['icon'] ); ?></span>
     376                                                                <div class="titan-step__body">
     377                                                                        <h3><?php echo esc_html( $antique_jewelry_step['title'] ); ?></h3>
     378                                                                        <p><?php echo esc_html( $antique_jewelry_step['text'] ); ?></p>
     379                                                                </div>
     380                                                                <a class="titan-btn <?php echo $antique_jewelry_step['primary'] ? 'titan-btn--primary' : 'titan-btn--outline'; ?>" href="<?php echo esc_url( $antique_jewelry_step['url'] ); ?>"<?php echo $antique_jewelry_step['external'] ? ' target="_blank" rel="noopener noreferrer"' : ''; ?>>
     381                                                                        <?php echo esc_html( $antique_jewelry_step['label'] ); ?> <?php antique_jewelry_the_icon( 'arrow' ); ?>
     382                                                                </a>
     383                                                        </li>
     384                                                <?php endforeach; ?>
     385                                        </ol>
     386                                </section>
     387
     388                        </div>
     389
     390                        <!-- Right column -->
     391                        <div class="titan-col">
     392
     393                                <section class="titan-upgrade">
     394                                        <div class="titan-upgrade__content">
     395                                                <span class="titan-pill"><?php esc_html_e( 'Upgrade', 'antique-jewelry' ); ?></span>
     396                                                <h2><?php esc_html_e( 'Unlock More Power with Premium', 'antique-jewelry' ); ?></h2>
     397                                                <p><?php esc_html_e( 'Get advanced features, more customization options, priority support and take your store to the next level.', 'antique-jewelry' ); ?></p>
     398                                                <div class="titan-upgrade__actions">
     399                                                        <a class="titan-btn titan-btn--white" href="<?php echo esc_url( ANTIQUE_JEWELRY_BUY_NOW ); ?>" target="_blank" rel="noopener noreferrer">
     400                                                                <?php esc_html_e( 'Buy Premium', 'antique-jewelry' ); ?> <?php antique_jewelry_the_icon( 'arrow' ); ?>
     401                                                        </a>
     402                                                </div>
     403                                        </div>
     404                                        <div class="titan-upgrade__media">
     405                                                <?php if ( $antique_jewelry_screenshot ) : ?>
     406                                                        <img class="titan-upgrade__shot is-back" src="<?php echo esc_url( $antique_jewelry_screenshot ); ?>" alt="" loading="lazy">
     407                                                        <img class="titan-upgrade__shot is-front" src="<?php echo esc_url( $antique_jewelry_screenshot ); ?>" alt="<?php esc_attr_e( 'Premium theme preview', 'antique-jewelry' ); ?>" loading="lazy">
     408                                                <?php endif; ?>
     409                                                <span class="titan-price-bubble">
     410                                                        <small><?php esc_html_e( 'From', 'antique-jewelry' ); ?></small>
     411                                                        <?php echo esc_html( ANTIQUE_JEWELRY_PRO_PRICE ); ?>
     412                                                </span>
     413                                        </div>
     414                                        <ul class="titan-upgrade__list">
     415                                                <?php foreach ( $antique_jewelry_upgrade_features as $antique_jewelry_feature ) : ?>
     416                                                        <li><?php antique_jewelry_the_icon( $antique_jewelry_feature[0] ); ?><?php echo esc_html( $antique_jewelry_feature[1] ); ?></li>
     417                                                <?php endforeach; ?>
     418                                        </ul>
     419                                </section>
     420
     421                                <div class="titan-row">
     422                                        <section class="titan-card titan-why">
     423                                                <div class="titan-why-1">
     424                                                        <div class="titan-why__head">
     425                                                                <span class="titan-why__crown"><?php antique_jewelry_the_icon( 'crown' ); ?></span>
     426                                                                <div>
     427                                                                        <h2><?php esc_html_e( 'Why Go Premium?', 'antique-jewelry' ); ?></h2>
     428                                                                        <p><?php esc_html_e( 'Take your website to the next level with our premium version.', 'antique-jewelry' ); ?></p>
     429                                                                </div>
     430                                                        </div>
     431                                                        <ul class="titan-checklist">
     432                                                                <?php foreach ( $antique_jewelry_why_premium as $antique_jewelry_item ) : ?>
     433                                                                        <li><?php antique_jewelry_the_icon( 'check' ); ?><?php echo esc_html( $antique_jewelry_item ); ?></li>
     434                                                                <?php endforeach; ?>
     435                                                        </ul>
     436                                                        <a class="titan-btn titan-btn--primary why" href="<?php echo esc_url( ANTIQUE_JEWELRY_BUY_NOW ); ?>" target="_blank" rel="noopener noreferrer">
     437                                                                <?php esc_html_e( 'Buy Premium', 'antique-jewelry' ); ?> <?php antique_jewelry_the_icon( 'arrow' ); ?>
     438                                                        </a>
     439                                                        <a class="titan-btn titan-btn--ghost" href="<?php echo esc_url( ANTIQUE_JEWELRY_LIVE_DEMO ); ?>" target="_blank" rel="noopener noreferrer">
     440                                                                <?php esc_html_e( 'Live Demo', 'antique-jewelry' ); ?> <?php antique_jewelry_the_icon( 'arrow' ); ?>
     441                                                        </a>
     442                                                </div>
     443                                                <?php if ( $antique_jewelry_screenshot ) : ?>
     444                                                        <div class="titan-devices__frame">
     445                                                                <div class="titan-laptop">
     446                                                                        <div class="titan-laptop__screen"><img src="<?php echo esc_url( $antique_jewelry_screenshot ); ?>" alt="" loading="lazy"></div>
     447                                                                        <div class="titan-laptop__base"></div>
     448                                                                </div>
     449                                                                <div class="titan-phone"><img src="<?php echo esc_url( $antique_jewelry_screenshot ); ?>" alt="" loading="lazy"></div>
     450                                                        </div>
     451                                                <?php endif; ?>
     452                                        </section>
     453                                </div>
     454
     455                                <section class="titan-bundle">
     456                                        <div class="titan-bundle__content">
     457                                                <span class="titan-pill is-orange"><?php esc_html_e( 'Best Value', 'antique-jewelry' ); ?></span>
     458                                                <h2>
     459                                                        <?php
     460                                                        printf(
     461                                                                /* translators: 1: Theme count, 2: "One Bundle". */
     462                                                                esc_html__( 'Get %1$s Premium WordPress Themes in %2$s', 'antique-jewelry' ),
     463                                                                '<span>' . esc_html__( '50+', 'antique-jewelry' ) . '</span>',
     464                                                                '<span>' . esc_html__( 'One Bundle', 'antique-jewelry' ) . '</span>'
     465                                                        );
     466                                                        ?>
     467                                                </h2>
     468                                                <p><?php esc_html_e( 'High-quality themes for various industries, with lifetime access, regular updates and dedicated support.', 'antique-jewelry' ); ?></p>
     469                                                <div class="titan-bundle__actions">
     470                                                        <span class="titan-bundle__price">
     471                                                                <del><?php echo esc_html( ANTIQUE_JEWELRY_BUNDLE_REGULAR_PRICE ); ?></del>
     472                                                                <strong><?php echo esc_html( ANTIQUE_JEWELRY_BUNDLE_PRICE ); ?></strong>
     473                                                        </span>
     474                                                        <?php if ( ANTIQUE_JEWELRY_BUNDLE_COUPON ) : ?>
     475                                                                <button type="button" class="titan-coupon" data-coupon="<?php echo esc_attr( ANTIQUE_JEWELRY_BUNDLE_COUPON ); ?>">
     476                                                                        <small><?php esc_html_e( 'Use Coupon Code:', 'antique-jewelry' ); ?></small>
     477                                                                        <span class="titan-coupon__code"><?php echo esc_html( ANTIQUE_JEWELRY_BUNDLE_COUPON ); ?></span>
     478                                                                        <?php antique_jewelry_the_icon( 'copy' ); ?>
     479                                                                </button>
     480                                                        <?php endif; ?>
     481                                                        <a class="titan-btn titan-btn--yellow" href="<?php echo esc_url( ANTIQUE_JEWELRY_BUNDLE ); ?>" target="_blank" rel="noopener noreferrer">
     482                                                                <?php esc_html_e( 'Get Bundle', 'antique-jewelry' ); ?> <?php antique_jewelry_the_icon( 'arrow' ); ?>
     483                                                        </a>
     484                                                </div>
     485                                        </div>
     486                                        <div class="titan-bundle__media">
     487                                                <img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/bundle.png' ); ?>" alt="<?php esc_attr_e( 'Theme bundle preview', 'antique-jewelry' ); ?>" width="733" height="571" loading="lazy">
     488                                                <span class="titan-price-bubble is-small"><?php esc_html_e( '50+', 'antique-jewelry' ); ?><small><?php esc_html_e( 'Themes', 'antique-jewelry' ); ?></small></span>
     489                                        </div>
     490                                </section>
     491
     492                        </div>
     493                </div>
     494        </div>
     495        <?php
     496}
  • antique-jewelry/4.1.9/about-theme/admin-notice-script.js

    r293806 r355654  
    1 (function( $ ) {
    2     $( document ).on( 'click', '.notice-get-started-class .notice-dismiss', function () {
    3         // Read the "data-notice" information to track which notice is being dismissed
    4         var type = $( this ).closest( '.notice-get-started-class' ).data( 'notice' );
    5        
    6         // Make an AJAX call
    7         $.ajax( ajaxurl, {
    8             type: 'POST',
    9             data: {
    10                 action: 'antique_jewelry_dismissable_notice',
    11                 type: type,
    12                 wpnonce: antique_jewelry.wpnonce // Make sure you localize the nonce
    13             }
    14         });
    15     });
    16 })( jQuery );
     1/* Antique Jewelry - remember the dismissed welcome notice. */
     2( function () {
     3        'use strict';
     4
     5        document.addEventListener( 'click', function ( event ) {
     6                var button = event.target.closest( '.antique-jewelry-notice .notice-dismiss' );
     7
     8                if ( ! button || 'undefined' === typeof window.antiqueJewelryNotice ) {
     9                        return;
     10                }
     11
     12                var data = new FormData();
     13                data.append( 'action', 'antique_jewelry_dismissable_notice' );
     14                data.append( 'type', button.closest( '.antique-jewelry-notice' ).getAttribute( 'data-notice' ) );
     15                data.append( 'nonce', window.antiqueJewelryNotice.nonce );
     16
     17                fetch( window.antiqueJewelryNotice.ajaxUrl, {
     18                        method: 'POST',
     19                        credentials: 'same-origin',
     20                        body: data
     21                } ).catch( function () {} );
     22        } );
     23}() );
  • antique-jewelry/4.1.9/functions.php

    r353977 r355654  
    2424         */
    2525        require get_template_directory() . '/inc/customizer.php';
    26 
    27 function antique_jewelry_add_upgrade_button( $antique_jewelry_wp_admin_bar ) {
    28 
    29     $antique_jewelry_theme_name = wp_get_theme()->get( 'Name' );
    30 
    31     $antique_jewelry_args = array(
    32         'id'    => 'antique_jewelry_pro',
    33         'title' => '<span style="color:#fff;font-weight:600;">
    34             ✨ ' . esc_html( $antique_jewelry_theme_name ) . ' Pro
    35             <span style="background:#181518;color:#fff;padding:3px 9px;border-radius:4px;margin-left:6px;">
    36                 Explore Pro
    37             </span>
    38         </span>',
    39         'href'  => esc_url( ANTIQUE_JEWELRY_BUY_NOW ),
    40         'meta'  => array(
    41             'class'  => 'antique-jewelry-pro-btn',
    42             'title'  => 'Explore Pro Features',
    43             'target' => '_blank'
    44         )
    45     );
    46 
    47     $antique_jewelry_wp_admin_bar->add_node( $antique_jewelry_args );
    48 }
    49 
    50 add_action( 'admin_bar_menu', 'antique_jewelry_add_upgrade_button', 100 );
    5126
    5227}
  • antique-jewelry/4.1.9/readme.txt

    r353977 r355654  
    44Tested up to: 7.1
    55Requires PHP: 7.2
    6 Stable tag: 4.1.8
     6Stable tag: 4.1.9
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    1313
    1414== Changelog ==
    15 
    16 = 4.1.8 =
    17 * Resolved Theme errors.
    1815
    1916= 3.2.5 =
    … …  
    181178= 4.1.7 =
    182179* Optimized Frontend Performance.
     180
     181= 4.1.8 =
     182* Get Started updated.
     183
     184= 4.1.9 =
     185* Redesigned Getting Started page: October 14, 2026
     186* Added theme version badge in Getting Started heading: October 14, 2026
     187* Added nonce verification for admin notice dismissal: October 14, 2026
     188* Getting Started assets now load only on the Getting Started page: October 14, 2026
     189* Removed unused Getting Started code: October 14, 2026
     190
    183191== Copyright ==
    184192
  • antique-jewelry/4.1.9/style.css

    r353977 r355654  
    88Tested up to: 7.1
    99Requires PHP: 7.2
    10 Version: 4.1.8
     10Version: 4.1.9
    1111License: GNU General Public License v2 or later
    1212License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.