Skip to content

Commit af575f4

Browse files
authored
Merge pull request #2078 from ahmedkaludi/1.27
1.27
2 parents 35d119c + 7a344f0 commit af575f4

26 files changed

+1023
-82
lines changed

admin_section/css/main-style.css

Lines changed: 138 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ Collection css starts here
18451845
box-sizing: border-box;
18461846
}
18471847
.saswp-collection-settings .button-primary{
1848-
width: 89px;
1848+
width: 100px;
18491849
margin: 0;
18501850
display: inline-block;
18511851
padding: 2px 0px;
@@ -3107,3 +3107,140 @@ span.saswp_inactive_Reviews { font-weight: 400; font-size: 14px; color: #000; }
31073107
cursor: pointer;
31083108
} */
31093109
/* Offer Banner Ends Here */
3110+
.saswp-faq-font-wrapper{
3111+
display: inline;
3112+
}
3113+
3114+
.saswp-faq-font-wrapper .saswp_faq_font_elements{
3115+
width: 50px !important;
3116+
display: inline !important;
3117+
}
3118+
3119+
.saswp-rating-box-custom-css{
3120+
margin-top: 20px;
3121+
border-top: 1px solid #eee;
3122+
padding-top: 10px;
3123+
}
3124+
3125+
.saswp-rating-box-custom-css label{
3126+
font-weight: 500;
3127+
}
3128+
3129+
.saswp-rbcc-tr-row{
3130+
border-top: 1px solid #eee;
3131+
}
3132+
3133+
.saswp-rbcc-field-table{
3134+
width: 100%;
3135+
line-height: 3;
3136+
}
3137+
3138+
.saswp-rbcc-td-headings{
3139+
width: 16%;
3140+
padding-left: 10px;
3141+
}
3142+
3143+
.saswp-rbcc-review-input-num{
3144+
width: 60px;
3145+
}
3146+
3147+
.saswp-rbcc-td-attributes{
3148+
width: 15%;
3149+
/* padding: 15px 7px !important;*/
3150+
}
3151+
3152+
#saswp-appearance-modal{
3153+
position: fixed;
3154+
top: 0;
3155+
left: 0;
3156+
width: 100%;
3157+
height: 100%;
3158+
background-color: rgba(0, 0, 0, 0.5);
3159+
display: none;
3160+
overflow: scroll;
3161+
z-index: 9999;
3162+
}
3163+
3164+
.saswp-rbcc-fields{
3165+
background-color: #fefefe;
3166+
position: relative;
3167+
margin: auto;
3168+
padding: 20px;
3169+
border: 1px solid #888;
3170+
width: 84%;
3171+
left: 5%;
3172+
top: 15%;
3173+
}
3174+
3175+
.saswp-rbcc-fields-items{
3176+
background-color: #fff;
3177+
display: flex;
3178+
}
3179+
3180+
#saswp-rbcc-app-wrapper{
3181+
width: 55%;
3182+
border: 1px solid #eee;
3183+
margin: 8px;
3184+
/* border-radius: 20px;*/
3185+
}
3186+
3187+
#saswp-rbcc-app-preview{
3188+
width: 45%;
3189+
margin: 10px;
3190+
border: 1px solid #eee;
3191+
padding: 10px;
3192+
/* border-radius: 20px;*/
3193+
}
3194+
3195+
#saswp-rbcc-preview-table{
3196+
width: 100%;
3197+
}
3198+
3199+
.saswp-rbcc-preview-head{
3200+
padding: 8px 12px;
3201+
width: 250px;
3202+
margin-bottom: 10px;
3203+
}
3204+
3205+
#saswp-rbcc-preview-hd{
3206+
margin: 20px 10px 10px 10px;
3207+
}
3208+
3209+
#saswp-rtb-link{
3210+
font-size: 13px;
3211+
margin-left: 11px;
3212+
color: #2271b1;
3213+
cursor: pointer;
3214+
font-weight: 600;
3215+
}
3216+
3217+
#saswp-appearance-modal-close{
3218+
float: right;
3219+
font-size: 30px;
3220+
font-weight: 600;
3221+
cursor: pointer;
3222+
}
3223+
3224+
#saswp-rbcc-reset{
3225+
padding-right: 10px;
3226+
text-align: right;
3227+
cursor: pointer;
3228+
}
3229+
3230+
#saswp_enable_gcaptcha{
3231+
width: auto !important;
3232+
}
3233+
3234+
#TB_ajaxContent{
3235+
height: 400px !important;
3236+
}
3237+
3238+
.saswp-ar-save-btn{
3239+
bottom: 0;
3240+
position: absolute;
3241+
margin-bottom: 10px;
3242+
}
3243+
3244+
.saswp-ta-left{
3245+
text-align: left !important;
3246+
}

admin_section/css/main-style.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

admin_section/fields-generator.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,16 @@ public function saswp_field_generator( $meta_fields, $settings, $field_type = nu
506506
}
507507
$message ='';
508508

509-
$input = sprintf(
510-
'<input class="%s" id="%s" name="%s" type="checkbox" %s %s><p>'.$message.'</p>',
509+
$alink = '';
510+
if($meta_field['id'] == 'saswp-review-module-checkbox'){
511+
if(isset($settings['saswp-review-module']) && $settings['saswp-review-module'] == 1){
512+
$alink = '<span id="saswp-rtb-link">'.saswp_t_string('Customize the Design').'</span>';
513+
}else{
514+
$alink = '<span id="saswp-rtb-link" class="saswp_hide">'.saswp_t_string('Customize the Design').'</span>';
515+
}
516+
}
517+
$input = sprintf(
518+
'<input class="%s" id="%s" name="%s" type="checkbox" %s %s>'.$alink.'<p>'.$message.'</p>',
511519
esc_attr($class),
512520
esc_attr($meta_field['id']),
513521
esc_attr($meta_field['name']),

admin_section/js/functions-list.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@
529529

530530
case "number":
531531
case "text":
532+
case "date":
532533

533534
html += '<tr>'
534535
+ '<th>'+element.label+'</th><td><input class="'+meta_class+'" style="width:100%" type="'+element.type+'" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']"></td>'
@@ -1596,7 +1597,10 @@
15961597
},
15971598
});
15981599

1599-
1600+
if(jQuery('#saswp_review_custom_chk_box').is(':checked')){
1601+
jQuery('#saswp-review-cccc').show();
1602+
}
1603+
16001604
saswp_create_total_collection( s_rating_enable, s_rating_val );
16011605
saswp_collection_sorting(sorting);
16021606
saswp_collection_total_reviews_id();

admin_section/js/functions-list.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)