Schema & Structured Data for WP & AMP - Version 1.9.105

Version Description

(28 Nov 2022) =

  • Fixed: php-8-deprecated-required-parameter #1781
  • Added: Non-critical warning appears when the video is added via a custom block. #1780
  • Fixed: After adding the featured image to the RSS feed, it is not working. #1774
  • Fixed: While using the YouTube video, there is an issue with the schema and it is found in the Query Monitor plugin. #1771
  • Enhancement: Need to add some property in the product scheme. #1778
  • Added: Getting the errors video page indexing on Google search console #1783
  • Added: Getting error notice when embeddeding a Vimeo/Youtube video #1784
  • Enhancement: BFCM internal offer #1786
Download this release

Release Info

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

Code changes from version 1.9.104 to 1.9.105

admin_section/common-function.php CHANGED
@@ -2434,6 +2434,8 @@ if ( ! defined('ABSPATH') ) exit;
2434
  $author_name = get_the_author_meta( 'display_name' , $author_id );
2435
  }
2436
 
 
 
2437
  $author_url = get_author_posts_url( $author_id );
2438
  $same_as = array();
2439
 
@@ -2457,17 +2459,48 @@ if ( ! defined('ABSPATH') ) exit;
2457
 
2458
  $author_details['@type'] = 'Person';
2459
  $author_details['name'] = esc_attr($author_name);
2460
- $author_details['description'] = wp_strip_all_tags(strip_shortcodes($author_desc));
 
 
 
 
 
 
2461
  $author_details['url'] = esc_url($author_url);
2462
  $author_details['sameAs'] = $same_as;
2463
 
2464
- if(isset($author_image['url']) && isset($author_image['height']) && isset($author_image['width'])){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2465
 
2466
  $author_details['image']['@type'] = 'ImageObject';
2467
  $author_details['image']['url'] = $author_image['url'];
2468
  $author_details['image']['height'] = $author_image['height'];
2469
  $author_details['image']['width'] = $author_image['width'];
2470
-
2471
  }
