-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathssws-blocks-container.php
executable file
·41 lines (38 loc) · 1.08 KB
/
ssws-blocks-container.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Plugin Name: SSWS Blocks Container
* Plugin URI: https://ssws.ca
* Description: Gutenberg blocks container to help you create useful and reusable front-end templates with the new WordPress editor.
* Author: Giorgio Riccardi
* Author URI: http://seatoskywebsolutions.ca
* Version: 1.2.1
* Text Domain: ssws-blocks-container
* License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* @package SSWS BLOCKS CONTAINER
*/
/**
* Exit if accessed directly
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Initialize the block
*/
function ssws_blocks_container_loader() {
/**
* Load the blocks functionality
*/
require_once plugin_dir_path( __FILE__ ) . 'dist/init.php';
}
add_action( 'plugins_loaded', 'ssws_blocks_container_loader' );
/**
* Add image sizes
*/
function ssws_blocks_container_image_sizes() {
// Post Grid Block.
add_image_size( 'ssws-block-post-grid-landscape', 600, 400, true );
add_image_size( 'ssws-block-post-grid-square', 600, 600, true );
}
// add_action( 'after_setup_theme', 'ssws_blocks_container_image_sizes' );