Changeset 2318127
- Timestamp:
- 06/04/2020 12:52:57 PM (6 years ago)
- Location:
- netreviews/trunk
- Files:
-
- 10 edited
-
api_functions.php (modified) (2 diffs)
-
changelog.txt (modified) (1 diff)
-
functions.php (modified) (1 diff)
-
includes/av_backoffice.php (modified) (1 diff)
-
includes/css/netreviews-style-2017.css (modified) (10 diffs)
-
includes/js/av_product_tab.js (modified) (2 diffs)
-
includes/review_Pagination.php (modified) (4 diffs)
-
includes/templates/templateV1.php (modified) (2 diffs)
-
includes/templates/templateV2.php (modified) (3 diffs)
-
netreviews.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
netreviews/trunk/api_functions.php
r2294433 r2318127 11 11 if (ntav_check_isApiActive() == false) { 12 12 return array( 13 'debug' => 'Module Disabled ',13 'debug' => 'Module Disabled. Check if module is active in its tab configuration in Wordpress Back Office.', 14 14 'return' => 2, //Module désactivé 15 15 'query' => 'isActive' … … 470 470 //$explode_secret_key = explode('-',$this->secretkey); 471 471 $temp = array( 472 'Version_ PS' => ntav_getConfig('WCVERSION','non'),472 'Version_Woocommerce' => ntav_getConfig('WCVERSION','non'), 473 473 'Version_WP' => $wp_version, 474 474 'Version_Module' => ntav_getConfig('MODVERSION','non'), -
netreviews/trunk/changelog.txt
r2299077 r2318127 1 Version: 2.3.2 / 22/05/2020 2 - Uninstall tables when uninstall hook instead of deactivation hook 3 - Select template if not chosen 4 1 5 Version: 2.3.1 / 05/05/2020 2 6 - Fix override of datepicker format date in Back-Office manual export -
netreviews/trunk/functions.php
r2299077 r2318127 5 5 function ntav_update_version_plugin() 6 6 { 7 ntav_updateValue('MODVERSION', '2.3. 1');7 ntav_updateValue('MODVERSION', '2.3.2'); 8 8 } 9 9 -
netreviews/trunk/includes/av_backoffice.php
r2299077 r2318127 107 107 $enableMedia = ntav_getConfig('MEDIADISPLAY','non'); 108 108 109 if(!ntav_getConfig('DESIGN_PRODUCT_PAGE','non') && !ntav_getConfig('TEMPLATE_PRODUCT_PAGE','non')){109 if(!ntav_getConfig('DESIGN_PRODUCT_PAGE','non')){ 110 110 ntav_updateValue('DESIGN_PRODUCT_PAGE',1,NULL,NULL); 111 } 112 113 if(!ntav_getConfig('TEMPLATE_PRODUCT_PAGE','non')){ 111 114 ntav_updateValue('TEMPLATE_PRODUCT_PAGE',1,NULL,NULL); 112 115 } -
netreviews/trunk/includes/css/netreviews-style-2017.css
r2299077 r2318127 100 100 } 101 101 102 .woocommerce-product-rating.netreviews-product-rating > span{ 103 display: flex !important; 104 } 105 102 106 .netreviews-product-rating span > div.netreviews_bg_stars_big.headerStars{ 103 107 line-height: 17px !important; … … 189 193 190 194 .netreviewsProductWidgetNewLogo{ 191 position: absolute ;192 top: 0 ;193 left: 0 ;194 width: 65px ;195 height: 65px ;196 border: none ;197 outline: 0 ;195 position: absolute !important; 196 top: 0 !important; 197 left: 0 !important; 198 width: 65px !important; 199 height: 65px !important; 200 border: none !important; 201 outline: 0 !important; 198 202 } 199 203 … … 290 294 291 295 .av_product_award img#sceau{ 292 position: absolute ;293 right: -12px ;294 top: -10px ;295 width: 90px ;296 position: absolute !important; 297 right: -12px !important; 298 top: -10px !important; 299 width: 90px !important; 296 300 } 297 301 … … 501 505 502 506 .netreviews_tpl_v1 .netreviews_logo { 503 position: absolute ;504 top: 20px ;505 left: 15px ;506 width: 200px ;507 height: auto ;507 position: absolute !important; 508 top: 20px !important; 509 left: 15px !important; 510 width: 200px !important; 511 height: auto !important; 508 512 } 509 513 … … 646 650 left: 0; 647 651 text-align: center; 648 font-size: 1 6px;652 font-size: 13px; 649 653 } 650 654 … … 1261 1265 1262 1266 .netreviews_tpl_v2 .netreviews_logo { 1263 width: 200px ;1264 height: 40px 1267 width: 200px !important; 1268 height: 40px !important; 1265 1269 } 1266 1270 1267 1271 .netreviews_tpl_v2 .netreviews_logo #netreviews_logo_img { 1268 width: 100% ;1269 height: auto 1272 width: 100% !important; 1273 height: auto !important; 1270 1274 } 1271 1275 … … 1420 1424 } 1421 1425 1422 .netreviews_tpl_v2 .display {1426 .netreviews_tpl_v2 .displayAVBtn { 1423 1427 vertical-align: sub 1424 1428 } … … 1586 1590 1587 1591 .netreviews_tpl_v2 #netreviews_reviews_section { 1588 display: inline-block;1592 display: block; 1589 1593 } 1590 1594 … … 2119 2123 } 2120 2124 .netreviews_tpl_v2 .netreviews_logo { 2121 display: block ;2122 margin: 5px auto ;2123 top: 0 2125 display: block !important; 2126 margin: 5px auto !important; 2127 top: 0 !important; 2124 2128 } 2125 2129 .netreviews_tpl_v2 .netreviews_certification { … … 2161 2165 @media screen and (max-width:440px) { 2162 2166 .netreviews_tpl_v2 .netreviews_logo img{ 2163 width: 80% ;2167 width: 80% !important; 2164 2168 } 2165 2169 .netreviews_tpl_v2 .netreviews_rating_content{ -
netreviews/trunk/includes/js/av_product_tab.js
r2294433 r2318127 133 133 var rate = ''; 134 134 var wpmlLang = $avjq("#wpml_Lang").val(); 135 135 var templateVersion = $avjq("#templateVersion").val(); 136 136 137 137 // Si on filtre actuellement par note … … 149 149 url: urlAjax, 150 150 type: "GET", 151 data: { pagination : page, product_id : idProd, tri_avis: tri_avis, rate: rate, nrLang : wpmlLang },151 data: { pagination : page, product_id : idProd, tri_avis: tri_avis, rate: rate, nrLang : wpmlLang, tpl: templateVersion}, 152 152 success: function(html){ 153 153 -
netreviews/trunk/includes/review_Pagination.php
r2294433 r2318127 10 10 $helpfulOption = ntav_getConfig('HELPFULOPTION', 'non'); 11 11 $mediaDisplay = ntav_getConfig('MEDIADISPLAY', 'non'); 12 $ chosenTemplate= ntav_getConfig('TEMPLATE_PRODUCT_PAGE', 'non');12 $templateVersion = ntav_getConfig('TEMPLATE_PRODUCT_PAGE', 'non'); 13 13 14 14 $output = json_decode(json_encode($reviews), true); … … 94 94 </div> 95 95 <div class="netreviews_review_part"> 96 <?php if ($ chosenTemplate== '1') { ?>96 <?php if ($templateVersion == '1') { ?> 97 97 98 98 <p class="netreviews_customer_name"><?php echo urldecode($review['customer_name']); ?> … … 154 154 <?php } ?> 155 155 156 <?php } elseif ($ chosenTemplate== '2') { ?>156 <?php } elseif ($templateVersion == '2') { ?> 157 157 158 158 <div class="netreviews_stars_rate"> … … 256 256 } ?> 257 257 258 <?php if ($ chosenTemplate== '2' && $helpfulOption == 'yes') { ?>258 <?php if ($templateVersion == '2' && $helpfulOption == 'yes') { ?> 259 259 <div class="netreviews_helpful_block"><?php echo __('Was this review helpful ?', 'av'); ?> 260 260 <a href="javascript:" class="netreviewsVote" data-review-id="<?php echo $idProduitCible; ?>" -
netreviews/trunk/includes/templates/templateV1.php
r2294433 r2318127 27 27 <input type="hidden" id="avisVarifiesAjaxUrl" value="<?php echo $avisAjaxUrl ?>"/> 28 28 <input type="hidden" id="wpml_Lang" value = "<?php echo $my_current_lang?>"/> 29 29 <input type="hidden" id="templateVersion" value = "<?php echo $templateVersion?>"/> 30 30 31 31 <!-- netreviews tab --> … … 159 159 data-page="1" data-page-last=" <?php echo $maxPages ?>" 160 160 onclick="javascript:paginationReviews(event);"> 161 <span class="display "><?php _e('More reviews', 'av'); ?></span>161 <span class="displayAVBtn"><?php _e('More reviews', 'av'); ?></span> 162 162 </a> 163 163 </div> -
netreviews/trunk/includes/templates/templateV2.php
r2294433 r2318127 28 28 <input type="hidden" id="avisVarifiesAjaxUrl" value="<?php echo $avisAjaxUrl ?>"/> 29 29 <input type="hidden" id="wpml_Lang" value = "<?php echo $my_current_lang?>"/> 30 <input type="hidden" id="templateVersion" value = "<?php echo $templateVersion?>"/> 30 31 31 32 <div id="netreviews_reviews_tab" class="netreviews_tpl_v2"> … … 138 139 <div class="netreviews_all_reviews"> 139 140 <div onclick="refreshReviewsWithFilter('newest')"> 140 <span class="display "><?php _e('All the reviews', 'av'); ?></span>141 <span class="displayAVBtn"><?php _e('All the reviews', 'av'); ?></span> 141 142 <i class="netreviews_arrow_up"></i> 142 143 </div> … … 182 183 <div class="netreviews_button" data-idProd="<?php echo $id_product ?>" id="av_load_next_page" 183 184 data-page="1" data-page-last="<?php echo $maxPages ?>" onclick="paginationReviews(event);"> 184 <span class="display "><?php _e('Display more reviews', 'av'); ?></span>185 <span class="displayAVBtn"><?php _e('Display more reviews', 'av'); ?></span> 185 186 <i class="netreviews_arrow_down"></i> 186 187 </div> -
netreviews/trunk/netreviews.php
r2299077 r2318127 9 9 * Description: We provide you with a solution that enables you to collect customer reviews about your website and products which will show on your 10 10 * website and on a attestation which will increase the credibility of published reviews. 11 * Version: 2.3. 111 * Version: 2.3.2 12 12 * Author: NetReviews SAS <contact@avis-verifies.com> 13 13 * Author URI: www.avis-verifies.com … … 18 18 19 19 20 21 20 if (!defined('ABSPATH')) exit; // Exit if accessed directly 22 21 … … 30 29 ////////////////////////////////// INSTALLATION | ACTIVATION ////////////////////////////////////////// 31 30 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 32 33 31 34 32 /** … … 219 217 } 220 218 221 // DEACTIVATIONHOOK222 register_ deactivation_hook(__FILE__, 'ntav_netreviews_plugin_deactivate');223 function ntav_netreviews_plugin_ deactivate()219 // UNINSTALL HOOK 220 register_uninstall_hook(__FILE__, 'ntav_netreviews_plugin_uninstall'); 221 function ntav_netreviews_plugin_uninstall() 224 222 { 225 223 ntav_uninstall_db_av(); … … 469 467 } 470 468 471 if (ntav_getConfig('OUR_PRODUCT_RATING',$my_current_lang) == 1 && ntav_getConfig('OUR_PRODUCT_RICHSNIP',$my_current_lang) == 1 && ntav_getConfig('TYPE_SNIPPET',$my_current_lang) == 'jsonld') {472 add_action('wp_footer', 'ntav_netreviews_jsonld_product');473 }474 475 469 // fonction rajoutant les rich snippet produit sous format json ld 476 470 function ntav_netreviews_jsonld_product($product = null){ … … 595 589 596 590 $count = ntav_get_netreviews_count($id_product,$my_current_lang); 591 592 if (ntav_getConfig('OUR_PRODUCT_RATING',$my_current_lang) == 1 && ntav_getConfig('OUR_PRODUCT_RICHSNIP',$my_current_lang) == 1 && ntav_getConfig('TYPE_SNIPPET',$my_current_lang) == 'jsonld') { 593 ntav_netreviews_jsonld_product(); 594 } 597 595 598 596 if (ntav_getConfig('IS_ACTIVE','non') == 1 && $count >= 1) {
Note: See TracChangeset
for help on using the changeset viewer.