From 023cf414dbfff4abe2ea36f0cd855433cf7ae83a Mon Sep 17 00:00:00 2001 From: NewfieSoft Date: Wed, 17 May 2023 04:31:44 +0200 Subject: [PATCH] Version 1.1.0 - 17.05.2023 * We reorganized the version control schematic. * We complete testing on WordPress version 6.2.1 * Add : Functions on the Security page where you disable the meta generator. * Add : Functions on the Customization page where you Remove "WordPress" from the title on any case. * On this version we change the link rel='stylesheet' id=' generate line how in order to avoid a possible conflict with any other plugins with the same name as admin-style-css now it is admin-msyt-styles-css --- includes/mysat-custom.php | 111 +++++++++++++ includes/mysat-general.php | 54 +++++++ includes/mysat-help.php | 161 +++++++++++++++++++ includes/mysat-security.php | 76 +++++++++ includes/mysat-settings.php | 137 ++++++++++++++++ includes/mysat-surpl.php | 23 +-- languages/my-style-anytime.pot | 282 +++++++++++++++++++-------------- my-style-anytime.php | 107 +++++-------- readme.txt | 34 ++-- style.css | 20 ++- 10 files changed, 790 insertions(+), 215 deletions(-) create mode 100644 includes/mysat-custom.php create mode 100644 includes/mysat-general.php create mode 100644 includes/mysat-help.php create mode 100644 includes/mysat-security.php create mode 100644 includes/mysat-settings.php diff --git a/includes/mysat-custom.php b/includes/mysat-custom.php new file mode 100644 index 0000000..b59e41d --- /dev/null +++ b/includes/mysat-custom.php @@ -0,0 +1,111 @@ + +add_filter('admin_title', function($title) {return mysat_remove_wp_title($title);}); + +function mysat_remove_wp_title($title) { + $disable_wp_title = get_option('mysat_remove_wp_title', false); + if ($disable_wp_title) { + $wp_names = [ + __('WordPress', 'default'), // English + __('ወርድፕረስ', 'default'), // Amharic + __('ووردبريس', 'default'), //Arabic + __('ওয়ার্ডপ্রেস', 'default'), // Bengali + __('وۆردپرێس', 'default'), // Kurdish + __('وردپرس ورود', 'default'), // Persian (Afghanistan) //// + __('وردپرس', 'default'), // Persian + __('વર્ડપ્રેસ', 'default'), // Gujarati + __('וורדפרס', 'default'), // Hebrew + __('वर्डप्रेस', 'default'), // Hindi + __('ವರ್ಡ್ಪ್ರೆಸ್', 'default'), // Kannada + __('워드프레스', 'default'), // Korean + __('वर्डप्रेस', 'default'), // Marathi + __('वर्डप्रेस', 'default'), // Nepali + __('ورڈپریس', 'default'), // Saraiki + __('ورڊپريس', 'default'), // Sindhi + __('Вордпрес', 'default'), // Serbian + ]; + + $to_replace = []; + foreach($wp_names as $wp_name) { + $to_replace[] = " — " . $wp_name; + $to_replace[] = " – " . $wp_name; + $to_replace[] = " — " . $wp_name; + $to_replace[] = " — " . $wp_name; + $to_replace[] = " " . $wp_name; + $to_replace[] = $wp_name . " ‹ "; + $to_replace[] = " —"; + } + + $title = str_replace($to_replace, '', $title); + } + return $title; +} + +function mysat_remove_wp_title_callback() { + $remove_meta_gen = get_option( 'mysat_remove_wp_title', false ); + echo '
'; + echo __('From the website title displayed in a browser tab and dashboard, and wp-login.php for enhanced branding and security.', 'my-style-anytime'); + echo '
'; +} + + + +function mysat_render_custom_page() { + ?> +
+

+
+
+ +
+
+ +
NewfieSoft + ❤ + .
+ %s %s', __( 'Version: ', 'my-style-anytime' ), $plugin_data['Version'] ); + + ?> +
+

+
+

+

+

+ +

+

.

+

+ + + .

+
+ ... 🥳 +
+ +
NewfieSoft + ❤ + .
+ +
+

+
+

+ +

+ + + .

+ +

DISALLOW_FILE_EDIT + wp-config.php + true.

+ +

wp-config.php + DISALLOW_FILE_EDIT + false.

+ +

+ 😊 + true + .

+ +

+ + .

+ + ... 🥳 +
+ +
+

+
+ + +

+

+ +

cPanel + + + .

+ +

+ + + + .

+ +

+ + wp-config.php + + .

+ +

+ define('DISALLOW_FILE_EDIT', true ); + true + false.

+ +

+ + + + .

+ +

+ + .

+
+ +
+

+
+ + +

+

+ +

Plesk + + + + + + .

