Changeset 1842956
- Timestamp:
- 03/19/2018 05:06:59 PM (8 years ago)
- Location:
- multiple-cropped-images/trunk
- Files:
-
- 5 edited
-
dist/MCI_Meta.php (modified) (2 diffs)
-
dist/MCI_Options.php (modified) (3 diffs)
-
dist/config/constants.php (modified) (1 diff)
-
dist/config/settings.php (modified) (2 diffs)
-
mci.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
multiple-cropped-images/trunk/dist/MCI_Meta.php
r1842882 r1842956 50 50 public function meta_box() 51 51 { 52 add_meta_box('mci-meta', __('MCI', 'mci'), [52 add_meta_box('mci-meta', __('MCI', MCI_LOC_DOMAIN), [ 53 53 $this, 54 54 'cb_meta_box' … … 73 73 echo '</div>'; 74 74 75 echo '<span class="button mci-add">' . __('Add', 'mci') . '</span>';75 echo '<span class="button mci-add">' . __('Add', MCI_LOC_DOMAIN) . '</span>'; 76 76 } 77 77 -
multiple-cropped-images/trunk/dist/MCI_Options.php
r1842882 r1842956 98 98 public function add_admin_menu() 99 99 { 100 add_menu_page($this->page_title, __('MCI', 'mci'), 'manage_options', $this->menu_slug, [100 add_menu_page($this->page_title, __('MCI', MCI_LOC_DOMAIN), '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.', 'mci') . '</p>';172 echo '<p class="description">' . __('Activate the plugin for specific post types.', MCI_LOC_DOMAIN) . '</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.', 'mci') . '</p>';178 echo '<p class="description">' . __('All sizes are to be given in pixels.', 'mci') . '</p>';177 echo '<p class="description">' . __('Set custom sizes for each post type.', MCI_LOC_DOMAIN) . '</p>'; 178 echo '<p class="description">' . __('All sizes are to be given in pixels.', MCI_LOC_DOMAIN) . '</p>'; 179 179 } 180 180 … … 216 216 $id = isset($sizes[$post_type->name]) ? count($sizes[$post_type->name]) : 0; 217 217 218 echo '<span class="add button-secondary">' . __('Add', 'mci') . '</span>';218 echo '<span class="add button-secondary">' . __('Add', MCI_LOC_DOMAIN) . '</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/config/constants.php
r1842922 r1842956 25 25 /* ---------- SIZES ----------*/ 26 26 define('MCI_SIZE_ICON', 98); 27 28 29 /* ---------- LOCALIZATION ----------*/ 30 define('MCI_LOC_DOMAIN', 'multiple-cropped-images'); -
multiple-cropped-images/trunk/dist/config/settings.php
r1842882 r1842956 5 5 return [ 6 6 'mci-tab-general' => [ 7 'title' => __('General', 'mci'),7 'title' => __('General', MCI_LOC_DOMAIN), 8 8 'sections' => [ 9 9 'mci-section-status' => [ 10 'title' => __('Status', 'mci'),10 'title' => __('Status', MCI_LOC_DOMAIN), 11 11 'callback' => 'cb_status_description', 12 12 'fields' => array_map(function($post_type) … … 25 25 ], 26 26 'mci-tab-sizes' => [ 27 'title' => __('Sizes', 'mci'),27 'title' => __('Sizes', MCI_LOC_DOMAIN), 28 28 'sections' => [ 29 29 'mci-section-post-types' => [ 30 'title' => __('Post Types', 'mci'),30 'title' => __('Post Types', MCI_LOC_DOMAIN), 31 31 'callback' => 'cb_post_types_description', 32 32 'fields' => array_map(function($post_type) -
multiple-cropped-images/trunk/mci.php
r1842950 r1842956 29 29 add_action('plugins_loaded', function() 30 30 { 31 load_plugin_textdomain( 'multiple-cropped-images');31 load_plugin_textdomain(MCI_LOC_DOMAIN); 32 32 }); 33 33
Note: See TracChangeset
for help on using the changeset viewer.