Changeset - e890665419df
[Not reviewed]
default
0 3 0
Nathan Brink (binki) - 15 years ago 2011-02-04 00:40:21
ohnobinki@ohnopublishing.net
Add a $qtips_always option which can be used to override session-based qTips hiding.
3 files changed with 30 insertions and 1 deletions:
0 comments (0 inline, 0 general)
inc/class.page.php
Show inline comments
 
@@ -46,6 +46,7 @@ set_include_path(get_include_path() . PA
 
$feedback_emails = array('ez@ethanzonca.com, ngelderloos7@gmail.com, ohnobinki@ohnopublishing.net');
 
$use_captcha = FALSE;
 
$admin_enable_purge = FALSE;
 
$qtips_always = FALSE;
 

	
 
$config_inc = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.inc';
 
if (file_exists($config_inc)) {
inc/config.inc.example
Show inline comments
 
@@ -19,6 +19,19 @@
 
 */
 

	
 
/**
 
 * \file
 
 * \brief
 
 *   A file documenting available configuration options and their
 
 *   defaults.
 
 *
 
 * Copy this file to config.inc after installing
 
 * slate_permutate. Uncomment any options whose defaults you want to
 
 * change. The commented-out example options display, in most cases,
 
 * the default values for the variables which will be used if they're
 
 * not specified.
 
 */
 

	
 
/**
 
 * \brief
 
 *   Use clean URLs for saved schedules. Default: FALSE.
 
 *
 
@@ -94,3 +107,18 @@
 
 * because it causes irreparable information loss.
 
 */
 
/* $admin_enable_purge = FALSE; */
 

	
 
/**
 
 * \brief
 
 *   Specify whether or not to always display qTips to users.
 
 *
 
 * Set to TRUE to display the qTips unconditionally. Set to FALSE to
 
 * only show qTips to the user the first time he visits
 
 * slate_permutate.
 
 *
 
 * The qTip is the little black box which tells a user to enter a
 
 * course number into the input page. For casual users, it directs the
 
 * attention to where the user should start. For advanced users, the
 
 * whole concept may appear silly ;-).
 
 */
 
/* $qtips_always = FALSE; */
input.php
Show inline comments
 
@@ -60,7 +60,7 @@ else
 
    $my_hc .= '    class_last = add_class();
 
';
 
  }
 
if (!isset($_SESSION['saw_qtips']))
 
if ($qtips_always || !isset($_SESSION['saw_qtips']))
 
  {
 
    $my_hc .= '        addTips();';
 
    $_SESSION['saw_qtips'] = TRUE;
0 comments (0 inline, 0 general)