Changeset 2895583
- Timestamp:
- 04/07/2023 12:13:29 PM (15 months ago)
- Location:
- embed-gfycat-block
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
embed-gfycat-block/trunk/embed-gfycat-block.php
r2681202 r2895583 1 1 <?php 2 2 /** 3 * Plugin's bootstrap file to launch the plugin. 3 * Plugin Name: Embed Gfycat Block 4 * Plugin URI: https://github.com/Sirvelia-Labs/embed-gfycat-block 5 * Description: Gfycat Block for Gutenberg 6 * Requires at least: 5.0 7 * Requires PHP: 7.0 8 * Version: 1.1.0 9 * Author: Sirvelia 10 * Author URI: https://sirvelia.com/ 11 * License: GPLv3 12 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 13 * Text Domain: sirvelia-blocks 14 * Domain Path: /languages 4 15 * 5 16 * @package Sirvelia\GfycatBlock 6 17 * @author Sirvelia 7 18 * @license GPL-3 8 *9 * @wordpress-plugin10 * Plugin Name: Embed Gfycat Block11 * Plugin URI: https://github.com/Sirvelia/embed-gfycat-block12 * Description: Gfycat Block for Gutenberg13 * Version: 1.0.114 * Author: Sirvelia15 * Author URI: https://sirvelia.com/16 * Text Domain: sirvelia-blocks17 * Domain Path: /languages18 * License: GPL-319 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt20 19 */ 21 20 22 namespace Sirvelia\GfycatBlock;23 24 // Exit if accessed directly.25 defined('ABSPATH') || exit;26 27 21 /** 28 * Gets this plugin's absolute directory path. 22 * Registers the block using the metadata loaded from the `block.json` file. 23 * Behind the scenes, it registers also all assets so they can be enqueued 24 * through the block editor in the corresponding context. 29 25 * 30 * @since 2.1.0 31 * @ignore 32 * @access private 33 * 34 * @return string 26 * @see https://developer.wordpress.org/reference/functions/register_block_type/ 35 27 */ 36 function _get_plugin_directory() {37 re turn __DIR__;28 function () { 29 re; 38 30 } 39 40 /** 41 * Gets this plugin's URL. 42 * 43 * @since 2.1.0 44 * @ignore 45 * @access private 46 * 47 * @return string 48 */ 49 function _get_plugin_url() { 50 static $plugin_url; 51 52 if ( empty( $plugin_url ) ) { 53 $plugin_url = plugins_url( null, __FILE__ ); 54 } 55 56 return $plugin_url; 57 } 31 add_action( 'init', 'embed_gfycat_embed_gfycat_block_block_init' ); 58 32 59 33 // Enqueue JS and CSS 60 include __DIR__ . '/lib/enqueue-scripts.php'; 61 62 // Register category 63 //include __DIR__ . '/lib/create-category.php'; 64 65 // Register meta boxes 66 //include __DIR__ . '/lib/meta-boxes.php'; 67 68 // Block Templates 69 //include __DIR__ . '/lib/block-templates.php'; 70 71 72 73 /************* 74 BLOCK SPECIFIC PHP 75 *************/ 76 77 78 // Dynamic Blocks 79 //include __DIR__ . '/blocks/12-dynamic/index.php'; 34 //include __DIR__ . '/lib/enqueue-scripts.php'; -
embed-gfycat-block/trunk/readme.txt
r2681202 r2895583 1 1 === Embed Gfycat Block === 2 Contributors: sirvelia 2 Contributors: sirvelia 3 3 Donate link: https://sirvelia.com/ 4 4 Tags: gfycat, block, gutenberg, gif 5 5 Requires at least: 5.0 6 Tested up to: 5.96 Tested up to: 7 7 Stable tag: trunk 8 8 Requires PHP: 7.2 9 License: GPLv 2 or later10 License URI: https://www.gnu.org/licenses/gpl- 2.0.html9 License: GPLv 10 License URI: https://www.gnu.org/licenses/gpl-.0.html 11 11 12 12 This plugin allows you to embed Gifs in posts and pages with a Gutenberg Block. … … 29 29 == Changelog == 30 30 31 32 33 31 34 = 1.0 = 32 35 Initial
Note: See TracChangeset
for help on using the changeset viewer.