+ +

.

+ +

httpdocs + wp-config.php + + .

+ +

+ define('DISALLOW_FILE_EDIT', true ); + true + false.

+ +

+ + .

+ +

+ + .

+
+ +
+

+
+ + +

+

+

+ "", + .

+ +

.

+

NppFTP + .

+ + +

.

+ +

. 😊

+ +

here .

+ +
+ +
NewfieSoft + ❤ + .
+ '; + echo ''; + echo __('Remove meta generator', 'my-style-anytime'); + echo '
'; + echo __('Removing the meta generator, helps you to hide the version of WordPress that you are using from potential attackers.', 'my-style-anytime'); + echo '
'; +} + + +function mysat_render_security_page() { + ?> +
+

+
+
+ +
+
+ +
NewfieSoft + ❤ + .
+ '; + echo ''; + echo __('Disable Gutenberg Editor', 'my-style-anytime'); + echo '
'; + echo __('With this, you Disable Gutenberg on your site and back to the classic editor, not meather where you are.', 'my-style-anytime'); + echo '
'; +} + + +/*** +This function helps to check the status of DISALLOW_FILE_EDIT is it true or false. + ***/ + +add_action( 'init', 'mysat_disallow_file_edit' ); + +function mysat_disallow_file_edit() { + $disallow_file_edit = get_option( 'mysat_disallow_file_edit' ); + $config_file = ABSPATH . 'wp-config.php'; + $config = file_get_contents( $config_file ); + + if (!$disallow_file_edit && preg_match("/define\('DISALLOW_FILE_EDIT',\s*(false|'false')\);/i", $config)) { + $config = preg_replace("/define\('DISALLOW_FILE_EDIT',\s*(false|'false')\);/i", "define('DISALLOW_FILE_EDIT', true);", $config); + file_put_contents($config_file, $config); + + // Change file permissions to 600 + chmod($config_file, 0600); + + } elseif ($disallow_file_edit && preg_match("/define\('DISALLOW_FILE_EDIT',\s*(true|'true')\);/i", $config)) { + $config = preg_replace("/define\('DISALLOW_FILE_EDIT',\s*(true|'true')\);/i", "define('DISALLOW_FILE_EDIT', false);", $config); + file_put_contents($config_file, $config); + + // Change file permissions to 600 + chmod($config_file, 0600); + + } elseif (!preg_match("/define\('DISALLOW_FILE_EDIT',/i", $config)) { + if ($disallow_file_edit) { + file_put_contents($config_file, "\n\ndefine('DISALLOW_FILE_EDIT', true);", FILE_APPEND); + + } else { + file_put_contents($config_file, "\n\ndefine('DISALLOW_FILE_EDIT', false);", FILE_APPEND); + + } + // Change file permissions to 600 + chmod($config_file, 0600); + } +} + +function mysat_disallow_file_edit_callback() { + $remove_meta_gen = get_option( 'mysat_disallow_file_edit', false ); + echo '
'; + echo __('This allows you can working with style here end enable file editing in WordPress Dashboard.', 'my-style-anytime'); + echo '
'; +} + +// Generate HTML form + +function mysat_render_settings_page() { + ?> +
+

