Gantry 4 Framework - Version 1.20

Version Description

  • Added a fix to prevent frozen widgets and widgets appearing in wrong overrides
  • Added a script that should automatically fix all existing frozen widgets and overrides
  • Added support for WordPress Multi Site installations
  • Added check for instance settings of WordPress widget classes
  • The $ signs in page titles should be now displayed properly
  • Added require_once parameter to the locate_type function
  • Updated the SmartLoad gizmo JS file to fix XPath Ignores
  • Fixed the situation when the MooTools would only get loaded when the Build Spans gizmo is enabled
  • Fixed the situation when front-page.php file wouldn't get loaded from the proper location
  • Modified the MU Register gizmo to add very basic width settings to the activate and signup pages
Download this release

Release Info

Developer gantry
Plugin Icon 128x128 Gantry 4 Framework
Version 1.20
Comparing to
See all releases

Code changes from version 1.19 to 1.20

Files changed (254) hide show
  1. CHANGELOG.php +16 -1
  2. CREDITS.php +1 -1
  3. admin/ajax-models/cache.php +1 -1
  4. admin/ajax-models/overrides.php +1 -1
  5. admin/ajax-models/presets-saver.php +1 -1
  6. admin/ajax-models/widgets.php +1 -1
  7. admin/assignment_functions.php +1 -1
  8. admin/forms/fields/alias.php +1 -1
  9. admin/forms/fields/animation.php +1 -1
  10. admin/forms/fields/categories.php +1 -1
  11. admin/forms/fields/checkbox.php +1 -1
  12. admin/forms/fields/colorchooser.php +1 -1
  13. admin/forms/fields/dateformats.php +1 -1
  14. admin/forms/fields/diagnostic.php +1 -1
  15. admin/forms/fields/file.php +1 -1
  16. admin/forms/fields/fonts.php +1 -1
  17. admin/forms/fields/gantry.php +1 -1
  18. admin/forms/fields/gradient.php +1 -1
  19. admin/forms/fields/groupedlist.php +1 -1
  20. admin/forms/fields/hidden.php +1 -1
  21. admin/forms/fields/html.php +1 -1
  22. admin/forms/fields/integer.php +1 -1
  23. admin/forms/fields/linkcategories.php +1 -1
  24. admin/forms/fields/list.php +1 -1
  25. admin/forms/fields/navmenulist.php +1 -1
  26. admin/forms/fields/overlays.php +1 -1
  27. admin/forms/fields/password.php +1 -1
  28. admin/forms/fields/positions.php +1 -1
  29. admin/forms/fields/positionslist.php +1 -1
  30. admin/forms/fields/preset.php +1 -1
  31. admin/forms/fields/radio.php +1 -1
  32. admin/forms/fields/selectbox.php +1 -1
  33. admin/forms/fields/showmax.php +1 -1
  34. admin/forms/fields/slider.php +1 -1
  35. admin/forms/fields/spacer.php +1 -1
  36. admin/forms/fields/text.php +1 -1
  37. admin/forms/fields/textarea.php +1 -1
  38. admin/forms/fields/tips.php +1 -1
  39. admin/forms/fields/toggle.php +1 -1
  40. admin/forms/fields/updater.php +2 -2
  41. admin/forms/groups/chain.php +1 -1
  42. admin/forms/groups/columns.php +1 -1
  43. admin/forms/groups/enabledgroup.php +1 -1
  44. admin/forms/groups/grouped.php +1 -1
  45. admin/forms/groups/innertabs.php +1 -1
  46. admin/forms/groups/position.php +1 -1
  47. admin/forms/groups/selectedset.php +1 -1
  48. admin/forms/groups/set.php +1 -1
  49. admin/index.php +1 -1
  50. admin/meta-links/cache.php +1 -1
  51. admin/meta-links/presets.php +1 -1
  52. admin/override.php +1 -1
  53. admin/widgets/assignments/js/assignments.js +1 -1
  54. admin/widgets/colorchooser/css/mooRainbow.css +1 -1
  55. admin/widgets/colorchooser/js/colorchooser.js +1 -1
  56. admin/widgets/colorchooser/js/mooRainbow.js +1 -1
  57. admin/widgets/fonts/js/fonts.js +1 -1
  58. admin/widgets/gantry-ie.css +1 -1
  59. admin/widgets/gantry-ie7.css +1 -1
  60. admin/widgets/gantry-opera.css +1 -1
  61. admin/widgets/gantry-widgets.css +1 -1
  62. admin/widgets/gantry-widgets.js +1 -1
  63. admin/widgets/gantry.css +1 -1
  64. admin/widgets/gantry.js +1 -1
  65. admin/widgets/gradient/js/gradient.js +1 -1
  66. admin/widgets/positions/js/positions-utils.js +1 -1
  67. admin/widgets/preset/js/preset-saver.js +1 -1
  68. admin/widgets/preset/js/preset.js +1 -1
  69. admin/widgets/radios/js/radios.js +1 -1
  70. admin/widgets/selectbox/js/selectbox.js +1 -1
  71. admin/widgets/slider/js/slider-utils.js +1 -1
  72. admin/widgets/slider/js/slider.js +1 -1
  73. admin/widgets/tips/js/tips.js +1 -1
  74. admin_functions.php +17 -4
  75. ajax-models/example.php +1 -1
  76. bugfixes.php +113 -0
  77. core/config/gantryelement.class.php +1 -1
  78. core/config/gantryform.class.php +1 -1
  79. core/config/gantryformfield.class.php +1 -1
  80. core/config/gantryformfieldhelper.class.php +1 -1
  81. core/config/gantryformgroup.class.php +1 -1
  82. core/config/gantryformhelper.class.php +1 -1
  83. core/config/gantryformitem.class.php +1 -1
  84. core/config/gantryformnaminghelper.class.php +1 -1
  85. core/config/gantryhtmlselect.class.php +1 -1
  86. core/config/gantryparameters.class.php +1 -1
  87. core/config/gantryselect.class.php +1 -1
  88. core/gantry.class.php +6 -4
  89. core/gantrybodylayout.class.php +4 -4
  90. core/gantrybrowser.class.php +1 -1
  91. core/gantrycommentstempllayout.class.php +1 -1
  92. core/gantrydiagnostic.class.php +1 -1
  93. core/gantryflatfile.class.php +1 -1
  94. core/gantrygizmo.class.php +1 -1
  95. core/gantrygzipper.class.php +1 -1
  96. core/gantryini.class.php +1 -1
  97. core/gantryjson.class.php +1 -1
  98. core/gantrylayout.class.php +5 -3
  99. core/gantryloader.class.php +1 -1
  100. core/gantryparams.class.php +1 -1
  101. core/gantryplatform.class.php +1 -1
  102. core/gantrypositions.class.php +1 -1
  103. core/gantrysingleton.class.php +1 -1
  104. core/gantrystylelink.class.php +1 -1
  105. core/gantrytemplatedetails.class.php +1 -1
  106. core/gantrywidget.class.php +1 -1
  107. core/params/gantrycookieparams.class.php +1 -1
  108. core/params/gantrymenuitemparams.class.php +1 -1
  109. core/params/gantryoverrideparams.class.php +1 -1
  110. core/params/gantrysessionparams.class.php +1 -1
  111. core/params/gantryurlparams.class.php +1 -1
  112. core/renderers/gantrycommentsrenderer.class.php +1 -1
  113. core/renderers/gantrydebugmainbodyrenderer.class.php +1 -1
  114. core/renderers/gantryfeaturerenderer.class.php +1 -1
  115. core/renderers/gantrymainbodyrenderer.class.php +1 -1
  116. core/renderers/gantryorderedmainbodyrenderer.class.php +1 -1
  117. core/renderers/gantrywidgetsrenderer.class.php +1 -1
  118. core/rules/facttypes/archive.class.php +1 -1
  119. core/rules/facttypes/menu.class.php +1 -1
  120. core/rules/facttypes/post_type.class.php +1 -1
  121. core/rules/facttypes/taxonomy.class.php +1 -1
  122. core/rules/facttypes/templatepage.class.php +1 -1
  123. core/rules/gantryoverridefact.class.php +1 -1
  124. core/rules/gantryoverrides.class.php +1 -1
  125. core/rules/gantryoverridesengine.class.php +1 -1
  126. core/rules/gantrypagecallfact.class.php +1 -1
  127. core/utilities/cache/cache.class.php +3 -3
  128. core/utilities/cache/cacheDriver.interface.php +1 -1
  129. core/utilities/cache/fileCacheDriver.class.php +1 -1
  130. core/utilities/cache/wpTransientCacheDriver.class.php +1 -1
  131. core/utilities/gantryarrayhelper.class.php +1 -1
  132. core/utilities/gantrycache.class.php +1 -1
  133. core/utilities/gantrydate.class.php +1 -1
  134. core/utilities/gantryfilterinput.class.php +1 -1
  135. core/utilities/gantryregistry.class.php +1 -1
  136. core/utilities/gantrysimplexmlelement.class.php +1 -1
  137. core/utilities/gantrytemplateinfo.class.php +1 -1
  138. core/utilities/gantryurl.class.php +1 -1
  139. core/utilities/gantryxml.class.php +1 -1
  140. core/utilities/registry/format/ini.php +1 -1
  141. core/utilities/registry/format/json.php +1 -1
  142. core/utilities/registry/format/php.php +1 -1
  143. core/utilities/registry/format/xml.php +1 -1
  144. core/utilities/registry/gantryregistryformat.class.php +1 -1
  145. css/gantry-ie6.css +1 -1
  146. css/gantry.css +1 -1
  147. css/gantrydivider.css +1 -1
  148. css/grid-12.css +1 -1
  149. css/grid-16.css +1 -1
  150. css/iphone-gantry.css +1 -1
  151. css/wordpress-ie6.css +1 -1
  152. css/wordpress-ie7.css +1 -1
  153. css/wordpress.css +1 -1
  154. functions.php +5 -2
  155. gantry.config.php +1 -1
  156. gantry.php +13 -4
  157. gizmos/analytics.php +1 -1
  158. gizmos/autoparagraphs.php +1 -1
  159. gizmos/belatedpng.php +1 -1
  160. gizmos/childcss.php +1 -1
  161. gizmos/commentreply.php +1 -1
  162. gizmos/feedlinks.php +1 -1
  163. gizmos/ie6.php +1 -1
  164. gizmos/ie6warn.php +1 -1
  165. gizmos/iphonegradients.php +1 -1
  166. gizmos/iphoneimages.php +1 -1
  167. gizmos/jstools.php +3 -2
  168. gizmos/loadposition.php +1 -1
  169. gizmos/muregisterstyle.php +13 -6
  170. gizmos/pagesuffix.php +1 -1
  171. gizmos/rokstyle.php +1 -1
  172. gizmos/rtl.php +1 -1
  173. gizmos/smartload.php +1 -1
  174. gizmos/styledeclaration.php +1 -1
  175. gizmos/texturize.php +1 -1
  176. gizmos/thumbnails.php +1 -1
  177. gizmos/title.php +1 -1
  178. gizmos/webfonts.php +1 -1
  179. gizmos/widgetshortcodes.php +1 -1
  180. html/layouts/body_debugmainbody.php +1 -1
  181. html/layouts/body_iphonemainbody.php +1 -1
  182. html/layouts/body_mainbody.php +1 -1
  183. html/layouts/chrome_basic.php +1 -1
  184. html/layouts/chrome_standard.php +1 -1
  185. html/layouts/comment_basic.php +1 -1
  186. html/layouts/commentstempl_basic.php +1 -1
  187. html/layouts/doc_body.php +1 -1
  188. html/layouts/doc_tag.php +1 -1
  189. html/layouts/orderedbody_mainbody.php +1 -1
  190. html/layouts/widget_basic.php +1 -1
  191. html/layouts/widget_sidebar.php +1 -1
  192. html/layouts/widget_standard.php +1 -1
  193. js/fusion.js +1 -1
  194. js/gantry-buildspans.js +1 -1
  195. js/gantry-ie6menu.js +1 -1
  196. js/gantry-ie6warn.js +1 -1
  197. js/gantry-inputs.js +1 -1
  198. js/gantry-smartload.js +2 -2
  199. js/gantry-totop.js +1 -1
  200. js/gantrydivider.js +1 -1
  201. js/imenu.js +1 -1
  202. js/sfhover.js +1 -1
  203. readme.txt +22 -5
  204. tmpl/index-iphone.php +1 -1
  205. widgets/archives.php +1 -1
  206. widgets/breadcrumbs.php +1 -1
  207. widgets/categories.php +1 -1
  208. widgets/copyright.php +1 -1
  209. widgets/date.php +1 -1
  210. widgets/divider.php +1 -1
  211. widgets/fontsizer.php +1 -1
  212. widgets/gantrymenu/admin/RokMenuWalkerNavMenuEdit.php +1 -1
  213. widgets/gantrymenu/admin/fields/themelist.php +1 -1
  214. widgets/gantrymenu/css/widget_admin.css +1 -1
  215. widgets/gantrymenu/libs/GantryMenu.php +45 -6
  216. widgets/gantrymenu/libs/common/RokBrowserCheck.php +1 -1
  217. widgets/gantrymenu/libs/common/includes.php +1 -1
  218. widgets/gantrymenu/libs/includes.php +1 -1
  219. widgets/gantrymenu/libs/librokmenu/AbstractRokMenuFormatter.php +133 -78
  220. widgets/gantrymenu/libs/librokmenu/AbstractRokMenuLayout.php +90 -82
  221. widgets/gantrymenu/libs/librokmenu/AbstractRokMenuProvider.php +129 -30
  222. widgets/gantrymenu/libs/librokmenu/AbstractRokMenuTheme.php +7 -1
  223. widgets/gantrymenu/libs/librokmenu/RokMenu.php +61 -60
  224. widgets/gantrymenu/libs/librokmenu/RokMenuDefaultRenderer.php +114 -0
  225. widgets/gantrymenu/libs/librokmenu/RokMenuFormatter.php +33 -3
  226. widgets/gantrymenu/libs/librokmenu/RokMenuGreaterThenLevelFilter.php +23 -0
  227. widgets/gantrymenu/libs/librokmenu/RokMenuHeader.php +13 -0
  228. widgets/gantrymenu/libs/librokmenu/RokMenuIdFilter.php +23 -0
  229. widgets/gantrymenu/libs/librokmenu/RokMenuIterator.php +54 -0
  230. widgets/gantrymenu/libs/librokmenu/RokMenuLayout.php +38 -4
  231. widgets/gantrymenu/libs/librokmenu/RokMenuNode.php +125 -85
  232. widgets/gantrymenu/libs/librokmenu/RokMenuNodeBase.php +75 -109
  233. widgets/gantrymenu/libs/librokmenu/RokMenuNodeTree.php +143 -16
  234. widgets/gantrymenu/libs/librokmenu/RokMenuNotOnActiveTreeFilter.php +38 -0
  235. widgets/gantrymenu/libs/librokmenu/RokMenuProvider.php +19 -4
  236. widgets/gantrymenu/libs/librokmenu/RokMenuRenderer.php +59 -0
  237. widgets/gantrymenu/libs/librokmenu/RokMenuTheme.php +15 -1
  238. widgets/gantrymenu/libs/librokmenu/includes.php +28 -16
  239. widgets/gantrymenu/libs/librokmenu/index.html +1 -0
  240. widgets/gantrymenu/libs/providers/GantryMenuProviderWordpress.php +2 -2
  241. widgets/gantrymenu/libs/renderers/GantryMenuRendererWordpress.php +25 -0
  242. widgets/gantrymenu/libs/renderers/index.html +0 -0
  243. widgets/iphonemenu.php +1 -1
  244. widgets/links.php +1 -1
  245. widgets/logo.php +1 -1
  246. widgets/menu.php +1 -1
  247. widgets/meta.php +1 -1
  248. widgets/overridesmap.php +1 -1
  249. widgets/pages.php +1 -1
  250. widgets/recentcomments.php +1 -1
  251. widgets/recentposts.php +1 -1
  252. widgets/resetsettings.php +1 -1
  253. widgets/totop.php +1 -1
  254. widgets/viewswitcher.php +1 -1
CHANGELOG.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Gantry For Wordpress
4
  *
5
- * @version 1.19 September 20, 2011
6
  * @author RocketTheme http://www.rockettheme.com
7
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
8
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -27,6 +27,21 @@ Legend:
27
  - -> Removed
28
  ! -> Note
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  ------- 1.18 Release [] ------
31
  # Fixed oddity in PHP 5.2.9 where some settings in the backend wouldn't load
32
  + Added support for additional content type dirs
