Changeset 1842882
- Timestamp:
- 03/19/2018 03:41:12 PM (8 years ago)
- Location:
- multiple-cropped-images/trunk/dist
- Files:
-
- 11 edited
-
MCI_Config.php (modified) (3 diffs)
-
MCI_Core.php (modified) (1 diff)
-
MCI_Meta.php (modified) (3 diffs)
-
MCI_Options.php (modified) (6 diffs)
-
MCI_Usage.php (modified) (3 diffs)
-
assets/js/mci-meta.js (modified) (12 diffs)
-
assets/js/mci-meta.min.js (modified) (1 diff)
-
config/constants.php (modified) (2 diffs)
-
config/settings.php (modified) (2 diffs)
-
templates/mci-meta.php (modified) (6 diffs)
-
templates/mci-size.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
multiple-cropped-images/trunk/dist/MCI_Config.php
r1753927 r1842882 26 26 $options = get_option($tab_id); 27 27 28 self::$config[ $tab_id] = $options ?: [];28 self::$config[$tab_id] = $options ?: []; 29 29 } 30 30 } … … 43 43 public static function get_by_key($tab_key, $field_key, $empty_allowed = true) 44 44 { 45 $value = isset(self::$config[ $tab_key ][ $field_key ]) ? self::$config[ $tab_key ][ $field_key] : '';45 $value = isset(self::$config[$tab_key][$field_key]) ? self::$config[$tab_key][$field_key] : ''; 46 46 47 47 if(!$empty_allowed && empty($value)) … … 64 64 public static function get_default_by_key($tab_key, $field_key) 65 65 { 66 foreach(self::$settings[ $tab_key]['sections'] as $section_key => $section)66 foreach(self::$settings[$tab_key]['sections'] as $section_key => $section) 67 67 { 68 if(isset($section['fields'][ $field_key]['default']))68 if(isset($section['fields'][$field_key]['default'])) 69 69 { 70 return $section['fields'][ $field_key]['default'];70 return $section['fields'][$field_key]['default']; 71 71 } 72 72 } -
multiple-cropped-images/trunk/dist/MCI_Core.php
r1841444 r1842882 282 282 self::deleteFile($directory . $id . $extension); 283 283 284 if( self::directoryIsEmpty($directory))284 if(count(glob($directory . '*')) === 0) 285 285 { 286 286 self::deleteDirectory($directory); -
multiple-cropped-images/trunk/dist/MCI_Meta.php
r1754091 r1842882 50 50 public function meta_box() 51 51 { 52 add_meta_box('mci-meta', __('MCI', 'm ultiple-cropped-images'), [52 add_meta_box('mci-meta', __('MCI', 'mci'), [ 53 53 $this, 54 54 'cb_meta_box' … … 73 73 echo '</div>'; 74 74 75 echo '<span class="button mci-add">' . __('Add', 'm ultiple-cropped-images') . '</span>';75 echo '<span class="button mci-add">' . __('Add', 'mci') . '</span>'; 76 76 } 77 77 … … 139 139 } 140 140 141 $extension = $mci_entries[ $key]['extension'];141 $extension = $mci_entries[$key]['extension']; 142 142 } 143 143 -
multiple-cropped-images/trunk/dist/MCI_Options.php
r1754091 r1842882 17 17 public function __construct() 18 18 { 19 $this->page_title = __('MCI Settings', 'multiple-cropped-images');19 $this->page_title = __('MCI Settings', MCI_LOC_DOMAIN); 20 20 $this->menu_slug = 'mci'; 21 21 $this->active_tab = isset($_GET['tab']) ? $_GET['tab'] : false; … … 98 98 public function add_admin_menu() 99 99 { 100 add_menu_page($this->page_title, __('MCI', 'm ultiple-cropped-images'), 'manage_options', $this->menu_slug, [100 add_menu_page($this->page_title, __('MCI', 'mci'), 'manage_options', $this->menu_slug, [ 101 101 $this, 102 102 'create_options_page' … … 170 170 public function cb_status_description() 171 171 { 172 echo '<p class="description">' . __('Activate the plugin for specific post types.', 'm ultiple-cropped-images') . '</p>';172 echo '<p class="description">' . __('Activate the plugin for specific post types.', 'mci') . '</p>'; 173 173 } 174 174 175 175 public function cb_post_types_description() 176 176 { 177 echo '<p class="description">' . __('Set custom sizes for each post type.', 'm ultiple-cropped-images') . '</p>';178 echo '<p class="description">' . __('All sizes are to be given in pixels.', 'm ultiple-cropped-images') . '</p>';177 echo '<p class="description">' . __('Set custom sizes for each post type.', 'mci') . '</p>'; 178 echo '<p class="description">' . __('All sizes are to be given in pixels.', 'mci') . '</p>'; 179 179 } 180 180 … … 184 184 185 185 $statuses = MCI_Config::get_by_key($this->active_tab, 'statuses'); 186 $status = isset($statuses[ $post_type->name ]) ? $statuses[ $post_type->name] : 0;186 $status = isset($statuses[$post_type->name]) ? $statuses[$post_type->name] : 0; 187 187 188 188 $name = $this->active_tab . '[statuses][' . $post_type->name . ']'; … … 202 202 $this->show_size($name, '256', '256', '128', true); 203 203 204 if(isset($sizes[ $post_type->name]))204 if(isset($sizes[$post_type->name])) 205 205 { 206 206 $name = str_replace('#POST_TYPE#', $post_type->name, $name); 207 207 208 foreach($sizes[ $post_type->name] as $id => $size)208 foreach($sizes[$post_type->name] as $id => $size) 209 209 { 210 210 $_name = str_replace('#ID#', $id, $name); … … 214 214 } 215 215 216 $id = isset($sizes[ $post_type->name ]) ? count($sizes[ $post_type->name]) : 0;217 218 echo '<span class="add button-secondary">' . __('Add', 'm ultiple-cropped-images') . '</span>';216 $id = isset($sizes[$post_type->name]) ? count($sizes[$post_type->name]) : 0; 217 218 echo '<span class="add button-secondary">' . __('Add', 'mci') . '</span>'; 219 219 echo '<span class="id">' . $id . '</span>'; 220 220 echo '<span class="post_type">' . $post_type->name . '</span>'; -
multiple-cropped-images/trunk/dist/MCI_Usage.php
r1841410 r1842882 57 57 require_once __DIR__ . '/MCI_Core.php'; 58 58 59 $post_id = get_the_ID(); 60 59 61 $atts = shortcode_atts([ 60 62 'id' => 0, 61 'post-id' => get_the_ID(),63 'post-id' => $post_id, 62 64 'size' => 'cropped' 63 65 ], $atts); … … 65 67 if($atts['id'] > 0) 66 68 { 67 $mci_entry = MCI_Core::getMCIEntry($ atts['post-id'], $atts['id']);69 $mci_entry = MCI_Core::getMCIEntry($post_id, $atts['id']); 68 70 69 71 if(empty($mci_entry)) … … 71 73 return ''; 72 74 } 75 73 76 74 77 $src = isset($mci_entry[$atts['size']]) ? $mci_entry[$atts['size']] : $mci_entry['cropped']; -
multiple-cropped-images/trunk/dist/assets/js/mci-meta.js
r1753911 r1842882 4 4 5 5 let $mci_meta = $('#mci-meta'); 6 let id = getBiggestID();7 let croppers = [];6 let id = getBiggestID(); 7 let croppers = []; 8 8 9 9 $mci_meta.find('.sortable').sortable({ … … 13 13 $mci_meta.find('.mci-add').click((e) => 14 14 { 15 let $this = $(e.currentTarget);15 let $this = $(e.currentTarget); 16 16 let $container = $this.prevAll('.sortable'); 17 let $mci = $container.find('.dummy').clone();18 let mci_html = $mci[0].outerHTML.replace(/#ID#/g, ++id);17 let $mci = $container.find('.dummy').clone(); 18 let mci_html = $mci[0].outerHTML.replace(/#ID#/g, ++id); 19 19 20 20 let $new_mci = $(mci_html).removeClass('dummy').appendTo($container); … … 38 38 { 39 39 let $this = $(e.currentTarget); 40 let $mci = $this.closest('.mci');41 let id = getID($mci);40 let $mci = $this.closest('.mci'); 41 let id = getID($mci); 42 42 43 43 initCropper(id, $mci); … … 48 48 { 49 49 let $this = $(e.currentTarget); 50 let $mci = $this.closest('.mci');51 let id = getID($mci);50 let $mci = $this.closest('.mci'); 51 let id = getID($mci); 52 52 53 53 initCropper(id, $mci); … … 66 66 { 67 67 let $this = $(e.currentTarget); 68 let $mci = $this.closest('.mci');69 let id = getID($mci);68 let $mci = $this.closest('.mci'); 69 let id = getID($mci); 70 70 71 71 let size = getSelectedSize($mci); 72 let ar = getAspectRatio(size.width, size.height);72 let ar = getAspectRatio(size.width, size.height); 73 73 74 74 croppers[id].setAspectRatio(ar); … … 83 83 let $mci_image = $(v).find('.mci-image'); 84 84 85 if ($mci_image.attr('src') !== '')85 if ($mci_image.attr('src') !== '') 86 86 { 87 87 let size = getSelectedSize($(v)); 88 let id = getID($(v));88 let id = getID($(v)); 89 89 let data = croppers[id].getCroppedCanvas({ 90 width: size.width,90 width: size.width, 91 91 height: size.height 92 92 }).toDataURL(); … … 108 108 { 109 109 let $this = $(e.currentTarget); 110 let $mci = $this.closest('.mci');111 let id = getID($mci);110 let $mci = $this.closest('.mci'); 111 let id = getID($mci); 112 112 113 113 croppers[id].destroy(); … … 120 120 $(document).on('click', '.info-shortcode', (e) => 121 121 { 122 let $this = $(e.currentTarget);122 let $this = $(e.currentTarget); 123 123 let $notification = $this.find('.notification'); 124 124 125 125 $this.find('input')[0].select(); 126 126 127 if (!$notification.is(':animated') && document.execCommand('copy'))127 if (!$notification.is(':animated') && document.execCommand('copy')) 128 128 { 129 129 $notification.fadeIn(600, () => … … 139 139 function initCropper(id, $mci) 140 140 { 141 if (croppers[id] === undefined)141 if (croppers[id] === undefined) 142 142 { 143 143 croppers[id] = new Cropper($mci.find('.mci-image')[0], { … … 151 151 { 152 152 let size = getSelectedSize($mci); 153 let ar = getAspectRatio(size.width, size.height);154 155 if (!$mci.find('.mci-body').is(':visible'))153 let ar = getAspectRatio(size.width, size.height); 154 155 if (!$mci.find('.mci-body').is(':visible')) 156 156 { 157 157 toggleEntry($mci, 0); … … 171 171 172 172 return { 173 width: Math.ceil(parseFloat(size.width)) + 1,174 height: Math.ceil(parseFloat(size.height)) + 1,173 width: Math.ceil(parseFloat(size.width)), 174 height: Math.ceil(parseFloat(size.height)), 175 175 thumb_size: Math.ceil(parseFloat(size.thumb_size)) 176 176 }; … … 202 202 { 203 203 $('html, body').animate({ 204 scrollTop: $object.offset().top - 32205 },206 'slow');204 scrollTop: $object.offset().top - 32 205 }, 206 'slow'); 207 207 } 208 208 -
multiple-cropped-images/trunk/dist/assets/js/mci-meta.min.js
r1753911 r1842882 1 "use strict";jQuery(function(e){function t(e,t){void 0===l[e]&&(l[e]=new Cropper(t.find(".mci-image")[0],{viewMode:2,dragMode:"move"}))}function i(e,t,i){var o=n(t),m=c(o.width,o.height);t.find(".mci-body").is(":visible")||r(t,0),l[e].replace(i),l[e].setAspectRatio(m),t.find(".mci-controls-container").show(),a(t)}function n(e){var t=JSON.parse(e.find(".mci-size option:selected").val());return{width:Math.ceil(parseFloat(t.width)) +1,height:Math.ceil(parseFloat(t.height))+1,thumb_size:Math.ceil(parseFloat(t.thumb_size))}}function c(e,t){return 0===e||0===t?0:e/t}function o(e){return parseInt(e.find(".mci-image-id").val())}function a(t){e("html, body").animate({scrollTop:t.offset().top-32},"slow")}function r(e,t){e.toggleClass("toggled").closest(".mci").find(".mci-body").slideToggle(t)}var m=e("#mci-meta"),d=function(){var t=[];return e(".mci").not(".dummy").each(function(i,n){t.push(o(e(n)))}),t.length>0?Math.max.apply(Math,t):0}(),l=[];m.find(".sortable").sortable({connectWith:e(".mci").not(".dummy")}),m.find(".mci-add").click(function(t){var i=e(t.currentTarget).prevAll(".sortable"),n=i.find(".dummy").clone()[0].outerHTML.replace(/#ID#/g,++d);r(e(n).removeClass("dummy").appendTo(i).find(".mci-toggle"),0)}),e(document).on("click",".mci-remove",function(t){e(t.currentTarget).closest(".mci").remove()}),e(document).on("change keyup paste",".mci-title",function(t){var i=e(t.currentTarget);i.closest(".mci").find(".info-title").html(i.val())}),e(document).on("click",".mci-recrop:not(.disabled)",function(n){var c=e(n.currentTarget).closest(".mci"),a=o(c);t(a,c),i(a,c,c.find(".mci-image-original").val())}),m.on("change",".mci-upload",function(n){var c=e(n.currentTarget),a=c.closest(".mci"),r=o(a);t(r,a);var m=new FileReader;m.onload=function(e){i(r,a,e.target.result)},m.readAsDataURL(c[0].files[0])}),e(document).on("change","select",function(t){var i=e(t.currentTarget).closest(".mci"),a=o(i),r=n(i),m=c(r.width,r.height);l[a].setAspectRatio(m)}),e(document).on("submit","form",function(){e(".mci.dummy").remove(),e(".mci").not(".dummy").each(function(t,i){if(""!==e(i).find(".mci-image").attr("src")){var c=n(e(i)),a=o(e(i)),r=l[a].getCroppedCanvas({width:c.width,height:c.height}).toDataURL();e(i).find(".mci-image-base64").val(r),e(i).find(".mci-image-width").val(c.width),e(i).find(".mci-image-height").val(c.height),e(i).find(".mci-image-thumb_size").val(c.thumb_size)}})}),e(document).on("click",".mci-toggle",function(t){r(e(t.currentTarget),200)}),e(document).on("click",".cancel",function(t){var i=e(t.currentTarget).closest(".mci"),n=o(i);l[n].destroy(),i.find(".mci-controls-container").hide(),i.find(".mci-upload").val(null)}),e(document).on("click",".info-shortcode",function(t){var i=e(t.currentTarget),n=i.find(".notification");i.find("input")[0].select(),!n.is(":animated")&&document.execCommand("copy")&&n.fadeIn(600,function(){setTimeout(function(){n.fadeOut(500)},500)})})});1 "use strict";jQuery(function(e){function t(e,t){void 0===l[e]&&(l[e]=new Cropper(t.find(".mci-image")[0],{viewMode:2,dragMode:"move"}))}function i(e,t,i){var o=n(t),m=c(o.width,o.height);t.find(".mci-body").is(":visible")||r(t,0),l[e].replace(i),l[e].setAspectRatio(m),t.find(".mci-controls-container").show(),a(t)}function n(e){var t=JSON.parse(e.find(".mci-size option:selected").val());return{width:Math.ceil(parseFloat(t.width)),height:Math.ceil(parseFloat(t.height)),thumb_size:Math.ceil(parseFloat(t.thumb_size))}}function c(e,t){return 0===e||0===t?0:e/t}function o(e){return parseInt(e.find(".mci-image-id").val())}function a(t){e("html, body").animate({scrollTop:t.offset().top-32},"slow")}function r(e,t){e.toggleClass("toggled").closest(".mci").find(".mci-body").slideToggle(t)}var m=e("#mci-meta"),d=function(){var t=[];return e(".mci").not(".dummy").each(function(i,n){t.push(o(e(n)))}),t.length>0?Math.max.apply(Math,t):0}(),l=[];m.find(".sortable").sortable({connectWith:e(".mci").not(".dummy")}),m.find(".mci-add").click(function(t){var i=e(t.currentTarget).prevAll(".sortable"),n=i.find(".dummy").clone()[0].outerHTML.replace(/#ID#/g,++d);r(e(n).removeClass("dummy").appendTo(i).find(".mci-toggle"),0)}),e(document).on("click",".mci-remove",function(t){e(t.currentTarget).closest(".mci").remove()}),e(document).on("change keyup paste",".mci-title",function(t){var i=e(t.currentTarget);i.closest(".mci").find(".info-title").html(i.val())}),e(document).on("click",".mci-recrop:not(.disabled)",function(n){var c=e(n.currentTarget).closest(".mci"),a=o(c);t(a,c),i(a,c,c.find(".mci-image-original").val())}),m.on("change",".mci-upload",function(n){var c=e(n.currentTarget),a=c.closest(".mci"),r=o(a);t(r,a);var m=new FileReader;m.onload=function(e){i(r,a,e.target.result)},m.readAsDataURL(c[0].files[0])}),e(document).on("change","select",function(t){var i=e(t.currentTarget).closest(".mci"),a=o(i),r=n(i),m=c(r.width,r.height);l[a].setAspectRatio(m)}),e(document).on("submit","form",function(){e(".mci.dummy").remove(),e(".mci").not(".dummy").each(function(t,i){if(""!==e(i).find(".mci-image").attr("src")){var c=n(e(i)),a=o(e(i)),r=l[a].getCroppedCanvas({width:c.width,height:c.height}).toDataURL();e(i).find(".mci-image-base64").val(r),e(i).find(".mci-image-width").val(c.width),e(i).find(".mci-image-height").val(c.height),e(i).find(".mci-image-thumb_size").val(c.thumb_size)}})}),e(document).on("click",".mci-toggle",function(t){r(e(t.currentTarget),200)}),e(document).on("click",".cancel",function(t){var i=e(t.currentTarget).closest(".mci"),n=o(i);l[n].destroy(),i.find(".mci-controls-container").hide(),i.find(".mci-upload").val(null)}),e(document).on("click",".info-shortcode",function(t){var i=e(t.currentTarget),n=i.find(".notification");i.find("input")[0].select(),!n.is(":animated")&&document.execCommand("copy")&&n.fadeIn(600,function(){setTimeout(function(){n.fadeOut(500)},500)})})}); -
multiple-cropped-images/trunk/dist/config/constants.php
r1841444 r1842882 7 7 /* ---------- DIRECTORIES ---------- */ 8 8 define('MCI_DIR_PLUGIN', plugin_dir_path(__DIR__)); 9 define('MCI_DIR_IMAGES', wp_upload_dir()['basedir'] . '/mci/');9 define('MCI_DIR_IMAGES', MCI_DIR_PLUGIN . 'images/'); 10 10 define('MCI_DIR_ORIGINALS', 'originals/'); 11 11 define('MCI_DIR_RESIZED', 'resized/'); … … 20 20 define('MCI_URL_CSS', MCI_URL_ASSETS . 'css/'); 21 21 define('MCI_URL_JS', MCI_URL_ASSETS . 'js/'); 22 define('MCI_URL_IMAGES', wp_upload_dir()['baseurl'] . '/mci/'); 22 define('MCI_URL_IMAGES', MCI_URL_PLUGIN . 'images/'); 23 24 25 /* ---------- LOCALIZATION ----------*/ 26 define('MCI_LOC_DOMAIN', MCI_LOC_DOMAIN); 23 27 24 28 -
multiple-cropped-images/trunk/dist/config/settings.php
r1754091 r1842882 5 5 return [ 6 6 'mci-tab-general' => [ 7 'title' => __('General', 'm ultiple-cropped-images'),7 'title' => __('General', 'mci'), 8 8 'sections' => [ 9 9 'mci-section-status' => [ 10 'title' => __('Status', 'm ultiple-cropped-images'),10 'title' => __('Status', 'mci'), 11 11 'callback' => 'cb_status_description', 12 12 'fields' => array_map(function($post_type) … … 25 25 ], 26 26 'mci-tab-sizes' => [ 27 'title' => __('Sizes', 'm ultiple-cropped-images'),27 'title' => __('Sizes', 'mci'), 28 28 'sections' => [ 29 29 'mci-section-post-types' => [ 30 'title' => __('Post Types', 'm ultiple-cropped-images'),30 'title' => __('Post Types', 'mci'), 31 31 'callback' => 'cb_post_types_description', 32 32 'fields' => array_map(function($post_type) -
multiple-cropped-images/trunk/dist/templates/mci-meta.php
r1754091 r1842882 19 19 <div class="info-id">ID: <?php echo $id; ?></div> 20 20 <div class="info-shortcode">[mci id=<?php echo $id; ?>]<input value="[mci id=<?php echo $id; ?>]"> 21 <span class="notification"><?php _e('Copied to Clipboard', 'multiple-cropped-images'); ?></span>21 <span class="notification"><?php _e('Copied to Clipboard', MCI_LOC_DOMAIN); ?></span> 22 22 </div> 23 23 </div> … … 25 25 <span class="mci-toggle"></span> 26 26 <label class="mci-control mci-upload-label"> 27 <input id="mci-upload-<?php echo $id; ?>" type="file" name="mci[<?php echo $id; ?>][image]" class="mci-upload" accept="image/jpeg, image/png"> 27 <input id="mci-upload-<?php echo $id; ?>" type="file" name="mci[<?php echo $id; ?>][image]" 28 class="mci-upload" accept="image/jpeg, image/png"> 28 29 </label> 29 30 <span class="mci-control mci-recrop<?php echo $dummy ? ' disabled' : ''; ?>"></span> … … 34 35 35 36 <div class="mci-controls-container"> 36 <label for="mci-size-<?php echo $id; ?>" class="mci-size-label"><?php _e('Size', 'multiple-cropped-images'); ?></label>37 <label for="mci-size-<?php echo $id; ?>" class="mci-size-label"><?php _e('Size', MCI_LOC_DOMAIN); ?></label> 37 38 <select id="mci-size-<?php echo $id; ?>" title="" class="mci-size"> 38 39 … … 44 45 45 46 </select> 46 <span class="button cancel"><?php _e('Cancel', 'multiple-cropped-images'); ?></span>47 <span class="button cancel"><?php _e('Cancel', MCI_LOC_DOMAIN); ?></span> 47 48 </div> 48 49 … … 52 53 <input type="hidden" name="mci[<?php echo $id; ?>][id]" class="mci-image-id" value="<?php echo $id; ?>"> 53 54 <input type="hidden" name="mci[<?php echo $id; ?>][base64]" class="mci-image-base64"> 54 <input type="hidden" name="mci[<?php echo $id; ?>][width]" class="mci-image-width" value="<?php echo $width; ?>"> 55 <input type="hidden" name="mci[<?php echo $id; ?>][height]" class="mci-image-height" value="<?php echo $height; ?>"> 56 <input type="hidden" name="mci[<?php echo $id; ?>][thumb_size]" class="mci-image-thumb_size" value="<?php echo $thumb_size; ?>"> 55 <input type="hidden" name="mci[<?php echo $id; ?>][width]" class="mci-image-width" 56 value="<?php echo $width; ?>"> 57 <input type="hidden" name="mci[<?php echo $id; ?>][height]" class="mci-image-height" 58 value="<?php echo $height; ?>"> 59 <input type="hidden" name="mci[<?php echo $id; ?>][thumb_size]" class="mci-image-thumb_size" 60 value="<?php echo $thumb_size; ?>"> 57 61 </div> 58 62 … … 60 64 61 65 <div> 62 <input class="mci-title" name="mci[<?php echo $id; ?>][title]" placeholder="<?php _e('Title', 'multiple-cropped-images'); ?>" value="<?php echo $title; ?>"> 63 <textarea name="mci[<?php echo $id; ?>][text]" placeholder="<?php _e('Text', 'multiple-cropped-images'); ?>" rows="6"><?php echo $text; ?></textarea> 66 <input class="mci-title" name="mci[<?php echo $id; ?>][title]" 67 placeholder="<?php _e('Title', MCI_LOC_DOMAIN); ?>" value="<?php echo $title; ?>"> 68 <textarea name="mci[<?php echo $id; ?>][text]" placeholder="<?php _e('Text', MCI_LOC_DOMAIN); ?>" 69 rows="6"><?php echo $text; ?></textarea> 64 70 </div> 65 71 66 72 <div> 67 <input name="mci[<?php echo $id; ?>][seo_title]" placeholder="<?php _e('SEO Title', 'multiple-cropped-images'); ?>" value="<?php echo $seo_title; ?>"> 68 <textarea name="mci[<?php echo $id; ?>][seo_alt]" placeholder="<?php _e('SEO Alt', 'multiple-cropped-images'); ?>" rows="6"><?php echo $seo_alt; ?></textarea> 73 <input name="mci[<?php echo $id; ?>][seo_title]" placeholder="<?php _e('SEO Title', MCI_LOC_DOMAIN); ?>" 74 value="<?php echo $seo_title; ?>"> 75 <textarea name="mci[<?php echo $id; ?>][seo_alt]" placeholder="<?php _e('SEO Alt', MCI_LOC_DOMAIN); ?>" 76 rows="6"><?php echo $seo_alt; ?></textarea> 69 77 </div> 70 78 -
multiple-cropped-images/trunk/dist/templates/mci-size.php
r1754091 r1842882 2 2 3 3 <label> 4 <?php _e('Width', 'multiple-cropped-images'); ?>:4 <?php _e('Width', MCI_LOC_DOMAIN); ?>: 5 5 <input type="number" min="1" max="2560" name="<?php echo $name; ?>[width]" value="<?php echo $width; ?>"> 6 6 </label> 7 7 8 8 <label> 9 <?php _e('Height', 'multiple-cropped-images'); ?>:9 <?php _e('Height', MCI_LOC_DOMAIN); ?>: 10 10 <input type="number" min="1" max="2560" name="<?php echo $name; ?>[height]" value="<?php echo $height; ?>"> 11 11 </label> 12 12 13 13 <label> 14 <?php _e('Max. Thumbnail Size', 'multiple-cropped-images'); ?>: 15 <input type="number" min="1" max="2560" name="<?php echo $name; ?>[thumb_size]" value="<?php echo $thumb_size; ?>"> 14 <?php _e('Max. Thumbnail Size', MCI_LOC_DOMAIN); ?>: 15 <input type="number" min="1" max="2560" name="<?php echo $name; ?>[thumb_size]" 16 value="<?php echo $thumb_size; ?>"> 16 17 </label> 17 18
Note: See TracChangeset
for help on using the changeset viewer.