+
+
+ +
+
+ +
NewfieSoft + ❤ + .
+ roles, true)) { - wp_enqueue_style('admin-styles', plugin_dir_url(__FILE__) . '../styles/administrator-style.css'); + wp_enqueue_style('admin-msyt-styles', plugin_dir_url(__FILE__) . '../styles/administrator-style.css'); } } @@ -38,7 +39,7 @@ function mysat_get_administrator_front() if (in_array($role, wp_get_current_user()->roles, true)) { - wp_enqueue_style('admin-styles', plugin_dir_url(__FILE__) . '../styles/administrator-style.css'); + wp_enqueue_style('admin-msyt-styles', plugin_dir_url(__FILE__) . '../styles/administrator-style.css'); } } @@ -60,7 +61,7 @@ function mysat_get_editor_back() if (in_array($role, wp_get_current_user()->roles, true)) { - wp_enqueue_style('editor-styles', plugin_dir_url(__FILE__) . '../styles/editor-style.css'); + wp_enqueue_style('editor-msyt-styles', plugin_dir_url(__FILE__) . '../styles/editor-style.css'); } } @@ -77,7 +78,7 @@ function mysat_get_editor_front() if (in_array($role, wp_get_current_user()->roles, true)) { - wp_enqueue_style('editor-styles', plugin_dir_url(__FILE__) . '../styles/editor-style.css'); + wp_enqueue_style('editor-msyt-styles', plugin_dir_url(__FILE__) . '../styles/editor-style.css'); } } @@ -98,7 +99,7 @@ function mysat_get_author_back() if (in_array($role, wp_get_current_user()->roles, true)) { - wp_enqueue_style('author-styles', plugin_dir_url(__FILE__) . '../styles/author-style.css'); + wp_enqueue_style('author-msyt-styles', plugin_dir_url(__FILE__) . '../styles/author-style.css'); } } @@ -115,7 +116,7 @@ function mysat_get_author_front() if (in_array($role, wp_get_current_user()->roles, true)) { - wp_enqueue_style('author-styles', plugin_dir_url(__FILE__) . '../styles/author-style.css'); + wp_enqueue_style('author-msyt-styles', plugin_dir_url(__FILE__) . '../styles/author-style.css'); } } @@ -136,7 +137,7 @@ function mysat_get_contributor_back() if (in_array($role, wp_get_current_user()->roles, true)) { - wp_enqueue_style('contributor-styles', plugin_dir_url(__FILE__) . '../styles/contributor-style.css'); + wp_enqueue_style('contributor-msyt-styles', plugin_dir_url(__FILE__) . '../styles/contributor-style.css'); } } @@ -153,7 +154,7 @@ function mysat_get_contributor_front() if (in_array($role, wp_get_current_user()->roles, true)) { - wp_enqueue_style('contributor-styles', plugin_dir_url(__FILE__) . '../styles/contributor-style.css'); + wp_enqueue_style('contributor-msyt-styles', plugin_dir_url(__FILE__) . '../styles/contributor-style.css'); } } @@ -174,7 +175,7 @@ function mysat_get_subscriber_back() if (in_array($role, wp_get_current_user()->roles, true)) { - wp_enqueue_style('subscriber-styles', plugin_dir_url(__FILE__) . '../styles/subscriber-style.css'); + wp_enqueue_style('subscriber-msyt-styles', plugin_dir_url(__FILE__) . '../styles/subscriber-style.css'); } } @@ -191,7 +192,7 @@ function mysat_get_subscriber_front() if (in_array($role, wp_get_current_user()->roles, true)) { - wp_enqueue_style('subscriber-styles', plugin_dir_url(__FILE__) . '../styles/subscriber-style.css'); + wp_enqueue_style('subscriber-msyt-styles', plugin_dir_url(__FILE__) . '../styles/subscriber-style.css'); } } @@ -212,7 +213,7 @@ function mysat_get_visitor_style() if (0 === $current_user->ID) { - wp_enqueue_style('visitor-styles', plugin_dir_url(__FILE__) . '../styles/visitor-style.css'); + wp_enqueue_style('visitor-msyt-styles', plugin_dir_url(__FILE__) . '../styles/visitor-style.css'); } diff --git a/languages/my-style-anytime.pot b/languages/my-style-anytime.pot index 6c2ca5d..40f6be3 100644 --- a/languages/my-style-anytime.pot +++ b/languages/my-style-anytime.pot @@ -12,7 +12,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Loco https://localise.biz/\n" -"X-Loco-Version: 2.6.2; wp-6.0.2\n" +"X-Loco-Version: 2.6.2; wp-6.2.1\n" "X-Domain: my-style-anytime" #. URI of the plugin @@ -35,394 +35,434 @@ msgstr "" msgid "This WordPress plugin helps you to create and customize Front-end (public view) and Back-end (wp-admin) style views using the user's type of rules. At the same time, you can do responsive design on the same CSS file rule. #Lite Version Now you can Disable Gutenberg style anywhere & Enable the classic editor. This function helps you to back your WordPress in a classic view in posts, pages, widgets" msgstr "" -#: my-style-anytime.php:51 +#: my-style-anytime.php:54 msgid "My Style Anytime" msgstr "" -#: my-style-anytime.php:61 +#: my-style-anytime.php:64 +#: my-style-anytime.php:132 msgid "General" msgstr "" -#: my-style-anytime.php:70 -#: pages/mysat-help.php:7 -#: pages/mysat-help.php:68 -#: pages/mysat-help.php:105 +#: my-style-anytime.php:73 +#: includes/mysat-help.php:27 +#: includes/mysat-help.php:88 +#: includes/mysat-help.php:125 msgid "Manage Style" msgstr "" -#: my-style-anytime.php:79 -#: my-style-anytime.php:154 -#: includes/mysat-functions.php:115 -#: pages/mysat-help.php:25 +#: my-style-anytime.php:82 +#: includes/mysat-custom.php:93 +msgid "Customization" +msgstr "" + +#: my-style-anytime.php:91 +#: includes/mysat-security.php:58 +msgid "Security" +msgstr "" + +#: my-style-anytime.php:100 +#: includes/mysat-settings.php:119 +#: includes/mysat-help.php:45 msgid "Settings" msgstr "" -#: my-style-anytime.php:88 +#: my-style-anytime.php:109 msgid "Help" msgstr "" -#: my-style-anytime.php:107 +#: my-style-anytime.php:133 +msgid "Get Premium" +msgstr "" + +#: my-style-anytime.php:163 +msgid "Community Support" +msgstr "" + +#: my-style-anytime.php:164 +msgid "FAQ" +msgstr "" + +#: my-style-anytime.php:165 +msgid "Ratings" +msgstr "" + +#: includes/mysat-general.php:27 msgid "Version: " msgstr "" -#: my-style-anytime.php:112 +#: includes/mysat-general.php:31 msgid "Welcome" msgstr "" -#: my-style-anytime.php:114 -#: pages/mysat-help.php:4 +#: includes/mysat-general.php:33 +#: includes/mysat-help.php:24 msgid "Hi," msgstr "" -#: my-style-anytime.php:115 +#: includes/mysat-general.php:34 msgid "We are honored that you decided to use our plugin." msgstr "" -#: my-style-anytime.php:116 +#: includes/mysat-general.php:35 msgid "This is" msgstr "" -#: my-style-anytime.php:117 +#: includes/mysat-general.php:36 msgid "Lite Version," msgstr "" -#: my-style-anytime.php:118 +#: includes/mysat-general.php:37 msgid "and you have full WordPress default user rules support." msgstr "" -#: my-style-anytime.php:119 +#: includes/mysat-general.php:38 msgid "If you like this plugin and you need other plugins user roles in plugins like as is WooCommerce or others who have user roles" msgstr "" -#: my-style-anytime.php:121 +#: includes/mysat-general.php:40 msgid "Visit our site for a premium offer" msgstr "" -#: my-style-anytime.php:122 +#: includes/mysat-general.php:41 msgid "here" msgstr "" -#: my-style-anytime.php:123 +#: includes/mysat-general.php:42 msgid ", for a single or multi-site with one single license key" msgstr "" -#: my-style-anytime.php:125 -#: pages/mysat-help.php:28 +#: includes/mysat-general.php:44 +#: includes/mysat-help.php:48 msgid "Enjoy your work" msgstr "" -#: my-style-anytime.php:128 -#: includes/mysat-functions.php:126 -#: pages/mysat-help.php:135 +#: includes/mysat-general.php:47 +#: includes/mysat-custom.php:104 +#: includes/mysat-security.php:69 +#: includes/mysat-settings.php:130 +#: includes/mysat-help.php:154 msgid "Premium Tools for WordPress made by" msgstr "" -#: my-style-anytime.php:129 -#: includes/mysat-functions.php:127 -#: pages/mysat-help.php:136 +#: includes/mysat-general.php:48 +#: includes/mysat-custom.php:105 +#: includes/mysat-security.php:70 +#: includes/mysat-settings.php:131 +#: includes/mysat-help.php:155 msgid "with" msgstr "" -#: my-style-anytime.php:130 -#: includes/mysat-functions.php:128 -#: pages/mysat-help.php:137 +#: includes/mysat-general.php:49 +#: includes/mysat-custom.php:106 +#: includes/mysat-security.php:71 +#: includes/mysat-settings.php:132 +#: includes/mysat-help.php:156 msgid "in Zürich, Switzerland" msgstr "" -#: my-style-anytime.php:155 -msgid "Get Premium" +#: includes/mysat-custom.php:82 +msgid "Remove WordPress from title" msgstr "" -#: my-style-anytime.php:190 -msgid "Community Support" +#: includes/mysat-custom.php:84 +msgid "From the website title displayed in a browser tab and dashboard, and wp-login.php for enhanced branding and security." msgstr "" -#: my-style-anytime.php:191 -msgid "FAQ" +#: includes/mysat-security.php:48 +msgid "Remove meta generator" msgstr "" -#: my-style-anytime.php:192 -msgid "Ratings" +#: includes/mysat-security.php:50 +msgid "Removing the meta generator, helps you to hide the version of WordPress that you are using from potential attackers." msgstr "" -#: includes/mysat-functions.php:19 +#: includes/mysat-settings.php:59 msgid "Disable Gutenberg Editor" msgstr "" -#: includes/mysat-functions.php:27 +#: includes/mysat-settings.php:61 +msgid "With this, you Disable Gutenberg on your site and back to the classic editor, not meather where you are." +msgstr "" + +#: includes/mysat-settings.php:108 msgid "Allow File Code Editor" msgstr "" -#: includes/mysat-functions.php:121 +#: includes/mysat-settings.php:110 +msgid "This allows you can working with style here end enable file editing in WordPress Dashboard." +msgstr "" + +#: includes/mysat-custom.php:99 +#: includes/mysat-security.php:60 +#: includes/mysat-settings.php:125 msgid "Save" msgstr "" -#: pages/mysat-help.php:2 + + +#: includes/mysat-help.php:22 msgid "Information" msgstr "" -#: pages/mysat-help.php:6 +#: includes/mysat-help.php:26 msgid "When you click on the" msgstr "" -#: pages/mysat-help.php:8 +#: includes/mysat-help.php:28 msgid "you get a message" msgstr "" -#: pages/mysat-help.php:9 +#: includes/mysat-help.php:29 msgid "Sorry, you are not allowed to access this page" msgstr "" -#: pages/mysat-help.php:11 +#: includes/mysat-help.php:31 msgid "Function" msgstr "" -#: pages/mysat-help.php:12 +#: includes/mysat-help.php:32 msgid "in" msgstr "" -#: pages/mysat-help.php:13 +#: includes/mysat-help.php:33 msgid "is enabled to have the status" msgstr "" -#: pages/mysat-help.php:15 +#: includes/mysat-help.php:35 msgid "You need to edit" msgstr "" -#: pages/mysat-help.php:16 +#: includes/mysat-help.php:36 msgid "and change" msgstr "" -#: pages/mysat-help.php:17 -#: pages/mysat-help.php:59 -#: pages/mysat-help.php:98 +#: includes/mysat-help.php:37 +#: includes/mysat-help.php:79 +#: includes/mysat-help.php:118 msgid "to" msgstr "" -#: pages/mysat-help.php:19 +#: includes/mysat-help.php:39 msgid "After finish your work with" msgstr "" -#: pages/mysat-help.php:20 +#: includes/mysat-help.php:40 msgid "Me" msgstr "" -#: pages/mysat-help.php:21 +#: includes/mysat-help.php:41 msgid "you can back to" msgstr "" -#: pages/mysat-help.php:22 +#: includes/mysat-help.php:42 msgid "if you like or need it" msgstr "" -#: pages/mysat-help.php:24 +#: includes/mysat-help.php:44 msgid "In a simple and easy way, now you can just go to" msgstr "" -#: pages/mysat-help.php:26 +#: includes/mysat-help.php:46 msgid "and Allow File Code Editor" msgstr "" -#: pages/mysat-help.php:32 +#: includes/mysat-help.php:52 msgid "How to edit with cPanel" msgstr "" -#: pages/mysat-help.php:39 +#: includes/mysat-help.php:59 msgid "When you log in on your" msgstr "" -#: pages/mysat-help.php:40 +#: includes/mysat-help.php:60 msgid "host account search type" msgstr "" -#: pages/mysat-help.php:41 -#: pages/mysat-help.php:47 -#: pages/mysat-help.php:82 +#: includes/mysat-help.php:61 +#: includes/mysat-help.php:67 +#: includes/mysat-help.php:102 msgid "File Manager" msgstr "" -#: pages/mysat-help.php:42 +#: includes/mysat-help.php:62 msgid "like on the picture" msgstr "" -#: pages/mysat-help.php:44 +#: includes/mysat-help.php:64 msgid "Click on the File Manager" msgstr "" -#: pages/mysat-help.php:45 +#: includes/mysat-help.php:65 msgid "icon" msgstr "" -#: pages/mysat-help.php:46 +#: includes/mysat-help.php:66 msgid "and in the new web browser tab you see the" msgstr "" -#: pages/mysat-help.php:48 +#: includes/mysat-help.php:68 msgid "window and all your hosting folders and files" msgstr "" -#: pages/mysat-help.php:50 +#: includes/mysat-help.php:70 msgid "Go to directory" msgstr "" -#: pages/mysat-help.php:51 +#: includes/mysat-help.php:71 msgid "public_html" msgstr "" -#: pages/mysat-help.php:52 +#: includes/mysat-help.php:72 msgid "and found file" msgstr "" -#: pages/mysat-help.php:53 +#: includes/mysat-help.php:73 msgid "click the right mouse to see a menu, after that click" msgstr "" -#: pages/mysat-help.php:54 +#: includes/mysat-help.php:74 msgid "with the left click, if you get some popup window just click edit" msgstr "" -#: pages/mysat-help.php:56 +#: includes/mysat-help.php:76 msgid "When you see the file editor, look to find" msgstr "" -#: pages/mysat-help.php:58 +#: includes/mysat-help.php:78 msgid "and change from" msgstr "" -#: pages/mysat-help.php:61 +#: includes/mysat-help.php:81 msgid "Click on the top right button" msgstr "" -#: pages/mysat-help.php:62 +#: includes/mysat-help.php:82 msgid "Save Changes" msgstr "" -#: pages/mysat-help.php:63 +#: includes/mysat-help.php:83 msgid "and then click on the" msgstr "" -#: pages/mysat-help.php:64 +#: includes/mysat-help.php:84 msgid "Close" msgstr "" -#: pages/mysat-help.php:65 -#: pages/mysat-help.php:69 -#: pages/mysat-help.php:106 +#: includes/mysat-help.php:85 +#: includes/mysat-help.php:89 +#: includes/mysat-help.php:126 msgid "button" msgstr "" -#: pages/mysat-help.php:67 +#: includes/mysat-help.php:87 msgid "Now you can edit your style on the" msgstr "" -#: pages/mysat-help.php:73 +#: includes/mysat-help.php:93 msgid "How to edit with Plesk" msgstr "" -#: pages/mysat-help.php:80 +#: includes/mysat-help.php:100 msgid "When you log in on your" msgstr "" -#: pages/mysat-help.php:81 +#: includes/mysat-help.php:101 msgid "host account you can see on way your" msgstr "" -#: pages/mysat-help.php:83 +#: includes/mysat-help.php:103 msgid "like on the picture, mark on" msgstr "" -#: pages/mysat-help.php:84 +#: includes/mysat-help.php:104 msgid "Green" msgstr "" -#: pages/mysat-help.php:85 +#: includes/mysat-help.php:105 msgid "and" msgstr "" -#: pages/mysat-help.php:86 +#: includes/mysat-help.php:106 msgid "Blue" msgstr "" -#: pages/mysat-help.php:88 +#: includes/mysat-help.php:108 msgid "When you click on File Manager, you see in the same window all your hosting folders and files" msgstr "" -#: pages/mysat-help.php:90 +#: includes/mysat-help.php:110 msgid "Go to directory" msgstr "" -#: pages/mysat-help.php:91 +#: includes/mysat-help.php:111 msgid "and found file" msgstr "" -#: pages/mysat-help.php:92 +#: includes/mysat-help.php:112 msgid "click the mouse left and click on the file and you get a direct" msgstr "" -#: pages/mysat-help.php:93 +#: includes/mysat-help.php:113 msgid "file to manage" msgstr "" -#: pages/mysat-help.php:95 +#: includes/mysat-help.php:115 msgid "When you see file editor, look to find" msgstr "" -#: pages/mysat-help.php:97 +#: includes/mysat-help.php:117 msgid "and change from" msgstr "" -#: pages/mysat-help.php:100 +#: includes/mysat-help.php:120 msgid "Click on the bottom left button" msgstr "" -#: pages/mysat-help.php:101 -msgid "Save" -msgstr "" - -#: pages/mysat-help.php:102 +#: includes/mysat-help.php:122 msgid "after that editor automatically close" msgstr "" -#: pages/mysat-help.php:104 +#: includes/mysat-help.php:124 msgid "Now you can edit your style on the" msgstr "" -#: pages/mysat-help.php:110 +#: includes/mysat-help.php:130 msgid "Use Code Editor to create or edit files and folders" msgstr "" -#: pages/mysat-help.php:117 +#: includes/mysat-help.php:137 msgid "We mainly use free software and tools that why this is one of our slogans" msgstr "" -#: pages/mysat-help.php:118 +#: includes/mysat-help.php:138 msgid "Freedom to thinking gives you the freedom to work anywhere or anytime" msgstr "" -#: pages/mysat-help.php:119 +#: includes/mysat-help.php:139 msgid "in this case, small but powerful multi-language code editor software Notepad ++" msgstr "" -#: pages/mysat-help.php:121 +#: includes/mysat-help.php:141 msgid "This makes it easier for us to make quick and simpler changes to any project, regardless of whether it is live somewhere on the internet or in the development process" msgstr "" -#: pages/mysat-help.php:122 +#: includes/mysat-help.php:142 msgid "If you are working on the code development side, not mother what. With Notepad ++ in your pocket, you just need to install the Notepad ++ FTP plugin" msgstr "" -#: pages/mysat-help.php:123 +#: includes/mysat-help.php:143 msgid "which allows you to follow protocols like FTP, FTPS, FTPES, and SFTP communications. This is very useful for the development and access online or in localhost" msgstr "" -#: pages/mysat-help.php:126 +#: includes/mysat-help.php:146 msgid "Now when you are connecting with Notepad ++ using FTP you can open any existing file or create a new one, and after any save CTRL+S with the key on the keyboard in the background FTP send changes to the host project and you can see changes" msgstr "" -#: pages/mysat-help.php:128 +#: includes/mysat-help.php:148 msgid "We hope you enjoy Notepad++ as we are" msgstr "" -#: pages/mysat-help.php:130 +#: includes/mysat-help.php:150 msgid "You can find more and download it on the official website" msgstr "" diff --git a/my-style-anytime.php b/my-style-anytime.php index caa938f..a5ff916 100644 --- a/my-style-anytime.php +++ b/my-style-anytime.php @@ -6,7 +6,7 @@ Description: This WordPress plugin helps you to create and customize Front-end (public view) and Back-end (wp-admin) style views using the user's type of rules. At the same time, you can do responsive design on the same CSS file rule. #Lite Version Now you can Disable Gutenberg style anywhere & Enable the classic editor. This function helps you to back your WordPress in a classic view in posts, pages, widgets -Version: 1.0.4 +Version: 1.1.0 Author: NewfieSoft Author URI: https://www.newfiesoft.com Donate link: https://newfiesoft.com/donate @@ -18,18 +18,20 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html */ + defined('ABSPATH') or exit(); if ( ! function_exists( 'is_plugin_active' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } + // Load plugin Text Domain -add_action( 'plugins_loaded', 'mmysat_plugin_load_text_domain' ); +add_action( 'plugins_loaded', 'mmysat_plugin_load_text_domain'); + function mmysat_plugin_load_text_domain() { load_plugin_textdomain( 'my-style-anytime', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); - // error_log( print_r( is_textdomain_loaded( 'my-style-anytime' ), true ) ); } @@ -41,7 +43,8 @@ function mysat_plugin_core_style() wp_enqueue_style('plugin-global', plugin_dir_url(__FILE__) . 'style.css'); } -// This configure menu name and sub names. + +// This configures menu name and sub names. add_action('admin_menu', 'mysat_active_admin_menu'); function mysat_active_admin_menu() @@ -51,7 +54,7 @@ function mysat_active_admin_menu() __('My Style Anytime', 'my-style-anytime'), // Menu Title; 'activate_plugins', 'my-style-anytime', // ID - 'mysat_general_info_page', + 'mysat_render_general_page', 'dashicons-welcome-widgets-menus' ); @@ -61,7 +64,7 @@ function mysat_active_admin_menu() __('General', 'my-style-anytime'), // Menu Title; 'activate_plugins', 'my-style-anytime', // Your menu URL slug - 'mysat_general_info_page' // echo function + 'mysat_render_general_page' // echo function ); add_submenu_page( // Manage Style button @@ -73,6 +76,24 @@ function mysat_active_admin_menu() // Your menu URL slug ); + add_submenu_page( // Customization button + 'my-style-anytime', // ID + 'Custom', + __('Customization', 'my-style-anytime'), // Menu Title; + 'activate_plugins', + 'mysat_custom_page', // Your menu URL slug + 'mysat_render_custom_page' // callback function + ); + + add_submenu_page( // Security button + 'my-style-anytime', // ID + 'Security', + __('Security', 'my-style-anytime'), // Menu Title; + 'activate_plugins', + 'mysat_security_page', // Your menu URL slug + 'mysat_render_security_page' // callback function + ); + add_submenu_page( // Settings button 'my-style-anytime', // ID 'Settings', @@ -82,54 +103,14 @@ function mysat_active_admin_menu() 'mysat_render_settings_page' // callback function ); - add_submenu_page( // Help button - 'my-style-anytime', // ID - 'Help', - __('Help', 'my-style-anytime'), // Menu Title; - 'activate_plugins', - 'help', // Your menu URL slug - static function () { // callback function - require "pages/mysat-help.php"; - } - ); -} - -add_action('', 'mysat_general_info_page'); -function mysat_general_info_page() -{ - -// Get My plugin version - if ( is_admin() ) { - if ( ! function_exists( 'get_plugin_data' ) ) { - require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); - } - $plugin_data = get_plugin_data( __FILE__ ); - printf( '
%s %s
', __('Version: ', 'my-style-anytime'), $plugin_data['Version'] ); - } - - ?> -
-