2
  /**
3
  * Gantry For Wordpress
4
  *
5
+ * @version 1.20 October 16, 2011
6
  * @author RocketTheme http://www.rockettheme.com
7
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
8
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
27
  - -> Removed
28
  ! -> Note
29
 
30
+ ------- 1.20 Release [] ------
31
+ # Added a fix to prevent frozen widgets and widgets appearing in wrong overrides
32
+ + Added a script that should automatically fix all existing frozen widgets and overrides
33
+ + Added support for WordPress Multi Site installations
34
+ # Added check for instance settings of WordPress widget classes
35
+ # The $ signs in page titles should be now displayed properly
36
+ ^ Added require_once parameter to the locate_type function
37
+ # Updated the SmartLoad gizmo JS file to fix XPath Ignores
38
+ # Fixed the situation when the MooTools would only get loaded when the Build Spans gizmo is enabled
39
+ # Fixed the situation when front-page.php file wouldn't get loaded from the proper location
40
+ ^ Modified the MU Register gizmo to add very basic width settings to the activate and signup pages
41
+
42
+ ------- 1.19 Release [] ------
43
+ ! Adjusted for WordPress plugin directory
44
+
45
  ------- 1.18 Release [] ------
46
  # Fixed oddity in PHP 5.2.9 where some settings in the backend wouldn't load
47
  + Added support for additional content type dirs
CREDITS.php CHANGED
@@ -3,7 +3,7 @@
3
  * CREDITS
4
  *
5
  * @package gantry
6
- * @version 1.19 September 20, 2011
7
  * @author RocketTheme http://www.rockettheme.com
8
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
9
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
3
  * CREDITS
4
  *
5
  * @package gantry
6
+ * @version 1.20 October 16, 2011
7
  * @author RocketTheme http://www.rockettheme.com
8
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
9
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/ajax-models/cache.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/ajax-models/overrides.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/ajax-models/presets-saver.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/ajax-models/widgets.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/assignment_functions.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/alias.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/animation.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/categories.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/checkbox.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/colorchooser.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/dateformats.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/diagnostic.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/file.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/fonts.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/gantry.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/gradient.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/groupedlist.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/hidden.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/html.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/integer.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/linkcategories.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/list.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/navmenulist.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/overlays.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/password.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/positions.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/positionslist.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/preset.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/radio.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/selectbox.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/showmax.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/slider.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/spacer.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/text.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/textarea.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/tips.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/toggle.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/fields/updater.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -24,7 +24,7 @@ class GantryFormFieldUpdater extends GantryFormField {
24
 
25
  $currentVersion = GANTRY_VERSION;
26
 
27
- if ($currentVersion == "\1.19") $currentVersion = "[DEV]";
28
 
29
  // curl check
30
  if (!function_exists('curl_version')) {
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
24
 
25
  $currentVersion = GANTRY_VERSION;
26
 
27
+ if ($currentVersion == "\1.20") $currentVersion = "[DEV]";
28
 
29
  // curl check
30
  if (!function_exists('curl_version')) {
admin/forms/groups/chain.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/groups/columns.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/groups/enabledgroup.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/groups/grouped.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/groups/innertabs.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/groups/position.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/groups/selectedset.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/forms/groups/set.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/index.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/meta-links/cache.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/meta-links/presets.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/override.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/assignments/js/assignments.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/colorchooser/css/mooRainbow.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/colorchooser/js/colorchooser.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/colorchooser/js/mooRainbow.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/fonts/js/fonts.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/gantry-ie.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/gantry-ie7.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/gantry-opera.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/gantry-widgets.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/gantry-widgets.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/gantry.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/gantry.js CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * @package Gantry Template Framework - RocketTheme
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.rockettheme.com/legal/license.php RocketTheme Proprietary Use License
1
  /**
2
  * @package Gantry Template Framework - RocketTheme
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.rockettheme.com/legal/license.php RocketTheme Proprietary Use License
admin/widgets/gradient/js/gradient.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/positions/js/positions-utils.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/preset/js/preset-saver.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/preset/js/preset.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/radios/js/radios.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/selectbox/js/selectbox.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/slider/js/slider-utils.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/slider/js/slider.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin/widgets/tips/js/tips.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
admin_functions.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -85,8 +85,8 @@ function gantryLang() {
85
 
86
  function gantry_admin_menu() {
87
  global $gantry;
88
- add_menu_page($gantry->get('template_author', 'RocketTheme') . ' ' . $gantry->get('template_full_name') . ' Theme Settings', $gantry->get('template_full_name') . ' Theme', 'edit_themes', 'gantry-theme-settings', 'gantry_show_theme_settings', $gantry->gantryUrl . '/admin/rt_fav.png');
89
- add_submenu_page('gantry-theme-settings', $gantry->get('template_author', 'RocketTheme') . ' ' . $gantry->get('template_full_name') . ' Theme Override Settings', '', 'edit_themes', 'gantry-theme-overrides', 'gantry_show_theme_override_settings');
90
  add_action('admin_head', 'gantry_remove_menu_items');
91
  }
92
 
@@ -693,7 +693,8 @@ function gantry_widget_admin_load_override_widget_settings_filter($widget_instan
693
  * Init for render of an override widget admin page
694
  * @return void
695
  */
696
- function gantry_widgets_admin_page_init() {
 
697
  global $pagenow;
698
  if ($pagenow == "widgets.php") {
699
  add_action("admin_notices", 'gantry_widgets_admin_insert_override_header', 100);
@@ -706,6 +707,18 @@ function gantry_widgets_admin_page_init() {
706
  }
707
  }
708
 
 
 
 
 
 
 
 
 
 
 
 
 
709
  /**
710
  * Relocate the wp_widgets_init action hit to fire after we have loaded the actions for laoding sidebar_widgets and widet settings
711
  * @return void
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
85
 
86
  function gantry_admin_menu() {
87
  global $gantry;
88
+ add_menu_page($gantry->get('template_author', 'RocketTheme') . ' ' . $gantry->get('template_full_name') . ' Theme Settings', $gantry->get('template_full_name') . ' Theme', 'edit_theme_options', 'gantry-theme-settings', 'gantry_show_theme_settings', $gantry->gantryUrl . '/admin/rt_fav.png');
89
+ add_submenu_page('gantry-theme-settings', $gantry->get('template_author', 'RocketTheme') . ' ' . $gantry->get('template_full_name') . ' Theme Override Settings', '', 'edit_theme_options', 'gantry-theme-overrides', 'gantry_show_theme_override_settings');
90
  add_action('admin_head', 'gantry_remove_menu_items');
91
  }
92
 
693
  * Init for render of an override widget admin page
694
  * @return void
695
  */
696
+ function gantry_widgets_admin_page_init()
697
+ {
698
  global $pagenow;
699
  if ($pagenow == "widgets.php") {
700
  add_action("admin_notices", 'gantry_widgets_admin_insert_override_header', 100);
707
  }
708
  }
709
 
710
+ function gantry_widget_admin_clear_widget_instance_overrides()
711
+ {
712
+ global $pagenow, $wp_registered_widget_updates;
713
+ if ($pagenow == "admin-ajax.php" && isset($_REQUEST['action']) && $_REQUEST['action'] == 'save-widget' && !isset($_REQUEST['override_id'])) {
714
+ $widget_names = array_keys($wp_registered_widget_updates);
715
+ foreach ($widget_names as $widget) {
716
+ remove_filter('option_widget_' . $widget, 'gantry_setup_override_widget_instances_intercept', -1000);
717
+ }
718
+ }
719
+ }
720
+
721
+
722
  /**
723
  * Relocate the wp_widgets_init action hit to fire after we have loaded the actions for laoding sidebar_widgets and widet settings
724
  * @return void
ajax-models/example.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
bugfixes.php ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @version $Id$
4
+ * @author RocketTheme http://www.rockettheme.com
5
+ * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
+ */
8
+
9
+
10
+ if (!get_option('gantry_bugfix_WGANTRYFW_5')) {
11
+
12
+ add_action('wp', 'gantry_bugfix_WGANTRYFW_5', 1000);
13
+ add_action('wp', 'gantry_bugfix_redirect', 1001);
14
+
15
+ function gantry_bugfix_WGANTRYFW_5()
16
+ {
17
+ global $gantry;
18
+ global $wp_registered_widget_updates;
19
+
20
+ $widget_names = array_keys($wp_registered_widget_updates);
21
+ foreach ($widget_names as $widget) {
22
+ remove_filter('option_widget_' . $widget, 'gantry_setup_override_widget_instances_intercept', -1000);
23
+ }
24
+ foreach ($widget_names as $widget) {
25
+ $widget_option = 'widget_' . $widget;
26
+ $instances = get_option($widget_option);
27
+ $working_instances = $instances;
28
+ foreach ($instances as $id => $instance)
29
+ {
30
+ if (is_int($id) && $id > 10000) {
31
+ unset($working_instances[$id]);
32
+ }
33
+ }
34
+ update_option($widget_option, $working_instances);
35
+ }
36
+
37
+ $override_catalog = gantry_get_override_catalog($gantry->templateName);
38
+ if (!empty($override_catalog)) {
39
+ foreach ($override_catalog as $override_id => $override_widgets_option_name) {
40
+ $override_widgets_option_name = $gantry->templateName . '-template-options-override-widgets-' . $override_id;
41
+ $override_sidebar_name = $gantry->templateName . '-template-options-override-sidebar-' . $override_id;
42
+
43
+ // get the widgets in the override
44
+ $override_widget_settings = get_option($override_widgets_option_name);
45
+
46
+
47
+ // Clean up the non override id'd widgets
48
+ $working_overrides = $override_widget_settings;
49
+ if ($override_widget_settings !== false) {
50
+ foreach ($override_widget_settings as $override_widget_type => $override_widget_instances)
51
+ {
52
+ foreach ($override_widget_instances as $owid => $owinstance)
53
+ {
54
+ if ($owid < $override_id * 10000 || $owid > ($override_id + 1) * 10000) {
55
+ unset($working_overrides[$override_widget_type][$owid]);
56
+ }
57
+ }
58
+ }
59
+ }
60
+
61
+
62
+
63
+ $remaps = array();
64
+ // find widget_ids to renumber
65
+ $override_sidebar = get_option($override_sidebar_name);
66
+ foreach ($override_sidebar as $position => &$sbw_instances)
67
+ {
68
+ foreach ($sbw_instances as $position_id => &$widget_id)
69
+ {
70
+ $side_bar_widget_type = substr($widget_id, 0, strrpos($widget_id, '-'));
71
+ $widget_type_option_name = 'widget_'.$side_bar_widget_type;
72
+ $id_number = substr($widget_id, strrpos($widget_id, '-') + 1);
73
+ if ($id_number < $override_id * 10000 || $id_number > ($override_id + 1) * 10000) {
74
+ $keys = array_keys($working_overrides[$widget_type_option_name]);
75
+ if (count($keys) == 0) $keys[$override_id*10000+2] = $override_id*10000+2;
76
+ $new_id = max($keys)+1;
77
+ $widget_id = $side_bar_widget_type.'-'.$new_id;
78
+ $remaps[$widget_type_option_name][$id_number]=$new_id;
79
+ }
80
+ }
81
+ }
82
+ update_option($override_sidebar_name, $override_sidebar);
83
+
84
+
85
+ $cleaned_overrides = $override_widget_settings;
86
+ if ($override_widget_settings !== false) {
87
+ foreach ($override_widget_settings as $override_widget_type => $override_widget_instances)
88
+ {
89
+ foreach ($override_widget_instances as $owid => $owinstance)
90
+ {
91
+ if (is_int($owid) && $owid != 2 && ($owid < $override_id * 10000 || $owid > ($override_id + 1) * 10000)) {
92
+ if (isset($remaps[$override_widget_type][$owid]))
93
+ {
94
+ $cleaned_overrides[$override_widget_type][$remaps[$override_widget_type][$owid]] = $owinstance;
95
+ }
96
+ unset($cleaned_overrides[$override_widget_type][$owid]);
97
+ }
98
+ }
99
+ }
100
+ }
101
+ update_option($override_widgets_option_name, $cleaned_overrides);
102
+ }
103
+ }
104
+
105
+ update_option('gantry_bugfix_WGANTRYFW_5', true);
106
+ }
107
+ }
108
+
109
+ function gantry_bugfix_redirect()
110
+ {
111
+ wp_redirect(stripslashes($_SERVER['REQUEST_URI']));
112
+ die();
113
+ }
core/config/gantryelement.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/config/gantryform.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/config/gantryformfield.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/config/gantryformfieldhelper.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/config/gantryformgroup.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/config/gantryformhelper.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/config/gantryformitem.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/config/gantryformnaminghelper.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/config/gantryhtmlselect.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/config/gantryparameters.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/config/gantryselect.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantry.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -785,7 +785,7 @@ class Gantry extends GantrySingleton {
785
  $path = '/'.preg_replace('#^'.quotemeta($this->baseUrl).'#',"",$path);
786
  }
787
  $filename = strtolower(basename($path, '.css')) . rand(0,1000);
788
- wp_enqueue_style($filename, $path, array(), '1.19');
789
  $deps[]=$path;
790
  }
791
  }
@@ -798,11 +798,11 @@ class Gantry extends GantrySingleton {
798
  if ($this->baseUrl != "/"){
799
  $path = '/'.preg_replace('#^'.quotemeta($this->baseUrl).'#',"",$path);
800
  }
801
- wp_enqueue_script($path, $path, $deps, '1.19');
802
  $deps[]=$path;
803
  }
804
  foreach ($this->_full_scripts as $strSrc) {
805
- wp_enqueue_script( $strSrc, $strSrc, $deps, '1.19');
806
  $deps[]=$strSrc;
807
  }
808
 
@@ -865,6 +865,8 @@ class Gantry extends GantrySingleton {
865
  if (!isset($this->pageTitle)) {
866
  $this->pageTitle = wp_title('&raquo;', false);
867
  }
 
 
868
  $title = '<title>' . $this->pageTitle . '</title>' . chr(13);
869
  return $title;
870
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
785
  $path = '/'.preg_replace('#^'.quotemeta($this->baseUrl).'#',"",$path);
786
  }
787
  $filename = strtolower(basename($path, '.css')) . rand(0,1000);
788
+ wp_enqueue_style($filename, $path, array(), '1.20');
789
  $deps[]=$path;
790
  }
791
  }
798
  if ($this->baseUrl != "/"){
799
  $path = '/'.preg_replace('#^'.quotemeta($this->baseUrl).'#',"",$path);
800
  }
801
+ wp_enqueue_script($path, $path, $deps, '1.20');
802
  $deps[]=$path;
803
  }
804
  foreach ($this->_full_scripts as $strSrc) {
805
+ wp_enqueue_script( $strSrc, $strSrc, $deps, '1.20');
806
  $deps[]=$strSrc;
807
  }
808
 
865
  if (!isset($this->pageTitle)) {
866
  $this->pageTitle = wp_title('&raquo;', false);
867
  }
868
+
869
+ $this->pageTitle = str_replace('$', '\$', $this->pageTitle);
870
  $title = '<title>' . $this->pageTitle . '</title>' . chr(13);
871
  return $title;
872
  }
core/gantrybodylayout.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -428,7 +428,7 @@ class GantryBodyLayout extends GantryLayout {
428
  }
429
 
430
  function get_front_page_type() {
431
- return apply_filters('front_page_type', locate_template(array('front-page.php')));
432
  }
433
 
434
  /**
@@ -492,7 +492,7 @@ class GantryBodyLayout extends GantryLayout {
492
  * @param bool $load If true the template file will be loaded if it is found.
493
  * @return string The template filename if one is located.
494
  */
495
- function locate_type($template_names, $load = false)
496
  {
497
  global $gantry;
498
 
@@ -512,7 +512,7 @@ class GantryBodyLayout extends GantryLayout {
512
  }
513
 
514
  if ($load && '' != $located)
515
- $this->load_type($located);
516
 
517
  return $located;
518
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
428
  }
429
 
430
  function get_front_page_type() {
431
+ return apply_filters('front_page_type', $this->locate_type(array('front-page.php')));
432
  }
433
 
434
  /**
492
  * @param bool $load If true the template file will be loaded if it is found.
493
  * @return string The template filename if one is located.
494
  */
495
+ function locate_type($template_names, $load = false, $require_once = true)
496
  {
497
  global $gantry;
498
 
512
  }
513
 
514
  if ($load && '' != $located)
515
+ $this->load_type($located, $require_once);
516
 
517
  return $located;
518
  }