2472
  if(isset($sd_data['saswp-simple-author-box']) && $sd_data['saswp-simple-author-box'] == 1 && function_exists('sab_fs') ){
2473
 
@@ -3447,6 +3480,33 @@ function saswp_get_video_metadata($content = ''){
3447
  $content = $post->post_content;
3448
  }
3449
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3450
 
3451
  preg_match_all( '/\[video(.*?)\[\/video]/s', $content, $matches, PREG_SET_ORDER);
3452
 
@@ -3463,8 +3523,11 @@ function saswp_get_video_metadata($content = ''){
3463
  foreach ($attr as $key => $value) {
3464
 
3465
  if(strpos($value, 'http')!== false){
3466
-
3467
- $response[]['video_url'] = trim($value, '"');
 
 
 
3468
 
3469
  }
3470
  }
@@ -3490,6 +3553,9 @@ function saswp_get_video_metadata($content = ''){
3490
  if(isset($attr['ids'])){
3491
 
3492
  $vurl = wp_get_attachment_url($attr['ids']);
 
 
 
3493
  $response[]['video_url'] = trim($vurl, '"');
3494
 
3495
  }
@@ -3501,15 +3567,18 @@ function saswp_get_video_metadata($content = ''){
3501
  @preg_match_all( '@(https?://)?(?:www\.)?(youtu(?:\.be/([-\w]+)|be\.com/watch\?v=([-\w]+)))\S*@im', $content, $matches, PREG_SET_ORDER );
3502
 
3503
  if($matches){
3504
-
3505
  foreach($matches as $match){
3506
-
3507
  $vurl = trim($match[0], '"');
 
 
 
 
3508
  $metadata = array();
3509
  if(isset($sd_data['saswp-youtube-api']) && $sd_data['saswp-youtube-api'] != ''){
3510
 
3511
  $vid = saswp_get_youtube_vid($vurl);
3512
-
3513
  $video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
3514
 
3515
  if(!empty($video_meta)){
@@ -3525,16 +3594,12 @@ function saswp_get_video_metadata($content = ''){
3525
  }
3526
 
3527
  }else{
3528
-
3529
  $rulr = 'https://www.youtube.com/oembed?url='.esc_attr($vurl).'&format=json';
3530
  $result = @wp_remote_get($rulr);
3531
 
3532
  if(wp_remote_retrieve_response_code($result) == 200) {
3533
-
3534
- $metadata = json_decode(wp_remote_retrieve_body($result),true);
3535
-
3536
- }
3537
-
3538
  }
3539
 
3540
  $metadata['video_url'] = $vurl;
@@ -3543,7 +3608,6 @@ function saswp_get_video_metadata($content = ''){
3543
  }
3544
 
3545
  } /* end for */
3546
-
3547
  }/* end if */
3548
 
3549
  preg_match_all( '/src\=\"(.*?)youtu\.be(.*?)\"/s', $content, $youtubematches, PREG_SET_ORDER );
@@ -3551,9 +3615,12 @@ function saswp_get_video_metadata($content = ''){
3551
  if(!empty($youtubematches)){
3552
 
3553
  foreach($youtubematches as $match){
3554
- $vurl = trim($match[1].'youtu.be'.$match[2], '"');
 
 
 
3555
  $metadata = array();
3556
-
3557
  if(isset($sd_data['saswp-youtube-api']) && $sd_data['saswp-youtube-api'] != ''){
3558
 
3559
  $vid = saswp_get_youtube_vid($vurl);
@@ -3575,7 +3642,7 @@ function saswp_get_video_metadata($content = ''){
3575
  $metadata = json_decode(wp_remote_retrieve_body($result),true);
3576
  }
3577
 
3578
- $metadata['video_url'] = $vurl;
3579
  $response[] = $metadata;
3580
  }/* end for */
3581
  } /* end if */
@@ -3583,20 +3650,30 @@ function saswp_get_video_metadata($content = ''){
3583
 
3584
  if(function_exists('has_block')){
3585
  if( has_block('core-embed/youtube') ){
3586
- $attributes = saswp_get_gutenberg_multiple_block_data('core-embed/youtube');
3587
- }
 
 
 
3588
 
3589
  if( has_block('core/embed') ){
3590
- $attributes = saswp_get_gutenberg_multiple_block_data('core/embed');
 
 
 
3591
  }
3592
 
3593
  if(!empty($attributes)){
3594
  $temp_aray = array();
3595
  foreach($attributes as $match){
3596
  if(!empty($match['attrs']['url'])){
3597
- $vurl = trim($match['attrs']['url'], '"');
3598
-
 
 
 
3599
  $metadata = array();
 
3600
  if(isset($sd_data['saswp-youtube-api']) && $sd_data['saswp-youtube-api'] != ''){
3601
  $vid = saswp_get_youtube_vid($vurl);
3602
  $video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
@@ -3613,7 +3690,7 @@ function saswp_get_video_metadata($content = ''){
3613
  $result = @wp_remote_get($rulr);
3614
  $metadata = json_decode(wp_remote_retrieve_body($result),true);
3615
  }
3616
- $metadata['video_url'] = $vurl;
3617
  $response[] = $metadata;
3618
 
3619
  }
@@ -3623,7 +3700,7 @@ function saswp_get_video_metadata($content = ''){
3623
  }
3624
 
3625
  $result = saswp_unique_multidim_array($response,'video_url');
3626
-
3627
  return $result;
3628
  }
3629
 
2434
  $author_name = get_the_author_meta( 'display_name' , $author_id );
2435
  }
2436
 
2437
+ $author_meta = get_user_meta($author_id);
2438
+
2439
  $author_url = get_author_posts_url( $author_id );
2440
  $same_as = array();
2441
 
2459
 
2460
  $author_details['@type'] = 'Person';
2461
  $author_details['name'] = esc_attr($author_name);
2462
+ if(!empty($author_desc)){
2463
+ $author_details['description'] = wp_strip_all_tags(strip_shortcodes($author_desc));
2464
+ }else{
2465
+ if(!empty($author_meta['author_bio'][0])){
2466
+ $author_details['description'] = $author_meta['author_bio'][0];
2467
+ }
2468
+ }
2469
  $author_details['url'] = esc_url($author_url);
2470
  $author_details['sameAs'] = $same_as;
2471
 
2472
+ if(!empty($author_meta['knowsabout'][0])){
2473
+ $author_details['knowsAbout'] = explode(',', $author_meta['knowsabout'][0]);
2474
+ }
2475
+
2476
+ if(!empty($author_meta['honorificsuffix'][0])){
2477
+ $author_details['honorificSuffix'] = $author_meta['honorificsuffix'][0];
2478
+ }
2479
+
2480
+ if(!empty($author_meta['alumniof'][0])){
2481
+ $str = $author_meta['alumniof'][0];
2482
+ $itemlist = explode(",", $str);
2483
+ foreach ($itemlist as $key => $list){
2484
+ $vnewarr['@type'] = 'Organization';
2485
+ $vnewarr['Name'] = $list;
2486
+ $author_details['alumniOf'][] = $vnewarr;
2487
+ }
2488
+ }
2489
+
2490
+ if(!empty($author_meta['author_image'][0])){
2491
+ $author_image = wp_get_attachment_image_src($author_meta['author_image'][0]);
2492
+
2493
+ $author_details['image']['@type'] = 'ImageObject';
2494
+ $author_details['image']['url'] = $author_image[0];
2495
+ $author_details['image']['height'] = $author_image[1];
2496
+ $author_details['image']['width'] = $author_image[2];
2497
+
2498
+ }elseif(isset($author_image['url']) && isset($author_image['height']) && isset($author_image['width'])){
2499
 
2500
  $author_details['image']['@type'] = 'ImageObject';
2501
  $author_details['image']['url'] = $author_image['url'];
2502
  $author_details['image']['height'] = $author_image['height'];
2503
  $author_details['image']['width'] = $author_image['width'];
 
2504
  }
2505
  if(isset($sd_data['saswp-simple-author-box']) && $sd_data['saswp-simple-author-box'] == 1 && function_exists('sab_fs') ){
2506
 
3480
  $content = $post->post_content;
3481
  }
3482
  }
3483
+
3484
+ if(function_exists('has_block')){
3485
+ if( has_block('acf/video') ){
3486
+ $attributes = saswp_get_gutenberg_multiple_block_data('acf/video');
3487
+ if(!empty($attributes)){ $attributes = $attributes; }else{ $attributes = ""; }
3488
+ }else{
3489
+ $attributes = "";
3490
+ }
3491
+
3492
+ if(!empty($attributes)){
3493
+ $temp_aray = array();
3494
+ foreach($attributes as $match){
3495
+ if(!empty($match['attrs']['data']['blok_vid_code'])){
3496
+ $iframe_string = trim($match['attrs']['data']['blok_vid_code'], '"');
3497
+ preg_match('/src="([^"]+)"/', $iframe_string, $match);
3498
+ $vurl = $match[1];
3499
+ if(strpos($vurl,'type') == true || strpos($vurl,'className') == true){
3500
+ continue;
3501
+ }
3502
+ if(!empty($vurl)){
3503
+ $metadata['video_url'] = $vurl;
3504
+ $response[] = $metadata;
3505
+ }
3506
+ }
3507
+ }
3508
+ }
3509
+ }
3510
 
3511
  preg_match_all( '/\[video(.*?)\[\/video]/s', $content, $matches, PREG_SET_ORDER);
3512
 
3523
  foreach ($attr as $key => $value) {
3524
 
3525
  if(strpos($value, 'http')!== false){
3526
+ $vurl = trim($value, '"');
3527
+ if(strpos($vurl,'type') == true || strpos($vurl,'className') == true){
3528
+ continue;
3529
+ }
3530
+ $response[]['video_url'] = $vurl;
3531
 
3532
  }
3533
  }
3553
  if(isset($attr['ids'])){
3554
 
3555
  $vurl = wp_get_attachment_url($attr['ids']);
3556
+ if(strpos($vurl,'type') == true || strpos($vurl,'className') == true){
3557
+ continue;
3558
+ }
3559
  $response[]['video_url'] = trim($vurl, '"');
3560
 
3561
  }
3567
  @preg_match_all( '@(https?://)?(?:www\.)?(youtu(?:\.be/([-\w]+)|be\.com/watch\?v=([-\w]+)))\S*@im', $content, $matches, PREG_SET_ORDER );
3568
 
3569
  if($matches){
3570
+
3571
  foreach($matches as $match){
 
3572
  $vurl = trim($match[0], '"');
3573
+
3574
+ if(strpos($vurl,'type') == true || strpos($vurl,'className') == true){
3575
+ continue;
3576
+ }
3577
  $metadata = array();
3578
  if(isset($sd_data['saswp-youtube-api']) && $sd_data['saswp-youtube-api'] != ''){
3579
 
3580
  $vid = saswp_get_youtube_vid($vurl);
3581
+
3582
  $video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
3583
 
3584
  if(!empty($video_meta)){
3594
  }
3595
 
3596
  }else{
 
3597
  $rulr = 'https://www.youtube.com/oembed?url='.esc_attr($vurl).'&format=json';
3598
  $result = @wp_remote_get($rulr);
3599
 
3600
  if(wp_remote_retrieve_response_code($result) == 200) {
3601
+ $metadata = json_decode(wp_remote_retrieve_body($result),true);
3602
+ }
 
 
 
3603
  }
3604
 
3605
  $metadata['video_url'] = $vurl;
3608
  }
3609
 
3610
  } /* end for */
 
3611
  }/* end if */
3612
 
3613
  preg_match_all( '/src\=\"(.*?)youtu\.be(.*?)\"/s', $content, $youtubematches, PREG_SET_ORDER );
3615
  if(!empty($youtubematches)){
3616
 
3617
  foreach($youtubematches as $match){
3618
+ $vurl = trim($match[1].'youtu.be'.$match[2], '"');
3619
+ if(strpos($vurl,'type') == true || strpos($vurl,'className') == true){
3620
+ continue;
3621
+ }
3622
  $metadata = array();
3623
+
3624
  if(isset($sd_data['saswp-youtube-api']) && $sd_data['saswp-youtube-api'] != ''){
3625
 
3626
  $vid = saswp_get_youtube_vid($vurl);
3642
  $metadata = json_decode(wp_remote_retrieve_body($result),true);
3643
  }
3644
 
3645
+ $metadata['video_url'] = $vurl;
3646
  $response[] = $metadata;
3647
  }/* end for */
3648
  } /* end if */
3650
 
3651
  if(function_exists('has_block')){
3652
  if( has_block('core-embed/youtube') ){
3653
+ $attributes = saswp_get_gutenberg_multiple_block_data('core-embed/youtube');
3654
+ if(!empty($attributes)){ $attributes = $attributes; }else{ $attributes = ""; }
3655
+ }else{
3656
+ $attributes = "";
3657
+ }
3658
 
3659
  if( has_block('core/embed') ){
3660
+ $attributes = saswp_get_gutenberg_multiple_block_data('core/embed');
3661
+ if(!empty($attributes)){ $attributes = $attributes; }else{ $attributes = ""; }
3662
+ }else{
3663
+ $attributes = "";
3664
  }
3665
 
3666
  if(!empty($attributes)){
3667
  $temp_aray = array();
3668
  foreach($attributes as $match){
3669
  if(!empty($match['attrs']['url'])){
3670
+ $vurl = trim($match['attrs']['url'], '"');
3671
+ if(strpos($vurl,'type') == true || strpos($vurl,'className') == true){
3672
+ continue;
3673
+ }
3674
+
3675
  $metadata = array();
3676
+ $metadata['video_url'] = $vurl;
3677
  if(isset($sd_data['saswp-youtube-api']) && $sd_data['saswp-youtube-api'] != ''){
3678
  $vid = saswp_get_youtube_vid($vurl);
3679
  $video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
3690
  $result = @wp_remote_get($rulr);
3691
  $metadata = json_decode(wp_remote_retrieve_body($result),true);
3692
  }
3693
+
3694
  $response[] = $metadata;
3695
 
3696
  }
3700
  }
3701
 
3702
  $result = saswp_unique_multidim_array($response,'video_url');
3703
+
3704
  return $result;
3705
  }
3706
 
admin_section/images/2349820.png ADDED
Binary file
admin_section/promotional-popup.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@@ -639,8 +639,27 @@ function saswp_settings_init(){
639
  'saswp_services_section', // Page slug
640
  'saswp_services_section' // Settings Section ID
641
  );
642
-
643
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
644
  }
645
 
646
  function saswp_custom_upload_mimes($mimes = array()) {
@@ -4666,6 +4685,8 @@ function saswp_enqueue_style_js( $hook ) {
4666
 
4667
  apply_filters('saswp_wp_enqueue_more_script', '');
4668
 
 
 
4669
  }
4670
 
4671
  }
639
  'saswp_services_section', // Page slug
640
  'saswp_services_section' // Settings Section ID
641
  );
642
+ }
643
+
644
+ /**
645
+ * saswp_inlineAdminOccasionalAdsPopUpCSS_JS Method
646
+ * Prints out inline occasional ads PopUp JS.
647
+ *
648
+ * @access private
649
+ * @static
650
+ */
651
+ function saswp_inlineAdminOccasionalAdsPopUpCSS_JS() {
652
+ $inlineAdminOccasionalAdsPopUpCCS = <<<INLINEOCCASIONALADSPOPUSCCS
653
+ details#saswp-ocassional-pop-up-container{position:fixed;right:1rem;bottom:1rem;margin-top:2rem;color:#6b7280;display:flex;flex-direction:column;z-index:99999}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents{background-color:#1e1e27;box-shadow:0 5px 10px rgba(0,0,0,.15);padding:25px 25px 10px;border-radius:8px;position:absolute;max-height:calc(100vh - 100px);width:325px;max-width:calc(100vw - 2rem);bottom:calc(100% + 1rem);right:0;overflow:auto;transform-origin:100% 100%;color:#95a3b9;margin-bottom:44px}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents::-webkit-scrollbar{width:15px;background-color:#1e1e27}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents::-webkit-scrollbar-thumb{width:5px;border-radius:99em;background-color:#95a3b9;border:5px solid #1e1e27}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents>*+*{margin-top:.75em}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents p>code{font-size:1rem;font-family:monospace}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents pre{white-space:pre-line;border:1px solid #95a3b9;border-radius:6px;font-family:monospace;padding:.75em;font-size:.875rem;color:#fff}details#saswp-ocassional-pop-up-container[open] div.saswp-ocassional-pop-up-contents{bottom:0;-webkit-animation:.25s ez_toc_ocassional_pop_up_scale;animation:.25s ez_toc_ocassional_pop_up_scale}details#saswp-ocassional-pop-up-container span.saswp-promotion-close-btn{font-weight:400;font-size:20px;background:#37474f;font-family:sans-serif;border-radius:30px;color:#fff;position:absolute;right:-10px;z-index:99999;padding:0 8px;top:-331px;cursor:pointer;line-height:28px}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents img.saswp-promotion-surprise-icon{width:40px;float:left;margin-right:10px}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents p.saswp-ocassional-pop-up-headline{font-size:22px;margin:0;line-height:47px;font-weight:500;color:#fff}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents p.saswp-ocassional-pop-up-headline span{color:#12addd;font-weight:700}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents p.saswp-ocassional-pop-up-second-headline{font-size:16px;color:#fff}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents a.saswp-ocassional-pop-up-offer-btn{background:#12addd;padding:13px 38px 14px;color:#fff;text-align:center;border-radius:60px;font-size:18px;display:inline-flex;align-items:center;margin:0 auto 15px;text-decoration:none;line-height:1.2;transform:perspective(1px) translateZ(0);box-shadow:0 0 20px 5px rgb(0 0 0 / 6%);transition:.3s ease-in-out;box-shadow:3px 5px .65em 0 rgb(0 0 0 / 15%);display:inherit}details#saswp-ocassional-pop-up-container div.saswp-ocassional-pop-up-contents p.saswp-ocassional-pop-up-last-line{font-size:12px;color:#a6a6a6}details#saswp-ocassional-pop-up-container summary{display:inline-flex;margin-left:auto;margin-right:auto;justify-content:center;align-items:center;font-weight:600;padding:.5em 1.25em;border-radius:99em;color:#fff;background-color:#185adb;box-shadow:0 5px 15px rgba(0,0,0,.1);list-style:none;text-align:center;cursor:pointer;transition:.15s;position:relative;font-size:.9rem;z-index:99999}details#saswp-ocassional-pop-up-container summary::-webkit-details-marker{display:none}details#saswp-ocassional-pop-up-container summary:hover,summary:focus{background-color:#1348af}details#saswp-ocassional-pop-up-container summary svg{width:25px;margin-left:5px;vertical-align:baseline}@-webkit-keyframes ez_toc_ocassional_pop_up_scale{0%{transform:ez_toc_ocassional_pop_up_scale(0)}100%{transform:ez_toc_ocassional_pop_up_scale(1)}}@keyframes ez_toc_ocassional_pop_up_scale{0%{transform:ez_toc_ocassional_pop_up_scale(0)}100%{transform:ez_toc_ocassional_pop_up_scale(1)}}
654
+ INLINEOCCASIONALADSPOPUSCCS;
655
+
656
+ wp_add_inline_style( 'saswp-main-css', $inlineAdminOccasionalAdsPopUpCCS );
657
+
658
+ $inlineAdminOccasionalAdsPopUpJS = <<<INLINEOCCASIONALADSPOPUSJS
659
+ function saswp_set_admin_occasional_ads_pop_up_cookie(){var o=new Date;o.setFullYear(o.getFullYear()+1),document.cookie="saswp_hide_admin_occasional_ads_pop_up_cookie_feedback=1; expires="+o.toUTCString()+"; path=/"}function saswp_delete_admin_occasional_ads_pop_up_cookie(){document.cookie="saswp_hide_admin_occasional_ads_pop_up_cookie_feedback=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}function saswp_get_admin_occasional_ads_pop_up_cookie(){for(var o="saswp_hide_admin_occasional_ads_pop_up_cookie_feedback=",a=decodeURIComponent(document.cookie).split(";"),e=0;e<a.length;e++){for(var c=a[e];" "==c.charAt(0);)c=c.substring(1);if(0==c.indexOf(o))return c.substring(o.length,c.length)}return""}jQuery(function(o){var a=saswp_get_admin_occasional_ads_pop_up_cookie();void 0!==a&&""!==a&&o("details#saswp-ocassional-pop-up-container").attr("open",!1),o("details#saswp-ocassional-pop-up-container span.saswp-promotion-close-btn").click(function(a){o("details#saswp-ocassional-pop-up-container summary").click()}),o("details#saswp-ocassional-pop-up-container summary").click(function(a){var e=o(this).parents("details#saswp-ocassional-pop-up-container"),c=o(e).attr("open");void 0!==c&&!1!==c?saswp_set_admin_occasional_ads_pop_up_cookie():saswp_delete_admin_occasional_ads_pop_up_cookie()})});
660
+ INLINEOCCASIONALADSPOPUSJS;
661
+
662
+ wp_add_inline_script( 'saswp-main-js', $inlineAdminOccasionalAdsPopUpJS );
663
  }
664
 
665
  function saswp_custom_upload_mimes($mimes = array()) {
4685
 
4686
  apply_filters('saswp_wp_enqueue_more_script', '');
4687
 
4688
+ saswp_inlineAdminOccasionalAdsPopUpCSS_JS();
4689
+
4690
  }
4691
 
4692
  }
admin_section/structure_admin.php CHANGED
@@ -1255,8 +1255,12 @@ function saswp_custom_breadcrumbs() {
1255
  $child = get_category($category_name->term_id);
1256
  $parent = $child->parent;
1257
  $parent_name = get_category($parent);
1258
- $parent_name = $parent_name->name;
1259
- $variables1_titles[] = $parent_name;
 
 
 
 
1260
  $variables2_links[] = get_category_link( $parent );
1261
  $breadcrumb_url = get_category_link( $parent );
1262
  }
1255
  $child = get_category($category_name->term_id);
1256
  $parent = $child->parent;
1257
  $parent_name = get_category($parent);
1258
+ if(!empty($parent_name->name)){
1259
+ $parent_name = $parent_name->name;
1260
+ $variables1_titles[] = $parent_name;
1261
+ }else{
1262
+ $variables1_titles[] = "";
1263
+ }
1264
  $variables2_links[] = get_category_link( $parent );
1265
  $breadcrumb_url = get_category_link( $parent );
1266
  }
modules/reviews/reviews_service.php CHANGED
@@ -946,7 +946,7 @@ class saswp_reviews_service {
946
 
947
  }
948
 
949
- public function saswp_create_collection_grid($cols, $collection, $total_reviews, $pagination, $perpage, $offset, $nextpage, $data_id, $total_reviews_count, $date_format, $pagination_wpr = null, $saswp_collection_hide_col_rew_img){
950
 
951
  $html = '';
952
  $grid_cols = '';
@@ -1104,7 +1104,7 @@ class saswp_reviews_service {
1104
 
1105
  }
1106
 
1107
- public function saswp_review_desing_for_slider($value, $date_format = '', $saswp_collection_gallery_img_hide){
1108
 
1109
  $review_link = $value['saswp_review_link'];
1110
 
@@ -1259,7 +1259,7 @@ class saswp_reviews_service {
1259
  foreach ($collection as $value){
1260
 
1261
  $html .= '<li>';
1262
- $html .= $this->saswp_review_desing_for_slider($value, $date_format);
1263
  $html .= '</li>';
1264
 
1265
  if($i == 0){
946
 
947
  }
948
 
949
+ public function saswp_create_collection_grid($cols, $collection, $total_reviews, $pagination, $perpage, $offset, $nextpage, $data_id, $total_reviews_count, $date_format, $pagination_wpr = null, $saswp_collection_hide_col_rew_img = null){
950
 
951
  $html = '';
952
  $grid_cols = '';
1104
 
1105
  }
1106
 
1107
+ public function saswp_review_desing_for_slider($value, $date_format = '', $saswp_collection_gallery_img_hide = ''){
1108
 
1109
  $review_link = $value['saswp_review_link'];
1110
 
1259
  foreach ($collection as $value){
1260
 
1261
  $html .= '<li>';
1262
+ $html .= $this->saswp_review_desing_for_slider($value, $date_format, '');
1263
  $html .= '</li>';
1264
 
1265
  if($i == 0){
output/service.php CHANGED
@@ -288,6 +288,33 @@ Class saswp_output_service{
288
  }
289
 
290
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
  }else{
292
 
293
  if($post){
@@ -1469,69 +1496,40 @@ Class saswp_output_service{
1469
  $input1['author']['description'] = $custom_fields['saswp_article_author_global_mapping']['description'];
1470
  }
1471
 
1472
- if(!empty($custom_fields['saswp_article_author_global_mapping']['honorificsuffix'][0])){
1473
- $input1['author']['honorificsuffix'] = $custom_fields['saswp_article_author_global_mapping']['honorificsuffix'][0];
1474
- }
1475
-
1476
- if(!empty($custom_fields['saswp_article_author_global_mapping']['knowsabout'][0])){
1477
- $input1['author']['knowsabout'] = explode(',', $custom_fields['saswp_article_author_global_mapping']['knowsabout'][0]);
1478
  }
1479
 
1480
- if(!empty($custom_fields['saswp_article_author_global_mapping']['short_intro'][0])){
1481
- $input1['author']['short_intro'] = $custom_fields['saswp_article_author_global_mapping']['short_intro'][0];
1482
- }
1483
-
1484
- if(!empty($custom_fields['saswp_article_author_global_mapping']['team_subtitle'][0])){
1485
- $input1['author']['subtitle'] = $custom_fields['saswp_article_author_global_mapping']['team_subtitle'][0];
1486
- }
1487
-
1488
- if(!empty($custom_fields['saswp_article_author_global_mapping']['team_subtitle_2'][0])){
1489
- $input1['author']['subtitle_2'] = $custom_fields['saswp_article_author_global_mapping']['team_subtitle_2'][0];
1490
- }
1491
-
1492
- if(!empty($custom_fields['saswp_article_author_global_mapping']['team_contact'][0])){
1493
- $input1['author']['contact'] = $custom_fields['saswp_article_author_global_mapping']['team_contact'][0];
1494
- }
1495
-
1496
- if(!empty($custom_fields['saswp_article_author_global_mapping']['team_phone'][0])){
1497
- $input1['author']['team_phone'] = $custom_fields['saswp_article_author_global_mapping']['team_phone'][0];
1498
  }
1499
 
1500
  $sameas = array();
1501
- if(!empty($custom_fields['saswp_article_author_global_mapping']['team_facebook'][0])){
1502
- $sameas[] = $custom_fields['saswp_article_author_global_mapping']['team_facebook'][0];
1503
  }
1504
 
1505
- if(!empty($custom_fields['saswp_article_author_global_mapping']['team_twitter'][0])){
1506
- $sameas[] = $custom_fields['saswp_article_author_global_mapping']['team_twitter'][0];
1507
  }
1508
 
1509
- if(!empty($custom_fields['saswp_article_author_global_mapping']['team_linkedin'][0])){
1510
- $sameas[] = $custom_fields['saswp_article_author_global_mapping']['team_linkedin'][0];
1511
  }
1512
 
1513
- if(!empty($custom_fields['saswp_article_author_global_mapping']['team_instagram'][0])){
1514
- $sameas[] = $custom_fields['saswp_article_author_global_mapping']['team_instagram'][0];
1515
  }
1516
 
1517
- if(!empty($custom_fields['saswp_article_author_global_mapping']['team_youtube'][0])){
1518
- $sameas[] = $custom_fields['saswp_article_author_global_mapping']['team_youtube'][0];
1519
  }
1520
  if($sameas){
1521
  $input1['author']['sameAs'] = $sameas;
1522
  }
1523
 
1524
-
1525
- if(!empty($custom_fields['saswp_article_author_global_mapping']['college_logo'][0])){
1526
- $input1['author']['college_logo'] = wp_get_attachment_image_url($custom_fields['saswp_article_author_global_mapping']['college_logo'][0]);
1527
- }
1528
-
1529
- if(!empty($custom_fields['saswp_article_author_global_mapping']['reviewer_bio'][0])){
1530
- $input1['author']['reviewer_bio'] = $custom_fields['saswp_article_author_global_mapping']['reviewer_bio'][0];
1531
- }
1532
-
1533
- if(!empty($custom_fields['saswp_article_author_global_mapping']['alumniof'][0])){
1534
- $str = $custom_fields['saswp_article_author_global_mapping']['alumniof'][0];
1535
  $itemlist = explode(",", $str);
1536
  foreach ($itemlist as $key => $list){
1537
  $vnewarr['@type'] = 'Organization';
@@ -1588,68 +1586,40 @@ Class saswp_output_service{
1588
  $input1['reviewedBy']['description'] = $custom_fields['saswp_article_reviewedby_global_mapping']['description'];
1589
  }
1590
 
1591
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['honorificsuffix'][0])){
1592
- $input1['reviewedBy']['honorificsuffix'] = $custom_fields['saswp_article_reviewedby_global_mapping']['honorificsuffix'][0];
1593
  }
1594
 
1595
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['knowsabout'][0])){
1596
- $input1['reviewedBy']['knowsabout'] = explode(',', $custom_fields['saswp_article_reviewedby_global_mapping']['knowsabout'][0]);
1597
  }
1598
-
1599
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['short_intro'][0])){
1600
- $input1['reviewedBy']['short_intro'] = $custom_fields['saswp_article_reviewedby_global_mapping']['short_intro'][0];
1601
- }
1602
-
1603
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['team_subtitle'][0])){
1604
- $input1['reviewedBy']['subtitle'] = $custom_fields['saswp_article_reviewedby_global_mapping']['team_subtitle'][0];
1605
- }
1606
-
1607
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['team_subtitle_2'][0])){
1608
- $input1['reviewedBy']['subtitle_2'] = $custom_fields['saswp_article_reviewedby_global_mapping']['team_subtitle_2'][0];
1609
- }
1610
-
1611
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['team_contact'][0])){
1612
- $input1['reviewedBy']['contact'] = $custom_fields['saswp_article_reviewedby_global_mapping']['team_contact'][0];
1613
- }
1614
-
1615
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['team_phone'][0])){
1616
- $input1['reviewedBy']['team_phone'] = $custom_fields['saswp_article_reviewedby_global_mapping']['team_phone'][0];
1617
- }
1618
-
1619
  $sameas = array();
1620
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['team_facebook'][0])){
1621
- $sameas[] = $custom_fields['saswp_article_reviewedby_global_mapping']['team_facebook'][0];
1622
  }
