-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
47 lines (40 loc) · 1.14 KB
/
plugin.php
File metadata and controls
47 lines (40 loc) · 1.14 KB
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
42
43
44
45
<?php
/**
* Plugin Name: jp-guten-gallery — Gutenberg Block Plugin
* Plugin URI: https://github.com/ahmadawais/create-guten-block/
* Description: jp-guten-gallery — is a Gutenberg plugin created via create-guten-block.
* Author: Jim Pettersson
* Author URI: https://github.com/jim-arbete
* Version: 0.2.0
* License: GPL2+
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
*
* @package CGB
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/********************
* GLOBALA FUNKTIONER
* HELPER FUNCTIONS
********************/
// img sizes => \wp-content\themes\porto-child\functions.php
// add_image_size('small', 160, 213, true);
// add_image_size('polaroid', 320, 427, true);
// add_image_size('profile', 480, 640, true);
// add_image_size('portfolios', 320, 213, true);
// add_image_size('big', 768, 1024, true);
/********************
* DEBUG
********************/
function debug( $arr = [] ) {
echo '<pre>'. print_r($arr, true) .'</pre>';
}
function d( $arr = []) {
debug( $arr );
}
/********************
* Block Initializer.
********************/
require_once plugin_dir_path( __FILE__ ) . 'src/init.php';