Plugin Directory

Changeset 2899117


Ignore:
Timestamp:
04/14/2023 11:30:06 AM (3 years ago)
Author:
necroob
Message:

Update to v2.0.3

Location:
code-snippet-dm
Files:
102 added
5 edited

Legend:

Unmodified
Added
Removed
  • code-snippet-dm/trunk/README.txt

    r2798720 r2899117  
    44Tags: code, snippet, embed, code-snippet, display code
    55Requires at least: 4.0
    6 Tested up to: 6.0
    7 Requires PHP: 5.4
     6Tested up to: 6.2
     7Requires PHP: 7.4
    88Stable tag: trunk
    99License: GPLv2 or later
     
    3232Once 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.
    3333
    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.
     34The 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
     38The 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
     40Once 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
     42The 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.
    3543
    3644= Shortcode Options =
     
    9199Yes. Starting from version 2.0.1 this plugin offers support for the Gutenberg editor.
    92100
     101= Can I use this plugin with Elementor editor? =
     102
     103Yes. Starting from version 2.0.3 this plugin offers support for the Elementor.
     104
    93105= If I upgrade to v2.0.1, will my shortcodes continue to work? =
    94106
     
    1071199. Gutenberg block with options in the sidebar
    10812010. Gutenberg block for Code Snippet DM
     12111. Elementor widget with options in the sidebar
     12212. Elementor widget for Code Snippet DM
    109123
    110124== Changelog ==
     
    146160= 2.0.2 =
    147161* 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  
    33  "apiVersion": 2,
    44  "name": "dm-code-snippet/code-snippet-block-dm",
    5   "version": "2.0.2",
     5  "version": "2.0.3",
    66  "title": "Code Snippet DM",
    77  "category": "embed",
  • code-snippet-dm/trunk/build/index.js

    r2798720 r2899117  
    653653/***/ ((module) => {
    654654
    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}}}');
     655module.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}}}');
    656656
    657657/***/ })
  • code-snippet-dm/trunk/code-snippet-dm.php

    r2798720 r2899117  
    1616 * Plugin URI:
    1717 * 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.2
     18 * Version:           2.0.3
    1919 * Author:            George Cretu
    2020 * Author URI:        devmaverick.com
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define( 'CSDM_PLUGIN_NAME_VERSION', '2.0.2' );
     37define( 'CSDM_PLUGIN_NAME_VERSION', '2.0.3' );
    3838
    3939/**
     
    9898}
    9999csdm_run_code_snippet_dm();
     100
     101function 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}
     107add_action( 'elementor/widgets/register', 'register_elementor_code_snipped_widget' );
  • code-snippet-dm/trunk/src/block.json

    r2798720 r2899117  
    33    "apiVersion": 2,
    44    "name": "dm-code-snippet/code-snippet-block-dm",
    5     "version": "2.0.2",
     5    "version": "2.0.3",
    66    "title": "Code Snippet DM",
    77    "category": "embed",
Note: See TracChangeset for help on using the changeset viewer.