Plugin Directory

Changeset 2895583

Timestamp:
04/07/2023 12:13:29 PM (15 months ago)
Author:
joanrodas
Message:

1.1.0

Location:
embed-gfycat-block
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • embed-gfycat-block/trunk/embed-gfycat-block.php

    r2681202 r2895583  
    11<?php
    22/**
    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
    415 *
    516 * @package     Sirvelia\GfycatBlock
    617 * @author      Sirvelia
    718 * @license     GPL-3
    8  *
    9  * @wordpress-plugin
    10  * Plugin Name: Embed Gfycat Block
    11  * Plugin URI:  https://github.com/Sirvelia/embed-gfycat-block
    12  * Description: Gfycat Block for Gutenberg
    13  * Version:     1.0.1
    14  * Author:      Sirvelia
    15  * Author URI:  https://sirvelia.com/
    16  * Text Domain: sirvelia-blocks
    17  * Domain Path: /languages
    18  * License:     GPL-3
    19  * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
    2019 */
    2120
    22 namespace Sirvelia\GfycatBlock;
    23 
    24 //  Exit if accessed directly.
    25 defined('ABSPATH') || exit;
    26 
    2721/**
    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.
    2925 *
    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/
    3527 */
    36 function _get_plugin_directory() {
    37     return __DIR__;
     28function () {
     29    re;
    3830}
    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 }
     31add_action( 'init', 'embed_gfycat_embed_gfycat_block_block_init' );
    5832
    5933// 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  
    11=== Embed Gfycat Block ===
    2 Contributors: sirvelia
     2Contributors: sirvelia
    33Donate link: https://sirvelia.com/
    44Tags: gfycat, block, gutenberg, gif
    55Requires at least: 5.0
    6 Tested up to: 5.9
     6Tested up to:
    77Stable tag: trunk
    88Requires PHP: 7.2
    9 License: GPLv2 or later
    10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
     9License: GPLv
     10License URI: https://www.gnu.org/licenses/gpl-.0.html
    1111
    1212This plugin allows you to embed Gifs in posts and pages with a Gutenberg Block.
     
    2929== Changelog ==
    3030
     31
     32
     33
    3134= 1.0 =
    3235Initial
Note: See TracChangeset for help on using the changeset viewer.