Changeset 3447109
- Timestamp:
- 01/26/2026 01:15:19 PM (2 months ago)
- Location:
- site-accessibility
- Files:
-
- 38 added
- 6 edited
-
tags/1.1.4 (added)
-
tags/1.1.4/assets (added)
-
tags/1.1.4/assets/css (added)
-
tags/1.1.4/assets/css/admin (added)
-
tags/1.1.4/assets/css/admin/jquery-ui.css (added)
-
tags/1.1.4/assets/css/admin/style.css (added)
-
tags/1.1.4/assets/css/style.css (added)
-
tags/1.1.4/assets/images (added)
-
tags/1.1.4/assets/images/admin (added)
-
tags/1.1.4/assets/images/admin/accessibility.png (added)
-
tags/1.1.4/assets/images/admin/close.svg (added)
-
tags/1.1.4/assets/images/public (added)
-
tags/1.1.4/assets/images/public/accessibility.png (added)
-
tags/1.1.4/assets/images/public/loader-gif.gif (added)
-
tags/1.1.4/assets/images/public/mouse_cursor.jpg (added)
-
tags/1.1.4/assets/images/public/mouse_cursor.png (added)
-
tags/1.1.4/assets/images/public/right-icon_1.png (added)
-
tags/1.1.4/assets/images/public/right_icon.png (added)
-
tags/1.1.4/assets/images/public/zoom.png (added)
-
tags/1.1.4/assets/images/public/zoom_icon.png (added)
-
tags/1.1.4/assets/images/public/zoom_icon1.png (added)
-
tags/1.1.4/assets/images/public/zoomed.png (added)
-
tags/1.1.4/assets/js (added)
-
tags/1.1.4/assets/js/admin (added)
-
tags/1.1.4/assets/js/admin/my-script.js (added)
-
tags/1.1.4/assets/js/public (added)
-
tags/1.1.4/assets/js/public/custom.js (added)
-
tags/1.1.4/ifweac-accessibility.php (added)
-
tags/1.1.4/index.php (added)
-
tags/1.1.4/languages (added)
-
tags/1.1.4/readme.txt (added)
-
tags/1.1.4/templates (added)
-
tags/1.1.4/templates/admin (added)
-
tags/1.1.4/templates/admin/default_page_fields.php (added)
-
tags/1.1.4/templates/admin/settings_page_fields.php (added)
-
tags/1.1.4/templates/public (added)
-
tags/1.1.4/templates/public/sidebar.php (added)
-
tags/1.1.4/uninstall.php (added)
-
trunk/assets/css/style.css (modified) (5 diffs)
-
trunk/assets/js/public/custom.js (modified) (2 diffs)
-
trunk/ifweac-accessibility.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (6 diffs)
-
trunk/templates/admin/default_page_fields.php (modified) (1 diff)
-
trunk/templates/public/sidebar.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
site-accessibility/trunk/assets/css/style.css
r3433474 r3447109 1 /* Close button for shortcode mode */ 2 .ifweac_sidebar_close_btn { 3 position: absolute; 4 top: -10px; 5 right: 0; 6 background: #fff; 7 border: none; 8 cursor: pointer; 9 padding: 0; 10 width: 30px; 11 height: 30px; 12 display: flex; 13 align-items: center; 14 justify-content: center; 15 z-index: 10000; 16 border-radius: 50%; 17 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); 18 transition: all 0.3s ease; 19 } 20 .ifweac_sidebar_close_btn.shortcode{ 21 background-color: #fff !important; 22 margin-right: -12px; 23 } 24 .ifweac_sidebar_close_btn.shortcode span{ 25 margin-left: 7px; 26 } 27 28 .ifweac_sidebar_close_btn:hover { 29 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 30 transform: scale(1.1); 31 } 32 33 .ifweac_sidebar_close_btn span { 34 position: relative; 35 display: inline-block; 36 width: 18px; 37 height: 18px; 38 } 39 40 .ifweac_sidebar_close_btn span:before, 41 .ifweac_sidebar_close_btn span:after { 42 content: ""; 43 position: absolute; 44 width: 15px; 45 height: 1.5px; 46 background-color: #000; 47 top: 50%; 48 left: 0; 49 border-radius: 2px; 50 transition: background-color 0.3s ease; 51 } 52 53 .ifweac_sidebar_close_btn span:before { 54 transform: rotate(45deg); 55 } 56 57 .ifweac_sidebar_close_btn span:after { 58 transform: rotate(-45deg); 59 } 60 61 .ifweac_sidebar_close_btn:hover span:before, 62 .ifweac_sidebar_close_btn:hover span:after { 63 background-color: #333; 64 } 65 1 66 .ifweac_sidebar_icon .ifweac_image-wrap > img{ 2 67 margin-top: 20px; … … 9 74 .ifweac_sidebar_content h5{ 10 75 font-size: 17px; 76 margin-right: 30px; 77 } 78 79 .ifweac_sidebar_head { 80 position: relative; 11 81 } 12 82 .ifweac_image-wrap { … … 111 181 .ifweac_accessibility-menu-wrapper.show .ifweac_sidebar_toggler.ifweac_left_bottom .ifweac_sidebar_toggler_btn{ 112 182 position: fixed; 113 top: 22px;114 left: 2 58px;183 top: 15px; 184 left: 270px; 115 185 height: 35px; 116 186 width: 35px !important; … … 217 287 padding: 7px; 218 288 line-height: 1; 289 width: 100%; 219 290 } 220 291 .ifweac_accessibility #ifweac_sidebar .ifweac_fonts_wrapper, … … 396 467 .ifweac_sidebar_content h2 { 397 468 margin-top: 0; 398 font-size: 2 6px;469 font-size: 25px; 399 470 padding-bottom: 0; 400 471 color: #fff; -
site-accessibility/trunk/assets/js/public/custom.js
r3437805 r3447109 38 38 39 39 // Toggling the Sidebar 40 ifweac_sidebarToggler.addEventListener("click", () => { 41 ifweac_sidebar.classList.toggle("show"); 42 ifweac_accessibility_menu_wrapper.classList.toggle("show"); 43 }); 40 if (ifweac_sidebarToggler) { 41 ifweac_sidebarToggler.addEventListener("click", () => { 42 ifweac_sidebar.classList.toggle("show"); 43 ifweac_accessibility_menu_wrapper.classList.toggle("show"); 44 }); 45 } 46 47 // Close button for shortcode mode 48 const ifweac_closeBtn = document.querySelector("#ifweac_sidebar_close_btn"); 49 if (ifweac_closeBtn) { 50 ifweac_closeBtn.addEventListener("click", () => { 51 ifweac_sidebar.classList.remove("show"); 52 ifweac_accessibility_menu_wrapper.classList.remove("show"); 53 }); 54 55 // Also allow keyboard navigation (Escape key) 56 document.addEventListener("keydown", (e) => { 57 if (e.key === "Escape" && ifweac_sidebar.classList.contains("show")) { 58 ifweac_sidebar.classList.remove("show"); 59 ifweac_accessibility_menu_wrapper.classList.remove("show"); 60 } 61 }); 62 } 44 63 45 64 //*********************************// … … 746 765 }}, delay); 747 766 }); 767 768 // Outside menu wrapper click hide menu wrapper 769 jQuery(document).on('click', function (e) { 770 const $menu = jQuery('.ifweac_accessibility-menu-wrapper'); 771 const $toggler = jQuery('.ifweac_sidebar_toggler'); 772 // If click is inside menu → do nothing 773 if ($menu.is(e.target) || $menu.has(e.target).length) { 774 return; 775 } 776 // If click is on toggler → do nothing 777 if ($toggler.is(e.target) || $toggler.has(e.target).length) { 778 return; 779 } 780 // Otherwise → close menu 781 $menu.removeClass('show'); 782 }); -
site-accessibility/trunk/ifweac-accessibility.php
r3437805 r3447109 1 1 <?php 2 2 /* 3 * Plugin Name: SiteEase Accessibility 3 * Plugin Name: SiteEase Accessibility Pro 4 4 * Description: Our plugin will be usefull to the people who have some eye disability. We are helping them to to change some font size, and color. 5 5 * Plugin URI: https://www.iflair.com 6 * Version: 1.1. 36 * Version: 1.1.4 7 7 * Author: iFlair Web Technologies Pvt. Ltd. 8 8 * Author URI: https://www.iflair.com … … 15 15 16 16 // Define plugin version 17 define( 'IFWEAC_VERSION' , '1.1. 3' );17 define( 'IFWEAC_VERSION' , '1.1.4' ); 18 18 define( 'IFWEAC_PATH', plugins_url() ); 19 19 define( 'IFWEAC_FILE', __FILE__ ); … … 81 81 add_action('admin_menu', 'ifweac_accessibility_plugin_setup_menu'); 82 82 function ifweac_accessibility_plugin_setup_menu(){ 83 add_menu_page( esc_html__('SiteEase Accessibility ', 'site-accessibility'), esc_html__('SiteEase Accessibility', 'site-accessibility'), 'manage_options', 'site-accessibility-plugin', 'ifweac_admin_page_html_callback', 'dashicons-universal-access-alt' , 5);83 add_menu_page( esc_html__('SiteEase Accessibility Pro', 'site-accessibility'), esc_html__('SiteEase Accessibility Pro', 'site-accessibility'), 'manage_options', 'site-accessibility-plugin', 'ifweac_admin_page_html_callback', 'dashicons-universal-access-alt' , 5); 84 84 add_action('admin_init', 'ifweac_plugin_redirect'); 85 85 } … … 170 170 register_setting('ifweac-default-accessibility-plugin-settings-group', 'ifweac_enable_position', 'ifweac_common_sanitize'); 171 171 register_setting('ifweac-default-accessibility-plugin-settings-group', 'ifweac_select_sidebar_icon_color', 'ifweac_common_sanitize'); 172 173 register_setting( 174 'ifweac-default-accessibility-plugin-settings-group', 175 'ifweac_sidebar_shortcode_position', 176 'ifweac_common_sanitize' 177 ); 172 178 173 179 if (isset($_REQUEST['page']) && isset($_REQUEST['tab']) && isset($_REQUEST['settings-updated'])) { … … 284 290 load_plugin_textdomain('site-accessibility', false, dirname(plugin_basename(__FILE__)) . '/languages'); 285 291 } 292 293 // Register sidebar shortcode 294 function ifweac_sidebar_shortcode() { 295 $ifweac_sidebar_shortcode_position = get_option('ifweac_sidebar_shortcode_position'); 296 // Only render shortcode button when "shortcode" option is selected 297 if ($ifweac_sidebar_shortcode_position !== 'shortcode') { 298 return ''; // Return empty if not in shortcode mode 299 } 300 301 ob_start(); 302 303 $ifweac_sidebar_title = ''; 304 $ifweac_sidebar_title = get_option('ifweac_sidebar_title'); 305 $ifweac_sidebar_icon = get_option('ifweac_sidebar_icon'); 306 $ifweac_enable_btn_txt = get_option('ifweac_enable_btn_txt'); 307 $ifweac_enable_btn_image = get_option('ifweac_enable_btn_image'); 308 309 if(isset($ifweac_enable_btn_txt) && !empty($ifweac_enable_btn_txt)){ 310 if(empty($ifweac_sidebar_title)){ 311 $ifweac_sidebar_title = 'Accessibility'; 312 } 313 } 314 315 $ifweac_select_sidebar_icon_color = get_option('ifweac_select_sidebar_icon_color'); 316 317 if(empty($ifweac_select_sidebar_icon_color)){ 318 $ifweac_select_sidebar_icon_color = '#086db3'; 319 } 320 ?> 321 <!-- Hidden field to pass sidebar/shortcode option to JavaScript --> 322 <input type="hidden" id="ifweac_sidebar_display_mode" value="<?php echo esc_attr($ifweac_sidebar_shortcode_position); ?>" /> 323 324 <?php 325 // Only show the default sidebar toggler if "Default Sidebar" option is selected 326 if ($ifweac_sidebar_shortcode_position === 'shortcode') { 327 if($ifweac_enable_btn_image && $ifweac_enable_btn_txt){ ?> 328 <div class="ifweac_sidebar_toggler first"> 329 <div class="ifweac_sidebar_toggler_btn" style="width:max-content;background-color: <?php echo esc_attr($ifweac_select_sidebar_icon_color);?>"> 330 <?php 331 if($ifweac_enable_btn_image) { 332 if(!empty($ifweac_sidebar_icon)){ ?> 333 <img src="<?php echo esc_url($ifweac_sidebar_icon); ?>" alt="" width="35" height="35"> 334 <?php } else { ?> 335 <img src="<?php echo esc_url(plugins_url()).'/site-accessibility/assets/images/public/accessibility.png'; ?>" alt="" width="35" height="35"> 336 <?php } 337 } ?> 338 <?php 339 if($ifweac_enable_btn_txt) { 340 if(!empty($ifweac_sidebar_title)){ ?> 341 <span style="font-size: 16px;"><?php echo esc_html($ifweac_sidebar_title);?></span> 342 <?php } else { ?> 343 <span style="font-size: 16px;"><?php echo esc_html__('Accessibility', 'site-accessibility');?></span> 344 <?php } 345 } ?> 346 </div> 347 </div> 348 <?php } else if ($ifweac_enable_btn_txt) { ?> 349 <div class="ifweac_sidebar_toggler second"> 350 <div class="ifweac_sidebar_toggler_btn" style="width:max-content;background-color: <?php echo esc_attr($ifweac_select_sidebar_icon_color);?>"> 351 <span style="font-size: 16px;"><?php echo esc_html($ifweac_sidebar_title);?></span> 352 </div> 353 </div> 354 <?php } else if ($ifweac_enable_btn_image) { ?> 355 <div class="ifweac_sidebar_toggler third"> 356 <div class="ifweac_sidebar_toggler_btn" style="width:max-content;background-color: <?php echo esc_attr($ifweac_select_sidebar_icon_color);?>"> 357 <?php 358 if(!empty($ifweac_sidebar_icon)){ ?> 359 <img src="<?php echo esc_url($ifweac_sidebar_icon); ?>" alt="" width="35" height="35"> 360 <span></span> 361 <?php } else { ?> 362 <img src="<?php echo esc_url(plugins_url()).'/site-accessibility/assets/images/public/accessibility.png'; ?>" alt="" width="35" height="35"> 363 <span></span> 364 <?php } ?> 365 </div> 366 </div> 367 <?php } else { ?> 368 <div class="ifweac_sidebar_toggler fourth"> 369 <div class="ifweac_sidebar_toggler_btn" style="width:max-content;background-color: <?php echo esc_attr($ifweac_select_sidebar_icon_color);?>"> 370 <img src="<?php echo esc_url(plugins_url()).'/site-accessibility/assets/images/public/accessibility.png'; ?>" alt="" width="35" height="35"> 371 <span></span> 372 </div> 373 </div> 374 <?php } 375 } 376 return ob_get_clean(); 377 } 378 add_shortcode('ifweac_sidebar', 'ifweac_sidebar_shortcode'); -
site-accessibility/trunk/readme.txt
r3437805 r3447109 1 === SiteEase Accessibility ===1 === SiteEase Accessibility Pro === 2 2 Contributors: iflairwebtechnologies 3 3 Donate link: https://www.iflair.com/ … … 5 5 Requires at least: 4.7 6 6 Tested up to: 6.9 7 Stable tag: 1.1. 37 Stable tag: 1.1.4 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 SiteEase Accessibility improves readability and usability by letting users adjust font size, colors, andvisual settings.12 SiteEase Accessibility Pro improves website readability and usability by allowing users to adjust font size, colors, and other visual settings. 13 13 14 14 == Description == 15 15 16 **SiteEase Accessibility ** is a WordPress plugin that adds a set of front-end accessibility and usability tools, allowing visitors to adjust how content appears on your website based ontheir individual needs.16 **SiteEase Accessibility Pro** is a WordPress plugin that adds a set of front-end accessibility and usability tools, enabling visitors to customize how content appears on your website according to their individual needs. 17 17 18 The plugin focuses on **visual accessibility and user comfort**, offering controls such as font size adjustment, color customization, link highlighting, image and text magnifiers, and cursor enhancements. These features help users with visual strain, low vision, or readability preferences interact with websitecontent more comfortably.18 The plugin focuses on **visual accessibility and user comfort**, offering features such as font size adjustment, color customization, link highlighting, image and text magnifiers, and cursor enhancements. These tools help users with visual strain, low vision, or specific readability preferences interact with content more comfortably. 19 19 20 All features can be enabled, disabled, and configured from a dedicated **admin settings page**, making the plugin easy to set up with out any coding knowledge.20 All features can be enabled, disabled, and configured from a dedicated **admin settings page**, making the plugin easy to set up with no coding knowledge required. 21 21 22 > Note:This plugin provides accessibility enhancements but does not claim full WCAG compliance.22 > **Note:** This plugin provides accessibility enhancements but does not claim full WCAG compliance. 23 23 24 ### Features 24 == Features == 25 25 26 26 **Font Size Adjustment** 27 Allows users to increase or decrease text size to improvereadability.27 Allows users to increase or decrease text size for improved readability. 28 28 29 29 **Text Color Customization** 30 Users canchange font colors to improve contrast and visibility.30 Enables users to change font colors to improve contrast and visibility. 31 31 32 32 **Underline Links** … … 37 37 38 38 **Light Theme Mode** 39 Provides a light display mode option for improved readability in differentenvironments.39 Provides a light display mode for better readability in various environments. 40 40 41 41 **Grayscale Images** … … 43 43 44 44 **Image Magnifier** 45 Allows users to zoom in to images for bettervisibility.45 Allows users to zoom in on images for improved visibility. 46 46 47 47 **Text Magnifier** … … 58 58 59 59 **Page Title Color Control** 60 Allows customization of page title colors for bettercontrast.60 Allows customization of page title colors for improved contrast. 61 61 62 62 **Reset Settings Button** 63 Users can reset all accessibility settings back to defaultat any time.63 Allows users to reset all accessibility settings to their default values at any time. 64 64 65 65 == Installation == 66 66 67 67 1. Go to **Plugins > Add New** in your WordPress admin panel. 68 2. Search for **SiteEase Accessibility **.68 2. Search for **SiteEase Accessibility Pro**. 69 69 3. Install and activate the plugin. 70 4. Navigate to **S ettings > SiteEase Accessibility**.71 5. Configure the a vailable accessibility options as needed.72 6. Visit the front -end of your site to seethe accessibility controls in action.70 4. Navigate to **SiteEase Accessibility Pro**. 71 5. Configure the accessibility options as needed. 72 6. Visit the front end of your site to view the accessibility controls in action. 73 73 74 74 == Frequently Asked Questions == 75 75 76 = What does SiteEase Accessibility do? =76 = What does SiteEase Accessibility Pro do? = 77 77 It adds front-end tools that allow visitors to adjust font size, colors, cursor visibility, image display, and other visual elements to improve readability and usability. 78 78 … … 86 86 The plugin is designed to work with most modern WordPress themes. Appearance may vary slightly depending on theme styles. 87 87 88 = How do I use the shortcode to display the accessibility toggle button? = 89 You can use the shortcode `[ifweac_sidebar]` to display the accessibility toggle button anywhere on your site. 90 91 Simply add the shortcode to any page, post, or widget where you want the accessibility sidebar toggle button to appear. This is useful if you have disabled the default sidebar display or want more control over its placement. 92 88 93 == Screenshots == 89 94 90 1. Front-end accessibility sidebar button 91 2. Front-end accessibility control panel 92 3. Admin settings – general options 93 4. Admin settings – advanced options 95 1. Front-end accessibility sidebar button 96 2. Front-end accessibility control panel 97 3. Admin settings – general options 98 4. Admin settings – advanced options 94 99 95 100 == Changelog == 96 101 102 = 1.1.4 = 103 * Added default sidebar display option and shortcode support 104 * Added shortcode `[ifweac_sidebar]` to display the accessibility toggle button on posts and pages 105 * Improved overall design 106 97 107 = 1.1.3 = 98 * Rename plugin to SiteEase Accessibility, update readme and headers, fix accessibility issues, unify text domain, and update compatibility 108 * Renamed plugin to SiteEase Accessibility 109 * Updated readme and plugin headers 110 * Fixed accessibility issues 111 * Unified text domain 112 * Updated compatibility 99 113 100 114 = 1.1.2 = 101 * Improved HTML structure and markup handling .115 * Improved HTML structure and markup handling 102 116 103 117 = 1.1.1 = 104 * UI improvements and better theme compatibility.118 * UI improvements and enhanced theme compatibility 105 119 106 120 = 1.1.0 = 107 * Minor bug fixes and accessibility improvements .121 * Minor bug fixes and accessibility improvements 108 122 109 123 = 1.0.0 = 110 * Initial release .124 * Initial release -
site-accessibility/trunk/templates/admin/default_page_fields.php
r3433474 r3447109 123 123 </td> 124 124 </tr> 125 126 <!-- HTML for sidebar or shortcode display admin settings --> 127 <?php 128 $ifweac_sidebar_shortcode_position = get_option( 129 'ifweac_sidebar_shortcode_position', 130 'default_sidebar' // default value 131 ); 132 ?> 133 134 <tr valign="top"> 135 <th scope="row"> 136 <?php esc_html_e( 'Default sidebar display or shortcode', 'site-accessibility' ); ?> 137 </th> 138 <td> 139 <div class="ifweac_pos-main"> 140 141 <div class="ifweac_pos-inner"> 142 <input 143 type="radio" 144 id="ifweac_position_sidebar" 145 name="ifweac_sidebar_shortcode_position" 146 value="default_sidebar" 147 <?php checked( $ifweac_sidebar_shortcode_position, 'default_sidebar' ); ?> 148 /> 149 <label for="ifweac_position_sidebar"> 150 <?php esc_html_e( 'Default Sidebar', 'site-accessibility' ); ?> 151 </label> 152 </div> 153 154 <div class="ifweac_pos-inner"> 155 <input 156 type="radio" 157 id="ifweac_position_shortcode" 158 name="ifweac_sidebar_shortcode_position" 159 value="shortcode" 160 <?php checked( $ifweac_sidebar_shortcode_position, 'shortcode' ); ?> 161 /> 162 <label for="ifweac_position_shortcode"> 163 <?php esc_html_e( 'Shortcode', 'site-accessibility' ); ?> 164 </label> 165 </div> 166 167 </div> 168 </td> 169 </tr> 170 171 125 172 </table> 126 173 <!-- End Table code --> -
site-accessibility/trunk/templates/public/sidebar.php
r3437805 r3447109 44 44 <div class="ifweac_sidebar_content ifweac_sidebar_head"> 45 45 <?php if(!empty($ifweac_title)){ ?> 46 <h 5><?php echo esc_html($ifweac_title); ?></h5>46 <h2><?php echo esc_html($ifweac_title); ?></h2> 47 47 <?php 48 48 } else { ?> 49 <h5><?php echo esc_html__('Accessibility Options', 'site-accessibility'); ?></h5> 50 <?php } ?> 49 <h2><?php echo esc_html__('Accessibility Options', 'site-accessibility'); ?></h2> 50 <?php } ?> 51 <!-- Close button for shortcode mode --> 52 <?php 53 $ifweac_sidebar_shortcode_position = get_option('ifweac_sidebar_shortcode_position', 'default_sidebar'); 54 if ($ifweac_sidebar_shortcode_position === 'shortcode') { ?> 55 <button type="button" class="ifweac_sidebar_close_btn shortcode" id="ifweac_sidebar_close_btn" aria-label="<?php echo esc_attr__('Close accessibility sidebar', 'site-accessibility'); ?>" tabindex="0"> 56 <span></span> 57 </button> 58 <?php } ?> 51 59 </div> 52 60 <!-- End Sidbar Head --> … … 344 352 <!-- End Sidebar section --> 345 353 354 <!-- Start Sidebar-Toggler --> 346 355 <?php 356 $ifweac_sidebar_title = ''; 347 357 $ifweac_sidebar_title = get_option('ifweac_sidebar_title'); 348 358 $ifweac_sidebar_icon = get_option('ifweac_sidebar_icon'); 349 359 $ifweac_enable_btn_txt = get_option('ifweac_enable_btn_txt'); 350 360 $ifweac_enable_btn_image = get_option('ifweac_enable_btn_image'); 351 ?> 352 <!-- Start Sidebar-Toggler --> 353 <?php $ifweac_select_sidebar_icon_color = get_option('ifweac_select_sidebar_icon_color'); 361 362 if(isset($ifweac_enable_btn_txt) && !empty($ifweac_enable_btn_txt)){ 363 if(empty($ifweac_sidebar_title)){ 364 $ifweac_sidebar_title = 'Accessibility'; 365 } 366 } 367 368 $ifweac_sidebar_shortcode_position = get_option('ifweac_sidebar_shortcode_position', 'default_sidebar'); 369 $ifweac_select_sidebar_icon_color = get_option('ifweac_select_sidebar_icon_color'); 354 370 355 371 if(empty($ifweac_select_sidebar_icon_color)){ 356 372 $ifweac_select_sidebar_icon_color = '#086db3'; 357 373 } 358 ?> 359 <?php 374 ?> 375 <!-- Hidden field to pass sidebar/shortcode option to JavaScript --> 376 <input type="hidden" id="ifweac_sidebar_display_mode" value="<?php echo esc_attr($ifweac_sidebar_shortcode_position); ?>" /> 377 378 <?php 379 // Only show the default sidebar toggler if "Default Sidebar" option is selected 380 if ($ifweac_sidebar_shortcode_position === 'default_sidebar') { 360 381 if($ifweac_enable_btn_image && $ifweac_enable_btn_txt){ ?> 361 382 <div class="ifweac_sidebar_toggler first"> … … 378 399 } ?> 379 400 </div> 380 </div> <?php }381 else if ($ifweac_enable_btn_txt) { ?>382 <div class="ifweac_sidebar_toggler second">401 </div> 402 <?php } else if ($ifweac_enable_btn_txt) { ?> 403 <div class="ifweac_sidebar_toggler second"> 383 404 <div class="ifweac_sidebar_toggler_btn" style="width:auto;background-color: <?php echo esc_attr($ifweac_select_sidebar_icon_color);?>"> 384 <span style="font-size: 16px;"><?php echo esc_html($ifweac_sidebar_title);?></span> 405 <span style="font-size: 16px;"><?php echo esc_html($ifweac_sidebar_title);?></span> 385 406 </div> 386 407 </div> 387 <?php } else if ($ifweac_enable_btn_image) { ?>408 <?php } else if ($ifweac_enable_btn_image) { ?> 388 409 <div class="ifweac_sidebar_toggler third"> 389 410 <div class="ifweac_sidebar_toggler_btn" style="width:auto;background-color: <?php echo esc_attr($ifweac_select_sidebar_icon_color);?>"> … … 398 419 </div> 399 420 </div> 400 <?php } else { ?>421 <?php } else { ?> 401 422 <div class="ifweac_sidebar_toggler fourth"> 402 423 <div class="ifweac_sidebar_toggler_btn" style="width:auto;background-color: <?php echo esc_attr($ifweac_select_sidebar_icon_color);?>"> … … 405 426 </div> 406 427 </div> 407 <?php } ?> 408 <!-- End Sidebar-Toggler --> 428 <?php } 429 } ?> 430 <!-- End Sidebar-Toggler --> 431 409 432 </div> 410 433 <!-- End Sidebar wrapper -->
Note: See TracChangeset
for help on using the changeset viewer.