core/gantrybrowser.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantrycommentstempllayout.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantrydiagnostic.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantryflatfile.class.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  defined('GANTRY_VERSION') or die();
3
  /**
4
- * @version 1.19 September 20, 2011
5
  * @author RocketTheme http://www.rockettheme.com
6
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
7
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  defined('GANTRY_VERSION') or die();
3
  /**
4
+ * @version 1.20 October 16, 2011
5
  * @author RocketTheme http://www.rockettheme.com
6
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
7
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantrygizmo.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantrygzipper.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantryini.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantryjson.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantrylayout.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -35,8 +35,10 @@ function _getWidgetInstanceParams($widget_id){
35
 
36
  if (is_array($widget_info['callback'])){
37
  $widget =& $widget_info['callback'][0];
38
- $instances = $widget->get_settings();
39
- $instance_params = $instances[$widget_info['params'][0]['number']];
 
 
40
  }
41
  else {
42
  $instance_params = $wp_registered_widgets[$id]['params'];
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
35
 
36
  if (is_array($widget_info['callback'])){
37
  $widget =& $widget_info['callback'][0];
38
+ if (is_object($widget) && $widget instanceof WP_Widget) {
39
+ $instances = $widget->get_settings();
40
+ $instance_params = $instances[$widget_info['params'][0]['number']];
41
+ }
42
  }
43
  else {
44
  $instance_params = $wp_registered_widgets[$id]['params'];
core/gantryloader.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantryparams.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantryplatform.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantrypositions.class.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package Gantry Template Framework - RocketTheme
4
- * @version 1.19 September 20, 2011
5
  * @author RocketTheme http://www.rockettheme.com
6
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
7
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
  * @package Gantry Template Framework - RocketTheme
4
+ * @version 1.20 October 16, 2011
5
  * @author RocketTheme http://www.rockettheme.com
6
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
7
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantrysingleton.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantrystylelink.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantrytemplatedetails.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/gantrywidget.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/params/gantrycookieparams.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/params/gantrymenuitemparams.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/params/gantryoverrideparams.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/params/gantrysessionparams.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/params/gantryurlparams.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/renderers/gantrycommentsrenderer.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/renderers/gantrydebugmainbodyrenderer.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/renderers/gantryfeaturerenderer.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/renderers/gantrymainbodyrenderer.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/renderers/gantryorderedmainbodyrenderer.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/renderers/gantrywidgetsrenderer.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/rules/facttypes/archive.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/rules/facttypes/menu.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/rules/facttypes/post_type.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/rules/facttypes/taxonomy.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/rules/facttypes/templatepage.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/rules/gantryoverridefact.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/rules/gantryoverrides.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/rules/gantryoverridesengine.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/rules/gantrypagecallfact.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/cache/cache.class.php CHANGED
@@ -2,7 +2,7 @@
2
  require_once 'cacheDriver.interface.php';
3
 
4
  /**
5
- * @version 1.19 September 20, 2011
6
  * @author RocketTheme http://www.rockettheme.com
7
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
8
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -20,12 +20,12 @@ require_once 'cacheDriver.interface.php';
20
  * @throws CacheException
21
  */
22
  class RokCache/**
23
- * @version 1.19 September 20, 2011
24
  * @author RocketTheme http://www.rockettheme.com
25
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
26
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
27
  *//**
28
- * @version 1.19 September 20, 2011
29
  * @author RocketTheme http://www.rockettheme.com
30
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
31
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
2
  require_once 'cacheDriver.interface.php';
3
 
4
  /**
5
+ * @version 1.20 October 16, 2011
6
  * @author RocketTheme http://www.rockettheme.com
7
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
8
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
20
  * @throws CacheException
21
  */
22
  class RokCache/**
23
+ * @version 1.20 October 16, 2011
24
  * @author RocketTheme http://www.rockettheme.com
25
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
26
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
27
  *//**
28
+ * @version 1.20 October 16, 2011
29
  * @author RocketTheme http://www.rockettheme.com
30
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
31
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/cache/cacheDriver.interface.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * @version 1.19 September 20, 2011
5
  * @author RocketTheme http://www.rockettheme.com
6
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
7
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
 
3
  /**
4
+ * @version 1.20 October 16, 2011
5
  * @author RocketTheme http://www.rockettheme.com
6
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
7
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/cache/fileCacheDriver.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/cache/wpTransientCacheDriver.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/gantryarrayhelper.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/gantrycache.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/gantrydate.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/gantryfilterinput.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/gantryregistry.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/gantrysimplexmlelement.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/gantrytemplateinfo.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/gantryurl.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/gantryxml.class.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  *
4
- * @version 1.19 September 20, 2011
5
  * @author RocketTheme http://www.rockettheme.com
6
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
7
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
  *
4
+ * @version 1.20 October 16, 2011
5
  * @author RocketTheme http://www.rockettheme.com
6
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
7
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/registry/format/ini.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/registry/format/json.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/registry/format/php.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/registry/format/xml.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
core/utilities/registry/gantryregistryformat.class.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
css/gantry-ie6.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
css/gantry.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
css/gantrydivider.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
css/grid-12.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
css/grid-16.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
css/iphone-gantry.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
css/wordpress-ie6.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
css/wordpress-ie7.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
css/wordpress.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
functions.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -121,7 +121,7 @@ function gantry_construct() {
121
  /**
122
  * @name GANTRY_VERSION
123
  */
124
- define('GANTRY_VERSION', '1.19');
125
 
126
 