1623
-
1624
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['team_twitter'][0])){
1625
- $sameas[] = $custom_fields['saswp_article_reviewedby_global_mapping']['team_twitter'][0];
1626
  }
1627
-
1628
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['team_linkedin'][0])){
1629
- $sameas[] = $custom_fields['saswp_article_reviewedby_global_mapping']['team_linkedin'][0];
1630
  }
1631
-
1632
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['team_instagram'][0])){
1633
- $sameas[] = $custom_fields['saswp_article_reviewedby_global_mapping']['team_instagram'][0];
1634
  }
1635
-
1636
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['team_youtube'][0])){
1637
- $sameas[] = $custom_fields['saswp_article_reviewedby_global_mapping']['team_youtube'][0];
1638
  }
1639
  if($sameas){
1640
  $input1['reviewedBy']['sameAs'] = $sameas;
1641
  }
1642
 
1643
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['college_logo'][0])){
1644
- $input1['reviewedBy']['college_logo'] = wp_get_attachment_image_url($custom_fields['saswp_article_reviewedby_global_mapping']['college_logo'][0]);
1645
  }
1646
-
1647
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['reviewer_bio'][0])){
1648
- $input1['reviewedBy']['reviewer_bio'] = $custom_fields['saswp_article_reviewedby_global_mapping']['reviewer_bio'][0];
1649
- }
1650
-
1651
- if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['alumniof'][0])){
1652
- $str = $custom_fields['saswp_article_reviewedby_global_mapping']['alumniof'][0];
1653
  $itemlist = explode(",", $str);
1654
  foreach ($itemlist as $key => $list){
1655
  $vnewarr['@type'] = 'Organization';
@@ -1658,6 +1628,7 @@ Class saswp_output_service{
1658
  }
1659
  }
1660
 
 
1661
  }else{
1662
 
1663
  if(isset($custom_fields['saswp_article_reviewedby_type'])){
@@ -1782,69 +1753,40 @@ Class saswp_output_service{
1782
  $input1['author']['description'] = $custom_fields['saswp_creativework_author_global_mapping']['description'];
1783
  }
1784
 
1785
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['honorificsuffix'][0])){
1786
- $input1['author']['honorificsuffix'] = $custom_fields['saswp_creativework_author_global_mapping']['honorificsuffix'][0];
1787
- }
1788
-
1789
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['knowsabout'][0])){
1790
- $input1['author']['knowsabout'] = explode(',', $custom_fields['saswp_creativework_author_global_mapping']['knowsabout'][0]);
1791
- }
1792
-
1793
-
1794
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['short_intro'][0])){
1795
- $input1['author']['short_intro'] = $custom_fields['saswp_creativework_author_global_mapping']['short_intro'][0];
1796
- }
1797
-
1798
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['team_subtitle'][0])){
1799
- $input1['author']['subtitle'] = $custom_fields['saswp_creativework_author_global_mapping']['team_subtitle'][0];
1800
- }
1801
-
1802
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['team_subtitle_2'][0])){
1803
- $input1['author']['subtitle_2'] = $custom_fields['saswp_creativework_author_global_mapping']['team_subtitle_2'][0];
1804
- }
1805
-
1806
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['team_contact'][0])){
1807
- $input1['author']['contact'] = $custom_fields['saswp_creativework_author_global_mapping']['team_contact'][0];
1808
  }
