Changeset 2371567
- Timestamp:
- 08/29/2020 02:58:20 PM (5 years ago)
- Location:
- awesome-testimonials/trunk
- Files:
-
- 7 edited
-
alltestimonial.php (modified) (3 diffs)
-
css/pra_testimonial.css (modified) (2 diffs)
-
js/pra_testimonials.js (modified) (1 diff)
-
main.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
testimonial.php (modified) (2 diffs)
-
testimonial_settings.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
awesome-testimonials/trunk/alltestimonial.php
r1184721 r2371567 1 <?php function pra_alltestimonials_shortcode($atts){ 1 <?php function pra_alltestimonials_shortcode($atts) 2 { 2 3 global $wpdb; 3 4 $pro_table_prefix=$wpdb->prefix.'pra_'; … … 18 19 $show_star_ratings = $myrows[7]; 19 20 $show_designation = $myrows[8]; 21 $pra_bgcolor = $myrows[9]; 20 22 21 23 $pauseduration = $myrows[3]; … … 55 57 if($show_image==1) { $imageneeded = $thumb; } 56 58 $output .= '<div class="pra_testimonial"> 57 <div class="pra_testimonialtext" > <span class="quote-left"></span> <q>'.$postdetail->post_content.'<span class="quote-right"></span></q> </div>59 <div class="pra_testimonialtext" style="background-color: '.$pra_bgcolor.'"> <span class="quote-left"></span> <div class="testi-content">'.$postdetail->post_content.'<span class="quote-right"></span></div> </div> 58 60 <span class="pra_arrow"></span> <cite> <span class="photo">'; 59 61 if($show_image==1) { -
awesome-testimonials/trunk/css/pra_testimonial.css
r1184731 r2371567 11 11 width: 33px; 12 12 } 13 .pra_testimonial q{13 .pra_testimonial .testi-content{ 14 14 display: block; 15 15 font-size: 17px; … … 111 111 min-width: 125px; 112 112 } 113 .pra_ rotator.photo {113 .pra_testimonial .photo { 114 114 float:left; 115 115 } -
awesome-testimonials/trunk/js/pra_testimonials.js
r1110862 r2371567 15 15 16 16 17 function pra_rotator_play(pra_rotator) { 17 function pra_rotator_play(pra_rotator) 18 { 18 19 19 20 pra_rotator.carouFredSel({ -
awesome-testimonials/trunk/main.php
r1285030 r2371567 4 4 Plugin URI: https://wordpress.org/plugins/awesome-testimonials/ 5 5 Description: Wordpress Testimonials with front end Add Testimonials Facility. 6 Version: 2. 16 Version: 2.2.0 7 7 Author: Prakash 8 Author URI: http://prakashparghi.com/9 8 License: GPL 10 9 */ 10 11 11 $siteurl = get_option('siteurl'); 12 12 … … 50 50 51 51 52 add_action( 'wp_enqueue_scripts', 'pra_theme_enqueue' ); 53 add_action('admin_enqueue_scripts',pra_admin_enqueue());//register plugin scripts and css in wp-admin 52 add_action('wp_enqueue_scripts','pra_theme_enqueue'); 53 add_action('admin_enqueue_scripts','pra_admin_enqueue'); 54 //register plugin scripts and css in wp-admin 54 55 55 56 … … 80 81 81 82 $wpdb->query("INSERT INTO $table2 (id,metaname, value) 82 VALUES (4,'pauseduration', 9 000)");83 VALUES (4,'pauseduration', 9)"); 83 84 84 85 $wpdb->query("INSERT INTO $table2 (id,metaname, value) … … 96 97 $wpdb->query("INSERT INTO $table2 (id,metaname, value) 97 98 VALUES (9,'show_designation','1' )"); 99 100 $wpdb->query("INSERT INTO $table2 (id,metaname, value) 101 VALUES (10,'BG_color','#ffffff' )"); 98 102 99 103 … … 196 200 197 201 function admin_init(){ 198 add_meta_box("pra_testimonials_ratings", "St rat(s)", "meta_options", "pra_testimonials", "advanced", "low");202 add_meta_box("pra_testimonials_ratings", "Star(s)", "meta_options", "pra_testimonials", "advanced", "low"); 199 203 add_meta_box("pra_testimonials_designation", "Designation/Post", "designation_meta_options", "pra_testimonials", "advanced", "low"); 200 204 } -
awesome-testimonials/trunk/readme.txt
r1335095 r2371567 2 2 Contributors: Prakash30 3 3 Tags: testimonials, testimonial, testimony, Auto rotate testimonial, customizable testimonial, shortcode, awesome, responsive, Awesome Testimonial, start ratings 4 Requires at least: 3.0.15 Tested up to: 4.4.14 Requires at least: 4.0.1 5 Tested up to: 5.5.0 6 6 Stable tag: 3.6.1 7 7 License: GPLv2 or later … … 61 61 * Fixed problem with shortcode to display testimonial any place on website. 62 62 63 63 = 2.2.0 = 64 * August. 29, 2020 - v2.2.0 65 * New Feature added (Define background color ) 66 * Fixed problem of effect dropdown, Improved version -
awesome-testimonials/trunk/testimonial.php
r1164187 r2371567 17 17 $show_star_ratings = $myrows[7]; 18 18 $show_designation = $myrows[8]; 19 $pra_bgcolor = $myrows[9]; 19 20 20 $pauseduration = $myrows[3] ;21 $pauseduration = $myrows[3]*1000; 21 22 if($pauseduration=='') 22 23 { … … 65 66 if($show_image==1) { $imageneeded = $thumb; } 66 67 $output .= '<div class="pra_testimonial"> 67 <div class="pra_testimonialtext" > <span class="quote-left"></span> <q>'.$postdetail->post_content.'<span class="quote-right"></span></q> </div>68 <div class="pra_testimonialtext" style="background-color: '.$pra_bgcolor.'"> <span class="quote-left"></span> <div class="testi-content">'.$postdetail->post_content.'<span class="quote-right"></span></div> </div> 68 69 <span class="pra_arrow"></span> <cite> <span class="photo">'; 69 70 if($show_image==1) { -
awesome-testimonials/trunk/testimonial_settings.php
r1184741 r2371567 13 13 $pra_star_ratings = sanitize_text_field($_POST['pra_star_ratings']); 14 14 $pra_designation = sanitize_text_field($_POST['pra_designation']); 15 $pra_bgcolor = sanitize_text_field($_POST['pra_bgcolor']); 15 16 16 17 … … 127 128 ), 128 129 array( '%d' ) 130 ); 131 132 $wpdb->update( 133 $pro_table_prefix.'testimonial_settings', 134 array( 135 'value' => $pra_bgcolor 136 ), 137 array( 'id' => 10 ), 138 array( 139 '%s' // value2 140 ), 141 array( '%s' ) 129 142 ); 130 143 … … 151 164 return true; 152 165 } 166 167 function CopyToClipBoard(whichcode) 168 { 169 /* Get the text field */ 170 var copyText = document.getElementById(whichcode); 171 172 /* Select the text field */ 173 copyText.select(); 174 copyText.setSelectionRange(0, 99999); /*For mobile devices*/ 175 176 /* Copy the text inside the text field */ 177 document.execCommand("copy"); 178 179 /* Alert the copied text */ 180 alert("Copied the code: " + copyText.value); 181 } 182 153 183 </script> 154 184 … … 165 195 <div class="updated" style=" background-color: #0074A2;"> 166 196 <p><strong style="color:#FFF;">Short code for Testimonial : 167 <input type="text" value="[pra_testimonial]" style=" border-radius: 5px; width: 200px;" readonly="readonly">197 <input type="text" id="BaseShortCode" value="[pra_testimonial]" style=" border-radius: 5px; width: 200px;" readonly="readonly" > <button onclick="CopyToClipBoard('BaseShortCode')" class="button">Copy code</button> 168 198 </strong> </p> 169 199 </div> 200 <div class="updated" style=" background-color: #3498db;"> 201 <p><strong style="color:#FFF;">Short code to display ALL Testimonials : 202 <input type="text" id="SmartShortCode" value='[pra_alltestimonials PerPage="10"]' style=" border-radius: 5px; width: 255px;" readonly="readonly" ><button onclick="CopyToClipBoard('SmartShortCode')" class="button">Copy code</button> 203 </strong> </p> 204 </div> 170 205 </div> 171 206 </div> … … 181 216 <td class="misc-pub-section"> 182 217 <select name="pra_effect" id="pra_effect" > 183 <option value="crossfade" <?php if($myrows[0]=='crossfade') echo 'selected="selected"'; ?> >CrossFade</option>218 <option value="crossfade" <?php if($myrows[0]=='crossfade') echo 'selected="selected"'; ?> >CrossFade</option> 184 219 <option value="scroll" <?php if($myrows[0]=='scroll') echo 'selected="selected"'; ?> >Scroll</option> 185 <option value="fade" <?php if($myrows[0]==' scroll') echo 'selected="selected"'; ?> >Fade</option>220 <option value="fade" <?php if($myrows[0]=='fade') echo 'selected="selected"'; ?> >Fade</option> 186 221 <option value="cover" <?php if($myrows[0]=='cover') echo 'selected="selected"'; ?> >Cover</option> 187 222 <option value="cover-fade" <?php if($myrows[0]=='cover-fade') echo 'selected="selected"'; ?> >Cover Fade</option> … … 220 255 </tr> 221 256 <tr> 222 <td class="misc-pub-section"> PauseDuration : </td>257 <td class="misc-pub-section">Scroll Duration : </td> 223 258 <td class="misc-pub-section"><input type="text" onkeypress="return isNumber(event);" name="pra_pauseduration" value="<?php echo $myrows[3]; ?>" /> 224 <em>Default : 9000</em></td> 225 </tr> 226 <tr> 227 <td class="misc-pub-section">Scroll Duration : </td> 228 <td class="misc-pub-section"><input type="text" onkeypress="return isNumber(event);" name="pra_scrollduration" value="<?php echo $myrows[4]; ?>" /> 229 <em>Default : 1000</em></td> 259 <em>Seconds [Default : 9]</em></td> 230 260 </tr> 231 261 <tr> … … 243 273 </select></td> 244 274 </tr> 275 <tr> 276 <td class="misc-pub-section">Background Color : </td> 277 <td class="misc-pub-section"><input type="color" id="pra_bgcolor" name="pra_bgcolor" value="<?php echo $myrows[9]; ?>" ></td> 278 </tr> 279 245 280 <tr> 246 281 <td> </td> … … 251 286 </table> 252 287 </form> 253 <div class="pra_lovedto"><a href="https://wordpress.org/support/ view/plugin-reviews/awesome-testimonials#postform"></a></div>288 <div class="pra_lovedto"><a href="https://wordpress.org/support/plugin/awesome-testimonials/reviews/#new-post"></a></div> 254 289 </div> 255 290 </div> 256 <div class="wrap">257 <div class="updated" style=" background-color: #0074A2;">258 <p><strong style="color:#FFF;">Short code for Testimonial :259 <input type="text" value="[pra_testimonial]" style=" border-radius: 5px; width: 200px;" readonly="readonly">260 </strong> </p>261 </div>262 <div class="updated" style=" background-color: #3498db;">263 <p><strong style="color:#FFF;">Short code to display ALL Testimonials :264 <input type="text" value='[pra_alltestimonials PerPage="10"]' style=" border-radius: 5px; width: 255px;" readonly="readonly">265 </strong> </p>266 </div>267 </div>291 <div class="wrap"> 292 <div class="updated" style=" background-color: #0074A2;"> 293 <p><strong style="color:#FFF;">Short code for Testimonial : 294 <input type="text" id="BaseShortCode" value="[pra_testimonial]" style=" border-radius: 5px; width: 200px;" readonly="readonly" > <button onclick="CopyToClipBoard('BaseShortCode')" class="button">Copy code</button> 295 </strong> </p> 296 </div> 297 <div class="updated" style=" background-color: #3498db;"> 298 <p><strong style="color:#FFF;">Short code to display ALL Testimonials : 299 <input type="text" id="SmartShortCode" value='[pra_alltestimonials PerPage="10"]' style=" border-radius: 5px; width: 255px;" readonly="readonly" ><button onclick="CopyToClipBoard('SmartShortCode')" class="button">Copy code</button> 300 </strong> </p> 301 </div> 302 </div>
Note: See TracChangeset
for help on using the changeset viewer.