-
Accessibility Page
Zen Cart 2.0.0 will come with a page built in for you to provide a site accessibility statement, like your terms, privacy and shipping information pages.
Users of older versions may create this page with the Accessibility Page plugin.
https://www.zen-cart.com/downloads.php?do=file&id=2383
-
Re: Accessibility Page
This will need some tweaking as the sql for the define status seems to be missing and the includes/modules/sideboxes/information.php with the code for Conditions being
Code:
if (DEFINE_CONDITIONS_STATUS <= 1) { $information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
}
and for ACCESSIBILITY
Code:
$information[] = '<a href="' . zen_href_link(FILENAME_ACCESSIBILITY) . '">' . BOX_INFORMATION_ACCESSIBILITY . '</a>';
This causes problems with bootstrap sites especially as the formatting is lost with it not properly defined.
At least that's what I am seeing.
-
Re: Accessibility Page
Testing shows the same problem on 2.0.0 with bootstrap:(
Works on 2.0.0 with responsive classic
-
Re: Accessibility Page
On a tangent - I've never looked at my site with lynx before, impressed, it's not bad!
-
Re: Accessibility Page
You will have to run the following sql statement into your database for the ability to turn off/on Accessibility under the side box labeled Information for your web site:
This is controlled by your admin panel/ configuration/ Define Page Status
Code:
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`, `val_function`) VALUES (NULL, 'Define Accessibility', 'DEFINE_ACCESSIBILITY_STATUS', '1', 'Enable the Defined Accessibility Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', '25', '88', NULL, '0001-01-01 00:00:00.000000', NULL, 'zen_cfg_select_option(array(\'0\', \'1\', \'2\', \'3\'),', NULL);
includes/modules/sideboxes/bootstrap/information.php
Code:
if (DEFINE_ACCESSIBILITY_STATUS <= 1) {
$information[] = '<a class="' . $information_classes . '" href="' .
zen_href_link(FILENAME_ACCESSIBILITY) . '">' . BOX_INFORMATION_ACCESSIBILITY . '</a>';
}
includes/templates/bootstrap/templates/tpl_accessibility_default.php
Code:
<?php
/**
* Page Template
*
* BOOTSTRAP v3.6.0
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_accessibility_default.php 3464 2006-04-19 00:07:26Z ajeh $
*/
?>
<div class="centerColumn" id="accessibility">
<h1 id="accessibilityDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
<?php
if (DEFINE_ACCESSIBILITY_STATUS === '1' || DEFINE_ACCESSIBILITY_STATUS === '2') {
?>
<div id="accessibilityDefaultMainContent" class="content">
<?php
/**
* require the html_define for the accessibility page
*/
require $define_page;
?>
</div>
<?php
}
?>
<div id="privacyDefault-btn-toolbar" class="btn-toolbar my-3" role="toolbar">
<?php echo zca_back_link(); ?>
</div>
</div>
-
Re: Accessibility Page
The newer pages (brands, about us and now this page) were not intended to have DEFINE constants.
You can add one if you wish but it's not built in to the 2.0.0 SQL.
-
Re: Accessibility Page
> This causes problems with bootstrap sites especially as the formatting is lost with it not properly defined.
With Bootstrap, update the override file includes/modules/sideboxes/bootstrap/information.php to include the new file with bootstrap styling.
$information[] = '<a '<a class="' . $information_classes . '" href="' . zen_href_link(FILENAME_ACCESSIBILITY) . '">' . BOX_INFORMATION_ACCESSIBILITY . '</a>';
At some point this will be built into the Bootstrap template. A PR has been submitted: https://github.com/lat9/ZCA-Bootstrap-Template/pull/325
-
Re: Accessibility Page
There is another change required: update your sitemap template (includes/templates/template_default/templates/tpl_site_map_default.php or the override file if you have overridden). Add below the display of BOX_INFORMATION_CONDITIONS:
<li><?php echo '<a href="' . zen_href_link(FILENAME_ACCESSIBILITY) . '">' . BOX_INFORMATION_ACCESSIBILITY . '</a>'; ?></li>
-
Re: Accessibility Page
Thanx for the info and fixes.
IMHO, despite my focus on all things being accessibility compliant, I still feel this define page should have the same options as the others. If for no other reason than to disable editing once it is defined.