1809
 
1810
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['team_phone'][0])){
1811
- $input1['author']['team_phone'] = $custom_fields['saswp_creativework_author_global_mapping']['team_phone'][0];
1812
  }
1813
-
1814
  $sameas = array();
1815
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['team_facebook'][0])){
1816
- $sameas[] = $custom_fields['saswp_creativework_author_global_mapping']['team_facebook'][0];
1817
  }
1818
 
1819
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['team_twitter'][0])){
1820
- $sameas[] = $custom_fields['saswp_creativework_author_global_mapping']['team_twitter'][0];
1821
  }
1822
 
1823
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['team_linkedin'][0])){
1824
- $sameas[] = $custom_fields['saswp_creativework_author_global_mapping']['team_linkedin'][0];
1825
  }
1826
 
1827
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['team_instagram'][0])){
1828
- $sameas[] = $custom_fields['saswp_creativework_author_global_mapping']['team_instagram'][0];
1829
  }
1830
 
1831
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['team_youtube'][0])){
1832
- $sameas[] = $custom_fields['saswp_creativework_author_global_mapping']['team_youtube'][0];
1833
  }
1834
  if($sameas){
1835
  $input1['author']['sameAs'] = $sameas;
1836
- }
1837
-
1838
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['college_logo'][0])){
1839
- $input1['author']['college_logo'] = wp_get_attachment_image_url($custom_fields['saswp_creativework_author_global_mapping']['college_logo'][0]);
1840
- }
1841
-
1842
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['reviewer_bio'][0])){
1843
- $input1['author']['reviewer_bio'] = $custom_fields['saswp_creativework_author_global_mapping']['reviewer_bio'][0];
1844
- }
1845
 
1846
- if(!empty($custom_fields['saswp_creativework_author_global_mapping']['alumniof'][0])){
1847
- $str = $custom_fields['saswp_creativework_author_global_mapping']['alumniof'][0];
1848
  $itemlist = explode(",", $str);
1849
  foreach ($itemlist as $key => $list){
1850
  $vnewarr['@type'] = 'Organization';
@@ -1904,69 +1846,48 @@ Class saswp_output_service{
1904
  $input1['reviewedBy']['description'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['description'];
1905
  }
1906
 
1907
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['honorificsuffix'][0])){
1908
- $input1['reviewedBy']['honorificsuffix'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['honorificsuffix'][0];
1909
  }
1910
 
1911
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['knowsabout'][0])){
1912
- $input1['reviewedBy']['knowsabout'] = explode(',', $custom_fields['saswp_creativework_reviewedby_global_mapping']['knowsabout'][0]);
1913
- }
1914
-
1915
-
1916
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['short_intro'][0])){
1917
- $input1['reviewedBy']['short_intro'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['short_intro'][0];
1918
  }
1919
 
1920
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['team_subtitle'][0])){
1921
- $input1['reviewedBy']['subtitle'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['team_subtitle'][0];
1922
- }
1923
-
1924
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['team_subtitle_2'][0])){
1925
- $input1['reviewedBy']['subtitle_2'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['team_subtitle_2'][0];
1926
- }
1927
-
1928
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['team_contact'][0])){
1929
- $input1['reviewedBy']['contact'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['team_contact'][0];
1930
- }
1931
-
1932
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['team_phone'][0])){
1933
- $input1['reviewedBy']['team_phone'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['team_phone'][0];
1934
  }
1935
 
1936
  $sameas = array();
1937
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['team_facebook'][0])){
1938
- $sameas[] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['team_facebook'][0];
1939
  }
1940
 
1941
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['team_twitter'][0])){
1942
- $sameas[] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['team_twitter'][0];
1943
  }
1944
 
1945
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['team_linkedin'][0])){
1946
- $sameas[] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['team_linkedin'][0];
1947
  }
1948
 
1949
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['team_instagram'][0])){
1950
- $sameas[] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['team_instagram'][0];
1951
  }
1952
 
1953
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['team_youtube'][0])){
1954
- $sameas[] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['team_youtube'][0];
1955
  }
1956
  if($sameas){
1957
  $input1['reviewedBy']['sameAs'] = $sameas;
1958
  }
1959
 
1960
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['college_logo'][0])){
1961
- $input1['reviewedBy']['college_logo'] = wp_get_attachment_image_url($custom_fields['saswp_creativework_reviewedby_global_mapping']['college_logo'][0]);
1962
  }
1963
 
1964
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['reviewer_bio'][0])){
1965
- $input1['reviewedBy']['reviewer_bio'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['reviewer_bio'][0];
1966
- }
1967
-
1968
- if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['alumniof'][0])){
1969
- $str = $custom_fields['saswp_creativework_reviewedby_global_mapping']['alumniof'][0];
1970
  $itemlist = explode(",", $str);
1971
  foreach ($itemlist as $key => $list){
1972
  $vnewarr['@type'] = 'Organization';
@@ -2112,71 +2033,45 @@ Class saswp_output_service{
2112
  $input1['author']['description'] = $custom_fields['saswp_photograph_author_global_mapping']['description'];
2113
  }
2114
 
2115
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['honorificsuffix'][0])){
2116
- $input1['author']['honorificsuffix'] = $custom_fields['saswp_photograph_author_global_mapping']['honorificsuffix'][0];
2117
- }
2118
-
2119
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['knowsabout'][0])){
2120
- $input1['author']['knowsabout'] = explode(',', $custom_fields['saswp_photograph_author_global_mapping']['knowsabout'][0]);
2121
- }
2122
-
2123
-
2124
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['short_intro'][0])){
2125
- $input1['author']['short_intro'] = $custom_fields['saswp_photograph_author_global_mapping']['short_intro'][0];
2126
  }
2127
 
2128
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['team_subtitle'][0])){
2129
- $input1['author']['subtitle'] = $custom_fields['saswp_photograph_author_global_mapping']['team_subtitle'][0];
2130
  }
2131
 
2132
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['team_subtitle_2'][0])){
2133
- $input1['author']['subtitle_2'] = $custom_fields['saswp_photograph_author_global_mapping']['team_subtitle_2'][0];
2134
- }
2135
-
2136
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['team_contact'][0])){
2137
- $input1['author']['contact'] = $custom_fields['saswp_photograph_author_global_mapping']['team_contact'][0];
2138
- }
2139
-
2140
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['team_phone'][0])){
2141
- $input1['author']['team_phone'] = $custom_fields['saswp_photograph_author_global_mapping']['team_phone'][0];
2142
- }
2143
-
2144
-
2145
  $sameas = array();
2146
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['team_facebook'][0])){
2147
- $sameas[] = $custom_fields['saswp_photograph_author_global_mapping']['team_facebook'][0];
2148
  }
2149
 
2150
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['team_twitter'][0])){
2151
- $sameas[] = $custom_fields['saswp_photograph_author_global_mapping']['team_twitter'][0];
2152
  }
2153
 
2154
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['team_linkedin'][0])){
2155
- $sameas[] = $custom_fields['saswp_photograph_author_global_mapping']['team_linkedin'][0];
2156
  }
2157
 
2158
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['team_instagram'][0])){
2159
- $sameas[] = $custom_fields['saswp_photograph_author_global_mapping']['team_instagram'][0];
2160
  }
2161
 
