-
-
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.
- Loading branch information
1 parent
72c0b13
commit d282aad
Showing
18 changed files
with
2,070 additions
and
0 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,108 @@ | ||
<div class="el-license-container"> | ||
<h3 class="el-license-title" style="margin:0;"><i class="dashicons dashicons-info-outline"></i> Information</h3> | ||
<hr> | ||
<p style="padding-top:10px;">Hi,</p> | ||
|
||
<p>When you click on the <b>Manage Styles</b> button, you get a message <b style="border: 1px solid; padding: 3px;">Sorry, | ||
you are not allowed to access this page</b> .</p> | ||
|
||
<p>Function <b>DISALLOW_FILE_EDIT</b> in <b>wp-config.php</b> is enabled to have the status <b | ||
style="color: #0000ff;">true</b>.</p> | ||
|
||
<p>You need to edit <b>wp-config.php</b> and change <b>DISALLOW_FILE_EDIT</b> to <b | ||
style="color: #0000ff;">false</b>.</p> | ||
|
||
<p>After finish your work with <b>Me :)</b> you can back to <b style="color: #0000ff;">true</b> if you like or need | ||
it.</p> | ||
|
||
Enjoy your job... :) | ||
</div> | ||
|
||
<div class="el-license-container"> | ||
<h3 class="el-license-title" style="margin:0;"><i class="dashicons dashicons-info-outline"></i> How to edit with | ||
cPanel</h3> | ||
<hr> | ||
|
||
<img class="img-panel-info" src="<?php echo plugin_dir_url(__FILE__) . '/img/cPanel-file-manager.png' ?>" alt=""/> | ||
<p style="padding-top:10px;"> | ||
</p> | ||
|
||
<p>When you log in on your <b>cPanel</b> host account search type <b>File Manager</b> like on the picture.</p> | ||
|
||
<p>Click on the File Manager <b>icon</b> and in the new web browser tab you see the <b>File Manager</b> window and | ||
all your hosting folders and files.</p> | ||
|
||
<p>Go to directory <b>public_html</b> and found file <b>wp-config.php</b> click the right mouse to see a menu, after | ||
that click <b>edit</b> with the left click, if you get some popup window just click edit.</p> | ||
|
||
<p>When you see the file editor, look to find <b style="border: 1px solid; padding: 3px;">define( | ||
'DISALLOW_FILE_EDIT', true );</b> and change from <b style="color: #0000ff;">true</b> to <b | ||
style="color: #0000ff;">false</b>.</p> | ||
|
||
<p>Click on the top right button <b>Save Changes</b> and then click on the <b>Close</b> button.</p> | ||
|
||
<p>Now you can edit your style on the <b>Manage Styles</b> button.</p> | ||
</div> | ||
|
||
<div class="el-license-container"> | ||
<h3 class="el-license-title" style="margin:0;"><i class="dashicons dashicons-info-outline"></i> How to edit with | ||
Plesk</h3> | ||
<hr> | ||
|
||
<img class="img-panel-info" src="<?php echo plugin_dir_url(__FILE__) . '/img/Plesk-file-manager.png' ?>" alt=""/> | ||
<p style="padding-top:10px;"> | ||
</p> | ||
|
||
<p>When you log in on your <b>Plesk</b> host account you can see on way your <b>File Manger</b> like on the picture, | ||
mark on <b style="color:green;">Green</b> and <b style="color:blue;">Blue</b>.</p> | ||
|
||
<p>When you click on File Manager, you see in the same window all your hosting folders and files.</p> | ||
|
||
<p>Go to directory <b>httpdocs</b> and found file <b>wp-config.php</b> click the mouse left and click on the file | ||
and you get a direct <b>Code-Editor</b> file to manage.</p> | ||
|
||
<p>When you see file editor, look to find <b style="border: 1px solid; padding: 3px;">define( 'DISALLOW_FILE_EDIT', | ||
true );</b> and change from <b style="color: #0000ff;">true</b> to <b style="color: #0000ff;">false</b>.</p> | ||
|
||
<p>Click on the bottom left button <b>Save</b> after that editor automatically close.</p> | ||
|
||
<p>Now you can edit your style on the <b>Manage Style</b> button.</p> | ||
</div> | ||
|
||
<div class="el-license-container"> | ||
<h3 class="el-license-title" style="margin:0;"><i class="dashicons dashicons-info-outline"></i> Use Code Editor to | ||
create or edit files and folders</h3> | ||
<hr> | ||
|
||
<img class="img-cover-info" src="<?php echo sprintf("%s/img/Note_pad_pp_logo.png", plugin_dir_url(__FILE__)) ?>" | ||
alt=""/> | ||
<p style="padding-top:10px;"> | ||
</p> | ||
<p>We mainly use free software and tools that's why this is one of our slogans <b>"Freedom to thinking gives you the | ||
freedom to work anywhere or anytime"</b>, in this case, small but powerful multi-language code editor | ||
software Notepad ++.</p> | ||
|
||
<p>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.</p> | ||
<p>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 <b><a href="https://ashkulz.github.io/NppFTP/">NppFTP</a></b> 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.</p> | ||
|
||
|
||
<p>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.</p> | ||
|
||
<p>We hope you enjoy Notepad++ as we are. :)</p> | ||
|
||
<p>You can find more and download it on the official website <a href="https://notepad-plus-plus.org/">here</a> .</p> | ||
|
||
</div> | ||
|
||
<div class="power-by-info" style="width: 98%;text-align: right;">Premium Tools for WordPress made by <a | ||
href="https://www.newfiesoft.com" target="_blank">NewfieSoft</a> with <img draggable="false" role="img" | ||
class="emoji" alt="❤️" | ||
src="https://s.w.org/images/core/emoji/14.0.0/svg/2764.svg"> | ||
in Zürich, Switzerland. | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 @@ | ||
<?php | ||
/** | ||
* Hmm... | ||
* You looking something? | ||
* Nothing to see here. | ||
*/ |
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,6 @@ | ||
<?php | ||
/** | ||
* Hmm... | ||
* You looking something? | ||
* Nothing to see here. | ||
*/ |
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,219 @@ | ||
<?php | ||
|
||
/**** | ||
* = | ||
* # Create custom CSS Rules view for FrontEnd & BackEnd Wp-admin | ||
* = | ||
****/ | ||
|
||
/* ############### Standard Wordpress Users type roles ############### */ | ||
|
||
|
||
///// Administrator CSS view Rules | ||
add_action('admin_enqueue_scripts', 'mysat_get_administrator_back'); | ||
|
||
function mysat_get_administrator_back() | ||
{ | ||
|
||
$roles = array('administrator'); | ||
|
||
foreach ($roles as $role) { | ||
|
||
if (in_array($role, wp_get_current_user()->roles, true)) { | ||
|
||
wp_enqueue_style('admin-styles', plugin_dir_url(__FILE__) . '../styles/administrator-style.css'); | ||
|
||
} | ||
} | ||
} | ||
|
||
add_action('wp_enqueue_scripts', 'mysat_get_administrator_front'); | ||
|
||
function mysat_get_administrator_front() | ||
{ | ||
|
||
$roles = array('administrator'); | ||
|
||
foreach ($roles as $role) { | ||
|
||
if (in_array($role, wp_get_current_user()->roles, true)) { | ||
|
||
wp_enqueue_style('admin-styles', plugin_dir_url(__FILE__) . '../styles/administrator-style.css'); | ||
|
||
} | ||
} | ||
|
||
} | ||
|
||
//////////////////////////////////////////// | ||
|
||
|
||
///// Editor CSS view Rules | ||
add_action('admin_enqueue_scripts', 'mysat_get_editor_back'); | ||
|
||
function mysat_get_editor_back() | ||
{ | ||
|
||
$roles = array('editor'); | ||
|
||
foreach ($roles as $role) { | ||
|
||
if (in_array($role, wp_get_current_user()->roles, true)) { | ||
|
||
wp_enqueue_style('editor-styles', plugin_dir_url(__FILE__) . '../styles/editor-style.css'); | ||
|
||
} | ||
} | ||
} | ||
|
||
add_action('wp_enqueue_scripts', 'mysat_get_editor_front'); | ||
|
||
function mysat_get_editor_front() | ||
{ | ||
|
||
$roles = array('editor'); | ||
|
||
foreach ($roles as $role) { | ||
|
||
if (in_array($role, wp_get_current_user()->roles, true)) { | ||
|
||
wp_enqueue_style('editor-styles', plugin_dir_url(__FILE__) . '../styles/editor-style.css'); | ||
|
||
} | ||
} | ||
} | ||
|
||
//////////////////////////////////////////// | ||
|
||
|
||
///// Author CSS view Rules | ||
add_action('admin_enqueue_scripts', 'mysat_get_author_back'); | ||
|
||
function mysat_get_author_back() | ||
{ | ||
|
||
$roles = array('author'); | ||
|
||
foreach ($roles as $role) { | ||
|
||
if (in_array($role, wp_get_current_user()->roles, true)) { | ||
|
||
wp_enqueue_style('author-styles', plugin_dir_url(__FILE__) . '../styles/author-style.css'); | ||
|
||
} | ||
} | ||
} | ||
|
||
add_action('wp_enqueue_scripts', 'mysat_get_author_front'); | ||
|
||
function mysat_get_author_front() | ||
{ | ||
|
||
$roles = array('author'); | ||
|
||
foreach ($roles as $role) { | ||
|
||
if (in_array($role, wp_get_current_user()->roles, true)) { | ||
|
||
wp_enqueue_style('author-styles', plugin_dir_url(__FILE__) . '../styles/author-style.css'); | ||
|
||
} | ||
} | ||
} | ||
|
||
//////////////////////////////////////////// | ||
|
||
|
||
///// Contributor CSS view Rules | ||
add_action('admin_enqueue_scripts', 'mysat_get_contributor_back'); | ||
|
||
function mysat_get_contributor_back() | ||
{ | ||
|
||
$roles = array('contributor'); | ||
|
||
foreach ($roles as $role) { | ||
|
||
if (in_array($role, wp_get_current_user()->roles, true)) { | ||
|
||
wp_enqueue_style('contributor-styles', plugin_dir_url(__FILE__) . '../styles/contributor-style.css'); | ||
|
||
} | ||
} | ||
} | ||
|
||
add_action('wp_enqueue_scripts', 'mysat_get_contributor_front'); | ||
|
||
function mysat_get_contributor_front() | ||
{ | ||
|
||
$roles = array('contributor'); | ||
|
||
foreach ($roles as $role) { | ||
|
||
if (in_array($role, wp_get_current_user()->roles, true)) { | ||
|
||
wp_enqueue_style('contributor-styles', plugin_dir_url(__FILE__) . '../styles/contributor-style.css'); | ||
|
||
} | ||
} | ||
} | ||
|
||
//////////////////////////////////////////// | ||
|
||
|
||
///// Subscriber CSS view Rules | ||
add_action('admin_enqueue_scripts', 'mysat_get_subscriber_back'); | ||
|
||
function mysat_get_subscriber_back() | ||
{ | ||
|
||
$roles = array('subscriber'); | ||
|
||
foreach ($roles as $role) { | ||
|
||
if (in_array($role, wp_get_current_user()->roles, true)) { | ||
|
||
wp_enqueue_style('subscriber-styles', plugin_dir_url(__FILE__) . '../styles/subscriber-style.css'); | ||
|
||
} | ||
} | ||
} | ||
|
||
add_action('wp_enqueue_scripts', 'mysat_get_subscriber_front'); | ||
|
||
function mysat_get_subscriber_front() | ||
{ | ||
|
||
$roles = array('subscriber'); | ||
|
||
foreach ($roles as $role) { | ||
|
||
if (in_array($role, wp_get_current_user()->roles, true)) { | ||
|
||
wp_enqueue_style('subscriber-styles', plugin_dir_url(__FILE__) . '../styles/subscriber-style.css'); | ||
|
||
} | ||
} | ||
} | ||
|
||
//////////////////////////////////////////// | ||
|
||
|
||
///// Visitor CSS view Rules | ||
add_action('wp_enqueue_scripts', 'mysat_get_visitor_style'); | ||
|
||
function mysat_get_visitor_style() | ||
{ | ||
|
||
global $current_user; | ||
|
||
wp_get_current_user(); | ||
|
||
if (0 === $current_user->ID) { | ||
|
||
wp_enqueue_style('visitor-styles', plugin_dir_url(__FILE__) . '../styles/visitor-style.css'); | ||
|
||
} | ||
|
||
} |
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,6 @@ | ||
<?php | ||
/** | ||
* Hmm... | ||
* You looking something? | ||
* Nothing to see here. | ||
*/ |
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,6 @@ | ||
<?php | ||
/** | ||
* Hmm... | ||
* You looking something? | ||
* Nothing to see here. | ||
*/ |
Oops, something went wrong.