Changeset 1685276
- Timestamp:
- 06/26/2017 01:32:41 AM (9 years ago)
- Location:
- nice-testimonials/trunk
- Files:
-
- 4 edited
-
lib/plugin-api/functions.php (modified) (1 diff)
-
nice-testimonials.php (modified) (2 diffs)
-
public/assets/css/nice-testimonials.css (modified) (18 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nice-testimonials/trunk/lib/plugin-api/functions.php
r1471106 r1685276 161 161 } 162 162 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 172 180 $admin_path = apply_filters( 'nice_testimonials_get_admin_path', $admin_path ); 173 181 -
nice-testimonials/trunk/nice-testimonials.php
r1528434 r1685276 7 7 * @license GPL-2.0+ 8 8 * @link https://nicethemes.com/product/nice-testimonials 9 * @copyright 2016 NiceThemes9 * @copyright 2016-2017 NiceThemes 10 10 * 11 11 * @wordpress-plugin … … 13 13 * Plugin URI: https://nicethemes.com/product/nice-testimonials 14 14 * Description: Show testimonials from your customers in your WordPress site in a beautiful and organized way. 15 * Version: 1.0. 115 * Version: 1.0.2 16 16 * Author: NiceThemes 17 17 * Author URI: http://nicethemes.com -
nice-testimonials/trunk/public/assets/css/nice-testimonials.css
r1471106 r1685276 18 18 padding: 0; 19 19 } 20 20 21 .nice-testimonials.widget.default-styles .nice-testimonial { 21 22 overflow: hidden; 22 23 margin-bottom: 1.5em; 23 24 } 25 24 26 .nice-testimonials.widget.default-styles .nice-testimonial-thumb { 25 27 float: left; 26 28 margin-right: 1em; 27 29 } 30 28 31 .nice-testimonials.widget.default-styles .nice-testimonial-content { 29 32 overflow: hidden; 30 33 margin-bottom: 1em; 31 34 } 35 32 36 .nice-testimonials.widget.default-styles .nice-testimonial .nice-testimonial-author { 33 37 clear: both; … … 43 47 margin-right: -0.23px; 44 48 } 49 45 50 .nice-testimonials.default-styles.grid:after { 46 51 content: ""; … … 48 53 clear: both; 49 54 } 55 50 56 .nice-testimonials.default-styles.grid-pad { 51 57 padding: 20px 0 20px 20px; 52 58 } 59 53 60 .nice-testimonials.default-styles.grid-pad > [class*='col-']:last-of-type { 54 61 padding-right: 20px; 55 62 } 63 56 64 .nice-testimonials.default-styles.grid .nice-testimonial.first, .nice-testimonials.default-styles.grid-pad .nice-testimonial.first { 57 65 clear: both; 58 66 } 67 59 68 .nice-testimonials.default-styles.grid .nice-testimonial .nice-testimonial-content, .nice-testimonials.default-styles.grid-pad .nice-testimonial .nice-testimonial-content { 60 69 overflow: hidden; … … 62 71 margin-bottom: 1em; 63 72 } 73 64 74 .nice-testimonials.default-styles.grid .nice-testimonial .nice-testimonial-thumb, .nice-testimonials.default-styles.grid-pad .nice-testimonial .nice-testimonial-thumb { 65 75 float: left; 66 76 margin-right: 1em; 67 77 } 78 68 79 .nice-testimonials.default-styles.grid .nice-testimonial-thumb, .nice-testimonials.default-styles.grid-pad .nice-testimonial-thumb { 69 80 overflow: hidden; 70 81 position: relative; 71 82 } 83 72 84 .nice-testimonials.default-styles.grid .nice-testimonial-thumb img, .nice-testimonials.default-styles.grid-pad .nice-testimonial-thumb img { 73 85 max-width: 100%; 74 86 } 87 75 88 .nice-testimonials.default-styles.grid .nice-testimonial-title h3, .nice-testimonials.default-styles.grid-pad .nice-testimonial-title h3 { 76 89 margin: 10px 0 20px; 77 90 } 91 78 92 .nice-testimonials.default-styles.grid .nice-testimonial-title h3 a, .nice-testimonials.default-styles.grid-pad .nice-testimonial-title h3 a { 79 93 text-decoration: none; 80 94 } 95 81 96 .nice-testimonials.default-styles .row:after { 82 97 content: ""; … … 84 99 clear: both; 85 100 } 101 86 102 .nice-testimonials.default-styles .row { 87 103 padding-bottom: 3%; 88 104 } 105 89 106 .nice-testimonials.default-styles [class*='columns-'] { 90 107 box-sizing: border-box; … … 94 111 padding-left: 3%; 95 112 } 113 96 114 .nice-testimonials.default-styles [class*='columns-']:last-of-type { 97 115 padding-right: 0; 98 116 } 117 99 118 .nice-testimonials.default-styles .col-2-3 { 100 119 width: 66.66%; 101 120 } 121 102 122 .nice-testimonials.default-styles .columns-1 { 103 123 width: 100%; 104 124 } 125 105 126 .nice-testimonials.default-styles .columns-2 { 106 127 width: 50%; 107 128 } 129 108 130 .nice-testimonials.default-styles .columns-3 { 109 131 width: 33.33%; 110 132 } 133 111 134 .nice-testimonials.default-styles .columns-4 { 112 135 width: 25%; 113 136 } 137 114 138 .nice-testimonials.default-styles .columns-5 { 115 139 width: 20%; 116 140 } 141 117 142 .nice-testimonials.default-styles .columns-6 { 118 143 width: 16.66%; 119 144 } 145 120 146 .nice-testimonials.default-styles .columns-7 { 121 147 width: 14.28%; 122 148 } 149 123 150 .nice-testimonials.default-styles .columns-8 { 124 151 width: 12.5%; 125 152 } 153 126 154 .nice-testimonials.default-styles .columns-9 { 127 155 width: 11.11%; 128 156 } 157 129 158 .nice-testimonials.default-styles .columns-10 { 130 159 width: 10%; 131 160 } 161 132 162 .nice-testimonials.default-styles .columns-11 { 133 163 width: 9.09%; 134 164 } 165 135 166 .nice-testimonials.default-styles .columns-12 { 136 167 width: 8.33%; 137 168 } 169 138 170 @media all and (max-width: 320px) { 139 171 .nice-testimonials.default-styles .columns-2 { … … 141 173 } 142 174 } 175 143 176 .nice-testimonials.default-styles .columns-2:nth-child(2n+1) { 144 177 clear: both; 145 178 } 179 146 180 @media all and (max-width: 320px) { 147 181 .nice-testimonials.default-styles .columns-3 { … … 149 183 } 150 184 } 185 151 186 .nice-testimonials.default-styles .columns-3:nth-child(3n+1) { 152 187 clear: both; 153 188 } 189 154 190 @media all and (max-width: 320px) { 155 191 .nice-testimonials.default-styles .columns-4 { … … 157 193 } 158 194 } 195 159 196 .nice-testimonials.default-styles .columns-4:nth-child(4n+1) { 160 197 clear: both; 161 198 } 199 162 200 @media all and (max-width: 320px) { 163 201 .nice-testimonials.default-styles .columns-5 { … … 165 203 } 166 204 } 205 167 206 .nice-testimonials.default-styles .columns-5:nth-child(5n+1) { 168 207 clear: both; 169 208 } 209 170 210 @media all and (max-width: 320px) { 171 211 .nice-testimonials.default-styles .columns-6 { … … 173 213 } 174 214 } 215 175 216 .nice-testimonials.default-styles .columns-6:nth-child(6n+1) { 176 217 clear: both; 177 218 } 219 178 220 @media all and (max-width: 320px) { 179 221 .nice-testimonials.default-styles .columns-7 { … … 181 223 } 182 224 } 225 183 226 .nice-testimonials.default-styles .columns-7:nth-child(7n+1) { 184 227 clear: both; 185 228 } 229 186 230 @media all and (max-width: 320px) { 187 231 .nice-testimonials.default-styles .columns-8 { … … 189 233 } 190 234 } 235 191 236 .nice-testimonials.default-styles .columns-8:nth-child(8n+1) { 192 237 clear: both; 193 238 } 239 194 240 @media all and (max-width: 320px) { 195 241 .nice-testimonials.default-styles .columns-9 { … … 197 243 } 198 244 } 245 199 246 .nice-testimonials.default-styles .columns-9:nth-child(9n+1) { 200 247 clear: both; 201 248 } 249 202 250 @media all and (max-width: 320px) { 203 251 .nice-testimonials.default-styles .columns-10 { … … 205 253 } 206 254 } 255 207 256 .nice-testimonials.default-styles .columns-10:nth-child(10n+1) { 208 257 clear: both; 209 258 } 259 210 260 @media all and (max-width: 320px) { 211 261 .nice-testimonials.default-styles .columns-11 { … … 213 263 } 214 264 } 265 215 266 .nice-testimonials.default-styles .columns-11:nth-child(11n+1) { 216 267 clear: both; 217 268 } 269 218 270 @media all and (max-width: 320px) { 219 271 .nice-testimonials.default-styles .columns-12 { … … 221 273 } 222 274 } 275 223 276 .nice-testimonials.default-styles .columns-12:nth-child(12n+1) { 224 277 clear: both; … … 233 286 border: none; 234 287 } 288 235 289 .nice-testimonials.default-styles .nice-testimonial cite.nice-testimonial-author span { 236 290 display: block; 237 291 font-style: normal; 238 292 } 293 239 294 .nice-testimonials.default-styles .nice-testimonial cite.nice-testimonial-author span.author-name { 240 295 font-weight: bold; -
nice-testimonials/trunk/readme.txt
r1549944 r1685276 3 3 Tags: testimonials, client testimonials, plugin, testimonials plugin, widget, testimonial, responsive 4 4 Requires at least: 3.6 5 Tested up to: 4. 76 Stable tag: 1.0. 15 Tested up to: 4.8 6 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 173 173 == Changelog == 174 174 175 = 1.0.2 = 176 * Fix: Obtain admin path using `ABSPATH` constant. 177 175 178 = 1.0.1 = 176 179 * Specify thumbnail size when obtaining testimonial images using `nice_image()`.
Note: See TracChangeset
for help on using the changeset viewer.