Skip to content

Commit 90e50ca

Browse files
committed
Add show-language-label and show-file-name settings, include line-highlight plugin styles in frontend CSS
1 parent dda3894 commit 90e50ca

11 files changed

Lines changed: 134 additions & 10 deletions

File tree

includes/admin/class-settings.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,20 @@ public static function get_registered_settings(): array {
189189
'type' => 'checkbox',
190190
'default' => true,
191191
),
192+
array(
193+
'id' => 'show-language-label',
194+
'name' => __( 'Show Language Label', 'webberzone-code-block-highlighting' ),
195+
'desc' => __( 'Display the programming language name in the toolbar above each code block.', 'webberzone-code-block-highlighting' ),
196+
'type' => 'checkbox',
197+
'default' => true,
198+
),
199+
array(
200+
'id' => 'show-file-name',
201+
'name' => __( 'Show File Name', 'webberzone-code-block-highlighting' ),
202+
'desc' => __( 'Display the file name or title in the toolbar above each code block, when one is set.', 'webberzone-code-block-highlighting' ),
203+
'type' => 'checkbox',
204+
'default' => true,
205+
),
192206
array(
193207
'id' => 'default-lang',
194208
'name' => __( 'Default Language', 'webberzone-code-block-highlighting' ),

includes/blocks/build/frontend-rtl.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('wp-i18n'), 'version' => '4036175a2c5b3a5d9092');
1+
<?php return array('dependencies' => array('wp-i18n'), 'version' => '9700ea08820b84d0aad0');

includes/blocks/build/frontend.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/blocks/build/frontend.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '898b90cc8da6ecf31634');
1+
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '2dcffbb89151fb6756f0');

0 commit comments

Comments
 (0)