forked from 10up/convert-to-blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
39 lines (31 loc) · 1.66 KB
/
config.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
<?php
/**
* Convert to Blocks configuration
*
* @package convert-to-blocks
*/
$plugin_version = '1.3.0';
if ( file_exists( __DIR__ . '/.commit' ) ) {
// phpcs:disable
$plugin_version .= '-' . file_get_contents( __DIR__ . '/.commit' );
// phpcs:enable
}
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_PLUGIN', __DIR__ . '/plugin.php' );
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_VERSION', $plugin_version );
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_DIR', plugin_dir_path( __FILE__ ) );
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_SLUG', 'convert-to-blocks' );
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_DEFAULT_POST_TYPES', [ 'post', 'page' ] );
/* Labels */
/* Block Editor text label */
convert_to_blocks_define( 'SWITCH_TO_BLOCK_EDITOR_LABEL', __( 'Switch to Block Editor', 'convert-to-blocks' ) );
/* Classic Editor text label */
convert_to_blocks_define( 'SWITCH_TO_CLASSIC_EDITOR_LABEL', __( 'Switch to Classic Editor', 'convert-to-blocks' ) );
/* Add/Edit Labels */
convert_to_blocks_define( 'EDIT_IN_CLASSIC_EDITOR_LABEL', __( 'Edit (Classic)', 'convert-to-blocks' ) );
convert_to_blocks_define( 'ADD_NEW_CLASSIC_EDITOR_LABEL', __( 'Add New (Classic)', 'convert-to-blocks' ) );
convert_to_blocks_define( 'ADD_NEW_BLOCK_EDITOR_LABEL', __( 'Add New', 'convert-to-blocks' ) );
/* Block & Classic Editor Labels */
convert_to_blocks_define( 'BLOCK_EDITOR_LABEL', __( 'Block Editor', 'convert-to-blocks' ) );
convert_to_blocks_define( 'CLASSIC_EDITOR_LABEL', __( 'Classic Editor', 'convert-to-blocks' ) );
convert_to_blocks_define( 'EDITOR_COLUMN_LABEL', __( 'Editor', 'convert-to-blocks' ) );