Plugin Directory

Changeset 2955694


Ignore:
Timestamp:
08/19/2023 12:14:25 PM (3 years ago)
Author:
matthewrubin
Message:

Compatible with latest WP

Location:
review-manager
Files:
98 added
5 edited

Legend:

Unmodified
Added
Removed
  • review-manager/trunk/admin/setting.php

    r2860756 r2955694  
    228228           
    229229            <tr class="alternate">
    230                 <td width="35%" class="import-system row-title"><?php _e('Please Choose URL Type for Data Collection', 'mryrm') ?></td>         
    231                 <td class="desc">
    232                     <select name="mryrm_url_type" id="mryrm_url_type" class="large-text">                       
     230                <td width="35%" class="import-system row-title"><?php _e('Please Choose URL Type for Data Collection', 'mrylm') ?></td>         
     231                <td class="desc">
     232                    <select name="mryrm_url_type" id="mrylm_url_type" class="large-text">                       
    233233                        <option value="file_get_content" <?php if(isset($mryrm_setting) &&  $mryrm_setting->mryrm_url_type == 'file_get_content') { echo 'selected="selected"'; } ?>>File Get Content</option>
    234234                        <option value="wp_remote_get" <?php if(isset($mryrm_setting) &&  $mryrm_setting->mryrm_url_type == 'wp_remote_get') { echo 'selected="selected"'; } ?>>WP Remote Get</option>
  • review-manager/trunk/assets/js/owl.carousel.min.js

    r2828388 r2955694  
    77animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype._next=function(d){this._call=b.setTimeout(a.proxy(this._next,this,d),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||c.hidden||this._core.next(d||this._core.settings.autoplaySpeed)},e.prototype.read=function(){return(new Date).getTime()-this._time},e.prototype.play=function(c,d){var e;this._core.is("rotating")||this._core.enter("rotating"),c=c||this._core.settings.autoplayTimeout,e=Math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.clearTimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.setTimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,b.clearTimeout(this._call),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.clearTimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a('<button role="button">').addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d,e;e=this._core.settings;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)"$relative"===b&&e.navContainer?this._controls[b].html(""):this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
    88                                                                                                           
    9                                                                                                             var owl = jQuery("#mrm-testimonial-carousel");
     9var owl = jQuery("#mrm-testimonial-carousel");
    1010owl.owlCarousel({
    1111    loop: true,
  • review-manager/trunk/include/function.php

    r2828388 r2955694  
    2121    if($mryrm_setting->is_abc){
    2222       
    23         if($content == 'home'){
     23        if($content == 'caregiver'){
     24            return mryrm_abc_front_testimonial($mryrm_setting, $type, $location, 'Caregivers');
     25        }else {
    2426            return mryrm_abc_front_testimonial($mryrm_setting, $type, $location, 'Clients');
    25         }else if($content == 'caregiver'){
    26             return mryrm_abc_front_testimonial($mryrm_setting, $type, $location, 'Caregivers');
    27         }else{
    28             return mryrm_abc_testimonial($mryrm_setting,  $type, $location);
    2927        }
    3028       
    3129    }else{
    3230       return mryrm_testimonial($mryrm_setting, $type, $location);       
    33     }   
     31    } 
     32   
    3433}
    3534
    3635/* NON ABC START */
     36
    3737function mryrm_testimonial($mryrm_setting, $type = null, $location = null){     
    3838   
     
    213213        return $mryrm_data;
    214214}
     215
    215216/* NON ABC END */
    216217
     218
     219
    217220/* ABC NEW FRONT START */
     221
    218222function mryrm_abc_front_testimonial($mryrm_setting, $type = null, $location = null, $reviewer = null){   
    219223    // getting review from feed store
     
    221225    return mryrm_view_front_testimonial($mryrm_reviews, $mryrm_setting, $type, $location, $reviewer);   
    222226}
    223 
    224227
    225228function mryrm_view_front_testimonial($mryrm_reviews, $mryrm_setting, $type = null, $location = null, $reviewer = null) {
     
    240243    ?>
    241244   
    242     <style type="text/css">
    243     </style>   
    244245    <div class="rm-wrap" itemscope="" itemtype="http://schema.org/LocalBusiness">
    245246       
     
    437438   
    438439}
     440
    439441/* ABC NEW FRONT END */
    440442
    441 /* ABC OLD AND ABC NEW LM PAGE START */
    442 function mryrm_abc_testimonial($mryrm_setting, $type = null, $location = null){
    443    
    444     $mryrm_reviews = mryrm_abc_website_reviews($mryrm_setting, $type, $location); 
    445     return mryrm_view_testimonial($mryrm_reviews, $mryrm_setting, $type, $location);
    446 }
    447 
    448 function mryrm_abc_website_reviews($mryrm_setting, $type = null, $location = null) {
    449 
    450     global $wpdb;   
    451 
    452     // getting review from feed store
    453     $mryrm_feed_reviews = mryrm_review_feed_data($type, $location);
    454 
    455     // getting review from testimonial   
    456     $mryrm_site_reviews = array();
    457    
    458     if(empty($mryrm_feed_reviews)){
    459         $mryrm_sql = "SELECT * FROM " . $wpdb->posts. " where post_type='testimonial' and post_status='publish' LIMIT 0,30";
    460         $mryrm_results = $wpdb->get_results($mryrm_sql);
    461         foreach ($mryrm_results as $obj) {
    462 
    463             $ob = new StdClass();
    464             $mryrm_author = get_post_meta($obj->ID, 'testimonial-title', true);
    465             $mryrm_location = get_post_meta($obj->ID, 'testimonial-location', true);
    466             $mryrm_rating = get_post_meta($obj->ID, 'testimonial-rating', true);
    467 
    468             $ob->date_time = trim($obj->post_date);
    469             $ob->reviewer_name = trim($mryrm_author);
    470             $ob->review_rating = $mryrm_rating ? $mryrm_rating : 5;
    471             $ob->review_text = trim($obj->post_content);
    472             $ob->source = '';
    473             $ob->city = trim($mryrm_location);
    474             $ob->state = '';
    475             $ob->review_title = $ob->reviewer_name;
    476             $mryrm_site_reviews[] = $ob;
    477         }
    478     }
    479    
    480     $mryrm_reviews = array_merge($mryrm_feed_reviews, $mryrm_site_reviews);
    481 
    482     // getting review from root site plugins and root site testimonial
    483     if (empty($mryrm_reviews)) {
    484 
    485         //getting review from root testimonial
    486         $mryrm_root_reviews = array();
    487         $mryrm_sql = "SELECT * FROM wp_posts where post_type='testimonial' and post_status='publish' LIMIT 0,30";
    488         $mryrm_results = $wpdb->get_results($mryrm_sql);
    489         foreach ($mryrm_results as $obj) {
    490 
    491             $ob = new StdClass();
    492 
    493             $mryrm_sql_1 = "SELECT * FROM wp_postmeta where post_id=" . $obj->ID . " and meta_key='testimonial-title'";
    494             $mryrm_output_1 = $wpdb->get_results($mryrm_sql_1);
    495             $mryrm_author = $mryrm_output_1[0]->meta_value;
    496 
    497             $mryrm_sql_2 = "SELECT * FROM wp_postmeta where post_id=" . $obj->ID . " and meta_key='testimonial-location'";
    498             $mryrm_output_2 = $wpdb->get_results($mryrm_sql_2);
    499             $mryrm_location = $mryrm_output_2[0]->meta_value;
    500 
    501             $mryrm_sql_3 = "SELECT * FROM wp_postmeta where post_id=" . $obj->ID . " and meta_key='testimonial-rating'";
    502             $mryrm_output_3 = $wpdb->get_results($mryrm_sql_3);
    503             $mryrm_rating = $mryrm_output_3[0]->meta_value;
    504 
    505             $ob->date_time = trim($obj->post_date);
    506             $ob->reviewer_name = trim($mryrm_author);
    507             $ob->review_rating = $mryrm_rating;
    508             $ob->review_text = trim($obj->post_content);
    509             $ob->source = '';
    510             $ob->city = trim($mryrm_location);
    511             $ob->state = '';
    512             $ob->review_title = $ob->reviewer_name;
    513             $mryrm_root_reviews[] = $ob;
    514         }
    515 
    516         $mryrm_reviews = $mryrm_root_reviews;
    517     }
    518  
    519     return $mryrm_reviews;     
    520 }
    521 /* ABC OLD AND ABC NEW LM PAGE END */
    522 
    523 
    524 /* ABC OLD AND ABC LM SLIDER START */
    525 function mryrm_view_testimonial($mryrm_reviews, $mryrm_setting, $type = null, $location =null) {
    526  
    527     $mryrm_rating = array();
    528     $mryrm_keywords = explode(',', rtrim($mryrm_setting->review_keyword, ','));
    529     $mryrm_total_keyword = count($mryrm_keywords);
    530     $mryrm_counter = 0;
    531    
    532     if(empty($mryrm_reviews)){
    533         echo "<p>No Review data found.</p>";
    534         return;
    535     }
    536    
    537     ?>
    538     <?php if(!empty($mryrm_setting)){ ?>
    539         <div itemscope="" itemtype="http://schema.org/LocalBusiness"> 
    540     <?php }else{ ?>     
    541         <div>       
    542     <?php }?>   
    543            
    544     <ul>
    545        
    546     <?php
    547     foreach ($mryrm_reviews as $key => $review) {
    548 
    549         $mryrm_rating[] = $review->review_rating;
    550 
    551         $mryrm_counter++;
    552         if ($mryrm_counter == $mryrm_total_keyword) {
    553             $mryrm_counter = 0;
    554         }
    555         $mryrm_keyword = '';
    556         $mryrm_keyword_title = '';
    557         if($review->keyword !=''){
    558             $mryrm_keyword        = $review->keyword ? $review->keyword : '';
    559             $mryrm_keyword_title  = $review->keyword ? $review->keyword .' for '. $review->reviewer_name : '';
    560         }else{
    561             $mryrm_keyword = isset($mryrm_keywords[$mryrm_counter]) ? $mryrm_keywords[$mryrm_counter] : '';
    562             $mryrm_keyword_title = isset($mryrm_keywords[$mryrm_counter]) ? $mryrm_keywords[$mryrm_counter] . ' for ' . $review->reviewer_name : '';
    563         }
    564        
    565         $city_n_state = '';
    566         if ($review->city) {
    567             $city_n_state .= ' ,' . $review->city;
    568         }
    569         if ($review->state) {
    570             $city_n_state .= ' ' . $review->state;
    571         }   
    572         ?>
    573 
    574         <li>
    575        
    576             <div class="quotes-inner" itemprop="Reviews"  itemscope="" itemtype="http://schema.org/Review">
    577                 <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
    578                     <img src="<?php echo plugins_url('review-manager/assets/images/testimonial.png'); ?>" width="176" height="176" alt="">
    579                 </div>
    580                 <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 testimonial-details">
    581                     <h4 itemprop="name"><?php echo $mryrm_keyword_title; ?></h4>
    582                     <div class="rating star-<?php echo $review->review_rating; ?>"></div>
    583 
    584                     <div style="display:none;" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
    585                         <span itemprop="ratingValue"><?php echo $review->review_rating; ?></span>
    586                         <span itemprop="bestRating">5</span>
    587                         <span itemprop="worstRating">1</span>
    588                     </div>
    589 
    590                     <span style="display:none;"  itemprop="itemReviewed" itemscope itemtype="http://schema.org/<?php echo $mryrm_setting->org_type; ?>">
    591                         <div class="rr_review_post_id" itemprop="name" >
    592                             <a href="<?php echo $mryrm_setting->org_url; ?>" itemprop="url"><?php echo $mryrm_keyword; ?></a>
    593                         </div>
    594                     </span>
    595 
    596                     <div style="display:none;" itemprop="author" itemscope itemtype="http://schema.org/Person">
    597                         <span itemprop="name"><?php echo $review->reviewer_name; ?></span>
    598                     </div>
    599 
    600                     <span class="rr_date" style="display:none;">
    601                         <meta itemprop="datePublished" content="<?php echo $review->date_time; ?>">
    602                         <time datetime="<?php echo $review->date_time; ?>"><?php echo date('M j, Y', strtotime($review->date_time)); ?></time>
    603                     </span>
    604                     <div itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
    605                         <span itemprop="name" style="display: none;"><?php echo $review->source ? $review->source : 'ABC'; ?></span>
    606                     </div>
    607                    
    608                     <div class="clearfix"></div>
    609                     <p>
    610                         <?php
    611                         $mryrm_excerpt = $review->review_text;
    612                         $mryrm_excerpt = mryrm_limit_words($mryrm_excerpt, 35);
    613                         echo $mryrm_excerpt;
    614                         ?>...<a href="#testimonial-full-<?php echo $key; ?>" class="viewfull">View Full Testimonial</a>
    615                     </p>
    616                     <cite><strong>-<?php echo $review->reviewer_name; ?></strong> <?php echo $city_n_state; ?></cite>
    617 
    618                     <div id="testimonial-full-<?php echo $key; ?>" class="testimonial-full">
    619                         <img src="<?php echo plugins_url('review-manager/assets/images/testimonial.png'); ?>" width="176" height="176" alt="">
    620                         <h3><?php echo $mryrm_keyword_title; ?></h3>
    621                         <div class="rating star-<?php echo $review->review_rating; ?>"></div>
    622                         <p itemprop="reviewBody"><?php echo $review->review_text; ?></p>
    623                         <p><cite><strong>-<?php echo $review->reviewer_name; ?></strong><?php echo $city_n_state; ?></cite></p>
    624                     </div>                                         
    625                 </div>
    626             </div>             
    627         </li>         
    628         <?php
    629     }
    630 
    631     $mryrm_review_count = count($mryrm_rating);
    632     $mryrm_review_sum = array_sum($mryrm_rating);
    633     $mryrm_avg_rating = $mryrm_review_sum / $mryrm_review_count;
    634    
    635     ?>
    636     </ul>
    637    
    638     <?php if(!empty($mryrm_setting)){ ?>
    639          <meta itemprop="name" content="<?php echo $mryrm_setting->org_name; ?>">
    640          <div itemprop="address" itemscope="" itemtype="http://schema.org/PostalAddress">
    641              <meta itemprop="streetAddress" content="<?php echo $mryrm_setting->org_address_line; ?>">
    642              <meta itemprop="addressLocality" content="<?php echo $mryrm_setting->city; ?>">
    643              <meta itemprop="addressRegion" content="<?php echo $mryrm_setting->state; ?>">
    644              <meta itemprop="postalCode" content="<?php echo $mryrm_setting->org_zipcode; ?>">
    645              <meta itemprop="addressCountry" content="US">
    646          </div>
    647          <meta itemprop="url" content="<?php echo $mryrm_setting->org_url; ?>">
    648          <meta itemprop="logo" content="<?php echo $mryrm_setting->org_logo_url; ?>">
    649          <meta itemprop="image" content="<?php echo $mryrm_setting->org_logo_url; ?>">
    650          <meta itemprop="priceRange" content="$$$">
    651          <meta itemprop="telePhone" content="<?php echo $mryrm_setting->org_phone; ?>">
    652         <div itemprop="AggregateRating" itemscope itemtype="schema.org/AggregateRating">         
    653             <meta itemprop="ratingValue" content="<?php echo $mryrm_avg_rating; ?>.0">
    654             <meta itemprop="bestRating" content="<?php echo max($mryrm_rating); ?>.0">
    655             <meta itemprop="worstRating" content="1.0">
    656             <meta itemprop="reviewCount" content="<?php echo $mryrm_review_count; ?>">                                     
    657             <meta itemprop="name" content="<?php echo $mryrm_setting->org_name; ?>">                                     
    658         </div>
    659     <?php } ?>
    660          
    661     </div>
    662     <?php
    663    
    664 }
    665 /* ABC OLD AND ABC LM SLIDER END */
    666 
    667 
    668 /* COMMON REVIEW DATA START */
     443
     444/* ABC REVIEW DATA START */
     445
    669446function mryrm_review_feed_data($type = null, $location = null) {
    670447             
     
    705482    return implode(" ", array_splice($mryrm_words, 0, $mryrm_word_limit));
    706483}
    707 /* COMMON REVIEW DATA END */
     484
     485/* ABC REVIEW DATA END */
  • review-manager/trunk/readme.txt

    r2860756 r2955694  
    33Tags: review manager, review slider, widget, review, social reviews, html schema tag
    44Requires at least: 3.5.1
    5 Tested up to: 6.1.1
     5Tested up to: 6.3.0
    66Requires PHP: 5.6.0
    7 Stable tag: 1.9.0
     7Stable tag: 2.0.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7474
    7575
    76 
    77 == Upgrade Notice ==
    78 =1.6.0=
    79 Just released the Review Manager® WordPress Plugin new update version 1.6.0
    80  
    81 
    8276== Changelog ==
    8377
    8478=1.9.0
    85 -Function correction.
     79-Compatible with WP latest version. .
    8680
    8781=1.8.0
  • review-manager/trunk/review-manager.php

    r2860756 r2955694  
    1414 * Plugin URI:        https://www.mrmarketingres.com/review-manager
    1515 * Description:       The Review Manager® WordPress plugin extends the functionality of the SaaS Review Manager� to WordPress so that the review feed can be displayed on the WordPress website. The plugin is for customers of Review Manager® that have an active subscription with the company.
    16  * Version:           1.9.0
     16 * Version:           2.0.0
    1717 * Requires at least: 3.5.1
    18  * Tested up to:      6.1.1
     18 * Tested up to:      6.3.0
    1919 * Requires PHP:      5.6.0
    2020 * Author:            matthewrubin
     
    2828if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    2929
    30 define('MRYRM_VERSION', '1.9.0');
     30define('MRYRM_VERSION', '2.0.0');
    3131
    3232define('MRYRM_PLUGIN_DIR', plugin_dir_path(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.