Changeset 7814 for extensions/rv_menutree/trunk
- Timestamp:
- Nov 18, 2010, 10:09:23 PM (14 years ago)
- Location:
- extensions/rv_menutree/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_menutree/trunk/changelog.txt
r6608 r7814 1 2.1.c2 - improved javascript (faster, async loading in browser, better compressed zith google closure compiler)3 4 1 2.1.b 5 2 - themes can define their own rv_menutree_categories.tpl 3 - improved javascript (faster, async loading in browser, better compressed zith google closure compiler) 6 4 7 5 2.1.a -
extensions/rv_menutree/trunk/main.inc.php
r6509 r7814 8 8 */ 9 9 10 if (!function_exists('rv_ua_is_handheld'))11 {12 function rv_ua_is_handheld()13 {14 if ( isset($_SESSION['is_handheld']) )15 return $_SESSION['is_handheld'];16 $ret=false;17 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'BlackBerry')!==false )18 $ret=true;19 if ( session_id()!="" )20 $_SESSION['is_handheld']=$ret;21 return $ret;22 }23 }24 25 10 add_event_handler('get_categories_menu_sql_where', 'rv_mt_get_categories_menu_sql_where', EVENT_HANDLER_PRIORITY_NEUTRAL, 3 ); 26 11 27 12 function rv_mt_get_categories_menu_sql_where($where, $expand, $filter) 28 13 { 29 if (rv_ua_is_handheld()) return $where;30 14 add_event_handler('blockmanager_apply', 'rv_mt_menubar_categories'); 31 15 … … 53 37 global $template, $page; 54 38 55 $rvmt_ path = 'plugins/'. basename(dirname(__FILE__)).'/';56 $template->set_template_dir(PHPWG_ROOT_PATH. $rvmt_path.'template/');39 $rvmt_base_name = basename(dirname(__FILE__)); 40 $template->set_template_dir(PHPWG_ROOT_PATH.'plugins/'.$rvmt_base_name.'/template/'); 57 41 $template->assign(array( 58 'RVMT_ PATH' => get_root_url().$rvmt_path,42 'RVMT_BASE_NAME' => $rvmt_base_name, 59 43 'RVMT_UPPER_IDS' => isset($page['category']['uppercats']) ? array_flip( explode(',', $page['category']['uppercats'])) : null, 60 44 ) -
extensions/rv_menutree/trunk/template/rv_menutree_categories.tpl
r6608 r7814 1 1 {html_head} 2 2 <style type="text/css"> 3 .rvTree li .bullet {ldelim}padding-left:14px;margin-left:0;background:url({$R VMT_PATH}img/bpm.gif) no-repeat scroll;}3 .rvTree li .bullet {ldelim}padding-left:14px;margin-left:0;background:url({$ROOT_URL}plugins/{$RVMT_BASE_NAME}/img/bpm.gif) no-repeat scroll;} 4 4 .rvTree li.liOpen .bullet {ldelim}cursor:pointer;background-position:-38px center;} 5 5 .rvTree li.liClosed .bullet {ldelim}cursor:pointer;background-position:-19px center;} … … 56 56 rvTreeAutoConvert = document.getElementById("theCategoryMenu"); 57 57 (function () {ldelim} 58 var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '{$R VMT_PATH|@cat:"js/rvtree-min.js"}';58 var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '{$ROOT_URL}plugins/{$RVMT_BASE_NAME}/js/rvtree-min.js'; 59 59 var s0 = document.getElementsByTagName('script')[0]; s0.parentNode.insertBefore(s, s0); 60 60 })(); 61 //RVTree.convertTree( document.getElementById("theCategoryMenu") );62 61 </script> 63 62 {if isset($block->data.U_UPLOAD)}
Note: See TracChangeset
for help on using the changeset viewer.