-
-

-

-

- -

-

.

-

- - - .

-
- ... 🥳 -
- -
NewfieSoft - ❤ - .
- - ' . $support_name . ''; $site_link_premium = '' . $getpro_name . ''; - // Organize buttons return array_merge( (array)$settings_url, (array)$site_link_premium, - // (array)$help_link, $actions, ); - } + // This help to create additional custom meta links in the sequel after Version By .... Installed Plugins list add_filter('plugin_row_meta', 'mysat_custom_link_action_plugin', 10, 4); @@ -179,19 +154,16 @@ function mysat_custom_link_action_plugin($links_array, $mysat_plugin_name) if ($mysat_plugin_name === $plugindir) { - // Build URL Links $support_url = 'https://wordpress.org/support/plugin/my-style-anytime/'; $faq_url = 'https://wordpress.org/plugins/my-style-anytime/#faq'; $rating_url = 'https://wordpress.org/support/plugin/my-style-anytime/reviews/#new-post'; - // Links name $support_name =__('Community Support', 'my-style-anytime'); $faq_name =__('FAQ', 'my-style-anytime'); $rating_name =__('Ratings', 'my-style-anytime'); - // Create buttons $links_array[] = '' . $support_name . ''; $links_array[] = '' . $faq_name . ''; @@ -202,7 +174,8 @@ function mysat_custom_link_action_plugin($links_array, $mysat_plugin_name) } -// This register hook who checks DISALLOW_FILE_EDIT and set it to true if need before deactivating the plugin + +// This register hook checks DISALLOW_FILE_EDIT and sets it to true if needed before deactivating the plugin register_deactivation_hook( __FILE__, 'mysat_deactivate_plugin' ); function mysat_deactivate_plugin() { diff --git a/readme.txt b/readme.txt index 10c84f3..fb226a8 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: NewfieSoft Donate link: https://newfiesoft.com/donate Tags: style, css, custom-css, styles, stylesheet, editor, custom, customizer, admin, admin-style, frontend, frontend-style, backend, backend-style, rules, user, user-rules, user-style Requires at least: 4.9.0 -Tested up to: 6.1.1 -Stable tag: 1.0.4 +Tested up to: 6.2.1 +Stable tag: 1.1.0 Requires PHP: 5.2.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -14,7 +14,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html This plugin helps you to create and customize user types of rules using CSS style sheets. -It Is very useful among Frontend Developers, who work to create many different style combinations on Frontend (public/visitor/guest view). +It Is very useful among Frontend Developers, who work to create many style combinations on Frontend (public/visitor/guest view). But at the same time as you can customize the front view, ask if you can customize what and how can look your Backend (wp-admin). Of any user rules type who can access and get a different style. @@ -22,7 +22,6 @@ At the same time, you can do responsive design on the same CSS file rule. This Lite Version plugin supports all standard [WordPress user roles](https://wordpress.org/support/article/roles-and-capabilities/). -From version 1.0.4 we add functionality to disable Gutenberg style anywhere & enable the classic editor. This function helps you to back your WordPress in a classic view, in posts, pages, and widgets. ### Features @@ -33,6 +32,8 @@ From version 1.0.4 we add functionality to disable Gutenberg st * Subscriber custom style view * Including Visitor/Guest custom style view style. * Disable Gutenberg style +* Disable the meta generator. +* Remove "WordPress" from the title on any case scenario and on all available Site Language inside WordPress settings. While this [Premium Version](https://newfiesoft.com/wp-plugins/my-style-anytime/), we work to integrate other additional independent WordPress plugins user rules such as [WooCommerce](https://wordpress.org/plugins/woocommerce/), [Loco Translate](https://wordpress.org/plugins/loco-translate/), [Yoast SEO](https://wordpress.org/plugins/wordpress-seo/), [YITH WooCommerce Affiliates](https://wordpress.org/plugins/yith-woocommerce-affiliates/), and many others. @@ -41,14 +42,16 @@ While this [Premium Version](https://newfiesoft.com/wp-plugins/my-style- == Screenshots == 1. Welcome screen -2. Plugins Settings where you can enable additional useful functions -3. Code Editor where you can manage and customize your style -3. Administrator custom style view -4. Editor custom style view -5. Author custom style view -6. Contributor custom style view -7. Subscriber custom style view -8. Visitor custom style view +2. Code Editor where you can manage and customize your style +3. Plugins Customization page and his configuration options +4. Plugins Security page and his Information and configuration options +5. Plugins Settings where you can enable additional useful functions +6. Administrator custom style view +7. Editor custom style view +8. Author custom style view +9. Contributor custom style view +10. Subscriber custom style view +11. Visitor custom style view == Installation == @@ -99,6 +102,13 @@ But if you're using an upgrade inside the WordPress site plugin area, before doi == Changelog == += 1.1.0 - 17.05.2023 = +* We reorganized the version control schematic. +* We complete testing on WordPress version 6.2.1 +* Add : Functions on the Security page where you disable the meta generator. +* Add : Functions on the Customization page where you Remove "WordPress" from the title on any case. +* On this version we change the link rel='stylesheet' id=' generate line how in order to avoid a possible conflict with any other plugins with the same name as admin-style-css now it is admin-msyt-styles-css + = 1.0.4 - 24.02.2023 = * We reorganized the directory structure and code. * Add : Settings pages where you can enable or disable on-click file editing. diff --git a/style.css b/style.css index ae9c5ae..7cc74ed 100644 --- a/style.css +++ b/style.css @@ -115,11 +115,23 @@ margin-top: 25px } -/* -.alignright { - display: none; +.form-table th { + width: 0 !important; + padding: 0 !important; +} + +.form-table td { + padding-left: 0 !important; +} + +.function_name { + vertical-align: middle; + font-weight: bold; +} + +.function_description { + padding-top: 5px; } -*/ .img-panel-info { width: 100%;