Changeset 2899117
- Timestamp:
- 04/14/2023 11:30:06 AM (3 years ago)
- Location:
- code-snippet-dm
- Files:
-
- 102 added
- 5 edited
-
assets/screenshot-11.png (added)
-
assets/screenshot-12.png (added)
-
tags/2.0.3 (added)
-
tags/2.0.3/LICENSE.txt (added)
-
tags/2.0.3/README.txt (added)
-
tags/2.0.3/admin (added)
-
tags/2.0.3/admin/class-code-snippet-dm-admin.php (added)
-
tags/2.0.3/admin/code-snippet-dm-admin-tinymce.php (added)
-
tags/2.0.3/admin/css (added)
-
tags/2.0.3/admin/css/code-snippet-dm-admin.css (added)
-
tags/2.0.3/admin/img (added)
-
tags/2.0.3/admin/img/dm-code-small.png (added)
-
tags/2.0.3/admin/index.php (added)
-
tags/2.0.3/admin/js (added)
-
tags/2.0.3/admin/js/code-snippet-dm-admin.js (added)
-
tags/2.0.3/admin/js/tinymce_button.js (added)
-
tags/2.0.3/admin/partials (added)
-
tags/2.0.3/admin/partials/code-snippet-dm-admin-display.php (added)
-
tags/2.0.3/build (added)
-
tags/2.0.3/build/block.json (added)
-
tags/2.0.3/build/index.asset.php (added)
-
tags/2.0.3/build/index.css (added)
-
tags/2.0.3/build/index.css.map (added)
-
tags/2.0.3/build/index.js (added)
-
tags/2.0.3/build/index.js.map (added)
-
tags/2.0.3/build/style-index.css (added)
-
tags/2.0.3/build/style-index.css.map (added)
-
tags/2.0.3/code-snippet-dm.php (added)
-
tags/2.0.3/elementor-widgets (added)
-
tags/2.0.3/elementor-widgets/code-snippet.php (added)
-
tags/2.0.3/includes (added)
-
tags/2.0.3/includes/class-code-snippet-dm-activator.php (added)
-
tags/2.0.3/includes/class-code-snippet-dm-deactivator.php (added)
-
tags/2.0.3/includes/class-code-snippet-dm-i18n.php (added)
-
tags/2.0.3/includes/class-code-snippet-dm-loader.php (added)
-
tags/2.0.3/includes/class-code-snippet-dm-shortcode.php (added)
-
tags/2.0.3/includes/class-code-snippet-dm.php (added)
-
tags/2.0.3/includes/index.php (added)
-
tags/2.0.3/index.php (added)
-
tags/2.0.3/languages (added)
-
tags/2.0.3/languages/code-snippet-dm.pot (added)
-
tags/2.0.3/public (added)
-
tags/2.0.3/public/class-code-snippet-dm-public.php (added)
-
tags/2.0.3/public/css (added)
-
tags/2.0.3/public/css/main.min.css (added)
-
tags/2.0.3/public/css/main.min.css.map (added)
-
tags/2.0.3/public/css/scss (added)
-
tags/2.0.3/public/css/scss/README.md (added)
-
tags/2.0.3/public/css/scss/abstracts (added)
-
tags/2.0.3/public/css/scss/abstracts/README.md (added)
-
tags/2.0.3/public/css/scss/abstracts/_breakpoints.scss (added)
-
tags/2.0.3/public/css/scss/abstracts/_functions.scss (added)
-
tags/2.0.3/public/css/scss/abstracts/_mixins.scss (added)
-
tags/2.0.3/public/css/scss/abstracts/_variables.scss (added)
-
tags/2.0.3/public/css/scss/base (added)
-
tags/2.0.3/public/css/scss/base/README.md (added)
-
tags/2.0.3/public/css/scss/base/_base.scss (added)
-
tags/2.0.3/public/css/scss/base/_fonts.scss (added)
-
tags/2.0.3/public/css/scss/base/_helpers.scss (added)
-
tags/2.0.3/public/css/scss/base/_typography.scss (added)
-
tags/2.0.3/public/css/scss/components (added)
-
tags/2.0.3/public/css/scss/components/README.md (added)
-
tags/2.0.3/public/css/scss/components/_button.scss (added)
-
tags/2.0.3/public/css/scss/components/_scrollbar.scss (added)
-
tags/2.0.3/public/css/scss/layout (added)
-
tags/2.0.3/public/css/scss/layout/README.md (added)
-
tags/2.0.3/public/css/scss/layout/_footer.scss (added)
-
tags/2.0.3/public/css/scss/layout/_header.scss (added)
-
tags/2.0.3/public/css/scss/layout/_slim.scss (added)
-
tags/2.0.3/public/css/scss/main.scss (added)
-
tags/2.0.3/public/css/scss/pages (added)
-
tags/2.0.3/public/css/scss/pages/README.md (added)
-
tags/2.0.3/public/css/scss/pages/_home.scss (added)
-
tags/2.0.3/public/css/scss/themes (added)
-
tags/2.0.3/public/css/scss/themes/README.md (added)
-
tags/2.0.3/public/css/scss/themes/_dark.scss (added)
-
tags/2.0.3/public/css/scss/themes/_default.scss (added)
-
tags/2.0.3/public/css/scss/themes/_light.scss (added)
-
tags/2.0.3/public/css/scss/vendor (added)
-
tags/2.0.3/public/css/scss/vendor/README.md (added)
-
tags/2.0.3/public/css/scss/vendor/_normalize.scss (added)
-
tags/2.0.3/public/css/scss/vendor/_prism.scss (added)
-
tags/2.0.3/public/index.php (added)
-
tags/2.0.3/public/js (added)
-
tags/2.0.3/public/js/clipboardv201.min.js (added)
-
tags/2.0.3/public/js/code-snippet-dm-public.js (added)
-
tags/2.0.3/public/js/manually-start-prism.js (added)
-
tags/2.0.3/public/js/prism.js (added)
-
tags/2.0.3/public/partials (added)
-
tags/2.0.3/public/partials/code-snippet-dm-public-display.php (added)
-
tags/2.0.3/src (added)
-
tags/2.0.3/src/block.json (added)
-
tags/2.0.3/src/edit.js (added)
-
tags/2.0.3/src/editor.scss (added)
-
tags/2.0.3/src/icons (added)
-
tags/2.0.3/src/icons/icons.js (added)
-
tags/2.0.3/src/index.js (added)
-
tags/2.0.3/src/save.js (added)
-
tags/2.0.3/src/style.scss (added)
-
tags/2.0.3/uninstall.php (added)
-
trunk/README.txt (modified) (5 diffs)
-
trunk/build/block.json (modified) (1 diff)
-
trunk/build/index.js (modified) (1 diff)
-
trunk/code-snippet-dm.php (modified) (3 diffs)
-
trunk/elementor-widgets (added)
-
trunk/elementor-widgets/code-snippet.php (added)
-
trunk/src/block.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
code-snippet-dm/trunk/README.txt
r2798720 r2899117 4 4 Tags: code, snippet, embed, code-snippet, display code 5 5 Requires at least: 4.0 6 Tested up to: 6. 07 Requires PHP: 5.46 Tested up to: 6.2 7 Requires PHP: 7.4 8 8 Stable tag: trunk 9 9 License: GPLv2 or later … … 32 32 Once the block is added in the Gutenberg editor, it can be customized via the sidebar settings that will appear for each block. The sidebar will include all the settings that are available for the shortcode. Some of the settings will be applied in real time in your editor. 33 33 34 The code styling (syntax highlight) is only available on the front-end, in the editor you will not be able to preview the correct colors for the code. 34 The code styling (syntax highlight) and line numbers are only available on the front-end, in the editor you will not be able to preview the correct colors for the code or the line numbers. 35 36 = Elementor widget = 37 38 The Widget is called "Code Snippet DM" and can be found on the Basic list of Elementor Widget after you activate the plugin. Keywords that can be used to find it: code, snippet, dm. 39 40 Once the widget is added in the Elementor editor, it can be customized via the sidebar settings that will appear for each widget. The sidebar will include all the settings that are available for the shortcode. Some of the settings will be applied in real time in your editor. 41 42 The code styling (syntax highlight) and line numbers are only available on the front-end, in the editor you will not be able to preview the correct colors for the code or the line numbers. 35 43 36 44 = Shortcode Options = … … 91 99 Yes. Starting from version 2.0.1 this plugin offers support for the Gutenberg editor. 92 100 101 = Can I use this plugin with Elementor editor? = 102 103 Yes. Starting from version 2.0.3 this plugin offers support for the Elementor. 104 93 105 = If I upgrade to v2.0.1, will my shortcodes continue to work? = 94 106 … … 107 119 9. Gutenberg block with options in the sidebar 108 120 10. Gutenberg block for Code Snippet DM 121 11. Elementor widget with options in the sidebar 122 12. Elementor widget for Code Snippet DM 109 123 110 124 == Changelog == … … 146 160 = 2.0.2 = 147 161 * Fixed character escape for all languages when added via the TinyMCE 162 163 = 2.0.3 = 164 * Added support for Elementor Builder by creating a Elementor Widget "Code Snippet DM" -
code-snippet-dm/trunk/build/block.json
r2798720 r2899117 3 3 "apiVersion": 2, 4 4 "name": "dm-code-snippet/code-snippet-block-dm", 5 "version": "2.0. 2",5 "version": "2.0.3", 6 6 "title": "Code Snippet DM", 7 7 "category": "embed", -
code-snippet-dm/trunk/build/index.js
r2798720 r2899117 653 653 /***/ ((module) => { 654 654 655 module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"dm-code-snippet/code-snippet-block-dm","version":"2.0. 2","title":"Code Snippet DM","category":"embed","icon":"smiley","description":"This is the code block to display Code Snippet DM","keywords":["code","snippet","dm"],"supports":{"html":false},"textdomain":"code-snippet-block-dm","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"content":{"type":"string"},"theme":{"type":"string","default":"dark"},"backgroundColor":{"type":"string","default":"#abb8c3"},"slim":{"type":"boolean","default":false},"lineNumbers":{"type":"boolean","default":false},"backgroundColorStatus":{"type":"boolean","default":true},"backgroundColorMobileStatus":{"type":"boolean","default":false},"maxHeight":{"type":"string","default":""},"copyText":{"type":"string","default":"Copy Code"},"afterCopyText":{"type":"string","default":"Copied"},"language":{"type":"string","default":"php"},"wrapCode":{"type":"boolean","default":false}}}');655 module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"dm-code-snippet/code-snippet-block-dm","version":"2.0.3","title":"Code Snippet DM","category":"embed","icon":"smiley","description":"This is the code block to display Code Snippet DM","keywords":["code","snippet","dm"],"supports":{"html":false},"textdomain":"code-snippet-block-dm","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"content":{"type":"string"},"theme":{"type":"string","default":"dark"},"backgroundColor":{"type":"string","default":"#abb8c3"},"slim":{"type":"boolean","default":false},"lineNumbers":{"type":"boolean","default":false},"backgroundColorStatus":{"type":"boolean","default":true},"backgroundColorMobileStatus":{"type":"boolean","default":false},"maxHeight":{"type":"string","default":""},"copyText":{"type":"string","default":"Copy Code"},"afterCopyText":{"type":"string","default":"Copied"},"language":{"type":"string","default":"php"},"wrapCode":{"type":"boolean","default":false}}}'); 656 656 657 657 /***/ }) -
code-snippet-dm/trunk/code-snippet-dm.php
r2798720 r2899117 16 16 * Plugin URI: 17 17 * Description: Display your code snippets in a stylish way inside your content. The plugin uses shortcodes and also very intuitive TinyMCE interface. 18 * Version: 2.0. 218 * Version: 2.0.3 19 19 * Author: George Cretu 20 20 * Author URI: devmaverick.com … … 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define( 'CSDM_PLUGIN_NAME_VERSION', '2.0. 2' );37 define( 'CSDM_PLUGIN_NAME_VERSION', '2.0.3' ); 38 38 39 39 /** … … 98 98 } 99 99 csdm_run_code_snippet_dm(); 100 101 function register_elementor_code_snipped_widget( $widgets_manager ) { 102 103 require_once( __DIR__ . '/elementor-widgets/code-snippet.php' ); 104 105 $widgets_manager->register( new \Elementor_DM_Code_Snippet() ); 106 } 107 add_action( 'elementor/widgets/register', 'register_elementor_code_snipped_widget' ); -
code-snippet-dm/trunk/src/block.json
r2798720 r2899117 3 3 "apiVersion": 2, 4 4 "name": "dm-code-snippet/code-snippet-block-dm", 5 "version": "2.0. 2",5 "version": "2.0.3", 6 6 "title": "Code Snippet DM", 7 7 "category": "embed",
Note: See TracChangeset
for help on using the changeset viewer.