2162
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['team_youtube'][0])){
2163
- $sameas[] = $custom_fields['saswp_photograph_author_global_mapping']['team_youtube'][0];
2164
  }
2165
  if($sameas){
2166
  $input1['author']['sameAs'] = $sameas;
2167
  }
2168
 
2169
 
2170
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['college_logo'][0])){
2171
- $input1['author']['college_logo'] = wp_get_attachment_image_url($custom_fields['saswp_photograph_author_global_mapping']['college_logo'][0]);
2172
  }
2173
 
2174
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['reviewer_bio'][0])){
2175
- $input1['author']['reviewer_bio'] = $custom_fields['saswp_photograph_author_global_mapping']['reviewer_bio'][0];
2176
- }
2177
-
2178
- if(!empty($custom_fields['saswp_photograph_author_global_mapping']['alumniof'][0])){
2179
- $str = $custom_fields['saswp_photograph_author_global_mapping']['alumniof'][0];
2180
  $itemlist = explode(",", $str);
2181
  foreach ($itemlist as $key => $list){
2182
  $vnewarr['@type'] = 'Organization';
@@ -2255,69 +2150,44 @@ Class saswp_output_service{
2255
  $input1['reviewedBy']['description'] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['description'];
2256
  }
2257
 
2258
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['honorificsuffix'][0])){
2259
- $input1['reviewedBy']['honorificsuffix'] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['honorificsuffix'][0];
2260
- }
2261
-
2262
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['knowsabout'][0])){
2263
- $input1['reviewedBy']['knowsabout'] = explode(',', $custom_fields['saswp_photograph_reviewedby_global_mapping']['knowsabout'][0]);
2264
- }
2265
-
2266
-
2267
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['short_intro'][0])){
2268
- $input1['reviewedBy']['short_intro'] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['short_intro'][0];
2269
- }
2270
-
2271
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['team_subtitle'][0])){
2272
- $input1['reviewedBy']['subtitle'] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['team_subtitle'][0];
2273
- }
2274
-
2275
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['team_subtitle_2'][0])){
2276
- $input1['reviewedBy']['subtitle_2'] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['team_subtitle_2'][0];
2277
- }
2278
-
2279
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['team_contact'][0])){
2280
- $input1['reviewedBy']['contact'] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['team_contact'][0];
2281
  }
2282
 
2283
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['team_phone'][0])){
2284
- $input1['reviewedBy']['team_phone'] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['team_phone'][0];
2285
  }
2286
 
2287
  $sameas = array();
2288
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['team_facebook'][0])){
2289
- $sameas[] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['team_facebook'][0];
2290
  }
2291
 
2292
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['team_twitter'][0])){
2293
- $sameas[] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['team_twitter'][0];
2294
  }
2295
 
2296
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['team_linkedin'][0])){
2297
- $sameas[] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['team_linkedin'][0];
2298
  }
2299
 
2300
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['team_instagram'][0])){
2301
- $sameas[] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['team_instagram'][0];
2302
  }
2303
 
2304
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['team_youtube'][0])){
2305
- $sameas[] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['team_youtube'][0];
2306
  }
2307
  if($sameas){
2308
  $input1['reviewedBy']['sameAs'] = $sameas;
2309
  }
2310
 
2311
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['college_logo'][0])){
2312
- $input1['reviewedBy']['college_logo'] = wp_get_attachment_image_url($custom_fields['saswp_photograph_reviewedby_global_mapping']['college_logo'][0]);
2313
  }
2314
 
2315
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['reviewer_bio'][0])){
2316
- $input1['reviewedBy']['reviewer_bio'] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['reviewer_bio'][0];
2317
- }
2318
-
2319
- if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['alumniof'][0])){
2320
- $str = $custom_fields['saswp_photograph_reviewedby_global_mapping']['alumniof'][0];
2321
  $itemlist = explode(",", $str);
2322
  foreach ($itemlist as $key => $list){
2323
  $vnewarr['@type'] = 'Organization';
@@ -2659,70 +2529,40 @@ Class saswp_output_service{
2659
  $input1['author']['description'] = $custom_fields['saswp_blogposting_author_global_mapping']['description'];
2660
  }
2661
 
2662
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['honorificsuffix'][0])){
2663
- $input1['author']['honorificsuffix'] = $custom_fields['saswp_blogposting_author_global_mapping']['honorificsuffix'][0];
2664
- }
2665
-
2666
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['knowsabout'][0])){
2667
- $input1['author']['knowsabout'] = explode(',', $custom_fields['saswp_blogposting_author_global_mapping']['knowsabout'][0]);
2668
  }
2669
 
2670
-
2671
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['short_intro'][0])){
2672
- $input1['author']['short_intro'] = $custom_fields['saswp_blogposting_author_global_mapping']['short_intro'][0];
2673
- }
2674
-
2675
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['team_subtitle'][0])){
2676
- $input1['author']['subtitle'] = $custom_fields['saswp_blogposting_author_global_mapping']['team_subtitle'][0];
2677
- }
2678
-
2679
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['team_subtitle_2'][0])){
2680
- $input1['author']['subtitle_2'] = $custom_fields['saswp_blogposting_author_global_mapping']['team_subtitle_2'][0];
2681
- }
2682
-
2683
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['team_contact'][0])){
2684
- $input1['author']['contact'] = $custom_fields['saswp_blogposting_author_global_mapping']['team_contact'][0];
2685
- }
2686
-
2687
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['team_phone'][0])){
2688
- $input1['author']['team_phone'] = $custom_fields['saswp_blogposting_author_global_mapping']['team_phone'][0];
2689
  }
2690
 
2691
  $sameas = array();
2692
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['team_facebook'][0])){
2693
- $sameas[] = $custom_fields['saswp_blogposting_author_global_mapping']['team_facebook'][0];
2694
  }
2695
 
2696
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['team_twitter'][0])){
2697
- $sameas[] = $custom_fields['saswp_blogposting_author_global_mapping']['team_twitter'][0];
2698
  }
2699
 
2700
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['team_linkedin'][0])){
2701
- $sameas[] = $custom_fields['saswp_blogposting_author_global_mapping']['team_linkedin'][0];
2702
  }
2703
 
2704
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['team_instagram'][0])){
2705
- $sameas[] = $custom_fields['saswp_blogposting_author_global_mapping']['team_instagram'][0];
2706
  }
2707
 
2708
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['team_youtube'][0])){
2709
- $sameas[] = $custom_fields['saswp_blogposting_author_global_mapping']['team_youtube'][0];
2710
  }
2711
  if($sameas){
2712
  $input1['author']['sameAs'] = $sameas;
2713
  }
2714
 
2715
-
2716
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['college_logo'][0])){
2717
- $input1['author']['college_logo'] = wp_get_attachment_image_url($custom_fields['saswp_blogposting_author_global_mapping']['college_logo'][0]);
2718
- }
2719
-
2720
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['reviewer_bio'][0])){
2721
- $input1['author']['reviewer_bio'] = $custom_fields['saswp_blogposting_author_global_mapping']['reviewer_bio'][0];
2722
- }
2723
-
2724
- if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['alumniof'][0])){
2725
- $str = $custom_fields['saswp_blogposting_author_global_mapping']['alumniof'][0];
2726
  $itemlist = explode(",", $str);
2727
  foreach ($itemlist as $key => $list){
2728
  $vnewarr['@type'] = 'Organization';
@@ -2773,70 +2613,45 @@ Class saswp_output_service{
2773
  if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['description'])){
2774
  $input1['reviewedBy']['description'] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['description'];
2775
  }
2776
-
2777
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['honorificsuffix'][0])){
2778
- $input1['reviewedBy']['honorificsuffix'] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['honorificsuffix'][0];
2779
- }
2780
-
2781
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['knowsabout'][0])){
2782
- $input1['reviewedBy']['knowsabout'] = explode(',', $custom_fields['saswp_blogposting_reviewedby_global_mapping']['knowsabout'][0]);
2783
- }
2784
-
2785
-
2786
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['short_intro'][0])){
2787
- $input1['reviewedBy']['short_intro'] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['short_intro'][0];
2788
- }
2789
-
2790
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_subtitle'][0])){
2791
- $input1['reviewedBy']['subtitle'] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_subtitle'][0];
2792
- }
2793
-
2794
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_subtitle_2'][0])){
2795
- $input1['reviewedBy']['subtitle_2'] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_subtitle_2'][0];
2796
- }
2797
-
2798
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_contact'][0])){
2799
- $input1['reviewedBy']['contact'] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_contact'][0];
2800
  }
2801
 
2802
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_phone'][0])){
2803
- $input1['reviewedBy']['team_phone'] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_phone'][0];
2804
  }
2805
 
2806
  $sameas = array();
2807
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_facebook'][0])){
2808
- $sameas[] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_facebook'][0];
2809
  }
2810
 
2811
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_twitter'][0])){
2812
- $sameas[] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_twitter'][0];
2813
  }
2814
 
2815
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_linkedin'][0])){
2816
- $sameas[] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_linkedin'][0];
2817
  }
2818
 
2819
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_instagram'][0])){
2820
- $sameas[] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_instagram'][0];
2821
  }
2822
 
2823
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_youtube'][0])){
2824
- $sameas[] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['team_youtube'][0];
2825
  }
2826
  if($sameas){
2827
  $input1['reviewedBy']['sameAs'] = $sameas;
2828
  }
2829
 
2830
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['college_logo'][0])){
2831
- $input1['reviewedBy']['college_logo'] = wp_get_attachment_image_url($custom_fields['saswp_blogposting_reviewedby_global_mapping']['college_logo'][0]);
2832
- }
2833
-
2834
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['reviewer_bio'][0])){
2835
- $input1['reviewedBy']['reviewer_bio'] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['reviewer_bio'][0];
2836
  }
2837
 
2838
- if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['alumniof'][0])){
2839
- $str = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['alumniof'][0];
2840
  $itemlist = explode(",", $str);
2841
  foreach ($itemlist as $key => $list){
2842
  $vnewarr['@type'] = 'Organization';
@@ -3125,10 +2940,6 @@ Class saswp_output_service{
3125
  $input1['description'] = wp_strip_all_tags(strip_shortcodes( $custom_fields['saswp_webpage_description'] )) ;
3126
  }
3127
 
3128
- if(isset($custom_fields['saswp_webpage_reviewed_by'])){
3129
- $input1['reviewedBy'] = $custom_fields['saswp_webpage_reviewed_by'];
3130
- }
3131
-
3132
  if(isset($custom_fields['saswp_webpage_last_reviewed'])){
3133
  $input1['lastReviewed'] = $custom_fields['saswp_webpage_last_reviewed'];
3134
  }
@@ -3174,6 +2985,81 @@ Class saswp_output_service{
3174
  $input1['mainEntity']['publisher']['logo'] = $custom_fields['saswp_webpage_organization_logo'];
3175
  $input1['mainEntity']['publisher']['name'] = $custom_fields['saswp_webpage_organization_name'];
3176
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3177
 
3178
  break;
3179
 
@@ -3450,70 +3336,39 @@ Class saswp_output_service{
3450
  $input1['author']['description'] = $custom_fields['saswp_tech_article_author_global_mapping']['description'];
3451
  }
3452
 
3453
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['honorificsuffix'][0])){
3454
- $input1['author']['honorificsuffix'] = $custom_fields['saswp_tech_article_author_global_mapping']['honorificsuffix'][0];
3455
- }
3456
-
3457
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['knowsabout'][0])){
3458
- $input1['author']['knowsabout'] = explode(',', $custom_fields['saswp_tech_article_author_global_mapping']['knowsabout'][0]);
3459
- }
3460
-
3461
-
3462
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['short_intro'][0])){
3463
- $input1['author']['short_intro'] = $custom_fields['saswp_tech_article_author_global_mapping']['short_intro'][0];
3464
- }
3465
-
3466
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['team_subtitle'][0])){
3467
- $input1['author']['subtitle'] = $custom_fields['saswp_tech_article_author_global_mapping']['team_subtitle'][0];
3468
  }