127
  if (!defined('DS')) {
@@ -360,3 +360,6 @@ function gantry_set_overrides($overrides, $priority = 10) {
360
 
361
 
362
 
 
 
 
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
121
  /**
122
  * @name GANTRY_VERSION
123
  */
124
+ define('GANTRY_VERSION', '1.20');
125
 
126
 
127
  if (!defined('DS')) {
360
 
361
 
362
 
363
+
364
+
365
+
gantry.config.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gantry.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -10,8 +10,8 @@
10
  Plugin Name: Gantry Template Framework
11
  Plugin URI: http://www.gantry-framework.org/
12
  Description: This is a Framework to support easily modifiable themes that are very extensible.
13
- Version: 1.19
14
- Author: Rockettheme
15
  Author URI: http://www.rockettheme.com/wordpress
16
  License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
17
  */
@@ -21,12 +21,20 @@ License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
21
  */
22
  // Only run if a gantry template is active
23
  global $gantry_path;
24
- $gantry_path = dirname($plugin);
 
 
 
 
 
 
 
25
  $gantry_templatepath = get_template_directory() . '/templateDetails.xml';
26
  if (file_exists($gantry_templatepath)) {
27
  global $ajaxurl;
28
  $ajaxurl = admin_url('admin-ajax.php');
29
  include(dirname(__FILE__) . '/functions.php');
 
30
  add_action('after_setup_theme', 'gantry_construct', -10000);
31
  add_action('after_setup_theme', 'gantry_mootools_init',-50);
32
  add_action('init', 'gantry_setup_override_widget_instances', 2);
@@ -60,6 +68,7 @@ if (file_exists($gantry_templatepath)) {
60
  add_action('plugins_loaded','gantry_widgets_admin_change_widget_init_action',2);
61
  add_action('sidebar_admin_setup','gantry_widgets_admin_force_accessibility_off',20);
62
  add_action('sidebar_admin_setup','gantry_widget_admin_clear_cache',19);
 
63
  }
64
 
65
  add_action('wp_ajax_gantry_admin', 'gantry_admin_ajax');
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
10
  Plugin Name: Gantry Template Framework
11
  Plugin URI: http://www.gantry-framework.org/
12
  Description: This is a Framework to support easily modifiable themes that are very extensible.
13
+ Version: 1.20
14
+ Author: RocketTheme
15
  Author URI: http://www.rockettheme.com/wordpress
16
  License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
17
  */
21
  */
22
  // Only run if a gantry template is active
23
  global $gantry_path;
24
+ if (!is_multisite())
25
+ {
26
+ $gantry_path = dirname($plugin);
27
+ }
28
+ else {
29
+ $gantry_path = ABSPATH."/wp-content/plugins/gantry";
30
+ }
31
+
32
  $gantry_templatepath = get_template_directory() . '/templateDetails.xml';
33
  if (file_exists($gantry_templatepath)) {
34
  global $ajaxurl;
35
  $ajaxurl = admin_url('admin-ajax.php');
36
  include(dirname(__FILE__) . '/functions.php');
37
+ include(dirname(__FILE__) . '/bugfixes.php');
38
  add_action('after_setup_theme', 'gantry_construct', -10000);
39
  add_action('after_setup_theme', 'gantry_mootools_init',-50);
40
  add_action('init', 'gantry_setup_override_widget_instances', 2);
68
  add_action('plugins_loaded','gantry_widgets_admin_change_widget_init_action',2);
69
  add_action('sidebar_admin_setup','gantry_widgets_admin_force_accessibility_off',20);
70
  add_action('sidebar_admin_setup','gantry_widget_admin_clear_cache',19);
71
+ add_action('widgets.php', 'gantry_widget_admin_clear_widget_instance_overrides',10);
72
  }
73
 
74
  add_action('wp_ajax_gantry_admin', 'gantry_admin_ajax');
gizmos/analytics.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/autoparagraphs.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/belatedpng.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/childcss.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/commentreply.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/feedlinks.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/ie6.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/ie6warn.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/iphonegradients.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/iphoneimages.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/jstools.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -23,12 +23,13 @@ class GantryGizmoJSTools extends GantryGizmo {
23
 
24
  function query_parsed_init() {
25
  global $gantry;
 
 
26
 
27
  // build spans
28
  if ($gantry->get('buildspans-enabled')) {
29
  $modules = "['rt-block']";
30
  $headers = "['h3','h2','h1']";
31
- $gantry->addScript('mootools.js');
32
  $gantry->addScript('gantry-buildspans.js');
33
  $gantry->addDomReadyScript($this->_buildSpans($modules, $headers));
34
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
23
 
24
  function query_parsed_init() {
25
  global $gantry;
26
+
27
+ $gantry->addScript('mootools.js');
28
 
29
  // build spans
30
  if ($gantry->get('buildspans-enabled')) {
31
  $modules = "['rt-block']";
32
  $headers = "['h3','h2','h1']";
 
33
  $gantry->addScript('gantry-buildspans.js');
34
  $gantry->addDomReadyScript($this->_buildSpans($modules, $headers));
35
  }
gizmos/loadposition.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/muregisterstyle.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -25,11 +25,18 @@ class GantryGizmoMURegisterStyle extends GantryGizmo {
25
 
26
 
27
  function query_parsed_init() {
28
- global $gantry;
29
-
30
- $css = '.mu_register {width: 900px;padding-bottom:10px;}';
31
-
32
- $gantry->addInlineStyle($css);
 
 
 
 
 
 
 
33
 
34
  }
35
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
25
 
26
 
27
  function query_parsed_init() {
28
+ global $gantry, $pagenow;
29
+
30
+ if ($pagenow == 'wp-signup.php') {
31
+ $css = '.mu_register {width: 900px;padding-bottom:10px;}';
32
+ $gantry->addInlineStyle($css);
33
+ }
34
+
35
+ if ($pagenow == 'wp-activate.php') {
36
+ $activation_css = '#content {width: 960px; margin: 0 auto;}'."\n";
37
+ $activation_css .= '#content h2, #content form {margin-left: 10px; margin-right: 10px;}';
38
+ $gantry->addInlineStyle($activation_css);
39
+ }
40
 
41
  }
42
  }
gizmos/pagesuffix.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/rokstyle.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/rtl.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/smartload.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/styledeclaration.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/texturize.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/thumbnails.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/title.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/webfonts.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
gizmos/widgetshortcodes.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/body_debugmainbody.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/body_iphonemainbody.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/body_mainbody.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/chrome_basic.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/chrome_standard.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/comment_basic.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/commentstempl_basic.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/doc_body.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/doc_tag.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/orderedbody_mainbody.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/widget_basic.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/widget_sidebar.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
html/layouts/widget_standard.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
js/fusion.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
js/gantry-buildspans.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
js/gantry-ie6menu.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
js/gantry-ie6warn.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
js/gantry-inputs.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
js/gantry-smartload.js CHANGED
@@ -1,8 +1,8 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
6
  */
7
 
8
- eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 1p=p 1n({1m:[1l,1k],i:{N:\'1h.1g\',3:1e,t:\'1c\',k:{x:M,y:M},J:[]},16:8(d){2.12(d);2.3=E.F(2.i.3);2.h=$$(2.i.t);2.v={q:2.3.A(),j:2.3.Q(),S:2.3.T()};4 e=2.i.J[0].V(\',\');5(e.w&&(e.w==1&&e[0]!=""))e.r(8(b){4 c=$$(b+\' \'+2.i.t);c.r(8(a){2.h.n(a)},2)},2);2.z=0;2.l=p 10({});2.h.r(8(a,b){5(R a==\'B\')s;4 c=a.A();5(a.9(\'6\')){c.x=a.9(\'6\');c.y=a.9(\'g\')}5(!a.9(\'6\')&&c.x&&c.y){a.7(\'6\',c.x).7(\'g\',c.y)}a.7(\'o\',b);2.l.17(b,{\'m\':a.m,\'6\':c.x,\'g\':c.y,\'K\':p L.19(a,{1d:1i,1j:L.1o.U.14})});5(!2.u(a)){a.7(\'m\',2.i.N).15(\'H\')}C{2.l.n(a.9(\'o\'));2.h.n(a)}},2);5(2.h.w)E.F(2.3).13(\'j\',2.G.Y(2));4 f=2.3},u:8(a){4 b=a.X(),k=2.i.k;4 c={q:2.3.A(),j:2.3.Q(),S:2.3.T()};s((b.y>=c.j.y-k.y)&&(b.y<=c.j.y+2.v.q.y+k.y)&&(b.x>=c.j.x-k.x)&&(b.x<=c.j.x+2.v.q.x+k.x))},G:8(e){4 d=2;5(!2.h||!2.z){2.z=1;s}2.h.r(8(b){5(R b==\'B\')s;5(2.u(b)&&2.l.P(b.9(\'o\'))){4 c=2.l.P(b.9(\'o\'));p 11.W(c.m,{Z:8(){4 a={6:2.6,g:2.g};c.K.D(\'I\',0).18(8(){5(!1a.1b.1f)b.7(\'6\',\'O\').7(\'g\',\'O\');C b.7(\'6\',a.6).7(\'g\',a.g);b.7(\'m\',c.m).1q(\'H\');2.D(\'I\',1)});d.h.n(b);d.l.n(b.9(\'o\'))}})}},2)}});',62,89,'||this|container|var|if|width|setProperty|function|getProperty|||||||height|images|options|scroll|offset|storage|src|erase|smartload|new|size|each|return|cssrule|checkPosition|dimensions|length|||init|getSize|undefined|else|start|document|id|scrolling|spinner|opacity|exclusion|fx|Fx|200|placeholder|auto|get|getScroll|typeof|scrollSize|getScrollSize|Sine|split|image|getPosition|bind|onload|Hash|Asset|setOptions|addEvent|easeIn|addClass|initialize|set|chain|Tween|Browser|Engine|img|duration|window|trident6|gif|blank|250|transition|Options|Events|Implements|Class|Transitions|GantrySmartLoad|removeClass'.split('|'),0,{}))
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
6
  */
7
 
8
+ var GantrySmartLoad=new Class({Implements:[Events,Options],options:{placeholder:"blank.gif",container:window,cssrule:"img",offset:{x:200,y:200},exclusion:[]},initialize:function(b){this.setOptions(b);this.container=document.id(this.options.container);this.images=$$(this.options.cssrule);this.dimensions={size:this.container.getSize(),scroll:this.container.getScroll(),scrollSize:this.container.getScrollSize()};var c=this.options.exclusion[0].split(",");if(c.length&&(c.length!=1&&c[0]!="")){c.each(function(e){var d=$$(e+" "+this.options.cssrule);d.each(function(f){this.images.erase(f);},this);},this);}this.init=0;this.storage=new Hash({});this.images.each(function(d,f){if(typeof d=="undefined"){return;}if(!d.get("width")&&!d.get("height")){this.storage.erase(d.get("smartload"));this.images.erase(d);return;}var e=d.getSize();if(d.getProperty("width")){e.x=d.getProperty("width");e.y=d.getProperty("height");}if(!d.getProperty("width")&&e.x&&e.y){d.setProperty("width",e.x).setProperty("height",e.y);}d.setProperty("smartload",f);this.storage.set(f,{src:d.src,width:e.x,height:e.y,fx:new Fx.Tween(d,{duration:250,transition:Fx.Transitions.Sine.easeIn})});if(!this.checkPosition(d)){d.setProperty("src",this.options.placeholder).addClass("spinner");}else{this.storage.erase(d.getProperty("smartload"));this.images.erase(d);}},this);if(this.images.length){document.id(this.container).addEvent("scroll",this.scrolling.bind(this));}var a=this.container;},checkPosition:function(b){var a=b.getPosition(),d=this.options.offset;var c={size:this.container.getSize(),scroll:this.container.getScroll(),scrollSize:this.container.getScrollSize()};return((a.y>=c.scroll.y-d.y)&&(a.y<=c.scroll.y+this.dimensions.size.y+d.y));},scrolling:function(b){var a=this;if(!this.images||!this.init){this.init=1;return;}this.images.each(function(c){if(typeof c=="undefined"){return;}if(this.checkPosition(c)&&this.storage.get(c.getProperty("smartload"))){var d=this.storage.get(c.getProperty("smartload"));new Asset.image(d.src,{onload:function(){var e={width:d.width,height:d.height};if(e.width&&!e.height){e.height=e.width;}if(!e.width&&e.height){e.width=e.height;}if(!e.width&&!e.height){e.width=this.width;e.height=this.height;}if(e.width!=this.width&&e.height==this.height){e.width=this.width;}else{if(e.width==this.width&&e.height!=this.height){e.height=this.height;}}d.fx.start("opacity",0).chain(function(){c.setProperty("width",e.width).setProperty("height",e.height);c.setProperty("src",d.src).removeClass("spinner");this.start("opacity",1);});a.images.erase(c);a.storage.erase(c.getProperty("smartload"));}});}},this);}});
js/gantry-totop.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
js/gantrydivider.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
js/imenu.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
js/sfhover.js CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
readme.txt CHANGED
@@ -4,7 +4,7 @@ Author URI: http://gantry-framework.org
4
  Tags: gantry, framework, template, theme, widgets, flexible, extensible, configurable, 960px, grid, columns, powerful
5
  Requires at least: 3.0
6
  Tested up to: 3.2.1
7
- Stable tag: 1.19
8
 
9
  Gantry is a comprehensive set of building blocks to enable the rapid development and realization of a design into a flexible and powerful web platform
10
 
@@ -79,6 +79,18 @@ Once you downloaded and installed Gantry Framework plugin, please download also
79
 
80
  == Changelog ==
81
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  = 1.19 =
83
  * Adjusted for WordPress plugin directory
84
 
@@ -168,7 +180,7 @@ Once you downloaded and installed Gantry Framework plugin, please download also
168
  * Fixed swapping widget IDs in overrides
169
 
170
  = 1.5 =
171
- * Added check for empty widget postions in render
172
  * Gantry Logo widget 'Per Style' setting is no longer hidden
173
  * Changed some JS binds to follow the new ES5 specs
174
  * Fixed Colorchooser and Gradient fields
@@ -191,8 +203,8 @@ Once you downloaded and installed Gantry Framework plugin, please download also
191
  = 1.2 =
192
  * Added Minefield to the list of Browsers
193
  * Add support for Signup page to template page overrides
194
- * Force Widget Accessability Mode off for Gantry Themes
195
- * Fixed addStyle to better handle -override files and get propper css file overrides from template
196
  * Moved cache to be WP Transients based.
197
  * Added base level diagnostics
198
 
@@ -200,4 +212,9 @@ Once you downloaded and installed Gantry Framework plugin, please download also
200
  * Fixed support for non WP_Widget based classes.
201
 
202
  = 1.0 =
203
- * Changelog Creation
 
 
 
 
 
4
  Tags: gantry, framework, template, theme, widgets, flexible, extensible, configurable, 960px, grid, columns, powerful
5
  Requires at least: 3.0
6
  Tested up to: 3.2.1
7
+ Stable tag: 1.20
8
 
9
  Gantry is a comprehensive set of building blocks to enable the rapid development and realization of a design into a flexible and powerful web platform
10
 
79
 
80
  == Changelog ==
81
 
82
+ = 1.20 =
83
+ * Added a fix to prevent frozen widgets and widgets appearing in wrong overrides
84
+ * Added a script that should automatically fix all existing frozen widgets and overrides
85
+ * Added support for WordPress Multi Site installations
86
+ * Added check for instance settings of WordPress widget classes
87
+ * The $ signs in page titles should be now displayed properly
88
+ * Added require_once parameter to the locate_type function
89
+ * Updated the SmartLoad gizmo JS file to fix XPath Ignores
90
+ * Fixed the situation when the MooTools would only get loaded when the Build Spans gizmo is enabled
91
+ * Fixed the situation when front-page.php file wouldn't get loaded from the proper location
92
+ * Modified the MU Register gizmo to add very basic width settings to the activate and signup pages
93
+
94
  = 1.19 =
95
  * Adjusted for WordPress plugin directory
96
 
180
  * Fixed swapping widget IDs in overrides
181
 
182
  = 1.5 =
183
+ * Added check for empty widget positions in render
184
  * Gantry Logo widget 'Per Style' setting is no longer hidden
185
  * Changed some JS binds to follow the new ES5 specs
186
  * Fixed Colorchooser and Gradient fields
203
  = 1.2 =
204
  * Added Minefield to the list of Browsers
205
  * Add support for Signup page to template page overrides
206
+ * Force Widget Accessebility Mode off for Gantry Themes
207
+ * Fixed addStyle to better handle -override files and get proper css file overrides from template
208
  * Moved cache to be WP Transients based.
209
  * Added base level diagnostics
210
 
212
  * Fixed support for non WP_Widget based classes.
213
 
214
  = 1.0 =
215
+ * Changelog Creation
216
+
217
+ == Upgrade Notice ==
218
+
219
+ = 1.20 =
220
+ This version includes several important fixes and it is highly recommended for everyone to update.
tmpl/index-iphone.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/archives.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/breadcrumbs.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/categories.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/copyright.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/date.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/divider.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/fontsizer.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/gantrymenu/admin/RokMenuWalkerNavMenuEdit.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/gantrymenu/admin/fields/themelist.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/gantrymenu/css/widget_admin.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * @version 1.19 September 20, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  /**
2
+ * @version 1.20 October 16, 2011
3
  * @author RocketTheme http://www.rockettheme.com
4
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
5
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/gantrymenu/libs/GantryMenu.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -8,10 +8,22 @@
8
 
9
  if (class_exists('GantryRokMenu')) return;
10
 
11
- class GantryMenu extends RokMenu {
12
- protected function getProvider() {
 
 
 
 
 
 
 
 
 
 
 
 
13
  global $gantry;
14
- $providerClass = "GantryMenuProvider". ucfirst($gantry->platform->platform);
15
  $file = dirname(__FILE__) . '/providers/' . $providerClass . '.php';
16
  if (!class_exists($providerClass) && file_exists($file)) {
17
  require_once($file);
@@ -24,7 +36,27 @@ class GantryMenu extends RokMenu {
24
  }
25
  }
26
 
27
- public function enqueueHeaderFiles() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  global $gantry;
29
  foreach ($this->layout->getScriptFiles() as $name => $script) {
30
  $gantry->addScript($script['url']);
@@ -34,7 +66,8 @@ class GantryMenu extends RokMenu {
34
  }
35
  }
36
 
37
- public function renderInlineHeader() {
 
38
  global $gantry;
39
  $style = $this->layout->getInlineStyle();
40
  if (!empty($style)) {
@@ -46,4 +79,10 @@ class GantryMenu extends RokMenu {
46
  }
47
  return;
48
  }
 
 
 
 
 
 
49
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
8
 
9
  if (class_exists('GantryRokMenu')) return;
10
 
11
+ class GantryMenu extends RokMenu
12
+ {
13
+
14
+ private $theme;
15
+
16
+ public function __construct($theme, $instance)
17
+ {
18
+ $this->theme = $theme;
19
+ parent::__construct($instance);
20
+
21
+ }
22
+
23
+ protected function getProvider()
24
+ {
25
  global $gantry;
26
+ $providerClass = "GantryMenuProvider" . ucfirst($gantry->platform->platform);
27
  $file = dirname(__FILE__) . '/providers/' . $providerClass . '.php';
28
  if (!class_exists($providerClass) && file_exists($file)) {
29
  require_once($file);
36
  }
37
  }
38
 
39
+ protected function getRenderer()
40
+ {
41
+ global $gantry;
42
+ $rendererClass = "GantryMenuRenderer" . ucfirst($gantry->platform->platform);
43
+ $file = dirname(__FILE__) . '/renderers/' . $rendererClass . '.php';
44
+ if (!class_exists($rendererClass) && file_exists($file)) {
45
+ require_once($file);
46
+ }
47
+ if (class_exists($rendererClass)) {
48
+ /** @var $renderer GantryMenuRendererWordpress */
49
+ $renderer = new $rendererClass($this->args);
50
+ }
51
+ else {
52
+ return false;
53
+ }
54
+ $renderer->setTheme($this->theme);
55
+ return $renderer;
56
+ }
57
+
58
+ public function enqueueHeaderFiles()
59
+ {
60
  global $gantry;
61
  foreach ($this->layout->getScriptFiles() as $name => $script) {
62
  $gantry->addScript($script['url']);
66
  }
67
  }
68
 
69
+ public function renderInlineHeader()
70
+ {
71
  global $gantry;
72
  $style = $this->layout->getInlineStyle();
73
  if (!empty($style)) {
79
  }
80
  return;
81
  }
82
+
83
+ public function render()
84
+ {
85
+ $this->renderHeader();
86
+ return $this->renderMenu();
87
+ }
88
  }
widgets/gantrymenu/libs/common/RokBrowserCheck.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/gantrymenu/libs/common/includes.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/gantrymenu/libs/includes.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/gantrymenu/libs/librokmenu/AbstractRokMenuFormatter.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -10,110 +10,165 @@
10
  require_once(dirname(__FILE__) . '/RokMenuFormatter.php');
11
 
12
 
13
- if (!class_exists('AbstractRokMenuFormatter')) {
 
 
 
 
 
 
 
 
 
14
  /**
15
- *
 
16
  */
17
- abstract class AbstractRokMenuFormatter implements RokMenuFormatter {
18
- protected $active_branch = array();
19
- protected $args = array();
20
- protected $current_node = 0;
21
 
 
 
 
 
 
 
 
 
22
 
23
- public function __construct($args) {
24
- $this->args = $args;
25
- }
 
 
 
 
 
26
 
27
- public function setCurrentNodeId($current_node) {
28
- $this->current_node = $current_node;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  }
 
 
30
 
31
- public function setActiveBranch($active_branch) {
32
- $this->active_branch = $active_branch;
 
 
 
 
 
 
 
 
 
 
 
33
  }
 
 
34
 
35
- public function format_tree(&$menu) {
36
- if (!empty($menu) && $menu !== false) {
37
- if ($menu->hasChildren()) {
38
- foreach ($menu->getChildren() as $child_node) {
39
- $this->_format_subnodes($child_node);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
41
  }
42
- $this->_default_format_menu($menu);
43
- $this->format_menu($menu);
 
 
44
  }
 
 
45
  }
46
 
47
-
48
- protected function _format_subnodes(&$node) {
49
- $this->_default_format_subnode($node);
50
-
51
- $this->format_subnode($node);
52
-
53
- if ($node->hasChildren()) {
54
- foreach ($node->getChildren() as $child_node) {
55
- $this->_format_subnodes($child_node);
56
- }
57
- }
58
  }
59
 
60
- protected function _default_format_menu(&$menu) {
61
- // Limit the levels of the tree is called for By limitLevels
62
- $start = $this->args['startLevel'];
63
- $end = $this->args['endLevel'];
64
-
65
-
66
- if ($this->args['limit_levels']) {
67
- //Limit to the active path if the start is more the level 0
68
- if ($start > 0) {
69
- $found = false;
70
- // get active path and find the start level that matches
71
- if (count($this->active_branch)) {
72
- foreach ($this->active_branch as $active_child) {
73
- if ($active_child->getLevel() == $start - 1) {
74
- $menu->resetTop($active_child->getId());
75
- $found = true;
76
- break;
77
- }
78
- }
79
- }
80
- if (!$found) {
81
- $menu->setChildren(array());
82
- }
83
  }
84
- //remove lower then the defined end level
85
- $menu->removeLevel($end);
86
- }
87
-
88
- if (!$this->args['showAllChildren']) {
89
- if ($menu->hasChildren()) {
90
  $active = array_keys($this->active_branch);
91
- foreach ($menu->getChildren() as $toplevel) {
92
- if (array_key_exists($toplevel->getId(), $this->active_branch) !== false) {
 
 
93
  end($active);
94
- $toplevel->removeIfNotInTree($active, current($active));
95
  }
96
- else {
97
- $toplevel->removeLevel($toplevel->getLevel());
 
 
98
  }
99
  }
100
  }
101
  }
102
  }
 
103
 
104
- protected function _default_format_subnode(&$node) {
105
- if ($node->getId() == $this->current_node) {
106
- $node->setCssId('current');
107
- $node->addListItemClass('active');
108
- }
109
- else if ($node->findChild($this->current_node) !== false) {
110
- $node->addListItemClass('active');
111
- }
112
- }
113
-
114
- public function format_menu(&$menu) {
115
 
116
- }
117
  }
118
  }
119
 
 
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
10
  require_once(dirname(__FILE__) . '/RokMenuFormatter.php');
11
 
12
 
13
+ /**
14
+ *
15
+ */
16
+ abstract class AbstractRokMenuFormatter implements RokMenuFormatter
17
+ {
18
+ protected $active_branch = array();
19
+ protected $args = array();
20
+ protected $current_node = 0;
21
+
22
+
23
  /**
24
+ * @param $args
25
+ * @return void
26
  */
27
+ public function __construct(&$args)
28
+ {
29
+ $this->args =& $args;
30
+ }
31
 
32
+ /**
33
+ * @param $current_node
34
+ * @return void
35
+ */
36
+ public function setCurrentNodeId($current_node)
37
+ {
38
+ $this->current_node = $current_node;
39
+ }
40
 
41
+ /**
42
+ * @param $active_branch
43
+ * @return void
44
+ */
45
+ public function setActiveBranch(array $active_branch)
46
+ {
47
+ $this->active_branch = $active_branch;
48
+ }
49
 
50
+ /**
51
+ * @param $menu
52
+ * @return void
53
+ */
54
+ public function format_tree(&$menu)
55
+ {
56
+ if (!empty($menu) && $menu !== false)
57
+ {
58
+ $this->_default_format_menu($menu);
59
+ $this->format_menu($menu);
60
+
61
+ $nodeIterator = new RecursiveIteratorIterator($menu, RecursiveIteratorIterator::SELF_FIRST);
62
+ foreach ($nodeIterator as $node)
63
+ {
64
+ $this->_format_subnodes($node);
65
+ }
66
  }
67
+ }
68
+
69
 
70
+ /**
71
+ * @param $node
72
+ * @return void
73
+ */
74
+ protected function _format_subnodes(&$node)
75
+ {
76
+ if ($node->getId() == $this->current_node)
77
+ {
78
+ $node->setCssId('current');
79
+ }
80
+ if (array_key_exists($node->getId(), $this->active_branch))
81
+ {
82
+ $node->addListItemClass('active');
83
  }
84
+ $this->format_subnode($node);
85
+ }
86
 
87
+ /**
88
+ * @param $menu
89
+ * @return void
90
+ */
91
+ protected function _default_format_menu(&$menu)
92
+ {
93
+ // Limit the levels of the tree is called for By limitLevels
94
+ $start = $this->args['startLevel'];
95
+ $end = $this->args['endLevel'];
96
+
97
+ if ($this->args['limit_levels'])
98
+ {
99
+ //Limit to the active path if the start is more the level 0
100
+ if ($start > 0)
101
+ {
102
+ $found = false;
103
+ // get active path and find the start level that matches
104
+ if (count($this->active_branch))
105
+ {
106
+ foreach ($this->active_branch as $active_child)
107
+ {
108
+ if ($active_child->getLevel() == $start - 1)
109
+ {
110
+ $menu->resetTop($active_child->getId());
111
+ $found = true;
112
+ break;
113
+ }
114
  }
115
  }
116
+ if (!$found)
117
+ {
118
+ $menu->setChildren(array());
119
+ }
120
  }
121
+ //remove lower then the defined end level
122
+ $menu->removeLevel($end);
123
  }
124
 
125
+ $always_show_menu = false;
126
+ if (!array_key_exists('showAllChildren', $this->args) && $start==0)
127
+ {
128
+ $always_show_menu = true;
129
+ }
130
+ elseif (array_key_exists('showAllChildren', $this->args))
131
+ {
132
+ $always_show_menu = $this->args['showAllChildren'];
 
 
 
133
  }
134
 
135
+ if (!$always_show_menu)
136
+ {
137
+ if ($menu->hasChildren())
138
+ {
139
+ if (count($this->active_branch) == 0 || empty($this->active_branch))
140
+ {
141
+ $menu->removeLevel($start);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  }
143
+ else
144
+ {
 
 
 
 
145
  $active = array_keys($this->active_branch);
146
+ foreach ($menu->getChildren() as $toplevel)
147
+ {
148
+ if (array_key_exists($toplevel->getId(), $this->active_branch) !== false)
149
+ {
150
  end($active);
151
+ $menu->removeIfNotInTree($active, current($active));
152
  }
153
+ else
154
+ {
155
+ if (count($this->active_branch) > 0)
156
+ $menu->removeLevelFromNonActive($this->active_branch, end($this->active_branch)->getLevel());
157
  }
158
  }
159
  }
160
  }
161
  }
162
+ }
163
 
164
+ /**
165
+ * @param $menu
166
+ * @return void
167
+ */
168
+ public function format_menu(&$menu)
169
+ {
 
 
 
 
 
170
 
 
171
  }
172
  }
173
 
174
+
widgets/gantrymenu/libs/librokmenu/AbstractRokMenuLayout.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -8,100 +8,108 @@
8
 
9
  require_once(dirname(__FILE__) . '/RokMenuLayout.php');
10
 
11
- if (!class_exists('AbstractRokMenuLayout')) {
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
- /**
15
- *
16
- */
17
- abstract class AbstractRokMenuLayout implements RokMenuLayout {
18
- protected $args = array();
19
- protected $scripts = array();
20
- protected $inlineScript = '';
21
- protected $styles = array();
22
- protected $inlineStyle = '';
23
- protected $browser;
24
- protected $staged = false;
25
-
26
- public function __construct($args) {
27
- $this->args = $args;
28
- $this->browswer = new RokBrowserCheck();
29
- }
30
-
31
- public function doStageHeader() {
32
- if ($this->staged) return;
33
- $this->stageHeader();
34
- $this->staged = true;
35
- }
36
 
37
- public function getInlineScript() {
38
- return $this->inlineScript;
39
- }
 
40
 
41
- public function getInlineStyle() {
42
- return $this->inlineStyle;
43
- }
 
44
 
45
- public function getStyleFiles() {
46
- return $this->styles;
47
- }
 
48
 
49
- public function getScriptFiles() {
50
- return $this->scripts;
51
- }
 
52
 
53
- /**
54
- * Enqeues a script file after doing the browser specific check.
55
- * @param $scriptFile the script file relative to the themes root dir
56
- * @return void
57
- */
58
- protected function addScript($scriptFile, $prefix = 'rokmenu_') {
59
- $full_path = $this->args['theme_path'] . '/' . dirname($scriptFile) . '/';
60
- $relative_path = $this->args['theme_rel_path'] . '/' . dirname($scriptFile) . '/';
61
- $url_path = $this->args['theme_url'] . '/' . dirname($scriptFile) . '/';
62
-
63
- $file_checks = array_reverse($this->browswer->getChecks($scriptFile));
64
- foreach ($file_checks as $file_check) {
65
- if (file_exists($full_path . $file_check) && is_readable($full_path . $file_check)) {
66
- $this->scripts[$prefix . $file_check] = array(
67
- 'full' => $full_path . $file_check,
68
- 'relative' => $relative_path . $file_check,
69
- 'url' => $url_path . $file_check
70
- );
71
- break;
72
- }
73
  }
74
  }
 
75
 
76
- /**
77
- * Add a css style file and any browser specific versions of it
78
- * @param $styleFile the css style file relative to the themes root dir
79
- * @return void
80
- */
81
- protected function addStyle($styleFile, $prefix = 'rokmenu_') {
82
- $full_path = $this->args['theme_path'] . '/' . dirname($styleFile) . '/';
83
- $relative_path = $this->args['theme_rel_path'] . '/' . dirname($styleFile) . '/';
84
- $url_path = $this->args['theme_url'] . '/' . dirname($styleFile) . '/';
85
-
86
- $file_checks = $this->browswer->getChecks($styleFile);
87
- foreach ($file_checks as $file_check) {
88
- if (file_exists($full_path . $file_check) && is_readable($full_path . $file_check)) {
89
- $this->styles[$prefix . $file_check] = array(
90
- 'full' => $full_path . $file_check,
91
- 'relative' => $relative_path . $file_check,
92
- 'url' => $url_path . $file_check
93
- );
94
- }
95
  }
96
  }
 
97
 
98
- protected function appendInlineStyle($inlineStyle) {
99
- $this->inlineStyle .= $inlineStyle;
100
- }
 
101
 
102
- protected function appendInlineScript($inlineScript) {
103
- $this->inlineScript .= $inlineScript;
104
- }
105
  }
 
106
 
107
- }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
8
 
9
  require_once(dirname(__FILE__) . '/RokMenuLayout.php');
10
 
 
11
 
12
+ /**
13
+ *
14
+ */
15
+ abstract class AbstractRokMenuLayout implements RokMenuLayout
16
+ {
17
+ protected $args = array();
18
+ protected $scripts = array();
19
+ protected $inlineScript = '';
20
+ protected $styles = array();
21
+ protected $inlineStyle = '';
22
+ protected $browser;
23
+ protected $staged = false;
24
+
25
+ public function __construct(&$args)
26
+ {
27
+ $this->args =& $args;
28
+ $this->browser = new RokBrowserCheck();
29
+ }
30
 
31
+ public function doStageHeader()
32
+ {
33
+ if ($this->staged) return;
34
+ $this->stageHeader();
35
+ $this->staged = true;
36
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
+ public function getInlineScript()
39
+ {
40
+ return $this->inlineScript;
41
+ }
42
 
43
+ public function getInlineStyle()
44
+ {
45
+ return $this->inlineStyle;
46
+ }
47
 
48
+ public function getStyleFiles()
49
+ {
50
+ return $this->styles;
51
+ }
52
 
53
+ public function getScriptFiles()
54
+ {
55
+ return $this->scripts;
56
+ }
57
 
58
+ /**
59
+ * Enqeues a script file after doing the browser specific check.
60
+ * @param $scriptFile the script file relative to the themes root dir
61
+ * @return void
62
+ */
63
+ protected function addScript($scriptFile, $prefix = 'rokmenu_')
64
+ {
65
+ $full_path = $this->args['theme_path'] . '/' . dirname($scriptFile) . '/';
66
+ $relative_path = $this->args['theme_rel_path'] . '/' . dirname($scriptFile) . '/';
67
+ $url_path = $this->args['theme_url'] . '/' . dirname($scriptFile) . '/';
68
+
69
+ $file_checks = array_reverse($this->browser->getChecks($scriptFile));
70
+ foreach ($file_checks as $file_check) {
71
+ if (file_exists($full_path . $file_check) && is_readable($full_path . $file_check)) {
72
+ $this->scripts[$prefix . $file_check] = array(
73
+ 'full' => $full_path . $file_check,
74
+ 'relative' => $relative_path . $file_check,
75
+ 'url' => $url_path . $file_check
76
+ );
77
+ break;
78
  }
79
  }
80
+ }
81
 
82
+ /**
83
+ * Add a css style file and any browser specific versions of it
84
+ * @param $styleFile the css style file relative to the themes root dir
85
+ * @return void
86
+ */
87
+ protected function addStyle($styleFile, $prefix = 'rokmenu_')
88
+ {
89
+ $full_path = $this->args['theme_path'] . '/' . dirname($styleFile) . '/';
90
+ $relative_path = $this->args['theme_rel_path'] . '/' . dirname($styleFile) . '/';
91
+ $url_path = $this->args['theme_url'] . '/' . dirname($styleFile) . '/';
92
+
93
+ $file_checks = $this->browser->getChecks($styleFile);
94
+ foreach ($file_checks as $file_check) {
95
+ if (file_exists($full_path . $file_check) && is_readable($full_path . $file_check)) {
96
+ $this->styles[$prefix . $file_check] = array(
97
+ 'full' => $full_path . $file_check,
98
+ 'relative' => $relative_path . $file_check,
99
+ 'url' => $url_path . $file_check
100
+ );
101
  }
102
  }
103
+ }
104
 
105
+ protected function appendInlineStyle($inlineStyle)
106
+ {
107
+ $this->inlineStyle .= $inlineStyle;
108
+ }
109
 
110
+ protected function appendInlineScript($inlineScript)
111
+ {
112
+ $this->inlineScript .= $inlineScript;
113
  }
114
+ }
115
 
 
widgets/gantrymenu/libs/librokmenu/AbstractRokMenuProvider.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -8,52 +8,151 @@
8
 
9
  require_once(dirname(__FILE__) . '/RokMenuProvider.php');
10
 
11
- if (!class_exists('AbstractRokMenuProvider')) {
 
 
 
 
 
 
12
 
13
  /**
14
- * The base class for all data providers for menus
15
  */
16
- abstract class AbstractRokMenuProvider implements RokMenuProvider {
17
 
18
- protected $args = array();
19
- protected $active_branch = array();
20
- protected $current_node = 0;
 
21
 
22
- public function __construct($args) {
23
- $this->args = $args;
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
- public function getActiveBranch() {
27
- return $this->active_branch;
28
- }
29
 
30
- public function getCurrentNodeId() {
31
- return $this->current_node;
 
 
 
 
 
 
32
  }
 
 
 
 
 
 
 
 
 
 
 
33
 
34
- protected function populateActiveBranch($nodeList) {
35
- // setup children array to find parents and children
36
- $children = array();
37
- $list = array();
38
- foreach ($nodeList as $node) {
39
-
40
- $thisref = &$children[$node->getId()];
41
- $thisref['parent_id'] = $node->getParent();
42
- if ($node->getParent() == 0) {
43
- $list[$node->getId()] = &$thisref;
44
- } else {
45
- $children[$node->getParent()]['children'][] = $node->getId();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
47
  }
48
- // Find active branch
49
- if ($this->current_node != 0) {
50
- $this->active_branch[$this->current_node] = $nodeList[$this->current_node];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  $parent_id = $children[$this->current_node]['parent_id'];
52
  while ($parent_id != 0) {
53
  $this->active_branch[$parent_id] = $nodeList[$parent_id];
54
  $parent_id = $children[$parent_id]['parent_id'];
55
  }
 
 
56
  }
57
  }
58
  }
 
 
 
 
 
 
 
59
  }
 
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
8
 
9
  require_once(dirname(__FILE__) . '/RokMenuProvider.php');
10
 
11
+
12
+ /**
13
+ * The base class for all data providers for menus
14
+ */
15
+ abstract class AbstractRokMenuProvider implements RokMenuProvider
16
+ {
17
+
18
 
19
  /**
20
+ * @var array
21
  */
22
+ protected $args = array();
23
 
24
+ /**
25
+ * @var array
26
+ */
27
+ protected $active_branch = array();
28
 
29
+ /**
30
+ * @var int
31
+ */
32
+ protected $current_node = 0;
33
+
34
+ /**
35
+ * @var RokMenuNodeTree
36
+ */
37
+ protected $menu;
38
+
39
+ /**
40
+ * @param $args
41
+ * @return void
42
+ */
43
+ public function __construct(&$args)
44
+ {
45
+ $this->args =& $args;
46
+ }
47
+
48
+ /**
49
+ * @return array
50
+ */
51
+ public function getActiveBranch()
52
+ {
53
+ return $this->active_branch;
54
+ }
55
+
56
+ /**
57
+ * @return int
58
+ */
59
+ public function getCurrentNodeId()
60
+ {
61
+ return $this->current_node;
62
+ }
63
 
 
 
 
64
 
65
+ /**
66
+ * @return RokMenuNodeTree
67
+ */
68
+ public function getMenuTree()
69
+ {
70
+ if (null == $this->menu) {
71
+ $this->menu = new RokMenuNodeTree();
72
+ $this->populateMenuTree();
73
  }
74
+ return $this->menu;
75
+ }
76
+
77
+ /**
78
+ * @return void
79
+ */
80
+ protected function populateMenuTree()
81
+ {
82
+ $nodes = $this->getMenuItems();
83
+ $this->createMenuTree($nodes, $this->args['maxdepth']);
84
+ }
85
 
86
+ /**
87
+ * Takes the menu item nodes and puts them into a tree structure
88
+ * @param $nodes
89
+ * @param $maxdepth
90
+ * @return bool|RokMenuNodeTree
91
+ */
92
+ protected function createMenuTree(&$nodes, $maxdepth)
93
+ {
94
+ // TODO: move maxdepth to higher processing level?
95
+ if (!empty($nodes)) {
96
+ // Build Menu Tree root down (orphan proof - child might have lower id than parent)
97
+ $ids = array();
98
+ $ids[0] = true;
99
+ $unresolved = array();
100
+
101
+ // pop the first item until the array is empty if there is any item
102
+ if (is_array($nodes)) {
103
+ while (count($nodes) && !is_null($node = array_shift($nodes)))
104
+ {
105
+ if (!$this->menu->addNode($node)) {
106
+ if (!array_key_exists($node->getId(), $unresolved) || $unresolved[$node->getId()] < $maxdepth) {
107
+ array_push($nodes, $node);
108
+ if (!isset($unresolved[$node->getId()])) $unresolved[$node->getId()] = 1;
109
+ else $unresolved[$node->getId()]++;
110
+ }
111
+ }
112
  }
113
  }
114
+ }
115
+ }
116
+
117
+ /**
118
+ * @param $nodeList
119
+ * @return void
120
+ */
121
+ protected function populateActiveBranch($nodeList)
122
+ {
123
+ // setup children array to find parents and children
124
+ $children = array();
125
+ $list = array();
126
+ foreach ($nodeList as $node) {
127
+
128
+ $thisref = &$children[$node->getId()];
129
+ $thisref['parent_id'] = $node->getParent();
130
+ if ($node->getParent() == 0) {
131
+ $list[$node->getId()] = &$thisref;
132
+ } else {
133
+ $children[$node->getParent()]['children'][] = $node->getId();
134
+ }
135
+ }
136
+ // Find active branch
137
+ if ($this->current_node != 0) {
138
+ if (array_key_exists($this->current_node, $nodeList)) {
139
+
140
  $parent_id = $children[$this->current_node]['parent_id'];
141
  while ($parent_id != 0) {
142
  $this->active_branch[$parent_id] = $nodeList[$parent_id];
143
  $parent_id = $children[$parent_id]['parent_id'];
144
  }
145
+ $this->active_branch = array_reverse($this->active_branch, true);
146
+ $this->active_branch[$this->current_node] = $nodeList[$this->current_node];
147
  }
148
  }
149
  }
150
+
151
+ /**
152
+ * This platform specific function should be implemented to get the menu nodes and return them in a RokMenuNodeTree.
153
+ * @abstract
154
+ * @return array of RokMenuNode objects
155
+ */
156
+ protected abstract function getMenuItems();
157
  }
158
+
widgets/gantrymenu/libs/librokmenu/AbstractRokMenuTheme.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -11,8 +11,14 @@ require_once(dirname(__FILE__) . '/RokMenuTheme.php');
11
  if (!class_exists('AbstractRokMenuTheme')) {
12
 
13
  abstract class AbstractRokMenuTheme implements RokMenuTheme {
 
 
 
14
  protected $defaults = array();
15
 
 
 
 
16
  public function getDefaults() {
17
  return $this->defaults;
18
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
11
  if (!class_exists('AbstractRokMenuTheme')) {
12
 
13
  abstract class AbstractRokMenuTheme implements RokMenuTheme {
14
+ /**
15
+ * @var array
16
+ */
17
  protected $defaults = array();
18
 
19
+ /**
20
+ * @return array
21
+ */
22
  public function getDefaults() {
23
  return $this->defaults;
24
  }
widgets/gantrymenu/libs/librokmenu/RokMenu.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -25,13 +25,24 @@ if (!class_exists('RokMenu')) {
25
  *
26
  */
27
  abstract class RokMenu {
28
- protected $theme;
29
- protected $args;
30
- protected $formatter;
31
- protected $layout;
32
- protected $menu;
 
 
 
33
  protected $provider;
34
 
 
 
 
 
 
 
 
 
35
  protected static $menu_defaults = array(
36
  'limit_levels' => 0,
37
  'startLevel' => 0,
@@ -40,84 +51,74 @@ if (!class_exists('RokMenu')) {
40
  'maxdepth' => 10
41
  );
42
 
43
- public function __construct(RokMenuTheme $theme, $args) {
44
- $this->theme = $theme;
45
-
 
 
 
 
 
 
46
  // get defaults for theme
47
- $theme_defaults = $this->theme->getDefaults();
48
-
49
  // merge theme defaults with class defaults theme defaults overrding
50
- $defaults = array_merge(self::$menu_defaults, $theme_defaults);
51
-
52
  // merge defaults into passed args passed args overriding
53
  $this->args = array_merge($defaults, $args);
54
 
55
- $this->formatter = $this->theme->getFormatter($this->args);
56
- $this->layout = $this->theme->getLayout($this->args);
57
  $this->provider = $this->getProvider();
58
  }
59
 
 
 
 
 
 
60
  public static function getDefaults() {
61
  return self::$menu_defaults;
62
  }
63
 
64
- public function getArgs() {
65
- return $this->args;
66
- }
67
-
68
- public function getTheme() {
69
- return $this->theme;
70
- }
71
-
72
  public function initialize() {
73
- $nodes = $this->provider->getMenuItems();
74
- $this->menu = $this->createMenuTree($nodes);
75
- if (!empty($this->menu) && $this->menu !== false) {
76
- $this->formatter->setActiveBranch($this->provider->getActiveBranch());
77
- $this->formatter->setCurrentNodeId($this->provider->getCurrentNodeId());
78
- $this->formatter->format_tree($this->menu);
79
- }
80
  }
81
 
82
- public function render() {
83
- $output = '';
84
- if (!empty($this->menu) && $this->menu !== false) {
85
- $output = $this->layout->renderMenu($this->menu);
86
- }
87
  return $output;
88
  }
89
 
 
 
 
90
  public function renderHeader() {
91
- $this->layout->doStageHeader();
 
92
  }
93
 
94
- protected function createMenuTree(&$nodes) {
95
- if (!empty($nodes)) {
96
- $menu = new RokMenuNodeTree();
97
- $maxdepth = $this->args['maxdepth'];
98
- // Build Menu Tree root down (orphan proof - child might have lower id than parent)
99
- $ids = array();
100
- $ids[0] = true;
101
- $last = null;
102
- $unresolved = array();
103
- // pop the first item until the array is empty if there is any item
104
- if (is_array($nodes)) {
105
- while (count($nodes) && !is_null($row = array_shift($nodes)))
106
- {
107
- if (!$menu->addNode($row)) {
108
- if (!array_key_exists($row->getId(), $unresolved) || $unresolved[$row->getId()] < $maxdepth) {
109
- array_push($nodes, $row);
110
- if (!isset($unresolved[$row->getId()])) $unresolved[$row->getId()] = 1;
111
- else $unresolved[$row->getId()]++;
112
- }
113
- }
114
- }
115
- }
116
- }
117
- return $menu;
118
  }
119
 
 
 
 
 
120
  protected abstract function getProvider();
 
 
121
  }
122
  }
123
 
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
25
  *
26
  */
27
  abstract class RokMenu {
28
+ /**
29
+ * @var array
30
+ */
31
+ protected $args = array();
32
+
33
+ /**
34
+ * @var RokMenuProvider
35
+ */
36
  protected $provider;
37
 
38
+ /**
39
+ * @var RokMenuRenderer
40
+ */
41
+ protected $renderer;
42
+
43
+ /**
44
+ * @var
45
+ */
46
  protected static $menu_defaults = array(
47
  'limit_levels' => 0,
48
  'startLevel' => 0,
51
  'maxdepth' => 10
52
  );
53
 
54
+ /**
55
+ * @param RokMenuRenderer $renderer
56
+ * @param $args
57
+ * @return void
58
+ */
59
+ public function __construct($args) {
60
+ $this->args = $args;
61
+
62
+ $this->renderer = $this->getRenderer();
63
  // get defaults for theme
64
+ $renderer_defaults = $this->renderer->getDefaults();
 
65
  // merge theme defaults with class defaults theme defaults overrding
66
+ $defaults = array_merge(self::$menu_defaults, $renderer_defaults);
 
67
  // merge defaults into passed args passed args overriding
68
  $this->args = array_merge($defaults, $args);
69
 
70
+ $this->renderer->setArgs($this->args);
71
+
72
  $this->provider = $this->getProvider();
73
  }
74
 
75
+
76
+ /**
77
+ * @static
78
+ * @return array
79
+ */
80
  public static function getDefaults() {
81
  return self::$menu_defaults;
82
  }
83
 
84
+ /**
85
+ * @return void
86
+ */
 
 
 
 
 
87
  public function initialize() {
88
+ $this->renderer->initialize($this->provider);
 
 
 
 
 
 
89
  }
90
 
91
+ /**
92
+ * @return string
93
+ */
94
+ public function renderMenu() {
95
+ $output = $this->renderer->renderMenu();
96
  return $output;
97
  }
98
 
99
+ /**
100
+ * @return string
101
+ */
102
  public function renderHeader() {
103
+ $output = $this->renderer->renderHeader();
104
+ return $output;
105
  }
106
 
107
+ /**
108
+ * @return string
109
+ */
110
+ public function renderFooter() {
111
+ $output = $this->renderer->renderFooter();
112
+ return $output;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  }
114
 
115
+ /**
116
+ * @abstract
117
+ * @return RokMenuProvider
118
+ */
119
  protected abstract function getProvider();
120
+
121
+ protected abstract function getRenderer();
122
  }
123
  }
124
 
widgets/gantrymenu/libs/librokmenu/RokMenuDefaultRenderer.php ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @version 1.20 October 16, 2011
4
+ * @author RocketTheme http://www.rockettheme.com
5
+ * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
+ */
8
+
9
+ /**
10
+ *
11
+ */
12
+ class RokMenuDefaultRenderer implements RokMenuRenderer {
13
+ protected $provider;
14
+ protected $args;
15
+ protected $theme;
16
+
17
+ /**
18
+ * @var RokMenuFooter
19
+ */
20
+ protected $formatter;
21
+
22
+ /**
23
+ * @var RokMenuLayout
24
+ */
25
+ protected $layout;
26
+
27
+ /**
28
+ * @var RokMenuNodeTree
29
+ */
30
+ protected $menu;
31
+
32
+ /**
33
+ * @param RokMenuProvider $provider
34
+ * @param array $args
35
+ * @return void
36
+ */
37
+ public function __construct() {
38
+
39
+ }
40
+
41
+ /**
42
+ * @param array $args
43
+ * @return void
44
+ */
45
+ public function setArgs(array &$args){
46
+ $this->args =& $args;
47
+ }
48
+
49
+ /**
50
+ * @return array
51
+ */
52
+ public function getDefaults() {
53
+ if (!isset($this->theme)) {
54
+ return array();
55
+ }
56
+ return $this->theme->getDefaults();
57
+ }
58
+
59
+ /**
60
+ * @return void
61
+ */
62
+ public function initialize(RokMenuProvider $provider) {
63
+ $this->formatter = $this->theme->getFormatter($this->args);
64
+ $this->layout = $this->theme->getLayout($this->args);
65
+ $menu = $provider->getMenuTree();
66
+ $menu = $this->preProcessMenu($menu);
67
+ if (!empty($menu) && $menu !== false) {
68
+ $this->formatter->setActiveBranch($provider->getActiveBranch());
69
+ $this->formatter->setCurrentNodeId($provider->getCurrentNodeId());
70
+ $this->formatter->format_tree($menu);
71
+ $this->menu = &$menu;
72
+ }
73
+ }
74
+
75
+ /**
76
+ * This is run once the menu nodes are retrieved but before the formatter is run in order to give extending classes
77
+ * a change to process the nodes in the menu.
78
+ * @param RokMenuNodeTree $menu
79
+ * @return RokMenuNodeTree
80
+ */
81
+ protected function preProcessMenu(RokMenuNodeTree &$menu){
82
+ return $menu;
83
+ }
84
+
85
+ /**
86
+ * @return string
87
+ */
88
+ public function renderHeader() {
89
+ $this->layout->doStageHeader();
90
+ return '';
91
+ }
92
+
93
+ /**
94
+ * @return string
95
+ */
96
+ public function renderMenu() {
97
+ return $this->layout->renderMenu($this->menu);
98
+ }
99
+
100
+ /**
101
+ * @return string
102
+ */
103
+ public function renderFooter() {
104
+ return '';
105
+ }
106
+
107
+ /**
108
+ * @param RokMenuTheme $theme
109
+ * @return void
110
+ */
111
+ public function setTheme(RokMenuTheme $theme) {
112
+ $this->theme = $theme;
113
+ }
114
+ }
widgets/gantrymenu/libs/librokmenu/RokMenuFormatter.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -11,16 +11,46 @@ if (!interface_exists('RokMenuFormatter')) {
11
  *
12
  */
13
  interface RokMenuFormatter {
14
- public function __construct($args);
 
 
 
 
 
15
 
 
 
 
 
 
16
  public function format_tree(&$menu);
17
 
 
 
 
 
 
18
  public function format_menu(&$menu);
19
 
 
 
 
 
 
20
  public function format_subnode(&$node);
21
 
22
- public function setActiveBranch($active_branch);
 
 
 
 
 
23
 
 
 
 
 
 
24
  public function setCurrentNodeId($current_node);
25
  }
26
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
11
  *
12
  */
13
  interface RokMenuFormatter {
14
+ /**
15
+ * @abstract
16
+ * @param $args
17
+ * @return void
18
+ */
19
+ public function __construct(&$args);
20
 
21
+ /**
22
+ * @abstract
23
+ * @param $menu
24
+ * @return void
25
+ */
26
  public function format_tree(&$menu);
27
 
28
+ /**
29
+ * @abstract
30
+ * @param RokMenuNodeTree $menu
31
+ * @return void
32
+ */
33
  public function format_menu(&$menu);
34
 
35
+ /**
36
+ * @abstract
37
+ * @param RokMenuNode $node
38
+ * @return void
39
+ */
40
  public function format_subnode(&$node);
41
 
42
+ /**
43
+ * @abstract
44
+ * @param array $active_branch
45
+ * @return void
46
+ */
47
+ public function setActiveBranch(array $active_branch);
48
 
49
+ /**
50
+ * @abstract
51
+ * @param int $current_node
52
+ * @return void
53
+ */
54
  public function setCurrentNodeId($current_node);
55
  }
56
  }
widgets/gantrymenu/libs/librokmenu/RokMenuGreaterThenLevelFilter.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @version 1.20 October 16, 2011
4
+ * @author RocketTheme http://www.rockettheme.com
5
+ * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
+ */
8
+
9
+ class RokMenuGreaterThenLevelFilter extends RecursiveFilterIterator {
10
+ protected $level;
11
+
12
+ public function __construct(RecursiveIterator $recursiveIter, $end) {
13
+ $this->level = $end;
14
+ parent::__construct($recursiveIter);
15
+ }
16
+ public function accept() {
17
+ return $this->hasChildren() || $this->current()->getLevel() > $this->level;
18
+ }
19
+
20
+ public function getChildren() {
21
+ return new self($this->getInnerIterator()->getChildren(), $this->level);
22
+ }
23
+ }
widgets/gantrymenu/libs/librokmenu/RokMenuHeader.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @version 1.20 October 16, 2011
4
+ * @author RocketTheme http://www.rockettheme.com
5
+ * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
+ */
8
+
9
+ if (!interface_exists('RokMenuHeader')) {
10
+ interface RokMenuHeader {
11
+
12
+ }
13
+ }
widgets/gantrymenu/libs/librokmenu/RokMenuIdFilter.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @version 1.20 October 16, 2011
4
+ * @author RocketTheme http://www.rockettheme.com
5
+ * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
+ */
8
+
9
+ class RokMenuIdFilter extends RecursiveFilterIterator {
10
+ protected $id;
11
+
12
+ public function __construct(RecursiveIterator $recursiveIter, $id) {
13
+ $this->id = $id;
14
+ parent::__construct($recursiveIter);
15
+ }
16
+ public function accept() {
17
+ return $this->hasChildren() || $this->current()->getId() == $this->id;
18
+ }
19
+
20
+ public function getChildren() {
21
+ return new self($this->getInnerIterator()->getChildren(), $this->id);
22
+ }
23
+ }
widgets/gantrymenu/libs/librokmenu/RokMenuIterator.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @version 1.20 October 16, 2011
4
+ * @author RocketTheme http://www.rockettheme.com
5
+ * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
+ */
8
+
9
+
10
+ class RokMenuIterator implements RecursiveIterator
11
+ {
12
+ protected $ar;
13
+
14
+ public function __construct(RokMenuNodeBase $menuNode)
15
+ {
16
+ $this->ar = & $menuNode->getChildren();
17
+ }
18
+
19
+ public function rewind()
20
+ {
21
+ reset($this->ar);
22
+ }
23
+
24
+ public function valid()
25
+ {
26
+ return !is_null(key($this->ar));
27
+ }
28
+
29
+ public function key()
30
+ {
31
+ return key($this->ar);
32
+ }
33
+
34
+ public function next()
35
+ {
36
+ next($this->ar);
37
+ }
38
+
39
+ public function current()
40
+ {
41
+ return current($this->ar);
42
+ }
43
+
44
+ public function hasChildren()
45
+ {
46
+ $current = current($this->ar);
47
+ return $current->hasChildren();
48
+ }
49
+
50
+ public function getChildren()
51
+ {
52
+ return new RokMenuIterator($this->current());
53
+ }
54
+ }
widgets/gantrymenu/libs/librokmenu/RokMenuLayout.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -11,23 +11,57 @@ if (!interface_exists('RokMenuLayout')) {
11
  /**
12
  *
13
  */
14
- interface RokMenuLayout {
15
-
16
- public function __construct($args);
 
 
 
 
 
17
 
18
 
 
 
 
 
 
19
  public function renderMenu(&$menu);
20
 
 
 
 
 
21
  public function getScriptFiles();
22
 
 
 
 
 
23
  public function getStyleFiles();
24
 
 
 
 
 
25
  public function getInlineStyle();
26
 
 
 
 
 
27
  public function getInlineScript();
28
 
 
 
 
 
29
  public function doStageHeader();
30
 
 
 
 
 
31
  public function stageHeader();
32
  }
33
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
11
  /**
12
  *
13
  */
14
+ interface RokMenuLayout
15
+ {
16
+ /**
17
+ * @abstract
18
+ * @param $args
19
+ * @return void
20
+ */
21
+ public function __construct(&$args);
22
 
23
 
24
+ /**
25
+ * @abstract
26
+ * @param $menu
27
+ * @return void
28
+ */
29
  public function renderMenu(&$menu);
30
 
31
+ /**
32
+ * @abstract
33
+ * @return void
34
+ */
35
  public function getScriptFiles();
36
 
37
+ /**
38
+ * @abstract
39
+ * @return void
40
+ */
41
  public function getStyleFiles();
42
 
43
+ /**
44
+ * @abstract
45
+ * @return void
46
+ */
47
  public function getInlineStyle();
48
 
49
+ /**
50
+ * @abstract
51
+ * @return void
52
+ */
53
  public function getInlineScript();
54
 
55
+ /**
56
+ * @abstract
57
+ * @return void
58
+ */
59
  public function doStageHeader();
60
 
61
+ /**
62
+ * @abstract
63
+ * @return void
64
+ */
65
  public function stageHeader();
66
  }
67
  }
widgets/gantrymenu/libs/librokmenu/RokMenuNode.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -8,12 +8,16 @@
8
 
9
  require_once(dirname(__FILE__) . '/RokMenuNodeBase.php');
10
 
 
11
  if (!class_exists('RokMenuNode')) {
12
 
13
  /**
14
  * RokMenuNode
15
  */
16
- class RokMenuNode extends RokMenuNodeBase {
 
 
 
17
  protected $title = null;
18
  protected $link = null;
19
  protected $cssId = null;
@@ -33,7 +37,8 @@ if (!class_exists('RokMenuNode')) {
33
  * @access public
34
  * @return string
35
  */
36
- function getTitle() {
 
37
  return $this->title;
38
  }
39
 
@@ -42,19 +47,23 @@ if (!class_exists('RokMenuNode')) {
42
  * @access public
43
  * @param string $title
44
  */
45
- function setTitle($title) {
 
46
  $this->title = $title;
47
  }
48
 
49
- public function setLink($link) {
 
50
  $this->link = $link;
51
  }
52
 
53
- public function hasLink() {
 
54
  return (isset($this->link));
55
  }
56
 
57
- public function getLink() {
 
58
  $outlink = $this->link;
59
  $outlink .= $this->getLinkAdditions(!strpos($this->link, '?'));
60
  return $outlink;
@@ -65,7 +74,8 @@ if (!class_exists('RokMenuNode')) {
65
  * @access public
66
  * @return string
67
  */
68
- public function getCssId() {
 
69
  return $this->cssId;
70
  }
71
 
@@ -74,16 +84,25 @@ if (!class_exists('RokMenuNode')) {
74
  * @access public
75
  * @param string $cssId
76
  */
77
- public function setCssId($cssId) {
 
78
  $this->cssId = $cssId;
79
  }
80
 
 
 
 
 
 
 
 
81
  /**
82
  * Gets the target
83
  * @access public
84
  * @return string the target
85
  */
86
- public function getTarget() {
 
87
  return $this->target;
88
  }
89
 
@@ -92,34 +111,56 @@ if (!class_exists('RokMenuNode')) {
92
  * @access public
93
  * @param string the target $target
94
  */
95
- public function setTarget($target) {
 
96
  $this->target = $target;
97
  }
98
 
99
- public function addAttribute($key, $value) {
 
 
 
 
 
 
 
 
 
100
  $this->attributes[$key] = $value;
101
  }
102
 
103
- public function getAttribute($key) {
 
104
  if (array_key_exists($key, $this->attributes))
105
  return $this->attributes[$key];
106
  else
107
  return false;
108
  }
109
 
110
- public function getAttributes() {
 
 
 
 
 
 
 
 
 
111
  return $this->attributes;
112
  }
113
 
114
- public function addLinkAddition($name, $value) {
 
115
  $this->_link_additions[$name] = $value;
116
  }
117
 
118
- public function getLinkAdditions($starting_query = false, $starting_seperator = false) {
 
119
  $link_additions = " ";
120
  reset($this->_link_additions);
121
  $i = 0;
122
- while (list($key, $value) = each($this->_link_additions)) {
123
  $link_additions .= (($i == 0) && $starting_query) ? '?' : '';
124
  $link_additions .= (($i == 0) && !$starting_query) ? '&' : '';
125
  $link_additions .= ($i > 0) ? '&' : '';
@@ -129,106 +170,105 @@ if (!class_exists('RokMenuNode')) {
129
  return rtrim(ltrim($link_additions));
130
  }
131
 
132
- public function hasLinkAdditions() {
133
- return count($this->_link_additions);
 
 
 
 
 
 
134
  }
135
 
136
- public function addLinkAttrib($name, $value) {
 
137
  $this->_link_attribs[$name] = $value;
138
  }
139
 
140
- public function getLinkAttribs() {
 
141
  $link_attribs = " ";
142
- reset($this->_link_attribs);
143
- while (list($key, $value) = each($this->_link_attribs)) {
144
  $link_attribs .= $key . "='" . $value . "' ";
145
  }
146
  return rtrim(ltrim($link_attribs));
147
  }
148
 
149
- public function hasLinkAttribs() {
150
- return count($this->_link_attribs);
 
151
  }
152
 
153
- public function getListItemClasses() {
154
- $html_classes = " ";
155
- reset($this->_li_classes);
156
- while (list($key, $value) = each($this->_li_classes)) {
157
- $class =& $this->_li_classes[$key];
158
- $html_classes .= $class . " ";
159
- }
160
- return rtrim(ltrim($html_classes));
161
  }
162
 
163
- public function addListItemClass($class) {
164
- $this->_li_classes[] = $class;
 
165
  }
166
 
167
- public function hasListItemClasses() {
168
- return count($this->_li_classes);
 
 
169
  }
170
 
171
- public function getLinkClasses() {
172
- $html_classes = " ";
173
- reset($this->_a_classes);
174
- while (list($key, $value) = each($this->_a_classes)) {
175
- $class =& $this->_a_classes[$key];
176
- $html_classes .= $class . " ";
177
- }
178
- return rtrim(ltrim($html_classes));
179
  }
180
 
181
- public function addLinkClass($class) {
182
- $this->_a_classes[] = $class;
183
  }
184
 
185
- public function hasLinkClasses() {
186
- return count($this->_a_classes);
 
187
  }
188
 
189
- public function getSpanClasses() {
190
- $html_classes = " ";
191
- reset($this->_span_classes);
192
- while (list($key, $value) = each($this->_span_classes)) {
193
- $class =& $this->_span_classes[$key];
194
- $html_classes .= $class . " ";
195
- }
196
- return rtrim(ltrim($html_classes));
197
  }
198
 
199
- public function addSpanClass($class) {
200
- $this->_span_classes[] = $class;
 
201
  }
202
 
203
- public function hasSpanClasses() {
204
- return count($this->_span_classes);
205
  }
206
 
207
- public function addChild(RokMenuNode &$node) {
208
- //$ret = parent::addChild($node);
209
- $ret = false;
 
210
 
211
- if ($this->id == $node->getParent()) {
212
- $node->setParentref($this);
213
- $this->_children[$node->getId()] = & $node;
214
- $node->setLevel($this->level + 1);
215
- $ret = true;
216
- }
217
- else if ($this->hasChildren()) {
218
- reset($this->_children);
219
- while (list($key, $value) = each($this->_children)) {
220
- $child =& $this->_children[$key];
221
- if ($child->addChild($node)) {
222
- return true;
223
- }
224
- }
225
- }
226
- if ($ret === true) {
227
- if (!array_search('parent', $this->_li_classes)) {
228
- $this->addListItemClass('parent');
229
- }
230
- }
231
- return $ret;
232
  }
233
  }
234
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
8
 
9
  require_once(dirname(__FILE__) . '/RokMenuNodeBase.php');
10
 
11
+
12
  if (!class_exists('RokMenuNode')) {
13
 
14
  /**
15
  * RokMenuNode
16
  */
17
+ class RokMenuNode extends RokMenuNodeBase
18
+ {
19
+ const PARENT_CSS_CLASS = "parent";
20
+
21
  protected $title = null;
22
  protected $link = null;
23
  protected $cssId = null;
37
  * @access public
38
  * @return string
39
  */
40
+ function getTitle()
41
+ {
42
  return $this->title;
43
  }
44
 
47
  * @access public
48
  * @param string $title
49
  */
50
+ function setTitle($title)
51
+ {
52
  $this->title = $title;
53
  }
54
 
55
+ public function setLink($link)
56
+ {
57
  $this->link = $link;
58
  }
59
 
60
+ public function hasLink()
61
+ {
62
  return (isset($this->link));
63
  }
64
 
65
+ public function getLink()
66
+ {
67
  $outlink = $this->link;
68
  $outlink .= $this->getLinkAdditions(!strpos($this->link, '?'));
69
  return $outlink;
74
  * @access public
75
  * @return string
76
  */
77
+ public function getCssId()
78
+ {
79
  return $this->cssId;
80
  }
81
 
84
  * @access public
85
  * @param string $cssId
86
  */
87
+ public function setCssId($cssId)
88
+ {
89
  $this->cssId = $cssId;
90
  }
91
 
92
+ /**
93
+ * @return bool
94
+ */
95
+ public function hasCssId(){
96
+ return isset($this->cssId);
97
+ }
98
+
99
  /**
100
  * Gets the target
101
  * @access public
102
  * @return string the target
103
  */
104
+ public function getTarget()
105
+ {
106
  return $this->target;
107
  }
108
 
111
  * @access public
112
  * @param string the target $target
113
  */
114
+ public function setTarget($target)
115
+ {
116
  $this->target = $target;
117
  }
118
 
119
+ /**
120
+ * @return bool
121
+ */
122
+ public function hasTarget()
123
+ {
124
+ return isset($this->target);
125
+ }
126
+
127
+ public function addAttribute($key, $value)
128
+ {
129
  $this->attributes[$key] = $value;
130
  }
131
 
132
+ public function getAttribute($key)
133
+ {
134
  if (array_key_exists($key, $this->attributes))
135
  return $this->attributes[$key];
136
  else
137
  return false;
138
  }
139
 
140
+ /**
141
+ * @param $key
142
+ * @return bool
143
+ */
144
+ public function hasAttribute($key){
145
+ return array_key_exists($key, $this->attributes);
146
+ }
147
+
148
+ public function getAttributes()
149
+ {
150
  return $this->attributes;
151
  }
152
 
153
+ public function addLinkAddition($name, $value)
154
+ {
155
  $this->_link_additions[$name] = $value;
156
  }
157
 
158
+ public function getLinkAdditions($starting_query = false, $starting_seperator = false)
159
+ {
160
  $link_additions = " ";
161
  reset($this->_link_additions);
162
  $i = 0;
163
+ foreach ($this->_link_additions as $key => $value) {
164
  $link_additions .= (($i == 0) && $starting_query) ? '?' : '';
165
  $link_additions .= (($i == 0) && !$starting_query) ? '&' : '';
166
  $link_additions .= ($i > 0) ? '&' : '';
170
  return rtrim(ltrim($link_additions));
171
  }
172
 
173
+ public function getLinkAdditionsArray()
174
+ {
175
+ return $this->_link_additions;
176
+ }
177
+
178
+ public function hasLinkAdditions()
179
+ {
180
+ return (count($this->_link_additions) > 0) ? true : false;
181
  }
182
 
183
+ public function addLinkAttrib($name, $value)
184
+ {
185
  $this->_link_attribs[$name] = $value;
186
  }
187
 
188
+ public function getLinkAttribs()
189
+ {
190
  $link_attribs = " ";
191
+ foreach ($this->_link_attribs as $key => $value) {
 
192
  $link_attribs .= $key . "='" . $value . "' ";
193
  }
194
  return rtrim(ltrim($link_attribs));
195
  }
196
 
197
+ public function getLinkAttribsArray()
198
+ {
199
+ return $this->_link_attribs;
200
  }
201
 
202
+ public function hasLinkAttribs()
203
+ {
204
+ return (count($this->_link_attribs) > 0) ? true : false;
 
 
 
 
 
205
  }
206
 
207
+ public function getListItemClasses()
208
+ {
209
+ return implode(" ", $this->_li_classes);
210
  }
211
 
212
+ public function addListItemClass($class)
213
+ {
214
+ if (!in_array($class, $this->_li_classes))
215
+ $this->_li_classes[] = $class;
216
  }
217
 
218
+ public function hasListItemClasses()
219
+ {
220
+ return (count($this->_li_classes) > 0) ? true : false;
 
 
 
 
 
221
  }
222
 
223
+ public function setListItemClasses($classes = array()){
224
+ $this->_li_classes = $classes;
225
  }
226
 
227
+ public function getLinkClasses()
228
+ {
229
+ return implode(" ", $this->_a_classes);
230
  }
231
 
232
+ public function addLinkClass($class)
233
+ {
234
+ if (!in_array($class, $this->_a_classes))
235
+ $this->_a_classes[] = $class;
 
 
 
 
236
  }
237
 
238
+ public function hasLinkClasses()
239
+ {
240
+ return (count($this->_a_classes) > 0) ? true : false;
241
  }
242
 
243
+ public function setLinkClasses($classes = array()){
244
+ $this->_a_classes = $classes;
245
  }
246
 
247
+ public function getSpanClasses()
248
+ {
249
+ return implode(" ", $this->_span_classes);
250
+ }
251
 
252
+ public function addSpanClass($class)
253
+ {
254
+ if (!in_array($class, $this->_span_classes))
255
+ $this->_span_classes[] = $class;
256
+ }
257
+
258
+ public function hasSpanClasses()
259
+ {
260
+ return (count($this->_span_classes) > 0) ? true : false;
261
+ }
262
+
263
+ public function setSpanClasses($classes = array()){
264
+ $this->_span_classes = $classes;
265
+ }
266
+
267
+
268
+ public function addChild(RokMenuNodeBase &$node)
269
+ {
270
+ parent::addChild($node);
271
+ $this->addListItemClass(self::PARENT_CSS_CLASS);
 
272
  }
273
  }
274
  }
widgets/gantrymenu/libs/librokmenu/RokMenuNodeBase.php CHANGED
@@ -1,25 +1,49 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
  */
8
 
 
 
9
  if (!class_exists('RokMenuNodeBase')) {
10
 
11
  /**
12
  *
13
  */
14
- class RokMenuNodeBase {
 
 
 
 
 
15
  /**
16
- * Base ID for the menu as ultimate parent
17
  */
18
  protected $id = 0;
 
 
 
 
19
  protected $parent = 0;
20
- protected $_parentRef = null;
 
 
 
 
 
 
 
 
21
  protected $level = -1;
22
- protected $_children = array();
 
 
 
 
 
23
 
24
  /**
25
  * Gets the id
@@ -76,124 +100,66 @@ if (!class_exists('RokMenuNodeBase')) {
76
  $this->parent = $parent;
77
  }
78
 
79
- public function setChildren($children){
80
- $this->_children = $children;
81
- }
82
-
83
- public function addChild(RokMenuNode &$node) {
84
- if ($this->id == $node->getParent()) {
85
- $node->setParentref($this);
86
- $this->_children[$node->getId()] = & $node;
87
- $node->setLevel($this->level + 1);
88
- return true;
89
- }
90
- else if ($this->hasChildren()) {
91
- reset($this->_children);
92
- while (list($key, $value) = each($this->_children)) {
93
- $child =& $this->_children[$key];
94
- if ($child->addChild($node)) {
95
- return true;
96
- }
97
- }
98
- }
99
- return false;
100
  }
101
 
102
- public function hasChildren() {
103
- return count($this->_children);
 
 
 
 
104
  }
105
 
106
- public function &getChildren() {
107
- return $this->_children;
 
 
 
 
108
  }
109
 
110
- public function &findChild($node_id) {
111
- if (array_key_exists($node_id, $this->_children)) {
112
- return $this->_children[$node_id];
113
- }
114
- else if ($this->hasChildren()) {
115
- reset($this->_children);
116
- while (list($key, $value) = each($this->_children)) {
117
- $child =& $this->_children[$key];
118
- $wanted_node = $child->findChild($node_id);
119
- if ($wanted_node !== false) {
120
- return $wanted_node;
121
- }
122
- }
123
  }
124
- $ret = false;
125
- return $ret;
 
126
  }
127
 
128
- public function removeChild($node_id) {
129
- if (array_key_exists($node_id, $this->_children)) {
130
- unset($this->_children[$node_id]);
131
- return true;
132
- }
133
- else if ($this->hasChildren()) {
134
- reset($this->_children);
135
- while (list($key, $value) = each($this->_children)) {
136
- $child =& $this->_children[$key];
137
- $ret = $child->removeChild($node_id);
138
- if ($ret === true) {
139
- return $ret;
140
- }
141
- }
142
- }
143
- return false;
144
  }
145
 
146
- public function removeLevel($end) {
147
- if ($this->level == $end) {
148
- $this->_children = array();
149
- }
150
- else if ($this->level < $end) {
151
- if ($this->hasChildren()) {
152
- reset($this->_children);
153
- while (list($key, $value) = each($this->_children)) {
154
- $child =& $this->_children[$key];
155
- $child->removeLevel($end);
156
- }
157
- }
158
- }
159
  }
160
 
161
- public function removeIfNotInTree(&$active_tree, $last_active) {
162
- if (!empty($active_tree)) {
163
-
164
- if (in_array((int) $this->id, $active_tree) && $last_active == $this->id) {
165
- // i am the last node in the active tree
166
- if ($this->hasChildren()) {
167
- reset($this->_children);
168
- while (list($key, $value) = each($this->_children)) {
169
- $child =& $this->_children[$key];
170
- $child->_children = array();
171
- }
172
- }
173
- }
174
- else if (in_array((int) $this->id, $active_tree)) {
175
- // i am in the active tree but not the last node
176
- if ($this->hasChildren()) {
177
- reset($this->_children);
178
- while (list($key, $value) = each($this->_children)) {
179
- $child =& $this->_children[$key];
180
- $child->removeIfNotInTree($active_tree, $last_active);
181
- }
182
- }
183
- }
184
- else {
185
- // i am not in the active tree
186
- $this->_children = array();
187
- }
188
  }
189
- }
190
-
191
- public function getParentRef() {
192
- return $this->_parentRef;
193
- }
194
-
195
- public function setParentref(RokmenuNodeBase & $paentRef) {
196
- $this->_parentRef = &$paentRef;
197
  }
198
  }
199
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
  */
8
 
9
+ require_once(dirname(__FILE__) . '/RokMenuIterator.php');
10
+
11
  if (!class_exists('RokMenuNodeBase')) {
12
 
13
  /**
14
  *
15
  */
16
+ class RokMenuNodeBase implements IteratorAggregate {
17
+
18
+ function getIterator() {
19
+ return new RokMenuIterator($this);
20
+ }
21
+
22
  /**
23
+ * @var int
24
  */
25
  protected $id = 0;
26
+
27
+ /**
28
+ * @var int
29
+ */
30
  protected $parent = 0;
31
+
32
+ /**
33
+ * @var RokMenuNodeBase
34
+ */
35
+ protected $parentRef = null;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
  protected $level = -1;
41
+
42
+ /**
43
+ * @var array
44
+ */
45
+ protected $children = array();
46
+
47
 
48
  /**
49
  * Gets the id
100
  $this->parent = $parent;
101
  }
102
 
103
+ /**
104
+ * @return RokMenuNodeBase
105
+ */
106
+ public function getParentRef() {
107
+ return $this->parentRef;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  }
109
 
110
+ /**
111
+ * @param RokmenuNodeBase $parentRef
112
+ * @return void
113
+ */
114
+ public function setParentRef(RokmenuNodeBase & $parentRef) {
115
+ $this->parentRef = &$parentRef;
116
  }
117
 
118
+ /**
119
+ * @param $children
120
+ * @return void
121
+ */
122
+ public function setChildren(array $children) {
123
+ $this->children = $children;
124
  }
125
 
126
+ /**
127
+ * @param RokMenuNodeBase $node
128
+ * @return void
129
+ */
130
+ public function addChild(RokMenuNodeBase &$node) {
131
+ if (null == $this->children) {
132
+ $this->children = array();
 
 
 
 
 
 
133
  }
134
+ $node->setParentRef($this);
135
+ $node->setLevel($this->getLevel()+1);
136
+ $this->children[$node->getId()] = $node;
137
  }
138
 
139
+ /**
140
+ * @return bool
141
+ */
142
+ public function hasChildren() {
143
+ return (count($this->children)>0)?true:false;
 
 
 
 
 
 
 
 
 
 
 
144
  }
145
 
146
+ /**
147
+ * @return array
148
+ */
149
+ public function &getChildren() {
150
+ return $this->children;
 
 
 
 
 
 
 
 
151
  }
152
 
153
+ /**
154
+ * @param $node_id
155
+ * @return bool
156
+ */
157
+ public function removeChild($node_id) {
158
+ if (array_key_exists($node_id, $this->children)) {
159
+ unset($this->children[$node_id]);
160
+ return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  }
162
+ return false;
 
 
 
 
 
 
 
163
  }
164
  }
165
  }
widgets/gantrymenu/libs/librokmenu/RokMenuNodeTree.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -11,30 +11,157 @@ require_once(dirname(__FILE__) . '/RokMenuNodeBase.php');
11
  require_once(dirname(__FILE__) . '/RokMenuNode.php');
12
 
13
  if (!class_exists('RokMenuNodeTree')) {
14
-
15
  /**
16
  * Rok Nav Menu Tree Class.
17
  */
18
- class RokMenuNodeTree extends RokMenuNodeBase {
19
- function addNode(RokMenuNode $node) {
20
- // Get menu item data
21
- //$node = $this->_getItemData($item);
22
- if ($node !== false) {
23
- return $this->addChild($node);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
25
  else {
26
- return true;
 
 
 
 
 
 
 
 
27
  }
 
28
  }
29
 
30
- function resetTop($top_node_id) {
31
- $new_top_node = $this->findChild($top_node_id);
32
- if ($new_top_node !== false) {
33
- $this->id = $new_top_node->id;
34
- $this->_children = $new_top_node->getChildren();
 
 
 
 
 
 
 
 
35
  }
36
- else {
37
- return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }
39
  }
40
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
11
  require_once(dirname(__FILE__) . '/RokMenuNode.php');
12
 
13
  if (!class_exists('RokMenuNodeTree')) {
 
14
  /**
15
  * Rok Nav Menu Tree Class.
16
  */
17
+ class RokMenuNodeTree extends RokMenuNodeBase
18
+ {
19
+
20
+
21
+ protected $rootid;
22
+
23
+
24
+ public function __construct($rootid = 0){
25
+ $this->rootid = $rootid;
26
+ }
27
+
28
+ /**
29
+ * @param int $top_node_id
30
+ * @return bool
31
+ */
32
+ public function resetTop($top_node_id)
33
+ {
34
+ $new_top = $this->findNode($top_node_id);
35
+ if (!$new_top) return false;
36
+ $this->children = $new_top->getChildren();
37
+ return true;
38
+ }
39
+
40
+ /**
41
+ * @param RokMenuNodeBase $node
42
+ * @return bool
43
+ */
44
+ public function addNode(RokMenuNodeBase &$node)
45
+ {
46
+ if ($node->getParent() == $this->rootid) {
47
+ $this->addChild($node);
48
+ $node->setLevel(0);
49
+ return true;
50
  }
51
  else {
52
+ $iterator = $this->getIterator();
53
+ $childrenIterator = new RecursiveIteratorIterator(new RokMenuIdFilter($iterator, $node->getParent()), RecursiveIteratorIterator::SELF_FIRST);
54
+ foreach ($childrenIterator as $child) {
55
+ if ($child->getId() == $node->getParent()) {
56
+ $child->addChild($node);
57
+ $node->setLevel($childrenIterator->getDepth() + 1);
58
+ return true;
59
+ }
60
+ }
61
  }
62
+ return false;
63
  }
64
 
65
+ /**
66
+ * @param int $id
67
+ * @return bool
68
+ */
69
+ public function findNode($id)
70
+ {
71
+ $iterator = $this->getIterator();
72
+ $childrenIterator = new RecursiveIteratorIterator(new RokMenuIdFilter($iterator, $id), RecursiveIteratorIterator::SELF_FIRST);
73
+ foreach ($childrenIterator as $child) {
74
+ if ($child->getId() == $id) {
75
+ $childref = &$child;
76
+ return $childref;
77
+ }
78
  }
79
+ return false;
80
+ }
81
+
82
+ /**
83
+ * @param int $nodeId
84
+ * @return bool
85
+ */
86
+ public function removeNode($nodeId)
87
+ {
88
+ $iterator = $this->getIterator();
89
+ $childrenIterator = new RecursiveIteratorIterator(new RokMenuIdFilter($iterator, $nodeId), RecursiveIteratorIterator::SELF_FIRST);
90
+ foreach ($childrenIterator as $child) {
91
+ if ($child->getId() == $nodeId) {
92
+ $parent = $child->getParentRef();
93
+ $parent->removeChild($nodeId);
94
+ return true;
95
+ }
96
+ }
97
+ return false;
98
+ }
99
+
100
+ /**
101
+ * @param int $end
102
+ * @return void
103
+ */
104
+ public function removeLevel($end)
105
+ {
106
+ $toRemove = array();
107
+ $iterator = $this->getIterator();
108
+ $childrenIterator = new RecursiveIteratorIterator(new RokMenuGreaterThenLevelFilter($iterator, $end), RecursiveIteratorIterator::SELF_FIRST);
109
+ foreach ($childrenIterator as $child) {
110
+ if ($child->getLevel() > $end) {
111
+ $toRemove[] = $child->getId();
112
+ }
113
+ }
114
+ foreach ($toRemove as $remove_id) {
115
+ $this->removeNode($remove_id);
116
+ }
117
+ }
118
+
119
+ /**
120
+ * @param int $end
121
+ * @return void
122
+ */
123
+ public function removeLevelFromNonActive($active_tree, $end)
124
+ {
125
+ $toRemove = array();
126
+ $iterator = $this->getIterator();
127
+ $childrenIterator = new RecursiveIteratorIterator(new RokMenuNotOnActiveTreeFilter($iterator,$active_tree,$end), RecursiveIteratorIterator::SELF_FIRST);
128
+
129
+ foreach ($childrenIterator as $child) {
130
+ if ($child->getLevel() > $end+1) {
131
+ $toRemove[] = $child->getId();
132
+ }
133
+ }
134
+ foreach ($toRemove as $remove_id) {
135
+ $this->removeNode($remove_id);
136
+ }
137
+ }
138
+
139
+
140
+ /**
141
+ * @param array $active_tree the array of active RokNavMenu items
142
+ * @param int $last_active the id of the last active item in the tree
143
+ * @return void
144
+ */
145
+ public function removeIfNotInTree(&$active_tree, $last_active)
146
+ {
147
+ if (!empty($active_tree)) {
148
+ $toRemove = array();
149
+ $childrenIterator = new RecursiveIteratorIterator($this, RecursiveIteratorIterator::SELF_FIRST);
150
+ foreach ($childrenIterator as $child) {
151
+ if (!in_array($child->getId(), $active_tree) && $last_active == $child->getId()) {
152
+ // i am the last node in the active tree dont show my childs but not my grandchildren
153
+ foreach ($child as $subchild) {
154
+ $toRemove = array_merge($toRemove, array_keys($subchild->getChildren()));
155
+ }
156
+ }
157
+ else if (!in_array($child->getId(), $active_tree) && $child->getParent() != $last_active) {
158
+ // I am not in the active tree and not a child of the last node in the active tree so dont show my children
159
+ $toRemove = array_merge($toRemove, array_keys($child->getChildren()));
160
+ }
161
+ }
162
+ foreach ($toRemove as $remove_id) {
163
+ $this->removeNode($remove_id);
164
+ }
165
  }
166
  }
167
  }
widgets/gantrymenu/libs/librokmenu/RokMenuNotOnActiveTreeFilter.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @version 1.20 October 16, 2011
4
+ * @author RocketTheme http://www.rockettheme.com
5
+ * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
+ */
8
+
9
+ class RokMenuNotOnActiveTreeFilter extends RecursiveFilterIterator {
10
+ protected $active_tree = array();
11
+ protected $level;
12
+
13
+ public function __construct(RecursiveIterator $recursiveIter, $active_tree, $end) {
14
+ $this->level = $end;
15
+ $this->active_tree = $active_tree;
16
+ parent::__construct($recursiveIter);
17
+ }
18
+ public function accept() {
19
+
20
+ if (!array_key_exists($this->current()->getId(),$this->active_tree) && $this->current()->getParent() == end(array_keys($this->active_tree))){
21
+ $this->active_tree[$this->current()->getId()] = $this->current();
22
+ }
23
+ if (array_key_exists($this->current()->getId(),$this->active_tree) && $this->current()->getLevel() > $this->level+1){
24
+ return true;
25
+ }
26
+ else if (!array_key_exists($this->current()->getId(),$this->active_tree) && $this->current()->getLevel() > $this->level){
27
+ return true;
28
+ }
29
+ else if ($this->hasChildren()){
30
+ return true;
31
+ }
32
+ return false;
33
+ }
34
+
35
+ public function getChildren() {
36
+ return new self($this->getInnerIterator()->getChildren(), $this->active_tree, $this->level);
37
+ }
38
+ }
widgets/gantrymenu/libs/librokmenu/RokMenuProvider.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -17,10 +17,25 @@ if (!interface_exists('RokMenuProvider')) {
17
  * @abstract
18
  * @return array of RokMenuNode objects
19
  */
20
- public function getMenuItems();
21
 
22
- public function getActiveBranch();
 
 
 
 
 
 
 
 
 
 
23
 
24
- public function getCurrentNodeId();
 
 
 
 
 
25
  }
26
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
17
  * @abstract
18
  * @return array of RokMenuNode objects
19
  */
20
+ function getActiveBranch();
21
 
22
+ /**
23
+ * @abstract
24
+ * @return int
25
+ */
26
+ function getCurrentNodeId();
27
+
28
+ /**
29
+ * @abstract
30
+ * @return RokMenuNodeTree
31
+ */
32
+ function getMenuTree();
33
 
34
+ /**
35
+ * @abstract
36
+ * @param $args
37
+ * @return void
38
+ */
39
+ function __construct(&$args);
40
  }
41
  }
widgets/gantrymenu/libs/librokmenu/RokMenuRenderer.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @version 1.20 October 16, 2011
4
+ * @author RocketTheme http://www.rockettheme.com
5
+ * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
+ */
8
+
9
+ if (!interface_exists('RokMenuRenderer')) {
10
+
11
+ /**
12
+ * The base class for all data providers for menus
13
+ */
14
+ interface RokMenuRenderer {
15
+ /**
16
+ * @abstract
17
+ * @return void
18
+ */
19
+ public function __construct();
20
+
21
+ /**
22
+ * @abstract
23
+ * @param $args
24
+ * @return void
25
+ */
26
+ public function setArgs(array &$args);
27
+
28
+ /**
29
+ * @abstract
30
+ * @return void
31
+ */
32
+ public function initialize(RokMenuProvider $provider);
33
+
34
+ /**
35
+ * @abstract
36
+ * @return string
37
+ */
38
+ public function renderHeader();
39
+
40
+ /**
41
+ * @abstract
42
+ * @return string
43
+ */
44
+ public function renderMenu();
45
+
46
+ /**
47
+ * @abstract
48
+ * @return string
49
+ */
50
+ public function renderFooter();
51
+
52
+ /**
53
+ * @abstract
54
+ * @return array
55
+ */
56
+ public function getDefaults();
57
+
58
+ }
59
+ }
widgets/gantrymenu/libs/librokmenu/RokMenuTheme.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -13,10 +13,24 @@ if (!interface_exists('RokMenuTheme')) {
13
  */
14
  interface RokMenuTheme {
15
 
 
 
 
 
16
  public function getDefaults();
17
 
 
 
 
 
 
18
  public function getFormatter($args);
19
 
 
 
 
 
 
20
  public function getLayout($args);
21
 
22
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
13
  */
14
  interface RokMenuTheme {
15
 
16
+ /**
17
+ * @abstract
18
+ * @return array
19
+ */
20
  public function getDefaults();
21
 
22
+ /**
23
+ * @abstract
24
+ * @param $args array
25
+ * @return RokMenuFormatter
26
+ */
27
  public function getFormatter($args);
28
 
29
+ /**
30
+ * @abstract
31
+ * @param $args
32
+ * @return RokMenuLayout
33
+ */
34
  public function getLayout($args);
35
 
36
  }
widgets/gantrymenu/libs/librokmenu/includes.php CHANGED
@@ -1,20 +1,32 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
- * @author RocketTheme http://www.rockettheme.com
5
- * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
- * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
  */
8
 
9
- require_once(dirname(__FILE__).'/RokMenu.php');
10
- require_once(dirname(__FILE__).'/AbstractRokMenuFormatter.php');
11
- require_once(dirname(__FILE__).'/AbstractRokMenuLayout.php');
12
- require_once(dirname(__FILE__).'/AbstractRokMenuProvider.php');
13
- require_once(dirname(__FILE__).'/AbstractRokMenuTheme.php');
14
- require_once(dirname(__FILE__).'/RokMenuFormatter.php');
15
- require_once(dirname(__FILE__).'/RokMenuLayout.php');
16
- require_once(dirname(__FILE__).'/RokMenuNode.php');
17
- require_once(dirname(__FILE__).'/RokMenuNodeBase.php');
18
- require_once(dirname(__FILE__).'/RokMenuProvider.php');
19
- require_once(dirname(__FILE__).'/RokMenuTheme.php');
20
- require_once(dirname(__FILE__).'/RokMenuNodeTree.php');
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
+ * @author RocketTheme http://www.rockettheme.com
5
+ * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
  */
8
 
9
+
10
+ require_once(dirname(__FILE__) . '/RokMenuNodeBase.php');
11
+ require_once(dirname(__FILE__) . '/RokMenuIterator.php');
12
+ require_once(dirname(__FILE__) . '/RokMenuIdFilter.php');
13
+ require_once(dirname(__FILE__) . '/RokMenuGreaterThenLevelFilter.php');
14
+ require_once(dirname(__FILE__) . '/RokMenuNotOnActiveTreeFilter.php');
15
+ require_once(dirname(__FILE__) . '/RokMenuNode.php');
16
+ require_once(dirname(__FILE__) . '/RokMenuNodeTree.php');
17
+
18
+ require_once(dirname(__FILE__) . '/RokMenuFormatter.php');
19
+ require_once(dirname(__FILE__) . '/RokMenuLayout.php');
20
+ require_once(dirname(__FILE__) . '/RokMenuProvider.php');
21
+ require_once(dirname(__FILE__) . '/RokMenuTheme.php');
22
+ require_once(dirname(__FILE__) . '/RokMenuRenderer.php');
23
+
24
+
25
+ require_once(dirname(__FILE__) . '/AbstractRokMenuFormatter.php');
26
+ require_once(dirname(__FILE__) . '/AbstractRokMenuLayout.php');
27
+ require_once(dirname(__FILE__) . '/AbstractRokMenuProvider.php');
28
+ require_once(dirname(__FILE__) . '/AbstractRokMenuTheme.php');
29
+
30
+ require_once(dirname(__FILE__) . '/RokMenuDefaultRenderer.php');
31
+
32
+ require_once(dirname(__FILE__) . '/RokMenu.php');
widgets/gantrymenu/libs/librokmenu/index.html CHANGED
@@ -0,0 +1 @@
 
1
+ <html><body bgcolor="#FFFFFF"></body></html>
widgets/gantrymenu/libs/providers/GantryMenuProviderWordpress.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
@@ -13,7 +13,7 @@ if (!class_exists('GantryMenuProviderWordpress')) {
13
  protected $current_url;
14
  const PREFIX = "gantrymenu_";
15
 
16
- public function __construct($args) {
17
  parent::__construct($args);
18
  $this->current_url = $this->currentPageURL();
19
  }
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
13
  protected $current_url;
14
  const PREFIX = "gantrymenu_";
15
 
16
+ public function __construct(&$args) {
17
  parent::__construct($args);
18
  $this->current_url = $this->currentPageURL();
19
  }
widgets/gantrymenu/libs/renderers/GantryMenuRendererWordpress.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @version $Id$
4
+ * @author RocketTheme http://www.rockettheme.com
5
+ * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
7
+ */
8
+
9
+ class GantryMenuRendererWordpress extends RokMenuDefaultRenderer
10
+ {
11
+ // public function renderHeader(){
12
+ // parent::renderHeader();
13
+ // $doc = &JFactory::getDocument();
14
+ //
15
+ // foreach($this->layout->getScriptFiles() as $script){
16
+ // $doc->addScript($script['relative']);
17
+ // }
18
+ //
19
+ // foreach($this->layout->getStyleFiles() as $style){
20
+ // $doc->addStyleSheet($style['relative']);
21
+ // }
22
+ // $doc->addScriptDeclaration($this->layout->getInlineScript());
23
+ // $doc->addStyleDeclaration($this->layout->getInlineStyle());
24
+ // }
25
+ }
widgets/gantrymenu/libs/renderers/index.html ADDED
File without changes
widgets/iphonemenu.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/links.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/logo.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/menu.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/meta.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/overridesmap.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/pages.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/recentcomments.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/recentposts.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/resetsettings.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/totop.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
widgets/viewswitcher.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * @version 1.19 September 20, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
1
  <?php
2
  /**
3
+ * @version 1.20 October 16, 2011
4
  * @author RocketTheme http://www.rockettheme.com
5
  * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
6
  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only