PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.3
WP Coder – Insert & Manage Code Snippets v4.3
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
wp-coder / classes / Snippets / pages / content.php

content.php in WP Coder – Insert & Manage Code Snippets 4.3, at classes/Snippets/pages/content.php

69 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || exit;
4
5 ?>
6
7 <div class="wowp-snippets__header">
8 <h3 class="wowp-snippets__header-title">Editor & Content</h3>
9 <p class="wowp-snippets__header-description">Customize editor and content features.</p>
10 </div>
11
12 <?php
13 $snippets = [
14 'disable_gutenberg' => [
15 'Disable Gutenberg Editor',
16 'Use the Classic Editor instead of Gutenberg.',
17 ],
18 'disable_gutenberg_css' => [
19 'Remove Gutenberg Block CSS',
20 'Prevent loading of Gutenberg block styles on the frontend.',
21 ],
22
23 'disable_widget_blocks' => [
24 'Disable Widget Blocks',
25 'Revert to the Classic Widgets interface.',
26 ],
27
28 'enable_shortcode_in_text_widgets' => [
29 'Enable Shortcode Execution in Text Widgets',
30 'Allow shortcodes in text widgets.',
31 ],
32 'enable_pages_excerpt' => [
33 'Enable Excerpt for Pages',
34 'Add excerpt field support for pages.',
35 ],
36 'enable_force_external_links_new_tab' => [
37 'Open External Links in New Tab',
38 'Automatically open all external links in post content in a new browser tab. Adds target="_blank" and rel="noopener noreferrer nofollow" for better UX, security, and SEO.',
39 ],
40 ];
41
42 self::create_options( $snippets );
43
44 ?>
45
46 <div class="wowp-snippet__item">
47 <div class="wowp-snippet__item-header">
48 <label for="change_read_more">Change “Read More” Text for Excerpts</label>
49 <p class="wowp-snippet__item-description">Customize the default “Read More” link text.</p>
50 </div>
51 <div class="wowp-field has-checkbox">
52 <label class="switch">
53 <?php self::field( 'checkbox', 'change_read_more' ); ?>
54 <span class="slider"></span>
55 </label>
56 </div>
57 <div class="wowp-snippet__item-expand is-hidden">
58 <div class="wowp-field">
59 <label>
60 <span class="label">Text</span>
61 <?php self::field( 'text', 'change_read_more_text', '', 'Read More' ); ?>
62 </label>
63 </div>
64 </div>
65 </div>
66
67 <?php
68
69