Changeset 28060


Ignore:
Timestamp:
Apr 2, 2014, 11:27:36 PM (7 years ago)
Author:
flop25
Message:

modular tour
tours can be disabled with conf

Location:
extensions/TakeATour
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/TakeATour/admin.php

    r27998 r28060  
    1717);
    1818
     19if (isset($conf['TakeATour_tour_ignored']) and is_array($conf['TakeATour_tour_ignored']))
     20{
     21  $template->assign('TAT_tour_ignored', $conf['TakeATour_tour_ignored']);
     22}
    1923$template->set_filename('plugin_admin_content', dirname(__FILE__) .'/tpl/admin.tpl');
    2024$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
  • extensions/TakeATour/main.inc.php

    r28059 r28060  
    2828if ( pwg_get_session_var('tour_to_launch') and defined('IN_ADMIN') and IN_ADMIN  )
    2929{
    30   if !in_array(pwg_get_session_var('tour_to_launch'), $conf['TakeATour_tour_ignored']) or !isset($conf['TakeATour_tour_ignored']))
     30  global $conf;
     31  if ((isset($conf['TakeATour_tour_ignored']) and !in_array(pwg_get_session_var('tour_to_launch'), $conf['TakeATour_tour_ignored'])) or !isset($conf['TakeATour_tour_ignored']))
    3132  {
    32     add_event_handler('init', 'TAT_add_js_css');
    33     include('tours/'.pwg_get_session_var('tour_to_launch').'/config.inc.php');
     33      add_event_handler('init', 'TAT_add_js_css');
     34      include('tours/'.pwg_get_session_var('tour_to_launch').'/config.inc.php');
    3435  }
    3536}
     
    4950  //$tat_path=$_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
    5051  $template->assign('TAT_path', $tat_path);
    51   include('tours/'.$tour_to_launch.'/config_preparse.inc.php')
    52   $template->set_filename('TAT_tour_tpl', PHPWG_PLUGINS_PATH.'TakeATour/tpl/'.$tour_to_launch.'.tpl');
     52  include('tours/'.$tour_to_launch.'/config_preparse.inc.php');
     53  $template->set_filename('TAT_tour_tpl', PHPWG_PLUGINS_PATH.'TakeATour/tours/'.$tour_to_launch.'/tour.tpl');
    5354  $template->parse('TAT_tour_tpl');
    5455}
  • extensions/TakeATour/tpl

    • Property svn:ignore set to
      admin.tpl
Note: See TracChangeset for help on using the changeset viewer.