Skip to content

Commit 01d020e

Browse files
author
ssa1f
committed
change plugin tredmark
1 parent b42a4d4 commit 01d020e

2 files changed

Lines changed: 30 additions & 29 deletions

File tree

README.txt

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
=== Editor ===
1+
=== Snippet Flyer ===
22
Contributors: saifullahsiddique
33
Donate link: https://saifullah.co
4-
Tags: access-bee
5-
Requires at least: 6.1.1
6-
Tested up to: 6.1.1
4+
Tags: snippet-flyer, code editor, code-editor, snippet-creator, snippet creator, code block
5+
Requires at least: 6.1
6+
Tested up to: 6.1
77
Stable tag: 1.0.0
8-
Requires PHP: 8.0
8+
Requires PHP: 7.4
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

1212
Add beautiful code snippets to your blog posts or any content area.
1313

1414
== Description ==
1515

16-
This plugin will help you to add beautiful fancy code snippets into your blog posts body.
16+
Snippet Flyer will help you to add beautiful fancy code snippets into your blog posts body.
1717

18-
You don't need to configure anything after install and activate. Just add `[editor] your_code [/editor]` shortcode into content area and see the magic (replace `your_code` text to actual code).
18+
You don't need to configure anything after install and activate. Just add `[sf-editor] your_code [/sf-editor]` shortcode into content area and see the magic (replace `your_code` text to actual code).
1919

2020
== 🔔🔔🔔 Coming soon... ==
2121

22+
* Advanced option panel to more premium features
2223
* Theme Variation
2324
* Click to copy
2425
* Change code font
2526
* Export snippet to png/jpg
2627

27-
== Contribute to Editor Plugin ==
28+
== Contribute to Snippet Flyer Plugin ==
2829

29-
If you want to contribute to the project, you’re most welcome to make it happen. The full source code is available on [GitHub](https://github.com/ssa1f/editor-best-wp-code-snippets-plugin). If you find anything improbable or add new features, feel free to shoot a bug report or make a pull request.
30+
If you want to contribute to the Snippet Flyer project, you’re most welcome to make it happen. The full source code is available on [Contribute to GitHub](https://github.com/ssa1f/snippet-flyer-best-wp-code-snippets-plugin). If you find anything improbable or add new features, feel free to shoot a bug report or make a pull request.
3031

3132
== Privacy Policy ==
3233

@@ -40,10 +41,10 @@ We don't collect any data from user or website regarding any purpose. This plugi
4041

4142
== Installation ==
4243

43-
* Upload the plugin to the `/wp-content/plugins/` directory
44-
* Activate the plugin through the 'Plugins' menu in WordPress
44+
* Upload the Snippet Flyer plugin to `/wp-content/plugins/` directory
45+
* Activate Snippet Flyer through the 'Plugins' menu in WordPress
4546

4647
== Usage ==
4748

48-
* Add `[editor] your_code [/editor]` shortcode into content and place your code with `your_code` in this shortcode.
49-
* You can specify code languages with `lang` attribute like `[editor lang="javascript"] your_code [/editor]`
49+
* Add `[sf-editor] your_code [/sf-editor]` shortcode into content and place your code with `your_code` in this shortcode.
50+
* You can specify code languages with `lang` attribute like `[sf-editor lang="javascript"] your_code [/sf-editor]`

editor.php renamed to snippetflyer.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?php
22
/**
3-
* Editor
3+
* Snippet Flyer
44
*
5-
* @package Editor
5+
* @package Snippet Flyer
66
* @author Saifullah Siddique
77
* @copyright 2022 Saifullah Siddique
88
* @license GPL-2.0+
99
*
1010
* @wordpress-plugin
11-
* Plugin Name: Editor
11+
* Plugin Name: Snippet Flyer
1212
* Description: Add beautiful code snippets to your blog posts or content area.
1313
* Author: Saifullah Siddique
1414
* Author URI: http://www.saifullah.co
15-
* Text Domain: editor
15+
* Text Domain: snippetflyer
1616
* License: GPL-2.0+
1717
* License URI: http://www.gnu.org/license/gpl-2.0.txt
1818
* Version: 1.0.0
@@ -27,7 +27,7 @@
2727
// Exit if accessed directly.
2828
}
2929

30-
function _editor($attr, $content) {
30+
function _snippetFlyer($attr, $content) {
3131
$default_language = array(
3232
'lang' => ''
3333
);
@@ -56,22 +56,22 @@ function _editor($attr, $content) {
5656
strip_tags($content)
5757
);
5858
}
59-
add_shortcode( 'editor', '_editor' );
59+
add_shortcode( 'sf-editor', 'snippetFlyer' );
6060

6161
/**
6262
* Enqueue stylesheets for WP Accessibility.
6363
*/
64-
function editor_stylesheet() {
64+
function snippetflyer_stylesheet() {
6565
// Add CSS
66-
wp_register_style( 'editor-css', plugins_url('/css/editor.css', __FILE__));
67-
wp_enqueue_style( 'editor-css' );
68-
wp_register_style( 'editor-hljs-css', plugins_url( '/css/solarized_dark.css', __FILE__ ));
69-
wp_enqueue_style( 'editor-hljs-css' );
66+
wp_register_style( 'snippetflyer-css', plugins_url('/css/editor.css', __FILE__));
67+
wp_enqueue_style( 'snippetflyer-css' );
68+
wp_register_style( 'snippetflyer-hljs-css', plugins_url( '/css/solarized_dark.css', __FILE__ ));
69+
wp_enqueue_style( 'snippetflyer-hljs-css' );
7070

7171
// Add JS
72-
wp_register_script( 'editor-hljs', plugins_url( '/js/highlight.js', __FILE__ ), null, time(), true );
73-
wp_enqueue_script( 'editor-hljs' );
74-
wp_register_script( 'editor-app', plugins_url( '/js/app.js', __FILE__ ), null, time(), true );
75-
wp_enqueue_script( 'editor-app' );
72+
wp_register_script( 'snippetflyer-hljs', plugins_url( '/js/highlight.js', __FILE__ ), null, time(), true );
73+
wp_enqueue_script( 'snippetflyer-hljs' );
74+
wp_register_script( 'snippetflyer-app', plugins_url( '/js/app.js', __FILE__ ), null, time(), true );
75+
wp_enqueue_script( 'snippetflyer-app' );
7676
}
77-
add_action( 'wp_enqueue_scripts', 'editor_stylesheet' );
77+
add_action( 'wp_enqueue_scripts', 'snippetflyer_stylesheet' );

0 commit comments

Comments
 (0)