ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/includes/init_includes/init_html_editor.php File Reference

Go to the source code of this file.

Namespaces

namespace  htmleditors

Variables

 if (!defined('DIR_WS_EDITORS')) define('DIR_WS_EDITORS'
if(!defined('IS_ADMIN_FLAG')) $editors_list ['NONE'] = array('desc' => EDITOR_NONE, 'handler' => '', 'special_needs' => '')
 $editors_pulldown = array()
 $i = 0
foreach($editors_list as $key=>
$value) if(!isset($_SESSION['html_editor_preference_status'])) 
$new_editor_choice = (isset($_GET['action']) && $_GET['action'] == 'set_editor' && isset($_GET['reset_editor'])) ? $_GET['reset_editor'] : -1
foreach($editors_pulldown as
$key=> $value) 
$editor_handler = DIR_WS_INCLUDES . $editors_list[$_SESSION['html_editor_preference_status']]['handler']

Variable Documentation

$editor_handler = DIR_WS_INCLUDES . $editors_list[$_SESSION['html_editor_preference_status']]['handler']

Set a few variables for use in admin pages

$_SESSION['html_editor_preference_status'] = the key name of the selected editor for this session $current_editor_key = the numerical index pointer as default for the pulldown menu drawn when offering editor selection $editor_handler = the path to the handler file containing the logic required for <HEAD> insertion to activate editor features

Definition at line 61 of file init_html_editor.php.

if (!defined('IS_ADMIN_FLAG')) $editors_list['NONE'] = array('desc' => EDITOR_NONE, 'handler' => '', 'special_needs' => '')

List of potential editors apps

CONSTANTS are used for language-specific display names, and are defined in /YOUR_ADMIN_FOLDER/includes/languages/extra_definitions/editor_EDITORNAME.php

To add additional editors, add your own entries to the $editors_list array by creating a NEW FILE in /YOUR_ADMIN_FOLDER/includes/extra_functions/editor_EDITORNAME.php containing just one line of PHP: <?php $editors_list['NAME_OF_EDITOR'] = array('desc' => EDITOR_CONSTANT, 'handler' => 'editorhandlerfilename.php', 'special_needs' => '');

NOTE: THERE SHOULD BE NO NEED TO EDIT ANYTHING BELOW THIS LINE:

Definition at line 24 of file init_html_editor.php.

$editors_pulldown = array()

Prepare pulldown menu for use in various pages where editor selections should be offered

Definition at line 32 of file init_html_editor.php.

$i = 0

Definition at line 33 of file init_html_editor.php.

foreach ($editors_list as $key=> $value) if (!isset($_SESSION['html_editor_preference_status'])) $new_editor_choice = (isset($_GET['action']) && $_GET['action'] == 'set_editor' && isset($_GET['reset_editor'])) ? $_GET['reset_editor'] : -1

Session default is set if no preference has been chosen during this login session If a new preference has been selected via a pulldown menu, set the details:

Definition at line 47 of file init_html_editor.php.

if(!defined('DIR_WS_EDITORS')) define('DIR_WS_EDITORS'

Definition at line 9 of file init_html_editor.php.

 All Data Structures Namespaces Files Functions Variables Enumerations