3469
 
3470
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['team_subtitle_2'][0])){
3471
- $input1['author']['subtitle_2'] = $custom_fields['saswp_tech_article_author_global_mapping']['team_subtitle_2'][0];
3472
- }
3473
-
3474
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['team_contact'][0])){
3475
- $input1['author']['contact'] = $custom_fields['saswp_tech_article_author_global_mapping']['team_contact'][0];
3476
- }
3477
-
3478
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['team_phone'][0])){
3479
- $input1['author']['team_phone'] = $custom_fields['saswp_tech_article_author_global_mapping']['team_phone'][0];
3480
- }
3481
 
3482
  $sameas = array();
3483
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['team_facebook'][0])){
3484
- $sameas[] = $custom_fields['saswp_tech_article_author_global_mapping']['team_facebook'][0];
3485
  }
3486
 
3487
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['team_twitter'][0])){
3488
- $sameas[] = $custom_fields['saswp_tech_article_author_global_mapping']['team_twitter'][0];
3489
  }
3490
 
3491
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['team_linkedin'][0])){
3492
- $sameas[] = $custom_fields['saswp_tech_article_author_global_mapping']['team_linkedin'][0];
3493
  }
3494
 
3495
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['team_instagram'][0])){
3496
- $sameas[] = $custom_fields['saswp_tech_article_author_global_mapping']['team_instagram'][0];
3497
  }
3498
 
3499
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['team_youtube'][0])){
3500
- $sameas[] = $custom_fields['saswp_tech_article_author_global_mapping']['team_youtube'][0];
3501
  }
3502
  if($sameas){
3503
  $input1['author']['sameAs'] = $sameas;
3504
  }
3505
-
3506
-
3507
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['college_logo'][0])){
3508
- $input1['author']['college_logo'] = wp_get_attachment_image_url($custom_fields['saswp_tech_article_author_global_mapping']['college_logo'][0]);
3509
- }
3510
-
3511
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['reviewer_bio'][0])){
3512
- $input1['author']['reviewer_bio'] = $custom_fields['saswp_tech_article_author_global_mapping']['reviewer_bio'][0];
3513
- }
3514
-
3515
- if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['alumniof'][0])){
3516
- $str = $custom_fields['saswp_tech_article_author_global_mapping']['alumniof'][0];
3517
  $itemlist = explode(",", $str);
3518
  foreach ($itemlist as $key => $list){
3519
  $vnewarr['@type'] = 'Organization';
@@ -3593,74 +3448,48 @@ Class saswp_output_service{
3593
  if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['url'])){
3594
  $input1['reviewedBy']['url'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['url'];
3595
  }
3596
-
3597
  if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['description'])){
3598
  $input1['reviewedBy']['description'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['description'];
3599
  }
3600
 
3601
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['honorificsuffix'][0])){
3602
- $input1['reviewedBy']['honorificsuffix'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['honorificsuffix'][0];
3603
  }
3604
 
3605
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['knowsabout'][0])){
3606
- $input1['reviewedBy']['knowsabout'] = explode(',', $custom_fields['saswp_tech_article_reviewedby_global_mapping']['knowsabout'][0]);
3607
- }
3608
-
3609
-
3610
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['short_intro'][0])){
3611
- $input1['reviewedBy']['short_intro'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['short_intro'][0];
3612
- }
3613
-
3614
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_subtitle'][0])){
3615
- $input1['reviewedBy']['subtitle'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_subtitle'][0];
3616
- }
3617
-
3618
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_subtitle_2'][0])){
3619
- $input1['reviewedBy']['subtitle_2'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_subtitle_2'][0];
3620
- }
3621
-
3622
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_contact'][0])){
3623
- $input1['reviewedBy']['contact'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_contact'][0];
3624
- }
3625
-
3626
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_phone'][0])){
3627
- $input1['reviewedBy']['team_phone'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_phone'][0];
3628
  }
3629
 
3630
  $sameas = array();
3631
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_facebook'][0])){
3632
- $sameas[] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_facebook'][0];
3633
  }
3634
 
3635
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_twitter'][0])){
3636
- $sameas[] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_twitter'][0];
3637
  }
3638
 
3639
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_linkedin'][0])){
3640
- $sameas[] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_linkedin'][0];
3641
  }
3642
 
3643
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_instagram'][0])){
3644
- $sameas[] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_instagram'][0];
3645
  }
3646
 
3647
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_youtube'][0])){
3648
- $sameas[] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['team_youtube'][0];
3649
  }
3650
  if($sameas){
3651
  $input1['reviewedBy']['sameAs'] = $sameas;
3652
  }
3653
 
3654
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['college_logo'][0])){
3655
- $input1['reviewedBy']['college_logo'] = wp_get_attachment_image_url($custom_fields['saswp_tech_article_reviewedby_global_mapping']['college_logo'][0]);
3656
- }
3657
-
3658
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['reviewer_bio'][0])){
3659
- $input1['reviewedBy']['reviewer_bio'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['reviewer_bio'][0];
3660
  }
3661
 
3662
- if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['alumniof'][0])){
3663
- $str = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['alumniof'][0];
3664
  $itemlist = explode(",", $str);
3665
  foreach ($itemlist as $key => $list){
3666
  $vnewarr['@type'] = 'Organization';
288
  }
289
 
290
 
291
+ }elseif(strpos($key, "global_mapping") == true || $key == "saswp_webpage_reviewed_by"){
292
+
293
+ if($key == "saswp_webpage_reviewed_by"){
294
+ $tema_id = get_post_meta($post->ID, "reviewed_by", true);
295
+ }else{
296
+ $tema_id = get_post_meta($post->ID, $cus_field[$key], true);
297
+ }
298
+ if($tema_id && is_numeric($tema_id)){
299
+
300
+ $response['@type'] = "Person";
301
+ $response['name'] = get_the_title($tema_id);
302
+ $response['url'] = get_permalink($tema_id);
303
+ $response['description'] = wp_trim_words(get_post_field('post_content', $tema_id));
304
+ $response['custom_fields'] = get_post_meta($tema_id);
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{
319
 
320
  if($post){
1496
  $input1['author']['description'] = $custom_fields['saswp_article_author_global_mapping']['description'];
1497
  }
1498
 
1499
+ if(!empty($custom_fields['saswp_article_author_global_mapping']['custom_fields']['honorificsuffix'][0])){
1500
+ $input1['author']['honorificSuffix'] = $custom_fields['saswp_article_author_global_mapping']['custom_fields']['honorificsuffix'][0];
 
 
 
 
1501
  }
1502
 
1503
+ if(!empty($custom_fields['saswp_article_author_global_mapping']['custom_fields']['knowsabout'][0])){
1504
+ $input1['author']['knowsAbout'] = explode(',', $custom_fields['saswp_article_author_global_mapping']['custom_fields']['knowsabout'][0]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1505
  }
1506
 
1507
  $sameas = array();
1508
+ if(!empty($custom_fields['saswp_article_author_global_mapping']['custom_fields']['team_facebook'][0])){
1509
+ $sameas[] = $custom_fields['saswp_article_author_global_mapping']['custom_fields']['team_facebook'][0];
1510
  }
1511
 
1512
+ if(!empty($custom_fields['saswp_article_author_global_mapping']['custom_fields']['team_twitter'][0])){
1513
+ $sameas[] = $custom_fields['saswp_article_author_global_mapping']['custom_fields']['team_twitter'][0];
1514
  }
1515
 
1516
+ if(!empty($custom_fields['saswp_article_author_global_mapping']['custom_fields']['team_linkedin'][0])){
1517
+ $sameas[] = $custom_fields['saswp_article_author_global_mapping']['custom_fields']['team_linkedin'][0];
1518
  }
1519
 
1520
+ if(!empty($custom_fields['saswp_article_author_global_mapping']['custom_fields']['team_instagram'][0])){
1521
+ $sameas[] = $custom_fields['saswp_article_author_global_mapping']['custom_fields']['team_instagram'][0];
1522
  }
1523
 
1524
+ if(!empty($custom_fields['saswp_article_author_global_mapping']['custom_fields']['team_youtube'][0])){
1525
+ $sameas[] = $custom_fields['saswp_article_author_global_mapping']['custom_fields']['team_youtube'][0];
1526
  }
1527
  if($sameas){
1528
  $input1['author']['sameAs'] = $sameas;
1529
  }
1530
 
1531
+ if(!empty($custom_fields['saswp_article_author_global_mapping']['custom_fields']['alumniof'][0])){
1532
+ $str = $custom_fields['saswp_article_author_global_mapping']['custom_fields']['alumniof'][0];
 
 
 
 
 
 
 
 
 
1533
  $itemlist = explode(",", $str);
1534
  foreach ($itemlist as $key => $list){
1535
  $vnewarr['@type'] = 'Organization';
1586
  $input1['reviewedBy']['description'] = $custom_fields['saswp_article_reviewedby_global_mapping']['description'];
1587
  }
1588
 
1589
+ if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['honorificsuffix'][0])){
1590
+ $input1['reviewedBy']['honorificSuffix'] = $custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['honorificsuffix'][0];
1591
  }
1592
 
1593
+ if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['knowsabout'][0])){
1594
+ $input1['reviewedBy']['knowsAbout'] = explode(',', $custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['knowsabout'][0]);
1595
  }
1596
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1597
  $sameas = array();
1598
+ if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['team_facebook'][0])){
1599
+ $sameas[] = $custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['team_facebook'][0];
1600
  }
1601
+ if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['team_twitter'][0])){
1602
+ $sameas[] = $custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['team_twitter'][0];
 
1603
  }
1604
+ if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['team_linkedin'][0])){
1605
+ $sameas[] = $custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['team_linkedin'][0];
 
1606
  }
1607
+ if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['team_instagram'][0])){
1608
+ $sameas[] = $custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['team_instagram'][0];
 
1609
  }
