Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
We released a new version 1.2.0 with new features and optimized with the last WordPress version 6.3.1
  • Loading branch information
newfiesoft authored Sep 29, 2023
1 parent 169b298 commit b8068fb
Show file tree
Hide file tree
Showing 22 changed files with 2,158 additions and 78 deletions.
4 changes: 2 additions & 2 deletions includes/mysat-custom.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ 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 __('Remove WordPress from the 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>';
Expand All @@ -92,7 +92,7 @@ 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">
<form action="options.php" method="post" class="page_mysat_custom_page">
<?php
settings_fields( 'mysat_custom_group' );
do_settings_sections( 'mysat_custom_page' );
Expand Down
27 changes: 20 additions & 7 deletions includes/mysat-general.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,27 @@ function mysat_render_general_page() {
<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( 'As you read before installing and activating this plugin with him, you have the possibility to create a custom CSS view using user rules.', 'my-style-anytime' ); ?></p>
<p><?php _e( 'If you like this plugin it would be nice from your side to give us your rating and feedback.', 'my-style-anytime' ); ?>
<a href="https://wordpress.org/support/plugin/my-style-anytime/reviews/#new-post" target="_blank" class="rate-star-filled">
<span class="dashicons dashicons-star-empty"></span>
<span class="dashicons dashicons-star-half"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
</a>
</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>
<?php _e( 'For help, you have our ', 'my-style-anytime' ); ?>
<a href="https://wordpress.org/plugins/my-style-anytime/#faq" target="_blank" class="faq-filled"><?php _e( 'FAQ', 'my-style-anytime' ); ?> <span class="dashicons dashicons-format-chat"></span></a>
<?php _e( 'part, or if that does not help you can write your question in the', 'my-style-anytime' ); ?>
<a href="https://wordpress.org/support/plugin/my-style-anytime/" target="_blank" class="help-filled"><?php _e( 'support sections.', 'my-style-anytime' ); ?> <span class="dashicons dashicons-sos"></span></a>.
</p>
<p>
<?php _e( 'We would be very pleased if you supported the advancement of this plugin with your ', 'my-style-anytime' ); ?>
<a href="https://newfiesoft.com/donate/" target="_blank" class="donate-filled"><?php _e( 'donation', 'my-style-anytime' ); ?><span class="dashicons dashicons-heart"></span></a>.
</p>

<br>
<?php _e( 'Enjoy your work', 'my-style-anytime' ); ?>... 🥳
</div>
Expand Down
25 changes: 13 additions & 12 deletions includes/mysat-help.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function mysat_render_help_page() {
<?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>
<p><?php _e( 'After finishing 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>
Expand All @@ -56,21 +56,21 @@ function mysat_render_help_page() {
<p style="padding-top:10px;">
</p>

<p><?php _e( 'When you log in on your', 'my-style-anytime' ); ?><b>cPanel</b>
<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>
<?php _e( 'like in 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>
<p><?php _e( 'Click on the', 'my-style-anytime' ); ?> <b><?php _e( 'File Manager', 'my-style-anytime' ); ?></b>
<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( 'click the right mouse button 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' ); ?>
Expand Down Expand Up @@ -102,7 +102,7 @@ function mysat_render_help_page() {
<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><?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>
Expand All @@ -112,7 +112,7 @@ function mysat_render_help_page() {
<?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' ); ?>
<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>
Expand All @@ -135,19 +135,20 @@ function mysat_render_help_page() {
<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>,
<b>"<?php _e( 'Freedom to think 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>
<p><?php _e( 'If you are working on the code development side, no matter 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( '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 sends 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>
<p><?php _e( 'You can find more and download it on the official website', 'my-style-anytime' ); ?>
<a href="https://notepad-plus-plus.org/"><?php _e( 'here', 'my-style-anytime' ); ?></a> .</p>

</div>

Expand Down
265 changes: 265 additions & 0 deletions includes/mysat-purpl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
<?php

/****
* =
* # Create custom CSS Rules view for FrontEnd & BackEnd Wp-admin
* =
****/

/* ############### Plugins Wordpress Users type roles ############### */


/*
Name: WooCommerce
URL: https://wordpress.org/plugins/woocommerce/
*/

///// WooCommerce Shop Manager CSS view Rules
add_action('admin_enqueue_scripts', 'mysat_get_woocommerce_shop_manager_back');

function mysat_get_woocommerce_shop_manager_back()
{

$roles = array('shop_manager');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('woo-shop-manager-styles', plugin_dir_url(__FILE__) . '../styles/woo-shop-manager-style.css');

}
}
}

add_action('wp_enqueue_scripts', 'mysat_get_woocommerce_shop_manager_front');

function mysat_get_woocommerce_shop_manager_front()
{

$roles = array('shop_manager');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('woo-shop-manager-styles', plugin_dir_url(__FILE__) . '../styles/woo-shop-manager-style.css');

}
}
}

////////////////////////////////////////////


///// WooCommerce Customer CSS view Rules
add_action('admin_enqueue_scripts', 'mysat_get_woocommerce_customer_back');

function mysat_get_woocommerce_customer_back()
{

$roles = array('customer');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('woo-customer-styles', plugin_dir_url(__FILE__) . '../styles/woo-customer-style.css');

}
}
}

add_action('wp_enqueue_scripts', 'mysat_get_woocommerce_customer_front');

function mysat_get_woocommerce_customer_front()
{

$roles = array('customer');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('woo-customer-styles', plugin_dir_url(__FILE__) . '../styles/woo-customer-style.css');

}
}
}

////////////////////////////////////////////

/*==== End Woocommerce plugin styles rules ====*/


/*
Name: Loco Translate
URL: https://wordpress.org/plugins/loco-translate/
*/

///// Loco Translate Translator CSS view Rules
add_action('admin_enqueue_scripts', 'mysat_get_loco_translate_standard_back');

function mysat_get_loco_translate_standard_back()
{

$roles = array('translator');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('loco-translator-styles', plugin_dir_url(__FILE__) . '../styles/loco-translator-style.css');

}
}
}

