/var/ezwebin_site/cache/template/compiled/window_controls_extratabs-ac49a0b22260c5bdb1c8787d774f0200.php

https://bitbucket.org/ericsagnes/ezpublish-multisite · PHP · 764 lines · 692 code · 46 blank · 26 comment · 92 complexity · 937d967511e0795c475304afe66f747b MD5 · raw file

  1. <?php
  2. // URI: design/admin2/templates/window_controls_extratabs.tpl
  3. // Filename: design/admin2/templates/window_controls_extratabs.tpl
  4. // Timestamp: 1346310353 (Thu Aug 30 16:05:53 JST 2012)
  5. $oldSetArray_a59bc9ec77b4b7d74080908af9029d51 = isset( $setArray ) ? $setArray : array();
  6. $setArray = array();
  7. $tpl->Level++;
  8. if ( $tpl->Level > 40 )
  9. {
  10. $text = $tpl->MaxLevelWarning;$tpl->Level--;
  11. return;
  12. }
  13. $eZTemplateCompilerCodeDate = 1074699607;
  14. if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
  15. include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
  16. $text .= ' ';
  17. // def $counter
  18. if ( $tpl->hasVariable( 'counter', $rootNamespace ) )
  19. {
  20. $tpl->warning( 'def', "Variable 'counter' is already defined.", array (
  21. 0 =>
  22. array (
  23. 0 => 1,
  24. 1 => 4,
  25. 2 => 5,
  26. ),
  27. 1 =>
  28. array (
  29. 0 => 1,
  30. 1 => 20,
  31. 2 => 21,
  32. ),
  33. 2 => 'design/admin2/templates/window_controls_extratabs.tpl',
  34. ) );
  35. $tpl->setVariable( 'counter', 0, $rootNamespace );
  36. }
  37. else
  38. {
  39. $tpl->setLocalVariable( 'counter', 0, $rootNamespace );
  40. }
  41. $text .= ' ';
  42. // foreach begins
  43. $skipDelimiter = true;
  44. if ( !isset( $fe_variable_stack_e5dba383dc445ceda9ff741610432cb5_3 ) ) $fe_variable_stack_e5dba383dc445ceda9ff741610432cb5_3 = array();
  45. $fe_variable_stack_e5dba383dc445ceda9ff741610432cb5_3[] = compact( 'fe_array_e5dba383dc445ceda9ff741610432cb5_3', 'fe_array_keys_e5dba383dc445ceda9ff741610432cb5_3', 'fe_n_items_e5dba383dc445ceda9ff741610432cb5_3', 'fe_n_items_processed_e5dba383dc445ceda9ff741610432cb5_3', 'fe_i_e5dba383dc445ceda9ff741610432cb5_3', 'fe_key_e5dba383dc445ceda9ff741610432cb5_3', 'fe_val_e5dba383dc445ceda9ff741610432cb5_3', 'fe_offset_e5dba383dc445ceda9ff741610432cb5_3', 'fe_max_e5dba383dc445ceda9ff741610432cb5_3', 'fe_reverse_e5dba383dc445ceda9ff741610432cb5_3', 'fe_first_val_e5dba383dc445ceda9ff741610432cb5_3', 'fe_last_val_e5dba383dc445ceda9ff741610432cb5_3' );
  46. unset( $fe_array_e5dba383dc445ceda9ff741610432cb5_3 );
  47. unset( $fe_array_e5dba383dc445ceda9ff741610432cb5_3 );
  48. $fe_array_e5dba383dc445ceda9ff741610432cb5_3 = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'additional_tabs', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['additional_tabs'] : null;
  49. if (! isset( $fe_array_e5dba383dc445ceda9ff741610432cb5_3 ) ) $fe_array_e5dba383dc445ceda9ff741610432cb5_3 = NULL;
  50. while ( is_object( $fe_array_e5dba383dc445ceda9ff741610432cb5_3 ) and method_exists( $fe_array_e5dba383dc445ceda9ff741610432cb5_3, 'templateValue' ) )
  51. $fe_array_e5dba383dc445ceda9ff741610432cb5_3 = $fe_array_e5dba383dc445ceda9ff741610432cb5_3->templateValue();
  52. $fe_array_keys_e5dba383dc445ceda9ff741610432cb5_3 = is_array( $fe_array_e5dba383dc445ceda9ff741610432cb5_3 ) ? array_keys( $fe_array_e5dba383dc445ceda9ff741610432cb5_3 ) : array();
  53. $fe_n_items_e5dba383dc445ceda9ff741610432cb5_3 = count( $fe_array_keys_e5dba383dc445ceda9ff741610432cb5_3 );
  54. $fe_n_items_processed_e5dba383dc445ceda9ff741610432cb5_3 = 0;
  55. $fe_offset_e5dba383dc445ceda9ff741610432cb5_3 = 0;
  56. $fe_max_e5dba383dc445ceda9ff741610432cb5_3 = $fe_n_items_e5dba383dc445ceda9ff741610432cb5_3 - $fe_offset_e5dba383dc445ceda9ff741610432cb5_3;
  57. $fe_reverse_e5dba383dc445ceda9ff741610432cb5_3 = false;
  58. if ( $fe_offset_e5dba383dc445ceda9ff741610432cb5_3 < 0 || $fe_offset_e5dba383dc445ceda9ff741610432cb5_3 >= $fe_n_items_e5dba383dc445ceda9ff741610432cb5_3 )
  59. {
  60. $fe_offset_e5dba383dc445ceda9ff741610432cb5_3 = ( $fe_offset_e5dba383dc445ceda9ff741610432cb5_3 < 0 ) ? 0 : $fe_n_items_e5dba383dc445ceda9ff741610432cb5_3;
  61. if ( $fe_n_items_e5dba383dc445ceda9ff741610432cb5_3 || $fe_offset_e5dba383dc445ceda9ff741610432cb5_3 < 0 )
  62. {
  63. eZDebug::writeWarning("Invalid 'offset' parameter specified: '$fe_offset_e5dba383dc445ceda9ff741610432cb5_3'. Array count: $fe_n_items_e5dba383dc445ceda9ff741610432cb5_3");
  64. }
  65. }
  66. if ( $fe_max_e5dba383dc445ceda9ff741610432cb5_3 < 0 || $fe_offset_e5dba383dc445ceda9ff741610432cb5_3 + $fe_max_e5dba383dc445ceda9ff741610432cb5_3 > $fe_n_items_e5dba383dc445ceda9ff741610432cb5_3 )
  67. {
  68. if ( $fe_max_e5dba383dc445ceda9ff741610432cb5_3 < 0 )
  69. eZDebug::writeWarning("Invalid 'max' parameter specified: $fe_max_e5dba383dc445ceda9ff741610432cb5_3");
  70. $fe_max_e5dba383dc445ceda9ff741610432cb5_3 = $fe_n_items_e5dba383dc445ceda9ff741610432cb5_3 - $fe_offset_e5dba383dc445ceda9ff741610432cb5_3;
  71. }
  72. if ( $fe_reverse_e5dba383dc445ceda9ff741610432cb5_3 )
  73. {
  74. $fe_first_val_e5dba383dc445ceda9ff741610432cb5_3 = $fe_n_items_e5dba383dc445ceda9ff741610432cb5_3 - 1 - $fe_offset_e5dba383dc445ceda9ff741610432cb5_3;
  75. $fe_last_val_e5dba383dc445ceda9ff741610432cb5_3 = 0;
  76. }
  77. else
  78. {
  79. $fe_first_val_e5dba383dc445ceda9ff741610432cb5_3 = $fe_offset_e5dba383dc445ceda9ff741610432cb5_3;
  80. $fe_last_val_e5dba383dc445ceda9ff741610432cb5_3 = $fe_n_items_e5dba383dc445ceda9ff741610432cb5_3 - 1;
  81. }
  82. // foreach
  83. for ( $fe_i_e5dba383dc445ceda9ff741610432cb5_3 = $fe_first_val_e5dba383dc445ceda9ff741610432cb5_3; $fe_n_items_processed_e5dba383dc445ceda9ff741610432cb5_3 < $fe_max_e5dba383dc445ceda9ff741610432cb5_3 && ( $fe_reverse_e5dba383dc445ceda9ff741610432cb5_3 ? $fe_i_e5dba383dc445ceda9ff741610432cb5_3 >= $fe_last_val_e5dba383dc445ceda9ff741610432cb5_3 : $fe_i_e5dba383dc445ceda9ff741610432cb5_3 <= $fe_last_val_e5dba383dc445ceda9ff741610432cb5_3 ); $fe_reverse_e5dba383dc445ceda9ff741610432cb5_3 ? $fe_i_e5dba383dc445ceda9ff741610432cb5_3-- : $fe_i_e5dba383dc445ceda9ff741610432cb5_3++ )
  84. {
  85. $fe_key_e5dba383dc445ceda9ff741610432cb5_3 = $fe_array_keys_e5dba383dc445ceda9ff741610432cb5_3[$fe_i_e5dba383dc445ceda9ff741610432cb5_3];
  86. $fe_val_e5dba383dc445ceda9ff741610432cb5_3 = $fe_array_e5dba383dc445ceda9ff741610432cb5_3[$fe_key_e5dba383dc445ceda9ff741610432cb5_3];
  87. $vars[$rootNamespace]['tab'] = $fe_val_e5dba383dc445ceda9ff741610432cb5_3;
  88. $text .= ' ';
  89. // def $tab_title
  90. unset( $var );
  91. unset( $var1 );
  92. if (! isset( $var1 ) ) $var1 = NULL;
  93. while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
  94. $var1 = $var1->templateValue();
  95. $var1Data = array( 'value' => $var1 );
  96. $tpl->processOperator( 'ezini',
  97. array (
  98. 0 =>
  99. array (
  100. 0 =>
  101. array (
  102. 0 => 6,
  103. 1 =>
  104. array (
  105. 0 => 'concat',
  106. 1 =>
  107. array (
  108. 0 =>
  109. array (
  110. 0 => 1,
  111. 1 => 'AdditionalTab_',
  112. 2 => false,
  113. ),
  114. ),
  115. 2 =>
  116. array (
  117. 0 =>
  118. array (
  119. 0 => 4,
  120. 1 =>
  121. array (
  122. 0 => '',
  123. 1 => 2,
  124. 2 => 'tab',
  125. ),
  126. 2 => false,
  127. ),
  128. ),
  129. ),
  130. 2 => false,
  131. ),
  132. ),
  133. 1 =>
  134. array (
  135. 0 =>
  136. array (
  137. 0 => 1,
  138. 1 => 'Title',
  139. 2 => false,
  140. ),
  141. ),
  142. 2 =>
  143. array (
  144. 0 =>
  145. array (
  146. 0 => 1,
  147. 1 => 'admininterface.ini',
  148. 2 => false,
  149. ),
  150. ),
  151. ),
  152. $rootNamespace, $currentNamespace, $var1Data, false, false );
  153. $var1 = $var1Data['value'];
  154. unset( $var1Data );
  155. if (! isset( $var1 ) ) $var1 = NULL;
  156. while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
  157. $var1 = $var1->templateValue();
  158. $var = htmlspecialchars( $var1 );
  159. unset( $var1 );
  160. if (! isset( $var ) ) $var = NULL;
  161. while ( is_object( $var ) and method_exists( $var, 'templateValue' ) )
  162. $var = $var->templateValue();
  163. if ( $tpl->hasVariable( 'tab_title', $rootNamespace ) )
  164. {
  165. $tpl->warning( 'def', "Variable 'tab_title' is already defined.", array (
  166. 0 =>
  167. array (
  168. 0 => 3,
  169. 1 => 4,
  170. 2 => 67,
  171. ),
  172. 1 =>
  173. array (
  174. 0 => 6,
  175. 1 => 24,
  176. 2 => 416,
  177. ),
  178. 2 => 'design/admin2/templates/window_controls_extratabs.tpl',
  179. ) );
  180. $tpl->setVariable( 'tab_title', $var, $rootNamespace );
  181. }
  182. else
  183. {
  184. $tpl->setLocalVariable( 'tab_title', $var, $rootNamespace );
  185. }
  186. // def $tab_description
  187. unset( $var );
  188. unset( $var1 );
  189. if (! isset( $var1 ) ) $var1 = NULL;
  190. while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
  191. $var1 = $var1->templateValue();
  192. $var1Data = array( 'value' => $var1 );
  193. $tpl->processOperator( 'ezini',
  194. array (
  195. 0 =>
  196. array (
  197. 0 =>
  198. array (
  199. 0 => 6,
  200. 1 =>
  201. array (
  202. 0 => 'concat',
  203. 1 =>
  204. array (
  205. 0 =>
  206. array (
  207. 0 => 1,
  208. 1 => 'AdditionalTab_',
  209. 2 => false,
  210. ),
  211. ),
  212. 2 =>
  213. array (
  214. 0 =>
  215. array (
  216. 0 => 4,
  217. 1 =>
  218. array (
  219. 0 => '',
  220. 1 => 2,
  221. 2 => 'tab',
  222. ),
  223. 2 => false,
  224. ),
  225. ),
  226. ),
  227. 2 => false,
  228. ),
  229. ),
  230. 1 =>
  231. array (
  232. 0 =>
  233. array (
  234. 0 => 1,
  235. 1 => 'Description',
  236. 2 => false,
  237. ),
  238. ),
  239. 2 =>
  240. array (
  241. 0 =>
  242. array (
  243. 0 => 1,
  244. 1 => 'admininterface.ini',
  245. 2 => false,
  246. ),
  247. ),
  248. ),
  249. $rootNamespace, $currentNamespace, $var1Data, false, false );
  250. $var1 = $var1Data['value'];
  251. unset( $var1Data );
  252. if (! isset( $var1 ) ) $var1 = NULL;
  253. while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
  254. $var1 = $var1->templateValue();
  255. $var = htmlspecialchars( $var1 );
  256. unset( $var1 );
  257. if (! isset( $var ) ) $var = NULL;
  258. while ( is_object( $var ) and method_exists( $var, 'templateValue' ) )
  259. $var = $var->templateValue();
  260. if ( $tpl->hasVariable( 'tab_description', $rootNamespace ) )
  261. {
  262. $tpl->warning( 'def', "Variable 'tab_description' is already defined.", array (
  263. 0 =>
  264. array (
  265. 0 => 3,
  266. 1 => 4,
  267. 2 => 67,
  268. ),
  269. 1 =>
  270. array (
  271. 0 => 6,
  272. 1 => 24,
  273. 2 => 416,
  274. ),
  275. 2 => 'design/admin2/templates/window_controls_extratabs.tpl',
  276. ) );
  277. $tpl->setVariable( 'tab_description', $var, $rootNamespace );
  278. }
  279. else
  280. {
  281. $tpl->setLocalVariable( 'tab_description', $var, $rootNamespace );
  282. }
  283. // def $tab_header_template
  284. unset( $var );
  285. if (! isset( $var ) ) $var = NULL;
  286. while ( is_object( $var ) and method_exists( $var, 'templateValue' ) )
  287. $var = $var->templateValue();
  288. $varData = array( 'value' => $var );
  289. $tpl->processOperator( 'ezini',
  290. array (
  291. 0 =>
  292. array (
  293. 0 =>
  294. array (
  295. 0 => 6,
  296. 1 =>
  297. array (
  298. 0 => 'concat',
  299. 1 =>
  300. array (
  301. 0 =>
  302. array (
  303. 0 => 1,
  304. 1 => 'AdditionalTab_',
  305. 2 => false,
  306. ),
  307. ),
  308. 2 =>
  309. array (
  310. 0 =>
  311. array (
  312. 0 => 4,
  313. 1 =>
  314. array (
  315. 0 => '',
  316. 1 => 2,
  317. 2 => 'tab',
  318. ),
  319. 2 => false,
  320. ),
  321. ),
  322. ),
  323. 2 => false,
  324. ),
  325. ),
  326. 1 =>
  327. array (
  328. 0 =>
  329. array (
  330. 0 => 1,
  331. 1 => 'HeaderTemplate',
  332. 2 => false,
  333. ),
  334. ),
  335. 2 =>
  336. array (
  337. 0 =>
  338. array (
  339. 0 => 1,
  340. 1 => 'admininterface.ini',
  341. 2 => false,
  342. ),
  343. ),
  344. ),
  345. $rootNamespace, $currentNamespace, $varData, false, false );
  346. $var = $varData['value'];
  347. unset( $varData );
  348. if (! isset( $var ) ) $var = NULL;
  349. while ( is_object( $var ) and method_exists( $var, 'templateValue' ) )
  350. $var = $var->templateValue();
  351. if ( $tpl->hasVariable( 'tab_header_template', $rootNamespace ) )
  352. {
  353. $tpl->warning( 'def', "Variable 'tab_header_template' is already defined.", array (
  354. 0 =>
  355. array (
  356. 0 => 3,
  357. 1 => 4,
  358. 2 => 67,
  359. ),
  360. 1 =>
  361. array (
  362. 0 => 6,
  363. 1 => 24,
  364. 2 => 416,
  365. ),
  366. 2 => 'design/admin2/templates/window_controls_extratabs.tpl',
  367. ) );
  368. $tpl->setVariable( 'tab_header_template', $var, $rootNamespace );
  369. }
  370. else
  371. {
  372. $tpl->setLocalVariable( 'tab_header_template', $var, $rootNamespace );
  373. }
  374. // def $last
  375. if ( $tpl->hasVariable( 'last', $rootNamespace ) )
  376. {
  377. $tpl->warning( 'def', "Variable 'last' is already defined.", array (
  378. 0 =>
  379. array (
  380. 0 => 3,
  381. 1 => 4,
  382. 2 => 67,
  383. ),
  384. 1 =>
  385. array (
  386. 0 => 6,
  387. 1 => 24,
  388. 2 => 416,
  389. ),
  390. 2 => 'design/admin2/templates/window_controls_extratabs.tpl',
  391. ) );
  392. $tpl->setVariable( 'last', false, $rootNamespace );
  393. }
  394. else
  395. {
  396. $tpl->setLocalVariable( 'last', false, $rootNamespace );
  397. }
  398. $text .= ' ';
  399. unset( $var );
  400. unset( $var1 );
  401. unset( $var1 );
  402. $var1 = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'counter', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['counter'] : null;
  403. if (! isset( $var1 ) ) $var1 = NULL;
  404. while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
  405. $var1 = $var1->templateValue();
  406. while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
  407. $var1 = $var1->templateValue();
  408. $var = $var1 + 1;
  409. unset( $var1 );
  410. if (! isset( $var ) ) $var = NULL;
  411. while ( is_object( $var ) and method_exists( $var, 'templateValue' ) )
  412. $var = $var->templateValue();
  413. if ( array_key_exists( $currentNamespace, $vars ) && array_key_exists( 'counter', $vars[$currentNamespace] ) )
  414. {
  415. $vars[$currentNamespace]['counter'] = $var;
  416. unset( $var );
  417. }
  418. $text .= '
  419. ';
  420. // if begins
  421. unset( $if_cond );
  422. unset( $if_cond1 );
  423. unset( $if_cond1 );
  424. $if_cond1 = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'counter', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['counter'] : null;
  425. if (! isset( $if_cond1 ) ) $if_cond1 = NULL;
  426. while ( is_object( $if_cond1 ) and method_exists( $if_cond1, 'templateValue' ) )
  427. $if_cond1 = $if_cond1->templateValue();
  428. unset( $if_cond2 );
  429. unset( $if_cond2 );
  430. $if_cond2 = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'additional_tabs_count', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['additional_tabs_count'] : null;
  431. if (! isset( $if_cond2 ) ) $if_cond2 = NULL;
  432. while ( is_object( $if_cond2 ) and method_exists( $if_cond2, 'templateValue' ) )
  433. $if_cond2 = $if_cond2->templateValue();
  434. $if_cond = ( ( $if_cond1 ) == ( $if_cond2 ) );
  435. unset( $if_cond1, $if_cond2 );
  436. if (! isset( $if_cond ) ) $if_cond = NULL;
  437. while ( is_object( $if_cond ) and method_exists( $if_cond, 'templateValue' ) )
  438. $if_cond = $if_cond->templateValue();
  439. if ( $if_cond )
  440. {
  441. $text .= ' ';
  442. if ( array_key_exists( $currentNamespace, $vars ) && array_key_exists( 'last', $vars[$currentNamespace] ) )
  443. {
  444. $vars[$currentNamespace]['last'] = true;
  445. }
  446. $text .= ' ';
  447. }
  448. unset( $if_cond );
  449. // if ends
  450. $text .= '
  451. ';
  452. // if begins
  453. unset( $if_cond );
  454. unset( $if_cond1 );
  455. unset( $if_cond1 );
  456. $if_cond1 = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'tab_header_template', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['tab_header_template'] : null;
  457. if (! isset( $if_cond1 ) ) $if_cond1 = NULL;
  458. while ( is_object( $if_cond1 ) and method_exists( $if_cond1, 'templateValue' ) )
  459. $if_cond1 = $if_cond1->templateValue();
  460. $if_cond = ( ( $if_cond1 ) == ( '' ) );
  461. unset( $if_cond1 );
  462. if (! isset( $if_cond ) ) $if_cond = NULL;
  463. while ( is_object( $if_cond ) and method_exists( $if_cond, 'templateValue' ) )
  464. $if_cond = $if_cond->templateValue();
  465. if ( $if_cond )
  466. {
  467. $text .= ' <li id="node-tab-';
  468. unset( $var );
  469. unset( $var );
  470. $var = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'tab', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['tab'] : null;
  471. if (! isset( $var ) ) $var = NULL;
  472. while ( is_object( $var ) and method_exists( $var, 'templateValue' ) )
  473. $var = $var->templateValue();
  474. $text .= ( is_object( $var ) ? compiledFetchText( $tpl, $rootNamespace, $currentNamespace, false, $var ) : $var );
  475. unset( $var );
  476. $text .= '" class="';
  477. // if begins
  478. unset( $if_cond );
  479. unset( $if_cond );
  480. $if_cond = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'last', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['last'] : null;
  481. if (! isset( $if_cond ) ) $if_cond = NULL;
  482. while ( is_object( $if_cond ) and method_exists( $if_cond, 'templateValue' ) )
  483. $if_cond = $if_cond->templateValue();
  484. if ( $if_cond )
  485. {
  486. $text .= 'last';
  487. }
  488. else
  489. {
  490. $text .= 'middle';
  491. }
  492. unset( $if_cond );
  493. // if ends
  494. // if begins
  495. unset( $if_cond );
  496. unset( $if_cond1 );
  497. unset( $if_cond1 );
  498. $if_cond1 = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'node_tab_index', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['node_tab_index'] : null;
  499. if (! isset( $if_cond1 ) ) $if_cond1 = NULL;
  500. while ( is_object( $if_cond1 ) and method_exists( $if_cond1, 'templateValue' ) )
  501. $if_cond1 = $if_cond1->templateValue();
  502. unset( $if_cond2 );
  503. unset( $if_cond2 );
  504. $if_cond2 = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'tab', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['tab'] : null;
  505. if (! isset( $if_cond2 ) ) $if_cond2 = NULL;
  506. while ( is_object( $if_cond2 ) and method_exists( $if_cond2, 'templateValue' ) )
  507. $if_cond2 = $if_cond2->templateValue();
  508. $if_cond = ( ( $if_cond1 ) == ( $if_cond2 ) );
  509. unset( $if_cond1, $if_cond2 );
  510. if (! isset( $if_cond ) ) $if_cond = NULL;
  511. while ( is_object( $if_cond ) and method_exists( $if_cond, 'templateValue' ) )
  512. $if_cond = $if_cond->templateValue();
  513. if ( $if_cond )
  514. {
  515. $text .= ' selected';
  516. }
  517. unset( $if_cond );
  518. // if ends
  519. $text .= '">
  520. ';
  521. // if begins
  522. unset( $if_cond );
  523. unset( $if_cond );
  524. $if_cond = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'tabs_disabled', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['tabs_disabled'] : null;
  525. if (! isset( $if_cond ) ) $if_cond = NULL;
  526. while ( is_object( $if_cond ) and method_exists( $if_cond, 'templateValue' ) )
  527. $if_cond = $if_cond->templateValue();
  528. if ( $if_cond )
  529. {
  530. $text .= ' <span class="disabled" title="タブは無効になっています、タブの左側にある切り替えボタンで有効にできます。">';
  531. unset( $var );
  532. unset( $var );
  533. $var = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'tab_title', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['tab_title'] : null;
  534. if (! isset( $var ) ) $var = NULL;
  535. while ( is_object( $var ) and method_exists( $var, 'templateValue' ) )
  536. $var = $var->templateValue();
  537. $text .= ( is_object( $var ) ? compiledFetchText( $tpl, $rootNamespace, $currentNamespace, false, $var ) : $var );
  538. unset( $var );
  539. $text .= '</span>
  540. ';
  541. }
  542. else
  543. {
  544. $text .= ' <a href=';
  545. unset( $var );
  546. unset( $var1 );
  547. unset( $var2 );
  548. unset( $var2 );
  549. $var2 = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'node_url_alias', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['node_url_alias'] : null;
  550. if (! isset( $var2 ) ) $var2 = NULL;
  551. while ( is_object( $var2 ) and method_exists( $var2, 'templateValue' ) )
  552. $var2 = $var2->templateValue();
  553. while ( is_object( $var2 ) and method_exists( $var2, 'templateValue' ) )
  554. $var2 = $var2->templateValue();
  555. unset( $var4 );
  556. unset( $var4 );
  557. $var4 = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'tab', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['tab'] : null;
  558. if (! isset( $var4 ) ) $var4 = NULL;
  559. while ( is_object( $var4 ) and method_exists( $var4, 'templateValue' ) )
  560. $var4 = $var4->templateValue();
  561. while ( is_object( $var4 ) and method_exists( $var4, 'templateValue' ) )
  562. $var4 = $var4->templateValue();
  563. $var1 = ( $var2 . '/(tab)/' . $var4 );
  564. unset( $var2, $var4 );
  565. if (! isset( $var1 ) ) $var1 = NULL;
  566. while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
  567. $var1 = $var1->templateValue();
  568. eZURI::transformURI( $var1, false, eZURI::getTransformURIMode() );
  569. $var1 = '"' . $var1 . '"';
  570. $var = $var1;
  571. unset( $var1 );
  572. if (! isset( $var ) ) $var = NULL;
  573. while ( is_object( $var ) and method_exists( $var, 'templateValue' ) )
  574. $var = $var->templateValue();
  575. $text .= $var;
  576. unset( $var );
  577. $text .= ' title="';
  578. unset( $var );
  579. unset( $var );
  580. $var = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'tab_description', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['tab_description'] : null;
  581. if (! isset( $var ) ) $var = NULL;
  582. while ( is_object( $var ) and method_exists( $var, 'templateValue' ) )
  583. $var = $var->templateValue();
  584. $text .= ( is_object( $var ) ? compiledFetchText( $tpl, $rootNamespace, $currentNamespace, false, $var ) : $var );
  585. unset( $var );
  586. $text .= '">';
  587. unset( $var );
  588. unset( $var );
  589. $var = ( array_key_exists( $rootNamespace, $vars ) and array_key_exists( 'tab_title', $vars[$rootNamespace] ) ) ? $vars[$rootNamespace]['tab_title'] : null;
  590. if (! isset( $var ) ) $var = NULL;
  591. while ( is_object( $var ) and method_exists( $var, 'templateValue' ) )
  592. $var = $var->templateValue();
  593. $text .= ( is_object( $var ) ? compiledFetchText( $tpl, $rootNamespace, $currentNamespace, false, $var ) : $var );
  594. unset( $var );
  595. $text .= '</a>
  596. ';
  597. }
  598. unset( $if_cond );
  599. // if ends
  600. $text .= ' </li>
  601. ';
  602. }
  603. else
  604. {
  605. $text .= ' ';
  606. $textElements = array();
  607. $tpl->processFunction( 'include', $textElements,
  608. false,
  609. array (
  610. 'uri' =>
  611. array (
  612. 0 =>
  613. array (
  614. 0 => 6,
  615. 1 =>
  616. array (
  617. 0 => 'concat',
  618. 1 =>
  619. array (
  620. 0 =>
  621. array (
  622. 0 => 1,
  623. 1 => 'design:tabs/',
  624. 2 => false,
  625. ),
  626. ),
  627. 2 =>
  628. array (
  629. 0 =>
  630. array (
  631. 0 => 4,
  632. 1 =>
  633. array (
  634. 0 => '',
  635. 1 => 2,
  636. 2 => 'tab_header_template',
  637. ),
  638. 2 => false,
  639. ),
  640. ),
  641. ),
  642. 2 => false,
  643. ),
  644. ),
  645. 'last' =>
  646. array (
  647. 0 =>
  648. array (
  649. 0 => 4,
  650. 1 =>
  651. array (
  652. 0 => '',
  653. 1 => 2,
  654. 2 => 'last',
  655. ),
  656. 2 => false,
  657. ),
  658. ),
  659. ),
  660. array (
  661. 0 =>
  662. array (
  663. 0 => 22,
  664. 1 => 8,
  665. 2 => 1069,
  666. ),
  667. 1 =>
  668. array (
  669. 0 => 22,
  670. 1 => 77,
  671. 2 => 1138,
  672. ),
  673. 2 => 'design/admin2/templates/window_controls_extratabs.tpl',
  674. ),
  675. $rootNamespace, $currentNamespace );
  676. $text .= implode( '', $textElements );
  677. $text .= ' ';
  678. }
  679. unset( $if_cond );
  680. // if ends
  681. $text .= '
  682. ';
  683. // undef $tab_title
  684. $tpl->unsetLocalVariable( 'tab_title', $rootNamespace );
  685. // undef $tab_description
  686. $tpl->unsetLocalVariable( 'tab_description', $rootNamespace );
  687. // undef $tab_header_template
  688. $tpl->unsetLocalVariable( 'tab_header_template', $rootNamespace );
  689. // undef $last
  690. $tpl->unsetLocalVariable( 'last', $rootNamespace );
  691. $text .= ' ';
  692. $fe_n_items_processed_e5dba383dc445ceda9ff741610432cb5_3++;
  693. } // foreach
  694. $skipDelimiter = false;
  695. if ( count( $fe_variable_stack_e5dba383dc445ceda9ff741610432cb5_3 ) ) extract( array_pop( $fe_variable_stack_e5dba383dc445ceda9ff741610432cb5_3 ) );
  696. else
  697. {
  698. unset( $fe_array_e5dba383dc445ceda9ff741610432cb5_3 );
  699. unset( $fe_array_keys_e5dba383dc445ceda9ff741610432cb5_3 );
  700. unset( $fe_n_items_e5dba383dc445ceda9ff741610432cb5_3 );
  701. unset( $fe_n_items_processed_e5dba383dc445ceda9ff741610432cb5_3 );
  702. unset( $fe_i_e5dba383dc445ceda9ff741610432cb5_3 );
  703. unset( $fe_key_e5dba383dc445ceda9ff741610432cb5_3 );
  704. unset( $fe_val_e5dba383dc445ceda9ff741610432cb5_3 );
  705. unset( $fe_offset_e5dba383dc445ceda9ff741610432cb5_3 );
  706. unset( $fe_max_e5dba383dc445ceda9ff741610432cb5_3 );
  707. unset( $fe_reverse_e5dba383dc445ceda9ff741610432cb5_3 );
  708. unset( $fe_first_val_e5dba383dc445ceda9ff741610432cb5_3 );
  709. unset( $fe_last_val_e5dba383dc445ceda9ff741610432cb5_3 );
  710. unset( $fe_variable_stack_e5dba383dc445ceda9ff741610432cb5_3 );
  711. }
  712. // foreach ends
  713. $text .= ' ';
  714. // undef $counter
  715. $tpl->unsetLocalVariable( 'counter', $rootNamespace );
  716. $setArray = $oldSetArray_a59bc9ec77b4b7d74080908af9029d51;
  717. $tpl->Level--;
  718. ?>