Plugin Directory

Changeset 1842882


Ignore:
Timestamp:
03/19/2018 03:41:12 PM (8 years ago)
Author:
webtimal
Message:

v 1.1.0 adjustments

Location:
multiple-cropped-images/trunk/dist
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • multiple-cropped-images/trunk/dist/MCI_Config.php

    r1753927 r1842882  
    2626                $options = get_option($tab_id);
    2727
    28                 self::$config[ $tab_id ] = $options ?: [];
     28                self::$config[$tab_id] = $options ?: [];
    2929            }
    3030        }
     
    4343        public static function get_by_key($tab_key, $field_key, $empty_allowed = true)
    4444        {
    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] : '';
    4646
    4747            if(!$empty_allowed && empty($value))
     
    6464        public static function get_default_by_key($tab_key, $field_key)
    6565        {
    66             foreach(self::$settings[ $tab_key ]['sections'] as $section_key => $section)
     66            foreach(self::$settings[$tab_key]['sections'] as $section_key => $section)
    6767            {
    68                 if(isset($section['fields'][ $field_key ]['default']))
     68                if(isset($section['fields'][$field_key]['default']))
    6969                {
    70                     return $section['fields'][ $field_key ]['default'];
     70                    return $section['fields'][$field_key]['default'];
    7171                }
    7272            }
  • multiple-cropped-images/trunk/dist/MCI_Core.php

    r1841444 r1842882  
    282282                self::deleteFile($directory . $id . $extension);
    283283
    284                 if(self::directoryIsEmpty($directory))
     284                if(count(glob($directory . '*')) === 0)
    285285                {
    286286                    self::deleteDirectory($directory);
  • multiple-cropped-images/trunk/dist/MCI_Meta.php

    r1754091 r1842882  
    5050        public function meta_box()
    5151        {
    52             add_meta_box('mci-meta', __('MCI', 'multiple-cropped-images'), [
     52            add_meta_box('mci-meta', __('MCI', 'mci'), [
    5353                $this,
    5454                'cb_meta_box'
     
    7373            echo '</div>';
    7474
    75             echo '<span class="button mci-add">' . __('Add', 'multiple-cropped-images') . '</span>';
     75            echo '<span class="button mci-add">' . __('Add', 'mci') . '</span>';
    7676        }
    7777
     
    139139                    }
    140140
    141                     $extension = $mci_entries[ $key ]['extension'];
     141                    $extension = $mci_entries[$key]['extension'];
    142142                }
    143143
  • multiple-cropped-images/trunk/dist/MCI_Options.php

    r1754091 r1842882  
    1717        public function __construct()
    1818        {
    19             $this->page_title = __('MCI Settings', 'multiple-cropped-images');
     19            $this->page_title = __('MCI Settings', MCI_LOC_DOMAIN);
    2020            $this->menu_slug  = 'mci';
    2121            $this->active_tab = isset($_GET['tab']) ? $_GET['tab'] : false;
     
    9898        public function add_admin_menu()
    9999        {
    100             add_menu_page($this->page_title, __('MCI', 'multiple-cropped-images'), 'manage_options', $this->menu_slug, [
     100            add_menu_page($this->page_title, __('MCI', 'mci'), 'manage_options', $this->menu_slug, [
    101101                $this,
    102102                'create_options_page'
     
    170170        public function cb_status_description()
    171171        {
    172             echo '<p class="description">' . __('Activate the plugin for specific post types.', 'multiple-cropped-images') . '</p>';
     172            echo '<p class="description">' . __('Activate the plugin for specific post types.', 'mci') . '</p>';
    173173        }
    174174
    175175        public function cb_post_types_description()
    176176        {
    177             echo '<p class="description">' . __('Set custom sizes for each post type.', 'multiple-cropped-images') . '</p>';
    178             echo '<p class="description">' . __('All sizes are to be given in pixels.', 'multiple-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>';
    179179        }
    180180
     
    184184
    185185            $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;
    187187
    188188            $name    = $this->active_tab . '[statuses][' . $post_type->name . ']';
     
    202202            $this->show_size($name, '256', '256', '128', true);
    203203
    204             if(isset($sizes[ $post_type->name ]))
     204            if(isset($sizes[$post_type->name]))
    205205            {
    206206                $name = str_replace('#POST_TYPE#', $post_type->name, $name);
    207207
    208                 foreach($sizes[ $post_type->name ] as $id => $size)
     208                foreach($sizes[$post_type->name] as $id => $size)
    209209                {
    210210                    $_name = str_replace('#ID#', $id, $name);
     
    214214            }
    215215
    216             $id = isset($sizes[ $post_type->name ]) ? count($sizes[ $post_type->name ]) : 0;
    217 
    218             echo '<span class="add button-secondary">' . __('Add', 'multiple-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>';
    219219            echo '<span class="id">' . $id . '</span>';
    220220            echo '<span class="post_type">' . $post_type->name . '</span>';
  • multiple-cropped-images/trunk/dist/MCI_Usage.php

    r1841410 r1842882  
    5757            require_once __DIR__ . '/MCI_Core.php';
    5858
     59            $post_id = get_the_ID();
     60
    5961            $atts = shortcode_atts([
    6062                'id'      => 0,
    61                 'post-id' => get_the_ID(),
     63                'post-id' => $post_id,
    6264                'size'    => 'cropped'
    6365            ], $atts);
     
    6567            if($atts['id'] > 0)
    6668            {
    67                 $mci_entry = MCI_Core::getMCIEntry($atts['post-id'], $atts['id']);
     69                $mci_entry = MCI_Core::getMCIEntry($post_id, $atts['id']);
    6870
    6971                if(empty($mci_entry))
     
    7173                    return '';
    7274                }
     75
    7376
    7477                $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  
    44
    55    let $mci_meta = $('#mci-meta');
    6     let id        = getBiggestID();
    7     let croppers  = [];
     6    let id = getBiggestID();
     7    let croppers = [];
    88
    99    $mci_meta.find('.sortable').sortable({
     
    1313    $mci_meta.find('.mci-add').click((e) =>
    1414    {
    15         let $this      = $(e.currentTarget);
     15        let $this = $(e.currentTarget);
    1616        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);
    1919
    2020        let $new_mci = $(mci_html).removeClass('dummy').appendTo($container);
     
    3838    {
    3939        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);
    4242
    4343        initCropper(id, $mci);
     
    4848    {
    4949        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);
    5252
    5353        initCropper(id, $mci);
     
    6666    {
    6767        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);
    7070
    7171        let size = getSelectedSize($mci);
    72         let ar   = getAspectRatio(size.width, size.height);
     72        let ar = getAspectRatio(size.width, size.height);
    7373
    7474        croppers[id].setAspectRatio(ar);
     
    8383            let $mci_image = $(v).find('.mci-image');
    8484
    85             if($mci_image.attr('src') !== '')
     85            if ($mci_image.attr('src') !== '')
    8686            {
    8787                let size = getSelectedSize($(v));
    88                 let id   = getID($(v));
     88                let id = getID($(v));
    8989                let data = croppers[id].getCroppedCanvas({
    90                     width:  size.width,
     90                    width: size.width,
    9191                    height: size.height
    9292                }).toDataURL();
     
    108108    {
    109109        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);
    112112
    113113        croppers[id].destroy();
     
    120120    $(document).on('click', '.info-shortcode', (e) =>
    121121    {
    122         let $this         = $(e.currentTarget);
     122        let $this = $(e.currentTarget);
    123123        let $notification = $this.find('.notification');
    124124
    125125        $this.find('input')[0].select();
    126126
    127         if(!$notification.is(':animated') && document.execCommand('copy'))
     127        if (!$notification.is(':animated') && document.execCommand('copy'))
    128128        {
    129129            $notification.fadeIn(600, () =>
     
    139139    function initCropper(id, $mci)
    140140    {
    141         if(croppers[id] === undefined)
     141        if (croppers[id] === undefined)
    142142        {
    143143            croppers[id] = new Cropper($mci.find('.mci-image')[0], {
     
    151151    {
    152152        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'))
    156156        {
    157157            toggleEntry($mci, 0);
     
    171171
    172172        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)),
    175175            thumb_size: Math.ceil(parseFloat(size.thumb_size))
    176176        };
     
    202202    {
    203203        $('html, body').animate({
    204             scrollTop: $object.offset().top - 32
    205         },
    206         'slow');
     204                scrollTop: $object.offset().top - 32
     205            },
     206            'slow');
    207207    }
    208208
  • 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  
    77    /* ---------- DIRECTORIES ---------- */
    88    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/');
    1010    define('MCI_DIR_ORIGINALS', 'originals/');
    1111    define('MCI_DIR_RESIZED', 'resized/');
     
    2020    define('MCI_URL_CSS', MCI_URL_ASSETS . 'css/');
    2121    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);
    2327
    2428
  • multiple-cropped-images/trunk/dist/config/settings.php

    r1754091 r1842882  
    55    return [
    66        'mci-tab-general' => [
    7             'title'    => __('General', 'multiple-cropped-images'),
     7            'title'    => __('General', 'mci'),
    88            'sections' => [
    99                'mci-section-status' => [
    10                     'title'    => __('Status', 'multiple-cropped-images'),
     10                    'title'    => __('Status', 'mci'),
    1111                    'callback' => 'cb_status_description',
    1212                    'fields'   => array_map(function($post_type)
     
    2525        ],
    2626        'mci-tab-sizes'   => [
    27             'title'    => __('Sizes', 'multiple-cropped-images'),
     27            'title'    => __('Sizes', 'mci'),
    2828            'sections' => [
    2929                'mci-section-post-types' => [
    30                     'title'    => __('Post Types', 'multiple-cropped-images'),
     30                    'title'    => __('Post Types', 'mci'),
    3131                    'callback' => 'cb_post_types_description',
    3232                    'fields'   => array_map(function($post_type)
  • multiple-cropped-images/trunk/dist/templates/mci-meta.php

    r1754091 r1842882  
    1919            <div class="info-id">ID: <?php echo $id; ?></div>
    2020            <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>
    2222            </div>
    2323        </div>
     
    2525        <span class="mci-toggle"></span>
    2626        <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">
    2829        </label>
    2930        <span class="mci-control mci-recrop<?php echo $dummy ? ' disabled' : ''; ?>"></span>
     
    3435
    3536        <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>
    3738            <select id="mci-size-<?php echo $id; ?>" title="" class="mci-size">
    3839
     
    4445
    4546            </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>
    4748        </div>
    4849
     
    5253            <input type="hidden" name="mci[<?php echo $id; ?>][id]" class="mci-image-id" value="<?php echo $id; ?>">
    5354            <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; ?>">
    5761        </div>
    5862
     
    6064
    6165            <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>
    6470            </div>
    6571
    6672            <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>
    6977            </div>
    7078
  • multiple-cropped-images/trunk/dist/templates/mci-size.php

    r1754091 r1842882  
    22
    33    <label>
    4         <?php _e('Width', 'multiple-cropped-images'); ?>:
     4        <?php _e('Width', MCI_LOC_DOMAIN); ?>:
    55        <input type="number" min="1" max="2560" name="<?php echo $name; ?>[width]" value="<?php echo $width; ?>">
    66    </label>
    77
    88    <label>
    9         <?php _e('Height', 'multiple-cropped-images'); ?>:
     9        <?php _e('Height', MCI_LOC_DOMAIN); ?>:
    1010        <input type="number" min="1" max="2560" name="<?php echo $name; ?>[height]" value="<?php echo $height; ?>">
    1111    </label>
    1212
    1313    <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; ?>">
    1617    </label>
    1718
Note: See TracChangeset for help on using the changeset viewer.