Changeset 1444962
- Timestamp:
- 06/28/2016 01:20:37 PM (10 years ago)
- Location:
- review-builder/trunk
- Files:
-
- 2 added
- 12 edited
-
app.php (modified) (1 diff)
-
assets/core/scripts/sgrbRequestHandler.js (modified) (1 diff)
-
assets/core/styles/css/main-front.css (modified) (3 diffs)
-
assets/core/templates/post_review.php (added)
-
assets/page/img/comment-loader.gif (added)
-
assets/page/scripts/save.js (modified) (5 diffs)
-
assets/page/styles/save.css (modified) (9 diffs)
-
com/config/autoload.php (modified) (2 diffs)
-
com/config/config.php (modified) (1 diff)
-
com/controllers/Comment.php (modified) (2 diffs)
-
com/controllers/Review.php (modified) (10 diffs)
-
com/core/SGRB.php (modified) (1 diff)
-
com/layouts/Review/save.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
review-builder/trunk/app.php
r1443317 r1444962 4 4 * Plugin URI: https://sygnoos.com 5 5 * Description: Review Builder will allow you to add reviews section to your site. Build a reviews section so customers can leave reviews for your products. 6 * Version: 1.0. 56 * Version: 1.0.6 7 7 * Author: Sygnoos 8 8 * Author URI: https://www.sygnoos.com -
review-builder/trunk/assets/core/scripts/sgrbRequestHandler.js
r1442946 r1444962 9 9 this.params = params; 10 10 }; 11 12 11 if(typeof ajaxurl === 'undefined') { 13 ajaxurl = sgrb_ajaxurl; 12 ajaxurl = sgrb_ajaxurl; 13 this.url = ajaxurl; 14 14 } 15 16 15 sgrbRequestHandler.prototype.prepareData = function() { 17 16 this.url = ajaxurl; -
review-builder/trunk/assets/core/styles/css/main-front.css
r1442946 r1444962 1 1 .sgrb-main-wrapper { 2 2 width: 100%; 3 max-width: 700px;4 3 } 5 4 … … 14 13 margin:10px 0px 20px 0px !important; 15 14 width: 100%; 16 max-width: 700px;17 15 padding: 15px !important; 18 16 border-radius:3px !important; … … 56 54 57 55 .sgrb-front-comment-rows input { 58 width: 60%;56 width: 80%; 59 57 height: 27px; 60 58 float: right; -
review-builder/trunk/assets/page/scripts/save.js
r1442946 r1444962 38 38 SGRB.uplodImageButton(); 39 39 if (jQuery('.sgrb-approved-comments-to-show').length) { 40 var commentsPerPage = parseInt(jQuery('.sgrb-comments-per-page').val()); 40 var commentsPerPage = parseInt(jQuery('.sgrb-page-count').val()); 41 if (jQuery('.sgrb-comments-count-load').val()) { 42 commentsPerPage = jQuery('.sgrb-comments-count').val(); 43 } 41 44 SGRB.ajaxPagination(1,0,commentsPerPage); 42 45 } … … 90 93 if (confirm('Are you sure?')) { 91 94 jQuery('input[name=skin-color]').val(''); 92 jQuery('input[name=total-rate-color]').val('');93 95 jQuery('input[name=rate-text-color]').val(''); 94 96 jQuery('input[name=total-rate-background-color]').val(''); … … 339 341 340 342 SGRB.ajaxPagination = function(page,itemsRangeStart,perPage){ 343 if (jQuery('.sgrb-load-it').length) { 344 perPage = parseInt(jQuery('.sgrb-comments-count-load').val()); 345 if (!jQuery('.sgrb-comments-count-load').val()) { 346 perPage = 3; 347 } 348 } 349 341 350 var postId = ''; 342 351 var commentsPerPage = perPage, 343 352 pageCount = jQuery('.sgrb-page-count').val(), 344 353 postId = jQuery('.sgrb-post-id').val(), 345 arr = parseInt(jQuery('.sgrb-current-page').text()), 346 sgrbPrev = jQuery('.sgrb-prev'), 347 sgrbNext = jQuery('.sgrb-next'); 348 349 sgrbNext.on('click', function(){ 350 if (arr >= parseInt(pageCount)) { 351 return; 352 } 353 else { 354 jQuery('.sgrb-current-page').text(parseInt(arr+1)); 355 } 356 357 }); 358 sgrbPrev.on('click', function(){ 359 if (arr <= 1) { 360 return; 361 } 362 jQuery('.sgrb-current-page').text(parseInt(arr-1)); 363 }); 364 354 loadMore = jQuery('.sgrb-comment-load'), 355 arr = parseInt(jQuery('.sgrb-current-page').text()); 356 365 357 var review = jQuery('.sgrb-reviewId').val(); 366 358 var jPageAction = 'Review_ajaxPagination'; 367 359 var ajaxHandler = new sgrbRequestHandler(jPageAction, {review:review,page:page,itemsRangeStart:itemsRangeStart,perPage:perPage,postId:postId}); 368 360 ajaxHandler.dataType = 'html'; 361 jQuery('.sgrb-loading-spinner').show(); 362 jQuery('.sgrb-comment-load').hide(); 369 363 ajaxHandler.callback = function(response){ 364 var obj = jQuery.parseJSON(response); 365 370 366 var commentHtml = ''; 371 367 var prev = parseInt(itemsRangeStart-commentsPerPage); … … 378 374 if (!formBackgroundColor) { 379 375 formBackgroundColor = '#f7f7f7'; 380 } 381 //If success 382 if (prev < 0) { 383 sgrbPrev.attr({ 384 'disabled':'disabled', 385 'style' : 'cursor:default;color:#c1c1c1;vertical-align: text-top;' 386 }); 387 } 388 else { 389 sgrbPrev.removeAttr('disabled style'); 390 sgrbPrev.attr('onclick','SGRB.ajaxPagination('+page+','+prev+','+commentsPerPage+')'); 391 } 392 if (arr >= parseInt(pageCount)) { 393 sgrbNext.attr({ 376 } 377 if (jQuery.isEmptyObject(obj)) { 378 loadMore.attr({ 394 379 'disabled':'disabled', 395 380 'style' : 'cursor:default;color:#c1c1c1;vertical-align: text-top;pointer-events: none;' 396 }) ;381 }).text('no more comments'); 397 382 } 398 383 else { 399 sgrbNext.removeAttr('disabled style');400 sgrbNext.attr('onclick','SGRB.ajaxPagination('+page+','+next+','+commentsPerPage+')');401 } 402 var obj = jQuery.parseJSON(response);384 loadMore.removeAttr('disabled style'); 385 loadMore.attr('onclick','SGRB.ajaxPagination(1,'+next+','+commentsPerPage+')'); 386 } 387 403 388 for(var i in obj) { 404 389 commentHtml += '<div class="sgrb-approved-comments-wrapper" style="background-color:'+formBackgroundColor+';color:'+formTextColor+'">'; … … 422 407 commentHtml += '</div>'; 423 408 } 424 jQuery('.sgrb-approved-comments-to-show').empty().html(commentHtml); 425 } 426 ajaxHandler.run(); 427 }; 428 429 SGRB.ajaxAddComment = function(id){ 430 jQuery('.sgrb-loading-add-comment i').show(); 431 var email = jQuery('.sgrb-add-email').val(), 432 comment = jQuery('.sgrb-add-comment').val(), 433 name = jQuery('.sgrb-add-name').val(), 434 title = jQuery('.sgrb-add-title').val(), 435 rates = [], 436 categories = []; 437 438 jQuery('.sgrb-category').map(function(){ 439 categories.push(jQuery(this).val()); 440 }).get().join(); 441 jQuery('.sgrb-rate').map(function(){ 442 rates.push(jQuery(this).val()); 443 }).get().join(); 444 445 var addAction = 'Comment_ajaxSave'; 446 var ajaxHandler = new sgrbRequestHandler(addAction, { 447 review:id, 448 email:email, 449 comment:comment, 450 name:name, 451 title:title, 452 categories:categories, 453 rates:rates 454 }); 455 ajaxHandler.dataType = 'html'; 456 ajaxHandler.callback = function(response){ 457 //If success 458 jQuery('.sgrb-loading-add-comment i').hide(); 459 jQuery('.sgrb-add-email').val(''); 460 jQuery('.sgrb-add-comment').val(''); 461 jQuery('.sgrb-add-name').val(''); 462 jQuery('.sgrb-add-title').val(''); 463 jQuery('.sgrb-rate').val(1); 409 jQuery('.sgrb-approved-comments-to-show').addClass('sgrb-load-it'); 410 jQuery('.sgrb-approved-comments-to-show').append(commentHtml); 411 jQuery('.sgrb-loading-spinner').hide(); 412 jQuery('.sgrb-comment-load').show(); 464 413 } 465 414 ajaxHandler.run(); -
review-builder/trunk/assets/page/styles/save.css
r1442946 r1444962 10 10 11 11 #sg-plugins-wrapper { 12 width: 90%;13 margin: 0 auto;14 padding-top: 30px;12 width: 90%; 13 margin: 0 auto; 14 padding-top: 30px; 15 15 } 16 16 … … 33 33 34 34 .plugin-icon { 35 top: 0px !important;36 left: 10px !important;35 top: 0px !important; 36 left: 10px !important; 37 37 } 38 38 … … 42 42 43 43 #sg-plugins-wrapper .plugin-card .desc { 44 margin-right: 0px;44 margin-right: 0px; 45 45 } 46 46 47 47 #sg-plugins-wrapper .plugin-card-top { 48 padding-top: 0px !important;48 padding-top: 0px !important; 49 49 } 50 50 … … 54 54 55 55 #sg-plugins-wrapper .column-compatibility { 56 width: 100%;57 text-align: inherit;56 width: 100%; 57 text-align: inherit; 58 58 } 59 59 60 60 #sg-plugins-wrapper .plugin-card { 61 cursor: pointer;61 cursor: pointer; 62 62 } 63 63 … … 533 533 margin-top: 10px; 534 534 width: 100%; 535 max-width: 700px;536 535 border-radius: 3px; 537 536 font-family: sans-serif !important; … … 698 697 text-align: center; 699 698 width: 100%; 700 max-width: 700px;701 699 background-color: #f7f7f7; 702 700 border-radius: 3px; … … 710 708 } 711 709 712 .sgrb-pagination .sgrb- arrows{710 .sgrb-pagination .sgrb-comment-load { 713 711 color: #4c4c4c; 714 712 font-size: 12px; … … 717 715 } 718 716 719 .sgrb-prev, 720 .sgrb-next { 721 vertical-align: text-top; 717 .sg-compatible .sg-col-8 { 718 padding-right: 25px !important; 719 text-align: right; 720 } 721 722 .sgrb-comments-count-to-show, 723 .sgrb-comments-count-to-load { 724 width: 100% !important; 725 border-radius: 3px !important; 726 height: 25px !important; 727 } 728 729 .sgrb-comments-count-options { 730 vertical-align: sub !important; 722 731 } 723 732 … … 731 740 font-size: 15px; 732 741 width: 100%; 733 max-width: 700px;734 742 min-height: 1px; 735 743 color: #4c4c4c; -
review-builder/trunk/com/config/autoload.php
r1443317 r1444962 74 74 'controller' =>'Review', 75 75 'action' => 'ajaxPagination', 76 ), 77 array( 78 'controller' =>'Review', 79 'action' => 'ajaxUserRate' 76 80 ) 77 81 ); … … 105 109 'controller' => 'Comment', 106 110 'action' => 'ajaxSelectPosts', 107 ),108 array(109 'controller' => 'Comment',110 'action' => 'ajaxAddComment',111 111 ), 112 112 array( -
review-builder/trunk/com/config/config.php
r1443317 r1444962 3 3 define('SGRB_COMMENTS_PER_PAGE', 10); 4 4 define('SGRB_PRO_VERSION', 0); 5 define('SGRB_VERSION', '1.0. 5');5 define('SGRB_VERSION', '1.0.6'); 6 6 define('SGRB_RATE_TYPE_STAR', 1); 7 7 define('SGRB_RATE_TYPE_PERCENT', 2); -
review-builder/trunk/com/controllers/Comment.php
r1442946 r1444962 37 37 $sgrbComId = (int)$_POST['sgrb-com-id']; 38 38 39 $title = $_POST['title'];40 $email = $_POST['email'];41 $comment = $_POST['comment'];42 $name = $_POST['name'];43 $review = $_POST['review'];44 $rates = $_POST['rates'];45 $categories = $_POST['categories'];46 $post = $_POST['post'];47 $postCategory = $_POST['post-category'];48 49 isset($_POST['isApproved']) ? $isApproved = (int) $_POST['isApproved'] : 0;39 $title = @$_POST['title']; 40 $email = @$_POST['email']; 41 $comment = @$_POST['comment']; 42 $name = @$_POST['name']; 43 $review = @$_POST['review']; 44 $rates = @$_POST['rates']; 45 $categories = @$_POST['categories']; 46 $post = @$_POST['post']; 47 $postCategory = @$_POST['post-category']; 48 49 isset($_POST['isApproved']) ? $isApproved = (int)@$_POST['isApproved'] : 0; 50 50 51 51 $sgrbComment = SGRB_CommentModel::finder()->findByPk($sgrbId); … … 91 91 } 92 92 93 public function ajaxAddComment()94 {95 global $sgrb;96 global $wpdb;97 $reviewId = (int)$_POST['id'];98 99 if (count($_POST)) {100 $sgrbComm = new SGRB_CommentModel();101 $review = SGRB_ReviewModel::finder()->findByPk($reviewId);102 103 $title = $_POST['title'];104 $email = $_POST['email'];105 $name = $_POST['name'];106 $comment = $_POST['comment'];107 $rates = $_POST['rates'];108 $categories = $_POST['categories'];109 if ($email) {110 $email = filter_var($email, FILTER_VALIDATE_EMAIL);111 }112 113 $sgrbComm->setReview_id(sanitize_text_field($reviewId));114 $sgrbComm->setTitle(sanitize_text_field($title));115 $sgrbComm->setEmail(sanitize_text_field($email));116 $sgrbComm->setName(sanitize_text_field($name));117 $sgrbComm->setComment(sanitize_text_field($comment));118 $sgrbComm->setCdate(sanitize_text_field(date('Y-m-d-h-m-s')));119 $sgrbComm->save();120 $sgrbCommLastId = $wpdb->insert_id;121 for ($i=0;$i<count($rates);$i++) {122 $categoryRate = new SGRB_Comment_RatingModel();123 $categoryRate->setComment_id(sanitize_text_field($sgrbCommLastId));124 $categoryRate->setCategory_id(sanitize_text_field($categories[$i]));125 $categoryRate->setRate(sanitize_text_field($rates[$i]));126 $categoryRate->save();127 }128 }129 echo $reviewId;130 exit();131 }132 133 93 public function save() 134 94 { -
review-builder/trunk/com/controllers/Review.php
r1442946 r1444962 69 69 $reviewId = 0; 70 70 $isUpdate = false; 71 $rateTypeNotice = $_POST['rate-type-notice'];72 $templateImgArr = $_POST['image_url'];73 $templateTextArr = $_POST['input_html'];74 $templateUrlArr = $_POST['input_url'];75 $tempName = $_POST['sgrb-template'];76 $title = $_POST['sgrb-title'];71 $rateTypeNotice = @$_POST['rate-type-notice']; 72 $templateImgArr = @$_POST['image_url']; 73 $templateTextArr = @$_POST['input_html']; 74 $templateUrlArr = @$_POST['input_url']; 75 $tempName = @$_POST['sgrb-template']; 76 $title = @$_POST['sgrb-title']; 77 77 $tempOptions['images'] = $templateImgArr; 78 78 $tempOptions['html'] = $templateTextArr; … … 114 114 $shadowTopBottom = ''; 115 115 $shadowBlur = ''; 116 $fields = $_POST['field-name'];117 $fieldId = $_POST['fieldId'];118 $title = $_POST['sgrb-title'];119 $ratingType = $_POST['rate-type'];120 $totalRateBackgroundColor = $_POST['total-rate-background-color'];121 $skinColor = $_POST['skin-color'];122 $totalRate = $_POST['totalRate'];123 $rateTextColor = $_POST['rate-text-color'];116 $fields = @$_POST['field-name']; 117 $fieldId = @$_POST['fieldId']; 118 $title = @$_POST['sgrb-title']; 119 $ratingType = @$_POST['rate-type']; 120 $totalRateBackgroundColor = @$_POST['total-rate-background-color']; 121 $skinColor = @$_POST['skin-color']; 122 $totalRate = @$_POST['totalRate']; 123 $rateTextColor = @$_POST['rate-text-color']; 124 124 $emailNotificationCheckbox = isset($_POST['email-notification-checkbox']); 125 125 $requiredEmailCheckbox = isset($_POST['required-email-checkbox']); … … 128 128 $shadowOn = isset($_POST['template-field-shadow-on']); 129 129 $googleSearch = isset($_POST['sgrb-google-search-on']); 130 $emailNotification = $_POST['email-notification']; 131 $font = $_POST['fontSelectbox']; 132 $tempateBackgroundColor = $_POST['template-background-color']; 133 $tempateTextColor = $_POST['template-text-color']; 134 $tempateShadowColor = $_POST['template-shadow-color']; 135 $shadowLeftRight = $_POST['shadow-left-right']; 136 $shadowTopBottom = $_POST['shadow-top-bottom']; 137 $shadowBlur = $_POST['shadow-blur']; 138 $postCategory = $_POST['post-category']; 139 $disableWPcomments = $_POST['disableWPcomments']; 130 $emailNotification = @$_POST['email-notification']; 131 $font = @$_POST['fontSelectbox']; 132 $tempateBackgroundColor = @$_POST['template-background-color']; 133 $tempateTextColor = @$_POST['template-text-color']; 134 $tempateShadowColor = @$_POST['template-shadow-color']; 135 $shadowLeftRight = @$_POST['shadow-left-right']; 136 $shadowTopBottom = @$_POST['shadow-top-bottom']; 137 $shadowBlur = @$_POST['shadow-blur']; 138 $postCategory = @$_POST['post-category']; 139 $disableWPcomments = @$_POST['disableWPcomments']; 140 $commentsCount = (int)@$_POST['comments-count-to-show']; 141 $commentsCountLoad = (int)@$_POST['comments-count-to-load']; 140 142 141 143 $options['notify'] = ''; … … 145 147 $options['template-field-shadow-on'] = ''; 146 148 $options['sgrb-google-search-on'] = ''; 147 $options['post-category'] = '';148 149 $options['disableWPcomments'] = ''; 150 $options['comments-count-to-show'] = ''; 151 $options['comments-count-to-load'] = ''; 149 152 if (SGRB_PRO_VERSION) { 153 if ($commentsCount) { 154 $options['comments-count-to-show'] = $commentsCount; 155 } 156 if ($commentsCountLoad) { 157 $options['comments-count-to-load'] = $commentsCountLoad; 158 } 150 159 if ($emailNotificationCheckbox) { 151 160 $options['notify'] = sanitize_text_field($emailNotification); … … 167 176 $options['disableWPcomments'] = 1; 168 177 } 169 if ($postCategory ) {178 if ($postCategory && $tempOptions['name'] == 'post_review') { 170 179 $options['post-category'] = $postCategory; 171 180 } … … 181 190 182 191 $options['total-rate'] = $totalRate; 183 $options['total-rate-color'] = $totalRateColor;184 192 $options['total-rate-background-color'] = $totalRateBackgroundColor; 185 193 $options['rate-type'] = $ratingType; … … 309 317 $sgrbDataArray['post-category'] = @$options["post-category"]; 310 318 $sgrbDataArray['disableWPcomments'] = @$options["disableWPcomments"]; 319 $sgrbDataArray['comments-count-to-show'] = @$options["comments-count-to-show"]; 320 $sgrbDataArray['comments-count-to-load'] = @$options["comments-count-to-load"]; 311 321 312 322 if ($options['template-field-shadow-on']) { … … 484 494 $allApprovedComments = '<div class="sgrb-approved-comments-to-show">'; 485 495 $allApprovedComments .= '</div>'; 496 if (!@$review[0]['options']['comments-count-to-show']) { 497 @$review[0]['options']['comments-count-to-show'] = SGRB_COMMENTS_PER_PAGE; 498 } 499 if (!@$review[0]['options']['comments-count-to-load']) { 500 !@$review[0]['options']['comments-count-to-load'] = 3; 501 } 486 502 if ($commentsArray) { 487 503 $allApprovedComments .= '<div class="sgrb-pagination" style="background-color:'.esc_attr($review[0]['options']['total-rate-background-color']).';color: '.$review[0]['options']['rate-text-color'].';">'; 488 $allApprovedComments .= '<input class="sgrb-comments-per-page" type="hidden" value="'.SGRB_COMMENTS_PER_PAGE.'">'; 489 $allApprovedComments .= '<a class="sgrb-arrows sgrb-prev" href="javascript:void(0)">⟵ </a>'; 490 $perPage = SGRB_COMMENTS_PER_PAGE; 504 $allApprovedComments .= '<input class="sgrb-comments-per-page" type="hidden" value="'.@$review[0]['options']['comments-count-to-show'].'">'; 505 $perPage = @$review[0]['options']['comments-count-to-show']; 491 506 $tmp = ceil(count($commentsArray)/SGRB_COMMENTS_PER_PAGE); 492 507 $allApprovedComments .= '<input class="sgrb-page-count" type="hidden" value="'.$tmp.'">'; 508 $allApprovedComments .= '<input class="sgrb-comments-count" type="hidden" value="'.@$review[0]['options']['comments-count-to-show'].'">'; 509 $allApprovedComments .= '<input class="sgrb-comments-count-load" type="hidden" value="'.@$review[0]['options']['comments-count-to-load'].'">'; 493 510 $allApprovedComments .= '<input class="sgrb-post-id" type="hidden" value="'.$postId.'">'; 494 $allApprovedComments .= '<span><code class="sgrb-current-page">1</code></span>'; 495 $allApprovedComments .= '<a class="sgrb-pages" href="javascript:void(0)" onclick="SGRB.ajaxPagination(1,0,'.SGRB_COMMENTS_PER_PAGE.')">1</a>'; 496 $allApprovedComments .= '<a class="sgrb-arrows sgrb-next" href="javascript:void(0)"> ⟶</a>'; 511 $allApprovedComments .= '<i class="sgrb-loading-spinner"><img src='.$sgrb->app_url.'/assets/page/img/comment-loader.gif></i>'; 512 $allApprovedComments .= '<a class="sgrb-comment-load" href="javascript:void(0)">Load more</a>'; 497 513 $allApprovedComments .= '</div>'; 498 514 } … … 779 795 $title = ''; 780 796 $comment = ''; 781 $ratedFields['fields'] = $_POST['field'];782 $ratedFields['rates'] = $_POST['rate'];797 $ratedFields['fields'] = @$_POST['field']; 798 $ratedFields['rates'] = @$_POST['rate']; 783 799 784 800 $reviewId = $_POST['reviewId']; … … 796 812 } 797 813 $reviewTitle = $currentReview->getTitle(); 798 $name = $_POST['addName'];799 $mainEmail = $_POST['addEmail'];814 $name = @$_POST['addName']; 815 $mainEmail = @$_POST['addEmail']; 800 816 if ($mainEmail) { 801 817 $email = filter_var($mainEmail, FILTER_VALIDATE_EMAIL); 802 818 } 803 $title = $_POST['addTitle'];804 $comment = $_POST['addComment'];819 $title = @$_POST['addTitle']; 820 $comment = @$_POST['addComment']; 805 821 if (count($_POST)) { 806 822 $cookieValue = $_SERVER['REMOTE_ADDR']; -
review-builder/trunk/com/core/SGRB.php
r1442946 r1444962 146 146 $disableComments = $options['disableWPcomments']; 147 147 148 if ($categoryId == get_the_category($currentPost->ID)[0]->cat_ID) { 148 $category = get_the_category($currentPost->ID); 149 if ($categoryId == $category[0]->cat_ID) { 149 150 $rev = new SGRB_ReviewController(); 150 151 $html = $rev->createPostReviewHtml($review); -
review-builder/trunk/com/layouts/Review/save.php
r1442946 r1444962 233 233 <div class="sgrb-version"><input type="button" class="sgrb-upgrade-button" value="PRO" onclick="window.open('<?php echo SGRB_PRO_URL;?>')"></div> 234 234 <div class="sgrb-require-options-fields"> 235 <div class="sg-row"> 236 <div class="sg-col-4"> 237 <span class="sgrb-comments-count-options"><?php echo _e('Comments to show:', 'sgrb');?></span> 238 </div> 239 <div class="sg-col-2"> 240 <input class="sgrb-comments-count-to-show" value="10" type="text"> 241 </div> 242 </div> 243 <div class="sg-row"> 244 <div class="sg-col-4"> 245 <span class="sgrb-comments-count-options"><?php echo _e('Comments to load:', 'sgrb');?></span> 246 </div> 247 <div class="sg-col-2"> 248 <input class="sgrb-comments-count-to-load" value="3" type="text"> 249 </div> 250 </div> 251 </div> 252 <div class="sgrb-require-options-fields"> 235 253 <p><label for=""><input id="" class="sgrb-email-notification-checkbox" value="true" type="checkbox"><?php echo _e('Notify for new comments to this email:', 'sgrb');?></label> 236 254 <input class="sgrb-email-notification"></p> … … 238 256 </div> 239 257 <?php elseif (SGRB_PRO_VERSION == 1) :?> 258 <div class="sgrb-require-options-fields"> 259 <div class="sg-row"> 260 <div class="sg-col-4"> 261 <span class="sgrb-comments-count-options"><?php echo _e('Comments to show:', 'sgrb');?></span> 262 </div> 263 <div class="sg-col-2"> 264 <input class="sgrb-comments-count-to-show" name="comments-count-to-show" value="<?php echo (@$sgrbDataArray['comments-count-to-show']) ? @$sgrbDataArray['comments-count-to-show'] : 10;?>" type="text"> 265 </div> 266 </div> 267 <div class="sg-row"> 268 <div class="sg-col-4"> 269 <span class="sgrb-comments-count-options"><?php echo _e('Comments to load:', 'sgrb');?></span> 270 </div> 271 <div class="sg-col-2"> 272 <input class="sgrb-comments-count-to-load" name="comments-count-to-load" value="<?php echo (@$sgrbDataArray['comments-count-to-load']) ? @$sgrbDataArray['comments-count-to-load'] : 3;?>" type="text"> 273 </div> 274 </div> 275 </div> 240 276 <div class="sgrb-require-options-fields"> 241 277 <p><label for="sgrb-email-checkbox"><input id="sgrb-email-checkbox" class="sgrb-email-notification-checkbox sgrb-email-hide-show-js" value="true" type="checkbox" name="email-notification-checkbox"<?php echo (@$sgrbDataArray['notify']) ? ' checked' : '';?><?php echo (@$sgrbRevId != 0) ? '' : ' checked';?>><?php echo _e('Notify for new comments to this email:', 'sgrb');?></label> -
review-builder/trunk/readme.txt
r1443317 r1444962 1 1 === Review === 2 2 Plugin Name: Review 3 Version: 1.0. 53 Version: 1.0.6 4 4 Donate link: https://sygnoos.com/wordpress-review/ 5 5 URI: https://sygnoos.com/wordpress-review/ … … 122 122 123 123 = 1.0.5 = 124 * Mobile view bug fixed 125 * Desktop view bug fixed 126 127 = 1.0.5 = 124 128 * Bug fixed. 125 129 … … 142 146 == Upgrade Notice == 143 147 144 Current version of Review Builder is v1.0. 3148 Current version of Review Builder is v1.0.6 145 149 146 150 == Other Notes ==
Note: See TracChangeset
for help on using the changeset viewer.