Plugin Directory

Changeset 2883780


Ignore:
Timestamp:
03/20/2023 07:06:41 PM (3 years ago)
Author:
nicdark
Message:

edit files for dev and latest version

Location:
nd-shortcodes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • nd-shortcodes/tags/6.7/css/admin-style.css

    r2147048 r2883780  
    2525.nd_options_background_color_ffffff { background-color: #ffffff; }
    2626.nd_options_background_color_E7E7E7 { background-color: #E7E7E7; }
     27.nd_options_background_color_2271b1 { background-color: #2271b1; }
    2728
    2829/*border*/
     
    4647/*padding*/
    4748.nd_options_padding_20 { padding: 20px; }
     49.nd_options_padding_8_20 { padding: 8px 20px; }
    4850.nd_options_padding_left_20 { padding-left: 20px; }
    4951.nd_options_padding_right_20 { padding-right: 20px; }
     
    105107/*display*/
    106108.nd_options_display_inline_block { display: inline-block; }
     109.nd_options_display_block { display: block; }
    107110
    108111/*cursor*/
     
    112115/*text-decoration*/
    113116.nd_options_text_decoration_initial { text-decoration: initial; }
     117.nd_options_text_decoration_none { text-decoration: none; }
    114118
    115119
     120/*font-size*/
     121.nd_options_font_size_14 { font-size: 14px; }
     122
  • nd-shortcodes/tags/6.7/inc/settings/admin-style.css

    r2185647 r2883780  
    2525.nd_options_background_color_ffffff { background-color: #ffffff; }
    2626.nd_options_background_color_E7E7E7 { background-color: #E7E7E7; }
     27.nd_options_background_color_2271b1 { background-color: #2271b1; }
    2728
    2829/*border*/
     
    3435/*box-shadow*/
    3536.nd_options_box_shadow_0_1_1_000_04 { box-shadow: 0 1px 1px rgba(0,0,0,.04); }
     37.nd_options_box_shadow_0_0_30_000_10 { box-shadow: 0px 0px 30px rgb(0 0 0 / 10%); }
    3638
    3739/*color*/
     
    4244.nd_options_color_23282d { color: #23282d; }
    4345.nd_options_color_23282d_hover:hover { color: #23282d; }
     46.nd_options_color_ffffff_hover:hover { color: #ffffff; }
     47.nd_options_color_d63638 { color: #d63638; }
     48.nd_options_color_00a32a { color: #00a32a; }
     49
    4450
    4551
    4652/*padding*/
     53.nd_options_padding_0 { padding: 0px; }
    4754.nd_options_padding_20 { padding: 20px; }
     55.nd_options_padding_8_20 { padding: 8px 20px; }
    4856.nd_options_padding_15 { padding: 15px; }
    4957.nd_options_padding_15_20 { padding: 15px 20px; }
     
    5159.nd_options_padding_right_20 { padding-right: 20px; }
    5260.nd_options_padding_left_2 { padding-left: 2px; }
     61.nd_options_padding_left_20 { padding-left: 20px; }
    5362
    5463/*margin*/
     
    108117/*display*/
    109118.nd_options_display_inline_block { display: inline-block; }
     119.nd_options_display_block { display: block; }
    110120
    111121/*cursor*/
     
    115125/*text-decoration*/
    116126.nd_options_text_decoration_initial { text-decoration: initial; }
     127.nd_options_text_decoration_none { text-decoration: none; }
     128
     129/*font-size*/
     130.nd_options_font_size_14 { font-size: 14px; }
     131
     132/*font-weight*/
     133.nd_options_font_weight_normal { font-weight: normal; }
    117134
    118135
  • nd-shortcodes/tags/6.7/inc/settings/import-elementor/index.php

    r2879732 r2883780  
    99 
    1010  $nd_options_demo = '';
    11   $nd_options_demo = $_GET['demo'];
     11  $nd_options_demo = sanitize_text_field($_GET['demo']);
    1212
    1313  $nd_options_step = '';
    14   $nd_options_step = $_GET['step'];
     14  $nd_options_step = sanitize_text_field($_GET['step']);
    1515 
    1616
    17 
    1817 if ( $nd_options_demo != '' ) {
    1918
     
    2120  $nd_options_demo_nav_2 .= '
    2221
    23   <!--3-->
     22
    2423  <style>
    2524  .nicdark_demo_navigation .nicdark_import_demo_nav { display:none !important; }
     
    2928  </style>
    3029
    31   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">1 - Install Required Plugins</a></li>
    32   <a href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'" style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">2 - Choose the Demo</a></li>
    33   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block; background-color:#2271b1;">3 - Import Content and Style</a></li>
    34   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">4 - Enjoy your Theme</a></li>
    35   <!--3-->
     30  <li class="nd_options_padding_0 nd_options_margin_0">
     31    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     32      '.esc_html__('1 - Install Required Plugins','nd-shortcodes').'
     33    </a>
     34  </li>
     35  <li class="nd_options_padding_0 nd_options_margin_0">
     36    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover" href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'">
     37      '.esc_html__('2 - Choose the Demo','nd-shortcodes').'
     38    </a>
     39  </li>
     40  <li class="nd_options_padding_0 nd_options_margin_0">
     41    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover nd_options_background_color_2271b1">
     42      '.esc_html__('3 - Import Content and Style','nd-shortcodes').'
     43    </a>
     44  </li>
     45  <li class="nd_options_padding_0 nd_options_margin_0">
     46    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     47      '.esc_html__('4 - Enjoy your Theme','nd-shortcodes').'
     48    </a>
     49  </li>
     50
    3651
    3752  ';
     
    4257  $nd_options_demo_nav_2 .= '
    4358
    44   <!--4-->
     59
    4560  <style>
    4661  .nicdark_demo_navigation .nicdark_import_demo_nav { display:none !important; }
     
    5065  </style>
    5166
    52   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">1 - Install Required Plugins</a></li>
    53   <a href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'" style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">2 - Choose the Demo</a></li>
    54   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">3 - Import Content and Style</a></li>
    55   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block; background-color:#2271b1;">4 - Enjoy your Theme</a></li>
    56   <!--4-->
     67  <li class="nd_options_padding_0 nd_options_margin_0">
     68    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     69      '.esc_html__('1 - Install Required Plugins','nd-shortcodes').'
     70    </a>
     71  </li>
     72  <li class="nd_options_padding_0 nd_options_margin_0">
     73    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover" href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'">
     74      '.esc_html__('2 - Choose the Demo','nd-shortcodes').'
     75    </a>
     76  </li>
     77  <li class="nd_options_padding_0 nd_options_margin_0">
     78    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     79      '.esc_html__('3 - Import Content and Style','nd-shortcodes').'
     80    </a>
     81  </li>
     82  <li class="nd_options_padding_0 nd_options_margin_0">
     83    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover nd_options_background_color_2271b1">
     84      '.esc_html__('4 - Enjoy your Theme','nd-shortcodes').'
     85    </a>
     86  </li>
     87
    5788
    5889  ';
     
    6495  $nd_options_demo_nav_2 .= '
    6596
    66   <!--2-->
     97
    6798  <style>
    6899  .nicdark_demo_navigation .nicdark_import_demo_nav { display:none !important; }
     
    72103  </style>
    73104
    74   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">1 - Install Required Plugins</a></li>
    75   <a href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'" style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block; background-color:#2271b1;">2 - Choose the Demo</a></li>
    76   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">3 - Import Content and Style</a></li>
    77   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">4 - Enjoy your Theme</a></li>
    78   <!--2-->
     105
     106  <li class="nd_options_padding_0 nd_options_margin_0">
     107    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     108      '.esc_html__('1 - Install Required Plugins','nd-shortcodes').'
     109    </a>
     110  </li>
     111  <li class="nd_options_padding_0 nd_options_margin_0">
     112    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover nd_options_background_color_2271b1" href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'">
     113      '.esc_html__('2 - Choose the Demo','nd-shortcodes').'
     114    </a>
     115  </li>
     116  <li class="nd_options_padding_0 nd_options_margin_0">
     117    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     118      '.esc_html__('3 - Import Content and Style','nd-shortcodes').'
     119    </a>
     120  </li>
     121  <li class="nd_options_padding_0 nd_options_margin_0">
     122    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     123      '.esc_html__('4 - Enjoy your Theme','nd-shortcodes').'
     124    </a>
     125  </li>
     126
    79127
    80128  ';
     
    85133
    86134
    87   echo $nd_options_demo_nav_2;
     135
     136  $nd_options_allowed_html_shortcodes = [
     137    'li' => [
     138      'class' => [],
     139    ],
     140    'a' => [
     141      'class' => [],
     142      'href' => [],
     143    ],
     144    'style' => [],
     145  ];
     146
     147  echo wp_kses( $nd_options_demo_nav_2, $nd_options_allowed_html_shortcodes );
     148
    88149
    89150}
     
    104165
    105166        <!--START 2-->
    106         <div style="padding: 20px; box-sizing: border-box; width: 100%;" class="nicdark_import_demo_2_step">
     167        <div class="nicdark_import_demo_2_step nd_options_width_100_percentage nd_options_box_sizing_border_box nd_options_padding_20">
    107168
    108169
    109170          <div class="nd_options_section">
    110171            <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    111               <h1 class="nd_options_section nd_options_margin_0">Choose the demo</h1>
    112               <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">Chose the demo that you would like to import.</p>
     172              <h1 class="nd_options_section nd_options_margin_0">'.esc_html__('Choose the demo','nd-shortcodes').'</h1>
     173              <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">'.esc_html__('Chose the demo that you would like to import','nd-shortcodes').'</p>
    113174            </div>
    114175          </div>
     
    116177          <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>';
    117178
    118          
    119           $nd_options_xml_demos_url = esc_url( get_template_directory().'/import/demos.xml');
    120          
    121           //start IF
    122           if ( file_exists($nd_options_xml_demos_url) ) {
    123 
    124             $nd_options_import_demos = simplexml_load_file($nd_options_xml_demos_url);
    125 
    126 
    127             $nd_options_step_demo_2 .= '
    128             <div class="nd_options_section">';
    129 
    130             //start foreach
    131             $nd_options_i_d = 1;
    132             foreach( $nd_options_import_demos->demo as $nd_options_import_demo ) {
     179
     180
     181            $nd_options_xml_demos_url = esc_url( get_template_directory().'/import/demos.xml');
     182           
     183            //start IF
     184            if ( file_exists($nd_options_xml_demos_url) ) {
     185
     186             
     187              $nd_options_import_demos = simplexml_load_file($nd_options_xml_demos_url);
     188
    133189
    134190              $nd_options_step_demo_2 .= '
    135 
    136                 <div style="width:33%" class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left">
    137 
    138                   <img style="float:left; width:100%; box-shadow: 0px 0px 30px rgb(0 0 0 / 10%); margin-bottom: 20px;" src="'.$nd_options_import_demo->image.'">
    139 
    140                   <div class="nd_options_section">
    141 
    142                     <form class="nd_options_float_left" action="'.esc_url(admin_url('themes.php')).'" method="get">
    143                       <input type="hidden" name="page" value="nicdark-welcome-theme-page">
    144                       <input type="hidden" name="demo" value="'.$nd_options_i_d.'">
    145                       <input class="button button-primary" type="submit" value="Choose This Demo">
    146                     </form>
    147 
    148                     <a target="blank" class="button nd_options_float_right" href="'.$nd_options_import_demo->url.'">View Demo</a>
    149 
     191              <div class="nd_options_section">';
     192
     193                //start foreach
     194                $nd_options_i_d = 1;
     195                $nd_options_step_demo_2_bakery = '';
     196                foreach( $nd_options_import_demos->demo as $nd_options_import_demo ) {
     197
     198
     199                  if ( $nd_options_import_demo->image == 'bakery' ) {
     200
     201                    $nd_options_step_demo_2_bakery = '
     202
     203                    <div class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left nd_options_width_100_percentage">
     204                      <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_30 nd_options_margin_0">
     205                        <p>'.esc_html__('If you are looking for old demos using WP Bakery Page Builder plugin check','nd-shortcodes').' <a target="_blank" href="'.$nd_options_import_demo->url.'">'.esc_html__('this link','nd-shortcodes').'</a></p>
     206                      </div>
     207                    </div>
     208
     209                    ';
     210
     211                  }else{
     212
     213
     214                    $nd_options_step_demo_2 .= '
     215
     216                    <div class="nd_options_width_33_percentage nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left">
     217
     218                      <img class="nd_options_section nd_options_box_shadow_0_0_30_000_10 nd_options_margin_bottom_20" src="'.$nd_options_import_demo->image.'">
     219
     220                      <div class="nd_options_section">
     221
     222                        <form class="nd_options_float_left" action="'.esc_url(admin_url('themes.php')).'" method="get">
     223                          <input type="hidden" name="page" value="nicdark-welcome-theme-page">
     224                          <input type="hidden" name="demo" value="'.$nd_options_i_d.'">
     225                          <input class="button button-primary" type="submit" value="'.esc_html__('Choose This Demo','nd-shortcodes').'">
     226                        </form>
     227
     228                        <a target="blank" class="button nd_options_float_right" href="'.$nd_options_import_demo->url.'">'.esc_html__('View Demo','nd-shortcodes').'</a>
     229
     230                      </div>
     231
     232                    </div>
     233                    ';
     234
     235
     236                  }
     237
     238
     239
     240
     241               
     242
     243                $nd_options_i_d = $nd_options_i_d + 1;
     244
     245                }
     246                //end foreach
     247
     248              $nd_options_step_demo_2 .= ' '.$nd_options_step_demo_2_bakery.'
     249              </div>';
     250
     251            } else {
     252
     253                $nd_options_step_demo_2 .= '
     254                <div class="nd_options_box_sizing_border_box nd_options_float_left nd_options_width_100_percentage">
     255                  <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_20 nd_options_margin_bottom_10">
     256                  <p><strong>'.esc_html__('Access denied to demos.xml file !','nd-shortcodes').'</strong></p>
     257                  <p>'.esc_html__('Your server permissions denies access to the demos.xml file, contact your hosting provider to solve it','nd-shortcodes').'</p>
     258                  <a target="blank" href="https://documentations.nicdark.com/themes/your-server-permission-denied-access-to-demo-xml/">'.esc_html__('Check the article','nd-shortcodes').'</p></a>
    150259                  </div>
    151                  
    152                 </div>
    153               ';
    154 
    155               $nd_options_i_d = $nd_options_i_d + 1;
     260                </div>';
    156261
    157262            }
    158             //end foreach
    159 
    160             $nd_options_step_demo_2 .= '
    161             </div>';
    162 
    163           } else {
    164 
    165             $nd_options_step_demo_2 .= 'your server permissions that denies access to the import.xml file, contact your hosting provider to solve it';
    166 
    167           }
    168           //END IF
     263            //END IF
     264
     265
    169266
    170267        $nd_options_step_demo_2 .= '
     
    172269        <!--END 2-->';
    173270
    174         echo $nd_options_step_demo_2;
     271
     272
     273        $nd_options_allowed_html_shortcodes = [
     274          'div' => [
     275            'class' => [],
     276          ],
     277
     278          'h1' => [ 
     279            'class' => [],
     280          ],
     281
     282          'p' => [ 
     283            'class' => [],
     284          ],
     285
     286          'img' => [
     287            'class' => [],
     288            'src' => [],
     289          ],
     290
     291          'form' => [
     292            'class' => [],
     293            'action' => [],
     294            'method' => [],
     295          ],
     296
     297          'input' => [
     298            'type' => [],
     299            'name' => [],
     300            'value' => [],
     301            'class' => [],
     302          ],
     303
     304          'a' => [ 
     305            'target' => [],
     306            'class' => [],
     307            'href' => [],
     308          ],
     309        ];
     310
     311        echo wp_kses( $nd_options_step_demo_2, $nd_options_allowed_html_shortcodes );
    175312        //END 2 STEP
    176313
     
    184321
    185322        //START STEP 3
    186         $nd_options_demo = $_GET['demo'];
     323        $nd_options_demo = '';
     324        $nd_options_demo = sanitize_text_field($_GET['demo']);
    187325        if ( $nd_options_demo != '' ) {
    188326
     
    194332          $nd_options_step_demo_3 .= '
    195333          <!--START 3-->
    196           <div style="padding: 20px; box-sizing: border-box; width: 100%;" class="nicdark_import_demo_3_step">
     334          <div class="nicdark_import_demo_3_step nd_options_box_sizing_border_box nd_options_width_100_percentage nd_options_padding_20">
    197335
    198336
    199337            <div class="nd_options_section">
    200338              <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    201                 <h1 class="nd_options_section nd_options_margin_0">Import Content & Style</h1>
    202                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">Follow the two simple steps below to import content and style.</p>
    203               </div>
    204             </div>
    205 
    206             <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>
    207 
    208 
    209 
    210             <div class="nd_options_section">
    211               <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    212                 <h2 class="nd_options_section nd_options_margin_0">1 - Import the Content</h2>
    213                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">Download the Content.xml by clicking on the button beside, save the file on your desktop and then upload the file Content.xml on WordPress Importer <a target="_blank" href="'.admin_url().'admin.php?import=wordpress">here</a></p>
     339                <h1 class="nd_options_section nd_options_margin_0">'.esc_html__('Import Content & Style','nd-shortcodes').'</h1>
     340                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">'.esc_html__('Follow the two simple steps below to import content and style','nd-shortcodes').'.</p>
     341              </div>
     342            </div>
     343
     344            <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>';
     345
     346
     347
     348
     349            //START check if one setting is ok
     350            function nd_options_is_server_setting_ok($nd_options_server_setting_opt,$nd_options_server_setting){
     351
     352              $nd_options_my_server_setting = ini_get($nd_options_server_setting);
     353
     354              $nd_options_setting_with_m = strpos($nd_options_server_setting_opt,'M');
     355              if ($nd_options_setting_with_m !== false) {
     356                $nd_options_my_server_setting = wp_convert_hr_to_bytes($nd_options_my_server_setting);
     357                $nd_options_server_setting_opt = wp_convert_hr_to_bytes($nd_options_server_setting_opt);   
     358              }
     359
     360              if ( $nd_options_my_server_setting < $nd_options_server_setting_opt ) {
     361                return 0;
     362              }else{
     363                return 1;
     364              }
     365
     366
     367            }
     368            //END check if one setting is ok
     369
     370
     371            //START check if all settings are ok
     372            function nd_options_are_server_settings_ok() {
     373
     374
     375              //array
     376              $nd_options_all_server_settings = array(
     377                  "memory_limit","256M",
     378                  "post_max_size","256M",
     379                  "upload_max_filesize","256M",
     380                  "max_execution_time","300",
     381                  "max_input_vars","5000",
     382              );
     383
     384
     385              //start for
     386              $nd_options_i_2 = 1;
     387              for ($nd_options_i = 0; $nd_options_i <= count($nd_options_all_server_settings); $nd_options_i++) {
     388
     389
     390                  if ( $nd_options_i_2 <= count($nd_options_all_server_settings)/2 ) {
     391
     392                    if($nd_options_i % 2 == 0){
     393                     
     394                      if ( nd_options_is_server_setting_ok($nd_options_all_server_settings[$nd_options_i+1],$nd_options_all_server_settings[$nd_options_i]) == 0 ) { return 0; }
     395
     396                      $nd_options_i_2 = $nd_options_i_2 + 1;
     397
     398                    }
     399
     400                  }
     401
     402
     403              }
     404              //end for
     405
     406
     407              return 1;
     408
     409           
     410            }
     411            //END check if all settings are ok
     412
     413
     414
     415            if ( nd_options_are_server_settings_ok() == 0 ) {
     416
     417              $nd_options_step_demo_3 .= '
     418              <!--plugins notice-->
     419              <div class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left nd_options_width_100_percentage">
     420                <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_30 nd_options_margin_0">
     421                  <p>'.esc_html__('Some of your server settings are not optimized and you may have some problems while importing','nd-shortcodes').' <u>'.esc_html__('check at the end of this page your server settings','nd-shortcodes').'</u></p>
     422                </div>
     423              </div>
     424              <!--plugins notice-->';
     425
     426            }
     427            //END CHECK SERVER SETTINGS
     428           
     429
     430
     431            $nd_options_step_demo_3 .= '
     432            <div class="nd_options_section">
     433              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     434                <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('1 - Import the Content','nd-shortcodes').'</h2>
     435                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Download the Content.xml by clicking on the button beside, 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>
    214436              </div>
    215437              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     
    217439                <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    218440                 
    219                     <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.xml').'" download>Donwload Content.xml</a>
     441                    <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>
    220442                 
    221443                </div>
     
    230452            <div class="nd_options_section">
    231453              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    232                 <h2 class="nd_options_section nd_options_margin_0">2 - Import the Style</h2>
    233                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">Download the Style.zip by clicking on the button beside, save the file on your desktop and then upload the file Style.zip on Elementor Import Tool <a target="_blank" href="'.admin_url().'admin.php?page=elementor-app#/import">here</a></p>
     454                <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('2 - Import the Style','nd-shortcodes').'</h2>
     455                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Download the Style.zip by clicking on the button beside, 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>
    234456              </div>
    235457              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     
    237459                <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    238460                 
    239                     <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/style.zip').'" download >Donwload Style.zip</a>
     461                    <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>
    240462                 
    241463                </div>
     
    254476                  <input type="hidden" name="page" value="nicdark-welcome-theme-page">
    255477                  <input type="hidden" name="step" value="4">
    256                   <input class="button button-primary" type="submit" value="Go to the last Step">
     478                  <input class="button button-primary" type="submit" value="'.esc_html__('Go to the last Step','nd-shortcodes').'">
    257479                </form>
    258480
     
    263485            <div class="nd_options_section">
    264486              <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    265                 <img style="float:left; width:100%; box-shadow: 0px 0px 30px rgb(0 0 0 / 10%);" src="'.$nd_options_demo_img.'">
    266               </div>
    267             </div>
     487                <img class="nd_options_section nd_options_box_shadow_0_0_30_000_10" src="'.$nd_options_demo_img.'">
     488              </div>
     489            </div>';
     490
    268491
    269492
    270493           
    271494
    272 
     495            //START show server settings only if there are some incorrect settings
     496            if ( nd_options_are_server_settings_ok() == 0 ) {
     497
     498
     499
     500                //memory_limit
     501                $nd_options_memory_limit_class = '';
     502                $nd_options_memory_limit = wp_convert_hr_to_bytes(ini_get('memory_limit'));
     503                $nd_options_memory_limit_opt = wp_convert_hr_to_bytes('256M');
     504                    if ( $nd_options_memory_limit < $nd_options_memory_limit_opt ) {
     505
     506
     507                        $nd_options_memory_limit_class = 'nd_options_color_d63638';
     508                        $nd_options_memory_limit_content .= '<p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Your current value is insufficient. Please adjust the value to','nd-shortcodes').' <span class="nd_options_color_00a32a">'.size_format($nd_options_memory_limit_opt).'</span> '.esc_html__('in order to meet WordPress requirements.','nd-shortcodes').'</p>';
     509
     510                    }
     511
     512
     513                    //post_max_size
     514                    $nd_options_post_max_size_class = "";
     515                    $nd_options_post_max_size = wp_convert_hr_to_bytes(ini_get('post_max_size'));
     516                    $nd_options_post_max_size_opt = wp_convert_hr_to_bytes('256M');
     517                    if ( $nd_options_post_max_size < $nd_options_post_max_size_opt ) {
     518
     519                        $nd_options_post_max_size_class = "nd_options_color_d63638";
     520                        $nd_options_post_max_size_content .= '<p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Your current value is insufficient. Please adjust the value to','nd-shortcodes').' <span class="nd_options_color_00a32a">'.size_format($nd_options_post_max_size_opt).'</span> '.esc_html__('in order to meet WordPress requirements.','nd-shortcodes').'</p>';
     521
     522                    }
     523
     524
     525                    //upload_max_filesize
     526                    $nd_options_upload_max_filesize_class = "";
     527                    $nd_options_upload_max_filesize = wp_convert_hr_to_bytes(ini_get('upload_max_filesize'));
     528                    $nd_options_upload_max_filesize_opt = wp_convert_hr_to_bytes('256M');
     529                    if ( $nd_options_upload_max_filesize < $nd_options_upload_max_filesize_opt ) {
     530
     531                        $nd_options_upload_max_filesize_class = "nd_options_color_d63638";
     532                        $nd_options_upload_max_filesize_content .= '<p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Your current value is insufficient. Please adjust the value to','nd-shortcodes').' <span class="nd_options_color_00a32a">'.size_format($nd_options_upload_max_filesize_opt).'</span> '.esc_html__('in order to meet WordPress requirements.','nd-shortcodes').'</p>';
     533
     534                    }
     535
     536
     537                    //max_execution_time
     538                    $nd_options_max_execution_time_class = "";
     539                    if ( ini_get('max_execution_time') < 300 ) {
     540
     541                        $nd_options_max_execution_time_class = "nd_options_color_d63638";
     542                        $nd_options_max_execution_time_content .= '<p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Your current value is insufficient. Please adjust the value to','nd-shortcodes').' <span class="nd_options_color_00a32a">300</span> '.esc_html__('in order to meet WordPress requirements.','nd-shortcodes').'</p>';
     543
     544                    }
     545
     546
     547
     548                    //max_input_vars
     549                    $nd_options_max_input_vars_class = "";
     550                    if ( ini_get('max_input_vars') < 5000 ) {
     551
     552                        $nd_options_max_input_vars_class = "nd_options_color_d63638";
     553                        $nd_options_max_input_vars_content .= '<p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Your current value is insufficient. Please adjust the value to','nd-shortcodes').' <span class="nd_options_color_00a32a">5000</span> '.esc_html__('in order to meet WordPress requirements.','nd-shortcodes').'</p>';
     554
     555                    }
     556
     557
     558
     559                $nd_options_step_demo_3 .= '
     560                <div id="nd_options_server_requirements" class="nd_options_section nd_options_margin_top_25">
     561                  <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     562                    <h1 class="nd_options_section nd_options_margin_0">'.esc_html__('Server Requirements','nd-shortcodes').'</h1>
     563                    <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">'.esc_html__('Below you can see some settings of your server, your PHP version is','nd-shortcodes').' '.phpversion().'</p>
     564                  </div>
     565                </div>
     566
     567                <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>
     568
     569
     570                <div class="nd_options_section">
     571                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     572                    <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('PHP Memory Limit','nd-shortcodes').' : <span class="'.$nd_options_memory_limit_class.'">'.size_format($nd_options_memory_limit).'</span></h2>
     573                    '.$nd_options_memory_limit_content.'
     574                  </div>
     575                </div>
     576
     577                <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>
     578
     579                <div class="nd_options_section">
     580                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     581                    <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('PHP Post Max Size','nd-shortcodes').' : <span class="'.$nd_options_post_max_size_class.'">'.size_format($nd_options_post_max_size).'</span></h2>
     582                    '.$nd_options_post_max_size_content.'
     583                  </div>
     584                </div>
     585
     586                <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>
     587
     588                <div class="nd_options_section">
     589                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     590                    <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('PHP Max Upload Size','nd-shortcodes').' : <span class="'.$nd_options_upload_max_filesize_class.'">'.size_format($nd_options_upload_max_filesize).'</span></h2>
     591                    '.$nd_options_upload_max_filesize_content.'
     592                  </div>
     593                </div>
     594
     595                <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>
     596
     597                <div class="nd_options_section">
     598                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     599                    <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('PHP Time Limit','nd-shortcodes').' : <span class="'.$nd_options_max_execution_time_class.'">'.ini_get('max_execution_time').'</span></h2>
     600                    '.$nd_options_max_execution_time_content.'
     601                  </div>
     602                </div>
     603
     604                <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>
     605
     606                <div class="nd_options_section">
     607                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     608                    <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('PHP Max Input Vars','nd-shortcodes').' : <span class="'.$nd_options_max_input_vars_class.'">'.ini_get('max_input_vars').'</span></h2>
     609                    '.$nd_options_max_input_vars_content.'
     610                  </div>
     611                </div>
     612
     613                <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>
     614
     615                <div class="nd_options_section nd_options_margin_bottom_20">
     616                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     617                    <a target="blank" class="button" href="https://documentations.nicdark.com/themes/server-settings-requirmentes/">'.esc_html__('Check the Article','nd-shortcodes').'</a>
     618                  </div>
     619                </div>';
     620
     621
     622            }
     623            //END show server settings only if there are some incorrect settings
     624
     625
     626          $nd_options_step_demo_3 .= '
    273627          </div>
    274628          <!--END 3-->';
    275629
    276           echo $nd_options_step_demo_3; 
     630
     631        $nd_options_allowed_html_shortcodes = [
     632            'div' => [
     633              'class' => [],
     634              'id' => [],
     635            ],
     636
     637            'h1' => [
     638              'class' => [],
     639            ],
     640
     641            'p' => [
     642              'class' => [],
     643            ],
     644
     645            'u' => [
     646              'class' => [],
     647            ],
     648
     649            'span' => [
     650              'class' => [],
     651            ],
     652
     653            'h2' => [
     654              'class' => [],
     655            ],
     656
     657            'a' => [
     658              'target' => [],
     659              'href' => [],
     660              'class' => [],
     661              'download' => [],
     662            ],
     663                             
     664            'form' => [
     665             'action' => [],
     666              'method' => [],
     667            ],
     668
     669            'input' => [
     670              'type' => [],
     671              'name' => [],
     672              'value' => [],
     673              'class' => [],
     674            ],
     675
     676            'img' => [
     677              'class' => [],
     678              'src' => [],
     679            ], 
     680        ];
     681
     682        echo wp_kses( $nd_options_step_demo_3, $nd_options_allowed_html_shortcodes );
     683
    277684
    278685        }
     
    285692
    286693        //START STEP 4
    287         $nd_options_step = $_GET['step'];
     694        $nd_options_step = '';
     695        $nd_options_step = sanitize_text_field($_GET['step']);
    288696        if ( $nd_options_step == 4 ) {
    289697
     
    291699          $nd_options_step_demo_4 .= '
    292700          <!--START 4-->
    293           <div style="padding: 20px; box-sizing: border-box; width: 100%;" class="nicdark_import_demo_4_step">
     701          <div class="nicdark_import_demo_4_step nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box">
    294702
    295703            <div class="nd_options_section">
    296704              <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    297                 <h1 class="nd_options_section nd_options_margin_0">Enjoy your Theme</h1>
    298                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">The import process can cause some problems since each server can have very limited restrictions for this reason below we list the most frequent problems that you can solve in simple steps</p>
     705                <h1 class="nd_options_section nd_options_margin_0">'.esc_html__('Enjoy your Theme','nd-shortcodes').'</h1>
     706                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">'.esc_html__('The import process can cause some problems since each server can have very limited restrictions for this reason below we list the most frequent problems that you can solve in simple steps','nd-shortcodes').'</p>
    299707              </div>
    300708            </div>
     
    305713            <div class="nd_options_section">
    306714              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    307                 <h2 class="nd_options_section nd_options_margin_0">Disable blue fonts colors</h2>
    308                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">Sometimes, after installing the theme, the site fonts may appear blue and a different font from the demo.</p>
     715                <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('Disable blue fonts colors','nd-shortcodes').'</h2>
     716                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Sometimes, after installing the theme, the site fonts may appear blue and a different font from the demo.','nd-shortcodes').'</p>
    309717              </div>
    310718              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     
    312720                <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    313721                 
    314                     <a class="button" target="blank" href="https://documentations.nicdark.com/themes/disable-blue-fonts-colors/">Check the Article</a>
     722                    <a class="button" target="blank" href="https://documentations.nicdark.com/themes/disable-blue-fonts-colors/">'.esc_html__('Check the Article','nd-shortcodes').'</a>
    315723                 
    316724                </div>
     
    322730            <div class="nd_options_section">
    323731              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    324                 <h2 class="nd_options_section nd_options_margin_0">Problem on Header and Footer</h2>
    325                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">If you don’t see the header and footer correctly after importing, there’s nothing to worry about, since the header and footer are created with the page builder, check the article for understand how to fix it.</p>
     732                <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('Problem on Header and Footer','nd-shortcodes').'</h2>
     733                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('If you don’t see the header and footer correctly after importing, there’s nothing to worry about, since the header and footer are created with the page builder, check the article for understand how to fix it.','nd-shortcodes').'</p>
    326734              </div>
    327735              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     
    329737                <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    330738                 
    331                     <a class="button" target="blank" href="https://documentations.nicdark.com/themes/i-dont-see-header-and-footer-after-import-demo/">Check the Article</a>
     739                    <a class="button" target="blank" href="https://documentations.nicdark.com/themes/i-dont-see-header-and-footer-after-import-demo/">'.esc_html__('Check the Article','nd-shortcodes').'</a>
    332740                 
    333741                </div>
     
    339747            <div class="nd_options_section">
    340748              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    341                 <h2 class="nd_options_section nd_options_margin_0">Set your home page as front page</h2>
    342                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">Set your home page as front page it’s very simple, this is a WordPress feature and through our article you can understand how to set it.</p>
     749                <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('Set your home page as front page','nd-shortcodes').'</h2>
     750                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Set your home page as front page it’s very simple, this is a WordPress feature and through our article you can understand how to set it.','nd-shortcodes').'</p>
    343751              </div>
    344752              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     
    346754                <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    347755                 
    348                     <a class="button" target="blank" href="https://documentations.nicdark.com/themes/set-your-home-page-as-front-page/">Check the Article</a>
     756                    <a class="button" target="blank" href="https://documentations.nicdark.com/themes/set-your-home-page-as-front-page/">'.esc_html__('Check the Article','nd-shortcodes').'</a>
    349757                 
    350758                </div>
     
    359767            <div class="nd_options_section">
    360768              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    361                 <h2 class="nd_options_section nd_options_margin_0">Elementor PRO for FREE</h2>
    362                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">Redeem your Elementor Pro license by filling out the form at the following address for have Elementor connected to your domain</p>
    363               </div>
    364               <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    365                
    366                 <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    367                  
    368                     <a class="button button-primary" target="blank" href="https://www.nicdark.com/free-elementor-pro/">Fill The Form</a>
    369                  
    370                 </div>
    371 
     769                <h1 class="nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Elementor PRO for FREE','nd-shortcodes').' *<span class="nd_options_color_666666 nd_options_padding_left_20 nd_options_font_weight_normal nd_options_font_size_14">( '.esc_html__('only for themeforest.net buyers','nd-shortcodes').' )</span></h1>
     770                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20 nd_options_margin_bottom_20">'.esc_html__('Redeem your Elementor Pro license by filling out the form at the following address for have Elementor PRO connected to your domain. * You can use Elementor PRO for free for 12 months, you will get all updates for free. This is our gift to all our themeforest.net customers.','nd-shortcodes').'</p>
     771                <a class="button button-primary " target="blank" href="https://www.nicdark.com/free-elementor-pro/">'.esc_html__('Fill The Form','nd-shortcodes').'</a>
    372772              </div>
    373773            </div>
     
    376776          </div>
    377777          <!--END 4-->';
    378 
    379           echo $nd_options_step_demo_4; 
     778 
     779
     780        $nd_options_allowed_html_shortcodes = [
     781
     782            'div' => [
     783              'class' => [],
     784            ],
     785
     786            'h1' => [
     787              'class' => [],
     788            ],
     789
     790            'p' => [ 
     791              'class' => [],
     792            ],
     793
     794            'span' => [ 
     795              'class' => [],
     796            ],
     797                         
     798            'h2' => [ 
     799              'class' => [],
     800            ],
     801
     802            'a' => [ 
     803              'class' => [],
     804              'target' => [],
     805              'href' => [],
     806            ],
     807
     808        ];
     809
     810        echo wp_kses( $nd_options_step_demo_4, $nd_options_allowed_html_shortcodes );
    380811
    381812        }
  • nd-shortcodes/trunk/css/admin-style.css

    r2147048 r2883780  
    2525.nd_options_background_color_ffffff { background-color: #ffffff; }
    2626.nd_options_background_color_E7E7E7 { background-color: #E7E7E7; }
     27.nd_options_background_color_2271b1 { background-color: #2271b1; }
    2728
    2829/*border*/
     
    4647/*padding*/
    4748.nd_options_padding_20 { padding: 20px; }
     49.nd_options_padding_8_20 { padding: 8px 20px; }
    4850.nd_options_padding_left_20 { padding-left: 20px; }
    4951.nd_options_padding_right_20 { padding-right: 20px; }
     
    105107/*display*/
    106108.nd_options_display_inline_block { display: inline-block; }
     109.nd_options_display_block { display: block; }
    107110
    108111/*cursor*/
     
    112115/*text-decoration*/
    113116.nd_options_text_decoration_initial { text-decoration: initial; }
     117.nd_options_text_decoration_none { text-decoration: none; }
    114118
    115119
     120/*font-size*/
     121.nd_options_font_size_14 { font-size: 14px; }
     122
  • nd-shortcodes/trunk/inc/settings/admin-style.css

    r2185647 r2883780  
    2525.nd_options_background_color_ffffff { background-color: #ffffff; }
    2626.nd_options_background_color_E7E7E7 { background-color: #E7E7E7; }
     27.nd_options_background_color_2271b1 { background-color: #2271b1; }
    2728
    2829/*border*/
     
    3435/*box-shadow*/
    3536.nd_options_box_shadow_0_1_1_000_04 { box-shadow: 0 1px 1px rgba(0,0,0,.04); }
     37.nd_options_box_shadow_0_0_30_000_10 { box-shadow: 0px 0px 30px rgb(0 0 0 / 10%); }
    3638
    3739/*color*/
     
    4244.nd_options_color_23282d { color: #23282d; }
    4345.nd_options_color_23282d_hover:hover { color: #23282d; }
     46.nd_options_color_ffffff_hover:hover { color: #ffffff; }
     47.nd_options_color_d63638 { color: #d63638; }
     48.nd_options_color_00a32a { color: #00a32a; }
     49
    4450
    4551
    4652/*padding*/
     53.nd_options_padding_0 { padding: 0px; }
    4754.nd_options_padding_20 { padding: 20px; }
     55.nd_options_padding_8_20 { padding: 8px 20px; }
    4856.nd_options_padding_15 { padding: 15px; }
    4957.nd_options_padding_15_20 { padding: 15px 20px; }
     
    5159.nd_options_padding_right_20 { padding-right: 20px; }
    5260.nd_options_padding_left_2 { padding-left: 2px; }
     61.nd_options_padding_left_20 { padding-left: 20px; }
    5362
    5463/*margin*/
     
    108117/*display*/
    109118.nd_options_display_inline_block { display: inline-block; }
     119.nd_options_display_block { display: block; }
    110120
    111121/*cursor*/
     
    115125/*text-decoration*/
    116126.nd_options_text_decoration_initial { text-decoration: initial; }
     127.nd_options_text_decoration_none { text-decoration: none; }
     128
     129/*font-size*/
     130.nd_options_font_size_14 { font-size: 14px; }
     131
     132/*font-weight*/
     133.nd_options_font_weight_normal { font-weight: normal; }
    117134
    118135
  • nd-shortcodes/trunk/inc/settings/import-elementor/index.php

    r2879732 r2883780  
    99 
    1010  $nd_options_demo = '';
    11   $nd_options_demo = $_GET['demo'];
     11  $nd_options_demo = sanitize_text_field($_GET['demo']);
    1212
    1313  $nd_options_step = '';
    14   $nd_options_step = $_GET['step'];
     14  $nd_options_step = sanitize_text_field($_GET['step']);
    1515 
    1616
    17 
    1817 if ( $nd_options_demo != '' ) {
    1918
     
    2120  $nd_options_demo_nav_2 .= '
    2221
    23   <!--3-->
     22
    2423  <style>
    2524  .nicdark_demo_navigation .nicdark_import_demo_nav { display:none !important; }
     
    2928  </style>
    3029
    31   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">1 - Install Required Plugins</a></li>
    32   <a href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'" style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">2 - Choose the Demo</a></li>
    33   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block; background-color:#2271b1;">3 - Import Content and Style</a></li>
    34   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">4 - Enjoy your Theme</a></li>
    35   <!--3-->
     30  <li class="nd_options_padding_0 nd_options_margin_0">
     31    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     32      '.esc_html__('1 - Install Required Plugins','nd-shortcodes').'
     33    </a>
     34  </li>
     35  <li class="nd_options_padding_0 nd_options_margin_0">
     36    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover" href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'">
     37      '.esc_html__('2 - Choose the Demo','nd-shortcodes').'
     38    </a>
     39  </li>
     40  <li class="nd_options_padding_0 nd_options_margin_0">
     41    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover nd_options_background_color_2271b1">
     42      '.esc_html__('3 - Import Content and Style','nd-shortcodes').'
     43    </a>
     44  </li>
     45  <li class="nd_options_padding_0 nd_options_margin_0">
     46    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     47      '.esc_html__('4 - Enjoy your Theme','nd-shortcodes').'
     48    </a>
     49  </li>
     50
    3651
    3752  ';
     
    4257  $nd_options_demo_nav_2 .= '
    4358
    44   <!--4-->
     59
    4560  <style>
    4661  .nicdark_demo_navigation .nicdark_import_demo_nav { display:none !important; }
     
    5065  </style>
    5166
    52   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">1 - Install Required Plugins</a></li>
    53   <a href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'" style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">2 - Choose the Demo</a></li>
    54   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">3 - Import Content and Style</a></li>
    55   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block; background-color:#2271b1;">4 - Enjoy your Theme</a></li>
    56   <!--4-->
     67  <li class="nd_options_padding_0 nd_options_margin_0">
     68    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     69      '.esc_html__('1 - Install Required Plugins','nd-shortcodes').'
     70    </a>
     71  </li>
     72  <li class="nd_options_padding_0 nd_options_margin_0">
     73    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover" href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'">
     74      '.esc_html__('2 - Choose the Demo','nd-shortcodes').'
     75    </a>
     76  </li>
     77  <li class="nd_options_padding_0 nd_options_margin_0">
     78    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     79      '.esc_html__('3 - Import Content and Style','nd-shortcodes').'
     80    </a>
     81  </li>
     82  <li class="nd_options_padding_0 nd_options_margin_0">
     83    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover nd_options_background_color_2271b1">
     84      '.esc_html__('4 - Enjoy your Theme','nd-shortcodes').'
     85    </a>
     86  </li>
     87
    5788
    5889  ';
     
    6495  $nd_options_demo_nav_2 .= '
    6596
    66   <!--2-->
     97
    6798  <style>
    6899  .nicdark_demo_navigation .nicdark_import_demo_nav { display:none !important; }
     
    72103  </style>
    73104
    74   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">1 - Install Required Plugins</a></li>
    75   <a href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'" style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block; background-color:#2271b1;">2 - Choose the Demo</a></li>
    76   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">3 - Import Content and Style</a></li>
    77   <a style="color: #fff; text-decoration: none; font-size: 14px; padding: 8px 20px; display: block;">4 - Enjoy your Theme</a></li>
    78   <!--2-->
     105
     106  <li class="nd_options_padding_0 nd_options_margin_0">
     107    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     108      '.esc_html__('1 - Install Required Plugins','nd-shortcodes').'
     109    </a>
     110  </li>
     111  <li class="nd_options_padding_0 nd_options_margin_0">
     112    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover nd_options_background_color_2271b1" href="'.esc_url(admin_url('themes.php?page=nicdark-welcome-theme-page')).'">
     113      '.esc_html__('2 - Choose the Demo','nd-shortcodes').'
     114    </a>
     115  </li>
     116  <li class="nd_options_padding_0 nd_options_margin_0">
     117    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     118      '.esc_html__('3 - Import Content and Style','nd-shortcodes').'
     119    </a>
     120  </li>
     121  <li class="nd_options_padding_0 nd_options_margin_0">
     122    <a class="nd_options_color_ffffff nd_options_text_decoration_none nd_options_font_size_14 nd_options_display_block nd_options_padding_8_20 nd_options_color_ffffff_hover">
     123      '.esc_html__('4 - Enjoy your Theme','nd-shortcodes').'
     124    </a>
     125  </li>
     126
    79127
    80128  ';
     
    85133
    86134
    87   echo $nd_options_demo_nav_2;
     135
     136  $nd_options_allowed_html_shortcodes = [
     137    'li' => [
     138      'class' => [],
     139    ],
     140    'a' => [
     141      'class' => [],
     142      'href' => [],
     143    ],
     144    'style' => [],
     145  ];
     146
     147  echo wp_kses( $nd_options_demo_nav_2, $nd_options_allowed_html_shortcodes );
     148
    88149
    89150}
     
    104165
    105166        <!--START 2-->
    106         <div style="padding: 20px; box-sizing: border-box; width: 100%;" class="nicdark_import_demo_2_step">
     167        <div class="nicdark_import_demo_2_step nd_options_width_100_percentage nd_options_box_sizing_border_box nd_options_padding_20">
    107168
    108169
    109170          <div class="nd_options_section">
    110171            <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    111               <h1 class="nd_options_section nd_options_margin_0">Choose the demo</h1>
    112               <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">Chose the demo that you would like to import.</p>
     172              <h1 class="nd_options_section nd_options_margin_0">'.esc_html__('Choose the demo','nd-shortcodes').'</h1>
     173              <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">'.esc_html__('Chose the demo that you would like to import','nd-shortcodes').'</p>
    113174            </div>
    114175          </div>
     
    116177          <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>';
    117178
    118          
    119           $nd_options_xml_demos_url = esc_url( get_template_directory().'/import/demos.xml');
    120          
    121           //start IF
    122           if ( file_exists($nd_options_xml_demos_url) ) {
    123 
    124             $nd_options_import_demos = simplexml_load_file($nd_options_xml_demos_url);
    125 
    126 
    127             $nd_options_step_demo_2 .= '
    128             <div class="nd_options_section">';
    129 
    130             //start foreach
    131             $nd_options_i_d = 1;
    132             foreach( $nd_options_import_demos->demo as $nd_options_import_demo ) {
     179
     180
     181            $nd_options_xml_demos_url = esc_url( get_template_directory().'/import/demos.xml');
     182           
     183            //start IF
     184            if ( file_exists($nd_options_xml_demos_url) ) {
     185
     186             
     187              $nd_options_import_demos = simplexml_load_file($nd_options_xml_demos_url);
     188
    133189
    134190              $nd_options_step_demo_2 .= '
    135 
    136                 <div style="width:33%" class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left">
    137 
    138                   <img style="float:left; width:100%; box-shadow: 0px 0px 30px rgb(0 0 0 / 10%); margin-bottom: 20px;" src="'.$nd_options_import_demo->image.'">
    139 
    140                   <div class="nd_options_section">
    141 
    142                     <form class="nd_options_float_left" action="'.esc_url(admin_url('themes.php')).'" method="get">
    143                       <input type="hidden" name="page" value="nicdark-welcome-theme-page">
    144                       <input type="hidden" name="demo" value="'.$nd_options_i_d.'">
    145                       <input class="button button-primary" type="submit" value="Choose This Demo">
    146                     </form>
    147 
    148                     <a target="blank" class="button nd_options_float_right" href="'.$nd_options_import_demo->url.'">View Demo</a>
    149 
     191              <div class="nd_options_section">';
     192
     193                //start foreach
     194                $nd_options_i_d = 1;
     195                $nd_options_step_demo_2_bakery = '';
     196                foreach( $nd_options_import_demos->demo as $nd_options_import_demo ) {
     197
     198
     199                  if ( $nd_options_import_demo->image == 'bakery' ) {
     200
     201                    $nd_options_step_demo_2_bakery = '
     202
     203                    <div class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left nd_options_width_100_percentage">
     204                      <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_30 nd_options_margin_0">
     205                        <p>'.esc_html__('If you are looking for old demos using WP Bakery Page Builder plugin check','nd-shortcodes').' <a target="_blank" href="'.$nd_options_import_demo->url.'">'.esc_html__('this link','nd-shortcodes').'</a></p>
     206                      </div>
     207                    </div>
     208
     209                    ';
     210
     211                  }else{
     212
     213
     214                    $nd_options_step_demo_2 .= '
     215
     216                    <div class="nd_options_width_33_percentage nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left">
     217
     218                      <img class="nd_options_section nd_options_box_shadow_0_0_30_000_10 nd_options_margin_bottom_20" src="'.$nd_options_import_demo->image.'">
     219
     220                      <div class="nd_options_section">
     221
     222                        <form class="nd_options_float_left" action="'.esc_url(admin_url('themes.php')).'" method="get">
     223                          <input type="hidden" name="page" value="nicdark-welcome-theme-page">
     224                          <input type="hidden" name="demo" value="'.$nd_options_i_d.'">
     225                          <input class="button button-primary" type="submit" value="'.esc_html__('Choose This Demo','nd-shortcodes').'">
     226                        </form>
     227
     228                        <a target="blank" class="button nd_options_float_right" href="'.$nd_options_import_demo->url.'">'.esc_html__('View Demo','nd-shortcodes').'</a>
     229
     230                      </div>
     231
     232                    </div>
     233                    ';
     234
     235
     236                  }
     237
     238
     239
     240
     241               
     242
     243                $nd_options_i_d = $nd_options_i_d + 1;
     244
     245                }
     246                //end foreach
     247
     248              $nd_options_step_demo_2 .= ' '.$nd_options_step_demo_2_bakery.'
     249              </div>';
     250
     251            } else {
     252
     253                $nd_options_step_demo_2 .= '
     254                <div class="nd_options_box_sizing_border_box nd_options_float_left nd_options_width_100_percentage">
     255                  <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_20 nd_options_margin_bottom_10">
     256                  <p><strong>'.esc_html__('Access denied to demos.xml file !','nd-shortcodes').'</strong></p>
     257                  <p>'.esc_html__('Your server permissions denies access to the demos.xml file, contact your hosting provider to solve it','nd-shortcodes').'</p>
     258                  <a target="blank" href="https://documentations.nicdark.com/themes/your-server-permission-denied-access-to-demo-xml/">'.esc_html__('Check the article','nd-shortcodes').'</p></a>
    150259                  </div>
    151                  
    152                 </div>
    153               ';
    154 
    155               $nd_options_i_d = $nd_options_i_d + 1;
     260                </div>';
    156261
    157262            }
    158             //end foreach
    159 
    160             $nd_options_step_demo_2 .= '
    161             </div>';
    162 
    163           } else {
    164 
    165             $nd_options_step_demo_2 .= 'your server permissions that denies access to the import.xml file, contact your hosting provider to solve it';
    166 
    167           }
    168           //END IF
     263            //END IF
     264
     265
    169266
    170267        $nd_options_step_demo_2 .= '
     
    172269        <!--END 2-->';
    173270
    174         echo $nd_options_step_demo_2;
     271
     272
     273        $nd_options_allowed_html_shortcodes = [
     274          'div' => [
     275            'class' => [],
     276          ],
     277
     278          'h1' => [ 
     279            'class' => [],
     280          ],
     281
     282          'p' => [ 
     283            'class' => [],
     284          ],
     285
     286          'img' => [
     287            'class' => [],
     288            'src' => [],
     289          ],
     290
     291          'form' => [
     292            'class' => [],
     293            'action' => [],
     294            'method' => [],
     295          ],
     296
     297          'input' => [
     298            'type' => [],
     299            'name' => [],
     300            'value' => [],
     301            'class' => [],
     302          ],
     303
     304          'a' => [ 
     305            'target' => [],
     306            'class' => [],
     307            'href' => [],
     308          ],
     309        ];
     310
     311        echo wp_kses( $nd_options_step_demo_2, $nd_options_allowed_html_shortcodes );
    175312        //END 2 STEP
    176313
     
    184321
    185322        //START STEP 3
    186         $nd_options_demo = $_GET['demo'];
     323        $nd_options_demo = '';
     324        $nd_options_demo = sanitize_text_field($_GET['demo']);
    187325        if ( $nd_options_demo != '' ) {
    188326
     
    194332          $nd_options_step_demo_3 .= '
    195333          <!--START 3-->
    196           <div style="padding: 20px; box-sizing: border-box; width: 100%;" class="nicdark_import_demo_3_step">
     334          <div class="nicdark_import_demo_3_step nd_options_box_sizing_border_box nd_options_width_100_percentage nd_options_padding_20">
    197335
    198336
    199337            <div class="nd_options_section">
    200338              <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    201                 <h1 class="nd_options_section nd_options_margin_0">Import Content & Style</h1>
    202                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">Follow the two simple steps below to import content and style.</p>
    203               </div>
    204             </div>
    205 
    206             <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>
    207 
    208 
    209 
    210             <div class="nd_options_section">
    211               <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    212                 <h2 class="nd_options_section nd_options_margin_0">1 - Import the Content</h2>
    213                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">Download the Content.xml by clicking on the button beside, save the file on your desktop and then upload the file Content.xml on WordPress Importer <a target="_blank" href="'.admin_url().'admin.php?import=wordpress">here</a></p>
     339                <h1 class="nd_options_section nd_options_margin_0">'.esc_html__('Import Content & Style','nd-shortcodes').'</h1>
     340                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">'.esc_html__('Follow the two simple steps below to import content and style','nd-shortcodes').'.</p>
     341              </div>
     342            </div>
     343
     344            <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>';
     345
     346
     347
     348
     349            //START check if one setting is ok
     350            function nd_options_is_server_setting_ok($nd_options_server_setting_opt,$nd_options_server_setting){
     351
     352              $nd_options_my_server_setting = ini_get($nd_options_server_setting);
     353
     354              $nd_options_setting_with_m = strpos($nd_options_server_setting_opt,'M');
     355              if ($nd_options_setting_with_m !== false) {
     356                $nd_options_my_server_setting = wp_convert_hr_to_bytes($nd_options_my_server_setting);
     357                $nd_options_server_setting_opt = wp_convert_hr_to_bytes($nd_options_server_setting_opt);   
     358              }
     359
     360              if ( $nd_options_my_server_setting < $nd_options_server_setting_opt ) {
     361                return 0;
     362              }else{
     363                return 1;
     364              }
     365
     366
     367            }
     368            //END check if one setting is ok
     369
     370
     371            //START check if all settings are ok
     372            function nd_options_are_server_settings_ok() {
     373
     374
     375              //array
     376              $nd_options_all_server_settings = array(
     377                  "memory_limit","256M",
     378                  "post_max_size","256M",
     379                  "upload_max_filesize","256M",
     380                  "max_execution_time","300",
     381                  "max_input_vars","5000",
     382              );
     383
     384
     385              //start for
     386              $nd_options_i_2 = 1;
     387              for ($nd_options_i = 0; $nd_options_i <= count($nd_options_all_server_settings); $nd_options_i++) {
     388
     389
     390                  if ( $nd_options_i_2 <= count($nd_options_all_server_settings)/2 ) {
     391
     392                    if($nd_options_i % 2 == 0){
     393                     
     394                      if ( nd_options_is_server_setting_ok($nd_options_all_server_settings[$nd_options_i+1],$nd_options_all_server_settings[$nd_options_i]) == 0 ) { return 0; }
     395
     396                      $nd_options_i_2 = $nd_options_i_2 + 1;
     397
     398                    }
     399
     400                  }
     401
     402
     403              }
     404              //end for
     405
     406
     407              return 1;
     408
     409           
     410            }
     411            //END check if all settings are ok
     412
     413
     414
     415            if ( nd_options_are_server_settings_ok() == 0 ) {
     416
     417              $nd_options_step_demo_3 .= '
     418              <!--plugins notice-->
     419              <div class="nd_options_box_sizing_border_box nd_options_padding_20 nd_options_float_left nd_options_width_100_percentage">
     420                <div class="notice notice-error nd_options_padding_20 nd_options_margin_top_30 nd_options_margin_0">
     421                  <p>'.esc_html__('Some of your server settings are not optimized and you may have some problems while importing','nd-shortcodes').' <u>'.esc_html__('check at the end of this page your server settings','nd-shortcodes').'</u></p>
     422                </div>
     423              </div>
     424              <!--plugins notice-->';
     425
     426            }
     427            //END CHECK SERVER SETTINGS
     428           
     429
     430
     431            $nd_options_step_demo_3 .= '
     432            <div class="nd_options_section">
     433              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     434                <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('1 - Import the Content','nd-shortcodes').'</h2>
     435                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Download the Content.xml by clicking on the button beside, 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>
    214436              </div>
    215437              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     
    217439                <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    218440                 
    219                     <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/content.xml').'" download>Donwload Content.xml</a>
     441                    <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>
    220442                 
    221443                </div>
     
    230452            <div class="nd_options_section">
    231453              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    232                 <h2 class="nd_options_section nd_options_margin_0">2 - Import the Style</h2>
    233                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">Download the Style.zip by clicking on the button beside, save the file on your desktop and then upload the file Style.zip on Elementor Import Tool <a target="_blank" href="'.admin_url().'admin.php?page=elementor-app#/import">here</a></p>
     454                <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('2 - Import the Style','nd-shortcodes').'</h2>
     455                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Download the Style.zip by clicking on the button beside, 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>
    234456              </div>
    235457              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     
    237459                <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    238460                 
    239                     <a class="button" href="'.esc_url( get_template_directory_uri().'/import/'.$nd_options_demo.'/style.zip').'" download >Donwload Style.zip</a>
     461                    <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>
    240462                 
    241463                </div>
     
    254476                  <input type="hidden" name="page" value="nicdark-welcome-theme-page">
    255477                  <input type="hidden" name="step" value="4">
    256                   <input class="button button-primary" type="submit" value="Go to the last Step">
     478                  <input class="button button-primary" type="submit" value="'.esc_html__('Go to the last Step','nd-shortcodes').'">
    257479                </form>
    258480
     
    263485            <div class="nd_options_section">
    264486              <div class="nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    265                 <img style="float:left; width:100%; box-shadow: 0px 0px 30px rgb(0 0 0 / 10%);" src="'.$nd_options_demo_img.'">
    266               </div>
    267             </div>
     487                <img class="nd_options_section nd_options_box_shadow_0_0_30_000_10" src="'.$nd_options_demo_img.'">
     488              </div>
     489            </div>';
     490
    268491
    269492
    270493           
    271494
    272 
     495            //START show server settings only if there are some incorrect settings
     496            if ( nd_options_are_server_settings_ok() == 0 ) {
     497
     498
     499
     500                //memory_limit
     501                $nd_options_memory_limit_class = '';
     502                $nd_options_memory_limit = wp_convert_hr_to_bytes(ini_get('memory_limit'));
     503                $nd_options_memory_limit_opt = wp_convert_hr_to_bytes('256M');
     504                    if ( $nd_options_memory_limit < $nd_options_memory_limit_opt ) {
     505
     506
     507                        $nd_options_memory_limit_class = 'nd_options_color_d63638';
     508                        $nd_options_memory_limit_content .= '<p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Your current value is insufficient. Please adjust the value to','nd-shortcodes').' <span class="nd_options_color_00a32a">'.size_format($nd_options_memory_limit_opt).'</span> '.esc_html__('in order to meet WordPress requirements.','nd-shortcodes').'</p>';
     509
     510                    }
     511
     512
     513                    //post_max_size
     514                    $nd_options_post_max_size_class = "";
     515                    $nd_options_post_max_size = wp_convert_hr_to_bytes(ini_get('post_max_size'));
     516                    $nd_options_post_max_size_opt = wp_convert_hr_to_bytes('256M');
     517                    if ( $nd_options_post_max_size < $nd_options_post_max_size_opt ) {
     518
     519                        $nd_options_post_max_size_class = "nd_options_color_d63638";
     520                        $nd_options_post_max_size_content .= '<p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Your current value is insufficient. Please adjust the value to','nd-shortcodes').' <span class="nd_options_color_00a32a">'.size_format($nd_options_post_max_size_opt).'</span> '.esc_html__('in order to meet WordPress requirements.','nd-shortcodes').'</p>';
     521
     522                    }
     523
     524
     525                    //upload_max_filesize
     526                    $nd_options_upload_max_filesize_class = "";
     527                    $nd_options_upload_max_filesize = wp_convert_hr_to_bytes(ini_get('upload_max_filesize'));
     528                    $nd_options_upload_max_filesize_opt = wp_convert_hr_to_bytes('256M');
     529                    if ( $nd_options_upload_max_filesize < $nd_options_upload_max_filesize_opt ) {
     530
     531                        $nd_options_upload_max_filesize_class = "nd_options_color_d63638";
     532                        $nd_options_upload_max_filesize_content .= '<p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Your current value is insufficient. Please adjust the value to','nd-shortcodes').' <span class="nd_options_color_00a32a">'.size_format($nd_options_upload_max_filesize_opt).'</span> '.esc_html__('in order to meet WordPress requirements.','nd-shortcodes').'</p>';
     533
     534                    }
     535
     536
     537                    //max_execution_time
     538                    $nd_options_max_execution_time_class = "";
     539                    if ( ini_get('max_execution_time') < 300 ) {
     540
     541                        $nd_options_max_execution_time_class = "nd_options_color_d63638";
     542                        $nd_options_max_execution_time_content .= '<p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Your current value is insufficient. Please adjust the value to','nd-shortcodes').' <span class="nd_options_color_00a32a">300</span> '.esc_html__('in order to meet WordPress requirements.','nd-shortcodes').'</p>';
     543
     544                    }
     545
     546
     547
     548                    //max_input_vars
     549                    $nd_options_max_input_vars_class = "";
     550                    if ( ini_get('max_input_vars') < 5000 ) {
     551
     552                        $nd_options_max_input_vars_class = "nd_options_color_d63638";
     553                        $nd_options_max_input_vars_content .= '<p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Your current value is insufficient. Please adjust the value to','nd-shortcodes').' <span class="nd_options_color_00a32a">5000</span> '.esc_html__('in order to meet WordPress requirements.','nd-shortcodes').'</p>';
     554
     555                    }
     556
     557
     558
     559                $nd_options_step_demo_3 .= '
     560                <div id="nd_options_server_requirements" class="nd_options_section nd_options_margin_top_25">
     561                  <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     562                    <h1 class="nd_options_section nd_options_margin_0">'.esc_html__('Server Requirements','nd-shortcodes').'</h1>
     563                    <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">'.esc_html__('Below you can see some settings of your server, your PHP version is','nd-shortcodes').' '.phpversion().'</p>
     564                  </div>
     565                </div>
     566
     567                <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>
     568
     569
     570                <div class="nd_options_section">
     571                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     572                    <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('PHP Memory Limit','nd-shortcodes').' : <span class="'.$nd_options_memory_limit_class.'">'.size_format($nd_options_memory_limit).'</span></h2>
     573                    '.$nd_options_memory_limit_content.'
     574                  </div>
     575                </div>
     576
     577                <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>
     578
     579                <div class="nd_options_section">
     580                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     581                    <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('PHP Post Max Size','nd-shortcodes').' : <span class="'.$nd_options_post_max_size_class.'">'.size_format($nd_options_post_max_size).'</span></h2>
     582                    '.$nd_options_post_max_size_content.'
     583                  </div>
     584                </div>
     585
     586                <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>
     587
     588                <div class="nd_options_section">
     589                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     590                    <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('PHP Max Upload Size','nd-shortcodes').' : <span class="'.$nd_options_upload_max_filesize_class.'">'.size_format($nd_options_upload_max_filesize).'</span></h2>
     591                    '.$nd_options_upload_max_filesize_content.'
     592                  </div>
     593                </div>
     594
     595                <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>
     596
     597                <div class="nd_options_section">
     598                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     599                    <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('PHP Time Limit','nd-shortcodes').' : <span class="'.$nd_options_max_execution_time_class.'">'.ini_get('max_execution_time').'</span></h2>
     600                    '.$nd_options_max_execution_time_content.'
     601                  </div>
     602                </div>
     603
     604                <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>
     605
     606                <div class="nd_options_section">
     607                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     608                    <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('PHP Max Input Vars','nd-shortcodes').' : <span class="'.$nd_options_max_input_vars_class.'">'.ini_get('max_input_vars').'</span></h2>
     609                    '.$nd_options_max_input_vars_content.'
     610                  </div>
     611                </div>
     612
     613                <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>
     614
     615                <div class="nd_options_section nd_options_margin_bottom_20">
     616                  <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     617                    <a target="blank" class="button" href="https://documentations.nicdark.com/themes/server-settings-requirmentes/">'.esc_html__('Check the Article','nd-shortcodes').'</a>
     618                  </div>
     619                </div>';
     620
     621
     622            }
     623            //END show server settings only if there are some incorrect settings
     624
     625
     626          $nd_options_step_demo_3 .= '
    273627          </div>
    274628          <!--END 3-->';
    275629
    276           echo $nd_options_step_demo_3; 
     630
     631        $nd_options_allowed_html_shortcodes = [
     632            'div' => [
     633              'class' => [],
     634              'id' => [],
     635            ],
     636
     637            'h1' => [
     638              'class' => [],
     639            ],
     640
     641            'p' => [
     642              'class' => [],
     643            ],
     644
     645            'u' => [
     646              'class' => [],
     647            ],
     648
     649            'span' => [
     650              'class' => [],
     651            ],
     652
     653            'h2' => [
     654              'class' => [],
     655            ],
     656
     657            'a' => [
     658              'target' => [],
     659              'href' => [],
     660              'class' => [],
     661              'download' => [],
     662            ],
     663                             
     664            'form' => [
     665             'action' => [],
     666              'method' => [],
     667            ],
     668
     669            'input' => [
     670              'type' => [],
     671              'name' => [],
     672              'value' => [],
     673              'class' => [],
     674            ],
     675
     676            'img' => [
     677              'class' => [],
     678              'src' => [],
     679            ], 
     680        ];
     681
     682        echo wp_kses( $nd_options_step_demo_3, $nd_options_allowed_html_shortcodes );
     683
    277684
    278685        }
     
    285692
    286693        //START STEP 4
    287         $nd_options_step = $_GET['step'];
     694        $nd_options_step = '';
     695        $nd_options_step = sanitize_text_field($_GET['step']);
    288696        if ( $nd_options_step == 4 ) {
    289697
     
    291699          $nd_options_step_demo_4 .= '
    292700          <!--START 4-->
    293           <div style="padding: 20px; box-sizing: border-box; width: 100%;" class="nicdark_import_demo_4_step">
     701          <div class="nicdark_import_demo_4_step nd_options_width_100_percentage nd_options_padding_20 nd_options_box_sizing_border_box">
    294702
    295703            <div class="nd_options_section">
    296704              <div class="nd_options_width_40_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    297                 <h1 class="nd_options_section nd_options_margin_0">Enjoy your Theme</h1>
    298                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">The import process can cause some problems since each server can have very limited restrictions for this reason below we list the most frequent problems that you can solve in simple steps</p>
     705                <h1 class="nd_options_section nd_options_margin_0">'.esc_html__('Enjoy your Theme','nd-shortcodes').'</h1>
     706                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20">'.esc_html__('The import process can cause some problems since each server can have very limited restrictions for this reason below we list the most frequent problems that you can solve in simple steps','nd-shortcodes').'</p>
    299707              </div>
    300708            </div>
     
    305713            <div class="nd_options_section">
    306714              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    307                 <h2 class="nd_options_section nd_options_margin_0">Disable blue fonts colors</h2>
    308                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">Sometimes, after installing the theme, the site fonts may appear blue and a different font from the demo.</p>
     715                <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('Disable blue fonts colors','nd-shortcodes').'</h2>
     716                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Sometimes, after installing the theme, the site fonts may appear blue and a different font from the demo.','nd-shortcodes').'</p>
    309717              </div>
    310718              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     
    312720                <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    313721                 
    314                     <a class="button" target="blank" href="https://documentations.nicdark.com/themes/disable-blue-fonts-colors/">Check the Article</a>
     722                    <a class="button" target="blank" href="https://documentations.nicdark.com/themes/disable-blue-fonts-colors/">'.esc_html__('Check the Article','nd-shortcodes').'</a>
    315723                 
    316724                </div>
     
    322730            <div class="nd_options_section">
    323731              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    324                 <h2 class="nd_options_section nd_options_margin_0">Problem on Header and Footer</h2>
    325                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">If you don’t see the header and footer correctly after importing, there’s nothing to worry about, since the header and footer are created with the page builder, check the article for understand how to fix it.</p>
     732                <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('Problem on Header and Footer','nd-shortcodes').'</h2>
     733                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('If you don’t see the header and footer correctly after importing, there’s nothing to worry about, since the header and footer are created with the page builder, check the article for understand how to fix it.','nd-shortcodes').'</p>
    326734              </div>
    327735              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     
    329737                <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    330738                 
    331                     <a class="button" target="blank" href="https://documentations.nicdark.com/themes/i-dont-see-header-and-footer-after-import-demo/">Check the Article</a>
     739                    <a class="button" target="blank" href="https://documentations.nicdark.com/themes/i-dont-see-header-and-footer-after-import-demo/">'.esc_html__('Check the Article','nd-shortcodes').'</a>
    332740                 
    333741                </div>
     
    339747            <div class="nd_options_section">
    340748              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    341                 <h2 class="nd_options_section nd_options_margin_0">Set your home page as front page</h2>
    342                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">Set your home page as front page it’s very simple, this is a WordPress feature and through our article you can understand how to set it.</p>
     749                <h2 class="nd_options_section nd_options_margin_0">'.esc_html__('Set your home page as front page','nd-shortcodes').'</h2>
     750                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Set your home page as front page it’s very simple, this is a WordPress feature and through our article you can understand how to set it.','nd-shortcodes').'</p>
    343751              </div>
    344752              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
     
    346754                <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    347755                 
    348                     <a class="button" target="blank" href="https://documentations.nicdark.com/themes/set-your-home-page-as-front-page/">Check the Article</a>
     756                    <a class="button" target="blank" href="https://documentations.nicdark.com/themes/set-your-home-page-as-front-page/">'.esc_html__('Check the Article','nd-shortcodes').'</a>
    349757                 
    350758                </div>
     
    359767            <div class="nd_options_section">
    360768              <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    361                 <h2 class="nd_options_section nd_options_margin_0">Elementor PRO for FREE</h2>
    362                 <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_10">Redeem your Elementor Pro license by filling out the form at the following address for have Elementor connected to your domain</p>
    363               </div>
    364               <div class="nd_options_width_50_percentage nd_options_padding_20 nd_options_box_sizing_border_box nd_options_float_left">
    365                
    366                 <div class="nd_options_section nd_options_padding_left_20 nd_options_padding_right_20 nd_options_box_sizing_border_box">
    367                  
    368                     <a class="button button-primary" target="blank" href="https://www.nicdark.com/free-elementor-pro/">Fill The Form</a>
    369                  
    370                 </div>
    371 
     769                <h1 class="nd_options_section nd_options_margin_0 nd_options_margin_top_10">'.esc_html__('Elementor PRO for FREE','nd-shortcodes').' *<span class="nd_options_color_666666 nd_options_padding_left_20 nd_options_font_weight_normal nd_options_font_size_14">( '.esc_html__('only for themeforest.net buyers','nd-shortcodes').' )</span></h1>
     770                <p class="nd_options_color_666666 nd_options_section nd_options_margin_0 nd_options_margin_top_20 nd_options_margin_bottom_20">'.esc_html__('Redeem your Elementor Pro license by filling out the form at the following address for have Elementor PRO connected to your domain. * You can use Elementor PRO for free for 12 months, you will get all updates for free. This is our gift to all our themeforest.net customers.','nd-shortcodes').'</p>
     771                <a class="button button-primary " target="blank" href="https://www.nicdark.com/free-elementor-pro/">'.esc_html__('Fill The Form','nd-shortcodes').'</a>
    372772              </div>
    373773            </div>
     
    376776          </div>
    377777          <!--END 4-->';
    378 
    379           echo $nd_options_step_demo_4; 
     778 
     779
     780        $nd_options_allowed_html_shortcodes = [
     781
     782            'div' => [
     783              'class' => [],
     784            ],
     785
     786            'h1' => [
     787              'class' => [],
     788            ],
     789
     790            'p' => [ 
     791              'class' => [],
     792            ],
     793
     794            'span' => [ 
     795              'class' => [],
     796            ],
     797                         
     798            'h2' => [ 
     799              'class' => [],
     800            ],
     801
     802            'a' => [ 
     803              'class' => [],
     804              'target' => [],
     805              'href' => [],
     806            ],
     807
     808        ];
     809
     810        echo wp_kses( $nd_options_step_demo_4, $nd_options_allowed_html_shortcodes );
    380811
    381812        }
Note: See TracChangeset for help on using the changeset viewer.