Plugin Directory

Changeset 1685276


Ignore:
Timestamp:
06/26/2017 01:32:41 AM (9 years ago)
Author:
andrezrv
Message:

Preparing for 1.0.2 release

Location:
nice-testimonials/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • nice-testimonials/trunk/lib/plugin-api/functions.php

    r1471106 r1685276  
    161161    }
    162162
    163     $admin_url = get_admin_url();
    164     $site_url  = get_bloginfo( 'url' );
    165 
    166     if ( is_ssl() ) {
    167         $admin_url = str_replace( 'https://', 'http://', $admin_url );
    168         $site_url  = str_replace( 'https://', 'http://', $site_url );
    169     }
    170 
    171     $admin_path = str_replace( $site_url . '/', ABSPATH, $admin_url );
     163    // Admin path should be constructed with ABSPATH and wp-admin folder.
     164    $admin_path = ABSPATH . 'wp-admin/';
     165
     166    // If the standard admin path does not exist, let's try to calculate it.
     167    // This is not guaranteed to work in all scenarios, specially for weird setups.
     168    if ( ! is_dir( $admin_path ) ) {
     169        $admin_url = get_admin_url();
     170        $site_url  = get_bloginfo( 'url' );
     171
     172        if ( is_ssl() ) {
     173            $admin_url = str_replace( 'https://', 'http://', $admin_url );
     174            $site_url  = str_replace( 'https://', 'http://', $site_url );
     175        }
     176
     177        $admin_path = str_replace( $site_url . '/', ABSPATH, $admin_url );
     178    }
     179
    172180    $admin_path = apply_filters( 'nice_testimonials_get_admin_path', $admin_path );
    173181
  • nice-testimonials/trunk/nice-testimonials.php

    r1528434 r1685276  
    77 * @license   GPL-2.0+
    88 * @link      https://nicethemes.com/product/nice-testimonials
    9  * @copyright 2016 NiceThemes
     9 * @copyright 2016-2017 NiceThemes
    1010 *
    1111 * @wordpress-plugin
     
    1313 * Plugin URI:        https://nicethemes.com/product/nice-testimonials
    1414 * Description:       Show testimonials from your customers in your WordPress site in a beautiful and organized way.
    15  * Version:           1.0.1
     15 * Version:           1.0.2
    1616 * Author:            NiceThemes
    1717 * Author URI:        http://nicethemes.com
  • nice-testimonials/trunk/public/assets/css/nice-testimonials.css

    r1471106 r1685276  
    1818  padding: 0;
    1919}
     20
    2021.nice-testimonials.widget.default-styles .nice-testimonial {
    2122  overflow: hidden;
    2223  margin-bottom: 1.5em;
    2324}
     25
    2426.nice-testimonials.widget.default-styles .nice-testimonial-thumb {
    2527  float: left;
    2628  margin-right: 1em;
    2729}
     30
    2831.nice-testimonials.widget.default-styles .nice-testimonial-content {
    2932  overflow: hidden;
    3033  margin-bottom: 1em;
    3134}
     35
    3236.nice-testimonials.widget.default-styles .nice-testimonial .nice-testimonial-author {
    3337  clear: both;
     
    4347  margin-right: -0.23px;
    4448}
     49
    4550.nice-testimonials.default-styles.grid:after {
    4651  content: "";
     
    4853  clear: both;
    4954}
     55
    5056.nice-testimonials.default-styles.grid-pad {
    5157  padding: 20px 0 20px 20px;
    5258}
     59
    5360.nice-testimonials.default-styles.grid-pad > [class*='col-']:last-of-type {
    5461  padding-right: 20px;
    5562}
     63
    5664.nice-testimonials.default-styles.grid .nice-testimonial.first, .nice-testimonials.default-styles.grid-pad .nice-testimonial.first {
    5765  clear: both;
    5866}
     67
    5968.nice-testimonials.default-styles.grid .nice-testimonial .nice-testimonial-content, .nice-testimonials.default-styles.grid-pad .nice-testimonial .nice-testimonial-content {
    6069  overflow: hidden;
     
    6271  margin-bottom: 1em;
    6372}
     73
    6474.nice-testimonials.default-styles.grid .nice-testimonial .nice-testimonial-thumb, .nice-testimonials.default-styles.grid-pad .nice-testimonial .nice-testimonial-thumb {
    6575  float: left;
    6676  margin-right: 1em;
    6777}
     78
    6879.nice-testimonials.default-styles.grid .nice-testimonial-thumb, .nice-testimonials.default-styles.grid-pad .nice-testimonial-thumb {
    6980  overflow: hidden;
    7081  position: relative;
    7182}
     83
    7284.nice-testimonials.default-styles.grid .nice-testimonial-thumb img, .nice-testimonials.default-styles.grid-pad .nice-testimonial-thumb img {
    7385  max-width: 100%;
    7486}
     87
    7588.nice-testimonials.default-styles.grid .nice-testimonial-title h3, .nice-testimonials.default-styles.grid-pad .nice-testimonial-title h3 {
    7689  margin: 10px 0 20px;
    7790}
     91
    7892.nice-testimonials.default-styles.grid .nice-testimonial-title h3 a, .nice-testimonials.default-styles.grid-pad .nice-testimonial-title h3 a {
    7993  text-decoration: none;
    8094}
     95
    8196.nice-testimonials.default-styles .row:after {
    8297  content: "";
     
    8499  clear: both;
    85100}
     101
    86102.nice-testimonials.default-styles .row {
    87103  padding-bottom: 3%;
    88104}
     105
    89106.nice-testimonials.default-styles [class*='columns-'] {
    90107  box-sizing: border-box;
     
    94111  padding-left: 3%;
    95112}
     113
    96114.nice-testimonials.default-styles [class*='columns-']:last-of-type {
    97115  padding-right: 0;
    98116}
     117
    99118.nice-testimonials.default-styles .col-2-3 {
    100119  width: 66.66%;
    101120}
     121
    102122.nice-testimonials.default-styles .columns-1 {
    103123  width: 100%;
    104124}
     125
    105126.nice-testimonials.default-styles .columns-2 {
    106127  width: 50%;
    107128}
     129
    108130.nice-testimonials.default-styles .columns-3 {
    109131  width: 33.33%;
    110132}
     133
    111134.nice-testimonials.default-styles .columns-4 {
    112135  width: 25%;
    113136}
     137
    114138.nice-testimonials.default-styles .columns-5 {
    115139  width: 20%;
    116140}
     141
    117142.nice-testimonials.default-styles .columns-6 {
    118143  width: 16.66%;
    119144}
     145
    120146.nice-testimonials.default-styles .columns-7 {
    121147  width: 14.28%;
    122148}
     149
    123150.nice-testimonials.default-styles .columns-8 {
    124151  width: 12.5%;
    125152}
     153
    126154.nice-testimonials.default-styles .columns-9 {
    127155  width: 11.11%;
    128156}
     157
    129158.nice-testimonials.default-styles .columns-10 {
    130159  width: 10%;
    131160}
     161
    132162.nice-testimonials.default-styles .columns-11 {
    133163  width: 9.09%;
    134164}
     165
    135166.nice-testimonials.default-styles .columns-12 {
    136167  width: 8.33%;
    137168}
     169
    138170@media all and (max-width: 320px) {
    139171  .nice-testimonials.default-styles .columns-2 {
     
    141173  }
    142174}
     175
    143176.nice-testimonials.default-styles .columns-2:nth-child(2n+1) {
    144177  clear: both;
    145178}
     179
    146180@media all and (max-width: 320px) {
    147181  .nice-testimonials.default-styles .columns-3 {
     
    149183  }
    150184}
     185
    151186.nice-testimonials.default-styles .columns-3:nth-child(3n+1) {
    152187  clear: both;
    153188}
     189
    154190@media all and (max-width: 320px) {
    155191  .nice-testimonials.default-styles .columns-4 {
     
    157193  }
    158194}
     195
    159196.nice-testimonials.default-styles .columns-4:nth-child(4n+1) {
    160197  clear: both;
    161198}
     199
    162200@media all and (max-width: 320px) {
    163201  .nice-testimonials.default-styles .columns-5 {
     
    165203  }
    166204}
     205
    167206.nice-testimonials.default-styles .columns-5:nth-child(5n+1) {
    168207  clear: both;
    169208}
     209
    170210@media all and (max-width: 320px) {
    171211  .nice-testimonials.default-styles .columns-6 {
     
    173213  }
    174214}
     215
    175216.nice-testimonials.default-styles .columns-6:nth-child(6n+1) {
    176217  clear: both;
    177218}
     219
    178220@media all and (max-width: 320px) {
    179221  .nice-testimonials.default-styles .columns-7 {
     
    181223  }
    182224}
     225
    183226.nice-testimonials.default-styles .columns-7:nth-child(7n+1) {
    184227  clear: both;
    185228}
     229
    186230@media all and (max-width: 320px) {
    187231  .nice-testimonials.default-styles .columns-8 {
     
    189233  }
    190234}
     235
    191236.nice-testimonials.default-styles .columns-8:nth-child(8n+1) {
    192237  clear: both;
    193238}
     239
    194240@media all and (max-width: 320px) {
    195241  .nice-testimonials.default-styles .columns-9 {
     
    197243  }
    198244}
     245
    199246.nice-testimonials.default-styles .columns-9:nth-child(9n+1) {
    200247  clear: both;
    201248}
     249
    202250@media all and (max-width: 320px) {
    203251  .nice-testimonials.default-styles .columns-10 {
     
    205253  }
    206254}
     255
    207256.nice-testimonials.default-styles .columns-10:nth-child(10n+1) {
    208257  clear: both;
    209258}
     259
    210260@media all and (max-width: 320px) {
    211261  .nice-testimonials.default-styles .columns-11 {
     
    213263  }
    214264}
     265
    215266.nice-testimonials.default-styles .columns-11:nth-child(11n+1) {
    216267  clear: both;
    217268}
     269
    218270@media all and (max-width: 320px) {
    219271  .nice-testimonials.default-styles .columns-12 {
     
    221273  }
    222274}
     275
    223276.nice-testimonials.default-styles .columns-12:nth-child(12n+1) {
    224277  clear: both;
     
    233286  border: none;
    234287}
     288
    235289.nice-testimonials.default-styles .nice-testimonial cite.nice-testimonial-author span {
    236290  display: block;
    237291  font-style: normal;
    238292}
     293
    239294.nice-testimonials.default-styles .nice-testimonial cite.nice-testimonial-author span.author-name {
    240295  font-weight: bold;
  • nice-testimonials/trunk/readme.txt

    r1549944 r1685276  
    33Tags: testimonials, client testimonials, plugin, testimonials plugin, widget, testimonial, responsive
    44Requires at least: 3.6
    5 Tested up to: 4.7
    6 Stable tag: 1.0.1
     5Tested up to: 4.8
     6Stable tag: 1.0.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    173173== Changelog ==
    174174
     175= 1.0.2 =
     176* Fix: Obtain admin path using `ABSPATH` constant.
     177
    175178= 1.0.1 =
    176179* Specify thumbnail size when obtaining testimonial images using `nice_image()`.
Note: See TracChangeset for help on using the changeset viewer.