Changeset 2071707
- Timestamp:
- 04/20/2019 09:54:06 AM (7 years ago)
- Location:
- navthemes-fontawesome-icons/trunk
- Files:
-
- 2 edited
-
navthemesfa.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
navthemes-fontawesome-icons/trunk/navthemesfa.php
r2063596 r2071707 3 3 * Plugin Name: NavThemes FontAwesome Icons 4 4 * Plugin URI: https://www.navthemes.com 5 * Description: FontAwesome Icon Block for WordPress 25 * Description: FontAwesome Icon Block for WordPress 6 6 * Author: NavThemes 7 7 * Author URI: https://www.navthemes.com 8 * Version: 1.0 .28 * Version: 1.0 9 9 * Text Domain: navthemesfa 10 10 * … … 74 74 } 75 75 76 // NavThemes Blocks's block category 77 add_filter( 'block_categories', 'navthemes_fa_block_categories', 10, 2 ); 78 function navthemes_fa_block_categories( $categories, $post ) { 79 return array_merge( $categories, array( 80 array( 81 'slug' => 'navthemes-block', 82 'title' => __( 'NavThemes Blocks', 'navthemesfa' ), 83 ), 84 ) ); 85 } 76 if(!function_exists('NavThemesBlocksAddCategory')) : 77 78 function NavThemesBlocksAddCategory (){ 79 80 /** 81 - This functions checks and add navthemes-blocks category 82 **/ 83 84 global $post; 85 86 $block_categories = get_block_categories($post) ; 87 88 $available_Block_categories = array(); 89 90 foreach ($block_categories as $category) { 91 $slug = $category['slug']; 92 array_push($available_Block_categories, $slug); 93 } 94 95 if(!in_array("navthemes-blocks", $available_Block_categories)){ 96 // NavThemes Blocks's block category 97 add_filter( 'block_categories', 'navthemes_fa_block_categories', 10, 2 ); 98 function navthemes_fa_block_categories( $categories, $post ) { 99 return array_merge( $categories, array( 100 array( 101 'slug' => 'navthemes-blocks', 102 'title' => __( 'NavThemes Blocks', 'navthemesfa' ), 103 ), 104 ) ); 105 } 106 } // if 107 108 } 109 110 add_action('admin_init','NavThemesBlocksAddCategory'); 111 112 endif; 86 113 87 114 -
navthemes-fontawesome-icons/trunk/readme.txt
r2063596 r2071707 3 3 Tags: gutenberg, blocks 4 4 Requires at least: 5.0 5 Tested up to: 5. 0.26 Stable tag: 1.0. 25 Tested up to: 5.1.1 6 Stable tag: 1.0.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licen2ses/gpl-2.0.html 9 9 Requires PHP: 5.6 10 10 11 NavThemes FontAwesome Icons allows you to add beautfiul FontAwesome Icons. 11 GutenBee enhances the Gutenberg editor with more blocks! 12 12 13 13 == Description == … … 32 32 == Changelog == 33 33 34 = 1.0.3 = 35 *[Fixed] NavThemes Blocks Cateogory issue. 36 34 37 = 1.0.2 = 35 * [Fixed] Fixed NavThemes Landing Pages Compatibility Issue. 36 38 *[Fixed] Fixed NavThemes Landing Pages Compatibility Issue. 37 39 38 40 = 1.0.1 = 39 * [Fixed] Repeating Block Category issue.41 *[Fixed] Repeating Block Category issue. 40 42 41 = 1.0.0 = 42 * Initial release.43 = 1.0.0 = 44 *Initial release.
Note: See TracChangeset
for help on using the changeset viewer.