Plugin Directory

Changeset 2371567


Ignore:
Timestamp:
08/29/2020 02:58:20 PM (5 years ago)
Author:
Prakash30
Message:

version 2.2.0

Location:
awesome-testimonials/trunk
Files:
7 edited

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{
    23        global $wpdb;   
    34        $pro_table_prefix=$wpdb->prefix.'pra_';
     
    1819                    $show_star_ratings = $myrows[7];
    1920                    $show_designation = $myrows[8];
     21                    $pra_bgcolor = $myrows[9];
    2022       
    2123                    $pauseduration = $myrows[3];
     
    5557                                    if($show_image==1) { $imageneeded = $thumb; }
    5658                                        $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>
    5860                                          <span class="pra_arrow"></span> <cite> <span class="photo">';
    5961                                              if($show_image==1) { 
  • awesome-testimonials/trunk/css/pra_testimonial.css

    r1184731 r2371567  
    1111    width: 33px;
    1212}
    13 .pra_testimonial q {
     13.pra_testimonial .testi-content{
    1414    display: block;
    1515    font-size: 17px;
     
    111111    min-width: 125px;
    112112}
    113 .pra_rotator .photo {
     113.pra_testimonial .photo {
    114114    float:left;
    115115}
  • awesome-testimonials/trunk/js/pra_testimonials.js

    r1110862 r2371567  
    1515
    1616
    17 function pra_rotator_play(pra_rotator) {
     17function pra_rotator_play(pra_rotator)
     18{
    1819   
    1920    pra_rotator.carouFredSel({
  • awesome-testimonials/trunk/main.php

    r1285030 r2371567  
    44Plugin URI: https://wordpress.org/plugins/awesome-testimonials/
    55Description: Wordpress Testimonials with front end Add Testimonials Facility.
    6 Version: 2.1
     6Version: 2.2.0
    77Author: Prakash
    8 Author URI: http://prakashparghi.com/
    98License: GPL
    109*/
     10
    1111$siteurl = get_option('siteurl');
    1212
     
    5050
    5151
    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
     52add_action('wp_enqueue_scripts','pra_theme_enqueue');
     53add_action('admin_enqueue_scripts','pra_admin_enqueue');
     54//register plugin scripts and css in wp-admin
    5455
    5556
     
    8081
    8182    $wpdb->query("INSERT INTO $table2 (id,metaname, value)
    82           VALUES (4,'pauseduration', 9000)");
     83          VALUES (4,'pauseduration', 9)");
    8384
    8485    $wpdb->query("INSERT INTO $table2 (id,metaname, value)
     
    9697    $wpdb->query("INSERT INTO $table2 (id,metaname, value)
    9798          VALUES (9,'show_designation','1' )");
     99
     100    $wpdb->query("INSERT INTO $table2 (id,metaname, value)
     101          VALUES (10,'BG_color','#ffffff' )");
    98102         
    99103
     
    196200
    197201    function admin_init(){
    198         add_meta_box("pra_testimonials_ratings", "Strat(s)", "meta_options", "pra_testimonials", "advanced", "low");
     202        add_meta_box("pra_testimonials_ratings", "Star(s)", "meta_options", "pra_testimonials", "advanced", "low");
    199203        add_meta_box("pra_testimonials_designation", "Designation/Post", "designation_meta_options", "pra_testimonials", "advanced", "low");
    200204    } 
  • awesome-testimonials/trunk/readme.txt

    r1335095 r2371567  
    22Contributors: Prakash30
    33Tags: testimonials, testimonial, testimony, Auto rotate testimonial, customizable testimonial, shortcode, awesome, responsive, Awesome Testimonial, start ratings
    4 Requires at least: 3.0.1
    5 Tested up to: 4.4.1
     4Requires at least: 4.0.1
     5Tested up to: 5.5.0
    66Stable tag: 3.6.1
    77License: GPLv2 or later
     
    6161* Fixed problem with shortcode to display testimonial any place on website.
    6262
    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  
    1717                    $show_star_ratings = $myrows[7];
    1818                    $show_designation = $myrows[8];
     19                    $pra_bgcolor = $myrows[9];
    1920       
    20                     $pauseduration = $myrows[3];
     21                    $pauseduration = $myrows[3]*1000;
    2122                    if($pauseduration=='')
    2223                    {
     
    6566                                    if($show_image==1) { $imageneeded = $thumb; }
    6667                                        $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>
    6869                                          <span class="pra_arrow"></span> <cite> <span class="photo">';
    6970                                              if($show_image==1) { 
  • awesome-testimonials/trunk/testimonial_settings.php

    r1184741 r2371567  
    1313     $pra_star_ratings = sanitize_text_field($_POST['pra_star_ratings']);   
    1414     $pra_designation = sanitize_text_field($_POST['pra_designation']);
     15     $pra_bgcolor = sanitize_text_field($_POST['pra_bgcolor']);
    1516
    1617
     
    127128            ),
    128129            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' )
    129142            );
    130143           
     
    151164                    return true;
    152165                }
     166
     167function 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
    153183</script>
    154184
     
    165195      <div class="updated" style=" background-color: #0074A2;">
    166196        <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>
    168198          </strong> </p>
    169199      </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>
    170205    </div>
    171206  </div>
     
    181216          <td class="misc-pub-section">
    182217          <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>
    184219              <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>
    186221              <option  value="cover" <?php if($myrows[0]=='cover') echo 'selected="selected"'; ?> >Cover</option>
    187222              <option  value="cover-fade" <?php if($myrows[0]=='cover-fade') echo 'selected="selected"'; ?> >Cover Fade</option>
     
    220255        </tr>
    221256        <tr>
    222           <td class="misc-pub-section">Pause Duration  : </td>
     257          <td class="misc-pub-section">Scroll Duration  : </td>
    223258          <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>
    230260        </tr>
    231261        <tr>
     
    243273            </select></td>
    244274        </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
    245280        <tr>
    246281          <td>&nbsp;</td>
     
    251286      </table>
    252287    </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>
    254289  </div>
    255290</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.