-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
1 parent
e734328
commit 023cf41
Showing
10 changed files
with
790 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<?php | ||
|
||
/*** | ||
This is part of #Customize# configuration | ||
***/ | ||
|
||
|
||
add_action( 'admin_init', 'mysat_custom_page' ); | ||
|
||
function mysat_custom_page() { | ||
add_settings_section( | ||
'mysat_custom_section', | ||
'', | ||
'', | ||
'mysat_custom_page' | ||
); | ||
|
||
add_settings_field( | ||
'mysat_remove_wp_title', | ||
__('', 'my-style-anytime'), // Remove "WordPress" from title | ||
'mysat_remove_wp_title_callback', | ||
'mysat_custom_page', | ||
'mysat_custom_section' | ||
); | ||
|
||
register_setting( 'mysat_custom_group', 'mysat_remove_wp_title' ); | ||
} | ||
|
||
/*** | ||
This remove WordPress in title on wp-login.php and in WordPress Dashboard | ||
***/ | ||
|
||
// Remove on page wp-login.php | ||
add_filter('login_title', function($title) {return mysat_remove_wp_title($title);}); | ||
|
||
// Remove on <title> | ||
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 '<label for="mysat_remove_wp_title" class="function_name">'; | ||
echo '<input type="checkbox" id="mysat_remove_wp_title" name="mysat_remove_wp_title" value="1" ' . checked( $remove_meta_gen, 1, false ) . ' />'; | ||
echo __('Remove WordPress from title', 'my-style-anytime'); | ||
echo '</label><div class="function_description">'; | ||
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 '</div>'; | ||
} | ||
|
||
|
||
|
||
function mysat_render_custom_page() { | ||
?> | ||
<div class="license-container"> | ||
<h3 class="license-title" style="margin:0;"><i class="dashicons dashicons-info-outline"></i> <?php _e( 'Customization', 'my-style-anytime' ); ?></h3> | ||
<hr> | ||
<form action="options.php" method="post"> | ||
<?php | ||
settings_fields( 'mysat_custom_group' ); | ||
do_settings_sections( 'mysat_custom_page' ); | ||
submit_button( __( 'Save', 'my-style-anytime' ) ); | ||
?> | ||
</form> | ||
</div> | ||
|
||
<div class="power-by-info"><?php _e( 'Premium Tools for WordPress made by', 'my-style-anytime' ); ?> <a href="https://www.newfiesoft.com" target="_blank">NewfieSoft</a> | ||
<?php _e( 'with', 'my-style-anytime' ); ?> <img draggable="false" role="img" class="emoji" alt="❤" src="https://s.w.org/images/core/emoji/14.0.0/svg/2764.svg"> | ||
<?php _e( 'in Zürich, Switzerland', 'my-style-anytime' ); ?>.</div> | ||
<?php | ||
|
||
} | ||
|
||
add_action( 'admin_menu', 'mysat_active_admin_menu' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
|
||
/*** | ||
This is part of #General# configuration | ||
***/ | ||
|
||
|
||
add_action( 'admin_init', 'mysat_general_page' ); | ||
|
||
function mysat_general_page() { | ||
add_settings_section( | ||
'mysat_general_section', | ||
'', | ||
'', | ||
'my-style-anytime' | ||
); | ||
} | ||
|
||
add_action( '', 'mysat_render_general_page' ); | ||
function mysat_render_general_page() { | ||
|
||
// Get My plugin version | ||
if ( ! function_exists( 'get_plugin_data' ) ) { | ||
require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | ||
} | ||
$plugin_data = get_plugin_data( __DIR__ . '/../my-style-anytime.php' ); | ||
printf( '<div class="version">%s %s</div>', __( 'Version: ', 'my-style-anytime' ), $plugin_data['Version'] ); | ||
|
||
?> | ||
<div class="license-container" style="margin-top: 2px;"> | ||
<h3 class="license-title" style="margin:0;"><i class="dashicons dashicons-info-outline"></i> <?php _e( 'Welcome', 'my-style-anytime' ); ?></h3> | ||
<hr> | ||
<p style="padding-top:10px;"><?php _e( 'Hi,', 'my-style-anytime' ); ?></p> | ||
<p><?php _e( 'We are honored that you decided to use our plugin.', 'my-style-anytime' ); ?></p> | ||
<p><?php _e( 'This is', 'my-style-anytime' ); ?><strong class="lite"> | ||
<?php _e( 'Lite Version,', 'my-style-anytime' ); ?></strong> | ||
<?php _e( 'and you have full WordPress default user rules support.', 'my-style-anytime' ); ?></p> | ||
<p><?php _e( 'If you like this plugin and you need other plugins user roles in plugins like as is WooCommerce or others who have user roles', 'my-style-anytime' ); ?>.</p> | ||
<p> | ||
<?php _e( 'Visit our site for a premium offer', 'my-style-anytime' ); ?> | ||
<a href="https://newfiesoft.com/plugins/my-style-anytime/" target="_blank"><?php _e( 'here', 'my-style-anytime' ); ?></a> | ||
<?php _e( ', for a single or multi-site with one single license key', 'my-style-anytime' ); ?>.</p> | ||
<br> | ||
<?php _e( 'Enjoy your work', 'my-style-anytime' ); ?>... 🥳 | ||
</div> | ||
|
||
<div class="power-by-info"><?php _e( 'Premium Tools for WordPress made by', 'my-style-anytime' ); ?> <a href="https://www.newfiesoft.com" target="_blank">NewfieSoft</a> | ||
<?php _e( 'with', 'my-style-anytime' ); ?> <img draggable="false" role="img" class="emoji" alt="❤" src="https://s.w.org/images/core/emoji/14.0.0/svg/2764.svg"> | ||
<?php _e( 'in Zürich, Switzerland', 'my-style-anytime' ); ?>.</div> | ||
<?php | ||
|
||
} | ||
|
||
add_action( 'admin_menu', 'mysat_active_admin_menu' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
<?php | ||
|
||
/*** | ||
This is part of #Help# configuration | ||
***/ | ||
|
||
|
||
add_action( 'admin_init', 'mysat_help_page' ); | ||
|
||
function mysat_help_page() { | ||
add_settings_section( | ||
'mysat_help_section', | ||
'', | ||
'', | ||
'mysat_help_page' | ||
); | ||
} | ||
|
||
function mysat_render_help_page() { | ||
?> | ||
<div class="license-container"> | ||
<h3 class="license-title" style="margin:0;"><i class="dashicons dashicons-info-outline"></i> <?php _e( 'Information', 'my-style-anytime' ); ?></h3> | ||
<hr> | ||
<p style="padding-top:10px;"><?php _e( 'Hi,', 'my-style-anytime' ); ?></p> | ||
|
||
<p><?php _e( 'When you click on the', 'my-style-anytime' ); ?> <b> | ||
<?php _e( 'Manage Style', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'you get a message', 'my-style-anytime' ); ?> | ||
<b style="border: 1px solid; padding: 3px;"><?php _e( 'Sorry, you are not allowed to access this page', 'my-style-anytime' ); ?></b> .</p> | ||
|
||
<p><?php _e( 'Function', 'my-style-anytime' ); ?> <b>DISALLOW_FILE_EDIT</b> | ||
<?php _e( 'in', 'my-style-anytime' ); ?> <b>wp-config.php</b> | ||
<?php _e( 'is enabled to have the status', 'my-style-anytime' ); ?> <b style="color: #0000ff;">true</b>.</p> | ||
|
||
<p><?php _e( 'You need to edit', 'my-style-anytime' ); ?> <b>wp-config.php</b> | ||
<?php _e( 'and change', 'my-style-anytime' ); ?> <b>DISALLOW_FILE_EDIT</b> | ||
<?php _e( 'to', 'my-style-anytime' ); ?> <b style="color: #0000ff;">false</b>.</p> | ||
|
||
<p><?php _e( 'After finish your work with', 'my-style-anytime' ); ?><b> | ||
<?php _e( 'Me', 'my-style-anytime' ); ?> 😊</b> | ||
<?php _e( 'you can back to', 'my-style-anytime' ); ?> <b style="color: #0000ff;">true</b> | ||
<?php _e( 'if you like or need it', 'my-style-anytime' ); ?>.</p> | ||
|
||
<p><?php _e( 'In a simple and easy way, now you can just go to', 'my-style-anytime' ); ?> | ||
<b><a href="admin.php?page=mysat_settings_page"><?php _e( 'Settings', 'my-style-anytime' ); ?></a></b> | ||
<?php _e( 'and Allow File Code Editor', 'my-style-anytime' ); ?>.</p> | ||
|
||
<?php _e( 'Enjoy your work', 'my-style-anytime' ); ?>... 🥳 | ||
</div> | ||
|
||
<div class="license-container"> | ||
<h3 class="license-title" style="margin:0;"><i class="dashicons dashicons-info-outline"></i> <?php _e( 'How to edit with cPanel', 'my-style-anytime' ); ?></h3> | ||
<hr> | ||
|
||
<img class="img-panel-info" src="<?php echo plugin_dir_url(__DIR__) . 'assets/img/cPanel-file-manager.png' ?>" alt=""/> | ||
<p style="padding-top:10px;"> | ||
</p> | ||
|
||
<p><?php _e( 'When you log in on your', 'my-style-anytime' ); ?><b>cPanel</b> | ||
<?php _e( 'host account search type', 'my-style-anytime' ); ?> | ||
<b><?php _e( 'File Manager', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'like on the picture', 'my-style-anytime' ); ?>.</p> | ||
|
||
<p><?php _e( 'Click on the File Manager', 'my-style-anytime' ); ?> <b> | ||
<?php _e( 'icon', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'and in the new web browser tab you see the', 'my-style-anytime' ); ?> | ||
<b><?php _e( 'File Manager', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'window and all your hosting folders and files', 'my-style-anytime' ); ?>.</p> | ||
|
||
<p><?php _e( 'Go to directory', 'my-style-anytime' ); ?> | ||
<b><?php _e( 'public_html', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'and found file', 'my-style-anytime' ); ?> <b>wp-config.php</b> | ||
<?php _e( 'click the right mouse to see a menu, after that click', 'my-style-anytime' ); ?> <b><?php _e( 'edit', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'with the left click, if you get some popup window just click edit', 'my-style-anytime' ); ?>.</p> | ||
|
||
<p><?php _e( 'When you see the file editor, look to find', 'my-style-anytime' ); ?> | ||
<b style="border: 1px solid; padding: 3px;">define('DISALLOW_FILE_EDIT', true );</b> | ||
<?php _e( 'and change from', 'my-style-anytime' ); ?> <b style="color: #0000ff;">true</b> | ||
<?php _e( 'to', 'my-style-anytime' ); ?> <b style="color: #0000ff;">false</b>.</p> | ||
|
||
<p><?php _e( 'Click on the top right button', 'my-style-anytime' ); ?> | ||
<b><?php _e( 'Save Changes', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'and then click on the', 'my-style-anytime' ); ?> | ||
<b><?php _e( 'Close', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'button', 'my-style-anytime' ); ?>.</p> | ||
|
||
<p><?php _e( 'Now you can edit your style on the', 'my-style-anytime' ); ?> | ||
<b><?php _e( 'Manage Style', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'button', 'my-style-anytime' ); ?>.</p> | ||
</div> | ||
|
||
<div class="license-container"> | ||
<h3 class="license-title" style="margin:0;"><i class="dashicons dashicons-info-outline"></i> <?php _e( 'How to edit with Plesk', 'my-style-anytime' ); ?></h3> | ||
<hr> | ||
|
||
<img class="img-panel-info" src="<?php echo plugin_dir_url(__DIR__) . 'assets/img/Plesk-file-manager.png' ?>" alt=""/> | ||
<p style="padding-top:10px;"> | ||
</p> | ||
|
||
<p><?php _e( 'When you log in on your', 'my-style-anytime' ); ?> <b>Plesk</b> | ||
<?php _e( 'host account you can see on way your', 'my-style-anytime' ); ?> | ||
<b><?php _e( 'File Manager', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'like on the picture, mark on', 'my-style-anytime' ); ?> | ||
<b style="color:green;"><?php _e( 'Green', 'my-style-anytime' ); ?></b> | ||
<b style="color:green;"><?php _e( 'and', 'my-style-anytime' ); ?></b> | ||
<b style="color:blue;"><?php _e( 'Blue', 'my-style-anytime' ); ?></b>.</p> | ||
|
||
<p><?php _e( 'When you click on File Manager, you see in the same window all your hosting folders and files', 'my-style-anytime' ); ?>.</p> | ||
|
||
<p><?php _e( 'Go to directory', 'my-style-anytime' ); ?> <b>httpdocs</b> | ||
<?php _e( 'and found file', 'my-style-anytime' ); ?> <b>wp-config.php</b> | ||
<?php _e( 'click the mouse left and click on the file and you get a direct', 'my-style-anytime' ); ?> <b><?php _e( 'Code-Editor', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'file to manage', 'my-style-anytime' ); ?>.</p> | ||
|
||
<p><?php _e( 'When you see file editor, look to find', 'my-style-anytime' ); ?> | ||
<b style="border: 1px solid; padding: 3px;">define('DISALLOW_FILE_EDIT', true );</b> | ||
<?php _e( 'and change from', 'my-style-anytime' ); ?> <b style="color: #0000ff;">true</b> | ||
<?php _e( 'to', 'my-style-anytime' ); ?> <b style="color: #0000ff;">false</b>.</p> | ||
|
||
<p><?php _e( 'Click on the bottom left button', 'my-style-anytime' ); ?> | ||
<b><?php _e( 'Save', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'after that editor automatically close', 'my-style-anytime' ); ?>.</p> | ||
|
||
<p><?php _e( 'Now you can edit your style on the', 'my-style-anytime' ); ?> | ||
<b><?php _e( 'Manage Style', 'my-style-anytime' ); ?></b> | ||
<?php _e( 'button', 'my-style-anytime' ); ?>.</p> | ||
</div> | ||
|
||
<div class="license-container"> | ||
<h3 class="license-title" style="margin:0;"><i class="dashicons dashicons-info-outline"></i> <?php _e( 'Use Code Editor to create or edit files and folders', 'my-style-anytime' ); ?></h3> | ||
<hr> | ||
|
||
<img class="img-cover-info" src="<?php echo plugin_dir_url(__DIR__) . 'assets/img/Note_pad_pp_logo.png' ?>" | ||
alt=""/> | ||
<p style="padding-top:10px;"> | ||
</p> | ||
<p><?php _e( 'We mainly use free software and tools that why this is one of our slogans', 'my-style-anytime' ); ?> | ||
<b>"<?php _e( 'Freedom to thinking gives you the freedom to work anywhere or anytime', 'my-style-anytime' ); ?>"</b>, | ||
<?php _e( 'in this case, small but powerful multi-language code editor software Notepad ++', 'my-style-anytime' ); ?>.</p> | ||
|
||
<p><?php _e( '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', 'my-style-anytime' ); ?>.</p> | ||
<p><?php _e( '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', 'my-style-anytime' ); ?> <b><a href="https://ashkulz.github.io/NppFTP/">NppFTP</a></b> | ||
<?php _e( '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', 'my-style-anytime' ); ?>.</p> | ||
|
||
|
||
<p><?php _e( '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', 'my-style-anytime' ); ?>.</p> | ||
|
||
<p><?php _e( 'We hope you enjoy Notepad++ as we are', 'my-style-anytime' ); ?>. 😊</p> | ||
|
||
<p><?php _e( 'You can find more and download it on the official website', 'my-style-anytime' ); ?> <a href="https://notepad-plus-plus.org/">here</a> .</p> | ||
|
||
</div> | ||
|
||
<div class="power-by-info"><?php _e( 'Premium Tools for WordPress made by', 'my-style-anytime' ); ?> <a href="https://www.newfiesoft.com" target="_blank">NewfieSoft</a> | ||
<?php _e( 'with', 'my-style-anytime' ); ?> <img draggable="false" role="img" class="emoji" alt="❤" src="https://s.w.org/images/core/emoji/14.0.0/svg/2764.svg"> | ||
<?php _e( 'in Zürich, Switzerland', 'my-style-anytime' ); ?>.</div> | ||
<?php | ||
|
||
} | ||
|
||
add_action( 'admin_menu', 'mysat_active_admin_menu' ); |
Oops, something went wrong.