add_action('wp_enqueue_scripts', 'mysat_get_loco_translate_standard_front');

function mysat_get_loco_translate_standard_front()
{

$roles = array('translator');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('loco-translator-styles', plugin_dir_url(__FILE__) . '../styles/loco-translator-style.css');

}
}
}

////////////////////////////////////////////

/*==== End Loco Translate plugin styles rules ====*/


/*
Name: Yoast SEO
URL: https://wordpress.org/plugins/wordpress-seo/
*/

///// Yoast SEO Manager CSS view Rules
add_action('admin_enqueue_scripts', 'mysat_get_yoast_seo_manager_back');

function mysat_get_yoast_seo_manager_back()
{

$roles = array('wpseo_manager');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('yoast-seo-manager-styles', plugin_dir_url(__FILE__) . '../styles/yoast-seo-manager-style.css');

}
}
}

add_action('wp_enqueue_scripts', 'mysat_get_yoast_seo_manager_front');

function mysat_get_yoast_seo_manager_front()
{

$roles = array('wpseo_manager');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('yoast-seo-manager-styles', plugin_dir_url(__FILE__) . '../styles/yoast-seo-manager-style.css');

}
}
}

////////////////////////////////////////////


///// Yoast SEO Editor CSS view Rules
add_action('admin_enqueue_scripts', 'mysat_get_yoast_seo_editor_back');

function mysat_get_yoast_seo_editor_back()
{

$roles = array('wpseo_editor');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('yoast-seo-editor-styles', plugin_dir_url(__FILE__) . '../styles/yoast-seo-editor-style.css');

}
}
}

add_action('wp_enqueue_scripts', 'mysat_get_yoast_seo_editor_front');

function mysat_get_yoast_seo_editor_front()
{

$roles = array('wpseo_editor');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('yoast-seo-manager-styles', plugin_dir_url(__FILE__) . '../styles/yoast-seo-editor-style.css');

}
}
}

////////////////////////////////////////////

/*==== End Yoast SEO plugin styles rules ====*/


/*
Name: YITH WooCommerce Affiliates
URL: https://wordpress.org/plugins/yith-woocommerce-affiliates/
*/

///// YITH Affiliates CSS view Rules
add_action('admin_enqueue_scripts', 'mysat_get_yith_affiliates_back');

function mysat_get_yith_affiliates_back()
{

$roles = array('yith_affiliate');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('yith-affiliates-styles', plugin_dir_url(__FILE__) . '../styles/yith-affiliates.css');

}
}
}

add_action('wp_enqueue_scripts', 'mysat_get_yith_affiliates_front');

function mysat_get_yith_affiliates_front()
{

$roles = array('yith_affiliate');

foreach ($roles as $role) {

if (in_array($role, wp_get_current_user()->roles, true)) {

wp_enqueue_style('yith-affiliates-styles', plugin_dir_url(__FILE__) . '../styles/yith-affiliates.css');

}
}
}

////////////////////////////////////////////

/*==== End YITH WooCommerce Affiliates plugin styles rules ====*/
Loading

0 comments on commit b8068fb

Please sign in to comment.