Changeset 3458804
- Timestamp:
- 02/11/2026 09:14:58 AM (6 days ago)
- Location:
- essential-elements
- Files:
-
- 93 added
- 12 deleted
- 31 edited
- 1 copied
-
assets/banner-1544x500.png (modified) (1 prop) (previous)
-
assets/banner-772x250.png (modified) (1 prop) (previous)
-
assets/icon-128x128.png (modified) (1 prop) (previous)
-
assets/icon-256x256.png (modified) (1 prop) (previous)
-
assets/screenshot-1.png (modified) (1 prop) (previous)
-
assets/screenshot-2.png (added)
-
assets/screenshot-3.png (added)
-
assets/screenshot-4.png (added)
-
tags/1.0.1 (copied) (copied from essential-elements/trunk)
-
tags/1.0.1/assets/css/admin-rtl.css (added)
-
tags/1.0.1/assets/css/admin.asset.php (added)
-
tags/1.0.1/assets/css/admin.css (added)
-
tags/1.0.1/assets/css/esse-frontend-rtl.css (deleted)
-
tags/1.0.1/assets/css/esse-frontend.asset.php (deleted)
-
tags/1.0.1/assets/css/esse-frontend.css (deleted)
-
tags/1.0.1/assets/css/progress-bar (added)
-
tags/1.0.1/assets/css/progress-bar/frontend-rtl.css (added)
-
tags/1.0.1/assets/css/progress-bar/frontend.asset.php (added)
-
tags/1.0.1/assets/css/progress-bar/frontend.css (added)
-
tags/1.0.1/assets/css/scroll-bar (added)
-
tags/1.0.1/assets/css/scroll-bar/frontend-rtl.css (added)
-
tags/1.0.1/assets/css/scroll-bar/frontend.asset.php (added)
-
tags/1.0.1/assets/css/scroll-bar/frontend.css (added)
-
tags/1.0.1/assets/css/scroll-top (added)
-
tags/1.0.1/assets/css/scroll-top/frontend-rtl.css (added)
-
tags/1.0.1/assets/css/scroll-top/frontend.asset.php (added)
-
tags/1.0.1/assets/css/scroll-top/frontend.css (added)
-
tags/1.0.1/assets/js/esse-frontend.asset.php (deleted)
-
tags/1.0.1/assets/js/esse-frontend.js (deleted)
-
tags/1.0.1/assets/js/progress-bar (added)
-
tags/1.0.1/assets/js/progress-bar/frontend.asset.php (added)
-
tags/1.0.1/assets/js/progress-bar/frontend.js (added)
-
tags/1.0.1/assets/js/scroll-top (added)
-
tags/1.0.1/assets/js/scroll-top/frontend.asset.php (added)
-
tags/1.0.1/assets/js/scroll-top/frontend.js (added)
-
tags/1.0.1/composer.json (deleted)
-
tags/1.0.1/essential-elements.php (modified) (3 diffs)
-
tags/1.0.1/includes/Admin/Admin.php (modified) (7 diffs)
-
tags/1.0.1/includes/Admin/views (added)
-
tags/1.0.1/includes/Admin/views/aside.php (added)
-
tags/1.0.1/includes/Admin/views/dashboard.php (added)
-
tags/1.0.1/includes/Admin/views/header.php (added)
-
tags/1.0.1/includes/Admin/views/modules.php (added)
-
tags/1.0.1/includes/Admin/views/settings.php (added)
-
tags/1.0.1/includes/Modules (added)
-
tags/1.0.1/includes/Modules/Modules.php (added)
-
tags/1.0.1/includes/Modules/ProgressBar (added)
-
tags/1.0.1/includes/Modules/ProgressBar/ProgressBar.php (added)
-
tags/1.0.1/includes/Modules/ProgressBar/Settings.php (added)
-
tags/1.0.1/includes/Modules/ProgressBar/views (added)
-
tags/1.0.1/includes/Modules/ProgressBar/views/settings.php (added)
-
tags/1.0.1/includes/Modules/ScrollBar (added)
-
tags/1.0.1/includes/Modules/ScrollBar/ScrollBar.php (added)
-
tags/1.0.1/includes/Modules/ScrollBar/Settings.php (added)
-
tags/1.0.1/includes/Modules/ScrollBar/views (added)
-
tags/1.0.1/includes/Modules/ScrollBar/views/settings.php (added)
-
tags/1.0.1/includes/Modules/ScrollTop (added)
-
tags/1.0.1/includes/Modules/ScrollTop/ScrollTop.php (added)
-
tags/1.0.1/includes/Modules/ScrollTop/Settings.php (added)
-
tags/1.0.1/includes/Modules/ScrollTop/views (added)
-
tags/1.0.1/includes/Modules/ScrollTop/views/settings.php (added)
-
tags/1.0.1/includes/Plugin.php (modified) (11 diffs)
-
tags/1.0.1/includes/functions.php (modified) (1 diff)
-
tags/1.0.1/languages/essential-elements.pot (modified) (6 diffs)
-
tags/1.0.1/readme.txt (modified) (4 diffs)
-
tags/1.0.1/uninstall.php (added)
-
tags/1.0.1/vendor/autoload.php (modified) (1 diff)
-
tags/1.0.1/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
tags/1.0.1/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/1.0.1/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.0.1/vendor/composer/autoload_static.php (modified) (4 diffs)
-
tags/1.0.1/vendor/composer/installed.php (modified) (2 diffs)
-
tags/1.0.1/vendor/composer/platform_check.php (modified) (1 diff)
-
trunk/assets/css/admin-rtl.css (added)
-
trunk/assets/css/admin.asset.php (added)
-
trunk/assets/css/admin.css (added)
-
trunk/assets/css/esse-frontend-rtl.css (deleted)
-
trunk/assets/css/esse-frontend.asset.php (deleted)
-
trunk/assets/css/esse-frontend.css (deleted)
-
trunk/assets/css/progress-bar (added)
-
trunk/assets/css/progress-bar/frontend-rtl.css (added)
-
trunk/assets/css/progress-bar/frontend.asset.php (added)
-
trunk/assets/css/progress-bar/frontend.css (added)
-
trunk/assets/css/scroll-bar (added)
-
trunk/assets/css/scroll-bar/frontend-rtl.css (added)
-
trunk/assets/css/scroll-bar/frontend.asset.php (added)
-
trunk/assets/css/scroll-bar/frontend.css (added)
-
trunk/assets/css/scroll-top (added)
-
trunk/assets/css/scroll-top/frontend-rtl.css (added)
-
trunk/assets/css/scroll-top/frontend.asset.php (added)
-
trunk/assets/css/scroll-top/frontend.css (added)
-
trunk/assets/js/esse-frontend.asset.php (deleted)
-
trunk/assets/js/esse-frontend.js (deleted)
-
trunk/assets/js/progress-bar (added)
-
trunk/assets/js/progress-bar/frontend.asset.php (added)
-
trunk/assets/js/progress-bar/frontend.js (added)
-
trunk/assets/js/scroll-top (added)
-
trunk/assets/js/scroll-top/frontend.asset.php (added)
-
trunk/assets/js/scroll-top/frontend.js (added)
-
trunk/composer.json (deleted)
-
trunk/essential-elements.php (modified) (3 diffs)
-
trunk/includes/Admin/Admin.php (modified) (7 diffs)
-
trunk/includes/Admin/views (added)
-
trunk/includes/Admin/views/aside.php (added)
-
trunk/includes/Admin/views/dashboard.php (added)
-
trunk/includes/Admin/views/header.php (added)
-
trunk/includes/Admin/views/modules.php (added)
-
trunk/includes/Admin/views/settings.php (added)
-
trunk/includes/Modules (added)
-
trunk/includes/Modules/Modules.php (added)
-
trunk/includes/Modules/ProgressBar (added)
-
trunk/includes/Modules/ProgressBar/ProgressBar.php (added)
-
trunk/includes/Modules/ProgressBar/Settings.php (added)
-
trunk/includes/Modules/ProgressBar/views (added)
-
trunk/includes/Modules/ProgressBar/views/settings.php (added)
-
trunk/includes/Modules/ScrollBar (added)
-
trunk/includes/Modules/ScrollBar/ScrollBar.php (added)
-
trunk/includes/Modules/ScrollBar/Settings.php (added)
-
trunk/includes/Modules/ScrollBar/views (added)
-
trunk/includes/Modules/ScrollBar/views/settings.php (added)
-
trunk/includes/Modules/ScrollTop (added)
-
trunk/includes/Modules/ScrollTop/ScrollTop.php (added)
-
trunk/includes/Modules/ScrollTop/Settings.php (added)
-
trunk/includes/Modules/ScrollTop/views (added)
-
trunk/includes/Modules/ScrollTop/views/settings.php (added)
-
trunk/includes/Plugin.php (modified) (11 diffs)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/languages/essential-elements.pot (modified) (6 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/uninstall.php (added)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (4 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/vendor/composer/platform_check.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
essential-elements/assets/banner-1544x500.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
essential-elements/assets/banner-772x250.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
essential-elements/assets/icon-128x128.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
essential-elements/assets/icon-256x256.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
essential-elements/assets/screenshot-1.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
essential-elements/tags/1.0.1/essential-elements.php
r3270973 r3458804 4 4 * Plugin URI: https://beautifulplugins.com/essential-elements/ 5 5 * Description: Essential Elements for WordPress is a powerful plugin that provides essential elements to increase site functionality. 6 * Version: 1.0.06 * Version: 1.0.1 7 7 * Requires at least: 5.0 8 8 * Requires PHP: 7.4 9 * Tested up to: 6.9 9 10 * Author: BeautifulPlugins 10 11 * Author URI: https://beautifulplugins.com … … 31 32 defined( 'ABSPATH' ) || exit; // Exit if accessed directly. 32 33 33 /** 34 * Optimized autoload classes. 35 * 36 * @since 1.0.0 37 */ 34 // autoload optimized classes. 38 35 require_once __DIR__ . '/vendor/autoload.php'; 39 36 … … 42 39 * 43 40 * @since 1.0.0 44 * @return Plugin 41 * @return Plugin The plugin instance. 45 42 */ 46 function esse _essential_elements() {47 return Plugin::create( __FILE__, '1.0. 0' );43 function essential_elements() { 44 return Plugin::create( __FILE__, '1.0.1' ); 48 45 } 49 46 50 47 // Initialize the plugin. 51 esse _essential_elements();48 essential_elements(); -
essential-elements/tags/1.0.1/includes/Admin/Admin.php
r3270973 r3458804 6 6 7 7 /** 8 * The main admin class.8 * Class Admin. 9 9 * 10 10 * @since 1.0.0 11 * @package EssentialElements /Admin11 * @package EssentialElements\Admin 12 12 */ 13 13 class Admin { … … 16 16 */ 17 17 public function __construct() { 18 // Create admin settings page under WordPress settings menu. 19 add_action( 'admin_menu', array( $this, 'add_settings_page' ) ); 20 21 // Register settings. 18 add_action( 'admin_menu', array( $this, 'admin_menu' ) ); 19 add_action( 'admin_menu', array( $this, 'modules_menu' ), 99 ); 20 add_action( 'admin_menu', array( $this, 'settings_menu' ), 100 ); 22 21 add_action( 'admin_init', array( $this, 'register_settings' ) ); 23 } 24 25 /** 26 * Add settings page under WordPress settings menu. 27 * 28 * @since 1.0.0 29 * @return void 30 */ 31 public function add_settings_page() { 32 add_options_page( 22 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 23 24 // Load page headers. 25 add_action( 'esse_admin_page_before_main_content', array( $this, 'render_header' ) ); 26 add_action( 'esse_admin_page_after_content', array( $this, 'render_aside' ) ); 27 28 // Enabling the modules. 29 add_action( 'wp_ajax_esse_enable_module', array( $this, 'enable_module' ) ); 30 } 31 32 /** 33 * Add menu page. 34 * 35 * @since 1.0.0 36 * @return void 37 */ 38 public function admin_menu() { 39 add_menu_page( 33 40 __( 'Essential Elements', 'essential-elements' ), 34 __( 'Essential Elements', 'essential-elements' ),41 __( 'Essentials', 'essential-elements' ), 35 42 'manage_options', 36 43 'essential-elements', 37 array( $this, 'settings_page' ) 44 null, 45 'dashicons-screenoptions', 46 '25', 47 ); 48 49 // Add submenu page "Dashboard". 50 add_submenu_page( 51 'essential-elements', 52 __( 'Dashboard', 'essential-elements' ), 53 __( 'Dashboard', 'essential-elements' ), 54 'manage_options', 55 'essential-elements', 56 array( $this, 'render_dashboard' ), 57 1, 58 ); 59 } 60 61 /** 62 * Render dashboard page. 63 * 64 * @since 1.0.0 65 * @return void 66 */ 67 public function render_dashboard() { 68 require __DIR__ . '/views/dashboard.php'; 69 } 70 71 /** 72 * Add modules submenu page. 73 * 74 * @since 1.0.0 75 * @return void 76 */ 77 public function modules_menu() { 78 add_submenu_page( 79 'essential-elements', 80 __( 'Modules', 'essential-elements' ), 81 __( 'Modules', 'essential-elements' ), 82 'manage_options', 83 'esse-modules', 84 array( $this, 'render_modules' ), 85 ); 86 } 87 88 /** 89 * Render modules page. 90 * 91 * @since 1.0.0 92 * @return void 93 */ 94 public function render_modules() { 95 include __DIR__ . '/views/modules.php'; 96 } 97 98 /** 99 * Add settings submenu page. 100 * 101 * @since 1.0.0 102 * @return void 103 */ 104 public function settings_menu() { 105 add_submenu_page( 106 'essential-elements', 107 __( 'Settings', 'essential-elements' ), 108 __( 'Settings', 'essential-elements' ), 109 'manage_options', 110 'esse-settings', 111 array( $this, 'render_settings' ), 38 112 ); 39 113 } … … 45 119 * @return void 46 120 */ 47 public function settings_page() { 48 // Check user capabilities. 49 if ( ! current_user_can( 'manage_options' ) ) { 50 esse_essential_elements()->flash_notice( __( 'You do not have sufficient permissions to access this page.', 'essential-elements' ), 'error' ); 51 return; 52 } 53 ?> 54 <div class="wrap"> 55 <h1><?php esc_html_e( 'Essential Elements Settings', 'essential-elements' ); ?></h1> 56 <p><?php esc_html_e( 'Configure the settings for the Essential Elements plugin.', 'essential-elements' ); ?></p> 57 <form method="post" action="<?php echo esc_url( admin_url( 'options.php' ) ); ?>"> 58 <?php 59 settings_fields( 'essential_elements' ); 60 do_settings_sections( 'essential-elements' ); 61 submit_button(); 62 ?> 63 </form> 64 </div> 65 <?php 121 public function render_settings() { 122 include __DIR__ . '/views/settings.php'; 66 123 } 67 124 … … 80 137 __( 'General Settings', 'essential-elements' ), 81 138 array( $this, 'general_settings' ), 82 'esse ntial-elements'139 'esse-settings' 83 140 ); 84 141 85 142 // Add settings field to enable the progress bar. 86 143 add_settings_field( 87 'esse_ progress_bar_is_enabled',88 __( ' Enable Progress Bar', 'essential-elements' ),89 array( $this, ' progress_bar_is_enabled' ),90 'esse ntial-elements',144 'esse_delete_data', 145 __( 'Delete plugin data', 'essential-elements' ), 146 array( $this, 'delete_data' ), 147 'esse-settings', 91 148 'esse_general_settings' 92 149 ); 93 94 // Progress bar position field.95 add_settings_field(96 'esse_progress_bar_position',97 __( 'Display Position', 'essential-elements' ),98 array( $this, 'progress_bar_position' ),99 'essential-elements',100 'esse_general_settings'101 );102 103 // Progress bar color field.104 add_settings_field(105 'esse_progress_bar_color',106 __( 'Color', 'essential-elements' ),107 array( $this, 'progress_progress_bar_color' ),108 'essential-elements',109 'esse_general_settings'110 );111 112 // Progress bar background color field.113 add_settings_field(114 'esse_progress_bar_bg_color',115 __( 'Background Color', 'essential-elements' ),116 array( $this, 'progress_progress_bar_bg_color' ),117 'essential-elements',118 'esse_general_settings'119 );120 121 // Scroll top is enabled field.122 add_settings_field(123 'esse_scroll_top_is_enabled',124 __( 'Enable Scroll Top', 'essential-elements' ),125 array( $this, 'scroll_top_is_enabled' ),126 'essential-elements',127 'esse_general_settings'128 );129 130 // Scroll top position field.131 add_settings_field(132 'esse_scroll_top_position',133 __( 'Display Position', 'essential-elements' ),134 array( $this, 'scroll_top_position' ),135 'essential-elements',136 'esse_general_settings'137 );138 139 // Scroll top button icon color field.140 add_settings_field(141 'esse_scroll_top_icon_color',142 __( 'Icon Color', 'essential-elements' ),143 array( $this, 'scroll_top_icon_color' ),144 'essential-elements',145 'esse_general_settings'146 );147 148 // Scroll top button background color field.149 add_settings_field(150 'esse_scroll_top_bg_color',151 __( 'Background Color', 'essential-elements' ),152 array( $this, 'scroll_top_bg_color' ),153 'essential-elements',154 'esse_general_settings'155 );156 157 // Scroll top button hover background color field.158 add_settings_field(159 'esse_scroll_top_hover_bg_color',160 __( 'Hover Background Color', 'essential-elements' ),161 array( $this, 'scroll_top_hover_bg_color' ),162 'essential-elements',163 'esse_general_settings'164 );165 150 } 166 151 … … 172 157 */ 173 158 public function general_settings() { 174 echo '<p>' . esc_html__( 'Configure the Essential Elementsgeneral settings.', 'essential-elements' ) . '</p>';159 echo '<p>' . esc_html__( 'Configure the general settings.', 'essential-elements' ) . '</p>'; 175 160 } 176 161 … … 181 166 * @return void 182 167 */ 183 public function progress_bar_is_enabled() {184 $ progress_bar_is_enabled = esse_get_settings( 'progress_bar_is_enabled', 'yes' );168 public function delete_data() { 169 $delete_data = esse_get_settings( 'esse_settings', 'delete_data', 'no' ); 185 170 ?> 186 <label for="esse_settings[ progress_bar_is_enabled]">187 <input type="checkbox" name="esse_settings[ progress_bar_is_enabled]" id="esse_settings[progress_bar_is_enabled]" value="yes" <?php checked( $progress_bar_is_enabled, 'yes' ); ?> />188 <?php esc_html_e( ' Enable to display the progress bar.', 'essential-elements' ); ?>171 <label for="esse_settings[delete_data]"> 172 <input type="checkbox" name="esse_settings[delete_data]" id="esse_settings[delete_data]" value="yes" <?php checked( $delete_data, 'yes' ); ?> /> 173 <?php esc_html_e( 'Delete plugin data on uninstall', 'essential-elements' ); ?> 189 174 </label> 190 <p><?php esc_html_e( 'It will display the progress bar on the bottom/top of the page. Default is enabled.', 'essential-elements' ); ?></p> 191 <?php 192 } 193 194 /** 195 * Display progress bar position field. 196 * 197 * @since 1.0.0 198 * @return void 199 */ 200 public function progress_bar_position() { 201 $progress_bar_position = esse_get_settings( 'progress_bar_position', 'bottom' ); 202 ?> 203 <select name="esse_settings[progress_bar_position]" id="esse_settings[progress_bar_position]" class="regular-text"> 204 <option value="top" <?php selected( $progress_bar_position, 'top' ); ?>><?php esc_html_e( 'Top', 'essential-elements' ); ?></option> 205 <option value="bottom" <?php selected( $progress_bar_position, 'bottom' ); ?>><?php esc_html_e( 'Bottom', 'essential-elements' ); ?></option> 206 ?> 207 </select> 208 <p class="description"><?php esc_html_e( 'Chose the default position to display the progress bar. Default is bottom.', 'essential-elements' ); ?></p> 209 <?php 210 } 211 212 /** 213 * Display progress bar color field. 214 * 215 * @since 1.0.0 216 * @return void 217 */ 218 public function progress_progress_bar_color() { 219 $progress_bar_color = esse_get_settings( 'progress_bar_color', '#FFFFFF' ); 220 ?> 221 <input type="text" name="esse_settings[progress_bar_color]" id="esse_settings[progress_bar_color]" value="<?php echo esc_attr( $progress_bar_color ); ?>" class="regular-text" /> 222 <p class="description"><?php esc_html_e( 'Enter the color of the progress bar. Default is #FFFFFF.', 'essential-elements' ); ?></p> 223 <?php 224 } 225 226 /** 227 * Display progress bar background color field. 228 * 229 * @since 1.0.0 230 * @return void 231 */ 232 public function progress_progress_bar_bg_color() { 233 $progress_bar_bg_color = esse_get_settings( 'progress_bar_bg_color', '#000000' ); 234 ?> 235 <input type="text" name="esse_settings[progress_bar_bg_color]" id="esse_settings[progress_bar_bg_color]" value="<?php echo esc_attr( $progress_bar_bg_color ); ?>" class="regular-text" /> 236 <p class="description"><?php esc_html_e( 'Enter the background color of the progress bar. Default is #000000.', 'essential-elements' ); ?></p> 237 <?php 238 } 239 240 /** 241 * Display the scroll top is enabled field. 242 * 243 * @since 1.0.0 244 * @return void 245 */ 246 public function scroll_top_is_enabled() { 247 $scroll_top_is_enabled = esse_get_settings( 'scroll_top_is_enabled', 'yes' ); 248 ?> 249 <label for="esse_settings[scroll_top_is_enabled]"> 250 <input type="checkbox" name="esse_settings[scroll_top_is_enabled]" id="esse_settings[scroll_top_is_enabled]" value="yes" <?php checked( $scroll_top_is_enabled, 'yes' ); ?> /> 251 <?php esc_html_e( 'Enable to display the scroll top button.', 'essential-elements' ); ?> 252 </label> 253 <p><?php esc_html_e( 'It will display the scroll top button on the bottom left/right of the page. Default is enabled.', 'essential-elements' ); ?></p> 254 <?php 255 } 256 257 /** 258 * Display scroll top position field. 259 * 260 * @since 1.0.0 261 * @return void 262 */ 263 public function scroll_top_position() { 264 $scroll_top_position = esse_get_settings( 'scroll_top_position', 'right' ); 265 ?> 266 <select name="esse_settings[scroll_top_position]" id="esse_settings[scroll_top_position]" class="regular-text"> 267 <option value="left" <?php selected( $scroll_top_position, 'left' ); ?>><?php esc_html_e( 'Bottom Left', 'essential-elements' ); ?></option> 268 <option value="right" <?php selected( $scroll_top_position, 'right' ); ?>><?php esc_html_e( 'Bottom Right', 'essential-elements' ); ?></option> 269 ?> 270 </select> 271 <p class="description"><?php esc_html_e( 'Chose the default position to display the scroll top button. Default is bottom right.', 'essential-elements' ); ?></p> 272 <?php 273 } 274 275 /** 276 * Display scroll top button icon color field. 277 * 278 * @since 1.0.0 279 * @return void 280 */ 281 public function scroll_top_icon_color() { 282 $scroll_top_icon_color = esse_get_settings( 'scroll_top_icon_color', '#ffffff' ); 283 ?> 284 <input type="text" name="esse_settings[scroll_top_icon_color]" id="esse_settings[scroll_top_icon_color]" value="<?php echo esc_attr( $scroll_top_icon_color ); ?>" class="regular-text" /> 285 <p class="description"><?php esc_html_e( 'Enter the icon color of the scroll top button. Default is #ffffff.', 'essential-elements' ); ?></p> 286 <?php 287 } 288 289 /** 290 * Display scroll top button background color field. 291 * 292 * @since 1.0.0 293 * @return void 294 */ 295 public function scroll_top_bg_color() { 296 $scroll_top_bg_color = esse_get_settings( 'scroll_top_bg_color', '#000000' ); 297 ?> 298 <input type="text" name="esse_settings[scroll_top_bg_color]" id="esse_settings[scroll_top_bg_color]" value="<?php echo esc_attr( $scroll_top_bg_color ); ?>" class="regular-text" /> 299 <p class="description"><?php esc_html_e( 'Enter the background color of the scroll top button. Default is #000000.', 'essential-elements' ); ?></p> 300 <?php 301 } 302 303 /** 304 * Display scroll top button hover background color field. 305 * 306 * @since 1.0.0 307 * @return void 308 */ 309 public function scroll_top_hover_bg_color() { 310 $scroll_top_hover_bg_color = esse_get_settings( 'scroll_top_hover_bg_color', '#333333' ); 311 ?> 312 <input type="text" name="esse_settings[scroll_top_hover_bg_color]" id="esse_settings[scroll_top_hover_bg_color]" value="<?php echo esc_attr( $scroll_top_hover_bg_color ); ?>" class="regular-text" /> 313 <p class="description"><?php esc_html_e( 'Enter the hover background color of the scroll top button. Default is #333333.', 'essential-elements' ); ?></p> 175 <p><?php esc_html_e( 'Enabling this will delete all the data while uninstalling the plugin.', 'essential-elements' ); ?></p> 314 176 <?php 315 177 } … … 327 189 328 190 // Sanitize the progress bar is enabled. 329 $sanitized_settings['progress_bar_is_enabled'] = isset( $settings['progress_bar_is_enabled'] ) ? 'yes' : 'no'; 330 331 // Sanitize the progress bar position. 332 $sanitized_settings['progress_bar_position'] = isset( $settings['progress_bar_position'] ) ? sanitize_text_field( $settings['progress_bar_position'] ) : 'bottom'; 333 334 // Sanitize the progress bar color. 335 $sanitized_settings['progress_bar_color'] = isset( $settings['progress_bar_color'] ) ? sanitize_text_field( $settings['progress_bar_color'] ) : '#FFFFFF'; 336 337 // Sanitize the progress bar background color. 338 $sanitized_settings['progress_bar_bg_color'] = isset( $settings['progress_bar_bg_color'] ) ? sanitize_text_field( $settings['progress_bar_bg_color'] ) : '#000000'; 339 340 // Sanitize the scroll top is enabled. 341 $sanitized_settings['scroll_top_is_enabled'] = isset( $settings['scroll_top_is_enabled'] ) ? 'yes' : 'no'; 342 343 // Sanitize the scroll top position. 344 $sanitized_settings['scroll_top_position'] = isset( $settings['scroll_top_position'] ) ? sanitize_text_field( $settings['scroll_top_position'] ) : 'right'; 345 346 // Sanitize the scroll top icon color. 347 $sanitized_settings['scroll_top_icon_color'] = isset( $settings['scroll_top_icon_color'] ) ? sanitize_text_field( $settings['scroll_top_icon_color'] ) : '#FFFFFF'; 348 349 // Sanitize the scroll top background color. 350 $sanitized_settings['scroll_top_bg_color'] = isset( $settings['scroll_top_bg_color'] ) ? sanitize_text_field( $settings['scroll_top_bg_color'] ) : '#000000'; 351 352 // Sanitize the scroll top hover background color. 353 $sanitized_settings['scroll_top_hover_bg_color'] = isset( $settings['scroll_top_hover_bg_color'] ) ? sanitize_text_field( $settings['scroll_top_hover_bg_color'] ) : '#333333'; 191 $sanitized_settings['delete_data'] = isset( $settings['delete_data'] ) ? 'yes' : 'no'; 354 192 355 193 return $sanitized_settings; 356 194 } 195 196 /** 197 * Get screen IDs. 198 * 199 * @since 1.0.0 200 */ 201 public static function get_screen_ids() { 202 // Add a filter to allow custom screen IDs. 203 return apply_filters( 204 'esse_screen_ids', 205 array( 206 'toplevel_page_essential-elements', 207 'essentials_page_esse-modules', 208 'essentials_page_esse-settings', 209 ) 210 ); 211 } 212 213 /** 214 * Enqueue scripts. 215 * 216 * @param string $hook The current admin page. 217 * 218 * @since 1.0.0 219 * @return void 220 */ 221 public function enqueue_scripts( $hook ) { 222 $screens = self::get_screen_ids(); 223 224 if ( ! in_array( $hook, $screens, true ) ) { 225 return; 226 } 227 228 wp_enqueue_style( 'esse-admin', ESSE_ASSETS_URL . 'css/admin.css', array(), ESSE_VERSION ); 229 } 230 231 /** 232 * Render header. 233 * 234 * @since 1.0.0 235 * @return void 236 */ 237 public function render_header() { 238 wp_verify_nonce( '_nonce' ); 239 $page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; 240 include __DIR__ . '/views/header.php'; 241 } 242 243 /** 244 * Render aside. 245 * 246 * @since 1.0.0 247 * @return void 248 */ 249 public function render_aside() { 250 include __DIR__ . '/views/aside.php'; 251 } 252 253 /** 254 * Enable module. 255 * 256 * @since 1.0.0 257 * @return void 258 */ 259 public function enable_module() { 260 // Verify nonce to prevent CSRF. 261 if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_POST['_wpnonce'] ) ), 'esse_enable_module' ) ) { 262 wp_send_json_error( array( 'message' => __( 'Invalid nonce provided.', 'essential-elements' ) ) ); 263 } 264 265 // Check user capabilities to prevent unauthorized access. 266 if ( ! current_user_can( 'manage_options' ) ) { 267 wp_send_json_error( array( 'message' => __( 'You do not have sufficient permissions to access this page.', 'essential-elements' ) ) ); 268 } 269 270 // Get the module data and save it to the database. 271 $module = isset( $_POST['module'] ) ? sanitize_text_field( wp_unslash( $_POST['module'] ) ) : ''; 272 $status = isset( $_POST['status'] ) ? sanitize_text_field( wp_unslash( $_POST['status'] ) ) : ''; 273 274 // If module is empty, send error response. 275 if ( empty( $module ) ) { 276 wp_send_json_error( array( 'message' => __( 'Module not found.', 'essential-elements' ) ) ); 277 } 278 279 // If status is empty, send error response. 280 if ( empty( $status ) ) { 281 wp_send_json_error( array( 'message' => __( 'Module status not found.', 'essential-elements' ) ) ); 282 } 283 284 $modules = get_option( 'esse_modules', array() ); 285 286 // If status is true and module is not in the array, add it. 287 if ( $status && ! in_array( $module, $modules, true ) ) { 288 $modules[] = $module; 289 } else { 290 // If status is false and module is in the array, remove it. 291 $modules = array_diff( $modules, array( $module ) ); 292 } 293 294 // Update the modules option. 295 update_option( 'esse_modules', $modules ); 296 297 // Send success response. 298 wp_send_json_success( array( 'message' => __( 'Module status updated successfully.', 'essential-elements' ) ) ); 299 exit(); 300 } 357 301 } -
essential-elements/tags/1.0.1/includes/Plugin.php
r3270973 r3458804 6 6 7 7 /** 8 * The main plugin class.8 * Class Plugin. 9 9 * 10 10 * @since 1.0.0 … … 45 45 * 46 46 * @since 1.0.0 47 * @return static 47 * @return static The plugin instance. 48 48 */ 49 49 final public static function create( $file, $version = '1.0.0' ) { … … 63 63 * @since 1.0.0 64 64 */ 65 p rotectedfunction __construct( $file, $version ) {65 public function __construct( $file, $version ) { 66 66 $this->file = $file; 67 67 $this->version = $version; … … 77 77 * @return void 78 78 */ 79 pr otectedfunction define_constants() {79 private function define_constants() { 80 80 // Define the plugin version. 81 81 if ( ! defined( 'ESSE_VERSION' ) ) { … … 125 125 * @return void 126 126 */ 127 p rotectedfunction init_hooks() {127 public function init_hooks() { 128 128 register_activation_hook( ESSE_FILE, array( $this, 'activate' ) ); 129 add_action( 'init', array( $this, 'load_textdomain' ) );130 129 add_action( 'admin_notices', array( $this, 'display_flash_notices' ), 12 ); 131 130 add_action( 'init', array( $this, 'init' ), 0 ); … … 134 133 /** 135 134 * Activate the plugin. 136 * This method is called when the plugin is activated.137 135 * 138 136 * @since 1.0.0 … … 141 139 public function activate() { 142 140 update_option( 'esse_version', ESSE_VERSION ); 143 144 // Default settings. 145 $default_settings = array( 146 'progress_bar_is_enabled' => 'yes', 147 'progress_bar_position' => 'bottom', 148 'progress_bar_color' => '#FFFFFF', 149 'progress_bar_bg_color' => '#000000', 150 'scroll_top_is_enabled' => 'yes', 151 'scroll_top_position' => 'right', 152 'scroll_top_icon_color' => '#FFFFFF', 153 'scroll_top_bg_color' => '#000000', 154 'scroll_top_hover_bg_color' => '#333333', 155 ); 141 add_option( 'esse_installed', current_time( 'mysql' ) ); 142 143 // Default settings for modules. 144 $progress_bar_settings = array( 145 'is_enabled' => 'yes', 146 'position' => 'bottom', 147 'color' => '#FFFFFF', 148 'bg_color' => '#000000', 149 ); 150 151 $scroll_bar_settings = array( 152 'is_enabled' => 'yes', 153 'track_color' => '#f1f1f1', 154 'thumb_color' => '#0073aa', 155 'thumb_hover_color' => '#00a0d2', 156 'width' => 60, 157 ); 158 159 $scroll_top_settings = array( 160 'is_enabled' => 'yes', 161 'position' => 'right', 162 'icon_color' => '#FFFFFF', 163 'bg_color' => '#000000', 164 'hover_bg_color' => '#333333', 165 ); 166 156 167 // Update the default settings. 157 update_option( 'esse_settings', $default_settings ); 158 } 159 160 /** 161 * Load the plugin text domain. 162 * This method is used to load the plugin text domain. 163 * 164 * @since 1.0.0 165 * @return void 166 */ 167 public function load_textdomain() { 168 load_plugin_textdomain( 'essential-elements', false, dirname( plugin_basename( ESSE_FILE ) ) . '/languages' ); 168 update_option( 'esse_progress_bar_settings', $progress_bar_settings ); 169 update_option( 'esse_scroll_bar_settings', $scroll_bar_settings ); 170 update_option( 'esse_scroll_top_settings', $scroll_top_settings ); 169 171 } 170 172 … … 187 189 $notices, 188 190 array( 189 'notice' => wp_kses_post( $notice ),190 'type' => sanitize_key( $type ),191 'notice' => $notice, 192 'type' => $type, 191 193 'dismissible' => $dismissible_text, 192 194 ) … … 207 209 208 210 foreach ( $notices as $notice ) { 209 echo wp_kses_post( 210 sprintf( 211 '<div class="notice notice-%1$s %2$s"><p>%3$s</p></div>', 212 esc_attr( $notice['type'] ), 213 esc_attr( $notice['dismissible'] ), 214 esc_html( $notice['notice'] ), 215 ) 211 printf( 212 '<div class="notice notice-%1$s %2$s"><p>%3$s</p></div>', 213 esc_attr( $notice['type'] ), 214 esc_attr( $notice['dismissible'] ), 215 esc_html( $notice['notice'] ), 216 216 ); 217 217 } … … 225 225 /** 226 226 * Initialize the plugin. 227 * This method is used to initialize the plugin.228 227 * 229 228 * @since 1.0.0 … … 231 230 */ 232 231 public function init() { 233 // Load the admin classes if it's an admin area.232 // Load admin classes. 234 233 if ( is_admin() ) { 235 234 new Admin\Admin(); 236 235 } 237 236 238 $progress_bar_is_enabled = esse_get_settings( 'progress_bar_is_enabled', 'yes' ); 239 $scroll_top_is_enabled = esse_get_settings( 'scroll_top_is_enabled', 'yes' ); 240 241 if ( 'yes' === $progress_bar_is_enabled || 'yes' === $scroll_top_is_enabled ) { 242 add_action( 'wp_footer', array( $this, 'display_frontend_assets' ) ); 243 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 244 } 245 } 246 247 /** 248 * Display the frontend assets. 249 * 250 * @since 1.0.0 251 * @return void 252 */ 253 public function display_frontend_assets() { 254 $progress_bar_is_enabled = esse_get_settings( 'progress_bar_is_enabled', 'yes' ); 255 $scroll_top_is_enabled = esse_get_settings( 'scroll_top_is_enabled', 'yes' ); 256 257 if ( 'yes' === $progress_bar_is_enabled ) { 258 ?> 259 <div class="esse-progress-bar"> 260 <div class="esse-progress-bar__indicator"></div> 261 <div class="esse-progress-bar__content"><?php esc_html( '0%' ); ?></div> 262 </div> 263 <?php 264 } 265 266 if ( 'yes' === $scroll_top_is_enabled ) { 267 ?> 268 <div class="esse-scroll-top is-rounded" data-on-devices="both"> 269 <span class="esse-scroll-top__icon"> 270 <svg class="esse-scroll-top__arrow-svg" fill="currentColor" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="20px" height="16.043px" viewBox="57 35.171 26 16.043" xml:space="preserve"> 271 <path d="M57.5,38.193l12.5,12.5l12.5-12.5l-2.5-2.5l-10,10l-10-10L57.5,38.193z"></path> 272 </svg> 273 </span> 274 <span class="screen-reader-text">Scroll to Top</span> 275 </div> 276 <?php 277 } 278 } 279 280 /** 281 * Enqueue scripts and styles. 282 * 283 * @since 1.0.0 284 * @return void 285 */ 286 public function enqueue_scripts() { 287 wp_enqueue_style( 'esse-frontend', ESSE_ASSETS_URL . 'css/esse-frontend.css', array(), ESSE_VERSION ); 288 wp_enqueue_script( 'esse-frontend', ESSE_ASSETS_URL . 'js/esse-frontend.js', array( 'jquery' ), ESSE_VERSION, true ); 289 290 // Render Inline styles. 291 $progress_bar_position = esse_get_settings( 'progress_bar_position', 'bottom' ); 292 $progress_bar_color = esse_get_settings( 'progress_bar_color', '#FFFFFF' ); 293 $progress_bar_bg_color = esse_get_settings( 'progress_bar_bg_color', '#000000' ); 294 $scroll_top_position = esse_get_settings( 'scroll_top_position', 'right' ); 295 $scroll_top_icon_color = esse_get_settings( 'scroll_top_icon_color', '#FFFFFF' ); 296 $scroll_top_bg_color = esse_get_settings( 'scroll_top_bg_color', '#000000' ); 297 $scroll_top_hover_bg_color = esse_get_settings( 'scroll_top_hover_bg_color', '#333333' ); 298 299 $styles = ' 300 .esse-progress-bar { 301 ' . esc_attr( $progress_bar_position ) . ': 0; 302 } 303 .esse-progress-bar__indicator { 304 background-color: ' . esc_attr( $progress_bar_bg_color ) . '; 305 } 306 .esse-progress-bar__content { 307 color: ' . esc_attr( $progress_bar_color ) . '; 308 background-color: ' . esc_attr( $progress_bar_bg_color ) . '15; 309 } 310 .esse-scroll-top { 311 background-color: ' . esc_attr( $scroll_top_bg_color ) . '; 312 ' . esc_attr( $scroll_top_position ) . ': 20px; 313 } 314 .esse-scroll-top__arrow-svg { 315 color: ' . esc_attr( $scroll_top_icon_color ) . '; 316 } 317 .esse-scroll-top:hover { 318 background-color: ' . esc_attr( $scroll_top_hover_bg_color ) . '; 319 } 320 '; 321 322 wp_add_inline_style( 'esse-frontend', wp_strip_all_tags( $styles ) ); 237 // Load common classes. 238 new Modules\Modules(); 323 239 } 324 240 } -
essential-elements/tags/1.0.1/includes/functions.php
r3270973 r3458804 7 7 * 8 8 * @param string $option Option name. 9 * @param string $key Option key. 9 10 * @param mixed $default_value Default value. 10 11 * 11 * @since 1.0.012 * @retu n mixed|null12 * @since 1.0.0 13 * @return mixed|null 13 14 */ 14 function esse_get_settings( $option, $default_value = null ) { 15 $options = get_option( 'esse_settings', array() ); 15 function esse_get_settings( $option, $key, $default_value = null ) { 16 if ( empty( $option ) || empty( $key ) ) { 17 return $default_value; 18 } 16 19 17 return isset( $options[ $option ] ) ? $options[ $option ] : $default_value; 20 $options = get_option( $option, array() ); 21 22 return isset( $options[ $key ] ) ? $options[ $key ] : $default_value; 18 23 } -
essential-elements/tags/1.0.1/languages/essential-elements.pot
r3270973 r3458804 1 # Copyright (C) 202 5BeautifulPlugins1 # Copyright (C) 2026 BeautifulPlugins 2 2 # This file is distributed under the GPL v2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Essential Elements for WordPress 1.0. 0\n"6 "Report-Msgid-Bugs-To: https://beautifulplugins.com/support /\n"7 "POT-Creation-Date: 202 5-04-11 10:30:00+00:00\n"5 "Project-Id-Version: Essential Elements for WordPress 1.0.1\n" 6 "Report-Msgid-Bugs-To: https://beautifulplugins.com/support\n" 7 "POT-Creation-Date: 2026-02-11 09:04:31+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 202 5-MO-DA HO:MI+ZONE\n"11 "PO-Revision-Date: 2026-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 13 "Language-Team: LANGUAGE <[email protected]>\n" … … 25 25 "X-Generator: grunt-wp-i18n 1.0.3\n" 26 26 27 #: includes/Admin/Admin.php: 33 includes/Admin/Admin.php:3427 #: includes/Admin/Admin.php:40 includes/Admin/views/header.php:16 28 28 msgid "Essential Elements" 29 29 msgstr "" 30 30 31 #: includes/Admin/Admin.php:50 31 #: includes/Admin/Admin.php:41 32 msgid "Essentials" 33 msgstr "" 34 35 #: includes/Admin/Admin.php:52 includes/Admin/Admin.php:53 36 #: includes/Admin/views/header.php:21 37 msgid "Dashboard" 38 msgstr "" 39 40 #: includes/Admin/Admin.php:80 includes/Admin/Admin.php:81 41 #: includes/Admin/views/header.php:22 42 msgid "Modules" 43 msgstr "" 44 45 #: includes/Admin/Admin.php:107 includes/Admin/Admin.php:108 46 #: includes/Admin/views/header.php:23 47 msgid "Settings" 48 msgstr "" 49 50 #: includes/Admin/Admin.php:137 includes/Modules/ProgressBar/Settings.php:93 51 #: includes/Modules/ScrollBar/Settings.php:93 52 #: includes/Modules/ScrollTop/Settings.php:93 53 msgid "General Settings" 54 msgstr "" 55 56 #: includes/Admin/Admin.php:145 57 msgid "Delete plugin data" 58 msgstr "" 59 60 #: includes/Admin/Admin.php:159 includes/Modules/ProgressBar/Settings.php:142 61 #: includes/Modules/ScrollBar/Settings.php:151 62 #: includes/Modules/ScrollTop/Settings.php:151 63 msgid "Configure the general settings." 64 msgstr "" 65 66 #: includes/Admin/Admin.php:173 67 msgid "Delete plugin data on uninstall" 68 msgstr "" 69 70 #: includes/Admin/Admin.php:175 71 msgid "Enabling this will delete all the data while uninstalling the plugin." 72 msgstr "" 73 74 #: includes/Admin/Admin.php:262 75 msgid "Invalid nonce provided." 76 msgstr "" 77 78 #: includes/Admin/Admin.php:267 32 79 msgid "You do not have sufficient permissions to access this page." 33 80 msgstr "" 34 81 35 #: includes/Admin/Admin.php:55 82 #: includes/Admin/Admin.php:276 83 msgid "Module not found." 84 msgstr "" 85 86 #: includes/Admin/Admin.php:281 87 msgid "Module status not found." 88 msgstr "" 89 90 #: includes/Admin/Admin.php:298 91 msgid "Module status updated successfully." 92 msgstr "" 93 94 #: includes/Admin/views/aside.php:15 95 msgid "Need Help?" 96 msgstr "" 97 98 #: includes/Admin/views/aside.php:18 99 msgid "" 100 "Essential Elements for WordPress is a collection of tools and modules to " 101 "help you manage your WordPress website." 102 msgstr "" 103 104 #: includes/Admin/views/aside.php:19 105 msgid "" 106 "If you have any questions or need help, please visit the support page. Or, " 107 "directly contact us. We are here to help you!" 108 msgstr "" 109 110 #: includes/Admin/views/aside.php:21 111 msgid "Get Support" 112 msgstr "" 113 114 #: includes/Admin/views/aside.php:22 115 msgid "Contact Us" 116 msgstr "" 117 118 #: includes/Admin/views/dashboard.php:28 119 msgid "" 120 "Welcome to Essential Elements - The Ultimate Essential Elements for " 121 "WordPress" 122 msgstr "" 123 124 #: includes/Admin/views/dashboard.php:29 125 msgid "" 126 "Essential Elements for WordPress is a powerful plugin that adds essential " 127 "elements to your WordPress website. It is a must-have plugin for every " 128 "WordPress website. With Essential Elements, you can easily add essential " 129 "elements to your website without any coding knowledge." 130 msgstr "" 131 132 #: includes/Admin/views/dashboard.php:33 133 msgid "Overview of Modules" 134 msgstr "" 135 136 #: includes/Admin/views/dashboard.php:34 includes/Admin/views/modules.php:29 137 msgid "" 138 "Here are the top 3 modules that you can enable to improve your website " 139 "functionality." 140 msgstr "" 141 142 #: includes/Admin/views/dashboard.php:37 includes/Admin/views/modules.php:32 143 #: includes/Modules/ProgressBar/Settings.php:46 144 #: includes/Modules/ProgressBar/Settings.php:47 145 msgid "Progress Bar" 146 msgstr "" 147 148 #: includes/Admin/views/dashboard.php:38 includes/Admin/views/modules.php:33 149 msgid "Display a progress bar on your website." 150 msgstr "" 151 152 #: includes/Admin/views/dashboard.php:39 includes/Admin/views/dashboard.php:44 153 #: includes/Admin/views/dashboard.php:49 154 msgid "Enable Module" 155 msgstr "" 156 157 #: includes/Admin/views/dashboard.php:42 includes/Admin/views/modules.php:42 158 #: includes/Modules/ScrollTop/Settings.php:46 159 #: includes/Modules/ScrollTop/Settings.php:47 160 msgid "Scroll Top" 161 msgstr "" 162 163 #: includes/Admin/views/dashboard.php:43 includes/Admin/views/modules.php:43 164 msgid "Add a scroll top button on your website." 165 msgstr "" 166 167 #: includes/Admin/views/dashboard.php:47 includes/Admin/views/modules.php:52 168 #: includes/Modules/ScrollBar/Settings.php:46 169 #: includes/Modules/ScrollBar/Settings.php:47 170 msgid "Scroll Bar" 171 msgstr "" 172 173 #: includes/Admin/views/dashboard.php:48 includes/Admin/views/modules.php:53 174 msgid "Customize the scroll bar on your website." 175 msgstr "" 176 177 #: includes/Admin/views/dashboard.php:55 178 msgid "Join Our Community" 179 msgstr "" 180 181 #: includes/Admin/views/dashboard.php:56 182 msgid "" 183 "Got a question about the plugin, want to share your awesome project or just " 184 "say hi? Join our wonderful community to get the latest updates, news, and " 185 "tutorials." 186 msgstr "" 187 188 #: includes/Admin/views/dashboard.php:60 189 msgid "Facebook" 190 msgstr "" 191 192 #: includes/Admin/views/dashboard.php:64 193 msgid "YouTube" 194 msgstr "" 195 196 #: includes/Admin/views/dashboard.php:70 197 msgid "Rate Us" 198 msgstr "" 199 200 #: includes/Admin/views/dashboard.php:80 201 msgid "Based on 5k+ reviews" 202 msgstr "" 203 204 #: includes/Admin/views/dashboard.php:83 205 msgid "" 206 "If you like Essential Elements, please leave us a 5-star review on " 207 "WordPress.org. Your review will help us grow and improve the plugin." 208 msgstr "" 209 210 #: includes/Admin/views/dashboard.php:84 211 msgid "Submit a Review →" 212 msgstr "" 213 214 #: includes/Admin/views/header.php:25 215 msgid "Support" 216 msgstr "" 217 218 #: includes/Admin/views/modules.php:28 219 msgid "All Modules" 220 msgstr "" 221 222 #: includes/Admin/views/settings.php:27 36 223 msgid "Essential Elements Settings" 37 224 msgstr "" 38 225 39 #: includes/Admin/Admin.php:56 40 msgid "Configure the settings for the Essential Elements plugin." 41 msgstr "" 42 43 #: includes/Admin/Admin.php:80 44 msgid "General Settings" 45 msgstr "" 46 47 #: includes/Admin/Admin.php:88 226 #: includes/Admin/views/settings.php:28 227 msgid "Configure the settings of the Essential Elements plugin." 228 msgstr "" 229 230 #: includes/Modules/ProgressBar/Settings.php:61 231 #: includes/Modules/ProgressBar/views/settings.php:26 232 msgid "Progress Bar Settings" 233 msgstr "" 234 235 #: includes/Modules/ProgressBar/Settings.php:101 48 236 msgid "Enable Progress Bar" 49 237 msgstr "" 50 238 51 #: includes/Admin/Admin.php:97 includes/Admin/Admin.php:133 239 #: includes/Modules/ProgressBar/Settings.php:110 240 #: includes/Modules/ScrollTop/Settings.php:110 52 241 msgid "Display Position" 53 242 msgstr "" 54 243 55 #: includes/ Admin/Admin.php:106244 #: includes/Modules/ProgressBar/Settings.php:119 56 245 msgid "Color" 57 246 msgstr "" 58 247 59 #: includes/Admin/Admin.php:115 includes/Admin/Admin.php:151 248 #: includes/Modules/ProgressBar/Settings.php:128 249 #: includes/Modules/ScrollTop/Settings.php:128 60 250 msgid "Background Color" 61 251 msgstr "" 62 252 63 #: includes/Admin/Admin.php:124 64 msgid "Enable Scroll Top" 65 msgstr "" 66 67 #: includes/Admin/Admin.php:142 68 msgid "Icon Color" 69 msgstr "" 70 71 #: includes/Admin/Admin.php:160 72 msgid "Hover Background Color" 73 msgstr "" 74 75 #: includes/Admin/Admin.php:174 76 msgid "Configure the Essential Elements general settings." 77 msgstr "" 78 79 #: includes/Admin/Admin.php:188 253 #: includes/Modules/ProgressBar/Settings.php:156 80 254 msgid "Enable to display the progress bar." 81 255 msgstr "" 82 256 83 #: includes/ Admin/Admin.php:190257 #: includes/Modules/ProgressBar/Settings.php:158 84 258 msgid "" 85 259 "It will display the progress bar on the bottom/top of the page. Default is " … … 87 261 msgstr "" 88 262 89 #: includes/ Admin/Admin.php:204263 #: includes/Modules/ProgressBar/Settings.php:172 90 264 msgid "Top" 91 265 msgstr "" 92 266 93 #: includes/ Admin/Admin.php:205267 #: includes/Modules/ProgressBar/Settings.php:173 94 268 msgid "Bottom" 95 269 msgstr "" 96 270 97 #: includes/ Admin/Admin.php:208271 #: includes/Modules/ProgressBar/Settings.php:175 98 272 msgid "Chose the default position to display the progress bar. Default is bottom." 99 273 msgstr "" 100 274 101 #: includes/ Admin/Admin.php:222275 #: includes/Modules/ProgressBar/Settings.php:189 102 276 msgid "Enter the color of the progress bar. Default is #FFFFFF." 103 277 msgstr "" 104 278 105 #: includes/ Admin/Admin.php:236279 #: includes/Modules/ProgressBar/Settings.php:203 106 280 msgid "Enter the background color of the progress bar. Default is #000000." 107 281 msgstr "" 108 282 109 #: includes/Admin/Admin.php:251 283 #: includes/Modules/ProgressBar/views/settings.php:27 284 msgid "Configure the settings of the Progress Bar module." 285 msgstr "" 286 287 #: includes/Modules/ScrollBar/Settings.php:61 288 #: includes/Modules/ScrollBar/views/settings.php:26 289 msgid "Scroll Bar Settings" 290 msgstr "" 291 292 #: includes/Modules/ScrollBar/Settings.php:101 293 msgid "Enable Scroll Bar" 294 msgstr "" 295 296 #: includes/Modules/ScrollBar/Settings.php:110 297 msgid "Track Color" 298 msgstr "" 299 300 #: includes/Modules/ScrollBar/Settings.php:119 301 msgid "Thumb Color" 302 msgstr "" 303 304 #: includes/Modules/ScrollBar/Settings.php:128 305 msgid "Thumb Hover Color" 306 msgstr "" 307 308 #: includes/Modules/ScrollBar/Settings.php:137 309 msgid "Width" 310 msgstr "" 311 312 #: includes/Modules/ScrollBar/Settings.php:165 313 msgid "Enable to display the scroll bar on the page." 314 msgstr "" 315 316 #: includes/Modules/ScrollBar/Settings.php:167 317 msgid "It will modify the scroll bar on the page. Default is enabled." 318 msgstr "" 319 320 #: includes/Modules/ScrollBar/Settings.php:181 321 msgid "Enter the scroll bar track color. Default is #f1f1f1." 322 msgstr "" 323 324 #: includes/Modules/ScrollBar/Settings.php:195 325 msgid "Enter the scroll bar thumb color. Default is #0073aa." 326 msgstr "" 327 328 #: includes/Modules/ScrollBar/Settings.php:209 329 msgid "Enter the scroll bar thumb hover color. Default is #00a0d2." 330 msgstr "" 331 332 #: includes/Modules/ScrollBar/Settings.php:223 333 msgid "" 334 "Enter the scroll bar width in pixels. Default is 60px. Remember to enter " 335 "only the number without \"px\" and also this may not properly work on some " 336 "browsers." 337 msgstr "" 338 339 #: includes/Modules/ScrollBar/views/settings.php:27 340 msgid "Configure the settings of the Scroll Bar module." 341 msgstr "" 342 343 #: includes/Modules/ScrollTop/ScrollTop.php:65 344 msgid "Scroll to Top" 345 msgstr "" 346 347 #: includes/Modules/ScrollTop/Settings.php:61 348 #: includes/Modules/ScrollTop/views/settings.php:26 349 msgid "Scroll Top Settings" 350 msgstr "" 351 352 #: includes/Modules/ScrollTop/Settings.php:101 353 msgid "Enable Scroll Top" 354 msgstr "" 355 356 #: includes/Modules/ScrollTop/Settings.php:119 357 msgid "Icon Color" 358 msgstr "" 359 360 #: includes/Modules/ScrollTop/Settings.php:137 361 msgid "Hover Background Color" 362 msgstr "" 363 364 #: includes/Modules/ScrollTop/Settings.php:165 110 365 msgid "Enable to display the scroll top button." 111 366 msgstr "" 112 367 113 #: includes/ Admin/Admin.php:253368 #: includes/Modules/ScrollTop/Settings.php:167 114 369 msgid "" 115 370 "It will display the scroll top button on the bottom left/right of the page. " … … 117 372 msgstr "" 118 373 119 #: includes/ Admin/Admin.php:267374 #: includes/Modules/ScrollTop/Settings.php:181 120 375 msgid "Bottom Left" 121 376 msgstr "" 122 377 123 #: includes/ Admin/Admin.php:268378 #: includes/Modules/ScrollTop/Settings.php:182 124 379 msgid "Bottom Right" 125 380 msgstr "" 126 381 127 #: includes/ Admin/Admin.php:271382 #: includes/Modules/ScrollTop/Settings.php:184 128 383 msgid "" 129 384 "Chose the default position to display the scroll top button. Default is " … … 131 386 msgstr "" 132 387 133 #: includes/ Admin/Admin.php:285388 #: includes/Modules/ScrollTop/Settings.php:198 134 389 msgid "Enter the icon color of the scroll top button. Default is #ffffff." 135 390 msgstr "" 136 391 137 #: includes/ Admin/Admin.php:299392 #: includes/Modules/ScrollTop/Settings.php:212 138 393 msgid "Enter the background color of the scroll top button. Default is #000000." 139 394 msgstr "" 140 395 141 #: includes/ Admin/Admin.php:313396 #: includes/Modules/ScrollTop/Settings.php:226 142 397 msgid "" 143 398 "Enter the hover background color of the scroll top button. Default is " … … 145 400 msgstr "" 146 401 402 #: includes/Modules/ScrollTop/views/settings.php:27 403 msgid "Configure the settings of the Scroll Top module." 404 msgstr "" 405 147 406 #. Plugin Name of the plugin/theme 148 407 msgid "Essential Elements for WordPress" -
essential-elements/tags/1.0.1/readme.txt
r3270973 r3458804 2 2 Contributors: beautifulplugins 3 3 Tags: essentials, essential addons, essential elements, essential features, essential 4 Tested up to: 6.7 5 Stable tag: 1.0.0 4 Requires at least: 5.0 5 Tested up to: 6.9 6 Requires PHP: 7.4 7 Stable tag: 1.0.1 6 8 License: GPLv2 or later 7 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 20 22 - **🚀 Scroll to Top Button** - Easily add a scroll-to-top button to your website for improved navigation. 21 23 - **📊 Progress Bar** - Showcase your skills and achievements with customizable progress bars. 22 - **⏱️ Reading Time Estimation** - Display estimated reading time for your posts to keep readers informed. 23 - **🔗 Social Share Buttons** - Add social share buttons to your posts and pages to encourage sharing on social media. 24 - **👁️ Post Views Counter** - Display the number of views for your posts to increase engagement. 25 - **🌐 External Links in New Tab** - Open external links in a new tab to improve user experience. 26 - **🧭 Breadcrumbs Navigation** - Add breadcrumbs navigation to your website for better navigation and SEO. 27 - **🖼️ SVG Upload Support** - Enable SVG uploads to enhance your website's design with scalable vector graphics. 28 - **📚 Table of Contents** - Automatically generate a table of contents for your posts and pages to improve readability. 24 - **🎨 Custom Scroll Bar** - Customize the browser scroll bar with custom colors and styles. 25 - **⏱️ Reading Time Estimation** - Display estimated reading time for your posts to keep readers informed. *(Coming Soon)* 26 - **🔗 Social Share Buttons** - Add social share buttons to your posts and pages to encourage sharing on social media. *(Coming Soon)* 27 - **👁️ Post Views Counter** - Display the number of views for your posts to increase engagement. *(Coming Soon)* 28 - **🌐 External Links in New Tab** - Open external links in a new tab to improve user experience. *(Coming Soon)* 29 - **🧭 Breadcrumbs Navigation** - Add breadcrumbs navigation to your website for better navigation and SEO. *(Coming Soon)* 30 - **🖼️ SVG Upload Support** - Enable SVG uploads to enhance your website's design with scalable vector graphics. *(Coming Soon)* 31 - **📚 Table of Contents** - Automatically generate a table of contents for your posts and pages to improve readability. *(Coming Soon)* 29 32 ...and more coming soon! 30 33 … … 107 110 108 111 == Screenshots == 109 1. Essential Elements Settings 112 1. Progress Bar Settings 113 2. Scroll to Top Settings 114 3. Custom Scroll Bar Settings 115 4. All Modules Settings 110 116 111 117 == Changelog == 118 = 1.0.1 (11 February 2026) = 119 * New: Added new features and improvements. 120 * Fix: Fixed some bugs and issues. 121 112 122 = 1.0.0 (11 April 2025) = 113 123 * Initial release of the plugin. … … 117 127 * Initial release of the plugin. No upgrade necessary. 118 128 129 = 1.0.1 = 130 * Major update with new features and improvements. Please review the changelog for details. 131 119 132 == License == 120 133 Essential Elements for WordPress is distributed under the terms of the GNU General Public License v2 (GPLv2). You may use, modify, and distribute this software under the terms of the GPLv2 license. See http://www.gnu.org/licenses/gpl-2.0.html for more details. 121 -
essential-elements/tags/1.0.1/vendor/autoload.php
r3270973 r3458804 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 23 20 require_once __DIR__ . '/composer/autoload_real.php'; 24 21 25 return ComposerAutoloaderInit 364f768ac85bad335293fa2c57da2e09::getLoader();22 return ComposerAutoloaderInit6027a90d3d77c32aebae2be9e77e3c6f::getLoader(); -
essential-elements/tags/1.0.1/vendor/composer/InstalledVersions.php
r3270973 r3458804 28 28 { 29 29 /** 30 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to 31 * @internal 32 */ 33 private static $selfDir = null; 34 35 /** 30 36 * @var mixed[]|null 31 37 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 38 */ 33 39 private static $installed; 40 41 /** 42 * @var bool 43 */ 44 private static $installedIsLocalDir; 34 45 35 46 /** … … 310 321 self::$installed = $data; 311 322 self::$installedByVendor = array(); 323 324 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 325 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 326 // so we have to assume it does not, and that may result in duplicate data being returned when listing 327 // all installed packages for example 328 self::$installedIsLocalDir = false; 329 } 330 331 /** 332 * @return string 333 */ 334 private static function getSelfDir() 335 { 336 if (self::$selfDir === null) { 337 self::$selfDir = strtr(__DIR__, '\\', '/'); 338 } 339 340 return self::$selfDir; 312 341 } 313 342 … … 323 352 324 353 $installed = array(); 354 $copiedLocalDir = false; 325 355 326 356 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir(); 327 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/'); 328 360 if (isset(self::$installedByVendor[$vendorDir])) { 329 361 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 363 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 364 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 365 self::$installedByVendor[$vendorDir] = $required; 366 $installed[] = $required; 367 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 368 self::$installed = $required; 369 self::$installedIsLocalDir = true; 336 370 } 371 } 372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 373 $copiedLocalDir = true; 337 374 } 338 375 } … … 351 388 } 352 389 353 if (self::$installed !== array() ) {390 if (self::$installed !== array() && !$copiedLocalDir) { 354 391 $installed[] = self::$installed; 355 392 } -
essential-elements/tags/1.0.1/vendor/composer/autoload_classmap.php
r3270973 r3458804 9 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 10 10 'EssentialElements\\Admin\\Admin' => $baseDir . '/includes/Admin/Admin.php', 11 'EssentialElements\\Modules\\Modules' => $baseDir . '/includes/Modules/Modules.php', 12 'EssentialElements\\Modules\\ProgressBar\\ProgressBar' => $baseDir . '/includes/Modules/ProgressBar/ProgressBar.php', 13 'EssentialElements\\Modules\\ProgressBar\\Settings' => $baseDir . '/includes/Modules/ProgressBar/Settings.php', 14 'EssentialElements\\Modules\\ScrollBar\\ScrollBar' => $baseDir . '/includes/Modules/ScrollBar/ScrollBar.php', 15 'EssentialElements\\Modules\\ScrollBar\\Settings' => $baseDir . '/includes/Modules/ScrollBar/Settings.php', 16 'EssentialElements\\Modules\\ScrollTop\\ScrollTop' => $baseDir . '/includes/Modules/ScrollTop/ScrollTop.php', 17 'EssentialElements\\Modules\\ScrollTop\\Settings' => $baseDir . '/includes/Modules/ScrollTop/Settings.php', 11 18 'EssentialElements\\Plugin' => $baseDir . '/includes/Plugin.php', 12 19 ); -
essential-elements/tags/1.0.1/vendor/composer/autoload_real.php
r3270973 r3458804 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 364f768ac85bad335293fa2c57da2e095 class ComposerAutoloaderInit6027a90d3d77c32aebae2be9e77e3c6f 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 364f768ac85bad335293fa2c57da2e09', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit6027a90d3d77c32aebae2be9e77e3c6f', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 364f768ac85bad335293fa2c57da2e09', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit6027a90d3d77c32aebae2be9e77e3c6f', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 364f768ac85bad335293fa2c57da2e09::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit6027a90d3d77c32aebae2be9e77e3c6f::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
essential-elements/tags/1.0.1/vendor/composer/autoload_static.php
r3270973 r3458804 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 364f768ac85bad335293fa2c57da2e097 class ComposerStaticInit6027a90d3d77c32aebae2be9e77e3c6f 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( 10 'E' => 10 'E' => 11 11 array ( 12 12 'EssentialElements\\' => 18, … … 15 15 16 16 public static $prefixDirsPsr4 = array ( 17 'EssentialElements\\' => 17 'EssentialElements\\' => 18 18 array ( 19 19 0 => __DIR__ . '/../..' . '/includes', … … 24 24 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 25 25 'EssentialElements\\Admin\\Admin' => __DIR__ . '/../..' . '/includes/Admin/Admin.php', 26 'EssentialElements\\Modules\\Modules' => __DIR__ . '/../..' . '/includes/Modules/Modules.php', 27 'EssentialElements\\Modules\\ProgressBar\\ProgressBar' => __DIR__ . '/../..' . '/includes/Modules/ProgressBar/ProgressBar.php', 28 'EssentialElements\\Modules\\ProgressBar\\Settings' => __DIR__ . '/../..' . '/includes/Modules/ProgressBar/Settings.php', 29 'EssentialElements\\Modules\\ScrollBar\\ScrollBar' => __DIR__ . '/../..' . '/includes/Modules/ScrollBar/ScrollBar.php', 30 'EssentialElements\\Modules\\ScrollBar\\Settings' => __DIR__ . '/../..' . '/includes/Modules/ScrollBar/Settings.php', 31 'EssentialElements\\Modules\\ScrollTop\\ScrollTop' => __DIR__ . '/../..' . '/includes/Modules/ScrollTop/ScrollTop.php', 32 'EssentialElements\\Modules\\ScrollTop\\Settings' => __DIR__ . '/../..' . '/includes/Modules/ScrollTop/Settings.php', 26 33 'EssentialElements\\Plugin' => __DIR__ . '/../..' . '/includes/Plugin.php', 27 34 ); … … 30 37 { 31 38 return \Closure::bind(function () use ($loader) { 32 $loader->prefixLengthsPsr4 = ComposerStaticInit 364f768ac85bad335293fa2c57da2e09::$prefixLengthsPsr4;33 $loader->prefixDirsPsr4 = ComposerStaticInit 364f768ac85bad335293fa2c57da2e09::$prefixDirsPsr4;34 $loader->classMap = ComposerStaticInit 364f768ac85bad335293fa2c57da2e09::$classMap;39 $loader->prefixLengthsPsr4 = ComposerStaticInit6027a90d3d77c32aebae2be9e77e3c6f::$prefixLengthsPsr4; 40 $loader->prefixDirsPsr4 = ComposerStaticInit6027a90d3d77c32aebae2be9e77e3c6f::$prefixDirsPsr4; 41 $loader->classMap = ComposerStaticInit6027a90d3d77c32aebae2be9e77e3c6f::$classMap; 35 42 36 43 }, null, ClassLoader::class); -
essential-elements/tags/1.0.1/vendor/composer/installed.php
r3270973 r3458804 1 1 <?php return array( 2 2 'root' => array( 3 'name' => ' beautifulplugins/essential-elements',4 'pretty_version' => ' dev-master',5 'version' => ' dev-master',6 'reference' => ' cbc577d8e63f04da4b46b47bea22d26ff5370f01',3 'name' => 'urldev/essential-elements', 4 'pretty_version' => 'v1.0.1', 5 'version' => '1.0.1.0', 6 'reference' => '9bb3ab37b1d8a10c29ad7f6ea34a8f1d8bb9c6ba', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 11 11 ), 12 12 'versions' => array( 13 ' beautifulplugins/essential-elements' => array(14 'pretty_version' => ' dev-master',15 'version' => ' dev-master',16 'reference' => ' cbc577d8e63f04da4b46b47bea22d26ff5370f01',13 'urldev/essential-elements' => array( 14 'pretty_version' => 'v1.0.1', 15 'version' => '1.0.1.0', 16 'reference' => '9bb3ab37b1d8a10c29ad7f6ea34a8f1d8bb9c6ba', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
essential-elements/tags/1.0.1/vendor/composer/platform_check.php
r3270973 r3458804 20 20 } 21 21 } 22 trigger_error( 23 'Composer detected issues in your platform: ' . implode(' ', $issues), 24 E_USER_ERROR 22 throw new \RuntimeException( 23 'Composer detected issues in your platform: ' . implode(' ', $issues) 25 24 ); 26 25 } -
essential-elements/trunk/essential-elements.php
r3270973 r3458804 4 4 * Plugin URI: https://beautifulplugins.com/essential-elements/ 5 5 * Description: Essential Elements for WordPress is a powerful plugin that provides essential elements to increase site functionality. 6 * Version: 1.0.06 * Version: 1.0.1 7 7 * Requires at least: 5.0 8 8 * Requires PHP: 7.4 9 * Tested up to: 6.9 9 10 * Author: BeautifulPlugins 10 11 * Author URI: https://beautifulplugins.com … … 31 32 defined( 'ABSPATH' ) || exit; // Exit if accessed directly. 32 33 33 /** 34 * Optimized autoload classes. 35 * 36 * @since 1.0.0 37 */ 34 // autoload optimized classes. 38 35 require_once __DIR__ . '/vendor/autoload.php'; 39 36 … … 42 39 * 43 40 * @since 1.0.0 44 * @return Plugin 41 * @return Plugin The plugin instance. 45 42 */ 46 function esse _essential_elements() {47 return Plugin::create( __FILE__, '1.0. 0' );43 function essential_elements() { 44 return Plugin::create( __FILE__, '1.0.1' ); 48 45 } 49 46 50 47 // Initialize the plugin. 51 esse _essential_elements();48 essential_elements(); -
essential-elements/trunk/includes/Admin/Admin.php
r3270973 r3458804 6 6 7 7 /** 8 * The main admin class.8 * Class Admin. 9 9 * 10 10 * @since 1.0.0 11 * @package EssentialElements /Admin11 * @package EssentialElements\Admin 12 12 */ 13 13 class Admin { … … 16 16 */ 17 17 public function __construct() { 18 // Create admin settings page under WordPress settings menu. 19 add_action( 'admin_menu', array( $this, 'add_settings_page' ) ); 20 21 // Register settings. 18 add_action( 'admin_menu', array( $this, 'admin_menu' ) ); 19 add_action( 'admin_menu', array( $this, 'modules_menu' ), 99 ); 20 add_action( 'admin_menu', array( $this, 'settings_menu' ), 100 ); 22 21 add_action( 'admin_init', array( $this, 'register_settings' ) ); 23 } 24 25 /** 26 * Add settings page under WordPress settings menu. 27 * 28 * @since 1.0.0 29 * @return void 30 */ 31 public function add_settings_page() { 32 add_options_page( 22 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 23 24 // Load page headers. 25 add_action( 'esse_admin_page_before_main_content', array( $this, 'render_header' ) ); 26 add_action( 'esse_admin_page_after_content', array( $this, 'render_aside' ) ); 27 28 // Enabling the modules. 29 add_action( 'wp_ajax_esse_enable_module', array( $this, 'enable_module' ) ); 30 } 31 32 /** 33 * Add menu page. 34 * 35 * @since 1.0.0 36 * @return void 37 */ 38 public function admin_menu() { 39 add_menu_page( 33 40 __( 'Essential Elements', 'essential-elements' ), 34 __( 'Essential Elements', 'essential-elements' ),41 __( 'Essentials', 'essential-elements' ), 35 42 'manage_options', 36 43 'essential-elements', 37 array( $this, 'settings_page' ) 44 null, 45 'dashicons-screenoptions', 46 '25', 47 ); 48 49 // Add submenu page "Dashboard". 50 add_submenu_page( 51 'essential-elements', 52 __( 'Dashboard', 'essential-elements' ), 53 __( 'Dashboard', 'essential-elements' ), 54 'manage_options', 55 'essential-elements', 56 array( $this, 'render_dashboard' ), 57 1, 58 ); 59 } 60 61 /** 62 * Render dashboard page. 63 * 64 * @since 1.0.0 65 * @return void 66 */ 67 public function render_dashboard() { 68 require __DIR__ . '/views/dashboard.php'; 69 } 70 71 /** 72 * Add modules submenu page. 73 * 74 * @since 1.0.0 75 * @return void 76 */ 77 public function modules_menu() { 78 add_submenu_page( 79 'essential-elements', 80 __( 'Modules', 'essential-elements' ), 81 __( 'Modules', 'essential-elements' ), 82 'manage_options', 83 'esse-modules', 84 array( $this, 'render_modules' ), 85 ); 86 } 87 88 /** 89 * Render modules page. 90 * 91 * @since 1.0.0 92 * @return void 93 */ 94 public function render_modules() { 95 include __DIR__ . '/views/modules.php'; 96 } 97 98 /** 99 * Add settings submenu page. 100 * 101 * @since 1.0.0 102 * @return void 103 */ 104 public function settings_menu() { 105 add_submenu_page( 106 'essential-elements', 107 __( 'Settings', 'essential-elements' ), 108 __( 'Settings', 'essential-elements' ), 109 'manage_options', 110 'esse-settings', 111 array( $this, 'render_settings' ), 38 112 ); 39 113 } … … 45 119 * @return void 46 120 */ 47 public function settings_page() { 48 // Check user capabilities. 49 if ( ! current_user_can( 'manage_options' ) ) { 50 esse_essential_elements()->flash_notice( __( 'You do not have sufficient permissions to access this page.', 'essential-elements' ), 'error' ); 51 return; 52 } 53 ?> 54 <div class="wrap"> 55 <h1><?php esc_html_e( 'Essential Elements Settings', 'essential-elements' ); ?></h1> 56 <p><?php esc_html_e( 'Configure the settings for the Essential Elements plugin.', 'essential-elements' ); ?></p> 57 <form method="post" action="<?php echo esc_url( admin_url( 'options.php' ) ); ?>"> 58 <?php 59 settings_fields( 'essential_elements' ); 60 do_settings_sections( 'essential-elements' ); 61 submit_button(); 62 ?> 63 </form> 64 </div> 65 <?php 121 public function render_settings() { 122 include __DIR__ . '/views/settings.php'; 66 123 } 67 124 … … 80 137 __( 'General Settings', 'essential-elements' ), 81 138 array( $this, 'general_settings' ), 82 'esse ntial-elements'139 'esse-settings' 83 140 ); 84 141 85 142 // Add settings field to enable the progress bar. 86 143 add_settings_field( 87 'esse_ progress_bar_is_enabled',88 __( ' Enable Progress Bar', 'essential-elements' ),89 array( $this, ' progress_bar_is_enabled' ),90 'esse ntial-elements',144 'esse_delete_data', 145 __( 'Delete plugin data', 'essential-elements' ), 146 array( $this, 'delete_data' ), 147 'esse-settings', 91 148 'esse_general_settings' 92 149 ); 93 94 // Progress bar position field.95 add_settings_field(96 'esse_progress_bar_position',97 __( 'Display Position', 'essential-elements' ),98 array( $this, 'progress_bar_position' ),99 'essential-elements',100 'esse_general_settings'101 );102 103 // Progress bar color field.104 add_settings_field(105 'esse_progress_bar_color',106 __( 'Color', 'essential-elements' ),107 array( $this, 'progress_progress_bar_color' ),108 'essential-elements',109 'esse_general_settings'110 );111 112 // Progress bar background color field.113 add_settings_field(114 'esse_progress_bar_bg_color',115 __( 'Background Color', 'essential-elements' ),116 array( $this, 'progress_progress_bar_bg_color' ),117 'essential-elements',118 'esse_general_settings'119 );120 121 // Scroll top is enabled field.122 add_settings_field(123 'esse_scroll_top_is_enabled',124 __( 'Enable Scroll Top', 'essential-elements' ),125 array( $this, 'scroll_top_is_enabled' ),126 'essential-elements',127 'esse_general_settings'128 );129 130 // Scroll top position field.131 add_settings_field(132 'esse_scroll_top_position',133 __( 'Display Position', 'essential-elements' ),134 array( $this, 'scroll_top_position' ),135 'essential-elements',136 'esse_general_settings'137 );138 139 // Scroll top button icon color field.140 add_settings_field(141 'esse_scroll_top_icon_color',142 __( 'Icon Color', 'essential-elements' ),143 array( $this, 'scroll_top_icon_color' ),144 'essential-elements',145 'esse_general_settings'146 );147 148 // Scroll top button background color field.149 add_settings_field(150 'esse_scroll_top_bg_color',151 __( 'Background Color', 'essential-elements' ),152 array( $this, 'scroll_top_bg_color' ),153 'essential-elements',154 'esse_general_settings'155 );156 157 // Scroll top button hover background color field.158 add_settings_field(159 'esse_scroll_top_hover_bg_color',160 __( 'Hover Background Color', 'essential-elements' ),161 array( $this, 'scroll_top_hover_bg_color' ),162 'essential-elements',163 'esse_general_settings'164 );165 150 } 166 151 … … 172 157 */ 173 158 public function general_settings() { 174 echo '<p>' . esc_html__( 'Configure the Essential Elementsgeneral settings.', 'essential-elements' ) . '</p>';159 echo '<p>' . esc_html__( 'Configure the general settings.', 'essential-elements' ) . '</p>'; 175 160 } 176 161 … … 181 166 * @return void 182 167 */ 183 public function progress_bar_is_enabled() {184 $ progress_bar_is_enabled = esse_get_settings( 'progress_bar_is_enabled', 'yes' );168 public function delete_data() { 169 $delete_data = esse_get_settings( 'esse_settings', 'delete_data', 'no' ); 185 170 ?> 186 <label for="esse_settings[ progress_bar_is_enabled]">187 <input type="checkbox" name="esse_settings[ progress_bar_is_enabled]" id="esse_settings[progress_bar_is_enabled]" value="yes" <?php checked( $progress_bar_is_enabled, 'yes' ); ?> />188 <?php esc_html_e( ' Enable to display the progress bar.', 'essential-elements' ); ?>171 <label for="esse_settings[delete_data]"> 172 <input type="checkbox" name="esse_settings[delete_data]" id="esse_settings[delete_data]" value="yes" <?php checked( $delete_data, 'yes' ); ?> /> 173 <?php esc_html_e( 'Delete plugin data on uninstall', 'essential-elements' ); ?> 189 174 </label> 190 <p><?php esc_html_e( 'It will display the progress bar on the bottom/top of the page. Default is enabled.', 'essential-elements' ); ?></p> 191 <?php 192 } 193 194 /** 195 * Display progress bar position field. 196 * 197 * @since 1.0.0 198 * @return void 199 */ 200 public function progress_bar_position() { 201 $progress_bar_position = esse_get_settings( 'progress_bar_position', 'bottom' ); 202 ?> 203 <select name="esse_settings[progress_bar_position]" id="esse_settings[progress_bar_position]" class="regular-text"> 204 <option value="top" <?php selected( $progress_bar_position, 'top' ); ?>><?php esc_html_e( 'Top', 'essential-elements' ); ?></option> 205 <option value="bottom" <?php selected( $progress_bar_position, 'bottom' ); ?>><?php esc_html_e( 'Bottom', 'essential-elements' ); ?></option> 206 ?> 207 </select> 208 <p class="description"><?php esc_html_e( 'Chose the default position to display the progress bar. Default is bottom.', 'essential-elements' ); ?></p> 209 <?php 210 } 211 212 /** 213 * Display progress bar color field. 214 * 215 * @since 1.0.0 216 * @return void 217 */ 218 public function progress_progress_bar_color() { 219 $progress_bar_color = esse_get_settings( 'progress_bar_color', '#FFFFFF' ); 220 ?> 221 <input type="text" name="esse_settings[progress_bar_color]" id="esse_settings[progress_bar_color]" value="<?php echo esc_attr( $progress_bar_color ); ?>" class="regular-text" /> 222 <p class="description"><?php esc_html_e( 'Enter the color of the progress bar. Default is #FFFFFF.', 'essential-elements' ); ?></p> 223 <?php 224 } 225 226 /** 227 * Display progress bar background color field. 228 * 229 * @since 1.0.0 230 * @return void 231 */ 232 public function progress_progress_bar_bg_color() { 233 $progress_bar_bg_color = esse_get_settings( 'progress_bar_bg_color', '#000000' ); 234 ?> 235 <input type="text" name="esse_settings[progress_bar_bg_color]" id="esse_settings[progress_bar_bg_color]" value="<?php echo esc_attr( $progress_bar_bg_color ); ?>" class="regular-text" /> 236 <p class="description"><?php esc_html_e( 'Enter the background color of the progress bar. Default is #000000.', 'essential-elements' ); ?></p> 237 <?php 238 } 239 240 /** 241 * Display the scroll top is enabled field. 242 * 243 * @since 1.0.0 244 * @return void 245 */ 246 public function scroll_top_is_enabled() { 247 $scroll_top_is_enabled = esse_get_settings( 'scroll_top_is_enabled', 'yes' ); 248 ?> 249 <label for="esse_settings[scroll_top_is_enabled]"> 250 <input type="checkbox" name="esse_settings[scroll_top_is_enabled]" id="esse_settings[scroll_top_is_enabled]" value="yes" <?php checked( $scroll_top_is_enabled, 'yes' ); ?> /> 251 <?php esc_html_e( 'Enable to display the scroll top button.', 'essential-elements' ); ?> 252 </label> 253 <p><?php esc_html_e( 'It will display the scroll top button on the bottom left/right of the page. Default is enabled.', 'essential-elements' ); ?></p> 254 <?php 255 } 256 257 /** 258 * Display scroll top position field. 259 * 260 * @since 1.0.0 261 * @return void 262 */ 263 public function scroll_top_position() { 264 $scroll_top_position = esse_get_settings( 'scroll_top_position', 'right' ); 265 ?> 266 <select name="esse_settings[scroll_top_position]" id="esse_settings[scroll_top_position]" class="regular-text"> 267 <option value="left" <?php selected( $scroll_top_position, 'left' ); ?>><?php esc_html_e( 'Bottom Left', 'essential-elements' ); ?></option> 268 <option value="right" <?php selected( $scroll_top_position, 'right' ); ?>><?php esc_html_e( 'Bottom Right', 'essential-elements' ); ?></option> 269 ?> 270 </select> 271 <p class="description"><?php esc_html_e( 'Chose the default position to display the scroll top button. Default is bottom right.', 'essential-elements' ); ?></p> 272 <?php 273 } 274 275 /** 276 * Display scroll top button icon color field. 277 * 278 * @since 1.0.0 279 * @return void 280 */ 281 public function scroll_top_icon_color() { 282 $scroll_top_icon_color = esse_get_settings( 'scroll_top_icon_color', '#ffffff' ); 283 ?> 284 <input type="text" name="esse_settings[scroll_top_icon_color]" id="esse_settings[scroll_top_icon_color]" value="<?php echo esc_attr( $scroll_top_icon_color ); ?>" class="regular-text" /> 285 <p class="description"><?php esc_html_e( 'Enter the icon color of the scroll top button. Default is #ffffff.', 'essential-elements' ); ?></p> 286 <?php 287 } 288 289 /** 290 * Display scroll top button background color field. 291 * 292 * @since 1.0.0 293 * @return void 294 */ 295 public function scroll_top_bg_color() { 296 $scroll_top_bg_color = esse_get_settings( 'scroll_top_bg_color', '#000000' ); 297 ?> 298 <input type="text" name="esse_settings[scroll_top_bg_color]" id="esse_settings[scroll_top_bg_color]" value="<?php echo esc_attr( $scroll_top_bg_color ); ?>" class="regular-text" /> 299 <p class="description"><?php esc_html_e( 'Enter the background color of the scroll top button. Default is #000000.', 'essential-elements' ); ?></p> 300 <?php 301 } 302 303 /** 304 * Display scroll top button hover background color field. 305 * 306 * @since 1.0.0 307 * @return void 308 */ 309 public function scroll_top_hover_bg_color() { 310 $scroll_top_hover_bg_color = esse_get_settings( 'scroll_top_hover_bg_color', '#333333' ); 311 ?> 312 <input type="text" name="esse_settings[scroll_top_hover_bg_color]" id="esse_settings[scroll_top_hover_bg_color]" value="<?php echo esc_attr( $scroll_top_hover_bg_color ); ?>" class="regular-text" /> 313 <p class="description"><?php esc_html_e( 'Enter the hover background color of the scroll top button. Default is #333333.', 'essential-elements' ); ?></p> 175 <p><?php esc_html_e( 'Enabling this will delete all the data while uninstalling the plugin.', 'essential-elements' ); ?></p> 314 176 <?php 315 177 } … … 327 189 328 190 // Sanitize the progress bar is enabled. 329 $sanitized_settings['progress_bar_is_enabled'] = isset( $settings['progress_bar_is_enabled'] ) ? 'yes' : 'no'; 330 331 // Sanitize the progress bar position. 332 $sanitized_settings['progress_bar_position'] = isset( $settings['progress_bar_position'] ) ? sanitize_text_field( $settings['progress_bar_position'] ) : 'bottom'; 333 334 // Sanitize the progress bar color. 335 $sanitized_settings['progress_bar_color'] = isset( $settings['progress_bar_color'] ) ? sanitize_text_field( $settings['progress_bar_color'] ) : '#FFFFFF'; 336 337 // Sanitize the progress bar background color. 338 $sanitized_settings['progress_bar_bg_color'] = isset( $settings['progress_bar_bg_color'] ) ? sanitize_text_field( $settings['progress_bar_bg_color'] ) : '#000000'; 339 340 // Sanitize the scroll top is enabled. 341 $sanitized_settings['scroll_top_is_enabled'] = isset( $settings['scroll_top_is_enabled'] ) ? 'yes' : 'no'; 342 343 // Sanitize the scroll top position. 344 $sanitized_settings['scroll_top_position'] = isset( $settings['scroll_top_position'] ) ? sanitize_text_field( $settings['scroll_top_position'] ) : 'right'; 345 346 // Sanitize the scroll top icon color. 347 $sanitized_settings['scroll_top_icon_color'] = isset( $settings['scroll_top_icon_color'] ) ? sanitize_text_field( $settings['scroll_top_icon_color'] ) : '#FFFFFF'; 348 349 // Sanitize the scroll top background color. 350 $sanitized_settings['scroll_top_bg_color'] = isset( $settings['scroll_top_bg_color'] ) ? sanitize_text_field( $settings['scroll_top_bg_color'] ) : '#000000'; 351 352 // Sanitize the scroll top hover background color. 353 $sanitized_settings['scroll_top_hover_bg_color'] = isset( $settings['scroll_top_hover_bg_color'] ) ? sanitize_text_field( $settings['scroll_top_hover_bg_color'] ) : '#333333'; 191 $sanitized_settings['delete_data'] = isset( $settings['delete_data'] ) ? 'yes' : 'no'; 354 192 355 193 return $sanitized_settings; 356 194 } 195 196 /** 197 * Get screen IDs. 198 * 199 * @since 1.0.0 200 */ 201 public static function get_screen_ids() { 202 // Add a filter to allow custom screen IDs. 203 return apply_filters( 204 'esse_screen_ids', 205 array( 206 'toplevel_page_essential-elements', 207 'essentials_page_esse-modules', 208 'essentials_page_esse-settings', 209 ) 210 ); 211 } 212 213 /** 214 * Enqueue scripts. 215 * 216 * @param string $hook The current admin page. 217 * 218 * @since 1.0.0 219 * @return void 220 */ 221 public function enqueue_scripts( $hook ) { 222 $screens = self::get_screen_ids(); 223 224 if ( ! in_array( $hook, $screens, true ) ) { 225 return; 226 } 227 228 wp_enqueue_style( 'esse-admin', ESSE_ASSETS_URL . 'css/admin.css', array(), ESSE_VERSION ); 229 } 230 231 /** 232 * Render header. 233 * 234 * @since 1.0.0 235 * @return void 236 */ 237 public function render_header() { 238 wp_verify_nonce( '_nonce' ); 239 $page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; 240 include __DIR__ . '/views/header.php'; 241 } 242 243 /** 244 * Render aside. 245 * 246 * @since 1.0.0 247 * @return void 248 */ 249 public function render_aside() { 250 include __DIR__ . '/views/aside.php'; 251 } 252 253 /** 254 * Enable module. 255 * 256 * @since 1.0.0 257 * @return void 258 */ 259 public function enable_module() { 260 // Verify nonce to prevent CSRF. 261 if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_POST['_wpnonce'] ) ), 'esse_enable_module' ) ) { 262 wp_send_json_error( array( 'message' => __( 'Invalid nonce provided.', 'essential-elements' ) ) ); 263 } 264 265 // Check user capabilities to prevent unauthorized access. 266 if ( ! current_user_can( 'manage_options' ) ) { 267 wp_send_json_error( array( 'message' => __( 'You do not have sufficient permissions to access this page.', 'essential-elements' ) ) ); 268 } 269 270 // Get the module data and save it to the database. 271 $module = isset( $_POST['module'] ) ? sanitize_text_field( wp_unslash( $_POST['module'] ) ) : ''; 272 $status = isset( $_POST['status'] ) ? sanitize_text_field( wp_unslash( $_POST['status'] ) ) : ''; 273 274 // If module is empty, send error response. 275 if ( empty( $module ) ) { 276 wp_send_json_error( array( 'message' => __( 'Module not found.', 'essential-elements' ) ) ); 277 } 278 279 // If status is empty, send error response. 280 if ( empty( $status ) ) { 281 wp_send_json_error( array( 'message' => __( 'Module status not found.', 'essential-elements' ) ) ); 282 } 283 284 $modules = get_option( 'esse_modules', array() ); 285 286 // If status is true and module is not in the array, add it. 287 if ( $status && ! in_array( $module, $modules, true ) ) { 288 $modules[] = $module; 289 } else { 290 // If status is false and module is in the array, remove it. 291 $modules = array_diff( $modules, array( $module ) ); 292 } 293 294 // Update the modules option. 295 update_option( 'esse_modules', $modules ); 296 297 // Send success response. 298 wp_send_json_success( array( 'message' => __( 'Module status updated successfully.', 'essential-elements' ) ) ); 299 exit(); 300 } 357 301 } -
essential-elements/trunk/includes/Plugin.php
r3270973 r3458804 6 6 7 7 /** 8 * The main plugin class.8 * Class Plugin. 9 9 * 10 10 * @since 1.0.0 … … 45 45 * 46 46 * @since 1.0.0 47 * @return static 47 * @return static The plugin instance. 48 48 */ 49 49 final public static function create( $file, $version = '1.0.0' ) { … … 63 63 * @since 1.0.0 64 64 */ 65 p rotectedfunction __construct( $file, $version ) {65 public function __construct( $file, $version ) { 66 66 $this->file = $file; 67 67 $this->version = $version; … … 77 77 * @return void 78 78 */ 79 pr otectedfunction define_constants() {79 private function define_constants() { 80 80 // Define the plugin version. 81 81 if ( ! defined( 'ESSE_VERSION' ) ) { … … 125 125 * @return void 126 126 */ 127 p rotectedfunction init_hooks() {127 public function init_hooks() { 128 128 register_activation_hook( ESSE_FILE, array( $this, 'activate' ) ); 129 add_action( 'init', array( $this, 'load_textdomain' ) );130 129 add_action( 'admin_notices', array( $this, 'display_flash_notices' ), 12 ); 131 130 add_action( 'init', array( $this, 'init' ), 0 ); … … 134 133 /** 135 134 * Activate the plugin. 136 * This method is called when the plugin is activated.137 135 * 138 136 * @since 1.0.0 … … 141 139 public function activate() { 142 140 update_option( 'esse_version', ESSE_VERSION ); 143 144 // Default settings. 145 $default_settings = array( 146 'progress_bar_is_enabled' => 'yes', 147 'progress_bar_position' => 'bottom', 148 'progress_bar_color' => '#FFFFFF', 149 'progress_bar_bg_color' => '#000000', 150 'scroll_top_is_enabled' => 'yes', 151 'scroll_top_position' => 'right', 152 'scroll_top_icon_color' => '#FFFFFF', 153 'scroll_top_bg_color' => '#000000', 154 'scroll_top_hover_bg_color' => '#333333', 155 ); 141 add_option( 'esse_installed', current_time( 'mysql' ) ); 142 143 // Default settings for modules. 144 $progress_bar_settings = array( 145 'is_enabled' => 'yes', 146 'position' => 'bottom', 147 'color' => '#FFFFFF', 148 'bg_color' => '#000000', 149 ); 150 151 $scroll_bar_settings = array( 152 'is_enabled' => 'yes', 153 'track_color' => '#f1f1f1', 154 'thumb_color' => '#0073aa', 155 'thumb_hover_color' => '#00a0d2', 156 'width' => 60, 157 ); 158 159 $scroll_top_settings = array( 160 'is_enabled' => 'yes', 161 'position' => 'right', 162 'icon_color' => '#FFFFFF', 163 'bg_color' => '#000000', 164 'hover_bg_color' => '#333333', 165 ); 166 156 167 // Update the default settings. 157 update_option( 'esse_settings', $default_settings ); 158 } 159 160 /** 161 * Load the plugin text domain. 162 * This method is used to load the plugin text domain. 163 * 164 * @since 1.0.0 165 * @return void 166 */ 167 public function load_textdomain() { 168 load_plugin_textdomain( 'essential-elements', false, dirname( plugin_basename( ESSE_FILE ) ) . '/languages' ); 168 update_option( 'esse_progress_bar_settings', $progress_bar_settings ); 169 update_option( 'esse_scroll_bar_settings', $scroll_bar_settings ); 170 update_option( 'esse_scroll_top_settings', $scroll_top_settings ); 169 171 } 170 172 … … 187 189 $notices, 188 190 array( 189 'notice' => wp_kses_post( $notice ),190 'type' => sanitize_key( $type ),191 'notice' => $notice, 192 'type' => $type, 191 193 'dismissible' => $dismissible_text, 192 194 ) … … 207 209 208 210 foreach ( $notices as $notice ) { 209 echo wp_kses_post( 210 sprintf( 211 '<div class="notice notice-%1$s %2$s"><p>%3$s</p></div>', 212 esc_attr( $notice['type'] ), 213 esc_attr( $notice['dismissible'] ), 214 esc_html( $notice['notice'] ), 215 ) 211 printf( 212 '<div class="notice notice-%1$s %2$s"><p>%3$s</p></div>', 213 esc_attr( $notice['type'] ), 214 esc_attr( $notice['dismissible'] ), 215 esc_html( $notice['notice'] ), 216 216 ); 217 217 } … … 225 225 /** 226 226 * Initialize the plugin. 227 * This method is used to initialize the plugin.228 227 * 229 228 * @since 1.0.0 … … 231 230 */ 232 231 public function init() { 233 // Load the admin classes if it's an admin area.232 // Load admin classes. 234 233 if ( is_admin() ) { 235 234 new Admin\Admin(); 236 235 } 237 236 238 $progress_bar_is_enabled = esse_get_settings( 'progress_bar_is_enabled', 'yes' ); 239 $scroll_top_is_enabled = esse_get_settings( 'scroll_top_is_enabled', 'yes' ); 240 241 if ( 'yes' === $progress_bar_is_enabled || 'yes' === $scroll_top_is_enabled ) { 242 add_action( 'wp_footer', array( $this, 'display_frontend_assets' ) ); 243 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 244 } 245 } 246 247 /** 248 * Display the frontend assets. 249 * 250 * @since 1.0.0 251 * @return void 252 */ 253 public function display_frontend_assets() { 254 $progress_bar_is_enabled = esse_get_settings( 'progress_bar_is_enabled', 'yes' ); 255 $scroll_top_is_enabled = esse_get_settings( 'scroll_top_is_enabled', 'yes' ); 256 257 if ( 'yes' === $progress_bar_is_enabled ) { 258 ?> 259 <div class="esse-progress-bar"> 260 <div class="esse-progress-bar__indicator"></div> 261 <div class="esse-progress-bar__content"><?php esc_html( '0%' ); ?></div> 262 </div> 263 <?php 264 } 265 266 if ( 'yes' === $scroll_top_is_enabled ) { 267 ?> 268 <div class="esse-scroll-top is-rounded" data-on-devices="both"> 269 <span class="esse-scroll-top__icon"> 270 <svg class="esse-scroll-top__arrow-svg" fill="currentColor" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="20px" height="16.043px" viewBox="57 35.171 26 16.043" xml:space="preserve"> 271 <path d="M57.5,38.193l12.5,12.5l12.5-12.5l-2.5-2.5l-10,10l-10-10L57.5,38.193z"></path> 272 </svg> 273 </span> 274 <span class="screen-reader-text">Scroll to Top</span> 275 </div> 276 <?php 277 } 278 } 279 280 /** 281 * Enqueue scripts and styles. 282 * 283 * @since 1.0.0 284 * @return void 285 */ 286 public function enqueue_scripts() { 287 wp_enqueue_style( 'esse-frontend', ESSE_ASSETS_URL . 'css/esse-frontend.css', array(), ESSE_VERSION ); 288 wp_enqueue_script( 'esse-frontend', ESSE_ASSETS_URL . 'js/esse-frontend.js', array( 'jquery' ), ESSE_VERSION, true ); 289 290 // Render Inline styles. 291 $progress_bar_position = esse_get_settings( 'progress_bar_position', 'bottom' ); 292 $progress_bar_color = esse_get_settings( 'progress_bar_color', '#FFFFFF' ); 293 $progress_bar_bg_color = esse_get_settings( 'progress_bar_bg_color', '#000000' ); 294 $scroll_top_position = esse_get_settings( 'scroll_top_position', 'right' ); 295 $scroll_top_icon_color = esse_get_settings( 'scroll_top_icon_color', '#FFFFFF' ); 296 $scroll_top_bg_color = esse_get_settings( 'scroll_top_bg_color', '#000000' ); 297 $scroll_top_hover_bg_color = esse_get_settings( 'scroll_top_hover_bg_color', '#333333' ); 298 299 $styles = ' 300 .esse-progress-bar { 301 ' . esc_attr( $progress_bar_position ) . ': 0; 302 } 303 .esse-progress-bar__indicator { 304 background-color: ' . esc_attr( $progress_bar_bg_color ) . '; 305 } 306 .esse-progress-bar__content { 307 color: ' . esc_attr( $progress_bar_color ) . '; 308 background-color: ' . esc_attr( $progress_bar_bg_color ) . '15; 309 } 310 .esse-scroll-top { 311 background-color: ' . esc_attr( $scroll_top_bg_color ) . '; 312 ' . esc_attr( $scroll_top_position ) . ': 20px; 313 } 314 .esse-scroll-top__arrow-svg { 315 color: ' . esc_attr( $scroll_top_icon_color ) . '; 316 } 317 .esse-scroll-top:hover { 318 background-color: ' . esc_attr( $scroll_top_hover_bg_color ) . '; 319 } 320 '; 321 322 wp_add_inline_style( 'esse-frontend', wp_strip_all_tags( $styles ) ); 237 // Load common classes. 238 new Modules\Modules(); 323 239 } 324 240 } -
essential-elements/trunk/includes/functions.php
r3270973 r3458804 7 7 * 8 8 * @param string $option Option name. 9 * @param string $key Option key. 9 10 * @param mixed $default_value Default value. 10 11 * 11 * @since 1.0.012 * @retu n mixed|null12 * @since 1.0.0 13 * @return mixed|null 13 14 */ 14 function esse_get_settings( $option, $default_value = null ) { 15 $options = get_option( 'esse_settings', array() ); 15 function esse_get_settings( $option, $key, $default_value = null ) { 16 if ( empty( $option ) || empty( $key ) ) { 17 return $default_value; 18 } 16 19 17 return isset( $options[ $option ] ) ? $options[ $option ] : $default_value; 20 $options = get_option( $option, array() ); 21 22 return isset( $options[ $key ] ) ? $options[ $key ] : $default_value; 18 23 } -
essential-elements/trunk/languages/essential-elements.pot
r3270973 r3458804 1 # Copyright (C) 202 5BeautifulPlugins1 # Copyright (C) 2026 BeautifulPlugins 2 2 # This file is distributed under the GPL v2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Essential Elements for WordPress 1.0. 0\n"6 "Report-Msgid-Bugs-To: https://beautifulplugins.com/support /\n"7 "POT-Creation-Date: 202 5-04-11 10:30:00+00:00\n"5 "Project-Id-Version: Essential Elements for WordPress 1.0.1\n" 6 "Report-Msgid-Bugs-To: https://beautifulplugins.com/support\n" 7 "POT-Creation-Date: 2026-02-11 09:04:31+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 202 5-MO-DA HO:MI+ZONE\n"11 "PO-Revision-Date: 2026-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 13 "Language-Team: LANGUAGE <[email protected]>\n" … … 25 25 "X-Generator: grunt-wp-i18n 1.0.3\n" 26 26 27 #: includes/Admin/Admin.php: 33 includes/Admin/Admin.php:3427 #: includes/Admin/Admin.php:40 includes/Admin/views/header.php:16 28 28 msgid "Essential Elements" 29 29 msgstr "" 30 30 31 #: includes/Admin/Admin.php:50 31 #: includes/Admin/Admin.php:41 32 msgid "Essentials" 33 msgstr "" 34 35 #: includes/Admin/Admin.php:52 includes/Admin/Admin.php:53 36 #: includes/Admin/views/header.php:21 37 msgid "Dashboard" 38 msgstr "" 39 40 #: includes/Admin/Admin.php:80 includes/Admin/Admin.php:81 41 #: includes/Admin/views/header.php:22 42 msgid "Modules" 43 msgstr "" 44 45 #: includes/Admin/Admin.php:107 includes/Admin/Admin.php:108 46 #: includes/Admin/views/header.php:23 47 msgid "Settings" 48 msgstr "" 49 50 #: includes/Admin/Admin.php:137 includes/Modules/ProgressBar/Settings.php:93 51 #: includes/Modules/ScrollBar/Settings.php:93 52 #: includes/Modules/ScrollTop/Settings.php:93 53 msgid "General Settings" 54 msgstr "" 55 56 #: includes/Admin/Admin.php:145 57 msgid "Delete plugin data" 58 msgstr "" 59 60 #: includes/Admin/Admin.php:159 includes/Modules/ProgressBar/Settings.php:142 61 #: includes/Modules/ScrollBar/Settings.php:151 62 #: includes/Modules/ScrollTop/Settings.php:151 63 msgid "Configure the general settings." 64 msgstr "" 65 66 #: includes/Admin/Admin.php:173 67 msgid "Delete plugin data on uninstall" 68 msgstr "" 69 70 #: includes/Admin/Admin.php:175 71 msgid "Enabling this will delete all the data while uninstalling the plugin." 72 msgstr "" 73 74 #: includes/Admin/Admin.php:262 75 msgid "Invalid nonce provided." 76 msgstr "" 77 78 #: includes/Admin/Admin.php:267 32 79 msgid "You do not have sufficient permissions to access this page." 33 80 msgstr "" 34 81 35 #: includes/Admin/Admin.php:55 82 #: includes/Admin/Admin.php:276 83 msgid "Module not found." 84 msgstr "" 85 86 #: includes/Admin/Admin.php:281 87 msgid "Module status not found." 88 msgstr "" 89 90 #: includes/Admin/Admin.php:298 91 msgid "Module status updated successfully." 92 msgstr "" 93 94 #: includes/Admin/views/aside.php:15 95 msgid "Need Help?" 96 msgstr "" 97 98 #: includes/Admin/views/aside.php:18 99 msgid "" 100 "Essential Elements for WordPress is a collection of tools and modules to " 101 "help you manage your WordPress website." 102 msgstr "" 103 104 #: includes/Admin/views/aside.php:19 105 msgid "" 106 "If you have any questions or need help, please visit the support page. Or, " 107 "directly contact us. We are here to help you!" 108 msgstr "" 109 110 #: includes/Admin/views/aside.php:21 111 msgid "Get Support" 112 msgstr "" 113 114 #: includes/Admin/views/aside.php:22 115 msgid "Contact Us" 116 msgstr "" 117 118 #: includes/Admin/views/dashboard.php:28 119 msgid "" 120 "Welcome to Essential Elements - The Ultimate Essential Elements for " 121 "WordPress" 122 msgstr "" 123 124 #: includes/Admin/views/dashboard.php:29 125 msgid "" 126 "Essential Elements for WordPress is a powerful plugin that adds essential " 127 "elements to your WordPress website. It is a must-have plugin for every " 128 "WordPress website. With Essential Elements, you can easily add essential " 129 "elements to your website without any coding knowledge." 130 msgstr "" 131 132 #: includes/Admin/views/dashboard.php:33 133 msgid "Overview of Modules" 134 msgstr "" 135 136 #: includes/Admin/views/dashboard.php:34 includes/Admin/views/modules.php:29 137 msgid "" 138 "Here are the top 3 modules that you can enable to improve your website " 139 "functionality." 140 msgstr "" 141 142 #: includes/Admin/views/dashboard.php:37 includes/Admin/views/modules.php:32 143 #: includes/Modules/ProgressBar/Settings.php:46 144 #: includes/Modules/ProgressBar/Settings.php:47 145 msgid "Progress Bar" 146 msgstr "" 147 148 #: includes/Admin/views/dashboard.php:38 includes/Admin/views/modules.php:33 149 msgid "Display a progress bar on your website." 150 msgstr "" 151 152 #: includes/Admin/views/dashboard.php:39 includes/Admin/views/dashboard.php:44 153 #: includes/Admin/views/dashboard.php:49 154 msgid "Enable Module" 155 msgstr "" 156 157 #: includes/Admin/views/dashboard.php:42 includes/Admin/views/modules.php:42 158 #: includes/Modules/ScrollTop/Settings.php:46 159 #: includes/Modules/ScrollTop/Settings.php:47 160 msgid "Scroll Top" 161 msgstr "" 162 163 #: includes/Admin/views/dashboard.php:43 includes/Admin/views/modules.php:43 164 msgid "Add a scroll top button on your website." 165 msgstr "" 166 167 #: includes/Admin/views/dashboard.php:47 includes/Admin/views/modules.php:52 168 #: includes/Modules/ScrollBar/Settings.php:46 169 #: includes/Modules/ScrollBar/Settings.php:47 170 msgid "Scroll Bar" 171 msgstr "" 172 173 #: includes/Admin/views/dashboard.php:48 includes/Admin/views/modules.php:53 174 msgid "Customize the scroll bar on your website." 175 msgstr "" 176 177 #: includes/Admin/views/dashboard.php:55 178 msgid "Join Our Community" 179 msgstr "" 180 181 #: includes/Admin/views/dashboard.php:56 182 msgid "" 183 "Got a question about the plugin, want to share your awesome project or just " 184 "say hi? Join our wonderful community to get the latest updates, news, and " 185 "tutorials." 186 msgstr "" 187 188 #: includes/Admin/views/dashboard.php:60 189 msgid "Facebook" 190 msgstr "" 191 192 #: includes/Admin/views/dashboard.php:64 193 msgid "YouTube" 194 msgstr "" 195 196 #: includes/Admin/views/dashboard.php:70 197 msgid "Rate Us" 198 msgstr "" 199 200 #: includes/Admin/views/dashboard.php:80 201 msgid "Based on 5k+ reviews" 202 msgstr "" 203 204 #: includes/Admin/views/dashboard.php:83 205 msgid "" 206 "If you like Essential Elements, please leave us a 5-star review on " 207 "WordPress.org. Your review will help us grow and improve the plugin." 208 msgstr "" 209 210 #: includes/Admin/views/dashboard.php:84 211 msgid "Submit a Review →" 212 msgstr "" 213 214 #: includes/Admin/views/header.php:25 215 msgid "Support" 216 msgstr "" 217 218 #: includes/Admin/views/modules.php:28 219 msgid "All Modules" 220 msgstr "" 221 222 #: includes/Admin/views/settings.php:27 36 223 msgid "Essential Elements Settings" 37 224 msgstr "" 38 225 39 #: includes/Admin/Admin.php:56 40 msgid "Configure the settings for the Essential Elements plugin." 41 msgstr "" 42 43 #: includes/Admin/Admin.php:80 44 msgid "General Settings" 45 msgstr "" 46 47 #: includes/Admin/Admin.php:88 226 #: includes/Admin/views/settings.php:28 227 msgid "Configure the settings of the Essential Elements plugin." 228 msgstr "" 229 230 #: includes/Modules/ProgressBar/Settings.php:61 231 #: includes/Modules/ProgressBar/views/settings.php:26 232 msgid "Progress Bar Settings" 233 msgstr "" 234 235 #: includes/Modules/ProgressBar/Settings.php:101 48 236 msgid "Enable Progress Bar" 49 237 msgstr "" 50 238 51 #: includes/Admin/Admin.php:97 includes/Admin/Admin.php:133 239 #: includes/Modules/ProgressBar/Settings.php:110 240 #: includes/Modules/ScrollTop/Settings.php:110 52 241 msgid "Display Position" 53 242 msgstr "" 54 243 55 #: includes/ Admin/Admin.php:106244 #: includes/Modules/ProgressBar/Settings.php:119 56 245 msgid "Color" 57 246 msgstr "" 58 247 59 #: includes/Admin/Admin.php:115 includes/Admin/Admin.php:151 248 #: includes/Modules/ProgressBar/Settings.php:128 249 #: includes/Modules/ScrollTop/Settings.php:128 60 250 msgid "Background Color" 61 251 msgstr "" 62 252 63 #: includes/Admin/Admin.php:124 64 msgid "Enable Scroll Top" 65 msgstr "" 66 67 #: includes/Admin/Admin.php:142 68 msgid "Icon Color" 69 msgstr "" 70 71 #: includes/Admin/Admin.php:160 72 msgid "Hover Background Color" 73 msgstr "" 74 75 #: includes/Admin/Admin.php:174 76 msgid "Configure the Essential Elements general settings." 77 msgstr "" 78 79 #: includes/Admin/Admin.php:188 253 #: includes/Modules/ProgressBar/Settings.php:156 80 254 msgid "Enable to display the progress bar." 81 255 msgstr "" 82 256 83 #: includes/ Admin/Admin.php:190257 #: includes/Modules/ProgressBar/Settings.php:158 84 258 msgid "" 85 259 "It will display the progress bar on the bottom/top of the page. Default is " … … 87 261 msgstr "" 88 262 89 #: includes/ Admin/Admin.php:204263 #: includes/Modules/ProgressBar/Settings.php:172 90 264 msgid "Top" 91 265 msgstr "" 92 266 93 #: includes/ Admin/Admin.php:205267 #: includes/Modules/ProgressBar/Settings.php:173 94 268 msgid "Bottom" 95 269 msgstr "" 96 270 97 #: includes/ Admin/Admin.php:208271 #: includes/Modules/ProgressBar/Settings.php:175 98 272 msgid "Chose the default position to display the progress bar. Default is bottom." 99 273 msgstr "" 100 274 101 #: includes/ Admin/Admin.php:222275 #: includes/Modules/ProgressBar/Settings.php:189 102 276 msgid "Enter the color of the progress bar. Default is #FFFFFF." 103 277 msgstr "" 104 278 105 #: includes/ Admin/Admin.php:236279 #: includes/Modules/ProgressBar/Settings.php:203 106 280 msgid "Enter the background color of the progress bar. Default is #000000." 107 281 msgstr "" 108 282 109 #: includes/Admin/Admin.php:251 283 #: includes/Modules/ProgressBar/views/settings.php:27 284 msgid "Configure the settings of the Progress Bar module." 285 msgstr "" 286 287 #: includes/Modules/ScrollBar/Settings.php:61 288 #: includes/Modules/ScrollBar/views/settings.php:26 289 msgid "Scroll Bar Settings" 290 msgstr "" 291 292 #: includes/Modules/ScrollBar/Settings.php:101 293 msgid "Enable Scroll Bar" 294 msgstr "" 295 296 #: includes/Modules/ScrollBar/Settings.php:110 297 msgid "Track Color" 298 msgstr "" 299 300 #: includes/Modules/ScrollBar/Settings.php:119 301 msgid "Thumb Color" 302 msgstr "" 303 304 #: includes/Modules/ScrollBar/Settings.php:128 305 msgid "Thumb Hover Color" 306 msgstr "" 307 308 #: includes/Modules/ScrollBar/Settings.php:137 309 msgid "Width" 310 msgstr "" 311 312 #: includes/Modules/ScrollBar/Settings.php:165 313 msgid "Enable to display the scroll bar on the page." 314 msgstr "" 315 316 #: includes/Modules/ScrollBar/Settings.php:167 317 msgid "It will modify the scroll bar on the page. Default is enabled." 318 msgstr "" 319 320 #: includes/Modules/ScrollBar/Settings.php:181 321 msgid "Enter the scroll bar track color. Default is #f1f1f1." 322 msgstr "" 323 324 #: includes/Modules/ScrollBar/Settings.php:195 325 msgid "Enter the scroll bar thumb color. Default is #0073aa." 326 msgstr "" 327 328 #: includes/Modules/ScrollBar/Settings.php:209 329 msgid "Enter the scroll bar thumb hover color. Default is #00a0d2." 330 msgstr "" 331 332 #: includes/Modules/ScrollBar/Settings.php:223 333 msgid "" 334 "Enter the scroll bar width in pixels. Default is 60px. Remember to enter " 335 "only the number without \"px\" and also this may not properly work on some " 336 "browsers." 337 msgstr "" 338 339 #: includes/Modules/ScrollBar/views/settings.php:27 340 msgid "Configure the settings of the Scroll Bar module." 341 msgstr "" 342 343 #: includes/Modules/ScrollTop/ScrollTop.php:65 344 msgid "Scroll to Top" 345 msgstr "" 346 347 #: includes/Modules/ScrollTop/Settings.php:61 348 #: includes/Modules/ScrollTop/views/settings.php:26 349 msgid "Scroll Top Settings" 350 msgstr "" 351 352 #: includes/Modules/ScrollTop/Settings.php:101 353 msgid "Enable Scroll Top" 354 msgstr "" 355 356 #: includes/Modules/ScrollTop/Settings.php:119 357 msgid "Icon Color" 358 msgstr "" 359 360 #: includes/Modules/ScrollTop/Settings.php:137 361 msgid "Hover Background Color" 362 msgstr "" 363 364 #: includes/Modules/ScrollTop/Settings.php:165 110 365 msgid "Enable to display the scroll top button." 111 366 msgstr "" 112 367 113 #: includes/ Admin/Admin.php:253368 #: includes/Modules/ScrollTop/Settings.php:167 114 369 msgid "" 115 370 "It will display the scroll top button on the bottom left/right of the page. " … … 117 372 msgstr "" 118 373 119 #: includes/ Admin/Admin.php:267374 #: includes/Modules/ScrollTop/Settings.php:181 120 375 msgid "Bottom Left" 121 376 msgstr "" 122 377 123 #: includes/ Admin/Admin.php:268378 #: includes/Modules/ScrollTop/Settings.php:182 124 379 msgid "Bottom Right" 125 380 msgstr "" 126 381 127 #: includes/ Admin/Admin.php:271382 #: includes/Modules/ScrollTop/Settings.php:184 128 383 msgid "" 129 384 "Chose the default position to display the scroll top button. Default is " … … 131 386 msgstr "" 132 387 133 #: includes/ Admin/Admin.php:285388 #: includes/Modules/ScrollTop/Settings.php:198 134 389 msgid "Enter the icon color of the scroll top button. Default is #ffffff." 135 390 msgstr "" 136 391 137 #: includes/ Admin/Admin.php:299392 #: includes/Modules/ScrollTop/Settings.php:212 138 393 msgid "Enter the background color of the scroll top button. Default is #000000." 139 394 msgstr "" 140 395 141 #: includes/ Admin/Admin.php:313396 #: includes/Modules/ScrollTop/Settings.php:226 142 397 msgid "" 143 398 "Enter the hover background color of the scroll top button. Default is " … … 145 400 msgstr "" 146 401 402 #: includes/Modules/ScrollTop/views/settings.php:27 403 msgid "Configure the settings of the Scroll Top module." 404 msgstr "" 405 147 406 #. Plugin Name of the plugin/theme 148 407 msgid "Essential Elements for WordPress" -
essential-elements/trunk/readme.txt
r3270973 r3458804 2 2 Contributors: beautifulplugins 3 3 Tags: essentials, essential addons, essential elements, essential features, essential 4 Tested up to: 6.7 5 Stable tag: 1.0.0 4 Requires at least: 5.0 5 Tested up to: 6.9 6 Requires PHP: 7.4 7 Stable tag: 1.0.1 6 8 License: GPLv2 or later 7 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 20 22 - **🚀 Scroll to Top Button** - Easily add a scroll-to-top button to your website for improved navigation. 21 23 - **📊 Progress Bar** - Showcase your skills and achievements with customizable progress bars. 22 - **⏱️ Reading Time Estimation** - Display estimated reading time for your posts to keep readers informed. 23 - **🔗 Social Share Buttons** - Add social share buttons to your posts and pages to encourage sharing on social media. 24 - **👁️ Post Views Counter** - Display the number of views for your posts to increase engagement. 25 - **🌐 External Links in New Tab** - Open external links in a new tab to improve user experience. 26 - **🧭 Breadcrumbs Navigation** - Add breadcrumbs navigation to your website for better navigation and SEO. 27 - **🖼️ SVG Upload Support** - Enable SVG uploads to enhance your website's design with scalable vector graphics. 28 - **📚 Table of Contents** - Automatically generate a table of contents for your posts and pages to improve readability. 24 - **🎨 Custom Scroll Bar** - Customize the browser scroll bar with custom colors and styles. 25 - **⏱️ Reading Time Estimation** - Display estimated reading time for your posts to keep readers informed. *(Coming Soon)* 26 - **🔗 Social Share Buttons** - Add social share buttons to your posts and pages to encourage sharing on social media. *(Coming Soon)* 27 - **👁️ Post Views Counter** - Display the number of views for your posts to increase engagement. *(Coming Soon)* 28 - **🌐 External Links in New Tab** - Open external links in a new tab to improve user experience. *(Coming Soon)* 29 - **🧭 Breadcrumbs Navigation** - Add breadcrumbs navigation to your website for better navigation and SEO. *(Coming Soon)* 30 - **🖼️ SVG Upload Support** - Enable SVG uploads to enhance your website's design with scalable vector graphics. *(Coming Soon)* 31 - **📚 Table of Contents** - Automatically generate a table of contents for your posts and pages to improve readability. *(Coming Soon)* 29 32 ...and more coming soon! 30 33 … … 107 110 108 111 == Screenshots == 109 1. Essential Elements Settings 112 1. Progress Bar Settings 113 2. Scroll to Top Settings 114 3. Custom Scroll Bar Settings 115 4. All Modules Settings 110 116 111 117 == Changelog == 118 = 1.0.1 (11 February 2026) = 119 * New: Added new features and improvements. 120 * Fix: Fixed some bugs and issues. 121 112 122 = 1.0.0 (11 April 2025) = 113 123 * Initial release of the plugin. … … 117 127 * Initial release of the plugin. No upgrade necessary. 118 128 129 = 1.0.1 = 130 * Major update with new features and improvements. Please review the changelog for details. 131 119 132 == License == 120 133 Essential Elements for WordPress is distributed under the terms of the GNU General Public License v2 (GPLv2). You may use, modify, and distribute this software under the terms of the GPLv2 license. See http://www.gnu.org/licenses/gpl-2.0.html for more details. 121 -
essential-elements/trunk/vendor/autoload.php
r3270973 r3458804 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 23 20 require_once __DIR__ . '/composer/autoload_real.php'; 24 21 25 return ComposerAutoloaderInit 364f768ac85bad335293fa2c57da2e09::getLoader();22 return ComposerAutoloaderInit6027a90d3d77c32aebae2be9e77e3c6f::getLoader(); -
essential-elements/trunk/vendor/composer/InstalledVersions.php
r3270973 r3458804 28 28 { 29 29 /** 30 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to 31 * @internal 32 */ 33 private static $selfDir = null; 34 35 /** 30 36 * @var mixed[]|null 31 37 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 38 */ 33 39 private static $installed; 40 41 /** 42 * @var bool 43 */ 44 private static $installedIsLocalDir; 34 45 35 46 /** … … 310 321 self::$installed = $data; 311 322 self::$installedByVendor = array(); 323 324 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 325 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 326 // so we have to assume it does not, and that may result in duplicate data being returned when listing 327 // all installed packages for example 328 self::$installedIsLocalDir = false; 329 } 330 331 /** 332 * @return string 333 */ 334 private static function getSelfDir() 335 { 336 if (self::$selfDir === null) { 337 self::$selfDir = strtr(__DIR__, '\\', '/'); 338 } 339 340 return self::$selfDir; 312 341 } 313 342 … … 323 352 324 353 $installed = array(); 354 $copiedLocalDir = false; 325 355 326 356 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir(); 327 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/'); 328 360 if (isset(self::$installedByVendor[$vendorDir])) { 329 361 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 363 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 364 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 365 self::$installedByVendor[$vendorDir] = $required; 366 $installed[] = $required; 367 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 368 self::$installed = $required; 369 self::$installedIsLocalDir = true; 336 370 } 371 } 372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 373 $copiedLocalDir = true; 337 374 } 338 375 } … … 351 388 } 352 389 353 if (self::$installed !== array() ) {390 if (self::$installed !== array() && !$copiedLocalDir) { 354 391 $installed[] = self::$installed; 355 392 } -
essential-elements/trunk/vendor/composer/autoload_classmap.php
r3270973 r3458804 9 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 10 10 'EssentialElements\\Admin\\Admin' => $baseDir . '/includes/Admin/Admin.php', 11 'EssentialElements\\Modules\\Modules' => $baseDir . '/includes/Modules/Modules.php', 12 'EssentialElements\\Modules\\ProgressBar\\ProgressBar' => $baseDir . '/includes/Modules/ProgressBar/ProgressBar.php', 13 'EssentialElements\\Modules\\ProgressBar\\Settings' => $baseDir . '/includes/Modules/ProgressBar/Settings.php', 14 'EssentialElements\\Modules\\ScrollBar\\ScrollBar' => $baseDir . '/includes/Modules/ScrollBar/ScrollBar.php', 15 'EssentialElements\\Modules\\ScrollBar\\Settings' => $baseDir . '/includes/Modules/ScrollBar/Settings.php', 16 'EssentialElements\\Modules\\ScrollTop\\ScrollTop' => $baseDir . '/includes/Modules/ScrollTop/ScrollTop.php', 17 'EssentialElements\\Modules\\ScrollTop\\Settings' => $baseDir . '/includes/Modules/ScrollTop/Settings.php', 11 18 'EssentialElements\\Plugin' => $baseDir . '/includes/Plugin.php', 12 19 ); -
essential-elements/trunk/vendor/composer/autoload_real.php
r3270973 r3458804 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 364f768ac85bad335293fa2c57da2e095 class ComposerAutoloaderInit6027a90d3d77c32aebae2be9e77e3c6f 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 364f768ac85bad335293fa2c57da2e09', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit6027a90d3d77c32aebae2be9e77e3c6f', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 364f768ac85bad335293fa2c57da2e09', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit6027a90d3d77c32aebae2be9e77e3c6f', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 364f768ac85bad335293fa2c57da2e09::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit6027a90d3d77c32aebae2be9e77e3c6f::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
essential-elements/trunk/vendor/composer/autoload_static.php
r3270973 r3458804 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 364f768ac85bad335293fa2c57da2e097 class ComposerStaticInit6027a90d3d77c32aebae2be9e77e3c6f 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( 10 'E' => 10 'E' => 11 11 array ( 12 12 'EssentialElements\\' => 18, … … 15 15 16 16 public static $prefixDirsPsr4 = array ( 17 'EssentialElements\\' => 17 'EssentialElements\\' => 18 18 array ( 19 19 0 => __DIR__ . '/../..' . '/includes', … … 24 24 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 25 25 'EssentialElements\\Admin\\Admin' => __DIR__ . '/../..' . '/includes/Admin/Admin.php', 26 'EssentialElements\\Modules\\Modules' => __DIR__ . '/../..' . '/includes/Modules/Modules.php', 27 'EssentialElements\\Modules\\ProgressBar\\ProgressBar' => __DIR__ . '/../..' . '/includes/Modules/ProgressBar/ProgressBar.php', 28 'EssentialElements\\Modules\\ProgressBar\\Settings' => __DIR__ . '/../..' . '/includes/Modules/ProgressBar/Settings.php', 29 'EssentialElements\\Modules\\ScrollBar\\ScrollBar' => __DIR__ . '/../..' . '/includes/Modules/ScrollBar/ScrollBar.php', 30 'EssentialElements\\Modules\\ScrollBar\\Settings' => __DIR__ . '/../..' . '/includes/Modules/ScrollBar/Settings.php', 31 'EssentialElements\\Modules\\ScrollTop\\ScrollTop' => __DIR__ . '/../..' . '/includes/Modules/ScrollTop/ScrollTop.php', 32 'EssentialElements\\Modules\\ScrollTop\\Settings' => __DIR__ . '/../..' . '/includes/Modules/ScrollTop/Settings.php', 26 33 'EssentialElements\\Plugin' => __DIR__ . '/../..' . '/includes/Plugin.php', 27 34 ); … … 30 37 { 31 38 return \Closure::bind(function () use ($loader) { 32 $loader->prefixLengthsPsr4 = ComposerStaticInit 364f768ac85bad335293fa2c57da2e09::$prefixLengthsPsr4;33 $loader->prefixDirsPsr4 = ComposerStaticInit 364f768ac85bad335293fa2c57da2e09::$prefixDirsPsr4;34 $loader->classMap = ComposerStaticInit 364f768ac85bad335293fa2c57da2e09::$classMap;39 $loader->prefixLengthsPsr4 = ComposerStaticInit6027a90d3d77c32aebae2be9e77e3c6f::$prefixLengthsPsr4; 40 $loader->prefixDirsPsr4 = ComposerStaticInit6027a90d3d77c32aebae2be9e77e3c6f::$prefixDirsPsr4; 41 $loader->classMap = ComposerStaticInit6027a90d3d77c32aebae2be9e77e3c6f::$classMap; 35 42 36 43 }, null, ClassLoader::class); -
essential-elements/trunk/vendor/composer/installed.php
r3270973 r3458804 1 1 <?php return array( 2 2 'root' => array( 3 'name' => ' beautifulplugins/essential-elements',4 'pretty_version' => ' dev-master',5 'version' => ' dev-master',6 'reference' => ' cbc577d8e63f04da4b46b47bea22d26ff5370f01',3 'name' => 'urldev/essential-elements', 4 'pretty_version' => 'v1.0.1', 5 'version' => '1.0.1.0', 6 'reference' => '9bb3ab37b1d8a10c29ad7f6ea34a8f1d8bb9c6ba', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 11 11 ), 12 12 'versions' => array( 13 ' beautifulplugins/essential-elements' => array(14 'pretty_version' => ' dev-master',15 'version' => ' dev-master',16 'reference' => ' cbc577d8e63f04da4b46b47bea22d26ff5370f01',13 'urldev/essential-elements' => array( 14 'pretty_version' => 'v1.0.1', 15 'version' => '1.0.1.0', 16 'reference' => '9bb3ab37b1d8a10c29ad7f6ea34a8f1d8bb9c6ba', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
essential-elements/trunk/vendor/composer/platform_check.php
r3270973 r3458804 20 20 } 21 21 } 22 trigger_error( 23 'Composer detected issues in your platform: ' . implode(' ', $issues), 24 E_USER_ERROR 22 throw new \RuntimeException( 23 'Composer detected issues in your platform: ' . implode(' ', $issues) 25 24 ); 26 25 }
Note: See TracChangeset
for help on using the changeset viewer.