Plugin Directory

Changeset 3088254


Ignore:
Timestamp:
05/17/2024 11:03:41 AM (20 months ago)
Author:
nicdark
Message:

edit files for version 7.3

Location:
nd-shortcodes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nd-shortcodes/tags/7.3/inc/settings/import-elementor/index.php

    r3062123 r3088254  
    202202                  if ( $nd_options_import_demo->image == 'bakery' ) {
    203203
    204                     $nd_options_step_demo_2_bakery = '
    205 
    206                     <div class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left nd_options_width_100_percentage">
    207                       <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_30 nd_options_margin_0">
    208                         <p><strong>'.esc_html__('WP BAKERY DEMOS','nd-shortcodes').' : </strong>
    209                           '.esc_html__('If you are looking for demos using ','nd-shortcodes').'
    210                           <u>'.esc_html__('WP Bakery Page Builder','nd-shortcodes').'</u>
    211                           '.esc_html__(' plugin check','nd-shortcodes').'
    212                           <a target="_blank" href="'.$nd_options_import_demo->url.'">'.esc_html__('this link','nd-shortcodes').'</a>
    213                         </p>
     204                    //check theme name
     205                    $nd_options_theme_name = '';
     206                    $nd_options_theme_name = wp_get_theme();
     207                    $nd_options_theme_name = $nd_options_theme_name->get('TextDomain');
     208
     209
     210                    //start if is love travel for wp bakery alert
     211                    if ( $nd_options_theme_name == 'lovetravel' ) {
     212
     213                    }else{
     214
     215
     216                      $nd_options_step_demo_2_bakery = '
     217
     218                      '.$nd_options_theme_name.'
     219
     220                      <div class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left nd_options_width_100_percentage">
     221                        <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_30 nd_options_margin_0">
     222                          <p><strong>'.esc_html__('WP BAKERY DEMOS','nd-shortcodes').' : </strong>
     223                            '.esc_html__('If you are looking for demos using ','nd-shortcodes').'
     224                            <u>'.esc_html__('WP Bakery Page Builder','nd-shortcodes').'</u>
     225                            '.esc_html__(' plugin check','nd-shortcodes').'
     226                            <a target="_blank" href="'.$nd_options_import_demo->url.'">'.esc_html__('this link','nd-shortcodes').'</a>
     227                          </p>
     228                        </div>
    214229                      </div>
    215                     </div>
    216 
    217                     ';
     230
     231                      ';
     232
     233
     234                    }
     235                    //end love travel check
     236
    218237
    219238                  }else{
     
    416435                <div class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left nd_options_width_100_percentage">
    417436                  <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_30 nd_options_margin_0 nd_options_background_color_d6363917">
    418                     <p><strong>'.esc_html__('FREE PRO Elements or Elementor PRO plugins required','nd-shortcodes').' : </strong><br/>'.esc_html__('One of these two plugins are not installed. You bought this theme with "Elementor PRO" indication needed to use some demos. You have 3 solutions, chose the best for you and download one of these ( Once you have installed and activated one of these two plugins, return and reload this page to import your demo ) : ','nd-shortcodes').'</p>
    419 
    420 
    421                     <ul class="nd_options_padding_left_13 nd_options_list_style_disc">
    422                         <li><p>'.esc_html__('Download PRO Elements now ( FREE )','nd-shortcodes').' <a target="_blank" href="https://proelements.org/">'.esc_html__('Download','nd-shortcodes').'</a></p></li>
    423                         <li><p>'.esc_html__('Purchase Elementor PRO official by Nicdark ( $ 9 / year )','nd-shortcodes').' <a target="_blank" href="https://www.nicdark.com/themes/elementor-pro/">'.esc_html__('Download','nd-shortcodes').'</a></p></li>
    424                         <li><p>'.esc_html__('Purchase Elementor PRO official by Elementor ( $ 59 / year )','nd-shortcodes').' <a target="_blank" href="https://elementor.com/pricing-plugin/">'.esc_html__('Download','nd-shortcodes').'</a></p></li>
    425                     </ul>
    426 
    427 
     437                    <p><strong>'.esc_html__('FREE PRO Elements or Elementor PRO plugins required','nd-shortcodes').' : </strong><br/><br/>'.esc_html__('One of these two plugins are not installed. You bought this theme with "Elementor PRO" indication needed to use some demos. You have 3 solutions, chose the best for you and download one of these ( Once you have installed and activated one of these two plugins, return and reload this page to import your demo ) : ','nd-shortcodes').'</p>
     438
     439
     440                    <br/>
    428441                    <a target="blank" href="https://www.nicdark.com/demos-with-elementor-pro/">'.esc_html__('IMPORTANT : Compare the various possibilities here','nd-shortcodes').'<p></p></a>
    429442                  </div>
     
    532545              if ( is_plugin_active($nicdark_elementorpro_path) or is_plugin_active($nicdark_proelements_path) ) {
    533546
    534                 $nd_options_step_demo_3 .= '
    535                 <div class="nd_options_section">
    536                   <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    537                     <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('1 - Import the Content','nd-shortcodes').'</h2>
    538                     <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10 nd_options_margin_bottom_15">'.esc_html__('Download the Content.xml by clicking on the button below, save the file on your desktop and then upload the file Content.xml on WordPress Importer','nd-shortcodes').' <a target="_blank" href="'.admin_url().'admin.php?import=wordpress">'.esc_html__('here','nd-shortcodes').'</a></p>
    539                     <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.xml').'" download>'.esc_html__('Donwload Content.xml','nd-shortcodes').'</a>
    540                     <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">* '.esc_html__('If your server blocks the download of the file, get it from this path','nd-shortcodes').' : <u>'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.xml').'</u></p>
    541                   </div>
    542                 </div>
    543 
    544 
    545                 <div class="nd_options_section nd_options_height_1 nd_options_background_color_E7E7E7 nd_options_margin_top_10 nd_options_margin_bottom_10"></div>
    546 
    547 
    548                 <div class="nd_options_section">
    549                   <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    550                     <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('2 - Import the Style','nd-shortcodes').'</h2>
    551                     <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10 nd_options_margin_bottom_15">'.esc_html__('Download the Style.zip by clicking on the button below, save the file on your desktop and then upload the file Style.zip on Elementor Import Tool','nd-shortcodes').' <a target="_blank" href="'.admin_url().'admin.php?page=elementor-app#/import">'.esc_html__('here','nd-shortcodes').'</a></p>
    552 
    553 
    554                     <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/style.zip').'" download >'.esc_html__('Donwload Style.zip','nd-shortcodes').'</a>
    555                     <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">* '.esc_html__('If your server blocks the download of the file, get it from this path','nd-shortcodes').' : <u>'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/style.zip').'</u></p>
    556 
    557                   </div>
    558                 </div>
    559 
    560 
    561                 <div class="nd_options_section nd_options_height_1 nd_options_background_color_E7E7E7 nd_options_margin_top_10 nd_options_margin_bottom_10"></div>
    562 
    563 
    564                 <div class="nd_options_section">
    565                   <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    566                    
    567                     <form action="'.esc_url(admin_url('themes.php')).'" method="get">
    568                       <input type="hidden" name="page" value="nicdark-welcome-theme-page">
    569                       <input type="hidden" name="step" value="4">
    570                       <input class="button button-primary" type="submit" value="'.esc_html__('Go to the last Step ','nd-shortcodes').'*">
    571                     </form>
    572 
    573                     <p>* '.esc_html__('Mandatory step to import some important options of the chosen demo','nd-shortcodes').'</p>
    574 
    575                   </div>
    576                 </div>';
     547                  //check theme name
     548                  $nd_options_theme_name = '';
     549                  $nd_options_theme_name = wp_get_theme();
     550                  $nd_options_theme_name = $nd_options_theme_name->get('TextDomain');
     551
     552                  //start if is love travel for new import
     553                  if ( $nd_options_theme_name == 'lovetravel' ) {
     554
     555
     556
     557                    $nd_options_step_demo_3 .= '
     558                   
     559                    <div class="nd_options_section">
     560                      <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     561                        <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('1 - Import the Content','nd-shortcodes').'</h2>
     562                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10 nd_options_margin_bottom_15">'.esc_html__('Download the Content.zip by clicking on the button below, save the file on your desktop and then upload the file Content.zip on Elementor Import Tool','nd-shortcodes').' <a target="_blank" href="'.admin_url().'admin.php?page=elementor-app#/import">'.esc_html__('here','nd-shortcodes').'</a></p>
     563
     564
     565                        <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.zip').'" download >'.esc_html__('Donwload Content.zip','nd-shortcodes').'</a>
     566                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">* '.esc_html__('If your server blocks the download of the file, get it from this path','nd-shortcodes').' : <u>'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.zip').'</u></p>
     567
     568                      </div>
     569                    </div>
     570
     571
     572                    <div class="nd_options_section nd_options_height_1 nd_options_background_color_E7E7E7 nd_options_margin_top_10 nd_options_margin_bottom_10"></div>
     573
     574
     575                    <div class="nd_options_section">
     576                      <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     577                       
     578                        <form action="'.esc_url(admin_url('themes.php')).'" method="get">
     579                          <input type="hidden" name="page" value="nicdark-welcome-theme-page">
     580                          <input type="hidden" name="step" value="4">
     581                          <input class="button button-primary" type="submit" value="'.esc_html__('Go to the last Step ','nd-shortcodes').'*">
     582                        </form>
     583
     584                        <p>* '.esc_html__('Mandatory step to import some important options of the chosen demo','nd-shortcodes').'</p>
     585
     586                      </div>
     587                    </div>'
     588                    ;
     589
     590
     591
     592
     593                  }else{
     594
     595                    $nd_options_step_demo_3 .= '
     596                    <div class="nd_options_section">
     597                      <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     598                        <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('1 - Import the Content','nd-shortcodes').'</h2>
     599                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10 nd_options_margin_bottom_15">'.esc_html__('Download the Content.xml by clicking on the button below, save the file on your desktop and then upload the file Content.xml on WordPress Importer','nd-shortcodes').' <a target="_blank" href="'.admin_url().'admin.php?import=wordpress">'.esc_html__('here','nd-shortcodes').'</a></p>
     600                        <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.xml').'" download>'.esc_html__('Donwload Content.xml','nd-shortcodes').'</a>
     601                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">* '.esc_html__('If your server blocks the download of the file, get it from this path','nd-shortcodes').' : <u>'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.xml').'</u></p>
     602                      </div>
     603                    </div>
     604
     605
     606                    <div class="nd_options_section nd_options_height_1 nd_options_background_color_E7E7E7 nd_options_margin_top_10 nd_options_margin_bottom_10"></div>
     607
     608
     609                    <div class="nd_options_section">
     610                      <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     611                        <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('2 - Import the Style','nd-shortcodes').'</h2>
     612                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10 nd_options_margin_bottom_15">'.esc_html__('Download the Style.zip by clicking on the button below, save the file on your desktop and then upload the file Style.zip on Elementor Import Tool','nd-shortcodes').' <a target="_blank" href="'.admin_url().'admin.php?page=elementor-app#/import">'.esc_html__('here','nd-shortcodes').'</a></p>
     613
     614
     615                        <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/style.zip').'" download >'.esc_html__('Donwload Style.zip','nd-shortcodes').'</a>
     616                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">* '.esc_html__('If your server blocks the download of the file, get it from this path','nd-shortcodes').' : <u>'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/style.zip').'</u></p>
     617
     618                      </div>
     619                    </div>
     620
     621
     622                    <div class="nd_options_section nd_options_height_1 nd_options_background_color_E7E7E7 nd_options_margin_top_10 nd_options_margin_bottom_10"></div>
     623
     624
     625                    <div class="nd_options_section">
     626                      <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     627                       
     628                        <form action="'.esc_url(admin_url('themes.php')).'" method="get">
     629                          <input type="hidden" name="page" value="nicdark-welcome-theme-page">
     630                          <input type="hidden" name="step" value="4">
     631                          <input class="button button-primary" type="submit" value="'.esc_html__('Go to the last Step ','nd-shortcodes').'*">
     632                        </form>
     633
     634                        <p>* '.esc_html__('Mandatory step to import some important options of the chosen demo','nd-shortcodes').'</p>
     635
     636                      </div>
     637                    </div>'
     638                    ;
    577639                 
     640                  }
     641
    578642              }
    579643
  • nd-shortcodes/trunk/inc/settings/import-elementor/index.php

    r3062121 r3088254  
    202202                  if ( $nd_options_import_demo->image == 'bakery' ) {
    203203
    204                     $nd_options_step_demo_2_bakery = '
    205 
    206                     <div class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left nd_options_width_100_percentage">
    207                       <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_30 nd_options_margin_0">
    208                         <p><strong>'.esc_html__('WP BAKERY DEMOS','nd-shortcodes').' : </strong>
    209                           '.esc_html__('If you are looking for demos using ','nd-shortcodes').'
    210                           <u>'.esc_html__('WP Bakery Page Builder','nd-shortcodes').'</u>
    211                           '.esc_html__(' plugin check','nd-shortcodes').'
    212                           <a target="_blank" href="'.$nd_options_import_demo->url.'">'.esc_html__('this link','nd-shortcodes').'</a>
    213                         </p>
     204                    //check theme name
     205                    $nd_options_theme_name = '';
     206                    $nd_options_theme_name = wp_get_theme();
     207                    $nd_options_theme_name = $nd_options_theme_name->get('TextDomain');
     208
     209
     210                    //start if is love travel for wp bakery alert
     211                    if ( $nd_options_theme_name == 'lovetravel' ) {
     212
     213                    }else{
     214
     215
     216                      $nd_options_step_demo_2_bakery = '
     217
     218                      '.$nd_options_theme_name.'
     219
     220                      <div class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left nd_options_width_100_percentage">
     221                        <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_30 nd_options_margin_0">
     222                          <p><strong>'.esc_html__('WP BAKERY DEMOS','nd-shortcodes').' : </strong>
     223                            '.esc_html__('If you are looking for demos using ','nd-shortcodes').'
     224                            <u>'.esc_html__('WP Bakery Page Builder','nd-shortcodes').'</u>
     225                            '.esc_html__(' plugin check','nd-shortcodes').'
     226                            <a target="_blank" href="'.$nd_options_import_demo->url.'">'.esc_html__('this link','nd-shortcodes').'</a>
     227                          </p>
     228                        </div>
    214229                      </div>
    215                     </div>
    216 
    217                     ';
     230
     231                      ';
     232
     233
     234                    }
     235                    //end love travel check
     236
    218237
    219238                  }else{
     
    416435                <div class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left nd_options_width_100_percentage">
    417436                  <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_30 nd_options_margin_0 nd_options_background_color_d6363917">
    418                     <p><strong>'.esc_html__('FREE PRO Elements or Elementor PRO plugins required','nd-shortcodes').' : </strong><br/>'.esc_html__('One of these two plugins are not installed. You bought this theme with "Elementor PRO" indication needed to use some demos. You have 3 solutions, chose the best for you and download one of these ( Once you have installed and activated one of these two plugins, return and reload this page to import your demo ) : ','nd-shortcodes').'</p>
    419 
    420 
    421                     <ul class="nd_options_padding_left_13 nd_options_list_style_disc">
    422                         <li><p>'.esc_html__('Download PRO Elements now ( FREE )','nd-shortcodes').' <a target="_blank" href="https://proelements.org/">'.esc_html__('Download','nd-shortcodes').'</a></p></li>
    423                         <li><p>'.esc_html__('Purchase Elementor PRO official by Nicdark ( $ 9 / year )','nd-shortcodes').' <a target="_blank" href="https://www.nicdark.com/themes/elementor-pro/">'.esc_html__('Download','nd-shortcodes').'</a></p></li>
    424                         <li><p>'.esc_html__('Purchase Elementor PRO official by Elementor ( $ 59 / year )','nd-shortcodes').' <a target="_blank" href="https://elementor.com/pricing-plugin/">'.esc_html__('Download','nd-shortcodes').'</a></p></li>
    425                     </ul>
    426 
    427 
     437                    <p><strong>'.esc_html__('FREE PRO Elements or Elementor PRO plugins required','nd-shortcodes').' : </strong><br/><br/>'.esc_html__('One of these two plugins are not installed. You bought this theme with "Elementor PRO" indication needed to use some demos. You have 3 solutions, chose the best for you and download one of these ( Once you have installed and activated one of these two plugins, return and reload this page to import your demo ) : ','nd-shortcodes').'</p>
     438
     439
     440                    <br/>
    428441                    <a target="blank" href="https://www.nicdark.com/demos-with-elementor-pro/">'.esc_html__('IMPORTANT : Compare the various possibilities here','nd-shortcodes').'<p></p></a>
    429442                  </div>
     
    532545              if ( is_plugin_active($nicdark_elementorpro_path) or is_plugin_active($nicdark_proelements_path) ) {
    533546
    534                 $nd_options_step_demo_3 .= '
    535                 <div class="nd_options_section">
    536                   <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    537                     <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('1 - Import the Content','nd-shortcodes').'</h2>
    538                     <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10 nd_options_margin_bottom_15">'.esc_html__('Download the Content.xml by clicking on the button below, save the file on your desktop and then upload the file Content.xml on WordPress Importer','nd-shortcodes').' <a target="_blank" href="'.admin_url().'admin.php?import=wordpress">'.esc_html__('here','nd-shortcodes').'</a></p>
    539                     <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.xml').'" download>'.esc_html__('Donwload Content.xml','nd-shortcodes').'</a>
    540                     <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">* '.esc_html__('If your server blocks the download of the file, get it from this path','nd-shortcodes').' : <u>'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.xml').'</u></p>
    541                   </div>
    542                 </div>
    543 
    544 
    545                 <div class="nd_options_section nd_options_height_1 nd_options_background_color_E7E7E7 nd_options_margin_top_10 nd_options_margin_bottom_10"></div>
    546 
    547 
    548                 <div class="nd_options_section">
    549                   <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    550                     <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('2 - Import the Style','nd-shortcodes').'</h2>
    551                     <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10 nd_options_margin_bottom_15">'.esc_html__('Download the Style.zip by clicking on the button below, save the file on your desktop and then upload the file Style.zip on Elementor Import Tool','nd-shortcodes').' <a target="_blank" href="'.admin_url().'admin.php?page=elementor-app#/import">'.esc_html__('here','nd-shortcodes').'</a></p>
    552 
    553 
    554                     <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/style.zip').'" download >'.esc_html__('Donwload Style.zip','nd-shortcodes').'</a>
    555                     <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">* '.esc_html__('If your server blocks the download of the file, get it from this path','nd-shortcodes').' : <u>'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/style.zip').'</u></p>
    556 
    557                   </div>
    558                 </div>
    559 
    560 
    561                 <div class="nd_options_section nd_options_height_1 nd_options_background_color_E7E7E7 nd_options_margin_top_10 nd_options_margin_bottom_10"></div>
    562 
    563 
    564                 <div class="nd_options_section">
    565                   <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    566                    
    567                     <form action="'.esc_url(admin_url('themes.php')).'" method="get">
    568                       <input type="hidden" name="page" value="nicdark-welcome-theme-page">
    569                       <input type="hidden" name="step" value="4">
    570                       <input class="button button-primary" type="submit" value="'.esc_html__('Go to the last Step ','nd-shortcodes').'*">
    571                     </form>
    572 
    573                     <p>* '.esc_html__('Mandatory step to import some important options of the chosen demo','nd-shortcodes').'</p>
    574 
    575                   </div>
    576                 </div>';
     547                  //check theme name
     548                  $nd_options_theme_name = '';
     549                  $nd_options_theme_name = wp_get_theme();
     550                  $nd_options_theme_name = $nd_options_theme_name->get('TextDomain');
     551
     552                  //start if is love travel for new import
     553                  if ( $nd_options_theme_name == 'lovetravel' ) {
     554
     555
     556
     557                    $nd_options_step_demo_3 .= '
     558                   
     559                    <div class="nd_options_section">
     560                      <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     561                        <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('1 - Import the Content','nd-shortcodes').'</h2>
     562                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10 nd_options_margin_bottom_15">'.esc_html__('Download the Content.zip by clicking on the button below, save the file on your desktop and then upload the file Content.zip on Elementor Import Tool','nd-shortcodes').' <a target="_blank" href="'.admin_url().'admin.php?page=elementor-app#/import">'.esc_html__('here','nd-shortcodes').'</a></p>
     563
     564
     565                        <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.zip').'" download >'.esc_html__('Donwload Content.zip','nd-shortcodes').'</a>
     566                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">* '.esc_html__('If your server blocks the download of the file, get it from this path','nd-shortcodes').' : <u>'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.zip').'</u></p>
     567
     568                      </div>
     569                    </div>
     570
     571
     572                    <div class="nd_options_section nd_options_height_1 nd_options_background_color_E7E7E7 nd_options_margin_top_10 nd_options_margin_bottom_10"></div>
     573
     574
     575                    <div class="nd_options_section">
     576                      <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     577                       
     578                        <form action="'.esc_url(admin_url('themes.php')).'" method="get">
     579                          <input type="hidden" name="page" value="nicdark-welcome-theme-page">
     580                          <input type="hidden" name="step" value="4">
     581                          <input class="button button-primary" type="submit" value="'.esc_html__('Go to the last Step ','nd-shortcodes').'*">
     582                        </form>
     583
     584                        <p>* '.esc_html__('Mandatory step to import some important options of the chosen demo','nd-shortcodes').'</p>
     585
     586                      </div>
     587                    </div>'
     588                    ;
     589
     590
     591
     592
     593                  }else{
     594
     595                    $nd_options_step_demo_3 .= '
     596                    <div class="nd_options_section">
     597                      <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     598                        <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('1 - Import the Content','nd-shortcodes').'</h2>
     599                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10 nd_options_margin_bottom_15">'.esc_html__('Download the Content.xml by clicking on the button below, save the file on your desktop and then upload the file Content.xml on WordPress Importer','nd-shortcodes').' <a target="_blank" href="'.admin_url().'admin.php?import=wordpress">'.esc_html__('here','nd-shortcodes').'</a></p>
     600                        <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.xml').'" download>'.esc_html__('Donwload Content.xml','nd-shortcodes').'</a>
     601                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">* '.esc_html__('If your server blocks the download of the file, get it from this path','nd-shortcodes').' : <u>'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.xml').'</u></p>
     602                      </div>
     603                    </div>
     604
     605
     606                    <div class="nd_options_section nd_options_height_1 nd_options_background_color_E7E7E7 nd_options_margin_top_10 nd_options_margin_bottom_10"></div>
     607
     608
     609                    <div class="nd_options_section">
     610                      <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     611                        <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('2 - Import the Style','nd-shortcodes').'</h2>
     612                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10 nd_options_margin_bottom_15">'.esc_html__('Download the Style.zip by clicking on the button below, save the file on your desktop and then upload the file Style.zip on Elementor Import Tool','nd-shortcodes').' <a target="_blank" href="'.admin_url().'admin.php?page=elementor-app#/import">'.esc_html__('here','nd-shortcodes').'</a></p>
     613
     614
     615                        <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/style.zip').'" download >'.esc_html__('Donwload Style.zip','nd-shortcodes').'</a>
     616                        <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">* '.esc_html__('If your server blocks the download of the file, get it from this path','nd-shortcodes').' : <u>'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/style.zip').'</u></p>
     617
     618                      </div>
     619                    </div>
     620
     621
     622                    <div class="nd_options_section nd_options_height_1 nd_options_background_color_E7E7E7 nd_options_margin_top_10 nd_options_margin_bottom_10"></div>
     623
     624
     625                    <div class="nd_options_section">
     626                      <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     627                       
     628                        <form action="'.esc_url(admin_url('themes.php')).'" method="get">
     629                          <input type="hidden" name="page" value="nicdark-welcome-theme-page">
     630                          <input type="hidden" name="step" value="4">
     631                          <input class="button button-primary" type="submit" value="'.esc_html__('Go to the last Step ','nd-shortcodes').'*">
     632                        </form>
     633
     634                        <p>* '.esc_html__('Mandatory step to import some important options of the chosen demo','nd-shortcodes').'</p>
     635
     636                      </div>
     637                    </div>'
     638                    ;
    577639                 
     640                  }
     641
    578642              }
    579643
Note: See TracChangeset for help on using the changeset viewer.