1610
+ if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['team_youtube'][0])){
1611
+ $sameas[] = $custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['team_youtube'][0];
 
1612
  }
1613
  if($sameas){
1614
  $input1['reviewedBy']['sameAs'] = $sameas;
1615
  }
1616
 
1617
+ if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['reviewer_image'])){
1618
+ $input1['reviewedBy']['image'] = $custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['reviewer_image'];
1619
  }
1620
+
1621
+ if(!empty($custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['alumniof'][0])){
1622
+ $str = $custom_fields['saswp_article_reviewedby_global_mapping']['custom_fields']['alumniof'][0];
 
 
 
 
1623
  $itemlist = explode(",", $str);
1624
  foreach ($itemlist as $key => $list){
1625
  $vnewarr['@type'] = 'Organization';
1628
  }
1629
  }
1630
 
1631
+
1632
  }else{
1633
 
1634
  if(isset($custom_fields['saswp_article_reviewedby_type'])){
1753
  $input1['author']['description'] = $custom_fields['saswp_creativework_author_global_mapping']['description'];
1754
  }
1755
 
1756
+ if(!empty($custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['honorificsuffix'][0])){
1757
+ $input1['author']['honorificSuffix'] = $custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['honorificsuffix'][0];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1758
  }
1759
 
1760
+ if(!empty($custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['knowsabout'][0])){
1761
+ $input1['author']['knowsAbout'] = explode(',', $custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['knowsabout'][0]);
1762
  }
1763
+
1764
  $sameas = array();
1765
+ if(!empty($custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['team_facebook'][0])){
1766
+ $sameas[] = $custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['team_facebook'][0];
1767
  }
1768
 
1769
+ if(!empty($custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['team_twitter'][0])){
1770
+ $sameas[] = $custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['team_twitter'][0];
1771
  }
1772
 
1773
+ if(!empty($custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['team_linkedin'][0])){
1774
+ $sameas[] = $custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['team_linkedin'][0];
1775
  }
1776
 
1777
+ if(!empty($custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['team_instagram'][0])){
1778
+ $sameas[] = $custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['team_instagram'][0];
1779
  }
1780
 
1781
+ if(!empty($custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['team_youtube'][0])){
1782
+ $sameas[] = $custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['team_youtube'][0];
1783
  }
1784
  if($sameas){
1785
  $input1['author']['sameAs'] = $sameas;
1786
+ }
 
 
 
 
 
 
 
 
1787
 
1788
+ if(!empty($custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['alumniof'][0])){
1789
+ $str = $custom_fields['saswp_creativework_author_global_mapping']['custom_fields']['alumniof'][0];
1790
  $itemlist = explode(",", $str);
1791
  foreach ($itemlist as $key => $list){
1792
  $vnewarr['@type'] = 'Organization';
1846
  $input1['reviewedBy']['description'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['description'];
1847
  }
1848
 
1849
+ if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['honorificsuffix'][0])){
1850
+ $input1['reviewedBy']['honorificSuffix'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['honorificsuffix'][0];
1851
  }
1852
 
1853
+ if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['knowsabout'][0])){
1854
+ $input1['reviewedBy']['knowsAbout'] = explode(',', $custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['knowsabout'][0]);
 
 
 
 
 
1855
  }
1856
 
1857
+ if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['short_intro'][0])){
1858
+ $input1['reviewedBy']['ShortStory'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['short_intro'][0];
 
 
 
 
 
 
 
 
 
 
 
 
1859
  }
1860
 
1861
  $sameas = array();
1862
+ if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['team_facebook'][0])){
1863
+ $sameas[] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['team_facebook'][0];
1864
  }
1865
 
1866
+ if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['team_twitter'][0])){
1867
+ $sameas[] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['team_twitter'][0];
1868
  }
1869
 
1870
+ if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['team_linkedin'][0])){
1871
+ $sameas[] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['team_linkedin'][0];
1872
  }
1873
 
1874
+ if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['team_instagram'][0])){
1875
+ $sameas[] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['team_instagram'][0];
1876
  }
1877
 
1878
+ if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['team_youtube'][0])){
1879
+ $sameas[] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['team_youtube'][0];
1880
  }
1881
  if($sameas){
1882
  $input1['reviewedBy']['sameAs'] = $sameas;
1883
  }
1884
 
1885
+ if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['reviewer_image'])){
1886
+ $input1['reviewedBy']['image'] = $custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['reviewer_image'];
1887
  }
1888
 
1889
+ if(!empty($custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['alumniof'][0])){
1890
+ $str = $custom_fields['saswp_creativework_reviewedby_global_mapping']['custom_fields']['alumniof'][0];
 
 
 
 
1891
  $itemlist = explode(",", $str);
1892
  foreach ($itemlist as $key => $list){
1893
  $vnewarr['@type'] = 'Organization';
2033
  $input1['author']['description'] = $custom_fields['saswp_photograph_author_global_mapping']['description'];
2034
  }
2035
 
2036
+ if(!empty($custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['honorificsuffix'][0])){
2037
+ $input1['author']['honorificSuffix'] = $custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['honorificsuffix'][0];
 
 
 
 
 
 
 
 
 
2038
  }
2039
 
2040
+ if(!empty($custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['knowsabout'][0])){
2041
+ $input1['author']['knowsAbout'] = explode(',', $custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['knowsabout'][0]);
2042
  }
2043
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2044
  $sameas = array();
2045
+ if(!empty($custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['team_facebook'][0])){
2046
+ $sameas[] = $custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['team_facebook'][0];
2047
  }
2048
 
2049
+ if(!empty($custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['team_twitter'][0])){
2050
+ $sameas[] = $custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['team_twitter'][0];
2051
  }
2052
 
2053
+ if(!empty($custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['team_linkedin'][0])){
2054
+ $sameas[] = $custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['team_linkedin'][0];
2055
  }
2056
 
2057
+ if(!empty($custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['team_instagram'][0])){
2058
+ $sameas[] = $custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['team_instagram'][0];
2059
  }
2060
 
2061
+ if(!empty($custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['team_youtube'][0])){
2062
+ $sameas[] = $custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['team_youtube'][0];
2063
  }
2064
  if($sameas){
2065
  $input1['author']['sameAs'] = $sameas;
2066
  }
2067
 
2068
 
2069
+ if(!empty($custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['college_logo'][0])){
2070
+ $input1['author']['image'] = wp_get_attachment_image_url($custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['college_logo'][0]);
2071
  }
2072
 
2073
+ if(!empty($custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['alumniof'][0])){
2074
+ $str = $custom_fields['saswp_photograph_author_global_mapping']['custom_fields']['alumniof'][0];
 
 
 
 
2075
  $itemlist = explode(",", $str);
2076
  foreach ($itemlist as $key => $list){
2077
  $vnewarr['@type'] = 'Organization';
2150
  $input1['reviewedBy']['description'] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['description'];
2151
  }
2152
 
2153
+ if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['honorificsuffix'][0])){
2154
+ $input1['reviewedBy']['honorificSuffix'] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['honorificsuffix'][0];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2155
  }
2156
 
2157
+ if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['knowsabout'][0])){
2158
+ $input1['reviewedBy']['knowsAbout'] = explode(',', $custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['knowsabout'][0]);
2159
  }
2160
 
2161
  $sameas = array();
2162
+ if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['team_facebook'][0])){
2163
+ $sameas[] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['team_facebook'][0];
2164
  }
2165
 
2166
+ if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['team_twitter'][0])){
2167
+ $sameas[] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['team_twitter'][0];
2168
  }
2169
 
2170
+ if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['team_linkedin'][0])){
2171
+ $sameas[] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['team_linkedin'][0];
2172
  }
2173
 
2174
+ if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['team_instagram'][0])){
2175
+ $sameas[] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['team_instagram'][0];
2176
  }
2177
 
2178
+ if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['team_youtube'][0])){
2179
+ $sameas[] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['team_youtube'][0];
2180
  }
2181
  if($sameas){
2182
  $input1['reviewedBy']['sameAs'] = $sameas;
2183
  }
2184
 
2185
+ if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['reviewer_image'])){
2186
+ $input1['reviewedBy']['image'] = $custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['reviewer_image'];
2187
  }
2188
 
2189
+ if(!empty($custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['alumniof'][0])){
2190
+ $str = $custom_fields['saswp_photograph_reviewedby_global_mapping']['custom_fields']['alumniof'][0];
 
 
 
 
2191
  $itemlist = explode(",", $str);
2192
  foreach ($itemlist as $key => $list){
2193
  $vnewarr['@type'] = 'Organization';
2529
  $input1['author']['description'] = $custom_fields['saswp_blogposting_author_global_mapping']['description'];
2530
  }
2531
 
2532
+ if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['honorificsuffix'][0])){
2533
+ $input1['author']['honorificsuffix'] = $custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['honorificsuffix'][0];
 
 
 
 
2534
  }
2535
 
2536
+ if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['knowsabout'][0])){
2537
+ $input1['author']['knowsabout'] = explode(',', $custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['knowsabout'][0]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2538
  }
2539
 
2540
  $sameas = array();
2541
+ if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['team_facebook'][0])){
2542
+ $sameas[] = $custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['team_facebook'][0];
2543
  }
2544
 
2545
+ if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['team_twitter'][0])){
2546
+ $sameas[] = $custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['team_twitter'][0];
2547
  }
2548
 
2549
+ if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['team_linkedin'][0])){
2550
+ $sameas[] = $custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['team_linkedin'][0];
2551
  }
2552
 
2553
+ if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['team_instagram'][0])){
2554
+ $sameas[] = $custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['team_instagram'][0];
2555
  }
2556
 
2557
+ if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['team_youtube'][0])){
2558
+ $sameas[] = $custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['team_youtube'][0];
2559
  }
2560
  if($sameas){
2561
  $input1['author']['sameAs'] = $sameas;
2562
  }
2563
 
2564
+ if(!empty($custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['alumniof'][0])){
2565
+ $str = $custom_fields['saswp_blogposting_author_global_mapping']['custom_fields']['alumniof'][0];
 
 
 
 
 
 
 
 
 
2566
  $itemlist = explode(",", $str);
2567
  foreach ($itemlist as $key => $list){
2568
  $vnewarr['@type'] = 'Organization';
2613
  if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['description'])){
2614
  $input1['reviewedBy']['description'] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['description'];
2615
  }
2616
+
2617
+ if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['honorificsuffix'][0])){
2618
+ $input1['reviewedBy']['honorificSuffix'] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['honorificsuffix'][0];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2619
  }
2620
 
2621
+ if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['knowsabout'][0])){
2622
+ $input1['reviewedBy']['knowsAbout'] = explode(',', $custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['knowsabout'][0]);
2623
  }
