Schema & Structured Data for WP & AMP - Version 1.9.106

Version Description

(03 Dec 2022) =

  • Fixed: Remove the span Id from the Article schema. #1788
  • Fixed: FAQs are not shown in the classic editor front end. #1785
  • Fixed: There is an error while adding the productreview.com.au reviews. #1757
  • Fixed: Warning: Undefined variable $pagenow #1793
  • Enhancement: In the FAQ and HOW TO schemas, "about property" should be added. #1794
  • Fixed: Activate plugin wp-admin side crashes #1796
Download this release

Release Info

Developer magazine3
Plugin Icon 128x128 Schema & Structured Data for WP & AMP
Version 1.9.106
Comparing to
See all releases

Code changes from version 1.9.105 to 1.9.106

admin_section/common-function.php CHANGED
@@ -3710,7 +3710,7 @@ function saswp_unique_multidim_array($array, $key) {
3710
  $key_array = array();
3711
  if(!empty($array) && !empty($key)){
3712
  foreach($array as $val) {
3713
- if(isset($val[$key])){
3714
  $checked = saswp_youtube_check_validate_url($val[$key]);
3715
  if (!empty($checked)) {
3716
  if (!in_array($val[$key], $key_array)) {
@@ -3726,9 +3726,15 @@ function saswp_unique_multidim_array($array, $key) {
3726
  }
3727
 
3728
  function saswp_youtube_check_validate_url($yt_url) {
3729
- $url_parsed_arr = parse_url($yt_url);
3730
- if ($url_parsed_arr['host'] == "youtu.be" || $url_parsed_arr['host'] == "www.youtube.com" || $url_parsed_arr['path'] == "/watch" || substr($url_parsed_arr['query'], 0, 2) == "v=") {
3731
- return $yt_url;
 
 
 
 
 
 
3732
  }
3733
  }
3734
 
3710
  $key_array = array();
3711
  if(!empty($array) && !empty($key)){
3712
  foreach($array as $val) {
3713
+ if(!empty($val[$key])){
3714
  $checked = saswp_youtube_check_validate_url($val[$key]);
3715
  if (!empty($checked)) {
3716
  if (!in_array($val[$key], $key_array)) {
3726
  }
3727
 
3728
  function saswp_youtube_check_validate_url($yt_url) {
3729
+ if(!empty($yt_url)){
3730
+ $url_parsed_arr = parse_url($yt_url);
3731
+ if ($url_parsed_arr['host'] == "youtu.be" || $url_parsed_arr['host'] == "www.youtube.com" || $url_parsed_arr['path'] == "/watch" || substr($url_parsed_arr['query'], 0, 2) == "v=") {
3732
+ return $yt_url;
3733
+ }else{
3734
+ return "";
3735
+ }
3736
+ }else{
3737
+ return "";
3738
  }
3739
  }
3740
 
admin_section/css/main-style.css CHANGED
@@ -3051,6 +3051,12 @@ label.saswp-sts-txt.active {font-weight: 400;}
3051
  span.inactive_Reviews { font-weight: 400; font-size: 14px; color: #000; }
3052
  .saswp-sts-active-main.reviews_addon span.saswp-license-tenure {display: none;}
3053
  .saswp-load-more-rv{cursor:pointer;}
 
 
 
 
 
 
3054
  /* Offer Banner Starts Here */
3055
  /* .saswp-offer-banner{
3056
  background: #ca4a1f;
3051
  span.inactive_Reviews { font-weight: 400; font-size: 14px; color: #000; }
3052
  .saswp-sts-active-main.reviews_addon span.saswp-license-tenure {display: none;}
3053
  .saswp-load-more-rv{cursor:pointer;}
3054
+ .stars_color_picker input#saswp_stars_color_picker {
3055
+ width: 63px !important;
3056
+ }
3057
+ .stars_color_picker input.button.button-small.wp-picker-default {
3058
+ width: 75px;
3059
+ }
3060
  /* Offer Banner Starts Here */
3061
  /* .saswp-offer-banner{
3062
  background: #ca4a1f;
admin_section/js/main-script.js CHANGED
@@ -3,7 +3,7 @@ var saswp_attached_col = [];
3
  var rmv_boolean = false;
4
  var rmv_html = '';
5
  jQuery(document).ready(function($){
6
-
7
  //edit Schema page in show field for
8
  var busines_stype = $('#schema_type').find(":selected").val();
9
  if(busines_stype == 'local_business'){
3
  var rmv_boolean = false;
4
  var rmv_html = '';
5
  jQuery(document).ready(function($){
6
+ jQuery(".saswpforwp-colorpicker").wpColorPicker(); // Color picker
7
  //edit Schema page in show field for
8
  var busines_stype = $('#schema_type').find(":selected").val();
9
  if(busines_stype == 'local_business'){
admin_section/js/wp-color-picker-alpha.min.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ /**!
2
+ * wp-color-picker-alpha
3
+ *
4
+ * Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker
5
+ * Only run in input and is defined data alpha in true
6
+ *
7
+ * Version: 3.0.0
8
+ * https://github.com/kallookoo/wp-color-picker-alpha
9
+ * Licensed under the GPLv2 license or later.
10
+ */
11
+ !function(e,a){var l,o={version:300};if("wpColorPickerAlpha"in window&&"version"in window.wpColorPickerAlpha){var t=parseInt(window.wpColorPickerAlpha.version,10);if(!isNaN(t)&&o.version<=t)return}Color.fn.hasOwnProperty("to_s")||(Color.fn.to_s=function(o){"hex"===(o=o||"hex")&&this._alpha<1&&(o="rgba");var a="";return"hex"===o?a=this.toString():this.error||(a=this.toCSS(o).replace(/\(\s+/,"(").replace(/\s+\)/,")")),a},window.wpColorPickerAlpha=o,l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==",e.widget("a8c.iris",e.a8c.iris,{alphaOptions:{alphaEnabled:!1},_getColor:function(o){return o===a&&(o=this._color),this.alphaOptions.alphaEnabled?(o=o.to_s(this.alphaOptions.alphaColorType),this.alphaOptions.alphaColorWithSpace||(o=o.replace(/\s+/g,"")),o):o.toString()},_create:function(){try{this.alphaOptions=this.element.wpColorPicker("instance").alphaOptions}catch(o){}e.extend({},this.alphaOptions,{alphaEnabled:!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"hex",alphaColorWithSpace:!1}),this._super()},_addInputListeners:function(i){function o(o){var a=i.val(),t=new Color(a),a=a.replace(/^(#|(rgb|hsl)a?)/,""),r=l.alphaOptions.alphaColorType;i.removeClass("iris-error"),t.error?""!==a&&i.addClass("iris-error"):"hex"===r&&"keyup"===o.type&&a.match(/^[0-9a-fA-F]{3}$/)||t.toIEOctoHex()!==l._color.toIEOctoHex()&&l._setOption("color",l._getColor(t))}var l=this;i.on("change",o).on("keyup",l._debounce(o,100)),l.options.hide&&i.one("focus",function(){l.show()})},_initControls:function(){var t,o,a,r;this._super(),this.alphaOptions.alphaEnabled&&(a=(o=(t=this).controls.strip.clone(!1,!1)).find(".iris-slider-offset"),r={stripAlpha:o,stripAlphaSlider:a},o.addClass("iris-strip-alpha"),a.addClass("iris-slider-offset-alpha"),o.appendTo(t.picker.find(".iris-picker-inner")),e.each(r,function(o,a){t.controls[o]=a}),t.controls.stripAlphaSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*t._color._alpha),slide:function(o,a){t.active="strip",t._color._alpha=parseFloat(a.value/100),t._change.apply(t,arguments)}}))},_dimensions:function(o){if(this._super(o),this.alphaOptions.alphaEnabled){for(var a=this,t=a.options,r=a.controls.square,o=a.picker.find(".iris-strip"),i=Math.round(a.picker.outerWidth(!0)-(t.border?22:0)),l=Math.round(r.outerWidth()),e=Math.round((i-l)/2),s=Math.round(e/2),n=Math.round(l+2*e+2*s);i<n;)e=Math.round(e-2),s=Math.round(s-1),n=Math.round(l+2*e+2*s);r.css("margin","0"),o.width(e).css("margin-left",s+"px")}},_change:function(){var o,a,t,r=this,i=r.active;r._super(),r.alphaOptions.alphaEnabled&&(o=r.controls,a=parseInt(100*r._color._alpha),t=["rgb("+(t=r._color.toRgb()).r+","+t.g+","+t.b+") 0%","rgba("+t.r+","+t.g+","+t.b+", 0) 100%"],r.picker.closest(".wp-picker-container").find(".wp-color-result"),r.options.color=r._getColor(),o.stripAlpha.css({background:"linear-gradient(to bottom, "+t.join(", ")+"), url("+l+")"}),i&&o.stripAlphaSlider.slider("value",a),r._color.error||r.element.removeClass("iris-error").val(r.options.color),r.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){var o=e(this).data("color");r.alphaOptions.alphaReset&&(r._color._alpha=1,o=r._getColor()),r._setOption("color",o)}))},_paintDimension:function(o,a){var t=this,r=!1;t.alphaOptions.alphaEnabled&&"strip"===a&&(r=t._color,t._color=new Color(r.toString()),t.hue=t._color.h()),t._super(o,a),r&&(t._color=r)},_setOption:function(o,a){var t=this;if("color"!==o||!t.alphaOptions.alphaEnabled)return t._super(o,a);a=""+a,newColor=new Color(a).setHSpace(t.options.mode),newColor.error||t._getColor(newColor)===t._getColor()||(t._color=newColor,t.options.color=t._getColor(),t.active="external",t._change())},color:function(o){return!0===o?this._color.clone():o===a?this._getColor():void this.option("color",o)}}),e.widget("wp.wpColorPicker",e.wp.wpColorPicker,{alphaOptions:{alphaEnabled:!1},_getAlphaOptions:function(){var r=this.element,o=r.data("type")||this.options.type,i=r.data("defaultColor")||r.val(),l={alphaEnabled:r.data("alphaEnabled")||!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"rgb",alphaColorWithSpace:!1};return l.alphaEnabled&&(l.alphaEnabled=r.is("input")&&"full"===o),l.alphaEnabled&&(l.alphaColorWithSpace=i&&i.match(/\s/),e.each(l,function(o,a){var t=r.data(o)||a;switch(o){case"alphaCustomWidth":t=t?parseInt(t,10):0,t=isNaN(t)?a:t;break;case"alphaColorType":t.match(/^(hex|(rgb|hsl)a?)$/)||(t=i&&i.match(/^#/)?"hex":i&&i.match(/^hsla?/)?"hsl":a);break;default:t=!!t}l[o]=t})),l},_create:function(){e.support.iris&&(this.alphaOptions=this._getAlphaOptions(),this._super())},_addListeners:function(){if(!this.alphaOptions.alphaEnabled)return this._super();var t=this,r=t.element,i=t.toggler.is("a");this.alphaOptions.defaultWidth=r.width(),this.alphaOptions.alphaCustomWidth&&r.width(parseInt(this.alphaOptions.defaultWidth+this.alphaOptions.alphaCustomWidth,10)),t.toggler.css({position:"relative","background-image":"url("+l+")"}),i?t.toggler.html('<span class="color-alpha" />'):t.toggler.append('<span class="color-alpha" />'),t.colorAlpha=t.toggler.find("span.color-alpha").css({width:"30px",height:"100%",position:"absolute",top:0,"background-color":r.val()}),"ltr"===t.colorAlpha.css("direction")?t.colorAlpha.css({"border-bottom-left-radius":"2px","border-top-left-radius":"2px",left:0}):t.colorAlpha.css({"border-bottom-right-radius":"2px","border-top-right-radius":"2px",right:0}),r.iris({change:function(o,a){t.colorAlpha.css({"background-color":a.color.to_s(t.alphaOptions.alphaColorType)}),e.isFunction(t.options.change)&&t.options.change.call(this,o,a)}}),t.wrap.on("click.wpcolorpicker",function(o){o.stopPropagation()}),t.toggler.click(function(){t.toggler.hasClass("wp-picker-open")?t.close():t.open()}),r.change(function(o){var a=e(this).val();(r.hasClass("iris-error")||""===a||a.match(/^(#|(rgb|hsl)a?)$/))&&(i&&t.toggler.removeAttr("style"),t.colorAlpha.css("background-color",""),e.isFunction(t.options.clear)&&t.options.clear.call(this,o))}),t.button.click(function(o){e(this).hasClass("wp-picker-default")?r.val(t.options.defaultColor).change():e(this).hasClass("wp-picker-clear")&&(r.val(""),i&&t.toggler.removeAttr("style"),t.colorAlpha.css("background-color",""),e.isFunction(t.options.clear)&&t.options.clear.call(this,o),r.trigger("change"))})}}))}(jQuery);
admin_section/promotional-popup.php DELETED
@@ -1,14 +0,0 @@
1
- <details id="saswp-ocassional-pop-up-container" open>
2
- <summary class="saswp-ocassional-pop-up-open-close-button"><?= esc_html_e('40% OFF - Limited Time Only', 'easy-table-of-contents'); ?><svg fill="#fff" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 288.359 288.359" style="enable-background:new 0 0 288.359 288.359;" xml:space="preserve"><g><path d="M283.38,4.98c-3.311-3.311-7.842-5.109-12.522-4.972L163.754,3.166c-4.334,0.128-8.454,1.906-11.52,4.972L4.979,155.394 c-6.639,6.639-6.639,17.402,0,24.041L108.924,283.38c6.639,6.639,17.402,6.639,24.041,0l147.256-147.256 c3.065-3.065,4.844-7.186,4.972-11.52l3.159-107.103C288.49,12.821,286.691,8.291,283.38,4.98z M247.831,130.706L123.128,255.407 c-1.785,1.785-4.679,1.785-6.464,0l-83.712-83.712c-1.785-1.785-1.785-4.679,0-6.464L157.654,40.529 c1.785-1.785,4.679-1.785,6.464,0l83.713,83.713C249.616,126.027,249.616,128.921,247.831,130.706z M263.56,47.691 c-6.321,6.322-16.57,6.322-22.892,0c-6.322-6.321-6.322-16.57,0-22.892c6.321-6.322,16.569-6.322,22.892,0 C269.882,31.121,269.882,41.37,263.56,47.691z"/><path d="M99.697,181.278c-5.457,2.456-8.051,3.32-10.006,1.364c-1.592-1.591-1.5-4.411,1.501-7.412 c1.458-1.458,2.927-2.52,4.26-3.298c1.896-1.106,2.549-3.528,1.467-5.438l-0.018-0.029c-0.544-0.96-1.455-1.658-2.522-1.939 c-1.067-0.279-2.202-0.116-3.147,0.453c-1.751,1.054-3.64,2.48-5.587,4.428c-7.232,7.23-7.595,15.599-2.365,20.829 c4.457,4.457,10.597,3.956,17.463,0.637c5.004-2.364,7.55-2.729,9.46-0.819c2.002,2.002,1.638,5.004-1.545,8.186 c-1.694,1.694-3.672,3.044-5.582,4.06c-0.994,0.528-1.728,1.44-2.027,2.525c-0.3,1.085-0.139,2.245,0.443,3.208l0.036,0.06 c1.143,1.889,3.575,2.531,5.503,1.457c2.229-1.241,4.732-3.044,6.902-5.215c8.412-8.412,8.002-16.736,2.864-21.875 C112.475,178.141,107.109,177.868,99.697,181.278z"/><path d="M150.245,157.91l-31.508-16.594c-1.559-0.821-3.47-0.531-4.716,0.714l-4.897,4.898c-1.25,1.25-1.537,3.169-0.707,4.73 l16.834,31.654c0.717,1.347,2.029,2.274,3.538,2.5c1.509,0.225,3.035-0.278,4.114-1.357c1.528-1.528,1.851-3.89,0.786-5.771 l-3.884-6.866l8.777-8.777l6.944,3.734c1.952,1.05,4.361,0.696,5.928-0.871c1.129-1.129,1.654-2.726,1.415-4.303 C152.63,160.023,151.657,158.653,150.245,157.91z M125.621,165.632c0,0-7.822-13.37-9.187-15.644l0.091-0.092 c2.274,1.364,15.872,8.959,15.872,8.959L125.621,165.632z"/><path d="M173.694,133.727c-1.092,0-2.139,0.434-2.911,1.205l-9.278,9.278l-21.352-21.352c-0.923-0.923-2.175-1.441-3.479-1.441 s-2.557,0.519-3.479,1.441c-1.922,1.922-1.922,5.037,0,6.958l24.331,24.332c1.57,1.569,4.115,1.569,5.685,0l13.395-13.395 c1.607-1.607,1.607-4.213,0-5.821C175.833,134.16,174.786,133.727,173.694,133.727z"/><path d="M194.638,111.35l-9.755,9.755l-7.276-7.277l8.459-8.458c1.557-1.558,1.557-4.081-0.001-5.639 c-1.557-1.557-4.082-1.557-5.639,0l-8.458,8.458l-6.367-6.366l9.117-9.117c1.57-1.57,1.57-4.115,0-5.686 c-0.754-0.755-1.776-1.179-2.843-1.179c-1.066,0-2.089,0.424-2.843,1.178l-13.234,13.233c-0.753,0.754-1.177,1.776-1.177,2.843 c0,1.066,0.424,2.089,1.178,2.843l24.968,24.968c1.57,1.569,4.115,1.569,5.685,0l13.87-13.87c1.57-1.57,1.57-4.115,0-5.686 C198.752,109.78,196.208,109.78,194.638,111.35z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg></summary>
3
- <span class="saswp-promotion-close-btn"> &times; </span>
4
- <div class="saswp-ocassional-pop-up-contents">
5
-
6
- <img src="<?php echo SASWP_PLUGIN_URL; ?>admin_section/images/2349820.png" class="saswp-promotion-surprise-icon" />
7
- <p class="saswp-ocassional-pop-up-headline"><?= esc_html_e('40% OFF on', 'saswp-table-of-contents'); ?> <span><?= esc_html_e('SASWP PRO', 'saswp-table-of-contents');?></span></p>
8
- <p class="saswp-ocassional-pop-up-second-headline"><?= esc_html_e('Upgrade the PRO version during this festive season and get our biggest discount of all time on New Purchases, Renewals &amp; Upgrades', 'saswp-table-of-contents'); ?></p>
9
- <a class="saswp-ocassional-pop-up-offer-btn" href="<?= esc_url('https://structured-data-for-wp.com/november-deal/') ?>" target="_blank"><?= esc_html_e('Get This Offer Now', 'saswp-table-of-contents'); ?></a>
10
- <p class="saswp-ocassional-pop-up-last-line"><?= esc_html_e('Black Friday, Cyber Monday, Christmas &amp; New year are the only times we offer discounts this big.', 'saswp-table-of-contents'); ?> </p>
11
-
12
- </div>
13
-
14
- </details>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin_section/settings.php CHANGED
@@ -100,6 +100,21 @@ function saswp_admin_interface_render(){
100
 
101
  ?>
102
  <div class="saswp-settings-container">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  <div class="wrap saswp-settings-form saswp-settings-first-div" style="<?php echo( saswp_ext_installed_status()? 'width:100%;':''); ?>">
104
  <?php
105
  if ( class_exists('SASWPPROExtensionManager') ) {
@@ -4680,7 +4695,11 @@ function saswp_enqueue_style_js( $hook ) {
4680
  wp_enqueue_script( 'saswp-main-js' );
4681
 
4682
  wp_enqueue_style( 'saswp-main-css', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'main-style.min.css' : 'main-style.css'), false , SASWP_VERSION );
4683
-
 
 
 
 
4684
  wp_style_add_data( 'saswp-main-css', 'rtl', 'replace' );
4685
 
4686
  apply_filters('saswp_wp_enqueue_more_script', '');
100
 
101
  ?>
102
  <div class="saswp-settings-container">
103
+ <!-- promotional popup start -->
104
+ <details id="saswp-ocassional-pop-up-container" open>
105
+ <summary class="saswp-ocassional-pop-up-open-close-button"><?= esc_html_e('40% OFF - Limited Time Only', 'easy-table-of-contents'); ?><svg fill="#fff" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 288.359 288.359" style="enable-background:new 0 0 288.359 288.359;" xml:space="preserve"><g><path d="M283.38,4.98c-3.311-3.311-7.842-5.109-12.522-4.972L163.754,3.166c-4.334,0.128-8.454,1.906-11.52,4.972L4.979,155.394 c-6.639,6.639-6.639,17.402,0,24.041L108.924,283.38c6.639,6.639,17.402,6.639,24.041,0l147.256-147.256 c3.065-3.065,4.844-7.186,4.972-11.52l3.159-107.103C288.49,12.821,286.691,8.291,283.38,4.98z M247.831,130.706L123.128,255.407 c-1.785,1.785-4.679,1.785-6.464,0l-83.712-83.712c-1.785-1.785-1.785-4.679,0-6.464L157.654,40.529 c1.785-1.785,4.679-1.785,6.464,0l83.713,83.713C249.616,126.027,249.616,128.921,247.831,130.706z M263.56,47.691 c-6.321,6.322-16.57,6.322-22.892,0c-6.322-6.321-6.322-16.57,0-22.892c6.321-6.322,16.569-6.322,22.892,0 C269.882,31.121,269.882,41.37,263.56,47.691z"/><path d="M99.697,181.278c-5.457,2.456-8.051,3.32-10.006,1.364c-1.592-1.591-1.5-4.411,1.501-7.412 c1.458-1.458,2.927-2.52,4.26-3.298c1.896-1.106,2.549-3.528,1.467-5.438l-0.018-0.029c-0.544-0.96-1.455-1.658-2.522-1.939 c-1.067-0.279-2.202-0.116-3.147,0.453c-1.751,1.054-3.64,2.48-5.587,4.428c-7.232,7.23-7.595,15.599-2.365,20.829 c4.457,4.457,10.597,3.956,17.463,0.637c5.004-2.364,7.55-2.729,9.46-0.819c2.002,2.002,1.638,5.004-1.545,8.186 c-1.694,1.694-3.672,3.044-5.582,4.06c-0.994,0.528-1.728,1.44-2.027,2.525c-0.3,1.085-0.139,2.245,0.443,3.208l0.036,0.06 c1.143,1.889,3.575,2.531,5.503,1.457c2.229-1.241,4.732-3.044,6.902-5.215c8.412-8.412,8.002-16.736,2.864-21.875 C112.475,178.141,107.109,177.868,99.697,181.278z"/><path d="M150.245,157.91l-31.508-16.594c-1.559-0.821-3.47-0.531-4.716,0.714l-4.897,4.898c-1.25,1.25-1.537,3.169-0.707,4.73 l16.834,31.654c0.717,1.347,2.029,2.274,3.538,2.5c1.509,0.225,3.035-0.278,4.114-1.357c1.528-1.528,1.851-3.89,0.786-5.771 l-3.884-6.866l8.777-8.777l6.944,3.734c1.952,1.05,4.361,0.696,5.928-0.871c1.129-1.129,1.654-2.726,1.415-4.303 C152.63,160.023,151.657,158.653,150.245,157.91z M125.621,165.632c0,0-7.822-13.37-9.187-15.644l0.091-0.092 c2.274,1.364,15.872,8.959,15.872,8.959L125.621,165.632z"/><path d="M173.694,133.727c-1.092,0-2.139,0.434-2.911,1.205l-9.278,9.278l-21.352-21.352c-0.923-0.923-2.175-1.441-3.479-1.441 s-2.557,0.519-3.479,1.441c-1.922,1.922-1.922,5.037,0,6.958l24.331,24.332c1.57,1.569,4.115,1.569,5.685,0l13.395-13.395 c1.607-1.607,1.607-4.213,0-5.821C175.833,134.16,174.786,133.727,173.694,133.727z"/><path d="M194.638,111.35l-9.755,9.755l-7.276-7.277l8.459-8.458c1.557-1.558,1.557-4.081-0.001-5.639 c-1.557-1.557-4.082-1.557-5.639,0l-8.458,8.458l-6.367-6.366l9.117-9.117c1.57-1.57,1.57-4.115,0-5.686 c-0.754-0.755-1.776-1.179-2.843-1.179c-1.066,0-2.089,0.424-2.843,1.178l-13.234,13.233c-0.753,0.754-1.177,1.776-1.177,2.843 c0,1.066,0.424,2.089,1.178,2.843l24.968,24.968c1.57,1.569,4.115,1.569,5.685,0l13.87-13.87c1.57-1.57,1.57-4.115,0-5.686 C198.752,109.78,196.208,109.78,194.638,111.35z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg></summary>
106
+ <span class="saswp-promotion-close-btn"> &times; </span>
107
+ <div class="saswp-ocassional-pop-up-contents">
108
+
109
+ <img src="<?php echo SASWP_PLUGIN_URL; ?>admin_section/images/2349820.png" class="saswp-promotion-surprise-icon" />
110
+ <p class="saswp-ocassional-pop-up-headline"><?= esc_html_e('40% OFF on', 'saswp-table-of-contents'); ?> <span><?= esc_html_e('SASWP PRO', 'saswp-table-of-contents');?></span></p>
111
+ <p class="saswp-ocassional-pop-up-second-headline"><?= esc_html_e('Upgrade the PRO version during this festive season and get our biggest discount of all time on New Purchases, Renewals &amp; Upgrades', 'saswp-table-of-contents'); ?></p>
112
+ <a class="saswp-ocassional-pop-up-offer-btn" href="<?= esc_url('https://structured-data-for-wp.com/november-deal/') ?>" target="_blank"><?= esc_html_e('Get This Offer Now', 'saswp-table-of-contents'); ?></a>
113
+ <p class="saswp-ocassional-pop-up-last-line"><?= esc_html_e('Black Friday, Cyber Monday, Christmas &amp; New year are the only times we offer discounts this big.', 'saswp-table-of-contents'); ?> </p>
114
+
115
+ </div>
116
+ </details>
117
+ <!-- promotional popup end -->
118
  <div class="wrap saswp-settings-form saswp-settings-first-div" style="<?php echo( saswp_ext_installed_status()? 'width:100%;':''); ?>">
119
  <?php
120
  if ( class_exists('SASWPPROExtensionManager') ) {
4695
  wp_enqueue_script( 'saswp-main-js' );
4696
 
4697
  wp_enqueue_style( 'saswp-main-css', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'main-style.min.css' : 'main-style.css'), false , SASWP_VERSION );
4698
+
4699
+ wp_enqueue_style( 'wp-color-picker' );
4700
+
4701
+ wp_enqueue_script( 'wp-color-picker-alpha', SASWP_PLUGIN_URL . 'admin_section/js/wp-color-picker-alpha.min.js', array( 'wp-color-picker' ), SASWP_VERSION, true );
4702
+
4703
  wp_style_add_data( 'saswp-main-css', 'rtl', 'replace' );
4704
 
4705
  apply_filters('saswp_wp_enqueue_more_script', '');
core/array-list/schema-properties.php CHANGED
@@ -5350,7 +5350,17 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5350
  'label' => 'Steps',
5351
  'id' => 'saswp_howto_schema_steps_'.$schema_id,
5352
  'type' => 'repeater'
5353
- )
 
 
 
 
 
 
 
 
 
 
5354
  );
5355
  break;
5356
 
@@ -6914,7 +6924,17 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
6914
  'label' => 'MainEntity (Questions & Answers) ',
6915
  'id' => 'saswp_faq_main_entity_'.$schema_id,
6916
  'type' => 'repeater'
6917
- )
 
 
 
 
 
 
 
 
 
 
6918
  );
6919
 
6920
  break;
5350
  'label' => 'Steps',
5351
  'id' => 'saswp_howto_schema_steps_'.$schema_id,
5352
  'type' => 'repeater'
5353
+ ),
5354
+ array(
5355
+ 'label' => 'About',
5356
+ 'id' => 'saswp_howto_about_'.$schema_id,
5357
+ 'type' => 'textarea',
5358
+ 'default' => '',
5359
+ 'note' => 'Note: If There are more than one About, Separate About list by comma ( , )',
5360
+ 'attributes' => array(
5361
+ 'placeholder' => 'eg: Apple is March 21 Announcements'
5362
+ ),
5363
+ )
5364
  );
5365
  break;
5366
 
6924
  'label' => 'MainEntity (Questions & Answers) ',
6925
  'id' => 'saswp_faq_main_entity_'.$schema_id,
6926
  'type' => 'repeater'
6927
+ ),
6928
+ array(
6929
+ 'label' => 'About',
6930
+ 'id' => 'saswp_faq_about_'.$schema_id,
6931
+ 'type' => 'textarea',
6932
+ 'default' => '',
6933
+ 'note' => 'Note: If There are more than one About, Separate About list by comma ( , )',
6934
+ 'attributes' => array(
6935
+ 'placeholder' => 'eg: Apple is March 21 Announcements'
6936
+ ),
6937
+ )
6938
  );
6939
 
6940
  break;
modules/reviews/reviews_collection.php CHANGED
@@ -805,6 +805,16 @@ class SASWP_Reviews_Collection {
805
  ?>
806
  </select>
807
  </div>
 
 
 
 
 
 
 
 
 
 
808
 
809
  </div>
810
  </li>
@@ -993,6 +1003,10 @@ class SASWP_Reviews_Collection {
993
  }
994
 
995
  update_option('saswp_collection_display_opt', $display_type_opt);
 
 
 
 
996
 
997
  $post_meta['saswp_collection_design'] = isset($_POST['saswp_collection_design']) ? sanitize_text_field($_POST['saswp_collection_design']) : '';
998
  $post_meta['saswp_collection_date_format'] = isset($_POST['saswp_collection_date_format']) ? sanitize_text_field($_POST['saswp_collection_date_format']) : '';
@@ -1015,6 +1029,7 @@ class SASWP_Reviews_Collection {
1015
  $post_meta['saswp_collection_where'] = array_map('sanitize_text_field', $_POST['saswp_collection_where']);
1016
  $post_meta['saswp_collection_where_data'] = array_map('sanitize_text_field', $_POST['saswp_collection_where_data']);
1017
  $post_meta['saswp_total_reviews'] = array_map('intval', json_decode($_POST['saswp_total_reviews']));
 
1018
  if(!empty($post_meta)){
1019
 
1020
  foreach($post_meta as $meta_key => $meta_val){
805
  ?>
806
  </select>
807
  </div>
808
+
809
+ <div class="saswp-dp-dsg stars_color_picker">
810
+ <?php
811
+ // echo "<pre>";
812
+ // print_r($post_meta);
813
+ // die();
814
+ ?>
815
+ <lable><?php echo saswp_t_string('Stars Color Picker'); ?></lable>
816
+ <input type="text" name="saswp_stars_color_picker" id="saswp_stars_color_picker" class="saswpforwp-colorpicker" data-alpha-enabled="true" value='<?php echo isset( $settings['saswp_stars_color_picker'][0] ) ? esc_attr( $settings['saswp_stars_color_picker'][0]) : '#ffd700'; ?>' data-default-color="#ffd700">
817
+ </div>
818
 
819
  </div>
820
  </li>
1003
  }
1004
 
1005
  update_option('saswp_collection_display_opt', $display_type_opt);
1006
+
1007
+ // echo "<pre>";
1008
+ // print_r($_POST);
1009
+ // die();
1010
 
1011
  $post_meta['saswp_collection_design'] = isset($_POST['saswp_collection_design']) ? sanitize_text_field($_POST['saswp_collection_design']) : '';
1012
  $post_meta['saswp_collection_date_format'] = isset($_POST['saswp_collection_date_format']) ? sanitize_text_field($_POST['saswp_collection_date_format']) : '';
1029
  $post_meta['saswp_collection_where'] = array_map('sanitize_text_field', $_POST['saswp_collection_where']);
1030
  $post_meta['saswp_collection_where_data'] = array_map('sanitize_text_field', $_POST['saswp_collection_where_data']);
1031
  $post_meta['saswp_total_reviews'] = array_map('intval', json_decode($_POST['saswp_total_reviews']));
1032
+ $post_meta['saswp_stars_color_picker'] = isset($_POST['saswp_stars_color_picker']) ? intval($_POST['saswp_stars_color_picker']) : '';
1033
  if(!empty($post_meta)){
1034
 
1035
  foreach($post_meta as $meta_key => $meta_val){
modules/reviews/reviews_service.php CHANGED
@@ -336,7 +336,11 @@ class saswp_reviews_service {
336
  $url = get_option('saswp_rv_csv_upload_url');
337
 
338
  if($url){
339
-
 
 
 
 
340
  $handle = fopen($url, "r");
341
  $wpdb->query('START TRANSACTION');
342
 
@@ -350,6 +354,9 @@ class saswp_reviews_service {
350
  $counter++;
351
  continue;
352
  }
 
 
 
353
  $reviews_arr = array();
354
  $reviews_arr[] = array(
355
  'author_name' => $data[0],
336
  $url = get_option('saswp_rv_csv_upload_url');
337
 
338
  if($url){
339
+ if(file_exists($url)) {
340
+ $handle = fopen($url, "r");
341
+ }else{
342
+ $handle = "";
343
+ }
344
  $handle = fopen($url, "r");
345
  $wpdb->query('START TRANSACTION');
346
 
354
  $counter++;
355
  continue;
356
  }
357
+ if(empty($data[5])){
358
+ return false;
359
+ }
360
  $reviews_arr = array();
361
  $reviews_arr[] = array(
362
  'author_name' => $data[0],
output/function.php CHANGED
@@ -2736,12 +2736,11 @@ function saswp_get_mainEntity($schema_id){
2736
 
2737
  if($matches){
2738
  foreach($matches as $match){
2739
- $listitem[] = $match[1];
2740
  }
2741
  }
2742
-
2743
  }
2744
-
2745
  if($listitem){
2746
 
2747
  $response['@type'] = 'ItemList';
2736
 
2737
  if($matches){
2738
  foreach($matches as $match){
2739
+ $listitem[] = wp_strip_all_tags($match[1]);
2740
  }
2741
  }
 
2742
  }
2743
+
2744
  if($listitem){
2745
 
2746
  $response['@type'] = 'ItemList';
output/markup.php CHANGED
@@ -241,6 +241,9 @@ function saswp_howto_schema_markup($schema_id, $schema_post_id, $all_post_meta){
241
 
242
  $input1 = saswp_get_modified_image('saswp_howto_schema_image_'.$schema_id.'_detail', $input1);
243
 
 
 
 
244
  if(saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_currency_'.$schema_id, 'saswp_array') !='' && saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_value_'.$schema_id, 'saswp_array') !='')
245
  {
246
  $input1['estimatedCost']['@type'] = 'MonetaryAmount';
@@ -272,6 +275,7 @@ function saswp_howto_schema_markup($schema_id, $schema_post_id, $all_post_meta){
272
  $video_object['duration'] = $all_post_meta['saswp_howto_schema_video_duration_'.$schema_id][0];
273
  }
274
 
 
275
  $supply_arr = array();
276
  if(!empty($supply)){
277
 
@@ -397,6 +401,18 @@ function saswp_howto_schema_markup($schema_id, $schema_post_id, $all_post_meta){
397
 
398
  $input1['totalTime'] = saswp_remove_warnings($all_post_meta, 'saswp_howto_schema_totaltime_'.$schema_id, 'saswp_array');
399
 
 
 
 
 
 
 
 
 
 
 
 
 
400
  return $input1;
401
  }
402
 
@@ -2521,6 +2537,21 @@ function saswp_faq_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2521
  }
2522
  $input1['mainEntity'] = $faq_question_arr;
2523
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2524
 
2525
  return $input1;
2526
 
241
 
242
  $input1 = saswp_get_modified_image('saswp_howto_schema_image_'.$schema_id.'_detail', $input1);
243
 
244
+
245
+
246
+
247
  if(saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_currency_'.$schema_id, 'saswp_array') !='' && saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_value_'.$schema_id, 'saswp_array') !='')
248
  {
249
  $input1['estimatedCost']['@type'] = 'MonetaryAmount';
275
  $video_object['duration'] = $all_post_meta['saswp_howto_schema_video_duration_'.$schema_id][0];
276
  }
277
 
278
+
279
  $supply_arr = array();
280
  if(!empty($supply)){
281
 
401
 
402
  $input1['totalTime'] = saswp_remove_warnings($all_post_meta, 'saswp_howto_schema_totaltime_'.$schema_id, 'saswp_array');
403
 
404
+ $explode_about = explode(',', $all_post_meta['saswp_howto_about_'.$schema_id][0]);
405
+ if(!empty($explode_about)){
406
+ $about_arr = array();
407
+ foreach($explode_about as $val){
408
+ $about_arr[] = array(
409
+ '@type' => 'Thing',
410
+ 'name' => $val
411
+ );
412
+ }
413
+ $input1['about'] = $about_arr;
414
+ }
415
+
416
  return $input1;
417
  }
418
 
2537
  }
2538
  $input1['mainEntity'] = $faq_question_arr;
2539
  }
2540
+
2541
+ if( !empty($all_post_meta['saswp_faq_about_'.$schema_id][0]) && isset( $all_post_meta['saswp_faq_about_'.$schema_id][0] )){
2542
+
2543
+ $explode_about = explode(',', $all_post_meta['saswp_faq_about_'.$schema_id][0]);
2544
+ if(!empty($explode_about)){
2545
+ $about_arr = array();
2546
+ foreach($explode_about as $val){
2547
+ $about_arr[] = array(
2548
+ '@type' => 'Thing',
2549
+ 'name' => $val
2550
+ );
2551
+ }
2552
+ $input1['about'] = $about_arr;
2553
+ }
2554
+ }
2555
 
2556
  return $input1;
2557
 
output/output.php CHANGED
@@ -181,7 +181,7 @@ function saswp_schema_output() {
181
  $schema_type = saswp_remove_warnings($schemaConditionals, 'schema_type', 'saswp_string');
182
  $schema_post_id = saswp_remove_warnings($schemaConditionals, 'post_id', 'saswp_string');
183
  $enable_videoobject = get_post_meta($schema_post_id, 'saswp_enable_videoobject', true);
184
- $enable_faqsobject = get_post_meta($schema_post_id, 'saswp_enable_faqsobject', true);
185
 
186
  $input1 = array();
187
 
@@ -234,10 +234,6 @@ function saswp_schema_output() {
234
 
235
  $input1 = saswp_faq_schema_markup($schema_post_id, get_the_ID(), $all_post_meta);
236
  }
237
-
238
- if(empty($enable_faqsobject) && $enable_faqsobject == 0){
239
- $input1 = array();
240
- }
241
 
242
  break;
243
 
181
  $schema_type = saswp_remove_warnings($schemaConditionals, 'schema_type', 'saswp_string');
182
  $schema_post_id = saswp_remove_warnings($schemaConditionals, 'post_id', 'saswp_string');
183
  $enable_videoobject = get_post_meta($schema_post_id, 'saswp_enable_videoobject', true);
184
+
185
 
186
  $input1 = array();
187
 
234
 
235
  $input1 = saswp_faq_schema_markup($schema_post_id, get_the_ID(), $all_post_meta);
236
  }
 
 
 
 
237
 
238
  break;
239
 
output/service.php CHANGED
@@ -305,14 +305,17 @@ Class saswp_output_service{
305
  $response['custom_fields']['reviewer_image'] = get_the_post_thumbnail_url($tema_id);
306
 
307
  }else{
308
- $response['@type'] = "Person";
309
- $response['name'] = get_the_title($tema_id);
310
- $response['url'] = get_permalink($tema_id);
311
- $response['description'] = wp_trim_words(get_post_field('post_content', $tema_id));
312
- $response = get_post_meta($post->ID, $cus_field[$key], true);
313
- $response['custom_fields'] = get_post_meta($tema_id);
314
- $response['custom_fields']['reviewer_image'] = get_the_post_thumbnail_url($tema_id);
315
-
 
 
 
316
  }
317
 
318
  }else{
@@ -2354,6 +2357,20 @@ Class saswp_output_service{
2354
  if(isset($custom_fields['saswp_howto_schema_steps'])){
2355
  $input1['step'] = $custom_fields['saswp_howto_schema_steps'];
2356
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2357
 
2358
  break;
2359
 
@@ -4635,6 +4652,20 @@ Class saswp_output_service{
4635
 
4636
  $input1['author']['name'] = $custom_fields['saswp_faq_author'];
4637
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4638
 
4639
  if(isset($custom_fields['saswp_faq_main_entity'])){
4640
  $input1['mainEntity'] = $custom_fields['saswp_faq_main_entity'];
305
  $response['custom_fields']['reviewer_image'] = get_the_post_thumbnail_url($tema_id);
306
 
307
  }else{
308
+ if(!empty($tema_id)){
309
+ $response['@type'] = "Person";
310
+ $response['name'] = get_the_title($tema_id);
311
+ $response['url'] = get_permalink($tema_id);
312
+ $response['description'] = wp_trim_words(get_post_field('post_content', $tema_id));
313
+ if(!empty($cus_field[$key])){
314
+ $response = get_post_meta($post->ID, $cus_field[$key], true);
315
+ }
316
+ $response['custom_fields'] = get_post_meta($tema_id);
317
+ $response['custom_fields']['reviewer_image'] = get_the_post_thumbnail_url($tema_id);
318
+ }
319
  }
320
 
321
  }else{
2357
  if(isset($custom_fields['saswp_howto_schema_steps'])){
2358
  $input1['step'] = $custom_fields['saswp_howto_schema_steps'];
2359
  }
2360
+
2361
+ if(!empty($custom_fields['saswp_howto_about']) && isset($custom_fields['saswp_howto_about'])){
2362
+ $explode_about = explode(',', $custom_fields['saswp_howto_about']);
2363
+ if(!empty($explode_about)){
2364
+ $about_arr = array();
2365
+ foreach($explode_about as $val){
2366
+ $about_arr[] = array(
2367
+ '@type' => 'Thing',
2368
+ 'name' => $val
2369
+ );
2370
+ }
2371
+ $input1['about'] = $about_arr;
2372
+ }
2373
+ }
2374
 
2375
  break;
2376
 
4652
 
4653
  $input1['author']['name'] = $custom_fields['saswp_faq_author'];
4654
  }
4655
+
4656
+ if(!empty($custom_fields['saswp_faq_about']) && isset($custom_fields['saswp_faq_about'])){
4657
+ $explode_about = explode(',', $custom_fields['saswp_faq_about']);
4658
+ if(!empty($explode_about)){
4659
+ $about_arr = array();
4660
+ foreach($explode_about as $val){
4661
+ $about_arr[] = array(
4662
+ '@type' => 'Thing',
4663
+ 'name' => $val
4664
+ );
4665
+ }
4666
+ $input1['about'] = $about_arr;
4667
+ }
4668
+ }
4669
 
4670
  if(isset($custom_fields['saswp_faq_main_entity'])){
4671
  $input1['mainEntity'] = $custom_fields['saswp_faq_main_entity'];
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO,
4
  Requires at least: 3.0
5
  Tested up to: 6.1
6
  Requires PHP: 5.6.20
7
- Stable tag: 1.9.105
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -121,6 +121,15 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
121
 
122
  == Changelog ==
123
 
 
 
 
 
 
 
 
 
 
124
  = 1.9.105 (28 Nov 2022) =
125
 
126
  * Fixed: php-8-deprecated-required-parameter #1781
4
  Requires at least: 3.0
5
  Tested up to: 6.1
6
  Requires PHP: 5.6.20
7
+ Stable tag: 1.9.106
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
121
 
122
  == Changelog ==
123
 
124
+ = 1.9.106 (03 Dec 2022) =
125
+
126
+ * Fixed: Remove the span Id from the Article schema. #1788
127
+ * Fixed: FAQs are not shown in the classic editor front end. #1785
128
+ * Fixed: There is an error while adding the productreview.com.au reviews. #1757
129
+ * Fixed: Warning: Undefined variable $pagenow #1793
130
+ * Enhancement: In the FAQ and HOW TO schemas, "about property" should be added. #1794
131
+ * Fixed: Activate plugin wp-admin side crashes #1796
132
+
133
  = 1.9.105 (28 Nov 2022) =
134
 
135
  * Fixed: php-8-deprecated-required-parameter #1781
structured-data-for-wp.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Schema & Structured Data for WP & AMP
4
  Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
5
- Version: 1.9.105
6
  Text Domain: schema-and-structured-data-for-wp
7
  Domain Path: /languages
8
  Author: Magazine3
@@ -13,7 +13,7 @@ License: GPL2
13
  // Exit if accessed directly.
14
  if ( ! defined( 'ABSPATH' ) ) exit;
15
 
16
- define('SASWP_VERSION', '1.9.105');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
@@ -72,16 +72,11 @@ if ( ! function_exists('saswp_non_amp') ){
72
  }
73
 
74
  }
 
75
  // Schema App end here
76
  require_once SASWP_DIR_NAME.'/admin_section/structure_admin.php';
77
  require_once SASWP_DIR_NAME.'/admin_section/settings.php';
78
  require_once SASWP_DIR_NAME.'/admin_section/common-function.php';
79
- if(($pagenow == 'edit.php' && isset($_REQUEST['post_type']) && !empty($_REQUEST['post_type']) && $_REQUEST['post_type'] == 'saswp') ||
80
- ($pagenow == 'edit.php' && isset($_REQUEST['post_type']) && !empty($_REQUEST['post_type']) && ( $_REQUEST['post_type'] == 'saswp_reviews' ||
81
- $_REQUEST['post_type'] == 'saswp-collections' )) || (($pagenow == 'admin.php' || $pagenow == 'edit.php') && isset($_REQUEST['page']) && !empty($_REQUEST['page']) &&
82
- $_REQUEST['page'] == 'structured_data_options')) {
83
- require_once SASWP_DIR_NAME.'/admin_section/promotional-popup.php';
84
- }
85
  require_once SASWP_DIR_NAME .'/output/location.php';
86
  require_once SASWP_DIR_NAME.'/admin_section/fields-generator.php';
87
  require_once SASWP_DIR_NAME.'/admin_section/newsletter.php';
@@ -139,13 +134,14 @@ function saswp_add_plugin_meta_links($meta_fields, $file) {
139
  $forum_url = "https://structured-data-for-wp.com/contact-us/";
140
 
141
  $meta_fields[] = "<a href='" . esc_url($forum_url) . "' target='_blank'>" . saswp_t_string( 'Technical Support' ) . "</a>";
142
-
143
  }
144
 
145
  return $meta_fields;
146
 
147
  }
148
 
 
149
  // if( ! class_exists( 'SASWP_Plugin_Usage_Tracker') ) {
150
  // require_once SASWP_DIR_NAME. '/admin_section/tracking/class-saswp-plugin-usage-tracker.php';
151
  // }
2
  /*
3
  Plugin Name: Schema & Structured Data for WP & AMP
4
  Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
5
+ Version: 1.9.106
6
  Text Domain: schema-and-structured-data-for-wp
7
  Domain Path: /languages
8
  Author: Magazine3
13
  // Exit if accessed directly.
14
  if ( ! defined( 'ABSPATH' ) ) exit;
15
 
16
+ define('SASWP_VERSION', '1.9.106');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
72
  }
73
 
74
  }
75
+
76
  // Schema App end here
77
  require_once SASWP_DIR_NAME.'/admin_section/structure_admin.php';
78
  require_once SASWP_DIR_NAME.'/admin_section/settings.php';
79
  require_once SASWP_DIR_NAME.'/admin_section/common-function.php';
 
 
 
 
 
 
80
  require_once SASWP_DIR_NAME .'/output/location.php';
81
  require_once SASWP_DIR_NAME.'/admin_section/fields-generator.php';
82
  require_once SASWP_DIR_NAME.'/admin_section/newsletter.php';
134
  $forum_url = "https://structured-data-for-wp.com/contact-us/";
135
 
136
  $meta_fields[] = "<a href='" . esc_url($forum_url) . "' target='_blank'>" . saswp_t_string( 'Technical Support' ) . "</a>";
137
+
138
  }
139
 
140
  return $meta_fields;
141
 
142
  }
143
 
144
+
145
  // if( ! class_exists( 'SASWP_Plugin_Usage_Tracker') ) {
146
  // require_once SASWP_DIR_NAME. '/admin_section/tracking/class-saswp-plugin-usage-tracker.php';
147
  // }
view/schema_type.php CHANGED
@@ -182,12 +182,6 @@ function saswp_schema_type_meta_box_callback( $post) {
182
  $style_business_name = 'style="display:none"';
183
 
184
  }
185
-
186
- if($schema_type === 'FAQ'){
187
- $style_faq_type = 'style="display:block;display: table-row;"';
188
- }else {
189
- $style_faq_type = 'style="display:none"';
190
- }
191
 
192
  }
193
  $item_list_item = array(
@@ -309,17 +303,6 @@ function saswp_schema_type_meta_box_callback( $post) {
309
  </select>
310
  </td>
311
  </tr>
312
-
313
- <!-- faqs Schema type ends here -->
314
- <tr class="saswp-faqs-checkbox-field-tr" <?php echo $style_faq_type; ?>>
315
- <td>
316
- <label for="saswp-enable-faqs-markup"><?php echo saswp_t_string( 'Add FaqObject markup, Only if Faqs are available on the post' );?></label>
317
- </td>
318
- <td>
319
- <input id="saswp-enable-faqs-markup" class="saswp-enable-faqs-markup-class" type="checkbox" name="saswp_enable_faqsobject" value="1" <?php if(isset($enable_faqsobject) && $enable_faqsobject == 1){echo 'checked'; }else{ echo ''; } ?> >
320
- </td>
321
- </tr>
322
- <!-- faqs Schema type ends here -->
323
 
324
  <tr class="saswp-business-type-tr" <?php echo $style_business_type; ?>>
325
  <td>
182
  $style_business_name = 'style="display:none"';
183
 
184
  }
 
 
 
 
 
 
185
 
186
  }
187
  $item_list_item = array(
303
  </select>
304
  </td>
305
  </tr>
 
 
 
 
 
 
 
 
 
 
 
306
 
307
  <tr class="saswp-business-type-tr" <?php echo $style_business_type; ?>>
308
  <td>