Changeset 3120663
- Timestamp:
- 07/17/2024 05:19:35 PM (21 months ago)
- Location:
- stylish-price-list
- Files:
-
- 4 added
- 28 edited
- 1 copied
-
tags/7.1.6 (copied) (copied from stylish-price-list/trunk)
-
tags/7.1.6/admin/tabs/views/tabs-form/pricelist-form.php (modified) (17 diffs)
-
tags/7.1.6/admin/tabs/views/tabs-list.php (modified) (1 diff)
-
tags/7.1.6/assets/css/admin-style.css (modified) (3 diffs)
-
tags/7.1.6/assets/css/frontend-style.css (modified) (5 diffs)
-
tags/7.1.6/assets/css/nouislider.css (added)
-
tags/7.1.6/assets/js/nouislider.min.js (added)
-
tags/7.1.6/assets/js/pricelist-admin.js (modified) (4 diffs)
-
tags/7.1.6/assets/js/tabs.js (modified) (1 diff)
-
tags/7.1.6/change_language_class.php (modified) (4 diffs)
-
tags/7.1.6/changelog.txt (modified) (1 diff)
-
tags/7.1.6/constants.php (modified) (17 diffs)
-
tags/7.1.6/functions.php (modified) (1 diff)
-
tags/7.1.6/readme.txt (modified) (1 diff)
-
tags/7.1.6/shortcode/pricelist-frontend.php (modified) (42 diffs)
-
tags/7.1.6/shortcode/pricelist.php (modified) (3 diffs)
-
tags/7.1.6/stylish-price-list.php (modified) (2 diffs)
-
trunk/admin/tabs/views/tabs-form/pricelist-form.php (modified) (17 diffs)
-
trunk/admin/tabs/views/tabs-list.php (modified) (1 diff)
-
trunk/assets/css/admin-style.css (modified) (3 diffs)
-
trunk/assets/css/frontend-style.css (modified) (5 diffs)
-
trunk/assets/css/nouislider.css (added)
-
trunk/assets/js/nouislider.min.js (added)
-
trunk/assets/js/pricelist-admin.js (modified) (4 diffs)
-
trunk/assets/js/tabs.js (modified) (1 diff)
-
trunk/change_language_class.php (modified) (4 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/constants.php (modified) (17 diffs)
-
trunk/functions.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/shortcode/pricelist-frontend.php (modified) (42 diffs)
-
trunk/shortcode/pricelist.php (modified) (3 diffs)
-
trunk/stylish-price-list.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stylish-price-list/tags/7.1.6/admin/tabs/views/tabs-form/pricelist-form.php
r3107450 r3120663 134 134 $brack_title_desktop = isset( $cats_data['brack_title_desktop'] ) ? $cats_data['brack_title_desktop'] : ''; //$cats_data['brack_title_desktop'] 135 135 $brack_title_tablets = isset( $cats_data['brack_title_tablets'] ) ? $cats_data['brack_title_tablets'] : ''; //$cats_data['brack_title_tablets'] 136 $jsonld_currency = isset( $cats_data['jsonld_currency'] ) ? $cats_data['jsonld_currency'] : 'USD'; //$cats_data['jsonld_currency'] 136 137 } 137 138 // phpcs:ignore … … 167 168 $Open_Buy_Btn_Link_In_New_Tab = $lang_obj->convert_lang_function( $language_choice, 'Open_Buy_Btn_Link_In_New_Tab' ); 168 169 $Add_Search_Bar = $lang_obj->convert_lang_function( $language_choice, 'Add_Search_Bar' ); 170 $price_range_slider = $lang_obj->convert_lang_function( $language_choice, 'Price_Range_Slider' ); 169 171 $Break_title_of_Service = $lang_obj->convert_lang_function( $language_choice, 'Break_title_of_Service' ); 170 172 $Break_line_of_categories_on_Desktop = $lang_obj->convert_lang_function( $language_choice, 'Break_line_of_categories_on_Desktop' ); 171 173 $Break_line_of_categories_on_Tablets = $lang_obj->convert_lang_function( $language_choice, 'Break_line_of_categories_on_Tablets' ); 172 174 $Price_List_Description = $lang_obj->convert_lang_function( $language_choice, 'Price_List_Description' ); 175 $items_price_currency = $lang_obj->convert_lang_function( $language_choice, 'Items_Price_Currency' ); 173 176 $Title = $lang_obj->convert_lang_function( $language_choice, 'Title' ); 174 177 $Category_Tabs = $lang_obj->convert_lang_function( $language_choice, 'Category_Tabs' ); … … 230 233 $Open_Buy_Btn_Link_In_New_Tab = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Open_Buy_Btn_Link_In_New_Tab' ); 231 234 $Add_Search_Bar = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Add_Search_Bar' ); 235 $price_range_slider = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Price_Range_Slider' ); 232 236 $Break_title_of_Service = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Break_title_of_Service' ); 233 237 $Break_line_of_categories_on_Desktop = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Break_line_of_categories_on_Desktop' ); 234 238 $Break_line_of_categories_on_Tablets = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Break_line_of_categories_on_Tablets' ); 235 239 $Price_List_Description = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Price_List_Description' ); 240 $items_price_currency = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Items_Price_Currency' ); 236 241 $Title = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Title' ); 237 242 $Category_Tabs = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Category_Tabs' ); … … 291 296 $Open_Buy_Btn_Link_In_New_Tab = $lang_obj->convert_lang_function( 'EN', 'Open_Buy_Btn_Link_In_New_Tab' ); 292 297 $Add_Search_Bar = $lang_obj->convert_lang_function( 'EN', 'Add_Search_Bar' ); 298 $price_range_slider = $lang_obj->convert_lang_function( 'EN', 'Price_Range_Slider' ); 293 299 $Break_title_of_Service = $lang_obj->convert_lang_function( 'EN', 'Break_title_of_Service' ); 294 300 $Break_line_of_categories_on_Desktop = $lang_obj->convert_lang_function( 'EN', 'Break_line_of_categories_on_Desktop' ); 295 301 $Break_line_of_categories_on_Tablets = $lang_obj->convert_lang_function( 'EN', 'Break_line_of_categories_on_Tablets' ); 296 302 $Price_List_Description = $lang_obj->convert_lang_function( 'EN', 'Price_List_Description' ); 303 $items_price_currency = $lang_obj->convert_lang_function( 'EN', 'Items_Price_Currency' ); 297 304 $Title = $lang_obj->convert_lang_function( 'EN', 'Title' ); 298 305 $Category_Tabs = $lang_obj->convert_lang_function( 'EN', 'Category_Tabs' ); … … 519 526 ?> 520 527 "> 521 <div class="col-xs-6 col-sm-5 col-md-5 col-lg-5 <?php echo esc_attr( $extra_class ); ?>lbl">528 <div class="col-xs-6 col-sm-5 col-md-5 col-lg-5 lbl"> 522 529 <label for="<?php echo esc_attr($html_id); ?>"><?php echo esc_attr($title); ?></label> 523 530 </div> … … 617 624 <img src="<?php echo empty( $cat_cover_image ) ? SPL_DEFAULT_THUMBNAIL : $cat_cover_image; ?>" width="45px;" height="45px;" /> 618 625 <?php if (!empty($image_name)) : ?> 619 <div class="spl-container-test" >626 <div class="spl-container-test"> 620 627 <div class="spl-container-icon" ><?php echo $image_name; ?> 621 628 <i class='delete-icon'> … … 705 712 <input type="hidden" name="category[<?php echo $cat_id . "][" . $service_id; ?>][service_image]" value="<?php echo esc_attr($service_image); ?>"> 706 713 <div class='upload-btn'><i class="fas fa-cloud-upload-alt"></i> Click to upload</div> 714 <?php if ( ! empty( $service_image ) ) { ?> 715 <div class="spl-container-test" > 716 <div class="spl-container-icon" ><?php echo esc_attr( basename( $service_image ) ); ?> 717 <i class='delete-icon'> 718 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="#dae2e1" d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg> 719 </i> 720 </div> 721 </div> 722 <?php } ?> 707 723 </div> 708 724 </div> … … 766 782 <input class="form-control service-tooltip-image-url" type="hidden" name="category[<?php echo $cat_id . "][" . $service_id; ?>][settings_tooltip_image]" value="<?php echo esc_attr($settings_tooltip_image); ?>"> 767 783 <div class='upload-btn'><i class="fas fa-cloud-upload-alt"></i> Click to upload</div> 784 <?php if ( ! empty( $settings_tooltip_image ) ) { ?> 785 <div class="spl-container-test" > 786 <div class="spl-container-icon" ><?php echo esc_attr( basename( $settings_tooltip_image ) ); ?> 787 <i class='delete-icon'> 788 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="#dae2e1" d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg> 789 </i> 790 </div> 791 </div> 792 <?php } ?> 768 793 </div> 769 794 </div> … … 833 858 <select class="form-control sel1" name="tab_style" style="max-width:100% !important;height:40px;"> 834 859 <option class="form-control default_tab" value="">Select Style</option> 835 <option class="form-control default_tab" value="with_tab" <?php echo isset( $style ) && $style == 'with_tab' ? 'selected' : ''; ?> >Style #1 </option>860 <option class="form-control default_tab" value="with_tab" <?php echo isset( $style ) && $style == 'with_tab' ? 'selected' : ''; ?> >Style #1 (Supports Images)</option> 836 861 <option class="form-control default_tab" value="without_tab" <?php echo isset( $style ) && $style == 'without_tab' ? 'selected' : ''; ?>>Style #2</option> 837 862 <option class="form-control default_tab" value="without_tab_single_column" <?php echo isset( $style ) && $style == 'without_tab_single_column' ? 'selected' : ''; ?>>Style #2 (Single Column)</option> … … 879 904 </nav><!--End of Nav 2 --- Price List Title, Style, Save Button--> 880 905 <div class="price-wrapper d-none" id="edit-page-alert"> 881 <div class="alert bg-danger">882 <h3>Your License key has been expired. Some features might not work properly. Please renew. </h3>906 <div class="alert alert2 bg-danger"> 907 <h3>Your License key has been expired. Some features might not work properly. Please renew. <a href="<?php echo esc_attr( admin_url('admin.php?page=stylish_price_list_license') ); ?>">Enter your license key</a></h3> 883 908 </div> 884 909 </div> … … 1469 1494 </div> 1470 1495 <!-- End of Search & Filter Settings --> 1496 <!-- Start of Search & Filter Settings --> 1497 <div class="df-spl-row cats-row more_setting"> 1498 <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 lbl"> 1499 <label for="category_tab_button"><?php echo esc_attr($price_range_slider); ?><span class="category_tab_button" style="color:red"></span></label> 1500 <img class="spl-icon-info" src="<?php echo SPL_URL . '/assets/images/info.svg'; ?>" alt="some image" title="Enabling it will add a price range filter slider at the top of the price-list."/> 1501 </div> 1502 <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8"> 1503 <?php 1504 $enable_price_range_slider = isset( $cats_data['enable_price_range_slider'] ) ? $cats_data['enable_price_range_slider'] : ''; 1505 $checked = 'checked'; 1506 $unchecked = ''; 1507 ?> 1508 <div class="custom_radio_btn"><input type="radio" name="enable_price_range_slider" class="enable_price_range_slider" required="" value="0" 1509 <?php 1510 if ( empty( $enable_price_range_slider ) ) { 1511 echo esc_attr($checked); 1512 } else { 1513 echo esc_attr($unchecked); } 1514 ?> 1515 >Off<label class="radio-inline"><span></span></label></div> 1516 <div class="custom_radio_btn"><input type="radio" name="enable_price_range_slider" class="enable_price_range_slider" required="" value="1" 1517 <?php 1518 if ( ! empty( $enable_price_range_slider ) ) { 1519 echo esc_attr($checked); 1520 } else { 1521 echo esc_attr($unchecked); } 1522 ?> 1523 >On<label class="radio-inline"><span></span></label></div> 1524 </div> 1525 </div> 1526 <!-- End of Search & Filter Settings --> 1471 1527 </div><!-- End of Search & Filter Settings Category--> 1472 1528 <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><!-- START of Misc Settings Category--> … … 1488 1544 </div> 1489 1545 </div><!--End of Add Textarea for price list description--> 1546 <div class="df-spl-row cats-row more_setting"> 1547 <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 lbl"> 1548 <label for="all_tab"><?php echo stripslashes( $items_price_currency ); ?></label> 1549 </div> 1550 <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 no-pa"> 1551 <select class="form-control jsonld-currency" id="jsonld_currency" name="jsonld_currency"> 1552 <?php foreach ( DF_SPL_CURRENCIES as $key => $value ) { 1553 ?> 1554 <option style="max-width:400px;" class="form-control" <?php echo selected( $jsonld_currency , $value['code'] ) ?> value="<?php echo $value['code']; ?>"><?php echo $value['currency']; ?></option> 1555 <?php 1556 } ?> 1557 </select> 1558 </div> 1559 </div> 1490 1560 </div><!-- End of Misc Settings Category--> 1491 1561 </div><!-- END of Right Price List Settings--> … … 1892 1962 ?> 1893 1963 </div> <!-- category-row-template --> 1894 <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">1895 1964 <?php 1896 1965 $opt = get_option( 'spllk_opt' ); 1897 1966 if ( empty( $opt ) || $opt['license'] !== 'valid' ) { 1898 echo '< p class="free_version">You are using the <span class="highlighted">free (demo)</span> version of the plugin. Click <span class="highlighted"><a href="https://stylishpricelist.com?utm_source=inside-plugin&utm_medium=buy-premium-cta-banner">here</a></span> to buy the premium version.</p>';1967 echo '<div class="free_version alert alert2 bg-success">You are using the <span class="highlighted">free (demo)</span> version of the plugin. Click <span class="highlighted"><a href="https://stylishpricelist.com?utm_source=inside-plugin&utm_medium=buy-premium-cta-banner">here</a></span> to buy the premium version.</div>'; 1899 1968 } 1900 1969 ?> 1901 </div>1902 1970 <div id="pricelist-editor-root" class="category-rows-master-cls"> 1903 1971 <div id="category-rows-wrapper"> … … 2579 2647 }else if (spl_styl == 'style_8') { 2580 2648 jQuery('.spl_service_image_element:even').hide(); 2649 jQuery('.spl_service_image_element').show(); 2581 2650 jQuery('.df-spl-row.category-cover-image-row').hide(); 2582 2651 } else if(spl_styl == 'style_10') { … … 2646 2715 if (jQuery(this).val() == "style_8") { 2647 2716 !(isNoModal) && jQuery('#sell8').removeClass('fade').show(300).trigger('show.bs.modal'); 2648 jQuery('.spl_service_image_element').hide(); 2717 debugger; 2718 jQuery('.spl_service_image_element').show(); 2649 2719 jQuery('.service_long_description').closest('.service-price-length').hide(); 2650 2720 jQuery('#style5_category_container').css('display', 'none') … … 2697 2767 ee.target.innerHTML = '<i class="gg-spinner"></i>'; 2698 2768 if (styleDropdown.val() == 'style_3') { 2699 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'T hree' );2700 jQuery( 'select[name="select_column"]' ).val( 'T hree' );2769 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'Two' ); 2770 jQuery( 'select[name="select_column"]' ).val( 'Two' ); 2701 2771 } else { 2702 2772 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'Columns' ); … … 2711 2781 2712 2782 if (styleDropdown.val() == 'style_3') { 2713 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'T hree' );2714 jQuery( 'select[name="select_column"]' ).val( 'T hree' );2783 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'Two' ); 2784 jQuery( 'select[name="select_column"]' ).val( 'Two' ); 2715 2785 } else { 2716 2786 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'Columns' ); -
stylish-price-list/tags/7.1.6/admin/tabs/views/tabs-list.php
r3107450 r3120663 11 11 </div> 12 12 <style> 13 p.free_version {13 .free_version { 14 14 font-weight: bold; 15 15 font-size: 17px; 16 16 } 17 p.free_version span.highlighted {17 .free_version span.highlighted { 18 18 color: #5bb3a7; 19 19 } -
stylish-price-list/tags/7.1.6/assets/css/admin-style.css
r3107450 r3120663 301 301 padding-left:30px; 302 302 } 303 p.free_version {303 .free_version { 304 304 font-size: 16px; 305 background: #e2f1e7;306 305 padding: 20px; 307 border-radius: 20px;308 margin-left: -15px;309 306 box-shadow: 0px 0px 9px 10px rgb(189 189 189 / 5%); 310 307 } … … 931 928 } 932 929 930 .wp-core-ui .no-pa select.jsonld-currency { 931 max-width: unset; 932 } 933 933 934 .styled-accordion .content.show { 934 935 display: block; … … 982 983 } 983 984 985 .price_wrapper .alert.alert2 { 986 border-radius: 10px; 987 } 988 984 989 .field-wrapper label { 985 990 text-wrap: nowrap; -
stylish-price-list/tags/7.1.6/assets/css/frontend-style.css
r3083497 r3120663 1422 1422 } 1423 1423 .col-xs-12.col-sm-6.col-md-6.col-lg-6.name-price-desc { 1424 padding-bottom: 10px1424 border-bottom: 1px solid #c1c1c1; 1425 1425 } 1426 1426 .cat_descreption { … … 1930 1930 float: right; 1931 1931 display: flex; 1932 margin-right: 20px; 1932 margin-left: auto; 1933 } 1934 .has-price-range nav.pricelist-searchbar { 1935 margin-left: 20px; 1936 } 1937 nav.searchbar-and-price-range-wrapper { 1938 display: flex; 1939 } 1940 nav.searchbar-and-price-range-wrapper.has-price-range { 1941 margin-bottom: 25px; 1933 1942 } 1934 1943 .df-spl-style-seven-head + nav.pricelist-searchbar { … … 2030 2039 .df-spl-style8_cat_tab-container ul > li { 2031 2040 display: inline; 2032 margin-bottom: 0; 2041 margin-bottom: 5px; 2042 margin-top: 5px; 2043 } 2044 .clearfix { 2045 clear: both; 2046 } 2047 #spl-slider-handles { 2048 flex-grow: 1; 2049 margin: 10px 0; 2050 } 2051 .df-spl-style8_cat_tab-container ul > li:not(:last-child) { 2033 2052 margin-right: 15px; 2034 2053 } … … 2043 2062 margin-right: 15px; 2044 2063 } */ 2045 .df-spl-style8_cat_tab-container ul > li.active a { 2046 background-color: var(--df-spl-style8-active-tab-bg); 2064 .df-spl-style8_cat_tab-container ul > li.active a, 2065 .style-8-container .noUi-connect { 2066 background-color: var(--df-spl-style8-active-tab-bg) !important; 2047 2067 } 2048 2068 .df-spl-style8_cat_tab-container ul > li a { … … 2368 2388 height: 22px; 2369 2389 } 2390 .delete-icon svg { 2391 cursor: pointer; 2392 } -
stylish-price-list/tags/7.1.6/assets/js/pricelist-admin.js
r3107450 r3120663 403 403 fileInput.css('display', 'block'); 404 404 405 406 parentDiv.find('img').remove();407 405 408 406 parentDiv.find('input[type="hidden"]').val(''); … … 412 410 if (!fileInput.val()) { 413 411 var defaultImageSrc = SPL_admin_url.url +"../wp-content/plugins/stylish-price-list/assets/images/def-thumb.png"; 414 parentDiv.prepend('<img src="' + defaultImageSrc + '" width="45px" height="45px">'); 412 parentDiv.parent().find('img').attr('src', defaultImageSrc); 413 parentDiv.find('input[type="hidden"]').val(''); 415 414 } 416 415 else { … … 486 485 // get the viewport width 487 486 const vw = Math.max( document.documentElement.clientWidth || 0, window.innerWidth || 0 ); 488 if ( vw >= 1 900) {487 if ( vw >= 1401 ) { 489 488 handlePreviewDockMode( document.querySelector('[data-dock-mode="right"]'), 'right', new Event( 'click' ), false ); 490 489 } 491 if ( vw < 1 899) {490 if ( vw < 1400 ) { 492 491 handlePreviewDockMode( document.querySelector('[data-dock-mode="bottom"]'), 'bottom', new Event( 'click' ), false ); 493 492 } … … 524 523 var container = jQuery(this).closest('.spl-container-test'); 525 524 var parentDiv = container.parent(); 526 parentDiv.find('img').remove();527 525 var defaultImageSrc = SPL_admin_url.url + "../wp-content/plugins/stylish-price-list/assets/images/def-thumb.png"; 528 parentDiv.prepend('<img src="' + defaultImageSrc + '" width="45px" height="45px">'); 526 parentDiv.parent().find('img').attr('src', defaultImageSrc); 527 parentDiv.find('input[type="hidden"]').val(''); 529 528 530 529 var inputFile = jQuery('#spl-file-input'); -
stylish-price-list/tags/7.1.6/assets/js/tabs.js
r3078918 r3120663 270 270 }, 271 271 ); 272 const sliderHandles = document.querySelectorAll('#spl-slider-handles'); 273 sliderHandles.forEach((sliderHandle) => { 274 const priceListRoot = sliderHandle.closest('.spl_main_content_box'); 275 const itemsAndPrices = [ ...( priceListRoot.querySelectorAll('.spl-item-root [data-price]') ) ] 276 .map(price => ({ 277 itemRoot: price.closest('.spl-item-root'), 278 price: Number(price.getAttribute('data-price').replace(/[^\d.]/g, '')) 279 })); 280 const prices = itemsAndPrices.map(x => x.price); 281 const pricesUnique = [...new Set(prices)]; 282 const minPrice = Math.min(...prices); 283 const maxPrice = Math.max(...prices); 284 const sliderInstance = noUiSlider.create(sliderHandle, { 285 start: [minPrice, maxPrice], 286 connect: true, 287 range: { 288 'min': [minPrice], 289 'max': [maxPrice] 290 }, 291 step: 1, 292 pips: { 293 mode: 'positions', 294 values: pricesUnique, 295 density: 4 296 }, 297 tooltips: [ 298 { 299 to: function(value) { 300 return Math.round(value); 301 } 302 }, 303 { 304 to: function(value) { 305 return Math.round(value); 306 } 307 } 308 ] 309 }); 310 sliderInstance.on('change', (values, handle) => { 311 const [min, max] = values; 312 const items = itemsAndPrices.filter(item => item.price >= min && item.price <= max); 313 items.forEach(item => item.itemRoot.style.display = 'block'); 314 itemsAndPrices.filter(item => !items.includes(item)).forEach(item => item.itemRoot.style.display = 'none'); 315 }); 316 }); 272 317 jQuery( '.df-spl-style7_cat_tab-container.tabs_spl ul a' ).on( 273 318 'click', -
stylish-price-list/tags/7.1.6/change_language_class.php
r3078918 r3120663 27 27 $language['EN']['Open_Buy_Btn_Link_In_New_Tab'] = df_spl_remove_slash_quotes( 'Open Buy Button Links in New Tab' ); 28 28 $language['EN']['Add_Search_Bar'] = df_spl_remove_slash_quotes( 'Enable Filter & Search Box' ); 29 $language['EN']['Price_Range_Slider'] = df_spl_remove_slash_quotes( 'Enable Price Range Slider' ); 29 30 $language['EN']['Break_title_of_Service'] = df_spl_remove_slash_quotes( 'Break Title of Service' ); 30 31 $language['EN']['Break_line_of_categories_on_Desktop'] = df_spl_remove_slash_quotes( 'Break Line of Categories on Desktops' ); 31 32 $language['EN']['Break_line_of_categories_on_Tablets'] = df_spl_remove_slash_quotes( 'Break Line of Categories on Tablets' ); 32 33 $language['EN']['Price_List_Description'] = df_spl_remove_slash_quotes( 'Price List Description' ); 34 $language['EN']['Items_Price_Currency'] = df_spl_remove_slash_quotes( 'Select Price Currency (for SEO JSON-LD)' ); 33 35 $language['EN']['Title'] = df_spl_remove_slash_quotes( 'Title' ); 34 36 $language['EN']['Category_Tabs'] = df_spl_remove_slash_quotes( 'Category (Tabs)' ); … … 90 92 $language['SP']['Open_Buy_Btn_Link_In_New_Tab'] = df_spl_remove_slash_quotes( 'Open Buy Button Links in New Tab' ); 91 93 $language['SP']['Add_Search_Bar'] = df_spl_remove_slash_quotes( 'Enable Search Box' ); 94 $language['SP']['Price_Range_Slider'] = df_spl_remove_slash_quotes( 'Habilitar control deslizante de rango de precios' ); 92 95 $language['SP']['Break_title_of_Service'] = df_spl_remove_slash_quotes( 'Título de rotura del servicio' ); 93 96 $language['SP']['Break_line_of_categories_on_Desktop'] = df_spl_remove_slash_quotes( 'Romper la línea de categorías en el escritorio' ); 94 97 $language['SP']['Break_line_of_categories_on_Tablets'] = df_spl_remove_slash_quotes( 'Romper la línea de categorías en Tabletas' ); 95 98 $language['SP']['Price_List_Description'] = df_spl_remove_slash_quotes( 'Descripción de la lista de precios' ); 99 $language['SP']['Items_Price_Currency'] = df_spl_remove_slash_quotes( 'Seleccione la moneda del precio (para SEO JSON-LD)' ); 96 100 $language['SP']['Title'] = df_spl_remove_slash_quotes( 'Título' ); 97 101 $language['SP']['Category_Tabs'] = df_spl_remove_slash_quotes( 'Categoría (pestañas)' ); … … 151 155 $language['FR']['Open_Buy_Btn_Link_In_New_Tab'] = df_spl_remove_slash_quotes( 'Open Buy Button Links in New Tab' ); 152 156 $language['FR']['Add_Search_Bar'] = df_spl_remove_slash_quotes( 'Enable Search Box' ); 157 $language['FR']['Price_Range_Slider'] = df_spl_remove_slash_quotes( 'Activer le curseur de fourchette de prix' ); 153 158 $language['FR']['Break_title_of_Service'] = df_spl_remove_slash_quotes( 'Casser le titre du service' ); 154 159 $language['FR']['Break_line_of_categories_on_Desktop'] = df_spl_remove_slash_quotes( 'Briser la ligne de catégories sur le bureau' ); 155 160 $language['FR']['Break_line_of_categories_on_Tablets'] = df_spl_remove_slash_quotes( 'Briser la ligne de catégories sur les tablettes' ); 156 161 $language['FR']['Price_List_Description'] = df_spl_remove_slash_quotes( 'Description de la liste de prix' ); 162 $language['FR']['Items_Price_Currency'] = df_spl_remove_slash_quotes( 'Sélectionnez la devise du prix (pour SEO JSON-LD)' ); 157 163 $language['FR']['Title'] = df_spl_remove_slash_quotes( 'Titre' ); 158 164 $language['FR']['Category_Tabs'] = df_spl_remove_slash_quotes( 'Catégorie (onglets)' ); … … 212 218 $language['DE']['Open_Buy_Btn_Link_In_New_Tab'] = df_spl_remove_slash_quotes( 'Open Buy Button Links in New Tab' ); 213 219 $language['DE']['Add_Search_Bar'] = df_spl_remove_slash_quotes( 'Enable Search Box' ); 220 $language['DE']['Price_Range_Slider'] = df_spl_remove_slash_quotes( 'Preisbereichsregler aktivieren' ); 214 221 $language['DE']['Break_title_of_Service'] = df_spl_remove_slash_quotes( 'Breek de titel van de service' ); 215 222 $language['DE']['Break_line_of_categories_on_Desktop'] = df_spl_remove_slash_quotes( 'Breek lijn van categorieën op Desktop' ); 216 223 $language['DE']['Break_line_of_categories_on_Tablets'] = df_spl_remove_slash_quotes( 'Breek lijn van categorieën op tablets' ); 217 224 $language['DE']['Price_List_Description'] = df_spl_remove_slash_quotes( 'Prijslijst beschrijving' ); 225 $language['DE']['Items_Price_Currency'] = df_spl_remove_slash_quotes( 'Preiswährung auswählen (für SEO JSON-LD)' ); 218 226 $language['DE']['Title'] = df_spl_remove_slash_quotes( 'Titel' ); 219 227 $language['DE']['Category_Tabs'] = df_spl_remove_slash_quotes( 'Categorie (tabbladen)' ); -
stylish-price-list/tags/7.1.6/changelog.txt
r3107450 r3120663 1 = 7.1.6 - 2023-07-17 2 * Updated links for helpdesk articles, and code cleanup 3 * bugfix: Fix image remove button and image add feature issues 4 * Add: Minor UX tweaks for the pricelist editor 5 1 6 = 7.1.5 - 2023-06-25 2 7 * bugfix: Fix too large font size on tooltips -
stylish-price-list/tags/7.1.6/constants.php
r3107450 r3120663 7 7 define ( 'DF_SPL_WIZARD_ICONS_DIR', SPL_DIR . '/assets/images/setup-wizard/' ); 8 8 9 define( 'DF_SPL_CURRENCIES', array ( 10 0 => 11 array ( 12 'code' => 'AED', 13 'currency' => 'UAE Dirham', 14 ), 15 1 => 16 array ( 17 'code' => 'AFN', 18 'currency' => 'Afghani', 19 ), 20 2 => 21 array ( 22 'code' => 'ALL', 23 'currency' => 'Lek', 24 ), 25 3 => 26 array ( 27 'code' => 'AMD', 28 'currency' => 'Armenian Dram', 29 ), 30 4 => 31 array ( 32 'code' => 'ANG', 33 'currency' => 'Netherlands Antillean Guilder', 34 ), 35 5 => 36 array ( 37 'code' => 'AOA', 38 'currency' => 'Kwanza', 39 ), 40 6 => 41 array ( 42 'code' => 'ARS', 43 'currency' => 'Argentine Peso', 44 ), 45 7 => 46 array ( 47 'code' => 'AUD', 48 'currency' => 'Australian Dollar', 49 ), 50 8 => 51 array ( 52 'code' => 'AWG', 53 'currency' => 'Aruban Florin', 54 ), 55 9 => 56 array ( 57 'code' => 'AZN', 58 'currency' => 'Azerbaijan Manat', 59 ), 60 10 => 61 array ( 62 'code' => 'BAM', 63 'currency' => 'Convertible Mark', 64 ), 65 11 => 66 array ( 67 'code' => 'BBD', 68 'currency' => 'Barbados Dollar', 69 ), 70 12 => 71 array ( 72 'code' => 'BDT', 73 'currency' => 'Taka', 74 ), 75 13 => 76 array ( 77 'code' => 'BGN', 78 'currency' => 'Bulgarian Lev', 79 ), 80 14 => 81 array ( 82 'code' => 'BHD', 83 'currency' => 'Bahraini Dinar', 84 ), 85 15 => 86 array ( 87 'code' => 'BIF', 88 'currency' => 'Burundi Franc', 89 ), 90 16 => 91 array ( 92 'code' => 'BMD', 93 'currency' => 'Bermudian Dollar', 94 ), 95 17 => 96 array ( 97 'code' => 'BND', 98 'currency' => 'Brunei Dollar', 99 ), 100 18 => 101 array ( 102 'code' => 'BOB', 103 'currency' => 'Boliviano', 104 ), 105 19 => 106 array ( 107 'code' => 'BOV', 108 'currency' => 'Mvdol', 109 ), 110 20 => 111 array ( 112 'code' => 'BRL', 113 'currency' => 'Brazilian Real', 114 ), 115 21 => 116 array ( 117 'code' => 'BSD', 118 'currency' => 'Bahamian Dollar', 119 ), 120 22 => 121 array ( 122 'code' => 'BTN', 123 'currency' => 'Ngultrum', 124 ), 125 23 => 126 array ( 127 'code' => 'BWP', 128 'currency' => 'Pula', 129 ), 130 24 => 131 array ( 132 'code' => 'BYN', 133 'currency' => 'Belarusian Ruble', 134 ), 135 25 => 136 array ( 137 'code' => 'BZD', 138 'currency' => 'Belize Dollar', 139 ), 140 26 => 141 array ( 142 'code' => 'CAD', 143 'currency' => 'Canadian Dollar', 144 ), 145 27 => 146 array ( 147 'code' => 'CDF', 148 'currency' => 'Congolese Franc', 149 ), 150 28 => 151 array ( 152 'code' => 'CHE', 153 'currency' => 'WIR Euro', 154 ), 155 29 => 156 array ( 157 'code' => 'CHF', 158 'currency' => 'Swiss Franc', 159 ), 160 30 => 161 array ( 162 'code' => 'CHW', 163 'currency' => 'WIR Franc', 164 ), 165 31 => 166 array ( 167 'code' => 'CLF', 168 'currency' => 'Unidad de Fomento', 169 ), 170 32 => 171 array ( 172 'code' => 'CLP', 173 'currency' => 'Chilean Peso', 174 ), 175 33 => 176 array ( 177 'code' => 'CNY', 178 'currency' => 'Yuan Renminbi', 179 ), 180 34 => 181 array ( 182 'code' => 'COP', 183 'currency' => 'Colombian Peso', 184 ), 185 35 => 186 array ( 187 'code' => 'COU', 188 'currency' => 'Unidad de Valor Real', 189 ), 190 36 => 191 array ( 192 'code' => 'CRC', 193 'currency' => 'Costa Rican Colon', 194 ), 195 37 => 196 array ( 197 'code' => 'CUC', 198 'currency' => 'Peso Convertible', 199 ), 200 38 => 201 array ( 202 'code' => 'CUP', 203 'currency' => 'Cuban Peso', 204 ), 205 39 => 206 array ( 207 'code' => 'CVE', 208 'currency' => 'Cabo Verde Escudo', 209 ), 210 40 => 211 array ( 212 'code' => 'CZK', 213 'currency' => 'Czech Koruna', 214 ), 215 41 => 216 array ( 217 'code' => 'DJF', 218 'currency' => 'Djibouti Franc', 219 ), 220 42 => 221 array ( 222 'code' => 'DKK', 223 'currency' => 'Danish Krone', 224 ), 225 43 => 226 array ( 227 'code' => 'DOP', 228 'currency' => 'Dominican Peso', 229 ), 230 44 => 231 array ( 232 'code' => 'DZD', 233 'currency' => 'Algerian Dinar', 234 ), 235 45 => 236 array ( 237 'code' => 'EGP', 238 'currency' => 'Egyptian Pound', 239 ), 240 46 => 241 array ( 242 'code' => 'ERN', 243 'currency' => 'Nakfa', 244 ), 245 47 => 246 array ( 247 'code' => 'ETB', 248 'currency' => 'Ethiopian Birr', 249 ), 250 48 => 251 array ( 252 'code' => 'EUR', 253 'currency' => 'Euro', 254 ), 255 49 => 256 array ( 257 'code' => 'FJD', 258 'currency' => 'Fiji Dollar', 259 ), 260 50 => 261 array ( 262 'code' => 'FKP', 263 'currency' => 'Falkland Islands Pound', 264 ), 265 51 => 266 array ( 267 'code' => 'GBP', 268 'currency' => 'Pound Sterling', 269 ), 270 52 => 271 array ( 272 'code' => 'GEL', 273 'currency' => 'Lari', 274 ), 275 53 => 276 array ( 277 'code' => 'GHS', 278 'currency' => 'Ghana Cedi', 279 ), 280 54 => 281 array ( 282 'code' => 'GIP', 283 'currency' => 'Gibraltar Pound', 284 ), 285 55 => 286 array ( 287 'code' => 'GMD', 288 'currency' => 'Dalasi', 289 ), 290 56 => 291 array ( 292 'code' => 'GNF', 293 'currency' => 'Guinean Franc', 294 ), 295 57 => 296 array ( 297 'code' => 'GTQ', 298 'currency' => 'Quetzal', 299 ), 300 58 => 301 array ( 302 'code' => 'GYD', 303 'currency' => 'Guyana Dollar', 304 ), 305 59 => 306 array ( 307 'code' => 'HKD', 308 'currency' => 'Hong Kong Dollar', 309 ), 310 60 => 311 array ( 312 'code' => 'HNL', 313 'currency' => 'Lempira', 314 ), 315 61 => 316 array ( 317 'code' => 'HRK', 318 'currency' => 'Kuna', 319 ), 320 62 => 321 array ( 322 'code' => 'HTG', 323 'currency' => 'Gourde', 324 ), 325 63 => 326 array ( 327 'code' => 'HUF', 328 'currency' => 'Forint', 329 ), 330 64 => 331 array ( 332 'code' => 'IDR', 333 'currency' => 'Rupiah', 334 ), 335 65 => 336 array ( 337 'code' => 'ILS', 338 'currency' => 'New Israeli Sheqel', 339 ), 340 66 => 341 array ( 342 'code' => 'INR', 343 'currency' => 'Indian Rupee', 344 ), 345 67 => 346 array ( 347 'code' => 'IQD', 348 'currency' => 'Iraqi Dinar', 349 ), 350 68 => 351 array ( 352 'code' => 'IRR', 353 'currency' => 'Iranian Rial', 354 ), 355 69 => 356 array ( 357 'code' => 'ISK', 358 'currency' => 'Iceland Krona', 359 ), 360 70 => 361 array ( 362 'code' => 'JMD', 363 'currency' => 'Jamaican Dollar', 364 ), 365 71 => 366 array ( 367 'code' => 'JOD', 368 'currency' => 'Jordanian Dinar', 369 ), 370 72 => 371 array ( 372 'code' => 'JPY', 373 'currency' => 'Yen', 374 ), 375 73 => 376 array ( 377 'code' => 'KES', 378 'currency' => 'Kenyan Shilling', 379 ), 380 74 => 381 array ( 382 'code' => 'KGS', 383 'currency' => 'Som', 384 ), 385 75 => 386 array ( 387 'code' => 'KHR', 388 'currency' => 'Riel', 389 ), 390 76 => 391 array ( 392 'code' => 'KMF', 393 'currency' => 'Comorian Franc ', 394 ), 395 77 => 396 array ( 397 'code' => 'KPW', 398 'currency' => 'North Korean Won', 399 ), 400 78 => 401 array ( 402 'code' => 'KRW', 403 'currency' => 'Won', 404 ), 405 79 => 406 array ( 407 'code' => 'KWD', 408 'currency' => 'Kuwaiti Dinar', 409 ), 410 80 => 411 array ( 412 'code' => 'KYD', 413 'currency' => 'Cayman Islands Dollar', 414 ), 415 81 => 416 array ( 417 'code' => 'KZT', 418 'currency' => 'Tenge', 419 ), 420 82 => 421 array ( 422 'code' => 'LAK', 423 'currency' => 'Lao Kip', 424 ), 425 83 => 426 array ( 427 'code' => 'LBP', 428 'currency' => 'Lebanese Pound', 429 ), 430 84 => 431 array ( 432 'code' => 'LKR', 433 'currency' => 'Sri Lanka Rupee', 434 ), 435 85 => 436 array ( 437 'code' => 'LRD', 438 'currency' => 'Liberian Dollar', 439 ), 440 86 => 441 array ( 442 'code' => 'LSL', 443 'currency' => 'Loti', 444 ), 445 87 => 446 array ( 447 'code' => 'LYD', 448 'currency' => 'Libyan Dinar', 449 ), 450 88 => 451 array ( 452 'code' => 'MAD', 453 'currency' => 'Moroccan Dirham', 454 ), 455 89 => 456 array ( 457 'code' => 'MDL', 458 'currency' => 'Moldovan Leu', 459 ), 460 90 => 461 array ( 462 'code' => 'MGA', 463 'currency' => 'Malagasy Ariary', 464 ), 465 91 => 466 array ( 467 'code' => 'MKD', 468 'currency' => 'Denar', 469 ), 470 92 => 471 array ( 472 'code' => 'MMK', 473 'currency' => 'Kyat', 474 ), 475 93 => 476 array ( 477 'code' => 'MNT', 478 'currency' => 'Tugrik', 479 ), 480 94 => 481 array ( 482 'code' => 'MOP', 483 'currency' => 'Pataca', 484 ), 485 95 => 486 array ( 487 'code' => 'MRU', 488 'currency' => 'Ouguiya', 489 ), 490 96 => 491 array ( 492 'code' => 'MUR', 493 'currency' => 'Mauritius Rupee', 494 ), 495 97 => 496 array ( 497 'code' => 'MVR', 498 'currency' => 'Rufiyaa', 499 ), 500 98 => 501 array ( 502 'code' => 'MWK', 503 'currency' => 'Malawi Kwacha', 504 ), 505 99 => 506 array ( 507 'code' => 'MXN', 508 'currency' => 'Mexican Peso', 509 ), 510 100 => 511 array ( 512 'code' => 'MXV', 513 'currency' => 'Mexican Unidad de Inversion (UDI)', 514 ), 515 101 => 516 array ( 517 'code' => 'MYR', 518 'currency' => 'Malaysian Ringgit', 519 ), 520 102 => 521 array ( 522 'code' => 'MZN', 523 'currency' => 'Mozambique Metical', 524 ), 525 103 => 526 array ( 527 'code' => 'NAD', 528 'currency' => 'Namibia Dollar', 529 ), 530 104 => 531 array ( 532 'code' => 'NGN', 533 'currency' => 'Naira', 534 ), 535 105 => 536 array ( 537 'code' => 'NIO', 538 'currency' => 'Cordoba Oro', 539 ), 540 106 => 541 array ( 542 'code' => 'NOK', 543 'currency' => 'Norwegian Krone', 544 ), 545 107 => 546 array ( 547 'code' => 'NPR', 548 'currency' => 'Nepalese Rupee', 549 ), 550 108 => 551 array ( 552 'code' => 'NZD', 553 'currency' => 'New Zealand Dollar', 554 ), 555 109 => 556 array ( 557 'code' => 'OMR', 558 'currency' => 'Rial Omani', 559 ), 560 110 => 561 array ( 562 'code' => 'PAB', 563 'currency' => 'Balboa', 564 ), 565 111 => 566 array ( 567 'code' => 'PEN', 568 'currency' => 'Sol', 569 ), 570 112 => 571 array ( 572 'code' => 'PGK', 573 'currency' => 'Kina', 574 ), 575 113 => 576 array ( 577 'code' => 'PHP', 578 'currency' => 'Philippine Peso', 579 ), 580 114 => 581 array ( 582 'code' => 'PKR', 583 'currency' => 'Pakistan Rupee', 584 ), 585 115 => 586 array ( 587 'code' => 'PLN', 588 'currency' => 'Zloty', 589 ), 590 116 => 591 array ( 592 'code' => 'PYG', 593 'currency' => 'Guarani', 594 ), 595 117 => 596 array ( 597 'code' => 'QAR', 598 'currency' => 'Qatari Rial', 599 ), 600 118 => 601 array ( 602 'code' => 'RON', 603 'currency' => 'Romanian Leu', 604 ), 605 119 => 606 array ( 607 'code' => 'RSD', 608 'currency' => 'Serbian Dinar', 609 ), 610 120 => 611 array ( 612 'code' => 'RUB', 613 'currency' => 'Russian Ruble', 614 ), 615 121 => 616 array ( 617 'code' => 'RWF', 618 'currency' => 'Rwanda Franc', 619 ), 620 122 => 621 array ( 622 'code' => 'SAR', 623 'currency' => 'Saudi Riyal', 624 ), 625 123 => 626 array ( 627 'code' => 'SBD', 628 'currency' => 'Solomon Islands Dollar', 629 ), 630 124 => 631 array ( 632 'code' => 'SCR', 633 'currency' => 'Seychelles Rupee', 634 ), 635 125 => 636 array ( 637 'code' => 'SDG', 638 'currency' => 'Sudanese Pound', 639 ), 640 126 => 641 array ( 642 'code' => 'SEK', 643 'currency' => 'Swedish Krona', 644 ), 645 127 => 646 array ( 647 'code' => 'SGD', 648 'currency' => 'Singapore Dollar', 649 ), 650 128 => 651 array ( 652 'code' => 'SHP', 653 'currency' => 'Saint Helena Pound', 654 ), 655 129 => 656 array ( 657 'code' => 'SLL', 658 'currency' => 'Leone', 659 ), 660 130 => 661 array ( 662 'code' => 'SOS', 663 'currency' => 'Somali Shilling', 664 ), 665 131 => 666 array ( 667 'code' => 'SRD', 668 'currency' => 'Surinam Dollar', 669 ), 670 132 => 671 array ( 672 'code' => 'SSP', 673 'currency' => 'South Sudanese Pound', 674 ), 675 133 => 676 array ( 677 'code' => 'STN', 678 'currency' => 'Dobra', 679 ), 680 134 => 681 array ( 682 'code' => 'SVC', 683 'currency' => 'El Salvador Colon', 684 ), 685 135 => 686 array ( 687 'code' => 'SYP', 688 'currency' => 'Syrian Pound', 689 ), 690 136 => 691 array ( 692 'code' => 'SZL', 693 'currency' => 'Lilangeni', 694 ), 695 137 => 696 array ( 697 'code' => 'THB', 698 'currency' => 'Baht', 699 ), 700 138 => 701 array ( 702 'code' => 'TJS', 703 'currency' => 'Somoni', 704 ), 705 139 => 706 array ( 707 'code' => 'TMT', 708 'currency' => 'Turkmenistan New Manat', 709 ), 710 140 => 711 array ( 712 'code' => 'TND', 713 'currency' => 'Tunisian Dinar', 714 ), 715 141 => 716 array ( 717 'code' => 'TOP', 718 'currency' => 'Pa’anga', 719 ), 720 142 => 721 array ( 722 'code' => 'TRY', 723 'currency' => 'Turkish Lira', 724 ), 725 143 => 726 array ( 727 'code' => 'TTD', 728 'currency' => 'Trinidad and Tobago Dollar', 729 ), 730 144 => 731 array ( 732 'code' => 'TWD', 733 'currency' => 'New Taiwan Dollar', 734 ), 735 145 => 736 array ( 737 'code' => 'TZS', 738 'currency' => 'Tanzanian Shilling', 739 ), 740 146 => 741 array ( 742 'code' => 'UAH', 743 'currency' => 'Hryvnia', 744 ), 745 147 => 746 array ( 747 'code' => 'UGX', 748 'currency' => 'Uganda Shilling', 749 ), 750 148 => 751 array ( 752 'code' => 'USD', 753 'currency' => 'US Dollar', 754 ), 755 149 => 756 array ( 757 'code' => 'USN', 758 'currency' => 'US Dollar (Next day)', 759 ), 760 150 => 761 array ( 762 'code' => 'UYI', 763 'currency' => 'Uruguay Peso en Unidades Indexadas (UI)', 764 ), 765 151 => 766 array ( 767 'code' => 'UYU', 768 'currency' => 'Peso Uruguayo', 769 ), 770 152 => 771 array ( 772 'code' => 'UYW', 773 'currency' => 'Unidad Previsional', 774 ), 775 153 => 776 array ( 777 'code' => 'UZS', 778 'currency' => 'Uzbekistan Sum', 779 ), 780 154 => 781 array ( 782 'code' => 'VES', 783 'currency' => 'Bolívar Soberano', 784 ), 785 155 => 786 array ( 787 'code' => 'VND', 788 'currency' => 'Dong', 789 ), 790 156 => 791 array ( 792 'code' => 'VUV', 793 'currency' => 'Vatu', 794 ), 795 157 => 796 array ( 797 'code' => 'WST', 798 'currency' => 'Tala', 799 ), 800 158 => 801 array ( 802 'code' => 'XAF', 803 'currency' => 'CFA Franc BEAC', 804 ), 805 159 => 806 array ( 807 'code' => 'XAG', 808 'currency' => 'Silver', 809 ), 810 160 => 811 array ( 812 'code' => 'XAU', 813 'currency' => 'Gold', 814 ), 815 161 => 816 array ( 817 'code' => 'XBA', 818 'currency' => 'Bond Markets Unit European Composite Unit (EURCO)', 819 ), 820 162 => 821 array ( 822 'code' => 'XBB', 823 'currency' => 'Bond Markets Unit European Monetary Unit (E.M.U.-6)', 824 ), 825 163 => 826 array ( 827 'code' => 'XBC', 828 'currency' => 'Bond Markets Unit European Unit of Account 9 (E.U.A.-9)', 829 ), 830 164 => 831 array ( 832 'code' => 'XBD', 833 'currency' => 'Bond Markets Unit European Unit of Account 17 (E.U.A.-17)', 834 ), 835 165 => 836 array ( 837 'code' => 'XCD', 838 'currency' => 'East Caribbean Dollar', 839 ), 840 166 => 841 array ( 842 'code' => 'XDR', 843 'currency' => 'SDR (Special Drawing Right)', 844 ), 845 167 => 846 array ( 847 'code' => 'XOF', 848 'currency' => 'CFA Franc BCEAO', 849 ), 850 168 => 851 array ( 852 'code' => 'XPD', 853 'currency' => 'Palladium', 854 ), 855 169 => 856 array ( 857 'code' => 'XPF', 858 'currency' => 'CFP Franc', 859 ), 860 170 => 861 array ( 862 'code' => 'XPT', 863 'currency' => 'Platinum', 864 ), 865 171 => 866 array ( 867 'code' => 'XSU', 868 'currency' => 'Sucre', 869 ), 870 172 => 871 array ( 872 'code' => 'XTS', 873 'currency' => 'Codes specifically reserved for testing purposes', 874 ), 875 173 => 876 array ( 877 'code' => 'XUA', 878 'currency' => 'ADB Unit of Account', 879 ), 880 174 => 881 array ( 882 'code' => 'XXX', 883 'currency' => 'The codes assigned for transactions where no currency is involved', 884 ), 885 175 => 886 array ( 887 'code' => 'YER', 888 'currency' => 'Yemeni Rial', 889 ), 890 176 => 891 array ( 892 'code' => 'ZAR', 893 'currency' => 'Rand', 894 ), 895 177 => 896 array ( 897 'code' => 'ZMW', 898 'currency' => 'Zambian Kwacha', 899 ), 900 178 => 901 array ( 902 'code' => 'ZWL', 903 'currency' => 'Zimbabwe Dollar', 904 ), 905 ) ); 906 9 907 define( 'DF_SPL_QUIZ_CHOICES', [ 10 908 'step1' => [ … … 40 938 [ 41 939 'choiceTitle' => 'Price List', 42 'key' => ' straight-forward',940 'key' => 'price-list', 43 941 'icon' => 'price list icon', 942 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001184064', 943 'articleTitle' => 'Basics Explained: How do I Use Stylish Price List?' 944 ], 945 [ 946 'choiceTitle' => 'Pricing Table', 947 'key' => 'pricing-table', 948 'icon' => 'pricing table icon', 44 949 'helpLink' => '#', 45 ],46 [47 'choiceTitle' => 'Pricing Table',48 // 'choiceDescription' => 'I give discounts to customers who buy in bulk (10 or more items)',49 'key' => 'bulk-pricing',50 'icon' => 'pricing table icon',51 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001236631-show-user-savings-how-to-visualize-savings-to-your-customers',52 950 ] 53 951 ], … … 58 956 'key' => 'search-bar', 59 957 'icon' => 'Search bar', 60 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001179707-lead-generation-force-users-to-give-their-details-email-before-seeing-the-price', 61 ], 62 // [ 63 // 'choiceTitle' => 'Lead Generation', 64 // 'choiceDescription' => 'Users can see the total price but choose to email it to themselves', 65 // 'key' => 'lead-gen-user-can-email-total', 66 // ], 958 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001256263', 959 'articleTitle' => 'Search & Filter - A Complete Guide', 960 ], 67 961 [ 68 962 'choiceTitle' => 'Sortable Tabs (Categories/Sections)', … … 70 964 'key' => 'sortable-tabs', 71 965 'icon' => 'Sortable Tabs', 72 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001142348-email-quote-form-a-complete-guide', 966 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257487', 967 'articleTitle' => 'Sortable Category Tabs: A Complete Guide', 73 968 ], 74 969 [ … … 77 972 'key' => 'buy-now-btn', 78 973 'icon' => 'Buy Now buttons', 79 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001167920-stripe-integration-everything-to-know', 974 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257484', 975 'articleTitle' => 'Buy Now Buttons: A Complete Guide', 80 976 ], 81 977 [ … … 84 980 'key' => 'qr-code-menu', 85 981 'icon' => 'QR Code for Menu', 86 'helpLink' => 'https:// designful.freshdesk.com/a/solutions/articles/48001247099',982 'helpLink' => 'https://stylishpricelist.com/qr-code-menu-for-restaurants/', 87 983 ], 88 984 [ … … 91 987 'key' => 'analytics', 92 988 'icon' => 'Analytics', 93 'helpLink' => ' https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider',989 'helpLink' => '#', 94 990 ], 95 991 [ … … 98 994 'key' => 'images', 99 995 'icon' => 'Images', 100 'helpLink' => '#', 996 'helpLink' => ['https://designful.freshdesk.com/a/solutions/articles/48001256591', 'https://designful.freshdesk.com/a/solutions/articles/48001196681'], 997 'articleTitle' => 'Expanded Image Support: A Complete Guide', 101 998 ], 102 999 [ … … 105 1002 'key' => 'tooltips', 106 1003 'icon' => 'Tool-tips', 107 'helpLink' => '#', 1004 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001256517', 1005 'articleTitle' => 'Frontend Tool-Tips: A Complete Guide', 108 1006 ], 109 1007 [ … … 119 1017 'key' => 'sticky-category-bar', 120 1018 'icon' => 'sticky-bar', 121 'helpLink' => '#', 1019 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257031', 1020 'articleTitle' => 'Sticky Category Bar: A Complete Guide', 122 1021 ], 123 1022 ], … … 128 1027 'key' => 'predefined-themes', 129 1028 'icon' => 'Predefined Themes', 130 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001157409-conditional-logic-a-complete-guide', 1029 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257852', 1030 'articleTitle' => 'Frontend styles: A Complete Guide', 131 1031 ], 132 1032 [ … … 135 1035 'key' => 'custom-styling', 136 1036 'icon' => 'Custom Styling', 137 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001238157-sms-quotes-a-complete-guide', 138 ], 139 // AI suggestions 140 // [ 141 // 'choiceTitle' => 'Custom Fonts', 142 // 'choiceDescription' => 'I need to use a specific font for my menu', 143 // 'key' => 'custom-fonts', 144 // 'icon' => 'font_download', 145 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 146 // ], 147 // [ 148 // 'choiceTitle' => 'Custom Colors', 149 // 'choiceDescription' => 'I need to use a specific color for my menu', 150 // 'key' => 'custom-colors', 151 // 'icon' => 'color_lens', 152 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 153 // ], 154 // [ 155 // 'choiceTitle' => 'Custom Layout', 156 // 'choiceDescription' => 'I need to use a specific layout for my menu', 157 // 'key' => 'custom-layout', 158 // 'icon' => 'view_quilt', 159 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 160 // ], 161 // [ 162 // 'choiceTitle' => 'Custom Icons', 163 // 'choiceDescription' => 'I need to use a specific icon for my menu', 164 // 'key' => 'custom-icons', 165 // 'icon' => 'insert_emoticon', 166 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 167 // ], 168 // [ 169 // 'choiceTitle' => 'Custom Background', 170 // 'choiceDescription' => 'I need to use a specific background for my menu', 171 // 'key' => 'custom-background', 172 // 'icon' => 'image', 173 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 174 // ], 175 // [ 176 // 'choiceTitle' => 'Custom Buttons', 177 // 'choiceDescription' => 'I need to use a specific button for my menu', 178 // 'key' => 'custom-buttons', 179 // 'icon' => 'smart_button', 180 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 181 // ], 1037 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001081158', 1038 'articleTitle' => 'How do I add extra style (bold or uppercase lettering) to my titles or descriptions?', 1039 ], 182 1040 [ 183 1041 'choiceTitle' => 'Other', … … 194 1052 'key' => 'discounts-special-offers', 195 1053 'icon' => 'Special Offers', 196 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243749-form-conversion-analytics-a-complete-guide', 1054 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257034', 1055 'articleTitle' => 'Compare At Price Feature: A Complete Guide', 197 1056 ], 198 1057 [ … … 201 1060 'key' => 'new-items', 202 1061 'icon' => 'New Items', 203 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243747-user-source-analytics-a-complete-guide',1062 // 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001142353', 204 1063 ], 205 1064 [ … … 208 1067 'key' => 'popular-items', 209 1068 'icon' => 'Popular items', 210 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243581-mandatory-minimum-total-a-complete-guide',1069 // 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001142353', 211 1070 ], 212 1071 [ … … 215 1074 'key' => 'seo-feature-product-jsonld', 216 1075 'icon' => 'seo', 1076 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257854', 1077 'articleTitle' => 'SEO Boost with JSON LD: A Complete Guide', 217 1078 ], 218 1079 [ … … 225 1086 ], 226 1087 'stepResult' => [ 227 [228 'choiceTitle' => 'Conditional Logic',229 'icon' => 'git-pull-request',230 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001157409',231 'key' => 'conditional-logic',232 ],233 [234 'choiceTitle' => 'Bulk Discounts',235 'icon' => 'hash',236 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001236631-show-user-savings-how-to-visualize-savings-to-your-customers',237 'key' => 'bulk-discounts',238 ],239 [240 'choiceTitle' => 'PayPal',241 'icon' => 'paypal',242 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48000948103-paypal-integration',243 'key' => 'paypal',244 ],245 [246 'choiceTitle' => 'SMS Quotes',247 'icon' => 'sms',248 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001238157',249 'key' => 'sms-feature',250 ],251 [252 'choiceTitle' => 'Stripe',253 'icon' => 'stripe',254 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001244063-stripe-subscriptions-a-complete-guide',255 'key' => 'stripe',256 ],257 [258 'choiceTitle' => 'Woocommerce',259 'icon' => 'hash',260 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001076926-woocommerce-integration',261 'key' => 'woocommerce',262 ],263 [264 'choiceTitle' => 'Total Price',265 'icon' => 'hash',266 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001232354',267 'key' => 'total-price',268 ],269 [270 'choiceTitle' => 'Turn Off the Total Price',271 'icon' => 'hash',272 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001158544-collect-customer-information-how-can-i-force-the-user-to-give-an-email-before-seeing-the-price-',273 'key' => 'turn-off-total-price',274 ],275 [276 'choiceTitle' => 'Email Quote Button as Primary CTA, other buttons a secondary button',277 'choiceSimpleTitle' => 'Email Quote Button as Primary CTA',278 'icon' => 'hash',279 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001142348-email-quote-form-a-complete-guide',280 'key' => 'email-quote-primary-cta',281 ],282 [283 'choiceTitle' => 'Customize Outgoing Email',284 'icon' => 'hash',285 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001238156-customize-the-email-quote-message-at-the-calculator-level',286 'key' => 'email-quote-custom-outgoing-message',287 ],288 [289 'choiceTitle' => 'Zapier/Webhooks',290 'icon' => 'hash',291 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001216553',292 'key' => 'use-webhooks',293 ],294 [295 'choiceTitle' => 'Multi Step Feature',296 'icon' => 'hash',297 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001217530',298 'key' => 'use-multi-step',299 ],300 [301 'choiceTitle' => 'Live Currency Conversion',302 'icon' => 'hash',303 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001143319',304 'key' => 'use-live-currency-conversion',305 ],306 [307 'choiceTitle' => 'Custom Totals',308 'icon' => 'hash',309 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001216489',310 'key' => 'use-custom-totals',311 ],312 [313 'choiceTitle' => 'Quote Management Screen',314 'icon' => 'hash',315 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001216303',316 'key' => 'use-quote-management-screen',317 ],318 [319 'choiceTitle' => 'Coupon Code',320 'icon' => 'hash',321 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001168949',322 'key' => 'use-coupon-code-btn',323 ],324 [325 'choiceTitle' => 'Cost Per Unit',326 'icon' => 'hash',327 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001231939-per-unit-price-a-complete-guide-for-the-global-per-unit-cost',328 'key' => 'use-cost-per-unit',329 ],330 [331 'choiceTitle' => 'Custom Totals',332 'icon' => 'hash',333 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001216489-custom-totals-a-complete-guide',334 'key' => 'use-custom-totals',335 ],336 [337 'choiceTitle' => 'Custom Event Triggers',338 'icon' => 'hash',339 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001201874',340 'key' => 'use-custom-event-triggers',341 ],342 [343 'choiceTitle' => 'Minimum Total',344 'icon' => 'hash',345 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243581-mandatory-minimum-total-a-complete-guide',346 'key' => 'use-minimum-total-feature',347 ],348 [349 'choiceTitle' => 'Conditional Logic with Text Elements',350 'choiceSimpleTitle' => 'Conditional Logic',351 'icon' => 'hash',352 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001241026-implementing-context-specific-alerts-your-step-by-step-guide-to-conditional-banners-and-messages',353 'key' => 'use-cl-with-txt-elements',354 ],355 [356 'choiceTitle' => 'Fontend Tool-Tips',357 'icon' => 'hash',358 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001216306',359 'key' => 'use-frontend-tooltips',360 ],361 [362 'choiceTitle' => 'Price Hint',363 'icon' => 'hash',364 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001142314-price-hint-learn-more-about-this-feature',365 'key' => 'use-price-hint',366 ],367 [368 'choiceTitle' => 'Email Validator',369 'icon' => 'hash',370 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001219857-email-validator-the-ultimate-guide',371 'key' => 'use-email-validator',372 ],373 [374 'choiceTitle' => 'Detailed List',375 'icon' => 'list',376 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001215062-floating-itemized-list-detailed-list-view-a-complete-guide',377 'key' => 'detailed-list',378 ],379 [380 'choiceTitle' => 'Turn Off the Detailed List',381 'icon' => 'list',382 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001151623-coupon-detailed-list-buttons-how-do-i-remove-them-',383 'key' => 'turn-off-detailed-list',384 ],385 [386 'choiceTitle' => 'Activate Accordion',387 'icon' => 'list',388 'helpLink' => '#',389 'key' => 'activate-accordion',390 ],391 [392 'choiceTitle' => 'Activate Multi-Step Forms',393 'icon' => 'list',394 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001217530',395 'key' => 'activate-multiple-step',396 ],397 [398 'choiceTitle' => 'Form Conversion Analytics',399 'key' => 'form-conversion-analytics',400 'icon' => 'show_chart',401 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243749-form-conversion-analytics-a-complete-guide',402 ],403 [404 'choiceTitle' => 'Lead Source Analytics',405 'key' => 'lead-source-analytics',406 'icon' => 'show_chart',407 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243747-lead-source-analytics-a-complete-guide',408 ],409 [410 'choiceTitle' => 'Quotes & Leads Dashboard',411 'key' => 'quotes-n-leads-dashboard',412 'icon' => 'assignment',413 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001216303-leads-quotes-management-system-a-complete-guide',414 ],415 1088 ], 416 1089 'elementSuggestions' => [ 417 [418 'choiceTitle' => 'Dropdown',419 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207045-element-dropdown-menu',420 'icon' => 'list',421 'key' => 'dropdown-element',422 ],423 [424 'choiceTitle' => 'Simple Buttons',425 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207024-element-checkbox-toggle-switches-simple-buttons',426 'icon' => 'smart_button',427 'key' => 'simple-buttons-element',428 ],429 [430 'choiceTitle' => 'Checkbox',431 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207024-element-checkbox-toggle-switches-simple-buttons',432 'icon' => 'check-square',433 'key' => 'checkbox-element',434 ],435 [436 'choiceTitle' => 'Comment Box',437 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001217498-element-comment-box',438 'icon' => 'message-circle',439 'key' => 'comment-box-element',440 ],441 [442 'choiceTitle' => 'Image Buttons',443 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001207056',444 'icon' => 'image',445 'key' => 'img-btn-element',446 ],447 [448 'choiceTitle' => 'Text/HTML Box With Conditional Logic Enabled',449 'choiceSimpleTitle' => 'Text/HTML',450 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207057-element-text-html-field',451 'icon' => 'code',452 'key' => 'html-box-w-cl-element',453 ],454 [455 'choiceTitle' => 'Quantity Box',456 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001081164-element-quantity-input-box',457 'icon' => 'input-box',458 'key' => 'quantity-box-element',459 ],460 [461 'choiceTitle' => 'Custom Math',462 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001142309-element-custom-math',463 'icon' => 'plus-square',464 'key' => 'custom-math-element',465 ],466 [467 'choiceTitle' => 'File Upload',468 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001166819',469 'icon' => 'paperclip',470 'key' => 'file-upload-element',471 ],472 [473 'choiceTitle' => 'TEXT/HTML',474 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207057-element-text-html-field',475 'icon' => 'type',476 'key' => 'text-html-element',477 ],478 [479 'choiceTitle' => 'Slider (with elements above it in the same subsection) (therefore, it will multiply the items and act a quantity modifier)',480 'choiceSimpleTitle' => 'Slider',481 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001079780',482 'icon' => 'sliders',483 'key' => 'slider-element',484 ],485 [486 'choiceTitle' => 'Slider With the Bulk Pricing or Sliding Scale Pricing Mode Turned On',487 'choiceSimpleTitle' => 'Slider',488 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001079780',489 'icon' => 'sliders',490 'key' => 'slider-with-bulk-or-sliding-pricing-element',491 ],492 [493 'choiceTitle' => 'Custom Math With Conditional Logic trigger',494 'choiceSimpleTitle' => 'Custom Math',495 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001208121',496 'icon' => 'plus-square',497 'key' => 'custom-math-with-cl-trigger-element',498 ],499 [500 'choiceTitle' => 'Image Buttons With Quantity Selector enabled',501 'choiceSimpleTitle' => 'Image Buttons',502 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207056-element-image-buttons',503 'icon' => 'image',504 'key' => 'image-btn-w-qtn-sel-element',505 ],506 [507 'choiceTitle' => 'Variable Math',508 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001202286',509 'icon' => 'sliders',510 'key' => 'variable-math-element',511 ],512 [513 'choiceTitle' => 'Date Picker',514 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001216557',515 'icon' => 'calendar',516 'key' => 'date-picker-element',517 ],518 [519 'choiceTitle' => 'Distance-based Calculations',520 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001244300-element-distance-based-cost',521 'icon' => 'map-pin',522 'key' => 'distance-element',523 ],524 1090 ], 525 1091 ] ); -
stylish-price-list/tags/7.1.6/functions.php
r2937092 r3120663 12 12 } 13 13 14 15 if (!function_exists('spl_generate_schema_markup')) { 16 function spl_generate_schema_markup( $spl_data_values, $jsonld_currency ) { 17 18 // Populate the offers array 19 foreach ($spl_data_values as $category) { 20 $category_name = $category['name']; 21 foreach (array_keys($category) as $key => $value) { 22 $product = $category[$value]; 23 if ( !is_array( $product ) ) { 24 continue; 25 } 26 $price = $product['service_price']; 27 // strip the currency symbol 28 $price = preg_replace( '/[^0-9.]/', '', $price ); 29 // check if $product['service_image'] is a valid URL, and if $price is not empty 30 if ( !filter_var( $product['service_image'], FILTER_VALIDATE_URL ) || empty( $price ) ) { 31 continue; 32 } 33 $schema_data = [ 34 "@context" => "https://schema.org/", 35 "@type" => "Product", 36 "name" => html_entity_decode( $product['service_name'] ), 37 "category" => $category_name, 38 "description" => $product['service_long_description'], 39 "offers" => [ 40 "@type" => "Offer", 41 "price" => $price, 42 "priceCurrency" => $jsonld_currency, 43 "availability" => "https://schema.org/InStock", 44 "url" => get_permalink( $product['service_id'] ) 45 ], 46 "image" => [ 47 "@type" => "ImageObject", 48 "url" => $product['service_image'], 49 "image" => $product['service_image'], 50 "name" => html_entity_decode( $product['service_name'] ) 51 ] 52 ]; 53 // Encode the array to JSON 54 $jsonLd = json_encode( $schema_data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT ); 55 // Output the schema 56 echo '<script id="schemaorg" type="application/ld+json">' . $jsonLd . '</script>'; 57 } 58 } 59 } 60 } 61 -
stylish-price-list/tags/7.1.6/readme.txt
r3107450 r3120663 4 4 Tags: qr code menu, pricing table, restaurant menu, table builder, price list builder 5 5 Plugin URL: https://stylishpricelist.com 6 Version: 7.1. 56 Version: 7.1.6 7 7 Donate link: https://stylishpricelist.com 8 8 Requires at least: 4.0 9 9 Tested up to: 6.5.3 10 10 Requires PHP: 5.6 11 Stable tag: 7.1. 511 Stable tag: 7.1.6 12 12 License: GPLv2 or later 13 13 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
stylish-price-list/tags/7.1.6/shortcode/pricelist-frontend.php
r3107450 r3120663 58 58 $price_list_desc = isset( $cats_data['price_list_desc'] ) ? $cats_data['price_list_desc'] : ''; 59 59 $enable_searchbar = isset( $cats_data['enable_searchbar'] ) ? absint( $cats_data['enable_searchbar'] ) : 0; 60 $enable_price_range_slider = isset( $cats_data['enable_price_range_slider'] ) ? absint( $cats_data['enable_price_range_slider'] ) : 0; 60 61 $brack_title_desktop = isset( $cats_data['brack_title_desktop'] ) ? $cats_data['brack_title_desktop'] : ''; 61 62 $brack_title_tablets = isset( $cats_data['brack_title_tablets'] ) ? $cats_data['brack_title_tablets'] : ''; … … 87 88 $description_font_weight = isset( $cats_data['description_font-weight'] ) ? $cats_data['description_font-weight'] : ''; 88 89 $opt_cats = $cats_data['category']; 89 $spl_data_values = $opt_cats; 90 $jsonld_currency = isset( $cats_data['jsonld_currency'] ) ? $cats_data['jsonld_currency'] : 'USD'; 91 $spl_data_values = $opt_cats; 90 92 91 93 … … 160 162 wp_enqueue_script( 'spl-tomselect' ); 161 163 } 164 if ( $enable_price_range_slider ) { 165 wp_enqueue_style( 'spl-no-ui-slider' ); 166 wp_enqueue_script( 'spl-no-ui-slider' ); 167 } 162 168 if ( $font_source == 'use-pagefont' ) { 163 169 $list_name_font = 'inherit'; … … 180 186 function output_service_style2( $service, $is_buy_btn_newtab_enabled ) { 181 187 extract( $service ); 188 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 182 189 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 183 190 if ( empty( $name ) ) { … … 248 255 function output_service_style2_beta( $service, $is_buy_btn_newtab_enabled ) { 249 256 extract( $service ); 257 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 250 258 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 251 259 if ( empty( $name ) ) { … … 316 324 function output_service_style2_single_column( $service, $is_buy_btn_newtab_enabled ) { 317 325 extract( $service ); 326 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 318 327 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 319 328 if ( empty( $name ) ) { … … 382 391 function output_service_col1( $service, $is_buy_btn_newtab_enabled ) { 383 392 extract( $service ); 393 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 384 394 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 385 395 if ( empty( $name ) ) { … … 442 452 <?php endif; ?> 443 453 </div> 444 <div class="spl-one-bottom"></div>445 454 <?php } else { ?> 446 455 <!-- Style 1 - Without Book Now--> … … 474 483 </div> 475 484 </div> 476 <div class="spl-one-bottom"></div>477 485 </div> 478 486 <?php } ?> … … 594 602 $newTabOpen = 'target="_blank"'; 595 603 } 596 $service['price'] = empty($service['settings_compare_at']) ? $service['price'] : '<s>'.$service['settings_compare_at'].'</s>'. ' ' . $service['price']; 604 $price = $service['price']; 605 $settings_compare_at = $service['settings_compare_at']; 606 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 607 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 597 608 ob_start(); 598 609 ?> … … 605 616 <div class="spl-position_absolute spl-height-3 spl-width-full spl-bottom-2 scc-2-dotted-grey"></div> 606 617 <h4 class="style-6-2-desc"><strong data-price-list-fragment="item_name" class="name a-tag"><?php echo html_entity_decode( $service['name'] ); ?></strong></h4> 607 <h4 class="style-6-2-price"><strong data-price-list-fragment="price" class="spl-price a-tag"><?php echo html_entity_decode( $ service['price']); ?></strong></h4>618 <h4 class="style-6-2-price"><strong data-price-list-fragment="price" class="spl-price a-tag"><?php echo html_entity_decode( $price ); ?></strong></h4> 608 619 </div> 609 620 <div class="style-6-height-10"></div> … … 633 644 $newTabOpen = 'target="_blank"'; 634 645 } 646 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 647 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 635 648 ob_start(); 636 649 ?> … … 675 688 <div class="df-spl-level style-1"> 676 689 <div class="df-spl-level-right style-1"> 677 <?php echo df_spl_output_a_tag( '<s>'.$settings_compare_at.'</s>'. ' ' .$price, '', 'spl-price a-tag' ); ?>690 <?php echo df_spl_output_a_tag( $price, '', 'spl-price a-tag' ); ?> 678 691 <a href="<?php echo esc_attr($service['service_button_url']); ?>" <?php echo isset( $newTabOpen ) ? esc_attr($newTabOpen) : ''; ?> class="btn btn-book-now spl_book_now_btn_style_1"><?php echo esc_attr($service['service_button']); ?></a> 679 692 </div> … … 685 698 <?php endif; ?> 686 699 </div> 687 <div class="spl-one-bottom"></div>688 700 <?php } else { ?> 689 701 <!-- Style 1 - Without Book Now--> … … 717 729 </div> 718 730 </div> 719 <div class="spl-one-bottom"></div>720 731 </div> 721 732 <?php } ?> … … 730 741 function output_service_break_col1( $service, $is_buy_btn_newtab_enabled ) { 731 742 extract( $service ); 743 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 732 744 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 733 745 if ( empty( $name ) ) { … … 783 795 function output_service_break( $service, $is_buy_btn_newtab_enabled ) { 784 796 extract( $service ); 797 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 785 798 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 786 799 if ( empty( $name ) ) { … … 836 849 function output_service_style3( $service, $is_buy_btn_newtab_enabled ) { 837 850 extract( $service ); 851 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 838 852 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 839 853 if ( empty( $name ) ) { … … 893 907 function output_service_style4_col1( $service, $is_buy_btn_newtab_enabled ) { 894 908 extract( $service ); 909 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 895 910 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 896 911 if ( empty( $name ) ) { … … 938 953 function output_service_style4( $service, $is_buy_btn_newtab_enabled ) { 939 954 extract( $service ); 955 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 940 956 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 941 957 if ( empty( $name ) ) { … … 986 1002 } 987 1003 extract( $service ); 1004 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 988 1005 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 989 1006 if ( empty( $name ) ) { … … 1795 1812 return; 1796 1813 } 1814 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 1797 1815 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 1798 1816 if ( isset( $is_buy_btn_newtab_enabled ) && $is_buy_btn_newtab_enabled == '1' ) { … … 1861 1879 return; 1862 1880 } 1881 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 1863 1882 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 1864 1883 if ( isset( $is_buy_btn_newtab_enabled ) && $is_buy_btn_newtab_enabled == '1' ) { … … 1904 1923 return; 1905 1924 } 1925 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 1906 1926 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 1907 1927 if ( isset( $is_buy_btn_newtab_enabled ) && $is_buy_btn_newtab_enabled == '1' ) { … … 2375 2395 </span> 2376 2396 </div> 2397 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2398 <?php if ( $enable_price_range_slider ) : ?> 2399 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2400 <?php endif; ?> 2377 2401 <?php if ( $enable_searchbar ) : ?> 2378 <nav class="pricelist-searchbar ">2402 <nav class="pricelist-searchbar clearfix"> 2379 2403 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2380 2404 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> … … 2385 2409 </nav> 2386 2410 <?php endif; ?> 2411 </nav> 2387 2412 <?php if ( $price_list_desc != '' ) { ?> 2388 2413 <div class="col-sm-8 col-sm-offset-2 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> … … 2447 2472 </span> 2448 2473 </div> 2474 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2475 <?php if ( $enable_price_range_slider ) : ?> 2476 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2477 <?php endif; ?> 2449 2478 <?php if ( $enable_searchbar ) : ?> 2450 <nav class="pricelist-searchbar ">2479 <nav class="pricelist-searchbar clearfix"> 2451 2480 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2452 2481 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> … … 2457 2486 </nav> 2458 2487 <?php endif; ?> 2488 </nav> 2459 2489 <?php if ( $price_list_desc != '' ) { ?> 2460 2490 <div class="col-sm-8 col-sm-offset-2 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> … … 2535 2565 <div class="col-sm-8 col-sm-offset-2 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> 2536 2566 </div> 2537 <?php if ( $enable_searchbar ) : ?> 2538 <nav class="pricelist-searchbar"> 2539 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2540 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2541 <path d="M0 0h24v24H0V0z" fill="none" /> 2542 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2543 </svg></span> 2544 </div> 2545 </nav> 2546 <?php endif; ?> 2567 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2568 <?php if ( $enable_price_range_slider ) : ?> 2569 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2570 <?php endif; ?> 2571 <?php if ( $enable_searchbar ) : ?> 2572 <nav class="pricelist-searchbar clearfix"> 2573 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2574 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2575 <path d="M0 0h24v24H0V0z" fill="none" /> 2576 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2577 </svg></span> 2578 </div> 2579 </nav> 2580 <?php endif; ?> 2581 </nav> 2547 2582 <?php echo output_tab_contents_second_style( $cats, $default, $shortcode_id, $is_buy_btn_newtab_enabled ); ?> 2548 2583 </div> … … 2564 2599 ?> 2565 2600 </span> 2566 <?php if ( $enable_searchbar ) : ?> 2567 <nav class="style2-single-column pricelist-searchbar"> 2568 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2569 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2570 <path d="M0 0h24v24H0V0z" fill="none" /> 2571 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2572 </svg></span> 2573 </div> 2574 </nav> 2575 <?php endif; ?> 2601 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2602 <?php if ( $enable_price_range_slider ) : ?> 2603 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2604 <?php endif; ?> 2605 <?php if ( $enable_searchbar ) : ?> 2606 <nav class="pricelist-searchbar clearfix"> 2607 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2608 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2609 <path d="M0 0h24v24H0V0z" fill="none" /> 2610 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2611 </svg></span> 2612 </div> 2613 </nav> 2614 <?php endif; ?> 2615 </nav> 2576 2616 <div class="col-sm-8 col-sm-offset-2 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> 2577 2617 </div> … … 2597 2637 </span> 2598 2638 </div> 2599 <?php if ( $enable_searchbar ) : ?> 2600 <nav class="pricelist-searchbar"> 2601 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2602 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2603 <path d="M0 0h24v24H0V0z" fill="none" /> 2604 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2605 </svg></span> 2606 </div> 2607 </nav> 2608 <?php endif; ?> 2639 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2640 <?php if ( $enable_price_range_slider ) : ?> 2641 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2642 <?php endif; ?> 2643 <?php if ( $enable_searchbar ) : ?> 2644 <nav class="pricelist-searchbar clearfix"> 2645 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2646 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2647 <path d="M0 0h24v24H0V0z" fill="none" /> 2648 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2649 </svg></span> 2650 </div> 2651 </nav> 2652 <?php endif; ?> 2653 </nav> 2609 2654 <?php if ( $price_list_desc != '' ) { ?> 2610 2655 <div class="col-sm-8 col-sm-offset-2 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> … … 2639 2684 </span> 2640 2685 </div> 2641 <?php if ( $enable_searchbar ) : ?> 2642 <nav class="pricelist-searchbar"> 2643 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2644 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2645 <path d="M0 0h24v24H0V0z" fill="none" /> 2646 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2647 </svg></span> 2648 </div> 2649 </nav> 2650 <?php endif; ?> 2686 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2687 <?php if ( $enable_price_range_slider ) : ?> 2688 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2689 <?php endif; ?> 2690 <?php if ( $enable_searchbar ) : ?> 2691 <nav class="pricelist-searchbar clearfix"> 2692 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2693 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2694 <path d="M0 0h24v24H0V0z" fill="none" /> 2695 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2696 </svg></span> 2697 </div> 2698 </nav> 2699 <?php endif; ?> 2700 </nav> 2651 2701 <?php if ( $price_list_desc != '' ) { ?> 2652 2702 <div class="col-sm-12 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> … … 2734 2784 </span> 2735 2785 </div> 2786 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2787 <?php if ( $enable_price_range_slider ) : ?> 2788 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2789 <?php endif; ?> 2736 2790 <?php if ( $enable_searchbar ) : ?> 2737 <nav class="pricelist-searchbar ">2791 <nav class="pricelist-searchbar clearfix"> 2738 2792 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2739 2793 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> … … 2744 2798 </nav> 2745 2799 <?php endif; ?> 2800 </nav> 2746 2801 <?php if ( $price_list_desc != '' ) { ?> 2747 2802 <div class="col-sm-12 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> … … 2795 2850 <?php } ?> 2796 2851 </div> 2797 <?php if ( $enable_searchbar ) : ?> 2798 <nav class="pricelist-searchbar"> 2799 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2800 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2801 <path d="M0 0h24v24H0V0z" fill="none" /> 2802 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2803 </svg></span> 2804 </div> 2805 </nav> 2806 <?php endif; ?> 2852 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2853 <?php if ( $enable_price_range_slider ) : ?> 2854 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2855 <?php endif; ?> 2856 <?php if ( $enable_searchbar ) : ?> 2857 <nav class="pricelist-searchbar clearfix"> 2858 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2859 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2860 <path d="M0 0h24v24H0V0z" fill="none" /> 2861 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2862 </svg></span> 2863 </div> 2864 </nav> 2865 <?php endif; ?> 2866 </nav> 2807 2867 <div class="col-md-9 col-lg-9 style5_cat_tab tabs_spl"> 2808 2868 <?php if ( $show_dropdown ) : ?> … … 2884 2944 <?php endif; ?> 2885 2945 </div> 2886 <?php if ( $enable_searchbar ) : ?> 2887 <nav class="pricelist-searchbar"> 2888 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2889 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2890 <path d="M0 0h24v24H0V0z" fill="none" /> 2891 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2892 </svg></span> 2893 </div> 2894 </nav> 2895 <?php endif; ?> 2946 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2947 <?php if ( $enable_price_range_slider ) : ?> 2948 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2949 <?php endif; ?> 2950 <?php if ( $enable_searchbar ) : ?> 2951 <nav class="pricelist-searchbar clearfix"> 2952 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2953 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2954 <path d="M0 0h24v24H0V0z" fill="none" /> 2955 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2956 </svg></span> 2957 </div> 2958 </nav> 2959 <?php endif; ?> 2960 </nav> 2896 2961 <div class="df-spl-row"> 2897 2962 <div class="col-md-12 col-lg-12 df-spl-style7_cat_tab tabs_spl"> … … 2925 2990 </span> 2926 2991 </div> 2992 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2993 <?php if ( $enable_price_range_slider ) : ?> 2994 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2995 <?php endif; ?> 2927 2996 <?php if ( $enable_searchbar ) : ?> 2928 2997 <nav class="pricelist-searchbar clearfix"> … … 2935 3004 </nav> 2936 3005 <?php endif; ?> 3006 </nav> 2937 3007 <?php if ( $show_dropdown ) : ?> 2938 3008 <select class="cats-dd-style-8" autocomplete="off" <?php if ($dropdown_mobile_no_keyboard == '1') echo 'data-no-keyboard-popup=1' ?>> … … 3663 3733 } 3664 3734 3665 #spl_<?php echo esc_attr($id); ?>.price_wrapper .df-spl-style7_cat_tab-container ul li.active { 3735 #spl_<?php echo esc_attr($id); ?>.price_wrapper .df-spl-style7_cat_tab-container ul li.active, 3736 #spl_<?php echo esc_attr($id); ?>.price_wrapper .noUi-connect { 3666 3737 background-color: <?php echo esc_attr($hover_color); ?>; 3667 3738 } … … 3964 4035 .txt-button-style3{ 3965 4036 background:white; 3966 width:76px !important; 3967 height:28px !important; 3968 border: 1px solid #E6A900; 4037 border: 1px solid #E6A900; 4038 float: right; 3969 4039 font-size:12px; 3970 border-radius:20px; 3971 padding: 6px 14px; 3972 text-decoration:none; 3973 3974 } 3975 .txt-button-style3:hover{ 3976 width:76px !important; 3977 height:28px !important; 3978 border: 1px solid #E6A900; 3979 font-size:12px; 4040 line-height: 15px; 3980 4041 border-radius:20px; 3981 4042 padding: 6px 14px; … … 3997 4058 </style> 3998 4059 <!-- Include the plug-in --> 3999 <?php $url = plugins_url(); ?> 4060 <?php 4061 $url = plugins_url(); 4062 add_action('wp_footer', function() use ( $spl_data_values, $jsonld_currency ) { 4063 spl_generate_schema_markup( $spl_data_values, $jsonld_currency ); 4064 }); 4065 ?> 4000 4066 <script type="text/javascript"> 4001 4067 document.addEventListener('DOMContentLoaded', function() { … … 4037 4103 </script> 4038 4104 <!--AK Style --> 4039 <?php 4040 if (!function_exists('spl_generate_schema_markup')) { 4041 function spl_generate_schema_markup($category_type, $spl_data_values) { 4042 $html = '<script id="schemaorg" type="application/ld+json">'; 4043 $html .= '{'; 4044 $html .= '"@context": "https://schema.org/",'; 4045 $html .= '"@type": "' . $category_type . '",'; 4046 $html .= '"name": '; 4047 $html .= '"offers": ['; 4048 4049 foreach ($spl_data_values as $category) { 4050 $html .= '{'; 4051 $html .= '"@type": "Offer",'; 4052 $html .= '"name": "' . $category['name'] . '",'; 4053 $html .= '"description": "' . $category['description'] . '",'; 4054 4055 if (isset($category['price']) && isset($category['priceCurrency'])) { 4056 $html .= '"price": "' . $category['price'] . '",'; 4057 $html .= '"priceCurrency": "' . $category['priceCurrency'] . '"'; 4058 } 4059 4060 $html .= '},'; 4061 } 4062 4063 $html = rtrim($html, ','); 4064 4065 $html .= ']'; 4066 $html .= '}'; 4067 $html .= '</script>'; 4068 4069 echo $html; 4070 } 4071 } 4072 add_action('wp_head', function() use ($spl_data_values) { 4073 spl_generate_schema_markup('category', $spl_data_values); 4074 }); 4075 ?> 4076 4105 -
stylish-price-list/tags/7.1.6/shortcode/pricelist.php
r3078918 r3120663 8 8 9 9 add_shortcode( 'pricelist', 'spl_shortcode_pricelist' ); 10 10 11 function spl_shortcode_pricelist( $atts, $content = null ) { 11 12 extract( … … 64 65 wp_register_style( 'spl-tomselect', SPL_URL . '/assets/css/tom-select.bootstrap4.min.css', array(), df_spl_get_file_version( SPL_DIR . '/assets/css/tom-select.bootstrap4.min.css' ) ); 65 66 wp_register_script( 'spl-tomselect', SPL_URL . '/assets/js/tom-select.base.min.js', array(), df_spl_get_file_version( SPL_DIR . '/assets/js/tom-select.base.min.js' ), true ); 67 wp_register_script( 'spl-no-ui-slider', SPL_URL . 'assets/js/nouislider.min.js', array(), df_spl_get_file_version( SPL_DIR . '/assets/js/nouislider.min.js' ), true ); 68 wp_register_style( 'spl-no-ui-slider', SPL_URL . 'assets/css/nouislider.css', array(), df_spl_get_file_version( SPL_DIR . 'assets/css/nouislider.css' ) ); 66 69 67 70 // get advanced settings … … 99 102 wp_register_script( 'spl-add-new-page', SPL_URL . 'assets/js/add-new-page.js', array(), df_spl_get_file_version( SPL_DIR . '/assets/js/add-new-page.js' ), true ); 100 103 wp_register_style( 'spl-add-new-page', SPL_URL . 'assets/css/add-new-page.css', array(), df_spl_get_file_version( SPL_DIR . 'assets/css/add-new-page.css' ) ); 104 wp_register_script( 'spl-no-ui-slider', SPL_URL . 'assets/js/nouislider.min.js', array(), df_spl_get_file_version( SPL_DIR . '/assets/js/nouislider.min.js' ), true ); 105 wp_register_style( 'spl-no-ui-slider', SPL_URL . 'assets/css/nouislider.css', array(), df_spl_get_file_version( SPL_DIR . 'assets/css/nouislider.css' ) ); 101 106 wp_enqueue_style( 'spl-tomselect' ); 102 107 wp_enqueue_script( 'spl-tomselect' ); -
stylish-price-list/tags/7.1.6/stylish-price-list.php
r3107450 r3120663 7 7 Plugin URI: https://stylishpricelist.com/ 8 8 Description: Build a stylish price list for your business 9 Version: 7.1. 59 Version: 7.1.6 10 10 Author: Designful 11 11 Author URI: https://stylishpricelist.com/ … … 15 15 Text Domain: spl 16 16 */ 17 define( 'STYLISH_PRICE_LIST_VERSION', '7.1. 5' );18 define( 'STYLISH_PRICE_LIST_BETA', true );17 define( 'STYLISH_PRICE_LIST_VERSION', '7.1.6' ); 18 define( 'STYLISH_PRICE_LIST_BETA', false ); 19 19 define( 'SPL_URL', plugin_dir_url( __FILE__ ) ); 20 20 define( 'SPL_ASSETS_URL', SPL_URL . 'assets/' ); -
stylish-price-list/trunk/admin/tabs/views/tabs-form/pricelist-form.php
r3107450 r3120663 134 134 $brack_title_desktop = isset( $cats_data['brack_title_desktop'] ) ? $cats_data['brack_title_desktop'] : ''; //$cats_data['brack_title_desktop'] 135 135 $brack_title_tablets = isset( $cats_data['brack_title_tablets'] ) ? $cats_data['brack_title_tablets'] : ''; //$cats_data['brack_title_tablets'] 136 $jsonld_currency = isset( $cats_data['jsonld_currency'] ) ? $cats_data['jsonld_currency'] : 'USD'; //$cats_data['jsonld_currency'] 136 137 } 137 138 // phpcs:ignore … … 167 168 $Open_Buy_Btn_Link_In_New_Tab = $lang_obj->convert_lang_function( $language_choice, 'Open_Buy_Btn_Link_In_New_Tab' ); 168 169 $Add_Search_Bar = $lang_obj->convert_lang_function( $language_choice, 'Add_Search_Bar' ); 170 $price_range_slider = $lang_obj->convert_lang_function( $language_choice, 'Price_Range_Slider' ); 169 171 $Break_title_of_Service = $lang_obj->convert_lang_function( $language_choice, 'Break_title_of_Service' ); 170 172 $Break_line_of_categories_on_Desktop = $lang_obj->convert_lang_function( $language_choice, 'Break_line_of_categories_on_Desktop' ); 171 173 $Break_line_of_categories_on_Tablets = $lang_obj->convert_lang_function( $language_choice, 'Break_line_of_categories_on_Tablets' ); 172 174 $Price_List_Description = $lang_obj->convert_lang_function( $language_choice, 'Price_List_Description' ); 175 $items_price_currency = $lang_obj->convert_lang_function( $language_choice, 'Items_Price_Currency' ); 173 176 $Title = $lang_obj->convert_lang_function( $language_choice, 'Title' ); 174 177 $Category_Tabs = $lang_obj->convert_lang_function( $language_choice, 'Category_Tabs' ); … … 230 233 $Open_Buy_Btn_Link_In_New_Tab = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Open_Buy_Btn_Link_In_New_Tab' ); 231 234 $Add_Search_Bar = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Add_Search_Bar' ); 235 $price_range_slider = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Price_Range_Slider' ); 232 236 $Break_title_of_Service = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Break_title_of_Service' ); 233 237 $Break_line_of_categories_on_Desktop = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Break_line_of_categories_on_Desktop' ); 234 238 $Break_line_of_categories_on_Tablets = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Break_line_of_categories_on_Tablets' ); 235 239 $Price_List_Description = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Price_List_Description' ); 240 $items_price_currency = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Items_Price_Currency' ); 236 241 $Title = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Title' ); 237 242 $Category_Tabs = $lang_obj->convert_lang_function( $cats_data1['select_lang'], 'Category_Tabs' ); … … 291 296 $Open_Buy_Btn_Link_In_New_Tab = $lang_obj->convert_lang_function( 'EN', 'Open_Buy_Btn_Link_In_New_Tab' ); 292 297 $Add_Search_Bar = $lang_obj->convert_lang_function( 'EN', 'Add_Search_Bar' ); 298 $price_range_slider = $lang_obj->convert_lang_function( 'EN', 'Price_Range_Slider' ); 293 299 $Break_title_of_Service = $lang_obj->convert_lang_function( 'EN', 'Break_title_of_Service' ); 294 300 $Break_line_of_categories_on_Desktop = $lang_obj->convert_lang_function( 'EN', 'Break_line_of_categories_on_Desktop' ); 295 301 $Break_line_of_categories_on_Tablets = $lang_obj->convert_lang_function( 'EN', 'Break_line_of_categories_on_Tablets' ); 296 302 $Price_List_Description = $lang_obj->convert_lang_function( 'EN', 'Price_List_Description' ); 303 $items_price_currency = $lang_obj->convert_lang_function( 'EN', 'Items_Price_Currency' ); 297 304 $Title = $lang_obj->convert_lang_function( 'EN', 'Title' ); 298 305 $Category_Tabs = $lang_obj->convert_lang_function( 'EN', 'Category_Tabs' ); … … 519 526 ?> 520 527 "> 521 <div class="col-xs-6 col-sm-5 col-md-5 col-lg-5 <?php echo esc_attr( $extra_class ); ?>lbl">528 <div class="col-xs-6 col-sm-5 col-md-5 col-lg-5 lbl"> 522 529 <label for="<?php echo esc_attr($html_id); ?>"><?php echo esc_attr($title); ?></label> 523 530 </div> … … 617 624 <img src="<?php echo empty( $cat_cover_image ) ? SPL_DEFAULT_THUMBNAIL : $cat_cover_image; ?>" width="45px;" height="45px;" /> 618 625 <?php if (!empty($image_name)) : ?> 619 <div class="spl-container-test" >626 <div class="spl-container-test"> 620 627 <div class="spl-container-icon" ><?php echo $image_name; ?> 621 628 <i class='delete-icon'> … … 705 712 <input type="hidden" name="category[<?php echo $cat_id . "][" . $service_id; ?>][service_image]" value="<?php echo esc_attr($service_image); ?>"> 706 713 <div class='upload-btn'><i class="fas fa-cloud-upload-alt"></i> Click to upload</div> 714 <?php if ( ! empty( $service_image ) ) { ?> 715 <div class="spl-container-test" > 716 <div class="spl-container-icon" ><?php echo esc_attr( basename( $service_image ) ); ?> 717 <i class='delete-icon'> 718 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="#dae2e1" d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg> 719 </i> 720 </div> 721 </div> 722 <?php } ?> 707 723 </div> 708 724 </div> … … 766 782 <input class="form-control service-tooltip-image-url" type="hidden" name="category[<?php echo $cat_id . "][" . $service_id; ?>][settings_tooltip_image]" value="<?php echo esc_attr($settings_tooltip_image); ?>"> 767 783 <div class='upload-btn'><i class="fas fa-cloud-upload-alt"></i> Click to upload</div> 784 <?php if ( ! empty( $settings_tooltip_image ) ) { ?> 785 <div class="spl-container-test" > 786 <div class="spl-container-icon" ><?php echo esc_attr( basename( $settings_tooltip_image ) ); ?> 787 <i class='delete-icon'> 788 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="#dae2e1" d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg> 789 </i> 790 </div> 791 </div> 792 <?php } ?> 768 793 </div> 769 794 </div> … … 833 858 <select class="form-control sel1" name="tab_style" style="max-width:100% !important;height:40px;"> 834 859 <option class="form-control default_tab" value="">Select Style</option> 835 <option class="form-control default_tab" value="with_tab" <?php echo isset( $style ) && $style == 'with_tab' ? 'selected' : ''; ?> >Style #1 </option>860 <option class="form-control default_tab" value="with_tab" <?php echo isset( $style ) && $style == 'with_tab' ? 'selected' : ''; ?> >Style #1 (Supports Images)</option> 836 861 <option class="form-control default_tab" value="without_tab" <?php echo isset( $style ) && $style == 'without_tab' ? 'selected' : ''; ?>>Style #2</option> 837 862 <option class="form-control default_tab" value="without_tab_single_column" <?php echo isset( $style ) && $style == 'without_tab_single_column' ? 'selected' : ''; ?>>Style #2 (Single Column)</option> … … 879 904 </nav><!--End of Nav 2 --- Price List Title, Style, Save Button--> 880 905 <div class="price-wrapper d-none" id="edit-page-alert"> 881 <div class="alert bg-danger">882 <h3>Your License key has been expired. Some features might not work properly. Please renew. </h3>906 <div class="alert alert2 bg-danger"> 907 <h3>Your License key has been expired. Some features might not work properly. Please renew. <a href="<?php echo esc_attr( admin_url('admin.php?page=stylish_price_list_license') ); ?>">Enter your license key</a></h3> 883 908 </div> 884 909 </div> … … 1469 1494 </div> 1470 1495 <!-- End of Search & Filter Settings --> 1496 <!-- Start of Search & Filter Settings --> 1497 <div class="df-spl-row cats-row more_setting"> 1498 <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 lbl"> 1499 <label for="category_tab_button"><?php echo esc_attr($price_range_slider); ?><span class="category_tab_button" style="color:red"></span></label> 1500 <img class="spl-icon-info" src="<?php echo SPL_URL . '/assets/images/info.svg'; ?>" alt="some image" title="Enabling it will add a price range filter slider at the top of the price-list."/> 1501 </div> 1502 <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8"> 1503 <?php 1504 $enable_price_range_slider = isset( $cats_data['enable_price_range_slider'] ) ? $cats_data['enable_price_range_slider'] : ''; 1505 $checked = 'checked'; 1506 $unchecked = ''; 1507 ?> 1508 <div class="custom_radio_btn"><input type="radio" name="enable_price_range_slider" class="enable_price_range_slider" required="" value="0" 1509 <?php 1510 if ( empty( $enable_price_range_slider ) ) { 1511 echo esc_attr($checked); 1512 } else { 1513 echo esc_attr($unchecked); } 1514 ?> 1515 >Off<label class="radio-inline"><span></span></label></div> 1516 <div class="custom_radio_btn"><input type="radio" name="enable_price_range_slider" class="enable_price_range_slider" required="" value="1" 1517 <?php 1518 if ( ! empty( $enable_price_range_slider ) ) { 1519 echo esc_attr($checked); 1520 } else { 1521 echo esc_attr($unchecked); } 1522 ?> 1523 >On<label class="radio-inline"><span></span></label></div> 1524 </div> 1525 </div> 1526 <!-- End of Search & Filter Settings --> 1471 1527 </div><!-- End of Search & Filter Settings Category--> 1472 1528 <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><!-- START of Misc Settings Category--> … … 1488 1544 </div> 1489 1545 </div><!--End of Add Textarea for price list description--> 1546 <div class="df-spl-row cats-row more_setting"> 1547 <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 lbl"> 1548 <label for="all_tab"><?php echo stripslashes( $items_price_currency ); ?></label> 1549 </div> 1550 <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 no-pa"> 1551 <select class="form-control jsonld-currency" id="jsonld_currency" name="jsonld_currency"> 1552 <?php foreach ( DF_SPL_CURRENCIES as $key => $value ) { 1553 ?> 1554 <option style="max-width:400px;" class="form-control" <?php echo selected( $jsonld_currency , $value['code'] ) ?> value="<?php echo $value['code']; ?>"><?php echo $value['currency']; ?></option> 1555 <?php 1556 } ?> 1557 </select> 1558 </div> 1559 </div> 1490 1560 </div><!-- End of Misc Settings Category--> 1491 1561 </div><!-- END of Right Price List Settings--> … … 1892 1962 ?> 1893 1963 </div> <!-- category-row-template --> 1894 <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">1895 1964 <?php 1896 1965 $opt = get_option( 'spllk_opt' ); 1897 1966 if ( empty( $opt ) || $opt['license'] !== 'valid' ) { 1898 echo '< p class="free_version">You are using the <span class="highlighted">free (demo)</span> version of the plugin. Click <span class="highlighted"><a href="https://stylishpricelist.com?utm_source=inside-plugin&utm_medium=buy-premium-cta-banner">here</a></span> to buy the premium version.</p>';1967 echo '<div class="free_version alert alert2 bg-success">You are using the <span class="highlighted">free (demo)</span> version of the plugin. Click <span class="highlighted"><a href="https://stylishpricelist.com?utm_source=inside-plugin&utm_medium=buy-premium-cta-banner">here</a></span> to buy the premium version.</div>'; 1899 1968 } 1900 1969 ?> 1901 </div>1902 1970 <div id="pricelist-editor-root" class="category-rows-master-cls"> 1903 1971 <div id="category-rows-wrapper"> … … 2579 2647 }else if (spl_styl == 'style_8') { 2580 2648 jQuery('.spl_service_image_element:even').hide(); 2649 jQuery('.spl_service_image_element').show(); 2581 2650 jQuery('.df-spl-row.category-cover-image-row').hide(); 2582 2651 } else if(spl_styl == 'style_10') { … … 2646 2715 if (jQuery(this).val() == "style_8") { 2647 2716 !(isNoModal) && jQuery('#sell8').removeClass('fade').show(300).trigger('show.bs.modal'); 2648 jQuery('.spl_service_image_element').hide(); 2717 debugger; 2718 jQuery('.spl_service_image_element').show(); 2649 2719 jQuery('.service_long_description').closest('.service-price-length').hide(); 2650 2720 jQuery('#style5_category_container').css('display', 'none') … … 2697 2767 ee.target.innerHTML = '<i class="gg-spinner"></i>'; 2698 2768 if (styleDropdown.val() == 'style_3') { 2699 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'T hree' );2700 jQuery( 'select[name="select_column"]' ).val( 'T hree' );2769 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'Two' ); 2770 jQuery( 'select[name="select_column"]' ).val( 'Two' ); 2701 2771 } else { 2702 2772 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'Columns' ); … … 2711 2781 2712 2782 if (styleDropdown.val() == 'style_3') { 2713 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'T hree' );2714 jQuery( 'select[name="select_column"]' ).val( 'T hree' );2783 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'Two' ); 2784 jQuery( 'select[name="select_column"]' ).val( 'Two' ); 2715 2785 } else { 2716 2786 jQuery( 'select[name="select_column"] option:eq(0)' ).text( 'Columns' ); -
stylish-price-list/trunk/admin/tabs/views/tabs-list.php
r3107450 r3120663 11 11 </div> 12 12 <style> 13 p.free_version {13 .free_version { 14 14 font-weight: bold; 15 15 font-size: 17px; 16 16 } 17 p.free_version span.highlighted {17 .free_version span.highlighted { 18 18 color: #5bb3a7; 19 19 } -
stylish-price-list/trunk/assets/css/admin-style.css
r3107450 r3120663 301 301 padding-left:30px; 302 302 } 303 p.free_version {303 .free_version { 304 304 font-size: 16px; 305 background: #e2f1e7;306 305 padding: 20px; 307 border-radius: 20px;308 margin-left: -15px;309 306 box-shadow: 0px 0px 9px 10px rgb(189 189 189 / 5%); 310 307 } … … 931 928 } 932 929 930 .wp-core-ui .no-pa select.jsonld-currency { 931 max-width: unset; 932 } 933 933 934 .styled-accordion .content.show { 934 935 display: block; … … 982 983 } 983 984 985 .price_wrapper .alert.alert2 { 986 border-radius: 10px; 987 } 988 984 989 .field-wrapper label { 985 990 text-wrap: nowrap; -
stylish-price-list/trunk/assets/css/frontend-style.css
r3083497 r3120663 1422 1422 } 1423 1423 .col-xs-12.col-sm-6.col-md-6.col-lg-6.name-price-desc { 1424 padding-bottom: 10px1424 border-bottom: 1px solid #c1c1c1; 1425 1425 } 1426 1426 .cat_descreption { … … 1930 1930 float: right; 1931 1931 display: flex; 1932 margin-right: 20px; 1932 margin-left: auto; 1933 } 1934 .has-price-range nav.pricelist-searchbar { 1935 margin-left: 20px; 1936 } 1937 nav.searchbar-and-price-range-wrapper { 1938 display: flex; 1939 } 1940 nav.searchbar-and-price-range-wrapper.has-price-range { 1941 margin-bottom: 25px; 1933 1942 } 1934 1943 .df-spl-style-seven-head + nav.pricelist-searchbar { … … 2030 2039 .df-spl-style8_cat_tab-container ul > li { 2031 2040 display: inline; 2032 margin-bottom: 0; 2041 margin-bottom: 5px; 2042 margin-top: 5px; 2043 } 2044 .clearfix { 2045 clear: both; 2046 } 2047 #spl-slider-handles { 2048 flex-grow: 1; 2049 margin: 10px 0; 2050 } 2051 .df-spl-style8_cat_tab-container ul > li:not(:last-child) { 2033 2052 margin-right: 15px; 2034 2053 } … … 2043 2062 margin-right: 15px; 2044 2063 } */ 2045 .df-spl-style8_cat_tab-container ul > li.active a { 2046 background-color: var(--df-spl-style8-active-tab-bg); 2064 .df-spl-style8_cat_tab-container ul > li.active a, 2065 .style-8-container .noUi-connect { 2066 background-color: var(--df-spl-style8-active-tab-bg) !important; 2047 2067 } 2048 2068 .df-spl-style8_cat_tab-container ul > li a { … … 2368 2388 height: 22px; 2369 2389 } 2390 .delete-icon svg { 2391 cursor: pointer; 2392 } -
stylish-price-list/trunk/assets/js/pricelist-admin.js
r3107450 r3120663 403 403 fileInput.css('display', 'block'); 404 404 405 406 parentDiv.find('img').remove();407 405 408 406 parentDiv.find('input[type="hidden"]').val(''); … … 412 410 if (!fileInput.val()) { 413 411 var defaultImageSrc = SPL_admin_url.url +"../wp-content/plugins/stylish-price-list/assets/images/def-thumb.png"; 414 parentDiv.prepend('<img src="' + defaultImageSrc + '" width="45px" height="45px">'); 412 parentDiv.parent().find('img').attr('src', defaultImageSrc); 413 parentDiv.find('input[type="hidden"]').val(''); 415 414 } 416 415 else { … … 486 485 // get the viewport width 487 486 const vw = Math.max( document.documentElement.clientWidth || 0, window.innerWidth || 0 ); 488 if ( vw >= 1 900) {487 if ( vw >= 1401 ) { 489 488 handlePreviewDockMode( document.querySelector('[data-dock-mode="right"]'), 'right', new Event( 'click' ), false ); 490 489 } 491 if ( vw < 1 899) {490 if ( vw < 1400 ) { 492 491 handlePreviewDockMode( document.querySelector('[data-dock-mode="bottom"]'), 'bottom', new Event( 'click' ), false ); 493 492 } … … 524 523 var container = jQuery(this).closest('.spl-container-test'); 525 524 var parentDiv = container.parent(); 526 parentDiv.find('img').remove();527 525 var defaultImageSrc = SPL_admin_url.url + "../wp-content/plugins/stylish-price-list/assets/images/def-thumb.png"; 528 parentDiv.prepend('<img src="' + defaultImageSrc + '" width="45px" height="45px">'); 526 parentDiv.parent().find('img').attr('src', defaultImageSrc); 527 parentDiv.find('input[type="hidden"]').val(''); 529 528 530 529 var inputFile = jQuery('#spl-file-input'); -
stylish-price-list/trunk/assets/js/tabs.js
r3078918 r3120663 270 270 }, 271 271 ); 272 const sliderHandles = document.querySelectorAll('#spl-slider-handles'); 273 sliderHandles.forEach((sliderHandle) => { 274 const priceListRoot = sliderHandle.closest('.spl_main_content_box'); 275 const itemsAndPrices = [ ...( priceListRoot.querySelectorAll('.spl-item-root [data-price]') ) ] 276 .map(price => ({ 277 itemRoot: price.closest('.spl-item-root'), 278 price: Number(price.getAttribute('data-price').replace(/[^\d.]/g, '')) 279 })); 280 const prices = itemsAndPrices.map(x => x.price); 281 const pricesUnique = [...new Set(prices)]; 282 const minPrice = Math.min(...prices); 283 const maxPrice = Math.max(...prices); 284 const sliderInstance = noUiSlider.create(sliderHandle, { 285 start: [minPrice, maxPrice], 286 connect: true, 287 range: { 288 'min': [minPrice], 289 'max': [maxPrice] 290 }, 291 step: 1, 292 pips: { 293 mode: 'positions', 294 values: pricesUnique, 295 density: 4 296 }, 297 tooltips: [ 298 { 299 to: function(value) { 300 return Math.round(value); 301 } 302 }, 303 { 304 to: function(value) { 305 return Math.round(value); 306 } 307 } 308 ] 309 }); 310 sliderInstance.on('change', (values, handle) => { 311 const [min, max] = values; 312 const items = itemsAndPrices.filter(item => item.price >= min && item.price <= max); 313 items.forEach(item => item.itemRoot.style.display = 'block'); 314 itemsAndPrices.filter(item => !items.includes(item)).forEach(item => item.itemRoot.style.display = 'none'); 315 }); 316 }); 272 317 jQuery( '.df-spl-style7_cat_tab-container.tabs_spl ul a' ).on( 273 318 'click', -
stylish-price-list/trunk/change_language_class.php
r3078918 r3120663 27 27 $language['EN']['Open_Buy_Btn_Link_In_New_Tab'] = df_spl_remove_slash_quotes( 'Open Buy Button Links in New Tab' ); 28 28 $language['EN']['Add_Search_Bar'] = df_spl_remove_slash_quotes( 'Enable Filter & Search Box' ); 29 $language['EN']['Price_Range_Slider'] = df_spl_remove_slash_quotes( 'Enable Price Range Slider' ); 29 30 $language['EN']['Break_title_of_Service'] = df_spl_remove_slash_quotes( 'Break Title of Service' ); 30 31 $language['EN']['Break_line_of_categories_on_Desktop'] = df_spl_remove_slash_quotes( 'Break Line of Categories on Desktops' ); 31 32 $language['EN']['Break_line_of_categories_on_Tablets'] = df_spl_remove_slash_quotes( 'Break Line of Categories on Tablets' ); 32 33 $language['EN']['Price_List_Description'] = df_spl_remove_slash_quotes( 'Price List Description' ); 34 $language['EN']['Items_Price_Currency'] = df_spl_remove_slash_quotes( 'Select Price Currency (for SEO JSON-LD)' ); 33 35 $language['EN']['Title'] = df_spl_remove_slash_quotes( 'Title' ); 34 36 $language['EN']['Category_Tabs'] = df_spl_remove_slash_quotes( 'Category (Tabs)' ); … … 90 92 $language['SP']['Open_Buy_Btn_Link_In_New_Tab'] = df_spl_remove_slash_quotes( 'Open Buy Button Links in New Tab' ); 91 93 $language['SP']['Add_Search_Bar'] = df_spl_remove_slash_quotes( 'Enable Search Box' ); 94 $language['SP']['Price_Range_Slider'] = df_spl_remove_slash_quotes( 'Habilitar control deslizante de rango de precios' ); 92 95 $language['SP']['Break_title_of_Service'] = df_spl_remove_slash_quotes( 'Título de rotura del servicio' ); 93 96 $language['SP']['Break_line_of_categories_on_Desktop'] = df_spl_remove_slash_quotes( 'Romper la línea de categorías en el escritorio' ); 94 97 $language['SP']['Break_line_of_categories_on_Tablets'] = df_spl_remove_slash_quotes( 'Romper la línea de categorías en Tabletas' ); 95 98 $language['SP']['Price_List_Description'] = df_spl_remove_slash_quotes( 'Descripción de la lista de precios' ); 99 $language['SP']['Items_Price_Currency'] = df_spl_remove_slash_quotes( 'Seleccione la moneda del precio (para SEO JSON-LD)' ); 96 100 $language['SP']['Title'] = df_spl_remove_slash_quotes( 'Título' ); 97 101 $language['SP']['Category_Tabs'] = df_spl_remove_slash_quotes( 'Categoría (pestañas)' ); … … 151 155 $language['FR']['Open_Buy_Btn_Link_In_New_Tab'] = df_spl_remove_slash_quotes( 'Open Buy Button Links in New Tab' ); 152 156 $language['FR']['Add_Search_Bar'] = df_spl_remove_slash_quotes( 'Enable Search Box' ); 157 $language['FR']['Price_Range_Slider'] = df_spl_remove_slash_quotes( 'Activer le curseur de fourchette de prix' ); 153 158 $language['FR']['Break_title_of_Service'] = df_spl_remove_slash_quotes( 'Casser le titre du service' ); 154 159 $language['FR']['Break_line_of_categories_on_Desktop'] = df_spl_remove_slash_quotes( 'Briser la ligne de catégories sur le bureau' ); 155 160 $language['FR']['Break_line_of_categories_on_Tablets'] = df_spl_remove_slash_quotes( 'Briser la ligne de catégories sur les tablettes' ); 156 161 $language['FR']['Price_List_Description'] = df_spl_remove_slash_quotes( 'Description de la liste de prix' ); 162 $language['FR']['Items_Price_Currency'] = df_spl_remove_slash_quotes( 'Sélectionnez la devise du prix (pour SEO JSON-LD)' ); 157 163 $language['FR']['Title'] = df_spl_remove_slash_quotes( 'Titre' ); 158 164 $language['FR']['Category_Tabs'] = df_spl_remove_slash_quotes( 'Catégorie (onglets)' ); … … 212 218 $language['DE']['Open_Buy_Btn_Link_In_New_Tab'] = df_spl_remove_slash_quotes( 'Open Buy Button Links in New Tab' ); 213 219 $language['DE']['Add_Search_Bar'] = df_spl_remove_slash_quotes( 'Enable Search Box' ); 220 $language['DE']['Price_Range_Slider'] = df_spl_remove_slash_quotes( 'Preisbereichsregler aktivieren' ); 214 221 $language['DE']['Break_title_of_Service'] = df_spl_remove_slash_quotes( 'Breek de titel van de service' ); 215 222 $language['DE']['Break_line_of_categories_on_Desktop'] = df_spl_remove_slash_quotes( 'Breek lijn van categorieën op Desktop' ); 216 223 $language['DE']['Break_line_of_categories_on_Tablets'] = df_spl_remove_slash_quotes( 'Breek lijn van categorieën op tablets' ); 217 224 $language['DE']['Price_List_Description'] = df_spl_remove_slash_quotes( 'Prijslijst beschrijving' ); 225 $language['DE']['Items_Price_Currency'] = df_spl_remove_slash_quotes( 'Preiswährung auswählen (für SEO JSON-LD)' ); 218 226 $language['DE']['Title'] = df_spl_remove_slash_quotes( 'Titel' ); 219 227 $language['DE']['Category_Tabs'] = df_spl_remove_slash_quotes( 'Categorie (tabbladen)' ); -
stylish-price-list/trunk/changelog.txt
r3107450 r3120663 1 = 7.1.6 - 2023-07-17 2 * Updated links for helpdesk articles, and code cleanup 3 * bugfix: Fix image remove button and image add feature issues 4 * Add: Minor UX tweaks for the pricelist editor 5 1 6 = 7.1.5 - 2023-06-25 2 7 * bugfix: Fix too large font size on tooltips -
stylish-price-list/trunk/constants.php
r3107450 r3120663 7 7 define ( 'DF_SPL_WIZARD_ICONS_DIR', SPL_DIR . '/assets/images/setup-wizard/' ); 8 8 9 define( 'DF_SPL_CURRENCIES', array ( 10 0 => 11 array ( 12 'code' => 'AED', 13 'currency' => 'UAE Dirham', 14 ), 15 1 => 16 array ( 17 'code' => 'AFN', 18 'currency' => 'Afghani', 19 ), 20 2 => 21 array ( 22 'code' => 'ALL', 23 'currency' => 'Lek', 24 ), 25 3 => 26 array ( 27 'code' => 'AMD', 28 'currency' => 'Armenian Dram', 29 ), 30 4 => 31 array ( 32 'code' => 'ANG', 33 'currency' => 'Netherlands Antillean Guilder', 34 ), 35 5 => 36 array ( 37 'code' => 'AOA', 38 'currency' => 'Kwanza', 39 ), 40 6 => 41 array ( 42 'code' => 'ARS', 43 'currency' => 'Argentine Peso', 44 ), 45 7 => 46 array ( 47 'code' => 'AUD', 48 'currency' => 'Australian Dollar', 49 ), 50 8 => 51 array ( 52 'code' => 'AWG', 53 'currency' => 'Aruban Florin', 54 ), 55 9 => 56 array ( 57 'code' => 'AZN', 58 'currency' => 'Azerbaijan Manat', 59 ), 60 10 => 61 array ( 62 'code' => 'BAM', 63 'currency' => 'Convertible Mark', 64 ), 65 11 => 66 array ( 67 'code' => 'BBD', 68 'currency' => 'Barbados Dollar', 69 ), 70 12 => 71 array ( 72 'code' => 'BDT', 73 'currency' => 'Taka', 74 ), 75 13 => 76 array ( 77 'code' => 'BGN', 78 'currency' => 'Bulgarian Lev', 79 ), 80 14 => 81 array ( 82 'code' => 'BHD', 83 'currency' => 'Bahraini Dinar', 84 ), 85 15 => 86 array ( 87 'code' => 'BIF', 88 'currency' => 'Burundi Franc', 89 ), 90 16 => 91 array ( 92 'code' => 'BMD', 93 'currency' => 'Bermudian Dollar', 94 ), 95 17 => 96 array ( 97 'code' => 'BND', 98 'currency' => 'Brunei Dollar', 99 ), 100 18 => 101 array ( 102 'code' => 'BOB', 103 'currency' => 'Boliviano', 104 ), 105 19 => 106 array ( 107 'code' => 'BOV', 108 'currency' => 'Mvdol', 109 ), 110 20 => 111 array ( 112 'code' => 'BRL', 113 'currency' => 'Brazilian Real', 114 ), 115 21 => 116 array ( 117 'code' => 'BSD', 118 'currency' => 'Bahamian Dollar', 119 ), 120 22 => 121 array ( 122 'code' => 'BTN', 123 'currency' => 'Ngultrum', 124 ), 125 23 => 126 array ( 127 'code' => 'BWP', 128 'currency' => 'Pula', 129 ), 130 24 => 131 array ( 132 'code' => 'BYN', 133 'currency' => 'Belarusian Ruble', 134 ), 135 25 => 136 array ( 137 'code' => 'BZD', 138 'currency' => 'Belize Dollar', 139 ), 140 26 => 141 array ( 142 'code' => 'CAD', 143 'currency' => 'Canadian Dollar', 144 ), 145 27 => 146 array ( 147 'code' => 'CDF', 148 'currency' => 'Congolese Franc', 149 ), 150 28 => 151 array ( 152 'code' => 'CHE', 153 'currency' => 'WIR Euro', 154 ), 155 29 => 156 array ( 157 'code' => 'CHF', 158 'currency' => 'Swiss Franc', 159 ), 160 30 => 161 array ( 162 'code' => 'CHW', 163 'currency' => 'WIR Franc', 164 ), 165 31 => 166 array ( 167 'code' => 'CLF', 168 'currency' => 'Unidad de Fomento', 169 ), 170 32 => 171 array ( 172 'code' => 'CLP', 173 'currency' => 'Chilean Peso', 174 ), 175 33 => 176 array ( 177 'code' => 'CNY', 178 'currency' => 'Yuan Renminbi', 179 ), 180 34 => 181 array ( 182 'code' => 'COP', 183 'currency' => 'Colombian Peso', 184 ), 185 35 => 186 array ( 187 'code' => 'COU', 188 'currency' => 'Unidad de Valor Real', 189 ), 190 36 => 191 array ( 192 'code' => 'CRC', 193 'currency' => 'Costa Rican Colon', 194 ), 195 37 => 196 array ( 197 'code' => 'CUC', 198 'currency' => 'Peso Convertible', 199 ), 200 38 => 201 array ( 202 'code' => 'CUP', 203 'currency' => 'Cuban Peso', 204 ), 205 39 => 206 array ( 207 'code' => 'CVE', 208 'currency' => 'Cabo Verde Escudo', 209 ), 210 40 => 211 array ( 212 'code' => 'CZK', 213 'currency' => 'Czech Koruna', 214 ), 215 41 => 216 array ( 217 'code' => 'DJF', 218 'currency' => 'Djibouti Franc', 219 ), 220 42 => 221 array ( 222 'code' => 'DKK', 223 'currency' => 'Danish Krone', 224 ), 225 43 => 226 array ( 227 'code' => 'DOP', 228 'currency' => 'Dominican Peso', 229 ), 230 44 => 231 array ( 232 'code' => 'DZD', 233 'currency' => 'Algerian Dinar', 234 ), 235 45 => 236 array ( 237 'code' => 'EGP', 238 'currency' => 'Egyptian Pound', 239 ), 240 46 => 241 array ( 242 'code' => 'ERN', 243 'currency' => 'Nakfa', 244 ), 245 47 => 246 array ( 247 'code' => 'ETB', 248 'currency' => 'Ethiopian Birr', 249 ), 250 48 => 251 array ( 252 'code' => 'EUR', 253 'currency' => 'Euro', 254 ), 255 49 => 256 array ( 257 'code' => 'FJD', 258 'currency' => 'Fiji Dollar', 259 ), 260 50 => 261 array ( 262 'code' => 'FKP', 263 'currency' => 'Falkland Islands Pound', 264 ), 265 51 => 266 array ( 267 'code' => 'GBP', 268 'currency' => 'Pound Sterling', 269 ), 270 52 => 271 array ( 272 'code' => 'GEL', 273 'currency' => 'Lari', 274 ), 275 53 => 276 array ( 277 'code' => 'GHS', 278 'currency' => 'Ghana Cedi', 279 ), 280 54 => 281 array ( 282 'code' => 'GIP', 283 'currency' => 'Gibraltar Pound', 284 ), 285 55 => 286 array ( 287 'code' => 'GMD', 288 'currency' => 'Dalasi', 289 ), 290 56 => 291 array ( 292 'code' => 'GNF', 293 'currency' => 'Guinean Franc', 294 ), 295 57 => 296 array ( 297 'code' => 'GTQ', 298 'currency' => 'Quetzal', 299 ), 300 58 => 301 array ( 302 'code' => 'GYD', 303 'currency' => 'Guyana Dollar', 304 ), 305 59 => 306 array ( 307 'code' => 'HKD', 308 'currency' => 'Hong Kong Dollar', 309 ), 310 60 => 311 array ( 312 'code' => 'HNL', 313 'currency' => 'Lempira', 314 ), 315 61 => 316 array ( 317 'code' => 'HRK', 318 'currency' => 'Kuna', 319 ), 320 62 => 321 array ( 322 'code' => 'HTG', 323 'currency' => 'Gourde', 324 ), 325 63 => 326 array ( 327 'code' => 'HUF', 328 'currency' => 'Forint', 329 ), 330 64 => 331 array ( 332 'code' => 'IDR', 333 'currency' => 'Rupiah', 334 ), 335 65 => 336 array ( 337 'code' => 'ILS', 338 'currency' => 'New Israeli Sheqel', 339 ), 340 66 => 341 array ( 342 'code' => 'INR', 343 'currency' => 'Indian Rupee', 344 ), 345 67 => 346 array ( 347 'code' => 'IQD', 348 'currency' => 'Iraqi Dinar', 349 ), 350 68 => 351 array ( 352 'code' => 'IRR', 353 'currency' => 'Iranian Rial', 354 ), 355 69 => 356 array ( 357 'code' => 'ISK', 358 'currency' => 'Iceland Krona', 359 ), 360 70 => 361 array ( 362 'code' => 'JMD', 363 'currency' => 'Jamaican Dollar', 364 ), 365 71 => 366 array ( 367 'code' => 'JOD', 368 'currency' => 'Jordanian Dinar', 369 ), 370 72 => 371 array ( 372 'code' => 'JPY', 373 'currency' => 'Yen', 374 ), 375 73 => 376 array ( 377 'code' => 'KES', 378 'currency' => 'Kenyan Shilling', 379 ), 380 74 => 381 array ( 382 'code' => 'KGS', 383 'currency' => 'Som', 384 ), 385 75 => 386 array ( 387 'code' => 'KHR', 388 'currency' => 'Riel', 389 ), 390 76 => 391 array ( 392 'code' => 'KMF', 393 'currency' => 'Comorian Franc ', 394 ), 395 77 => 396 array ( 397 'code' => 'KPW', 398 'currency' => 'North Korean Won', 399 ), 400 78 => 401 array ( 402 'code' => 'KRW', 403 'currency' => 'Won', 404 ), 405 79 => 406 array ( 407 'code' => 'KWD', 408 'currency' => 'Kuwaiti Dinar', 409 ), 410 80 => 411 array ( 412 'code' => 'KYD', 413 'currency' => 'Cayman Islands Dollar', 414 ), 415 81 => 416 array ( 417 'code' => 'KZT', 418 'currency' => 'Tenge', 419 ), 420 82 => 421 array ( 422 'code' => 'LAK', 423 'currency' => 'Lao Kip', 424 ), 425 83 => 426 array ( 427 'code' => 'LBP', 428 'currency' => 'Lebanese Pound', 429 ), 430 84 => 431 array ( 432 'code' => 'LKR', 433 'currency' => 'Sri Lanka Rupee', 434 ), 435 85 => 436 array ( 437 'code' => 'LRD', 438 'currency' => 'Liberian Dollar', 439 ), 440 86 => 441 array ( 442 'code' => 'LSL', 443 'currency' => 'Loti', 444 ), 445 87 => 446 array ( 447 'code' => 'LYD', 448 'currency' => 'Libyan Dinar', 449 ), 450 88 => 451 array ( 452 'code' => 'MAD', 453 'currency' => 'Moroccan Dirham', 454 ), 455 89 => 456 array ( 457 'code' => 'MDL', 458 'currency' => 'Moldovan Leu', 459 ), 460 90 => 461 array ( 462 'code' => 'MGA', 463 'currency' => 'Malagasy Ariary', 464 ), 465 91 => 466 array ( 467 'code' => 'MKD', 468 'currency' => 'Denar', 469 ), 470 92 => 471 array ( 472 'code' => 'MMK', 473 'currency' => 'Kyat', 474 ), 475 93 => 476 array ( 477 'code' => 'MNT', 478 'currency' => 'Tugrik', 479 ), 480 94 => 481 array ( 482 'code' => 'MOP', 483 'currency' => 'Pataca', 484 ), 485 95 => 486 array ( 487 'code' => 'MRU', 488 'currency' => 'Ouguiya', 489 ), 490 96 => 491 array ( 492 'code' => 'MUR', 493 'currency' => 'Mauritius Rupee', 494 ), 495 97 => 496 array ( 497 'code' => 'MVR', 498 'currency' => 'Rufiyaa', 499 ), 500 98 => 501 array ( 502 'code' => 'MWK', 503 'currency' => 'Malawi Kwacha', 504 ), 505 99 => 506 array ( 507 'code' => 'MXN', 508 'currency' => 'Mexican Peso', 509 ), 510 100 => 511 array ( 512 'code' => 'MXV', 513 'currency' => 'Mexican Unidad de Inversion (UDI)', 514 ), 515 101 => 516 array ( 517 'code' => 'MYR', 518 'currency' => 'Malaysian Ringgit', 519 ), 520 102 => 521 array ( 522 'code' => 'MZN', 523 'currency' => 'Mozambique Metical', 524 ), 525 103 => 526 array ( 527 'code' => 'NAD', 528 'currency' => 'Namibia Dollar', 529 ), 530 104 => 531 array ( 532 'code' => 'NGN', 533 'currency' => 'Naira', 534 ), 535 105 => 536 array ( 537 'code' => 'NIO', 538 'currency' => 'Cordoba Oro', 539 ), 540 106 => 541 array ( 542 'code' => 'NOK', 543 'currency' => 'Norwegian Krone', 544 ), 545 107 => 546 array ( 547 'code' => 'NPR', 548 'currency' => 'Nepalese Rupee', 549 ), 550 108 => 551 array ( 552 'code' => 'NZD', 553 'currency' => 'New Zealand Dollar', 554 ), 555 109 => 556 array ( 557 'code' => 'OMR', 558 'currency' => 'Rial Omani', 559 ), 560 110 => 561 array ( 562 'code' => 'PAB', 563 'currency' => 'Balboa', 564 ), 565 111 => 566 array ( 567 'code' => 'PEN', 568 'currency' => 'Sol', 569 ), 570 112 => 571 array ( 572 'code' => 'PGK', 573 'currency' => 'Kina', 574 ), 575 113 => 576 array ( 577 'code' => 'PHP', 578 'currency' => 'Philippine Peso', 579 ), 580 114 => 581 array ( 582 'code' => 'PKR', 583 'currency' => 'Pakistan Rupee', 584 ), 585 115 => 586 array ( 587 'code' => 'PLN', 588 'currency' => 'Zloty', 589 ), 590 116 => 591 array ( 592 'code' => 'PYG', 593 'currency' => 'Guarani', 594 ), 595 117 => 596 array ( 597 'code' => 'QAR', 598 'currency' => 'Qatari Rial', 599 ), 600 118 => 601 array ( 602 'code' => 'RON', 603 'currency' => 'Romanian Leu', 604 ), 605 119 => 606 array ( 607 'code' => 'RSD', 608 'currency' => 'Serbian Dinar', 609 ), 610 120 => 611 array ( 612 'code' => 'RUB', 613 'currency' => 'Russian Ruble', 614 ), 615 121 => 616 array ( 617 'code' => 'RWF', 618 'currency' => 'Rwanda Franc', 619 ), 620 122 => 621 array ( 622 'code' => 'SAR', 623 'currency' => 'Saudi Riyal', 624 ), 625 123 => 626 array ( 627 'code' => 'SBD', 628 'currency' => 'Solomon Islands Dollar', 629 ), 630 124 => 631 array ( 632 'code' => 'SCR', 633 'currency' => 'Seychelles Rupee', 634 ), 635 125 => 636 array ( 637 'code' => 'SDG', 638 'currency' => 'Sudanese Pound', 639 ), 640 126 => 641 array ( 642 'code' => 'SEK', 643 'currency' => 'Swedish Krona', 644 ), 645 127 => 646 array ( 647 'code' => 'SGD', 648 'currency' => 'Singapore Dollar', 649 ), 650 128 => 651 array ( 652 'code' => 'SHP', 653 'currency' => 'Saint Helena Pound', 654 ), 655 129 => 656 array ( 657 'code' => 'SLL', 658 'currency' => 'Leone', 659 ), 660 130 => 661 array ( 662 'code' => 'SOS', 663 'currency' => 'Somali Shilling', 664 ), 665 131 => 666 array ( 667 'code' => 'SRD', 668 'currency' => 'Surinam Dollar', 669 ), 670 132 => 671 array ( 672 'code' => 'SSP', 673 'currency' => 'South Sudanese Pound', 674 ), 675 133 => 676 array ( 677 'code' => 'STN', 678 'currency' => 'Dobra', 679 ), 680 134 => 681 array ( 682 'code' => 'SVC', 683 'currency' => 'El Salvador Colon', 684 ), 685 135 => 686 array ( 687 'code' => 'SYP', 688 'currency' => 'Syrian Pound', 689 ), 690 136 => 691 array ( 692 'code' => 'SZL', 693 'currency' => 'Lilangeni', 694 ), 695 137 => 696 array ( 697 'code' => 'THB', 698 'currency' => 'Baht', 699 ), 700 138 => 701 array ( 702 'code' => 'TJS', 703 'currency' => 'Somoni', 704 ), 705 139 => 706 array ( 707 'code' => 'TMT', 708 'currency' => 'Turkmenistan New Manat', 709 ), 710 140 => 711 array ( 712 'code' => 'TND', 713 'currency' => 'Tunisian Dinar', 714 ), 715 141 => 716 array ( 717 'code' => 'TOP', 718 'currency' => 'Pa’anga', 719 ), 720 142 => 721 array ( 722 'code' => 'TRY', 723 'currency' => 'Turkish Lira', 724 ), 725 143 => 726 array ( 727 'code' => 'TTD', 728 'currency' => 'Trinidad and Tobago Dollar', 729 ), 730 144 => 731 array ( 732 'code' => 'TWD', 733 'currency' => 'New Taiwan Dollar', 734 ), 735 145 => 736 array ( 737 'code' => 'TZS', 738 'currency' => 'Tanzanian Shilling', 739 ), 740 146 => 741 array ( 742 'code' => 'UAH', 743 'currency' => 'Hryvnia', 744 ), 745 147 => 746 array ( 747 'code' => 'UGX', 748 'currency' => 'Uganda Shilling', 749 ), 750 148 => 751 array ( 752 'code' => 'USD', 753 'currency' => 'US Dollar', 754 ), 755 149 => 756 array ( 757 'code' => 'USN', 758 'currency' => 'US Dollar (Next day)', 759 ), 760 150 => 761 array ( 762 'code' => 'UYI', 763 'currency' => 'Uruguay Peso en Unidades Indexadas (UI)', 764 ), 765 151 => 766 array ( 767 'code' => 'UYU', 768 'currency' => 'Peso Uruguayo', 769 ), 770 152 => 771 array ( 772 'code' => 'UYW', 773 'currency' => 'Unidad Previsional', 774 ), 775 153 => 776 array ( 777 'code' => 'UZS', 778 'currency' => 'Uzbekistan Sum', 779 ), 780 154 => 781 array ( 782 'code' => 'VES', 783 'currency' => 'Bolívar Soberano', 784 ), 785 155 => 786 array ( 787 'code' => 'VND', 788 'currency' => 'Dong', 789 ), 790 156 => 791 array ( 792 'code' => 'VUV', 793 'currency' => 'Vatu', 794 ), 795 157 => 796 array ( 797 'code' => 'WST', 798 'currency' => 'Tala', 799 ), 800 158 => 801 array ( 802 'code' => 'XAF', 803 'currency' => 'CFA Franc BEAC', 804 ), 805 159 => 806 array ( 807 'code' => 'XAG', 808 'currency' => 'Silver', 809 ), 810 160 => 811 array ( 812 'code' => 'XAU', 813 'currency' => 'Gold', 814 ), 815 161 => 816 array ( 817 'code' => 'XBA', 818 'currency' => 'Bond Markets Unit European Composite Unit (EURCO)', 819 ), 820 162 => 821 array ( 822 'code' => 'XBB', 823 'currency' => 'Bond Markets Unit European Monetary Unit (E.M.U.-6)', 824 ), 825 163 => 826 array ( 827 'code' => 'XBC', 828 'currency' => 'Bond Markets Unit European Unit of Account 9 (E.U.A.-9)', 829 ), 830 164 => 831 array ( 832 'code' => 'XBD', 833 'currency' => 'Bond Markets Unit European Unit of Account 17 (E.U.A.-17)', 834 ), 835 165 => 836 array ( 837 'code' => 'XCD', 838 'currency' => 'East Caribbean Dollar', 839 ), 840 166 => 841 array ( 842 'code' => 'XDR', 843 'currency' => 'SDR (Special Drawing Right)', 844 ), 845 167 => 846 array ( 847 'code' => 'XOF', 848 'currency' => 'CFA Franc BCEAO', 849 ), 850 168 => 851 array ( 852 'code' => 'XPD', 853 'currency' => 'Palladium', 854 ), 855 169 => 856 array ( 857 'code' => 'XPF', 858 'currency' => 'CFP Franc', 859 ), 860 170 => 861 array ( 862 'code' => 'XPT', 863 'currency' => 'Platinum', 864 ), 865 171 => 866 array ( 867 'code' => 'XSU', 868 'currency' => 'Sucre', 869 ), 870 172 => 871 array ( 872 'code' => 'XTS', 873 'currency' => 'Codes specifically reserved for testing purposes', 874 ), 875 173 => 876 array ( 877 'code' => 'XUA', 878 'currency' => 'ADB Unit of Account', 879 ), 880 174 => 881 array ( 882 'code' => 'XXX', 883 'currency' => 'The codes assigned for transactions where no currency is involved', 884 ), 885 175 => 886 array ( 887 'code' => 'YER', 888 'currency' => 'Yemeni Rial', 889 ), 890 176 => 891 array ( 892 'code' => 'ZAR', 893 'currency' => 'Rand', 894 ), 895 177 => 896 array ( 897 'code' => 'ZMW', 898 'currency' => 'Zambian Kwacha', 899 ), 900 178 => 901 array ( 902 'code' => 'ZWL', 903 'currency' => 'Zimbabwe Dollar', 904 ), 905 ) ); 906 9 907 define( 'DF_SPL_QUIZ_CHOICES', [ 10 908 'step1' => [ … … 40 938 [ 41 939 'choiceTitle' => 'Price List', 42 'key' => ' straight-forward',940 'key' => 'price-list', 43 941 'icon' => 'price list icon', 942 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001184064', 943 'articleTitle' => 'Basics Explained: How do I Use Stylish Price List?' 944 ], 945 [ 946 'choiceTitle' => 'Pricing Table', 947 'key' => 'pricing-table', 948 'icon' => 'pricing table icon', 44 949 'helpLink' => '#', 45 ],46 [47 'choiceTitle' => 'Pricing Table',48 // 'choiceDescription' => 'I give discounts to customers who buy in bulk (10 or more items)',49 'key' => 'bulk-pricing',50 'icon' => 'pricing table icon',51 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001236631-show-user-savings-how-to-visualize-savings-to-your-customers',52 950 ] 53 951 ], … … 58 956 'key' => 'search-bar', 59 957 'icon' => 'Search bar', 60 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001179707-lead-generation-force-users-to-give-their-details-email-before-seeing-the-price', 61 ], 62 // [ 63 // 'choiceTitle' => 'Lead Generation', 64 // 'choiceDescription' => 'Users can see the total price but choose to email it to themselves', 65 // 'key' => 'lead-gen-user-can-email-total', 66 // ], 958 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001256263', 959 'articleTitle' => 'Search & Filter - A Complete Guide', 960 ], 67 961 [ 68 962 'choiceTitle' => 'Sortable Tabs (Categories/Sections)', … … 70 964 'key' => 'sortable-tabs', 71 965 'icon' => 'Sortable Tabs', 72 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001142348-email-quote-form-a-complete-guide', 966 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257487', 967 'articleTitle' => 'Sortable Category Tabs: A Complete Guide', 73 968 ], 74 969 [ … … 77 972 'key' => 'buy-now-btn', 78 973 'icon' => 'Buy Now buttons', 79 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001167920-stripe-integration-everything-to-know', 974 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257484', 975 'articleTitle' => 'Buy Now Buttons: A Complete Guide', 80 976 ], 81 977 [ … … 84 980 'key' => 'qr-code-menu', 85 981 'icon' => 'QR Code for Menu', 86 'helpLink' => 'https:// designful.freshdesk.com/a/solutions/articles/48001247099',982 'helpLink' => 'https://stylishpricelist.com/qr-code-menu-for-restaurants/', 87 983 ], 88 984 [ … … 91 987 'key' => 'analytics', 92 988 'icon' => 'Analytics', 93 'helpLink' => ' https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider',989 'helpLink' => '#', 94 990 ], 95 991 [ … … 98 994 'key' => 'images', 99 995 'icon' => 'Images', 100 'helpLink' => '#', 996 'helpLink' => ['https://designful.freshdesk.com/a/solutions/articles/48001256591', 'https://designful.freshdesk.com/a/solutions/articles/48001196681'], 997 'articleTitle' => 'Expanded Image Support: A Complete Guide', 101 998 ], 102 999 [ … … 105 1002 'key' => 'tooltips', 106 1003 'icon' => 'Tool-tips', 107 'helpLink' => '#', 1004 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001256517', 1005 'articleTitle' => 'Frontend Tool-Tips: A Complete Guide', 108 1006 ], 109 1007 [ … … 119 1017 'key' => 'sticky-category-bar', 120 1018 'icon' => 'sticky-bar', 121 'helpLink' => '#', 1019 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257031', 1020 'articleTitle' => 'Sticky Category Bar: A Complete Guide', 122 1021 ], 123 1022 ], … … 128 1027 'key' => 'predefined-themes', 129 1028 'icon' => 'Predefined Themes', 130 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001157409-conditional-logic-a-complete-guide', 1029 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257852', 1030 'articleTitle' => 'Frontend styles: A Complete Guide', 131 1031 ], 132 1032 [ … … 135 1035 'key' => 'custom-styling', 136 1036 'icon' => 'Custom Styling', 137 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001238157-sms-quotes-a-complete-guide', 138 ], 139 // AI suggestions 140 // [ 141 // 'choiceTitle' => 'Custom Fonts', 142 // 'choiceDescription' => 'I need to use a specific font for my menu', 143 // 'key' => 'custom-fonts', 144 // 'icon' => 'font_download', 145 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 146 // ], 147 // [ 148 // 'choiceTitle' => 'Custom Colors', 149 // 'choiceDescription' => 'I need to use a specific color for my menu', 150 // 'key' => 'custom-colors', 151 // 'icon' => 'color_lens', 152 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 153 // ], 154 // [ 155 // 'choiceTitle' => 'Custom Layout', 156 // 'choiceDescription' => 'I need to use a specific layout for my menu', 157 // 'key' => 'custom-layout', 158 // 'icon' => 'view_quilt', 159 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 160 // ], 161 // [ 162 // 'choiceTitle' => 'Custom Icons', 163 // 'choiceDescription' => 'I need to use a specific icon for my menu', 164 // 'key' => 'custom-icons', 165 // 'icon' => 'insert_emoticon', 166 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 167 // ], 168 // [ 169 // 'choiceTitle' => 'Custom Background', 170 // 'choiceDescription' => 'I need to use a specific background for my menu', 171 // 'key' => 'custom-background', 172 // 'icon' => 'image', 173 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 174 // ], 175 // [ 176 // 'choiceTitle' => 'Custom Buttons', 177 // 'choiceDescription' => 'I need to use a specific button for my menu', 178 // 'key' => 'custom-buttons', 179 // 'icon' => 'smart_button', 180 // 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207026-element-slider', 181 // ], 1037 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001081158', 1038 'articleTitle' => 'How do I add extra style (bold or uppercase lettering) to my titles or descriptions?', 1039 ], 182 1040 [ 183 1041 'choiceTitle' => 'Other', … … 194 1052 'key' => 'discounts-special-offers', 195 1053 'icon' => 'Special Offers', 196 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243749-form-conversion-analytics-a-complete-guide', 1054 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257034', 1055 'articleTitle' => 'Compare At Price Feature: A Complete Guide', 197 1056 ], 198 1057 [ … … 201 1060 'key' => 'new-items', 202 1061 'icon' => 'New Items', 203 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243747-user-source-analytics-a-complete-guide',1062 // 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001142353', 204 1063 ], 205 1064 [ … … 208 1067 'key' => 'popular-items', 209 1068 'icon' => 'Popular items', 210 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243581-mandatory-minimum-total-a-complete-guide',1069 // 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001142353', 211 1070 ], 212 1071 [ … … 215 1074 'key' => 'seo-feature-product-jsonld', 216 1075 'icon' => 'seo', 1076 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001257854', 1077 'articleTitle' => 'SEO Boost with JSON LD: A Complete Guide', 217 1078 ], 218 1079 [ … … 225 1086 ], 226 1087 'stepResult' => [ 227 [228 'choiceTitle' => 'Conditional Logic',229 'icon' => 'git-pull-request',230 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001157409',231 'key' => 'conditional-logic',232 ],233 [234 'choiceTitle' => 'Bulk Discounts',235 'icon' => 'hash',236 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001236631-show-user-savings-how-to-visualize-savings-to-your-customers',237 'key' => 'bulk-discounts',238 ],239 [240 'choiceTitle' => 'PayPal',241 'icon' => 'paypal',242 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48000948103-paypal-integration',243 'key' => 'paypal',244 ],245 [246 'choiceTitle' => 'SMS Quotes',247 'icon' => 'sms',248 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001238157',249 'key' => 'sms-feature',250 ],251 [252 'choiceTitle' => 'Stripe',253 'icon' => 'stripe',254 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001244063-stripe-subscriptions-a-complete-guide',255 'key' => 'stripe',256 ],257 [258 'choiceTitle' => 'Woocommerce',259 'icon' => 'hash',260 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001076926-woocommerce-integration',261 'key' => 'woocommerce',262 ],263 [264 'choiceTitle' => 'Total Price',265 'icon' => 'hash',266 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001232354',267 'key' => 'total-price',268 ],269 [270 'choiceTitle' => 'Turn Off the Total Price',271 'icon' => 'hash',272 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001158544-collect-customer-information-how-can-i-force-the-user-to-give-an-email-before-seeing-the-price-',273 'key' => 'turn-off-total-price',274 ],275 [276 'choiceTitle' => 'Email Quote Button as Primary CTA, other buttons a secondary button',277 'choiceSimpleTitle' => 'Email Quote Button as Primary CTA',278 'icon' => 'hash',279 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001142348-email-quote-form-a-complete-guide',280 'key' => 'email-quote-primary-cta',281 ],282 [283 'choiceTitle' => 'Customize Outgoing Email',284 'icon' => 'hash',285 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001238156-customize-the-email-quote-message-at-the-calculator-level',286 'key' => 'email-quote-custom-outgoing-message',287 ],288 [289 'choiceTitle' => 'Zapier/Webhooks',290 'icon' => 'hash',291 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001216553',292 'key' => 'use-webhooks',293 ],294 [295 'choiceTitle' => 'Multi Step Feature',296 'icon' => 'hash',297 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001217530',298 'key' => 'use-multi-step',299 ],300 [301 'choiceTitle' => 'Live Currency Conversion',302 'icon' => 'hash',303 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001143319',304 'key' => 'use-live-currency-conversion',305 ],306 [307 'choiceTitle' => 'Custom Totals',308 'icon' => 'hash',309 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001216489',310 'key' => 'use-custom-totals',311 ],312 [313 'choiceTitle' => 'Quote Management Screen',314 'icon' => 'hash',315 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001216303',316 'key' => 'use-quote-management-screen',317 ],318 [319 'choiceTitle' => 'Coupon Code',320 'icon' => 'hash',321 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001168949',322 'key' => 'use-coupon-code-btn',323 ],324 [325 'choiceTitle' => 'Cost Per Unit',326 'icon' => 'hash',327 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001231939-per-unit-price-a-complete-guide-for-the-global-per-unit-cost',328 'key' => 'use-cost-per-unit',329 ],330 [331 'choiceTitle' => 'Custom Totals',332 'icon' => 'hash',333 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001216489-custom-totals-a-complete-guide',334 'key' => 'use-custom-totals',335 ],336 [337 'choiceTitle' => 'Custom Event Triggers',338 'icon' => 'hash',339 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001201874',340 'key' => 'use-custom-event-triggers',341 ],342 [343 'choiceTitle' => 'Minimum Total',344 'icon' => 'hash',345 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243581-mandatory-minimum-total-a-complete-guide',346 'key' => 'use-minimum-total-feature',347 ],348 [349 'choiceTitle' => 'Conditional Logic with Text Elements',350 'choiceSimpleTitle' => 'Conditional Logic',351 'icon' => 'hash',352 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001241026-implementing-context-specific-alerts-your-step-by-step-guide-to-conditional-banners-and-messages',353 'key' => 'use-cl-with-txt-elements',354 ],355 [356 'choiceTitle' => 'Fontend Tool-Tips',357 'icon' => 'hash',358 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001216306',359 'key' => 'use-frontend-tooltips',360 ],361 [362 'choiceTitle' => 'Price Hint',363 'icon' => 'hash',364 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001142314-price-hint-learn-more-about-this-feature',365 'key' => 'use-price-hint',366 ],367 [368 'choiceTitle' => 'Email Validator',369 'icon' => 'hash',370 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001219857-email-validator-the-ultimate-guide',371 'key' => 'use-email-validator',372 ],373 [374 'choiceTitle' => 'Detailed List',375 'icon' => 'list',376 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001215062-floating-itemized-list-detailed-list-view-a-complete-guide',377 'key' => 'detailed-list',378 ],379 [380 'choiceTitle' => 'Turn Off the Detailed List',381 'icon' => 'list',382 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001151623-coupon-detailed-list-buttons-how-do-i-remove-them-',383 'key' => 'turn-off-detailed-list',384 ],385 [386 'choiceTitle' => 'Activate Accordion',387 'icon' => 'list',388 'helpLink' => '#',389 'key' => 'activate-accordion',390 ],391 [392 'choiceTitle' => 'Activate Multi-Step Forms',393 'icon' => 'list',394 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001217530',395 'key' => 'activate-multiple-step',396 ],397 [398 'choiceTitle' => 'Form Conversion Analytics',399 'key' => 'form-conversion-analytics',400 'icon' => 'show_chart',401 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243749-form-conversion-analytics-a-complete-guide',402 ],403 [404 'choiceTitle' => 'Lead Source Analytics',405 'key' => 'lead-source-analytics',406 'icon' => 'show_chart',407 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001243747-lead-source-analytics-a-complete-guide',408 ],409 [410 'choiceTitle' => 'Quotes & Leads Dashboard',411 'key' => 'quotes-n-leads-dashboard',412 'icon' => 'assignment',413 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001216303-leads-quotes-management-system-a-complete-guide',414 ],415 1088 ], 416 1089 'elementSuggestions' => [ 417 [418 'choiceTitle' => 'Dropdown',419 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207045-element-dropdown-menu',420 'icon' => 'list',421 'key' => 'dropdown-element',422 ],423 [424 'choiceTitle' => 'Simple Buttons',425 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207024-element-checkbox-toggle-switches-simple-buttons',426 'icon' => 'smart_button',427 'key' => 'simple-buttons-element',428 ],429 [430 'choiceTitle' => 'Checkbox',431 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207024-element-checkbox-toggle-switches-simple-buttons',432 'icon' => 'check-square',433 'key' => 'checkbox-element',434 ],435 [436 'choiceTitle' => 'Comment Box',437 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001217498-element-comment-box',438 'icon' => 'message-circle',439 'key' => 'comment-box-element',440 ],441 [442 'choiceTitle' => 'Image Buttons',443 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001207056',444 'icon' => 'image',445 'key' => 'img-btn-element',446 ],447 [448 'choiceTitle' => 'Text/HTML Box With Conditional Logic Enabled',449 'choiceSimpleTitle' => 'Text/HTML',450 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207057-element-text-html-field',451 'icon' => 'code',452 'key' => 'html-box-w-cl-element',453 ],454 [455 'choiceTitle' => 'Quantity Box',456 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001081164-element-quantity-input-box',457 'icon' => 'input-box',458 'key' => 'quantity-box-element',459 ],460 [461 'choiceTitle' => 'Custom Math',462 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001142309-element-custom-math',463 'icon' => 'plus-square',464 'key' => 'custom-math-element',465 ],466 [467 'choiceTitle' => 'File Upload',468 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001166819',469 'icon' => 'paperclip',470 'key' => 'file-upload-element',471 ],472 [473 'choiceTitle' => 'TEXT/HTML',474 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207057-element-text-html-field',475 'icon' => 'type',476 'key' => 'text-html-element',477 ],478 [479 'choiceTitle' => 'Slider (with elements above it in the same subsection) (therefore, it will multiply the items and act a quantity modifier)',480 'choiceSimpleTitle' => 'Slider',481 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001079780',482 'icon' => 'sliders',483 'key' => 'slider-element',484 ],485 [486 'choiceTitle' => 'Slider With the Bulk Pricing or Sliding Scale Pricing Mode Turned On',487 'choiceSimpleTitle' => 'Slider',488 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001079780',489 'icon' => 'sliders',490 'key' => 'slider-with-bulk-or-sliding-pricing-element',491 ],492 [493 'choiceTitle' => 'Custom Math With Conditional Logic trigger',494 'choiceSimpleTitle' => 'Custom Math',495 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001208121',496 'icon' => 'plus-square',497 'key' => 'custom-math-with-cl-trigger-element',498 ],499 [500 'choiceTitle' => 'Image Buttons With Quantity Selector enabled',501 'choiceSimpleTitle' => 'Image Buttons',502 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001207056-element-image-buttons',503 'icon' => 'image',504 'key' => 'image-btn-w-qtn-sel-element',505 ],506 [507 'choiceTitle' => 'Variable Math',508 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001202286',509 'icon' => 'sliders',510 'key' => 'variable-math-element',511 ],512 [513 'choiceTitle' => 'Date Picker',514 'helpLink' => 'https://designful.freshdesk.com/a/solutions/articles/48001216557',515 'icon' => 'calendar',516 'key' => 'date-picker-element',517 ],518 [519 'choiceTitle' => 'Distance-based Calculations',520 'helpLink' => 'https://designful.freshdesk.com/support/solutions/articles/48001244300-element-distance-based-cost',521 'icon' => 'map-pin',522 'key' => 'distance-element',523 ],524 1090 ], 525 1091 ] ); -
stylish-price-list/trunk/functions.php
r2937092 r3120663 12 12 } 13 13 14 15 if (!function_exists('spl_generate_schema_markup')) { 16 function spl_generate_schema_markup( $spl_data_values, $jsonld_currency ) { 17 18 // Populate the offers array 19 foreach ($spl_data_values as $category) { 20 $category_name = $category['name']; 21 foreach (array_keys($category) as $key => $value) { 22 $product = $category[$value]; 23 if ( !is_array( $product ) ) { 24 continue; 25 } 26 $price = $product['service_price']; 27 // strip the currency symbol 28 $price = preg_replace( '/[^0-9.]/', '', $price ); 29 // check if $product['service_image'] is a valid URL, and if $price is not empty 30 if ( !filter_var( $product['service_image'], FILTER_VALIDATE_URL ) || empty( $price ) ) { 31 continue; 32 } 33 $schema_data = [ 34 "@context" => "https://schema.org/", 35 "@type" => "Product", 36 "name" => html_entity_decode( $product['service_name'] ), 37 "category" => $category_name, 38 "description" => $product['service_long_description'], 39 "offers" => [ 40 "@type" => "Offer", 41 "price" => $price, 42 "priceCurrency" => $jsonld_currency, 43 "availability" => "https://schema.org/InStock", 44 "url" => get_permalink( $product['service_id'] ) 45 ], 46 "image" => [ 47 "@type" => "ImageObject", 48 "url" => $product['service_image'], 49 "image" => $product['service_image'], 50 "name" => html_entity_decode( $product['service_name'] ) 51 ] 52 ]; 53 // Encode the array to JSON 54 $jsonLd = json_encode( $schema_data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT ); 55 // Output the schema 56 echo '<script id="schemaorg" type="application/ld+json">' . $jsonLd . '</script>'; 57 } 58 } 59 } 60 } 61 -
stylish-price-list/trunk/readme.txt
r3107450 r3120663 4 4 Tags: qr code menu, pricing table, restaurant menu, table builder, price list builder 5 5 Plugin URL: https://stylishpricelist.com 6 Version: 7.1. 56 Version: 7.1.6 7 7 Donate link: https://stylishpricelist.com 8 8 Requires at least: 4.0 9 9 Tested up to: 6.5.3 10 10 Requires PHP: 5.6 11 Stable tag: 7.1. 511 Stable tag: 7.1.6 12 12 License: GPLv2 or later 13 13 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
stylish-price-list/trunk/shortcode/pricelist-frontend.php
r3107450 r3120663 58 58 $price_list_desc = isset( $cats_data['price_list_desc'] ) ? $cats_data['price_list_desc'] : ''; 59 59 $enable_searchbar = isset( $cats_data['enable_searchbar'] ) ? absint( $cats_data['enable_searchbar'] ) : 0; 60 $enable_price_range_slider = isset( $cats_data['enable_price_range_slider'] ) ? absint( $cats_data['enable_price_range_slider'] ) : 0; 60 61 $brack_title_desktop = isset( $cats_data['brack_title_desktop'] ) ? $cats_data['brack_title_desktop'] : ''; 61 62 $brack_title_tablets = isset( $cats_data['brack_title_tablets'] ) ? $cats_data['brack_title_tablets'] : ''; … … 87 88 $description_font_weight = isset( $cats_data['description_font-weight'] ) ? $cats_data['description_font-weight'] : ''; 88 89 $opt_cats = $cats_data['category']; 89 $spl_data_values = $opt_cats; 90 $jsonld_currency = isset( $cats_data['jsonld_currency'] ) ? $cats_data['jsonld_currency'] : 'USD'; 91 $spl_data_values = $opt_cats; 90 92 91 93 … … 160 162 wp_enqueue_script( 'spl-tomselect' ); 161 163 } 164 if ( $enable_price_range_slider ) { 165 wp_enqueue_style( 'spl-no-ui-slider' ); 166 wp_enqueue_script( 'spl-no-ui-slider' ); 167 } 162 168 if ( $font_source == 'use-pagefont' ) { 163 169 $list_name_font = 'inherit'; … … 180 186 function output_service_style2( $service, $is_buy_btn_newtab_enabled ) { 181 187 extract( $service ); 188 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 182 189 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 183 190 if ( empty( $name ) ) { … … 248 255 function output_service_style2_beta( $service, $is_buy_btn_newtab_enabled ) { 249 256 extract( $service ); 257 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 250 258 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 251 259 if ( empty( $name ) ) { … … 316 324 function output_service_style2_single_column( $service, $is_buy_btn_newtab_enabled ) { 317 325 extract( $service ); 326 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 318 327 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 319 328 if ( empty( $name ) ) { … … 382 391 function output_service_col1( $service, $is_buy_btn_newtab_enabled ) { 383 392 extract( $service ); 393 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 384 394 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 385 395 if ( empty( $name ) ) { … … 442 452 <?php endif; ?> 443 453 </div> 444 <div class="spl-one-bottom"></div>445 454 <?php } else { ?> 446 455 <!-- Style 1 - Without Book Now--> … … 474 483 </div> 475 484 </div> 476 <div class="spl-one-bottom"></div>477 485 </div> 478 486 <?php } ?> … … 594 602 $newTabOpen = 'target="_blank"'; 595 603 } 596 $service['price'] = empty($service['settings_compare_at']) ? $service['price'] : '<s>'.$service['settings_compare_at'].'</s>'. ' ' . $service['price']; 604 $price = $service['price']; 605 $settings_compare_at = $service['settings_compare_at']; 606 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 607 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 597 608 ob_start(); 598 609 ?> … … 605 616 <div class="spl-position_absolute spl-height-3 spl-width-full spl-bottom-2 scc-2-dotted-grey"></div> 606 617 <h4 class="style-6-2-desc"><strong data-price-list-fragment="item_name" class="name a-tag"><?php echo html_entity_decode( $service['name'] ); ?></strong></h4> 607 <h4 class="style-6-2-price"><strong data-price-list-fragment="price" class="spl-price a-tag"><?php echo html_entity_decode( $ service['price']); ?></strong></h4>618 <h4 class="style-6-2-price"><strong data-price-list-fragment="price" class="spl-price a-tag"><?php echo html_entity_decode( $price ); ?></strong></h4> 608 619 </div> 609 620 <div class="style-6-height-10"></div> … … 633 644 $newTabOpen = 'target="_blank"'; 634 645 } 646 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 647 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 635 648 ob_start(); 636 649 ?> … … 675 688 <div class="df-spl-level style-1"> 676 689 <div class="df-spl-level-right style-1"> 677 <?php echo df_spl_output_a_tag( '<s>'.$settings_compare_at.'</s>'. ' ' .$price, '', 'spl-price a-tag' ); ?>690 <?php echo df_spl_output_a_tag( $price, '', 'spl-price a-tag' ); ?> 678 691 <a href="<?php echo esc_attr($service['service_button_url']); ?>" <?php echo isset( $newTabOpen ) ? esc_attr($newTabOpen) : ''; ?> class="btn btn-book-now spl_book_now_btn_style_1"><?php echo esc_attr($service['service_button']); ?></a> 679 692 </div> … … 685 698 <?php endif; ?> 686 699 </div> 687 <div class="spl-one-bottom"></div>688 700 <?php } else { ?> 689 701 <!-- Style 1 - Without Book Now--> … … 717 729 </div> 718 730 </div> 719 <div class="spl-one-bottom"></div>720 731 </div> 721 732 <?php } ?> … … 730 741 function output_service_break_col1( $service, $is_buy_btn_newtab_enabled ) { 731 742 extract( $service ); 743 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 732 744 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 733 745 if ( empty( $name ) ) { … … 783 795 function output_service_break( $service, $is_buy_btn_newtab_enabled ) { 784 796 extract( $service ); 797 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 785 798 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 786 799 if ( empty( $name ) ) { … … 836 849 function output_service_style3( $service, $is_buy_btn_newtab_enabled ) { 837 850 extract( $service ); 851 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 838 852 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 839 853 if ( empty( $name ) ) { … … 893 907 function output_service_style4_col1( $service, $is_buy_btn_newtab_enabled ) { 894 908 extract( $service ); 909 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 895 910 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 896 911 if ( empty( $name ) ) { … … 938 953 function output_service_style4( $service, $is_buy_btn_newtab_enabled ) { 939 954 extract( $service ); 955 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 940 956 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 941 957 if ( empty( $name ) ) { … … 986 1002 } 987 1003 extract( $service ); 1004 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 988 1005 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 989 1006 if ( empty( $name ) ) { … … 1795 1812 return; 1796 1813 } 1814 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 1797 1815 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 1798 1816 if ( isset( $is_buy_btn_newtab_enabled ) && $is_buy_btn_newtab_enabled == '1' ) { … … 1861 1879 return; 1862 1880 } 1881 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 1863 1882 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 1864 1883 if ( isset( $is_buy_btn_newtab_enabled ) && $is_buy_btn_newtab_enabled == '1' ) { … … 1904 1923 return; 1905 1924 } 1925 $price = "<span data-price=$price>" . esc_attr( $price ) . '</span>'; 1906 1926 $price = empty($settings_compare_at) ? $price : '<s>'.$settings_compare_at.'</s>'. ' ' . $price; 1907 1927 if ( isset( $is_buy_btn_newtab_enabled ) && $is_buy_btn_newtab_enabled == '1' ) { … … 2375 2395 </span> 2376 2396 </div> 2397 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2398 <?php if ( $enable_price_range_slider ) : ?> 2399 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2400 <?php endif; ?> 2377 2401 <?php if ( $enable_searchbar ) : ?> 2378 <nav class="pricelist-searchbar ">2402 <nav class="pricelist-searchbar clearfix"> 2379 2403 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2380 2404 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> … … 2385 2409 </nav> 2386 2410 <?php endif; ?> 2411 </nav> 2387 2412 <?php if ( $price_list_desc != '' ) { ?> 2388 2413 <div class="col-sm-8 col-sm-offset-2 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> … … 2447 2472 </span> 2448 2473 </div> 2474 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2475 <?php if ( $enable_price_range_slider ) : ?> 2476 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2477 <?php endif; ?> 2449 2478 <?php if ( $enable_searchbar ) : ?> 2450 <nav class="pricelist-searchbar ">2479 <nav class="pricelist-searchbar clearfix"> 2451 2480 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2452 2481 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> … … 2457 2486 </nav> 2458 2487 <?php endif; ?> 2488 </nav> 2459 2489 <?php if ( $price_list_desc != '' ) { ?> 2460 2490 <div class="col-sm-8 col-sm-offset-2 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> … … 2535 2565 <div class="col-sm-8 col-sm-offset-2 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> 2536 2566 </div> 2537 <?php if ( $enable_searchbar ) : ?> 2538 <nav class="pricelist-searchbar"> 2539 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2540 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2541 <path d="M0 0h24v24H0V0z" fill="none" /> 2542 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2543 </svg></span> 2544 </div> 2545 </nav> 2546 <?php endif; ?> 2567 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2568 <?php if ( $enable_price_range_slider ) : ?> 2569 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2570 <?php endif; ?> 2571 <?php if ( $enable_searchbar ) : ?> 2572 <nav class="pricelist-searchbar clearfix"> 2573 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2574 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2575 <path d="M0 0h24v24H0V0z" fill="none" /> 2576 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2577 </svg></span> 2578 </div> 2579 </nav> 2580 <?php endif; ?> 2581 </nav> 2547 2582 <?php echo output_tab_contents_second_style( $cats, $default, $shortcode_id, $is_buy_btn_newtab_enabled ); ?> 2548 2583 </div> … … 2564 2599 ?> 2565 2600 </span> 2566 <?php if ( $enable_searchbar ) : ?> 2567 <nav class="style2-single-column pricelist-searchbar"> 2568 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2569 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2570 <path d="M0 0h24v24H0V0z" fill="none" /> 2571 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2572 </svg></span> 2573 </div> 2574 </nav> 2575 <?php endif; ?> 2601 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2602 <?php if ( $enable_price_range_slider ) : ?> 2603 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2604 <?php endif; ?> 2605 <?php if ( $enable_searchbar ) : ?> 2606 <nav class="pricelist-searchbar clearfix"> 2607 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2608 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2609 <path d="M0 0h24v24H0V0z" fill="none" /> 2610 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2611 </svg></span> 2612 </div> 2613 </nav> 2614 <?php endif; ?> 2615 </nav> 2576 2616 <div class="col-sm-8 col-sm-offset-2 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> 2577 2617 </div> … … 2597 2637 </span> 2598 2638 </div> 2599 <?php if ( $enable_searchbar ) : ?> 2600 <nav class="pricelist-searchbar"> 2601 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2602 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2603 <path d="M0 0h24v24H0V0z" fill="none" /> 2604 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2605 </svg></span> 2606 </div> 2607 </nav> 2608 <?php endif; ?> 2639 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2640 <?php if ( $enable_price_range_slider ) : ?> 2641 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2642 <?php endif; ?> 2643 <?php if ( $enable_searchbar ) : ?> 2644 <nav class="pricelist-searchbar clearfix"> 2645 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2646 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2647 <path d="M0 0h24v24H0V0z" fill="none" /> 2648 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2649 </svg></span> 2650 </div> 2651 </nav> 2652 <?php endif; ?> 2653 </nav> 2609 2654 <?php if ( $price_list_desc != '' ) { ?> 2610 2655 <div class="col-sm-8 col-sm-offset-2 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> … … 2639 2684 </span> 2640 2685 </div> 2641 <?php if ( $enable_searchbar ) : ?> 2642 <nav class="pricelist-searchbar"> 2643 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2644 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2645 <path d="M0 0h24v24H0V0z" fill="none" /> 2646 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2647 </svg></span> 2648 </div> 2649 </nav> 2650 <?php endif; ?> 2686 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2687 <?php if ( $enable_price_range_slider ) : ?> 2688 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2689 <?php endif; ?> 2690 <?php if ( $enable_searchbar ) : ?> 2691 <nav class="pricelist-searchbar clearfix"> 2692 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2693 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2694 <path d="M0 0h24v24H0V0z" fill="none" /> 2695 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2696 </svg></span> 2697 </div> 2698 </nav> 2699 <?php endif; ?> 2700 </nav> 2651 2701 <?php if ( $price_list_desc != '' ) { ?> 2652 2702 <div class="col-sm-12 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> … … 2734 2784 </span> 2735 2785 </div> 2786 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2787 <?php if ( $enable_price_range_slider ) : ?> 2788 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2789 <?php endif; ?> 2736 2790 <?php if ( $enable_searchbar ) : ?> 2737 <nav class="pricelist-searchbar ">2791 <nav class="pricelist-searchbar clearfix"> 2738 2792 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2739 2793 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> … … 2744 2798 </nav> 2745 2799 <?php endif; ?> 2800 </nav> 2746 2801 <?php if ( $price_list_desc != '' ) { ?> 2747 2802 <div class="col-sm-12 desc_price_list"><?php echo html_entity_decode( preg_replace( '/[\n\r]/', '<br />', str_replace( '\"', '"', str_replace( "\'", "'", stripslashes( $price_list_desc ) ) ) ) ); ?></div> … … 2795 2850 <?php } ?> 2796 2851 </div> 2797 <?php if ( $enable_searchbar ) : ?> 2798 <nav class="pricelist-searchbar"> 2799 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2800 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2801 <path d="M0 0h24v24H0V0z" fill="none" /> 2802 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2803 </svg></span> 2804 </div> 2805 </nav> 2806 <?php endif; ?> 2852 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2853 <?php if ( $enable_price_range_slider ) : ?> 2854 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2855 <?php endif; ?> 2856 <?php if ( $enable_searchbar ) : ?> 2857 <nav class="pricelist-searchbar clearfix"> 2858 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2859 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2860 <path d="M0 0h24v24H0V0z" fill="none" /> 2861 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2862 </svg></span> 2863 </div> 2864 </nav> 2865 <?php endif; ?> 2866 </nav> 2807 2867 <div class="col-md-9 col-lg-9 style5_cat_tab tabs_spl"> 2808 2868 <?php if ( $show_dropdown ) : ?> … … 2884 2944 <?php endif; ?> 2885 2945 </div> 2886 <?php if ( $enable_searchbar ) : ?> 2887 <nav class="pricelist-searchbar"> 2888 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2889 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2890 <path d="M0 0h24v24H0V0z" fill="none" /> 2891 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2892 </svg></span> 2893 </div> 2894 </nav> 2895 <?php endif; ?> 2946 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2947 <?php if ( $enable_price_range_slider ) : ?> 2948 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2949 <?php endif; ?> 2950 <?php if ( $enable_searchbar ) : ?> 2951 <nav class="pricelist-searchbar clearfix"> 2952 <input type="text" name="search" class="spl-mysearch" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"> 2953 <div class="spl-searchbar-icon" style="background-color: <?php echo esc_attr($title_color_top); ?>"><span class="spl-icon-wrapper"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 24 24" width="14px" fill="#fff"> 2954 <path d="M0 0h24v24H0V0z" fill="none" /> 2955 <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> 2956 </svg></span> 2957 </div> 2958 </nav> 2959 <?php endif; ?> 2960 </nav> 2896 2961 <div class="df-spl-row"> 2897 2962 <div class="col-md-12 col-lg-12 df-spl-style7_cat_tab tabs_spl"> … … 2925 2990 </span> 2926 2991 </div> 2992 <nav class="searchbar-and-price-range-wrapper clearfix <?php echo $enable_price_range_slider ? 'has-price-range' : ''; ?>"> 2993 <?php if ( $enable_price_range_slider ) : ?> 2994 <div id="spl-slider-handles" data-target="spl_<?php echo esc_attr($shortcode_id); ?>"></div> 2995 <?php endif; ?> 2927 2996 <?php if ( $enable_searchbar ) : ?> 2928 2997 <nav class="pricelist-searchbar clearfix"> … … 2935 3004 </nav> 2936 3005 <?php endif; ?> 3006 </nav> 2937 3007 <?php if ( $show_dropdown ) : ?> 2938 3008 <select class="cats-dd-style-8" autocomplete="off" <?php if ($dropdown_mobile_no_keyboard == '1') echo 'data-no-keyboard-popup=1' ?>> … … 3663 3733 } 3664 3734 3665 #spl_<?php echo esc_attr($id); ?>.price_wrapper .df-spl-style7_cat_tab-container ul li.active { 3735 #spl_<?php echo esc_attr($id); ?>.price_wrapper .df-spl-style7_cat_tab-container ul li.active, 3736 #spl_<?php echo esc_attr($id); ?>.price_wrapper .noUi-connect { 3666 3737 background-color: <?php echo esc_attr($hover_color); ?>; 3667 3738 } … … 3964 4035 .txt-button-style3{ 3965 4036 background:white; 3966 width:76px !important; 3967 height:28px !important; 3968 border: 1px solid #E6A900; 4037 border: 1px solid #E6A900; 4038 float: right; 3969 4039 font-size:12px; 3970 border-radius:20px; 3971 padding: 6px 14px; 3972 text-decoration:none; 3973 3974 } 3975 .txt-button-style3:hover{ 3976 width:76px !important; 3977 height:28px !important; 3978 border: 1px solid #E6A900; 3979 font-size:12px; 4040 line-height: 15px; 3980 4041 border-radius:20px; 3981 4042 padding: 6px 14px; … … 3997 4058 </style> 3998 4059 <!-- Include the plug-in --> 3999 <?php $url = plugins_url(); ?> 4060 <?php 4061 $url = plugins_url(); 4062 add_action('wp_footer', function() use ( $spl_data_values, $jsonld_currency ) { 4063 spl_generate_schema_markup( $spl_data_values, $jsonld_currency ); 4064 }); 4065 ?> 4000 4066 <script type="text/javascript"> 4001 4067 document.addEventListener('DOMContentLoaded', function() { … … 4037 4103 </script> 4038 4104 <!--AK Style --> 4039 <?php 4040 if (!function_exists('spl_generate_schema_markup')) { 4041 function spl_generate_schema_markup($category_type, $spl_data_values) { 4042 $html = '<script id="schemaorg" type="application/ld+json">'; 4043 $html .= '{'; 4044 $html .= '"@context": "https://schema.org/",'; 4045 $html .= '"@type": "' . $category_type . '",'; 4046 $html .= '"name": '; 4047 $html .= '"offers": ['; 4048 4049 foreach ($spl_data_values as $category) { 4050 $html .= '{'; 4051 $html .= '"@type": "Offer",'; 4052 $html .= '"name": "' . $category['name'] . '",'; 4053 $html .= '"description": "' . $category['description'] . '",'; 4054 4055 if (isset($category['price']) && isset($category['priceCurrency'])) { 4056 $html .= '"price": "' . $category['price'] . '",'; 4057 $html .= '"priceCurrency": "' . $category['priceCurrency'] . '"'; 4058 } 4059 4060 $html .= '},'; 4061 } 4062 4063 $html = rtrim($html, ','); 4064 4065 $html .= ']'; 4066 $html .= '}'; 4067 $html .= '</script>'; 4068 4069 echo $html; 4070 } 4071 } 4072 add_action('wp_head', function() use ($spl_data_values) { 4073 spl_generate_schema_markup('category', $spl_data_values); 4074 }); 4075 ?> 4076 4105 -
stylish-price-list/trunk/shortcode/pricelist.php
r3078918 r3120663 8 8 9 9 add_shortcode( 'pricelist', 'spl_shortcode_pricelist' ); 10 10 11 function spl_shortcode_pricelist( $atts, $content = null ) { 11 12 extract( … … 64 65 wp_register_style( 'spl-tomselect', SPL_URL . '/assets/css/tom-select.bootstrap4.min.css', array(), df_spl_get_file_version( SPL_DIR . '/assets/css/tom-select.bootstrap4.min.css' ) ); 65 66 wp_register_script( 'spl-tomselect', SPL_URL . '/assets/js/tom-select.base.min.js', array(), df_spl_get_file_version( SPL_DIR . '/assets/js/tom-select.base.min.js' ), true ); 67 wp_register_script( 'spl-no-ui-slider', SPL_URL . 'assets/js/nouislider.min.js', array(), df_spl_get_file_version( SPL_DIR . '/assets/js/nouislider.min.js' ), true ); 68 wp_register_style( 'spl-no-ui-slider', SPL_URL . 'assets/css/nouislider.css', array(), df_spl_get_file_version( SPL_DIR . 'assets/css/nouislider.css' ) ); 66 69 67 70 // get advanced settings … … 99 102 wp_register_script( 'spl-add-new-page', SPL_URL . 'assets/js/add-new-page.js', array(), df_spl_get_file_version( SPL_DIR . '/assets/js/add-new-page.js' ), true ); 100 103 wp_register_style( 'spl-add-new-page', SPL_URL . 'assets/css/add-new-page.css', array(), df_spl_get_file_version( SPL_DIR . 'assets/css/add-new-page.css' ) ); 104 wp_register_script( 'spl-no-ui-slider', SPL_URL . 'assets/js/nouislider.min.js', array(), df_spl_get_file_version( SPL_DIR . '/assets/js/nouislider.min.js' ), true ); 105 wp_register_style( 'spl-no-ui-slider', SPL_URL . 'assets/css/nouislider.css', array(), df_spl_get_file_version( SPL_DIR . 'assets/css/nouislider.css' ) ); 101 106 wp_enqueue_style( 'spl-tomselect' ); 102 107 wp_enqueue_script( 'spl-tomselect' ); -
stylish-price-list/trunk/stylish-price-list.php
r3107450 r3120663 7 7 Plugin URI: https://stylishpricelist.com/ 8 8 Description: Build a stylish price list for your business 9 Version: 7.1. 59 Version: 7.1.6 10 10 Author: Designful 11 11 Author URI: https://stylishpricelist.com/ … … 15 15 Text Domain: spl 16 16 */ 17 define( 'STYLISH_PRICE_LIST_VERSION', '7.1. 5' );18 define( 'STYLISH_PRICE_LIST_BETA', true );17 define( 'STYLISH_PRICE_LIST_VERSION', '7.1.6' ); 18 define( 'STYLISH_PRICE_LIST_BETA', false ); 19 19 define( 'SPL_URL', plugin_dir_url( __FILE__ ) ); 20 20 define( 'SPL_ASSETS_URL', SPL_URL . 'assets/' );
Note: See TracChangeset
for help on using the changeset viewer.