Changeset 1583570
- Timestamp:
- 01/27/2017 02:06:40 PM (9 years ago)
- Location:
- shokola-custom-white-label
- Files:
-
- 19 added
- 5 edited
-
tags/1.1.0 (added)
-
tags/1.1.0/admin (added)
-
tags/1.1.0/admin/css (added)
-
tags/1.1.0/admin/css/admin_style.css (added)
-
tags/1.1.0/admin/js (added)
-
tags/1.1.0/admin/js/admin_script.js (added)
-
tags/1.1.0/index.html (added)
-
tags/1.1.0/languages (added)
-
tags/1.1.0/languages/shokola-custom-whitelabel-fr_FR.mo (added)
-
tags/1.1.0/languages/shokola-custom-whitelabel-fr_FR.po (added)
-
tags/1.1.0/languages/shokola-custom-whitelabel.mo (added)
-
tags/1.1.0/languages/shokola-custom-whitelabel.po (added)
-
tags/1.1.0/languages/shokola-custom-whitelabel.pot (added)
-
tags/1.1.0/public (added)
-
tags/1.1.0/public/js (added)
-
tags/1.1.0/public/js/script.js (added)
-
tags/1.1.0/readme.txt (added)
-
tags/1.1.0/shokola-custom-whitelabel.php (added)
-
tags/1.1.0/uninstall.php (added)
-
trunk/README.md (modified) (1 diff)
-
trunk/admin/css/admin_style.css (modified) (1 diff)
-
trunk/admin/js/admin_script.js (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/shokola-custom-whitelabel.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shokola-custom-white-label/trunk/README.md
r1562121 r1583570 63 63 64 64 ##Changelog## 65 66 ###1.1.0 ### 67 68 Release Date: January 27th, 2017 69 70 * Add image preview 71 * Set WP version visible for admin users 65 72 66 73 ###1.0.11 ### -
shokola-custom-white-label/trunk/admin/css/admin_style.css
r1507460 r1583570 1 .scwl-wrap{ 2 3 } 4 .scwl-wrap .image-preview{ 5 width: 150px; 6 height: 150px; 7 } 8 .scwl-wrap .image-preview img{ 9 max-width: 100%; 10 height: auto; 11 } 12 1 13 li#wp-admin-bar-wp-logo { 2 14 display: none; -
shokola-custom-white-label/trunk/admin/js/admin_script.js
r1508028 r1583570 5 5 { 6 6 var the_elmt = document.getElementById(the_id); 7 var the_img_preview = document.getElementById(the_id + '_image_preview'); 7 8 8 9 media_uploader = wp.media({ … … 20 21 21 22 the_elmt.value = image_url; 23 the_img_preview.src = image_url; 22 24 23 25 }); -
shokola-custom-white-label/trunk/readme.txt
r1562121 r1583570 44 44 45 45 == Changelog == 46 47 = 1.1.0 = 48 49 Release Date: January 27th, 2017 50 51 * Add image preview 52 * Set WP version visible for admin users 46 53 47 54 = 1.0.11 = -
shokola-custom-white-label/trunk/shokola-custom-whitelabel.php
r1562121 r1583570 29 29 class Shokola_Custom_WhiteLabel { 30 30 31 private $version = '1. 0.11';31 private $version = '1.1.0'; 32 32 private $plugin_slug = 'shokola-custom-whitelabel'; 33 33 … … 153 153 $settings = $this->shokola_custom_get_settings(); 154 154 ?> 155 <div class="wrap ">155 <div class="wrap scwl-wrap"> 156 156 <h2><?php echo esc_html( get_admin_page_title() ); ?></h2> 157 157 … … 216 216 217 217 218 <p class="description" 219 id="tagline-description"><?php echo $setting['description']; ?></p> 218 <p class="description" id="tagline-description"><?php echo $setting['description']; ?></p> 219 <?php if ( $setting['type'] == 'file' && function_exists('wp_enqueue_media')) : ?> 220 <p class="description"><?php echo __('Image preview', $this->plugin_slug); ?> :</p> 221 <div class="image-preview"> 222 <img src="<?php echo $option_value; ?>" alt="Image preview" id="<?php echo $setting['key']; ?>_image_preview"> 223 </div> 224 <?php endif; ?> 225 220 226 </td> 221 227 </tr> … … 359 365 360 366 /** 361 * BO - Footer - Remove version number for non Shokolauser367 * BO - Footer - Remove version number for non admin user 362 368 */ 363 369 public function remove_version_footer() { 364 remove_filter( 'update_footer', 'core_update_footer' ); 370 if(!is_admin()) 371 { 372 remove_filter( 'update_footer', 'core_update_footer' ); 373 } 365 374 } 366 375 … … 400 409 $theme_dark = get_option( 'shokola_theme_dark' ); 401 410 $background_cover = get_option( 'shokola_background_cover' ); 402 if ( $data = getimagesize( $logo_src ) ) { 411 412 if ( file_exists($logo_src) && $data = getimagesize( $logo_src ) ) { 403 413 $logo_src_width = isset( $data[0] ) ? $data[0] : $default_width; 404 414 $logo_src_height = isset( $data[1] ) ? $data[1] : $default_height;
Note: See TracChangeset
for help on using the changeset viewer.