2624
 
2625
  $sameas = array();
2626
+ if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['team_facebook'][0])){
2627
+ $sameas[] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['team_facebook'][0];
2628
  }
2629
 
2630
+ if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['team_twitter'][0])){
2631
+ $sameas[] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['team_twitter'][0];
2632
  }
2633
 
2634
+ if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['team_linkedin'][0])){
2635
+ $sameas[] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['team_linkedin'][0];
2636
  }
2637
 
2638
+ if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['team_instagram'][0])){
2639
+ $sameas[] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['team_instagram'][0];
2640
  }
2641
 
2642
+ if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['team_youtube'][0])){
2643
+ $sameas[] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['team_youtube'][0];
2644
  }
2645
  if($sameas){
2646
  $input1['reviewedBy']['sameAs'] = $sameas;
2647
  }
2648
 
2649
+ if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['reviewer_image'])){
2650
+ $input1['reviewedBy']['image'] = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['reviewer_image'];
 
 
 
 
2651
  }
2652
 
2653
+ if(!empty($custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['alumniof'][0])){
2654
+ $str = $custom_fields['saswp_blogposting_reviewedby_global_mapping']['custom_fields']['alumniof'][0];
2655
  $itemlist = explode(",", $str);
2656
  foreach ($itemlist as $key => $list){
2657
  $vnewarr['@type'] = 'Organization';
2940
  $input1['description'] = wp_strip_all_tags(strip_shortcodes( $custom_fields['saswp_webpage_description'] )) ;
2941
  }
2942
 
 
 
 
 
2943
  if(isset($custom_fields['saswp_webpage_last_reviewed'])){
2944
  $input1['lastReviewed'] = $custom_fields['saswp_webpage_last_reviewed'];
2945
  }
2985
  $input1['mainEntity']['publisher']['logo'] = $custom_fields['saswp_webpage_organization_logo'];
2986
  $input1['mainEntity']['publisher']['name'] = $custom_fields['saswp_webpage_organization_name'];
2987
  }
2988
+
2989
+ if(!empty($custom_fields['saswp_webpage_reviewed_by'])){
2990
+ $input1['reviewedBy'] = array();
2991
+ if(!empty($custom_fields['saswp_webpage_reviewed_by'])){
2992
+ $input1['reviewedBy']['@type'] = "Person";
2993
+ }
2994
+ if(!empty($custom_fields['saswp_webpage_reviewed_by']['custom_fields'])){
2995
+ $fields_name = $custom_fields['saswp_webpage_reviewed_by']['custom_fields'];
2996
+ }else{
2997
+ $fields_name = "";
2998
+ }
2999
+
3000
+ if(!empty($custom_fields['saswp_webpage_reviewed_by']['name'])){
3001
+ $input1['reviewedBy']['name'] = $custom_fields['saswp_webpage_reviewed_by']['name'];
3002
+ }
3003
+
3004
+ if(!empty($custom_fields['saswp_webpage_reviewed_by']['url'])){
3005
+ $input1['url'] = $custom_fields['saswp_webpage_reviewed_by']['url'];
3006
+ }
3007
+
3008
+ if(!empty($custom_fields['saswp_webpage_reviewed_by']['description'])){
3009
+ $input1['description'] = $custom_fields['saswp_webpage_reviewed_by']['description'];
3010
+ }
3011
+
3012
+ if(!empty($fields_name['honorificsuffix'][0])){
3013
+ $input1['reviewedBy']['honorificSuffix'] = $fields_name['honorificsuffix'][0];
3014
+ }
3015
+
3016
+ if(!empty($fields_name['knowsabout'][0])){
3017
+ $input1['reviewedBy']['knowsAbout'] = explode(',',$fields_name['knowsabout'][0]);
3018
+ }
3019
+
3020
+ if(!empty($fields_name['reviewer_bio'][0])){
3021
+ $input1['reviewedBy']['description'] = $fields_name['reviewer_bio'][0];
3022
+ }
3023
+
3024
+ $sameas = array();
3025
+ if(!empty($fields_name['team_facebook'][0])){
3026
+ $sameas[] = $fields_name['team_facebook'][0];
3027
+ }
3028
+
3029
+ if(!empty($fields_name['team_twitter'][0])){
3030
+ $sameas[] = $fields_name['team_twitter'][0];
3031
+ }
3032
+
3033
+ if(!empty($fields_name['team_linkedin'][0])){
3034
+ $sameas[] = $fields_name['team_linkedin'][0];
3035
+ }
3036
+
3037
+ if(!empty($fields_name['team_instagram'][0])){
3038
+ $sameas[] = $fields_name['team_instagram'][0];
3039
+ }
3040
+
3041
+ if(!empty($fields_name['team_youtube'][0])){
3042
+ $sameas[] = $fields_name['team_youtube'][0];
3043
+ }
3044
+ if($sameas){
3045
+ $input1['reviewedBy']['sameAs'] = $sameas;
3046
+ }
3047
+
3048
+ if(!empty($fields_name['reviewer_image'])){
3049
+ $input1['reviewedBy']['image'] = $fields_name['reviewer_image'];
3050
+ }
3051
+
3052
+ if(!empty($fields_name['alumniof'][0])){
3053
+ $str = $fields_name['alumniof'][0];
3054
+ $itemlist = explode(",", $str);
3055
+ foreach ($itemlist as $key => $list){
3056
+ $vnewarr['@type'] = 'Organization';
3057
+ $vnewarr['Name'] = $list;
3058
+ $input1['reviewedBy']['alumniOf'][] = $vnewarr;
3059
+ }
3060
+ }
3061
+
3062
+ }
3063
 
3064
  break;
3065
 
3336
  $input1['author']['description'] = $custom_fields['saswp_tech_article_author_global_mapping']['description'];
3337
  }
3338
 
3339
+ if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['honorificsuffix'][0])){
3340
+ $input1['author']['honorificSuffix'] = $custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['honorificsuffix'][0];
 
 
 
 
 
 
 
 
 
 
 
 
 
3341
  }
3342
 
3343
+ if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['knowsabout'][0])){
3344
+ $input1['author']['knowsAbout'] = explode(',', $custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['knowsabout'][0]);
3345
+ }
 
 
 
 
 
 
 
 
3346
 
3347
  $sameas = array();
3348
+ if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['team_facebook'][0])){
3349
+ $sameas[] = $custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['team_facebook'][0];
3350
  }
3351
 
3352
+ if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['team_twitter'][0])){
3353
+ $sameas[] = $custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['team_twitter'][0];
3354
  }
3355
 
3356
+ if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['team_linkedin'][0])){
3357
+ $sameas[] = $custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['team_linkedin'][0];
3358
  }
3359
 
3360
+ if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['team_instagram'][0])){
3361
+ $sameas[] = $custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['team_instagram'][0];
3362
  }
3363
 
3364
+ if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['team_youtube'][0])){
3365
+ $sameas[] = $custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['team_youtube'][0];
3366
  }
3367
  if($sameas){
3368
  $input1['author']['sameAs'] = $sameas;
3369
  }
3370
+ if(!empty($custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['alumniof'][0])){
3371
+ $str = $custom_fields['saswp_tech_article_author_global_mapping']['custom_fields']['alumniof'][0];
 
 
 
 
 
 
 
 
 
 
3372
  $itemlist = explode(",", $str);
3373
  foreach ($itemlist as $key => $list){
3374
  $vnewarr['@type'] = 'Organization';
3448
  if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['url'])){
3449
  $input1['reviewedBy']['url'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['url'];
3450
  }
 
3451
  if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['description'])){
3452
  $input1['reviewedBy']['description'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['description'];
3453
  }
3454
 
3455
+ if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['honorificsuffix']['custom_fields'][0])){
3456
+ $input1['reviewedBy']['honorificSuffix'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['honorificsuffix'][0];
3457
  }
3458
 
3459
+ if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['knowsabout'][0])){
3460
+ $input1['reviewedBy']['knowsAbout'] = explode(',', $custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['knowsabout'][0]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3461
  }
3462
 
3463
  $sameas = array();
3464
+ if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['team_facebook'][0])){
3465
+ $sameas[] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['team_facebook'][0];
3466
  }
3467
 
3468
+ if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['team_twitter'][0])){
3469
+ $sameas[] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['team_twitter'][0];
3470
  }
3471
 
3472
+ if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['team_linkedin'][0])){
3473
+ $sameas[] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['team_linkedin'][0];
3474
  }
3475
 
3476
+ if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['team_instagram'][0])){
3477
+ $sameas[] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['team_instagram'][0];
3478
  }
3479
 
3480
+ if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['team_youtube'][0])){
3481
+ $sameas[] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['team_youtube'][0];
3482
  }
3483
  if($sameas){
3484
  $input1['reviewedBy']['sameAs'] = $sameas;
3485
  }
3486
 
3487
+ if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['reviewer_image'])){
3488
+ $input1['reviewedBy']['image'] = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['reviewer_image'];
 
 
 
 
3489
  }
3490
 
3491
+ if(!empty($custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['alumniof'][0])){
3492
+ $str = $custom_fields['saswp_tech_article_reviewedby_global_mapping']['custom_fields']['alumniof'][0];
3493
  $itemlist = explode(",", $str);
3494
  foreach ($itemlist as $key => $list){
3495
  $vnewarr['@type'] = 'Organization';
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.104
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -121,6 +121,17 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
121
 
122
  == Changelog ==
123
 
 
 
 
 
 
 
 
 
 
 
 
124
  = 1.9.104 (11 Nov 2022) =
125
 
126
  * Added: Need to create an About option in the Artical Schema.. #1761
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
 
122
  == Changelog ==
123
 
124
+ = 1.9.105 (28 Nov 2022) =
125
+
126
+ * Fixed: php-8-deprecated-required-parameter #1781
127
+ * Added: Non-critical warning appears when the video is added via a custom block. #1780
128
+ * Fixed: After adding the featured image to the RSS feed, it is not working. #1774
129
+ * Fixed: While using the YouTube video, there is an issue with the schema and it is found in the Query Monitor plugin. #1771
130
+ * Enhancement: Need to add some property in the product scheme. #1778
131
+ * Added: Getting the errors video page indexing on Google search console #1783
132
+ * Added: Getting error notice when embeddeding a Vimeo/Youtube video #1784
133
+ * Enhancement: BFCM internal offer #1786
134
+
135
  = 1.9.104 (11 Nov 2022) =
136
 
137
  * Added: Need to create an About option in the Artical Schema.. #1761
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.104
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.104');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
@@ -76,6 +76,12 @@ if ( ! function_exists('saswp_non_amp') ){
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
  require_once SASWP_DIR_NAME .'/output/location.php';
80
  require_once SASWP_DIR_NAME.'/admin_section/fields-generator.php';
81
  require_once SASWP_DIR_NAME.'/admin_section/newsletter.php';
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
  // 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__));
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';