Changeset 3097011
- Timestamp:
- 06/04/2024 03:10:42 AM (2 months ago)
- Location:
- vk-all-in-one-expansion-unit
- Files:
-
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
vk-all-in-one-expansion-unit/tags/9.98.1.0/inc/post-type-manager/package/class.post-type-manager.php
r3096538 r3097011 129 129 130 130 echo '<hr>'; 131 131 132 132 /******************************************* 133 133 * Menu Icon 134 134 */ 135 135 echo '<h4>' . esc_html__( 'Menu Icon(Optional)', 'vk-all-in-one-expansion-unit' ) . '</h4>'; 136 echo '<p>' . esc_html__( 'Select an icon from the images below, or enter a custom Dashicon class.' ) . '</p>';137 136 echo '<p>' . esc_html__( 'Select an icon from the images below, or enter a custom Dashicon class.' ) . '</p>'; 137 138 138 echo '<div style="margin-bottom: 1rem;">'; 139 $icons = [139 $icons = 140 140 'dashicons-admin-post', 141 141 'dashicons-admin-site', … … 152 152 'dashicons-admin-generic', 153 153 'dashicons-admin-collapse', 154 ];155 156 foreach ( $icons as $icon) {157 echo '<button type="button" class="button" style="margin-right: 10px; margin-bottom: 10px; width: 40px; height: 40px; padding: 5px;" onclick="updateIconSelection(\'' . esc_attr( $icon) . '\');">';158 echo '<span class="dashicons ' . esc_attr( $icon) . '" style="font-size: 20px; vertical-align: sub;"></span>';154 ; 155 156 foreach () { 157 echo '<button type="button" class="button" style="margin-right: 10px; margin-bottom: 10px; width: 40px; height: 40px; padding: 5px;" onclick="updateIconSelection(\'' . esc_attr() . '\');">'; 158 echo '<span class="dashicons ' . esc_attr() . '" style="font-size: 20px; vertical-align: sub;"></span>'; 159 159 echo '</button>'; 160 160 } 161 161 162 162 echo '<div>'; 163 echo '<input type="text" id="veu_menu_icon" name="veu_menu_icon" value="' . esc_attr( $post->veu_menu_icon) . '" style="margin-right: 10px;" size="30">';164 echo '<a href="https://developer.wordpress.org/resource/dashicons/" class="button" target="_blank">' . esc_html__( 'Dashicons Library', 'vk-all-in-one-expansion-unit') . '</a>';163 echo '<input type="text" id="veu_menu_icon" name="veu_menu_icon" value="' . esc_attr() . '" style="margin-right: 10px;" size="30">'; 164 echo '<a href="https://developer.wordpress.org/resource/dashicons/" class="button" target="_blank">' . esc_html__() . '</a>'; 165 165 echo '</div>'; 166 166 167 167 echo '</div>'; 168 168 … … 189 189 </script>'; 190 190 191 192 191 /******************************************* 193 192 * Export to Rest api … … 379 378 * メニューアイコンを設定するためのコード 380 379 */ 381 $menu_icon = get_post_meta( $post->ID, 'veu_menu_icon', true);382 if ( empty($menu_icon)) {380 $menu_icon = get_post_meta(); 381 if () { 383 382 $menu_icon = 'dashicons-admin-post'; 384 } elseif ( $menu_icon === 'none') {383 } elseif () { 385 384 $menu_icon = ''; // CSSでスタイリング可能に 386 } elseif ( !strpos($menu_icon, 'dashicons-') === 0 && !strpos($menu_icon, 'data:image/svg+xml;base64,') === 0) {385 } elseif () { 387 386 $menu_icon = 'dashicons-admin-post'; 388 387 } … … 404 403 $supports[] = $key; 405 404 } 406 405 407 406 // 投稿タイプのアイコンを取得 408 $menu_icon = get_post_meta( $post->ID, 'veu_menu_icon', true);409 $menu_icon = ! empty($menu_icon) ? $menu_icon : 'dashicons-admin-post';407 $menu_icon = get_post_meta(); 408 $menu_icon = ! 410 409 411 410 // カスタム投稿タイプのスラッグ. … … 441 440 'has_archive' => true, 442 441 'menu_position' => $menu_position, 443 'menu_icon' => $menu_icon,442 'menu_icon' => $menu_icon, 444 443 'supports' => $supports, 445 444 'rewrite' => $rewrite, -
vk-all-in-one-expansion-unit/tags/9.98.1.0/readme.txt
r3096548 r3097011 6 6 Tested up to: 6.5 7 7 Requires PHP: 7.4 8 Stable tag: 9.98. 0.18 Stable tag: 9.98. 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 82 82 == Changelog == 83 83 84 85 86 84 87 = 9.98.0 = 85 88 [ Add setting ][ Post Type Manager ] Add a menu icon setting. -
vk-all-in-one-expansion-unit/tags/9.98.1.0/vendor/composer/installed.php
r3096548 r3097011 2 2 'root' => array( 3 3 'name' => 'vektor-inc/vk-all-in-one-expansion-unit', 4 'pretty_version' => '9.98. 0.1',5 'version' => '9.98. 0.1',6 'reference' => ' 9f9eb32428e69e58ebf2cc1841f035ce1428f741',4 'pretty_version' => '9.98.', 5 'version' => '9.98.', 6 'reference' => '', 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 30 30 ), 31 31 'vektor-inc/vk-all-in-one-expansion-unit' => array( 32 'pretty_version' => '9.98. 0.1',33 'version' => '9.98. 0.1',34 'reference' => ' 9f9eb32428e69e58ebf2cc1841f035ce1428f741',32 'pretty_version' => '9.98.', 33 'version' => '9.98.', 34 'reference' => '', 35 35 'type' => 'project', 36 36 'install_path' => __DIR__ . '/../../', -
vk-all-in-one-expansion-unit/tags/9.98.1.0/vkExUnit.php
r3096548 r3097011 4 4 * Plugin URI: https://ex-unit.nagoya 5 5 * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more! 6 * Version: 9.98. 0.16 * Version: 9.98. 7 7 * Requires PHP: 7.4 8 8 * Requires at least: 5.9 -
vk-all-in-one-expansion-unit/trunk/inc/post-type-manager/package/class.post-type-manager.php
r3096538 r3097011 129 129 130 130 echo '<hr>'; 131 131 132 132 /******************************************* 133 133 * Menu Icon 134 134 */ 135 135 echo '<h4>' . esc_html__( 'Menu Icon(Optional)', 'vk-all-in-one-expansion-unit' ) . '</h4>'; 136 echo '<p>' . esc_html__( 'Select an icon from the images below, or enter a custom Dashicon class.' ) . '</p>';137 136 echo '<p>' . esc_html__( 'Select an icon from the images below, or enter a custom Dashicon class.' ) . '</p>'; 137 138 138 echo '<div style="margin-bottom: 1rem;">'; 139 $icons = [139 $icons = 140 140 'dashicons-admin-post', 141 141 'dashicons-admin-site', … … 152 152 'dashicons-admin-generic', 153 153 'dashicons-admin-collapse', 154 ];155 156 foreach ( $icons as $icon) {157 echo '<button type="button" class="button" style="margin-right: 10px; margin-bottom: 10px; width: 40px; height: 40px; padding: 5px;" onclick="updateIconSelection(\'' . esc_attr( $icon) . '\');">';158 echo '<span class="dashicons ' . esc_attr( $icon) . '" style="font-size: 20px; vertical-align: sub;"></span>';154 ; 155 156 foreach () { 157 echo '<button type="button" class="button" style="margin-right: 10px; margin-bottom: 10px; width: 40px; height: 40px; padding: 5px;" onclick="updateIconSelection(\'' . esc_attr() . '\');">'; 158 echo '<span class="dashicons ' . esc_attr() . '" style="font-size: 20px; vertical-align: sub;"></span>'; 159 159 echo '</button>'; 160 160 } 161 161 162 162 echo '<div>'; 163 echo '<input type="text" id="veu_menu_icon" name="veu_menu_icon" value="' . esc_attr( $post->veu_menu_icon) . '" style="margin-right: 10px;" size="30">';164 echo '<a href="https://developer.wordpress.org/resource/dashicons/" class="button" target="_blank">' . esc_html__( 'Dashicons Library', 'vk-all-in-one-expansion-unit') . '</a>';163 echo '<input type="text" id="veu_menu_icon" name="veu_menu_icon" value="' . esc_attr() . '" style="margin-right: 10px;" size="30">'; 164 echo '<a href="https://developer.wordpress.org/resource/dashicons/" class="button" target="_blank">' . esc_html__() . '</a>'; 165 165 echo '</div>'; 166 166 167 167 echo '</div>'; 168 168 … … 189 189 </script>'; 190 190 191 192 191 /******************************************* 193 192 * Export to Rest api … … 379 378 * メニューアイコンを設定するためのコード 380 379 */ 381 $menu_icon = get_post_meta( $post->ID, 'veu_menu_icon', true);382 if ( empty($menu_icon)) {380 $menu_icon = get_post_meta(); 381 if () { 383 382 $menu_icon = 'dashicons-admin-post'; 384 } elseif ( $menu_icon === 'none') {383 } elseif () { 385 384 $menu_icon = ''; // CSSでスタイリング可能に 386 } elseif ( !strpos($menu_icon, 'dashicons-') === 0 && !strpos($menu_icon, 'data:image/svg+xml;base64,') === 0) {385 } elseif () { 387 386 $menu_icon = 'dashicons-admin-post'; 388 387 } … … 404 403 $supports[] = $key; 405 404 } 406 405 407 406 // 投稿タイプのアイコンを取得 408 $menu_icon = get_post_meta( $post->ID, 'veu_menu_icon', true);409 $menu_icon = ! empty($menu_icon) ? $menu_icon : 'dashicons-admin-post';407 $menu_icon = get_post_meta(); 408 $menu_icon = ! 410 409 411 410 // カスタム投稿タイプのスラッグ. … … 441 440 'has_archive' => true, 442 441 'menu_position' => $menu_position, 443 'menu_icon' => $menu_icon,442 'menu_icon' => $menu_icon, 444 443 'supports' => $supports, 445 444 'rewrite' => $rewrite, -
vk-all-in-one-expansion-unit/trunk/readme.txt
r3096548 r3097011 6 6 Tested up to: 6.5 7 7 Requires PHP: 7.4 8 Stable tag: 9.98. 0.18 Stable tag: 9.98. 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 82 82 == Changelog == 83 83 84 85 86 84 87 = 9.98.0 = 85 88 [ Add setting ][ Post Type Manager ] Add a menu icon setting. -
vk-all-in-one-expansion-unit/trunk/vendor/composer/installed.php
r3096548 r3097011 2 2 'root' => array( 3 3 'name' => 'vektor-inc/vk-all-in-one-expansion-unit', 4 'pretty_version' => '9.98. 0.1',5 'version' => '9.98. 0.1',6 'reference' => ' 9f9eb32428e69e58ebf2cc1841f035ce1428f741',4 'pretty_version' => '9.98.', 5 'version' => '9.98.', 6 'reference' => '', 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 30 30 ), 31 31 'vektor-inc/vk-all-in-one-expansion-unit' => array( 32 'pretty_version' => '9.98. 0.1',33 'version' => '9.98. 0.1',34 'reference' => ' 9f9eb32428e69e58ebf2cc1841f035ce1428f741',32 'pretty_version' => '9.98.', 33 'version' => '9.98.', 34 'reference' => '', 35 35 'type' => 'project', 36 36 'install_path' => __DIR__ . '/../../', -
vk-all-in-one-expansion-unit/trunk/vkExUnit.php
r3096548 r3097011 4 4 * Plugin URI: https://ex-unit.nagoya 5 5 * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more! 6 * Version: 9.98. 0.16 * Version: 9.98. 7 7 * Requires PHP: 7.4 8 8 * Requires at least: 5.9
Note: See TracChangeset
for help on using the changeset viewer.