From de85e88b41364ecdbd7c22be22f88ae3008b1af7 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Sun, 13 Jun 2010 23:11:38 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=B0=20trunk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +YUCHENG HU+ git-svn-id: https://svn.code.sf.net/p/hawebs/svn@316 a2543c7e-f6e9-4f8a-8bff-1ffc34733512 --- .../components/com_weblinks/config.xml | 34 + .../components/com_weblinks/controller.php | 205 +++++ .../components/com_weblinks/index.html | 1 + .../components/com_weblinks/models/index.html | 1 + .../com_weblinks/models/weblink.php | 389 +++++++++ .../com_weblinks/models/weblink.xml | 11 + .../com_weblinks/models/weblinks.php | 190 +++++ .../components/com_weblinks/tables/index.html | 1 + .../com_weblinks/tables/weblink.php | 190 +++++ .../components/com_weblinks/views/index.html | 1 + .../com_weblinks/views/weblink/index.html | 1 + .../com_weblinks/views/weblink/tmpl/form.php | 148 ++++ .../views/weblink/tmpl/index.html | 1 + .../com_weblinks/views/weblink/view.html.php | 111 +++ .../com_weblinks/views/weblinks/index.html | 1 + .../views/weblinks/tmpl/default.php | 141 ++++ .../views/weblinks/tmpl/index.html | 1 + .../com_weblinks/views/weblinks/view.html.php | 70 ++ .../components/com_weblinks/weblinks.php | 33 + .../components/com_weblinks/weblinks.xml | 12 + .../components/com_xmap/admin.css | 329 ++++++++ .../components/com_xmap/admin.js | 719 ++++++++++++++++ .../components/com_xmap/admin.xmap.html.php | 795 ++++++++++++++++++ .../components/com_xmap/admin.xmap.php | 59 ++ .../components/com_xmap/ajaxResponse.php | 370 ++++++++ .../components/com_xmap/classes/XmapAdmin.php | 385 +++++++++ .../components/com_xmap/classes/XmapCache.php | 34 + .../com_xmap/classes/XmapConfig.php | 284 +++++++ .../components/com_xmap/classes/XmapNav.php | 162 ++++ .../com_xmap/classes/XmapPlugin.php | 132 +++ .../com_xmap/classes/XmapPluginInstaller.php | 279 ++++++ .../com_xmap/classes/XmapPlugins.php | 66 ++ .../com_xmap/classes/XmapSitemap.php | 331 ++++++++ .../components/com_xmap/classes/index.html | 4 + .../components/com_xmap/elements/index.html | 4 + .../components/com_xmap/elements/sitemap.php | 32 + .../com_xmap/extensions/com_acymailing.php | 154 ++++ .../extensions/com_acymailing.xml.txt | 74 ++ .../com_xmap/extensions/com_agora.php | 201 +++++ .../com_xmap/extensions/com_agora.xml | 105 +++ .../extensions/com_cmsshopbuilder.php | 148 ++++ .../extensions/com_cmsshopbuilder.xml | 75 ++ .../com_xmap/extensions/com_contact.php | 126 +++ .../com_xmap/extensions/com_contact.xml | 74 ++ .../com_xmap/extensions/com_content.php | 526 ++++++++++++ .../com_xmap/extensions/com_content.xml | 115 +++ .../com_xmap/extensions/com_docman.php | 153 ++++ .../com_xmap/extensions/com_docman.xml.txt | 76 ++ .../com_xmap/extensions/com_eventlist.php | 235 ++++++ .../com_xmap/extensions/com_eventlist.xml | 75 ++ .../com_xmap/extensions/com_g2bridge.php | 180 ++++ .../com_xmap/extensions/com_g2bridge.xml | 73 ++ .../com_xmap/extensions/com_glossary.php | 206 +++++ .../com_xmap/extensions/com_glossary.xml | 74 ++ .../com_xmap/extensions/com_hotproperty.php | 371 ++++++++ .../com_xmap/extensions/com_hotproperty.xml | 137 +++ .../com_xmap/extensions/com_jcalpro.php | 109 +++ .../com_xmap/extensions/com_jcalpro.xml | 73 ++ .../com_xmap/extensions/com_jdownloads.php | 136 +++ .../com_xmap/extensions/com_jdownloads.xml | 75 ++ .../com_xmap/extensions/com_jevents.php | 195 +++++ .../com_xmap/extensions/com_jevents.xml | 74 ++ .../com_xmap/extensions/com_jmovies.php | 132 +++ .../com_xmap/extensions/com_jmovies.xml | 75 ++ .../com_xmap/extensions/com_jomres.php | 99 +++ .../com_xmap/extensions/com_jomres.xml | 43 + .../com_xmap/extensions/com_joomdoc.php | 167 ++++ .../com_xmap/extensions/com_joomdoc.xml | 76 ++ .../com_xmap/extensions/com_joomgallery.php | 126 +++ .../com_xmap/extensions/com_joomgallery.xml | 74 ++ .../components/com_xmap/extensions/com_kb.php | 156 ++++ .../components/com_xmap/extensions/com_kb.xml | 79 ++ .../com_xmap/extensions/com_kunena.php | 147 ++++ .../com_xmap/extensions/com_kunena.xml | 75 ++ .../com_xmap/extensions/com_mtree.php | 150 ++++ .../com_xmap/extensions/com_mtree.xml | 87 ++ .../com_xmap/extensions/com_myblog.php | 315 +++++++ .../com_xmap/extensions/com_myblog.xml | 199 +++++ .../com_xmap/extensions/com_rapidrecipe.php | 173 ++++ .../com_xmap/extensions/com_rapidrecipe.xml | 86 ++ .../com_xmap/extensions/com_remository.php | 108 +++ .../com_xmap/extensions/com_remository.xml | 75 ++ .../com_xmap/extensions/com_resource.php | 187 ++++ .../com_xmap/extensions/com_resource.xml | 74 ++ .../com_xmap/extensions/com_rokdownloads.php | 208 +++++ .../com_xmap/extensions/com_rokdownloads.xml | 75 ++ .../com_xmap/extensions/com_rsgallery2.php | 170 ++++ .../com_xmap/extensions/com_rsgallery2.xml | 81 ++ .../com_xmap/extensions/com_sectionex.php | 328 ++++++++ .../com_xmap/extensions/com_sectionex.xml | 85 ++ .../com_xmap/extensions/com_sobi2.php | 175 ++++ .../com_xmap/extensions/com_sobi2.xml | 86 ++ .../com_xmap/extensions/com_virtuemart.php | 195 +++++ .../com_xmap/extensions/com_virtuemart.xml | 72 ++ .../com_xmap/extensions/com_weblinks.php | 152 ++++ .../com_xmap/extensions/com_weblinks.xml | 74 ++ .../components/com_xmap/extensions/index.html | 4 + .../components/com_xmap/images/bor_bl.gif | Bin 0 -> 192 bytes .../components/com_xmap/images/bor_bot.gif | Bin 0 -> 72 bytes .../components/com_xmap/images/bor_br.gif | Bin 0 -> 198 bytes .../components/com_xmap/images/bor_left.gif | Bin 0 -> 73 bytes .../components/com_xmap/images/bor_right.gif | Bin 0 -> 73 bytes .../components/com_xmap/images/bor_tl.gif | Bin 0 -> 113 bytes .../components/com_xmap/images/bor_top.gif | Bin 0 -> 45 bytes .../components/com_xmap/images/bor_tr.gif | Bin 0 -> 110 bytes .../components/com_xmap/images/default.gif | Bin 0 -> 264 bytes .../components/com_xmap/images/index.html | 4 + .../components/com_xmap/images/logo.jpg | Bin 0 -> 10064 bytes .../components/com_xmap/images/no_default.gif | Bin 0 -> 209 bytes .../components/com_xmap/images/options.gif | Bin 0 -> 219 bytes .../com_xmap/images/options_over.gif | Bin 0 -> 283 bytes .../components/com_xmap/images/optionsbg.gif | Bin 0 -> 59 bytes .../components/com_xmap/index.html | 4 + .../components/com_xmap/install.xmap.php | 82 ++ .../components/com_xmap/language/arabic.php | 186 ++++ .../com_xmap/language/bulgarian.php | 183 ++++ .../components/com_xmap/language/chinese.php | 184 ++++ .../components/com_xmap/language/dutch.php | 188 +++++ .../components/com_xmap/language/english.php | 187 ++++ .../components/com_xmap/language/finnish.php | 187 ++++ .../components/com_xmap/language/french.php | 188 +++++ .../components/com_xmap/language/german.php | 188 +++++ .../com_xmap/language/hungarian.php | 183 ++++ .../com_xmap/language/hungariani.php | 182 ++++ .../components/com_xmap/language/index.html | 4 + .../components/com_xmap/language/italian.php | 187 ++++ .../components/com_xmap/language/polish.php | 185 ++++ .../com_xmap/language/portuguese.php | 186 ++++ .../components/com_xmap/language/romanian.php | 183 ++++ .../components/com_xmap/language/russian.php | 184 ++++ .../components/com_xmap/language/spanish.php | 187 ++++ .../components/com_xmap/language/srpski.php | 185 ++++ .../components/com_xmap/language/swedish.php | 183 ++++ .../components/com_xmap/language/turkish.php | 183 ++++ .../components/com_xmap/manifest.xml | 54 ++ .../components/com_xmap/toolbar.xmap.html.php | 12 + .../components/com_xmap/toolbar.xmap.php | 13 + .../components/com_xmap/uninstall.xmap.php | 25 + 138 files changed, 17492 insertions(+) create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/config.xml create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/controller.php create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/models/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/models/weblink.php create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/models/weblink.xml create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/models/weblinks.php create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/tables/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/tables/weblink.php create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/views/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/tmpl/form.php create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/tmpl/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/view.html.php create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/tmpl/default.php create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/tmpl/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/view.html.php create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/weblinks.php create mode 100644 oss/joomla/trunk/administrator/components/com_weblinks/weblinks.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/admin.css create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/admin.js create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/admin.xmap.html.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/admin.xmap.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/ajaxResponse.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/classes/XmapAdmin.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/classes/XmapCache.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/classes/XmapConfig.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/classes/XmapNav.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPlugin.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPluginInstaller.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPlugins.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/classes/XmapSitemap.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/classes/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/elements/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/elements/sitemap.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_acymailing.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_acymailing.xml.txt create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_agora.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_agora.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_cmsshopbuilder.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_cmsshopbuilder.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_contact.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_contact.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_content.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_content.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_docman.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_docman.xml.txt create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_eventlist.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_eventlist.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_g2bridge.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_g2bridge.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_glossary.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_glossary.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_hotproperty.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_hotproperty.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jcalpro.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jcalpro.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jdownloads.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jdownloads.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jevents.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jevents.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jmovies.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jmovies.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jomres.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jomres.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomdoc.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomdoc.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomgallery.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomgallery.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kb.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kb.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kunena.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kunena.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_mtree.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_mtree.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_myblog.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_myblog.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rapidrecipe.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rapidrecipe.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_remository.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_remository.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_resource.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_resource.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rokdownloads.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rokdownloads.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rsgallery2.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rsgallery2.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sectionex.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sectionex.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sobi2.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sobi2.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_virtuemart.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_virtuemart.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_weblinks.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/com_weblinks.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/extensions/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/bor_bl.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/bor_bot.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/bor_br.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/bor_left.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/bor_right.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/bor_tl.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/bor_top.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/bor_tr.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/default.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/logo.jpg create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/no_default.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/options.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/options_over.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/images/optionsbg.gif create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/install.xmap.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/arabic.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/bulgarian.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/chinese.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/dutch.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/english.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/finnish.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/french.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/german.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/hungarian.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/hungariani.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/index.html create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/italian.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/polish.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/portuguese.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/romanian.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/russian.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/spanish.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/srpski.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/swedish.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/language/turkish.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/manifest.xml create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/toolbar.xmap.html.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/toolbar.xmap.php create mode 100644 oss/joomla/trunk/administrator/components/com_xmap/uninstall.xmap.php diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/config.xml b/oss/joomla/trunk/administrator/components/com_weblinks/config.xml new file mode 100644 index 00000000..81f9574f --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/config.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/controller.php b/oss/joomla/trunk/administrator/components/com_weblinks/controller.php new file mode 100644 index 00000000..5b22426c --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/controller.php @@ -0,0 +1,205 @@ +registerTask( 'add', 'display' ); + $this->registerTask( 'edit', 'display' ); + } + + function display( ) + { + switch($this->getTask()) + { + case 'add' : + { + JRequest::setVar( 'hidemainmenu', 1 ); + JRequest::setVar( 'layout', 'form' ); + JRequest::setVar( 'view' , 'weblink'); + JRequest::setVar( 'edit', false ); + + // Checkout the weblink + $model = $this->getModel('weblink'); + $model->checkout(); + } break; + case 'edit' : + { + JRequest::setVar( 'hidemainmenu', 1 ); + JRequest::setVar( 'layout', 'form' ); + JRequest::setVar( 'view' , 'weblink'); + JRequest::setVar( 'edit', true ); + + // Checkout the weblink + $model = $this->getModel('weblink'); + $model->checkout(); + } break; + } + + parent::display(); + } + + function save() + { + // Check for request forgeries + JRequest::checkToken() or jexit( 'Invalid Token' ); + + $post = JRequest::get('post'); + $cid = JRequest::getVar( 'cid', array(0), 'post', 'array' ); + $post['id'] = (int) $cid[0]; + + $model = $this->getModel('weblink'); + + if ($model->store($post)) { + $msg = JText::_( 'Weblink Saved' ); + } else { + $msg = JText::_( 'Error Saving Weblink' ); + } + + // Check the table in so it can be edited.... we are done with it anyway + $model->checkin(); + $link = 'index.php?option=com_weblinks'; + $this->setRedirect($link, $msg); + } + + function remove() + { + // Check for request forgeries + JRequest::checkToken() or jexit( 'Invalid Token' ); + + $cid = JRequest::getVar( 'cid', array(), 'post', 'array' ); + JArrayHelper::toInteger($cid); + + if (count( $cid ) < 1) { + JError::raiseError(500, JText::_( 'Select an item to delete' ) ); + } + + $model = $this->getModel('weblink'); + if(!$model->delete($cid)) { + echo "\n"; + } + + $this->setRedirect( 'index.php?option=com_weblinks' ); + } + + + function publish() + { + // Check for request forgeries + JRequest::checkToken() or jexit( 'Invalid Token' ); + + $cid = JRequest::getVar( 'cid', array(), 'post', 'array' ); + JArrayHelper::toInteger($cid); + + if (count( $cid ) < 1) { + JError::raiseError(500, JText::_( 'Select an item to publish' ) ); + } + + $model = $this->getModel('weblink'); + if(!$model->publish($cid, 1)) { + echo "\n"; + } + + $this->setRedirect( 'index.php?option=com_weblinks' ); + } + + + function unpublish() + { + // Check for request forgeries + JRequest::checkToken() or jexit( 'Invalid Token' ); + + $cid = JRequest::getVar( 'cid', array(), 'post', 'array' ); + JArrayHelper::toInteger($cid); + + if (count( $cid ) < 1) { + JError::raiseError(500, JText::_( 'Select an item to unpublish' ) ); + } + + $model = $this->getModel('weblink'); + if(!$model->publish($cid, 0)) { + echo "\n"; + } + + $this->setRedirect( 'index.php?option=com_weblinks' ); + } + + function cancel() + { + // Check for request forgeries + JRequest::checkToken() or jexit( 'Invalid Token' ); + + // Checkin the weblink + $model = $this->getModel('weblink'); + $model->checkin(); + + $this->setRedirect( 'index.php?option=com_weblinks' ); + } + + + function orderup() + { + // Check for request forgeries + JRequest::checkToken() or jexit( 'Invalid Token' ); + + $model = $this->getModel('weblink'); + $model->move(-1); + + $this->setRedirect( 'index.php?option=com_weblinks'); + } + + function orderdown() + { + // Check for request forgeries + JRequest::checkToken() or jexit( 'Invalid Token' ); + + $model = $this->getModel('weblink'); + $model->move(1); + + $this->setRedirect( 'index.php?option=com_weblinks'); + } + + function saveorder() + { + // Check for request forgeries + JRequest::checkToken() or jexit( 'Invalid Token' ); + + $cid = JRequest::getVar( 'cid', array(), 'post', 'array' ); + $order = JRequest::getVar( 'order', array(), 'post', 'array' ); + JArrayHelper::toInteger($cid); + JArrayHelper::toInteger($order); + + $model = $this->getModel('weblink'); + $model->saveorder($cid, $order); + + $msg = JText::_( 'New ordering saved' ); + $this->setRedirect( 'index.php?option=com_weblinks', $msg ); + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/index.html b/oss/joomla/trunk/administrator/components/com_weblinks/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/models/index.html b/oss/joomla/trunk/administrator/components/com_weblinks/models/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/models/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/models/weblink.php b/oss/joomla/trunk/administrator/components/com_weblinks/models/weblink.php new file mode 100644 index 00000000..f155f709 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/models/weblink.php @@ -0,0 +1,389 @@ +setId((int)$array[0]); + } + + /** + * Method to set the weblink identifier + * + * @access public + * @param int Weblink identifier + */ + function setId($id) + { + // Set weblink id and wipe data + $this->_id = $id; + $this->_data = null; + } + + /** + * Method to get a weblink + * + * @since 1.5 + */ + function &getData() + { + // Load the weblink data + if ($this->_loadData()) + { + // Initialize some variables + $user = &JFactory::getUser(); + + // Check to see if the category is published + if (!$this->_data->cat_pub) { + JError::raiseError( 404, JText::_("Resource Not Found") ); + return; + } + + // Check whether category access level allows access + if ($this->_data->cat_access > $user->get('aid', 0)) { + JError::raiseError( 403, JText::_('ALERTNOTAUTH') ); + return; + } + } + else $this->_initData(); + + return $this->_data; + } + + /** + * Tests if weblink is checked out + * + * @access public + * @param int A user id + * @return boolean True if checked out + * @since 1.5 + */ + function isCheckedOut( $uid=0 ) + { + if ($this->_loadData()) + { + if ($uid) { + return ($this->_data->checked_out && $this->_data->checked_out != $uid); + } else { + return $this->_data->checked_out; + } + } + } + + /** + * Method to checkin/unlock the weblink + * + * @access public + * @return boolean True on success + * @since 1.5 + */ + function checkin() + { + if ($this->_id) + { + $weblink = & $this->getTable(); + if(! $weblink->checkin($this->_id)) { + $this->setError($this->_db->getErrorMsg()); + return false; + } + } + return false; + } + + /** + * Method to checkout/lock the weblink + * + * @access public + * @param int $uid User ID of the user checking the article out + * @return boolean True on success + * @since 1.5 + */ + function checkout($uid = null) + { + if ($this->_id) + { + // Make sure we have a user id to checkout the article with + if (is_null($uid)) { + $user =& JFactory::getUser(); + $uid = $user->get('id'); + } + // Lets get to it and checkout the thing... + $weblink = & $this->getTable(); + if(!$weblink->checkout($uid, $this->_id)) { + $this->setError($this->_db->getErrorMsg()); + return false; + } + + return true; + } + return false; + } + + /** + * Method to store the weblink + * + * @access public + * @return boolean True on success + * @since 1.5 + */ + function store($data) + { + $row =& $this->getTable(); + + // Bind the form fields to the web link table + if (!$row->bind($data)) { + $this->setError($this->_db->getErrorMsg()); + return false; + } + + // Create the timestamp for the date + $row->date = gmdate('Y-m-d H:i:s'); + + // if new item, order last in appropriate group + if (!$row->id) { + $where = 'catid = ' . (int) $row->catid ; + $row->ordering = $row->getNextOrder( $where ); + } + + // Make sure the web link table is valid + if (!$row->check()) { + $this->setError($this->_db->getErrorMsg()); + return false; + } + + // Store the web link table to the database + if (!$row->store()) { + $this->setError($this->_db->getErrorMsg()); + return false; + } + + return true; + } + + /** + * Method to remove a weblink + * + * @access public + * @return boolean True on success + * @since 1.5 + */ + function delete($cid = array()) + { + $result = false; + + if (count( $cid )) + { + JArrayHelper::toInteger($cid); + $cids = implode( ',', $cid ); + $query = 'DELETE FROM #__weblinks' + . ' WHERE id IN ( '.$cids.' )'; + $this->_db->setQuery( $query ); + if(!$this->_db->query()) { + $this->setError($this->_db->getErrorMsg()); + return false; + } + } + + return true; + } + + /** + * Method to (un)publish a weblink + * + * @access public + * @return boolean True on success + * @since 1.5 + */ + function publish($cid = array(), $publish = 1) + { + $user =& JFactory::getUser(); + + if (count( $cid )) + { + JArrayHelper::toInteger($cid); + $cids = implode( ',', $cid ); + + $query = 'UPDATE #__weblinks' + . ' SET published = '.(int) $publish + . ' WHERE id IN ( '.$cids.' )' + . ' AND ( checked_out = 0 OR ( checked_out = '.(int) $user->get('id').' ) )' + ; + $this->_db->setQuery( $query ); + if (!$this->_db->query()) { + $this->setError($this->_db->getErrorMsg()); + return false; + } + } + + return true; + } + + /** + * Method to move a weblink + * + * @access public + * @return boolean True on success + * @since 1.5 + */ + function move($direction) + { + $row =& $this->getTable(); + if (!$row->load($this->_id)) { + $this->setError($this->_db->getErrorMsg()); + return false; + } + + if (!$row->move( $direction, ' catid = '.(int) $row->catid.' AND published >= 0 ' )) { + $this->setError($this->_db->getErrorMsg()); + return false; + } + + return true; + } + + /** + * Method to move a weblink + * + * @access public + * @return boolean True on success + * @since 1.5 + */ + function saveorder($cid = array(), $order) + { + $row =& $this->getTable(); + $groupings = array(); + + // update ordering values + for( $i=0; $i < count($cid); $i++ ) + { + $row->load( (int) $cid[$i] ); + // track categories + $groupings[] = $row->catid; + + if ($row->ordering != $order[$i]) + { + $row->ordering = $order[$i]; + if (!$row->store()) { + $this->setError($this->_db->getErrorMsg()); + return false; + } + } + } + + // execute updateOrder for each parent group + $groupings = array_unique( $groupings ); + foreach ($groupings as $group){ + $row->reorder('catid = '.(int) $group); + } + + return true; + } + + /** + * Method to load content weblink data + * + * @access private + * @return boolean True on success + * @since 1.5 + */ + function _loadData() + { + // Lets load the content if it doesn't already exist + if (empty($this->_data)) + { + $query = 'SELECT w.*, cc.title AS category,'. + ' cc.published AS cat_pub, cc.access AS cat_access'. + ' FROM #__weblinks AS w' . + ' LEFT JOIN #__categories AS cc ON cc.id = w.catid' . + ' WHERE w.id = '.(int) $this->_id; + $this->_db->setQuery($query); + $this->_data = $this->_db->loadObject(); + return (boolean) $this->_data; + } + return true; + } + + /** + * Method to initialise the weblink data + * + * @access private + * @return boolean True on success + * @since 1.5 + */ + function _initData() + { + // Lets load the content if it doesn't already exist + if (empty($this->_data)) + { + $weblink = new stdClass(); + $weblink->id = 0; + $weblink->catid = 0; + $weblink->sid = 0; + $weblink->title = null; + $weblink->alias = null; + $weblink->url = null; + $weblink->description = null; + $weblink->date = null; + $weblink->hits = 0; + $weblink->published = 0; + $weblink->checked_out = 0; + $weblink->checked_out_time = 0; + $weblink->ordering = 0; + $weblink->archived = 0; + $weblink->approved = 0; + $weblink->params = null; + $weblink->category = null; + $this->_data = $weblink; + return (boolean) $this->_data; + } + return true; + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/models/weblink.xml b/oss/joomla/trunk/administrator/components/com_weblinks/models/weblink.xml new file mode 100644 index 00000000..4102b320 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/models/weblink.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/models/weblinks.php b/oss/joomla/trunk/administrator/components/com_weblinks/models/weblinks.php new file mode 100644 index 00000000..8cd5ec0b --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/models/weblinks.php @@ -0,0 +1,190 @@ +getUserStateFromRequest( 'global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int' ); + $limitstart = $mainframe->getUserStateFromRequest( $option.'.limitstart', 'limitstart', 0, 'int' ); + + // In case limit has been changed, adjust limitstart accordingly + $limitstart = ($limit != 0 ? (floor($limitstart / $limit) * $limit) : 0); + + $this->setState('limit', $limit); + $this->setState('limitstart', $limitstart); + } + + /** + * Method to get weblinks item data + * + * @access public + * @return array + */ + function getData() + { + // Lets load the content if it doesn't already exist + if (empty($this->_data)) + { + $query = $this->_buildQuery(); + $this->_data = $this->_getList($query, $this->getState('limitstart'), $this->getState('limit')); + } + + return $this->_data; + } + + /** + * Method to get the total number of weblink items + * + * @access public + * @return integer + */ + function getTotal() + { + // Lets load the content if it doesn't already exist + if (empty($this->_total)) + { + $query = $this->_buildQuery(); + $this->_total = $this->_getListCount($query); + } + + return $this->_total; + } + + /** + * Method to get a pagination object for the weblinks + * + * @access public + * @return integer + */ + function getPagination() + { + // Lets load the content if it doesn't already exist + if (empty($this->_pagination)) + { + jimport('joomla.html.pagination'); + $this->_pagination = new JPagination( $this->getTotal(), $this->getState('limitstart'), $this->getState('limit') ); + } + + return $this->_pagination; + } + + function _buildQuery() + { + // Get the WHERE and ORDER BY clauses for the query + $where = $this->_buildContentWhere(); + $orderby = $this->_buildContentOrderBy(); + + $query = ' SELECT a.*, cc.title AS category, u.name AS editor ' + . ' FROM #__weblinks AS a ' + . ' LEFT JOIN #__categories AS cc ON cc.id = a.catid ' + . ' LEFT JOIN #__users AS u ON u.id = a.checked_out ' + . $where + . $orderby + ; + + return $query; + } + + function _buildContentOrderBy() + { + global $mainframe, $option; + + $filter_order = $mainframe->getUserStateFromRequest( $option.'filter_order', 'filter_order', 'a.ordering', 'cmd' ); + $filter_order_Dir = $mainframe->getUserStateFromRequest( $option.'filter_order_Dir', 'filter_order_Dir', '', 'word' ); + + if ($filter_order == 'a.ordering'){ + $orderby = ' ORDER BY category, a.ordering '.$filter_order_Dir; + } else { + $orderby = ' ORDER BY '.$filter_order.' '.$filter_order_Dir.' , category, a.ordering '; + } + + return $orderby; + } + + function _buildContentWhere() + { + global $mainframe, $option; + $db =& JFactory::getDBO(); + $filter_state = $mainframe->getUserStateFromRequest( $option.'filter_state', 'filter_state', '', 'word' ); + $filter_catid = $mainframe->getUserStateFromRequest( $option.'filter_catid', 'filter_catid', 0, 'int' ); + $filter_order = $mainframe->getUserStateFromRequest( $option.'filter_order', 'filter_order', 'a.ordering', 'cmd' ); + $filter_order_Dir = $mainframe->getUserStateFromRequest( $option.'filter_order_Dir', 'filter_order_Dir', '', 'word' ); + $search = $mainframe->getUserStateFromRequest( $option.'search', 'search', '', 'string' ); + $search = JString::strtolower( $search ); + + $where = array(); + + if ($filter_catid > 0) { + $where[] = 'a.catid = '.(int) $filter_catid; + } + if ($search) { + $where[] = 'LOWER(a.title) LIKE '.$db->Quote( '%'.$db->getEscaped( $search, true ).'%', false ); + } + if ( $filter_state ) { + if ( $filter_state == 'P' ) { + $where[] = 'a.published = 1'; + } else if ($filter_state == 'U' ) { + $where[] = 'a.published = 0'; + } + } + + $where = ( count( $where ) ? ' WHERE '. implode( ' AND ', $where ) : '' ); + + return $where; + } +} diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/tables/index.html b/oss/joomla/trunk/administrator/components/com_weblinks/tables/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/tables/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/tables/weblink.php b/oss/joomla/trunk/administrator/components/com_weblinks/tables/weblink.php new file mode 100644 index 00000000..b09b1836 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/tables/weblink.php @@ -0,0 +1,190 @@ +loadArray($array['params']); + $array['params'] = $registry->toString(); + } + + return parent::bind($array, $ignore); + } + + /** + * Overloaded check method to ensure data integrity + * + * @access public + * @return boolean True on success + * @since 1.0 + */ + function check() + { + if (JFilterInput::checkAttribute(array ('href', $this->url))) { + $this->setError( JText::_('Please provide a valid URL')); + return false; + } + + //Remove all HTML tags from the title and description + $filter = new JFilterInput(array(), array(), 0, 0); + $this->description = $filter->clean($this->description); + $this->title = $filter->clean($this->title); + + /** check for valid name */ + if (trim($this->title) == '') { + $this->setError(JText::_('Your Weblink must contain a title.')); + return false; + } + + if (!(eregi('http://', $this->url) || (eregi('https://', $this->url)) || (eregi('ftp://', $this->url)))) { + $this->url = 'http://'.$this->url; + } + + /** check for existing name */ + $query = 'SELECT id FROM #__weblinks WHERE title = '.$this->_db->Quote($this->title).' AND catid = '.(int) $this->catid; + $this->_db->setQuery($query); + + $xid = intval($this->_db->loadResult()); + if ($xid && $xid != intval($this->id)) { + $this->setError(JText::sprintf('WARNNAMETRYAGAIN', JText::_('Web Link'))); + return false; + } + + if(empty($this->alias)) { + $this->alias = $this->title; + } + $this->alias = JFilterOutput::stringURLSafe($this->alias); + if(trim(str_replace('-','',$this->alias)) == '') { + $datenow =& JFactory::getDate(); + $this->alias = $datenow->toFormat("%Y-%m-%d-%H-%M-%S"); + } + + return true; + } +} diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/views/index.html b/oss/joomla/trunk/administrator/components/com_weblinks/views/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/views/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/index.html b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/tmpl/form.php b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/tmpl/form.php new file mode 100644 index 00000000..35b16a48 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/tmpl/form.php @@ -0,0 +1,148 @@ + + + + +[ ' . $text.' ]' ); + JToolBarHelper::save(); + if (!$edit) { + JToolBarHelper::cancel(); + } else { + // for existing items the button is renamed `close` + JToolBarHelper::cancel( 'cancel', 'Close' ); + } + JToolBarHelper::help( 'screen.weblink.edit' ); +?> + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ : + + lists['published']; ?> +
+ + + lists['catid']; ?> +
+ + + +
+ + + lists['ordering']; ?> +
+
+
+
+
+ + + + + + +
+ params->render();?> +
+
+
+ +
+
+ + + + + + +
+ +
+
+
+
+ + + + + +
\ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/tmpl/index.html b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/view.html.php b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/view.html.php new file mode 100644 index 00000000..b069a3aa --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblink/view.html.php @@ -0,0 +1,111 @@ +getLayout() == 'form') { + $this->_displayForm($tpl); + return; + } + + //get the weblink + $weblink =& $this->get('data'); + + if ($weblink->url) { + // redirects to url if matching id found + $mainframe->redirect($weblink->url); + } + + parent::display($tpl); + } + + function _displayForm($tpl) + { + global $mainframe, $option; + + $db =& JFactory::getDBO(); + $uri =& JFactory::getURI(); + $user =& JFactory::getUser(); + $model =& $this->getModel(); + + + $lists = array(); + + //get the weblink + $weblink =& $this->get('data'); + $isNew = ($weblink->id < 1); + + // fail if checked out not by 'me' + if ($model->isCheckedOut( $user->get('id') )) { + $msg = JText::sprintf( 'DESCBEINGEDITTED', JText::_( 'The weblink' ), $weblink->title ); + $mainframe->redirect( 'index.php?option='. $option, $msg ); + } + + // Edit or Create? + if (!$isNew) + { + $model->checkout( $user->get('id') ); + } + else + { + // initialise new record + $weblink->published = 1; + $weblink->approved = 1; + $weblink->order = 0; + $weblink->catid = JRequest::getVar( 'catid', 0, 'post', 'int' ); + } + + // build the html select list for ordering + $query = 'SELECT ordering AS value, title AS text' + . ' FROM #__weblinks' + . ' WHERE catid = ' . (int) $weblink->catid + . ' ORDER BY ordering'; + + $lists['ordering'] = JHTML::_('list.specificordering', $weblink, $weblink->id, $query ); + + // build list of categories + $lists['catid'] = JHTML::_('list.category', 'catid', $option, intval( $weblink->catid ) ); + // build the html select list + $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $weblink->published ); + + //clean weblink data + JFilterOutput::objectHTMLSafe( $weblink, ENT_QUOTES, 'description' ); + + $file = JPATH_COMPONENT.DS.'models'.DS.'weblink.xml'; + $params = new JParameter( $weblink->params, $file ); + + $this->assignRef('lists', $lists); + $this->assignRef('weblink', $weblink); + $this->assignRef('params', $params); + + parent::display($tpl); + } +} diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/index.html b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/tmpl/default.php b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/tmpl/default.php new file mode 100644 index 00000000..767a5f95 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/tmpl/default.php @@ -0,0 +1,141 @@ + + + + +lists['order'] == 'a.ordering'); +?> +
+ + + + + +
+ : + + + + + lists['catid']; + echo $this->lists['state']; + ?> +
+
+ + + + + + + + + + + + + + + + + + + + items ); $i < $n; $i++) + { + $row = &$this->items[$i]; + + $link = JRoute::_( 'index.php?option=com_weblinks&view=weblink&task=edit&cid[]='. $row->id ); + + $checked = JHTML::_('grid.checkedout', $row, $i ); + $published = JHTML::_('grid.published', $row, $i ); + + $row->cat_link = JRoute::_( 'index.php?option=com_categories§ion=com_weblinks&task=edit&type=other&cid[]='. $row->catid ); + ?> + "> + + + + + + + + + + + +
+ + + + + lists['order_Dir'], $this->lists['order'] ); ?> + + lists['order_Dir'], $this->lists['order'] ); ?> + + lists['order_Dir'], $this->lists['order'] ); ?> + items ); ?> + + lists['order_Dir'], $this->lists['order'] ); ?> + + lists['order_Dir'], $this->lists['order'] ); ?> + + lists['order_Dir'], $this->lists['order'] ); ?> +
+ pagination->getListFooter(); ?> +
+ pagination->getRowOffset( $i ); ?> + + + + user->get ('id'), $row->checked_out ) ) { + echo $this->escape($row->title); + } else { + ?> + + + escape($row->title); ?> + + + + + pagination->orderUpIcon( $i, ($row->catid == @$this->items[$i-1]->catid),'orderup', 'Move Up', $ordering ); ?> + pagination->orderDownIcon( $i, $n, ($row->catid == @$this->items[$i+1]->catid), 'orderdown', 'Move Down', $ordering ); ?> + + class="text_area" style="text-align: center" /> + + + + escape($row->category); ?> + + hits; ?> + + id; ?> +
+
+ + + + + + + +
diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/tmpl/index.html b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/tmpl/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/view.html.php b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/view.html.php new file mode 100644 index 00000000..b1fceb85 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/views/weblinks/view.html.php @@ -0,0 +1,70 @@ +getUserStateFromRequest( $option.'filter_state', 'filter_state', '', 'word' ); + $filter_catid = $mainframe->getUserStateFromRequest( $option.'filter_catid', 'filter_catid', 0, 'int' ); + $filter_order = $mainframe->getUserStateFromRequest( $option.'filter_order', 'filter_order', 'a.ordering', 'cmd' ); + $filter_order_Dir = $mainframe->getUserStateFromRequest( $option.'filter_order_Dir', 'filter_order_Dir', '', 'word' ); + $search = $mainframe->getUserStateFromRequest( $option.'search', 'search', '', 'string' ); + $search = JString::strtolower( $search ); + + // Get data from the model + $items = & $this->get( 'Data'); + $total = & $this->get( 'Total'); + $pagination = & $this->get( 'Pagination' ); + + // build list of categories + $javascript = 'onchange="document.adminForm.submit();"'; + $lists['catid'] = JHTML::_('list.category', 'filter_catid', $option, intval( $filter_catid ), $javascript ); + + // state filter + $lists['state'] = JHTML::_('grid.state', $filter_state ); + + // table ordering + $lists['order_Dir'] = $filter_order_Dir; + $lists['order'] = $filter_order; + + // search filter + $lists['search']= $search; + + $this->assignRef('user', JFactory::getUser()); + $this->assignRef('lists', $lists); + $this->assignRef('items', $items); + $this->assignRef('pagination', $pagination); + + parent::display($tpl); + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/weblinks.php b/oss/joomla/trunk/administrator/components/com_weblinks/weblinks.php new file mode 100644 index 00000000..a8ee25cf --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/weblinks.php @@ -0,0 +1,33 @@ +authorize( 'com_weblinks', 'manage' )) { + $mainframe->redirect( 'index.php', JText::_('ALERTNOTAUTH') ); +} + +// Require the base controller +require_once (JPATH_COMPONENT.DS.'controller.php'); + +$controller = new WeblinksController( ); + +// Perform the Request task +$controller->execute( JRequest::getCmd('task')); +$controller->redirect(); \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_weblinks/weblinks.xml b/oss/joomla/trunk/administrator/components/com_weblinks/weblinks.xml new file mode 100644 index 00000000..049c0365 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_weblinks/weblinks.xml @@ -0,0 +1,12 @@ + + + Weblinks + Joomla! Project + April 2006 + (C) 2005 - 2008 Open Source Matters. All rights reserved. + http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL + admin@joomla.org + www.joomla.org + 1.5.0 + This component shows a listing of Weblinks + diff --git a/oss/joomla/trunk/administrator/components/com_xmap/admin.css b/oss/joomla/trunk/administrator/components/com_xmap/admin.css new file mode 100644 index 00000000..952405a1 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/admin.css @@ -0,0 +1,329 @@ +.adminForm label { + white-space: nowrap; +} +.adminForm { + table-layout: auto; + text-align: left; +} +.adminForm td, .adminForm tr { + vertical-align: middle; +} +.adminlist th { + white-space: nowrap; +} +.sitemaps { + width: 6200px; + text-align: left; + z-index: 1; + float: left; +} +#sitemapsouter { + width: 600px; + text-align: left; + z-index: 1; + float: left; +} +.plugin { + width: 500px; + margin: 5px; +} +.plugin div.pluginname { + width: auto; + float: left; + padding: 0px 5px 0px 5px; +} +.plugin div.pluginversion { + width: auto; + float: left; + margin-right: 5px; +} + +.titlebar { + text-align:center; +} + +div.published .titlebar div.tl { + background-color: #0060BF; + color: #FFFFFF; + margin: 0px auto; +} + +div.unpublished .titlebar div.tl { + background-color: #CCCCCC; + color: #000000; + margin: 0px auto; +} + +.titlebar .tl1 { + height: 1px; + width: 494px; +} + +.titlebar .tl2 { + height: 1px; + width: 496px; +} + +.titlebar .tl3 { + height: 1px; + width: 498px; +} + +.published .insidebox { + border: 1px solid #0060BF; + padding: 3px; +} + +.unpublished .insidebox { + border: 1px solid #CCCCCC; + padding: 3px; +} + +.plugin .plugintaskbar { + padding: 3px; + border-top: 1px solid #CCCCCC; +} +.plugin .plugintaskbar a { + display:inline; + margin:5px; +} +.sitemap { + background: url(images/bor_top.gif) top repeat-x; + margin-top: 5px; + width: 530px; + height: auto; + text-align: left; + z-index: 5; +} +.sitemap div.tr { + background: url(images/bor_tr.gif) top right no-repeat; + width: 100%; + height: 25px; +} +.sitemap div.tm { + width: 100%; + height: 25px; +} +.sitemap div.smname { + width: auto; + float: left; + padding: 5px 0px 0px 10px; + font-size: 14px; + color: #53A0DF; + font-weight: bold; +} +.sitemap div.mr { + background: url(images/bor_right.gif) right repeat-y; + width: 100%; +} +.sitemap div.mm { + background: url(images/bor_left.gif) top left repeat-y; + padding: 0px 10px 0px 10px; + width: auto; +} +.sitemap div.tl { + background: url(images/bor_tl.gif) top left no-repeat; + width: 100%; + height: 25px; +} + +.sitemap div.br { + background: url(images/bor_br.gif) bottom right no-repeat; + width: 100%; + height: 25px; +} +.sitemap div.bm { + background: url(images/bor_bot.gif) bottom repeat-x; + width: 100%; + height: 25px; +} +.sitemap div.bl { + background: url(images/bor_bl.gif) bottom left no-repeat; + width: 100%; + height: 25px; +} + +.sitemap div.optionsbut { + background: url(images/options.gif) top right no-repeat; + height: 23px; + float: right; + cursor: pointer; + padding:0px 25px 0px 0px; +} +.sitemap div.optionsbut span { + background: url(images/optionsbg.gif) top left repeat-x; + display: block; + float:left; + height: 20px; + margin: 4px 0px 0px 0px; + padding: 3px 5px 0px 10px; + vertical-align: middle; + color:#53A0DF; +} +.sitemap div.divimgdefault { + width: auto; + height: auto; + float: left; + margin-left: 20px; +} +div#optionsmenu { + position: absolute; + background-color: #EEEEEE; + border: 1px solid #CCCCCC; + width: auto; + z-index: 10; +} +div#optionsmenu div { + margin: 0px; + padding: 3px 10px 3px 10px; + cursor: pointer; +} +div#optionsmenu div:hover { + background-color: #CCCCCC; +} +.sitemap div.menulistouter { + float: left; +} +.sitemap div.menulist span { + padding: 5px; + display: block; +} +.sitemap div.menulist { + width: 200px; + padding: 0px; + border: 1px solid #CCCCCC; +} +.sitemap div.menulist:hover { + border: 1px solid #CCCCCC; +} +.sitemap div.menulist div { + width: 200px; + padding: 0px; + overflow: hidden; + cursor: pointer; +} +.sitemap div.menulist div.menuoptionhover { + background-color: #EEEEEE; +} +div .spacer { + width: 100%; + clear: both; + height: 1px; +} +div#divoptions { + position: absolute; + background-color: #EEEEEE; + cursor: pointer; + z-index: 10; +} +div#divoptions .menuoption { + width: auto; + float: left; + padding: 0px; + margin-left: 5px; + font-size: 10px; +} +div#divoptions .menuoption:hover { + text-decoration: underline; + color: #53A0DF; +} +div.settings { + position: absolute; + z-index: 4; + background-color: #FFFFFF; + border: 8px solid #000000; + width: 650px; + height: auto; + margin: auto; + text-align: left; +} +div.settingssitemap { + width: 650px; + height: auto; + max-height: 500px; + overflow: auto; +} +div.settingsplugin { + width: 500px; + height: auto; +} +div.settingsmenu { + width: 400px; + height: auto; +} +div#divbg { + text-align: center; + position: absolute; + z-index: 2; + top: 0px; + left: 0px; + width: 100%; + height: 100%; + background-color: #000000; +} +div.settingstop { + background-color: #CCCCCC; + color: #FFFFFF; + font-weight: bold; +} +div.settingstop div.settingstoptool { + float: right; +} +div.add_menu_link { + cursor: pointer; + width: auto; + float: left; + padding:5px; +} +div.add_menu_link:hover{ + text-decoration:underline; +} +span.plussign{ + display:block; + border: 1px solid #000000; + color: #000000; + width:10px; + height:13px; + float:left; + padding-left:2px; + margin-right:2px; +} +div.sitemapinfo { + float: left; + width: auto; + margin-left: 30px; +} +div.sitemapinfo div { + border: 1px solid #CCCCCC; + margin-bottom: 3px; +} +div.sitemapinfo div { + text-align: center; +} +div.menulistdrop { + background-color: #EEEEEE; + border: 1px solid #CCCCCC; + position: absolute; + z-index: 10; +} +div.menulistoption { + cursor: pointer; + text-decoration: underline; + width: auto; + float: left; + margin-right: 10px; +} +div#divloading { + background-color: #9F0909; + color: #FFFFFF; + width: auto; + position: absolute; + font-weight: bold; + padding: 5px;; + right: 5px; + z-index: 300; +} + +.tool-tip{ + z-index: 300; +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/admin.js b/oss/joomla/trunk/administrator/components/com_xmap/admin.js new file mode 100644 index 00000000..37722834 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/admin.js @@ -0,0 +1,719 @@ +/** + * $Id: admin.js 82 2008-02-03 23:14:53Z root $ + * $LastChangedDate: 2008-02-03 17:14:53 -0600 (dom, 03 feb 2008) $ + * $LastChangedBy: root $ + * Xmap by Guillermo Vargas + * a sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ +var divloading=null; +var divOptions = null; +var currSitemapMenu = null; +var menudelay=null; + +function menu_listItemTask( id, task, option ) { + var f = document.frmSettings; + cb = eval( 'f.' + id ); + if (cb) { + cb.checked = true; + submitbutton(task); + } + return false; +} + +function changeDisplayImage(sitemap) { + if (document.frmSettings.ext_image.value !='') { + document.frmSettings.imagelib.src='../components/com_xmap/images/' + document.frmSettings.ext_image.value; + } else { + document.frmSettings.imagelib.src='../images/blank.png'; + } +} + +function addExclude(sitemap) { + var exclude = document.frmSettings.exclmenus.value.split(','); + exclude.push( document.frmSettings.excl_menus.value ); + //remove duplicates; + var tmp = new Object(); + for(var i = 0; i < exclude.length; i++) { + var id = parseInt(exclude[i]); + if( isNaN(id)) + continue; + + tmp[ id ] = id; + } + exclude = new Array(); + for(var k in tmp) { + exclude.push( tmp[k] ); + } + document.frmSettings.exclmenus.value = exclude.join(','); +} + +function addSitemap() { + showLoading(); + var myAjax = new Ajax( + ajaxURL +'&action=add_sitemap', + { + method: 'get', + onComplete: showSitemap + }).request(); +} + +function saveProperty(sitemapid,property,value) { + showLoading(); + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: 'option=com_xmap&task=ajax_request&action=save_property&sitemap='+sitemapid+'&property='+property+'&value='+escape(value), + onComplete: checkResultSave.bindAsEventListener(this,[sitemapid]) + }).request(); +} + +function setAsDefault() { + showLoading(); + sitemapid=currSitemapMenu; + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: 'option=com_xmap&task=ajax_request&action=set_default&sitemap='+sitemapid, + onComplete: checkResultSetDefault.bindAsEventListener(this,[sitemapid]) + }).request(); +} + +function changePluginState(pluginid) { + showLoading(); + sitemapid=currSitemapMenu; + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: 'option=com_xmap&task=ajax_request&action=change_plugin_state&plugin='+pluginid, + onComplete: checkResultChangePluginState.bindAsEventListener(this,[pluginid]) + }).request(); +} + +function checkResultChangePluginState (ajaxResponse,pluginid) { + hideLoading(); + var pluginimg = $('pluginstate'+pluginid); + var plugin = $('plugin'+pluginid); + if ( ajaxResponse == '1' ) { + pluginimg.src = 'images/publish_g.png'; + plugin.removeClass('unpublished'); + plugin.addClass('published'); + pluginimg.title='Published'; + } else if ( ajaxResponse == '0' ) { + pluginimg.src = 'images/publish_x.png'; + plugin.removeClass('published'); + plugin.addClass('unpublished'); + pluginimg.title='Unpublished'; + } else { + alert(ajaxResponse); + } +} + +function deleteSitemap() { + if (confirm(deleteSitemapConfirmMessage)) { + showLoading(); + sitemapid=currSitemapMenu; + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: 'option=com_xmap&task=ajax_request&action=delete_sitemap&sitemap='+sitemapid, + onComplete: checkResultDelete.bindAsEventListener(this,[sitemapid]) + }).request(); + } +} + +function uninstallPlugin(pluginid) { + if (confirm(unistallPluginConfirmMessage)) { + showLoading(); + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: 'option=com_xmap&task=ajax_request&action=uninstallplugin&plugin='+pluginid, + onComplete: checkResultUninstallPlugin.bindAsEventListener(this,[pluginid]) + }).request(); + } +} + +function clearCacheSitemap() { + showLoading(); + sitemapid=currSitemapMenu; + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: 'option=com_xmap&task=ajax_request&action=clean_cache_sitemap&sitemap='+sitemapid, + onComplete: function (ajaxResponse) {hideLoading();alert(ajaxResponse);} + }).request(); +} + +function copySitemap() { + showLoading(); + sitemapid=currSitemapMenu; + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: 'option=com_xmap&task=ajax_request&action=copy_sitemap&sitemap='+sitemapid, + onComplete: showSitemap + }).request(); +} +function settingsSitemap() { + showLoading(); + sitemapid=currSitemapMenu; + var container = $('sitemapsettings'); + var outer = $('divbg'); + if (!container) { + container = new Element ('div',{ + 'id':'sitemapsettings', + 'name':'sitemapsettings', + 'class':'settings settingssitemap' + }); + outer.setOpacity(0.6); + outer.appendChild (container); + var body = document.getElementsByTagName("body").item(0); + body.appendChild(container); + } + container.setHTML(loadingMessage); + outer.setStyle('display',''); + centerElement(outer,true); + container.setStyle('display',''); + centerElement(container); + + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: 'option=com_xmap&task=ajax_request&action=edit_sitemap_settings&sitemap='+sitemapid, + onComplete: showSitemapSettings + }).request(); +} +function settingsPlugin(pluginid) { + showLoading(); + sitemapid=currSitemapMenu; + var container = $('pluginsettings'); + var outer = $('divbg'); + if (!container) { + container = new Element ('div',{ + 'id':'pluginsettings', + 'name':'pluginsettings', + 'class':'settings settingsplugin' + }); + outer.setOpacity(0.6); + outer.appendChild (container); + var body = document.getElementsByTagName("body").item(0); + body.appendChild(container); + } + container.setHTML(loadingMessage); + outer.setStyle('display',''); + centerElement(outer,true); + container.setStyle('display',''); + centerElement(container); + + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: 'option=com_xmap&task=ajax_request&action=edit_plugin_settings&plugin='+pluginid, + onComplete: showPluginSettings + }).request(); +} + +function optionsMenuSettings(sitemapid,menutype,menu) { + showLoading(); + closeMenu(menu); + var container = $('menuoptions'); + var outer = $('divbg'); + if (!container) { + container = new Element ('div',{ + 'id':'menuoptions', + 'name':'menuoptions', + 'class':'settings settingsmenu' + }); + outer.setOpacity(0.6); + outer.appendChild (container); + var body = document.getElementsByTagName("body").item(0); + body.appendChild(container); + } + container.setHTML(loadingMessage); + outer.setStyle('display',''); + centerElement(outer,true); + container.setStyle('display',''); + centerElement(container); + + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: 'option=com_xmap&task=ajax_request&action=menu_options&sitemap='+sitemapid+'&menutype='+menutype, + onComplete: showOptionsMenuSettings + }).request(); +} + +function saveSettings(id,action,container) { + showLoading(); + var theForm = $('frmSettings'+id); + var postVars = 'option=com_xmap&task=ajax_request&action='+action+'&' + theForm.toQueryString(); + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: postVars, + onComplete: checkResultSaveSettings.bindAsEventListener(this,[id,container]) + }).request(); +} + +function saveMenuOptions() { + showLoading(); + var theForm = $('frmMenuOptions'); + var postVars = 'option=com_xmap&task=ajax_request&action=save_menu_options&' + theForm.toQueryString(); + var myAjax = new Ajax( + ajaxURL, + { + method: 'post', + postBody: postVars, + onComplete: checkResultSaveMenuOptions + }).request(); +} + +function checkResultDelete(ajaxResponse,sitemapid) { + hideLoading(); + if (ajaxResponse != '1') { + alert(ajaxResponse); + }else{ + var sitemap = $('sitemap'+sitemapid); + sitemap.remove(); + } +} + +function checkResultUninstallPlugin(ajaxResponse,pluginid) { + hideLoading(); + if (ajaxResponse != '1') { + alert(ajaxResponse); + }else{ + var sitemap = $('plugin'+pluginid); + sitemap.remove(); + } +} + +function checkResultSetDefault(ajaxResponse,sitemapid) { + hideLoading(); + var img; + if (ajaxResponse != '1') { + alert(ajaxResponse); + }else{ + if (sitemapdefault ) { + img = $('imgdefault'+sitemapdefault); + if (img) + img.src=mosConfigLiveSite+ '/administrator/components/com_xmap/images/no_default.gif'; + } + sitemapdefault = sitemapid; + var img = $('imgdefault'+sitemapid); + img.src =mosConfigLiveSite+'/administrator/components/com_xmap/images/default.gif'; + } +} +function checkResultSaveSettings(ajaxResponse,sitemapid,container) { + hideLoading(); + if (ajaxResponse != '1') { + alert(ajaxResponse); + }else{ + closeSettings(container); + } +} +function checkResultSaveMenuOptions(ajaxResponse) { + hideLoading(); + if (ajaxResponse != '1') { + alert(ajaxResponse); + }else{ + closeSettings('menuoptions'); + } +} + + +function checkResultSave(ajaxResponse,sitemapid) { + hideLoading(); + if (ajaxResponse != '1') { + alert(ajaxResponse); + } +} + +function showSitemap(ajaxResponse) { + hideLoading(); + var container = $('sitemaps'); + var sitemap = new Element ('div'); + sitemap.setHTML(ajaxResponse); + container.appendChild(sitemap); +} + +function showSitemapSettings(ajaxResponse) { + hideLoading(); + var container = $('sitemapsettings'); + var outer = $('divbg'); + window.onscroll=function(outer,container) {centerElement(outer,true);centerElement(container);}.pass([outer,container]); + container.setHTML(ajaxResponse); + centerElement(outer,true); + centerElement(container); + outer.setStyle('display',''); + container.setStyle('display',''); + var SettTooltips = new Tips($$('#sitemapsettings .hasTip'), { maxTitleChars: 50, fixed: false}); +} + +function showPluginSettings(ajaxResponse) { + hideLoading(); + var container = $('pluginsettings'); + var outer = $('divbg'); + window.onscroll=function(outer,container) {centerElement(outer,true);centerElement(container);}.pass([outer,container]); + container.setHTML(ajaxResponse); + centerElement(outer,true); + centerElement(container); + outer.setStyle('display',''); + container.setStyle('display',''); + var SettTooltips = new Tips($$('#pluginsettings .hasTip'), { maxTitleChars: 50, fixed: false}); +} + +function showOptionsMenuSettings(ajaxResponse) { + hideLoading(); + var container = $('menuoptions'); + var outer = $('divbg'); + window.onscroll=function(outer,container) {centerElement(outer,true);centerElement(container);}.pass([outer,container]); + container.setHTML(ajaxResponse); + centerElement(outer,true); + centerElement(container); + outer.setStyle('display',''); + container.setStyle('display',''); + var SettTooltips = new Tips($$('#menuoptions .hasTip'), { maxTitleChars: 50, fixed: false}); +} + +function closeSettings(name) { + window.onscroll=null; + var outer = $('divbg'); + var container = $(name); + outer.setStyle('display','none'); + container.setStyle('display','none'); +} + +function editTextField(elm,id,prop) { + if ( !elm.editing) { + elm.editing = true; + elm.oldInnerHTML = elm.innerHTML; + var input = document.createElement('INPUT'); + input.type='text'; + input.name=prop; + input.id=prop+id; + input.value=elm.innerHTML; + input.size=30; + input.onblur=updateSitemapProperty.pass([elm,input,id]); + input.onkeyup=checkKey.bindAsEventListener(this,[elm,input,id]); + Element.setHTML(elm,''); + elm.appendChild(input); + } +} +function checkKey (e,elm,input,id){ + if(!e) { e=window.event; } + if(e.keyCode == 13){ + updateSitemapProperty(elm,input,id,e); + return false; + } +} +function updateSitemapProperty(elm,input,id,event) { + if (elm.oldInnerHTML != input.value) { + saveProperty(id,input.name,input.value); + } + var value = input.value; + Element.remove(input); + elm.editing=false; + elm.innerHTML = value; +} +function optionsMenu(id) { + currSitemapMenu=id; + if (!divOptions) { + divOptions = $('optionsmenu'); + divOptions.setStyle('display',''); + divOptions.set({'events':{'click': closeOptionsMenu}}); + } + if (divOptions.sitemapid && divOptions.sitemapid != id) { + divOptions.setStyle('visibility','hidden'); + + } + divOptions.sitemapid=id; + var elm = $('optionsbut'+id); + var pos = elm.getPosition(); + var dim1 = elm.getSize(); + var dim2 = divOptions.getSize(); + divOptions.setStyle('left',(pos.x+dim1.size.x-dim2.size.x) + 'px'); + divOptions.setStyle('top',(pos.y + dim1.size.y + 2) + 'px'); + + divOptions.clicks=0; + if (divOptions.style.visibility == 'visible') { + divOptions.setStyle('visibility','hidden'); + } else { + divOptions.setStyle('visibility','visible'); + } +} + +function handleClick() { + if ( divOptions && divOptions.clicks >= 1 ) { + closeOptionsMenu(); + } else if ( divOptions ) { + divOptions.clicks++; + } +} +function closeOptionsMenu() { + divOptions.setStyle('visibility','hidden'); +} +function showMenuOptions(elmid,menuname,sitemap) { + var menu = $('divoptions'); + var elm = $(elmid); + if (menu.blocked) + return false; + if (menu.parent && menu.parent != elm) { + closeMenu(menu); + } + clearDelay(); + menu.blocked=true; + menu.setHTML(''); + menu.appendChild( new Element('div',{ + 'events': { + 'click':moveMenuPosition.pass([sitemap,menuname,'-1',menu]), + 'mouseover': clearDelay + }, + 'class': 'menuoption' + }).setHTML(moveUMenuMessage)); + menu.appendChild( new Element('div',{ + 'events': { + 'click':moveMenuPosition.pass([sitemap,menuname,'1',menu]), + 'mouseover': clearDelay + }, + 'class': 'menuoption' + }).setHTML(moveDMenuMessage)); + menu.appendChild( new Element('div',{ + 'events': { + 'click':removeMenuFromSitemap.pass([sitemap,menuname,menu]), + 'mouseover': clearDelay + }, + 'class': 'menuoption' + }).setHTML(deleteMenuMessage)); + menu.appendChild( new Element('div',{ + 'events': { + 'click':optionsMenuSettings.pass([sitemap,menuname,menu]), + 'mouseover': clearDelay + }, + 'class': 'menuoption' + }).setHTML(editMenuOptionsMessage)); + menu.setStyle('display',''); + var pos = elm.getPosition(); + var dim1 = elm.getSize(elm); + var dim2 = menu.getSize(); + elm.addClass('menuoptionhover'); + menu.set({ + 'events': { + 'mouseover': clearDelay + }, + 'styles':{ + 'visibility':'visible', + 'z-index':'10', + 'left':(pos.x+dim1.size.x-dim2.size.x) + 'px', + 'top':(pos.y + dim1.size.y) + 'px' + } + }); + elm.menu=menu; + menu.parent=elm; +} +function showMenusList (sitemap,elmid) { + var menulist = $('menulistdropdown'); + if (!menulist) { + var menulist = new Element ('div',{ + 'class':'menulistdrop', + 'id':'menulistdropdown' + }); + var theform = new Element('form',{ + 'name':'frmmenulist', + 'id':'frmmenulist' + }); + theform.appendChild(menulist); + var body = document.getElementsByTagName("body").item(0); + body.appendChild(theform); + } else { + if ((menulist.currSitemap && menulist.currSitemap == sitemap) || elmid==null) { + menulist.currSitemap = ''; + menulist.setStyle('display','none'); + return true; + } + menulist.setStyle('display','none'); + menulist.setHTML(''); + } + var elm = $(elmid); + menulist.currSitemap = sitemap; + var menu; + var checkbox; + for(i=0;iaddCustomHeadTag(""); + $mainframe->addCustomHeadTag(""); + JHTML::_('behavior.tooltip'); +?> + + + + + + +
+ + + +
+ +
+ startPane( 'xmap-pane' ); + /********************************************************************************************** + * Menu Selection Tab + **********************************************************************************************/ + echo $pane->startPanel( _XMAP_TAB_SITEMAPS, 'sitemaps-tab' ); +?> +
+
+
+
+getSitemaps(); + if (count($sitemaps)) { + foreach ($sitemaps as $sitemap) { + XmapAdminHtml::showSitemapInfo($sitemap,($config->sitemap_default == $sitemap->id)); + } + } else { + echo _XMAP_MSG_NO_SITEMAPS; + } + ?> +
+ endPanel(); + echo $pane->startPanel( 'CSS', 'css-tab' ); + ?> +
+ + + + + + + + + + + + + + +
+ + + + + +
+ + + +
+
+ : + '._XMAP_CFG_WRITEABLE.'' : + ''._XMAP_CFG_UNWRITEABLE.''; + ?> + +
+ exclude_css ? ' checked="checked"':''); ?> /> + +
+ exclude_xsl ? ' checked="checked"':''); ?> /> + +
+ + + + + + + + +
+ +
+ + + + + +
+ endPanel(); + echo $pane->startPanel(_XMAP_TAB_EXTENSIONS,'ext-tab'); + ?> + +
startPane( 'xmapplugin-pane' ); + echo $extpane->startPanel( _XMAP_TAB_INSTALL_PLUGIN, 'installplugin-tab' ); + XmapAdminHtml::showInstallForm( _XMAP_INSTALL_NEW_PLUGIN ,dirname(__FILE__)); + echo $extpane->endPanel(); + echo $extpane->startPanel( _XMAP_TAB_INSTALLED_EXTENSIONS, 'plugins-tab' ); +?> +
+ +
+endPanel(); + echo $extpane->endPane(); + + ?>
+ endPanel(); + echo $pane->endPane(); + ?> +
+ +
+ + + + +
+
+
+
name; ?>
id,'" />'; ?>
+
+
+ +
+
id; ?>
+
+ + + + + + + + + + + + + + + + + + + + +
 HTMLXML
lastvisit_html? strftime("%b/%d/%Y",$sitemap->lastvisit_html) : _XMAP_NEVER_VISITED; ?>lastvisit_xml? strftime("%b/%d/%Y",$sitemap->lastvisit_xml) : _XMAP_NEVER_VISITED; ?>
lastvisit_html? $sitemap->views_html: "--"; ?>lastvisit_xml? $sitemap->views_xml:"--"; ?>
lastvisit_html? $sitemap->count_html: "--"; ?>lastvisit_xml? $sitemap->count_xml : "--"; ?>
+
+
+
+
+
+
+
+ +
name); ?>
+
+ + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + ext_image )) { + $ext_imgurl = $xmapSiteURL.'/components/com_xmap/images/'.$sitemap->ext_image; + } else { + $ext_imgurl = $xmapSiteURL.'/images/blank.png'; + } + ?> + + + + +
+ : + + + + : + + show_menutitle ? ' checked="checked"' : ''; ?> /> +
+ : + + + + : + + includelink ? ' checked="checked"' : ''; ?> /> +
+ : + + exlinks ? ' checked="checked"' : ''; ?> /> +   + +   + +
+
+
+
+ + + id.'&view=xml'; + $news_link = $xmapSiteURL . '/index.php?option=com_xmap&sitemap='.$sitemap->id.'&view=xml&news=1'; + $html_link = $xmapSiteURL . '/index.php?option=com_xmap&sitemap='.$sitemap->id; + ?> + + + + + + + + + + + + +
+ : + + + + + + +   + +
+ : + + + + + + +   + +
+ : + + + + + + +   + +
+
+
+
+ + + + + + + +
+ : + + +   +   + + +   + +
+
+ + + + + +
+
+ + + + + + + + +
+ : + + usecache == 1? 'checked="checked" ': ''); ?> /> + + : + + +
+
+
+
+ + + + + + +
+ compress_xml == 1? 'checked="checked" ': ''); ?> /> + + : +
+
+
+
+ + + + +
+
+getMenus(); + $i = 0; + foreach ($menus as $name => $menu) { + echo '
id.'\',\'',str_replace("'","\\'",$name),'\','. $sitemap->id. ');" onmouseout="hideOptions(this.menu);">',$i,'. ', $name,'
'; + $i++; + } + } + + function showMenuOptions (&$sitemap,&$menu,&$lists) { + if (is_object($menu) ) { + ?> +
+ + +
menutype); ?>
+ + + + + + + + + + + + + + + + + + + + +
+ +
  +
show? " checked=\"checked\"":""); ?> />
showXML? " checked=\"checked\"":""); ?> /> + +
+     + +
+ + + + + +
+
+
+
+
name; ?>
+
version != "" ? $row->version : " "; ?>
+
+
+
+
+
creationdate != "" ? $row->creationdate : " "; ?>
+
author != "" ? $row->author : _XMAP_UNKNOWN_AUTHOR) . (@$row->authorEmail != "" ? ' <'.$row->authorEmail.'>' : " "); ?>
+ + +
+
+'; + echo '' . $folder . '/'; + echo ''; + echo is_writable( JPATH_COMPONENT_SITE.DS.$folder ) ? ''._XMAP_WRITEABLE.'' : ''._XMAP_UNWRITEABLE.'' . ''; + echo ''; + } + + function showInstallForm( $title,$p_startdir ) { + ?> + + +
+
+ +
+ +
+ + + + +
+ +
+ + + + + + + + +
+ +
+ Package File: + + +
+ + + + +
+
+ +
+ + + + + + + +
+ +
+ :  +   + +
+ + + + +
+ + + + + +
+ +
+ + + + + + + + +
+ +
+ [  ... ] +
+ + + + +
+ [ ... ] +
+getXmlPath(); + $params = new JParameter( $extension->getParams($itemid,true), $xmlfile, 'xmap_ext' ); +?> +
+ + render(); ?> +
+     + +
+
+addScriptDeclaration(' + var tree; + var autotext = \'\'; + insertLink = function (){ + var link = $(\'f_link\').getValue(); + var text = $(\'f_text\').getValue(); + var title = $(\'f_title\').getValue(); + var cssstyle = $(\'f_cssstyle\').getValue(); + var cssclass = $(\'f_cssclass\').getValue(); + if (link != \'\' && text != \'\') { + var extra =\'\'; + if (title != \'\') { + extra = extra + \' title="\'+title.replace(\'"\',\'"\')+\'"\'; + } + if (cssclass != \'\') { + extra = extra + \' class="\'+cssclass.replace(\'"\',\'"\')+\'"\'; + } + if (cssstyle != \'\') { + extra = extra + \' style="\'+cssstyle.replace(\'"\',\'"\')+\'"\'; + } + var tag = ""+text+""; + window.parent.jInsertEditorText(tag, "'.htmlspecialchars($name).'"); + } + window.parent.document.getElementById(\'sbox-window\').close(); + }; + window.addEvent("domready",function(){ + tree = new MooTreeControl({ + div: \'xmap-nav_tree\', + mode: \'files\', + grid: true, + theme: \''.JURI::base().(JPATH_COMPONENT == JPATH_COMPONENT_SITE? 'administrator/':'').'components/com_media/assets/mootree.gif\', + onSelect: function (node,state) { + if (typeof node.data.link != \'undefined\' && node.data.selectable == \'true\') { + document.adminForm.link.value = node.data.link; + if (document.adminForm.text.value == autotext ) { + document.adminForm.text.value = node.text; + autotext = node.text; + } + } + } + },{ + text: \'Home\', + open: true + }); + tree.root.load(\'index.php?option=com_xmap&task=navigator-links&sitemap='.$sitemapid.'&e_name='.$name.'&tmpl=component\'); + }); + '); + + echo '
'; + echo ' +
+
+ + + + + + + + + + + + + + + + + + + + + + +
'._XMAP_TEXT.'
'._XMAP_TITLE.'
'._XMAP_LINK.'
'._XMAP_CSS_STYLE.''._XMAP_CSS_CLASS.'
+
+
+
'; + echo '
    '; + } + function showNavigatorLinks($sitemapid,$list,$name) + { + header('Content-type: text/xml'); + echo '',"\n"; + echo "\n"; + foreach ($list as $node) { + $load = 'index.php?option=com_xmap&task=navigator-links&sitemap='.$sitemapid.'&e_name='.$name.(isset($node->id)?'&Itemid='.$node->id:'').(isset($node->link)?'&link='.urlencode($node->link):'').'&tmpl=component'; + echo "name)."\" ".($node->expandible?" openicon=\"_open\" icon=\"_closed\" load=\"$load\"":' icon="_doc"')." uid=\"".$node->uid."\" link=\"".str_replace(array('&','&'),array('&','&'),$node->link)."\" selectable=\"".($node->selectable?'true':'false')."\">\n"; + echo "\n"; + } + echo ""; + exit; + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/admin.xmap.php b/oss/joomla/trunk/administrator/components/com_xmap/admin.xmap.php new file mode 100644 index 00000000..3b88f2bb --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/admin.xmap.php @@ -0,0 +1,59 @@ +getBackwardLang()); +$xmapComponentPath = JPATH_ADMINISTRATOR.DS.'components'.DS.'com_xmap'; +$xmapComponentURL = $live_site.'/administrator/components/com_xmap'; +$xmapAdministratorPath = JPATH_ADMINISTRATOR; +$xmapAdministratorURL = $live_site.'/administrator'; +$xmapSiteURL = $live_site; + +// load language file +if( file_exists( $xmapComponentPath.DS.'language'.DS . $xmapLang . '.php') ) { + require_once( $xmapComponentPath.DS.'language'.DS.$xmapLang.'.php' ); +} else { + if ($task != 'ajax_request') { + echo 'Language file [ '. $xmapLang .' ] not found, using default language: english
    '; + } + $xmapLang = 'english'; + require_once( $xmapComponentPath.DS.'language'.DS.'english.php' ); +} + +require_once( $xmapComponentPath.DS.'classes'.DS.'XmapAdmin.php' ); + +JToolBarHelper::title ( 'Xmap', 'generic' ); + +// load settings from database +require_once( $xmapComponentPath.DS.'classes'.DS.'XmapConfig.php' ); +require_once( $xmapComponentPath.DS.'admin.xmap.html.php' ); +$config = new XmapConfig; +if( !$config->load() ) { + $text = _XMAP_ERR_NO_SETTINGS."
    \n"; + $link = 'index2.php?option=com_xmap&task=create'; + echo sprintf( $text, $link ); +} + +$admin = new XmapAdmin(); +$admin->show( $config, $task, $cid ); + diff --git a/oss/joomla/trunk/administrator/components/com_xmap/ajaxResponse.php b/oss/joomla/trunk/administrator/components/com_xmap/ajaxResponse.php new file mode 100644 index 00000000..cc75b41f --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/ajaxResponse.php @@ -0,0 +1,370 @@ +save(); + XmapAdminHtml::showSitemapInfo($sitemap); + break; + case 'delete_sitemap': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + $config = new XmapConfig(); + $config->load(); + if (!$id || $id != JRequest::getVar('sitemap','',"REQUEST")) { + die("Invalid Sitemap ID"); + } + if ( $config->sitemap_default==$id) { + echo _XMAP_ERROR_DELETE_DEFAULT; + exit; + } + + $sitemap = new XmapSitemap($database); + $sitemap->load($id); + if ($sitemap->remove()) { + echo 1; + } else { + $database->getErrorMsg(); + } + break; + case 'copy_sitemap': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + if (!$id || $id != JRequest::getVar('sitemap','',"REQUEST")) { + die("Invalid Sitemap ID"); + } + $sitemap = new XmapSitemap($database); + if ( $sitemap->load($id) ) { + $sitemap->id=NULL; + $sitemap->name=sprintf(_XMAP_COPY_OF,$sitemap->name); + $sitemap->save(); + XmapAdminHtml::showSitemapInfo($sitemap); + } + break; + case 'save_property': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + $property = JRequest::getVar('property','',"REQUEST"); + $value = JRequest::getVar('value','',"REQUEST"); + $sitemap = new XmapSitemap($database); + if ($sitemap->load($id) ) { + if (isset($sitemap->$property)) { + $sitemap->$property = $value; + if ( $sitemap->save() ) { + if ( $sitemap->save() ) { + if ( $sitemap->usecache ) { + XmapCache::cleanCache($sitemap); + } + echo 1; + } else { + $database->getErrorMsg(); + } + exit; + } + } + } + echo _XMAP_MSG_ERROR_SAVE_PROPERTY; + exit; + break; + case 'edit_sitemap_settings': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + if (!$id || $id != JRequest::getVar('sitemap','',"REQUEST")) { + die("Invalid Sitemap ID"); + } + $sitemap = new XmapSitemap($database); + if ( $sitemap->load($id) ) { + // images for 'external link' tagging + $javascript = 'onchange="changeDisplayImage();"'; + $directory = '/components/com_xmap/images'; + $lists['ext_image'] = JHTML::_('list.images', 'ext_image', $sitemap->ext_image, $javascript, $directory); + + // column count selection + $columns = array ( + JHTML::_('select.option', 1, 1), + JHTML::_('select.option', 2, 2), + JHTML::_('select.option', 3, 3), + JHTML::_('select.option', 4, 4), + ); + $lists['columns'] = JHTML::_('select.genericlist', $columns, 'columns', 'id="columns" class="inputbox" size="1"', 'value', 'text', $sitemap->columns); + + // get list of menu entries in all menus + $query = "SELECT id AS value, name AS text, CONCAT( id, ' - ', name ) AS menu" + . "\n FROM #__menu" + . "\n WHERE published != -2" + . "\n ORDER BY menutype, parent, ordering"; + $database->setQuery( $query ); + $exclmenus = $database->loadObjectList(); + $lists['exclmenus'] = JHTML::_('select.genericlist', $exclmenus, 'excl_menus', 'class="inputbox" size="1"', 'value', 'menu', NULL); + + XmapAdminHtml::showSitemapSettings($sitemap,$lists); + } else { + echo _XMAP_MSG_ERROR_LOADING_SITEMAP; + } + break; + case 'save_sitemap_settings': + $id = intval (JRequest::getVar('id','',"REQUEST")); + if (!$id || $id != JRequest::getVar('id','',"REQUEST")) { + die("Invalid Sitemap ID"); + } + $sitemap = new XmapSitemap($database); + if ( $sitemap->load($id) ) { + $_POST['menus']=$sitemap->menus; + $sitemap->bind($_POST); + if ( $sitemap->save() ) { + if ( $sitemap->usecache ) { + XmapCache::cleanCache($sitemap); + } + echo 1; + } else { + echo $database->getErrorMsg(); + } + } else { + die("Invalid Sitemap ID"); + } + break; + case 'save_plugin_settings': + $id = intval (JRequest::getVar('id','',"REQUEST")); + if (!$id || $id != JRequest::getVar('id','',"REQUEST")) { + die("Invalid Plugin ID"); + } + $plugin = new XmapPlugin($database,$id); + if ( $plugin->id ) { + $params = JRequest::getVar('params', '' ,"POST"); + $itemid = JRequest::getVar('itemid', '-1' ,"POST"); + if (is_array( $params )) { + $plugin->parseParams(); + $txt = array(); + foreach ($params as $k=>$v) { + $txt[] = "$k=" . str_replace( "\n", '
    ', $v ); + } + + $params = implode("\n",$txt); + $plugin->setParams($params,$itemid); + if ( $plugin->store() ) { + echo 1; + } else { + echo $database->getErrorMsg(); + } + } + } else { + die("Invalid Plugin ID"); + } + break; + case 'set_default': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + if (!$id || $id != JRequest::getVar('sitemap','',"REQUEST")) { + die("Invalid Sitemap ID"); + } + $config = new XmapConfig(); + # $config->load(); + $config->sitemap_default=$id; + if ($config->save()) { + echo '1'; + } else { + echo $database->getErrorMsg(); + } + break; + case 'change_plugin_state': + $id = intval (JRequest::getVar('plugin','',"REQUEST")); + if (!$id || $id != JRequest::getVar('plugin','',"REQUEST")) { + die("Invalid Plugin ID"); + } + $plugin = new XmapPlugin($database,$id); + $plugin->published=($plugin->published? 0 : 1); + if ($plugin->store()) { + echo $plugin->published; + } else { + echo $database->getErrorMsg(); + } + break; + case 'clean_cache_sitemap': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + if (!$id || $id != JRequest::getVar('sitemap','',"REQUEST")) { + die("Invalid Sitemap ID"); + } + $sitemap = new XmapSitemap($database); + if ($sitemap->load($id)) { + if ( XmapCache::cleanCache($sitemap) ) { + echo _XMAP_MSG_CACHE_CLEANED; + } else { + echo _XMAP_MSG_ERROR_CLEAN_CACHE; + } + + } else { + echo $database->getErrorMsg(); + } + break; + case 'add_menu_sitemap': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + if (!$id || $id != JRequest::getVar('sitemap','',"REQUEST")) { + die("Invalid Sitemap ID"); + } + $sitemap = new XmapSitemap($database); + if ( $sitemap->load($id) ) { + $menus = $sitemap->getMenus(); + $newMenus = JRequest::getVar('menus',array(),"REQUEST"); + $ordering = count($menus); + foreach ($newMenus as $aMenu) { + if (empty($menus[$aMenu])) { + $menu = new stdclass; + $menu->show = 1; + $menu->showXML = 1; + $menu->ordering = $ordering++; + $menu->priority = '0.5'; + $menu->changefreq = 'daily'; + $menu->module = 'mod_mainmenu'; + $menus[$aMenu] = $menu; + } + } + $sitemap->setMenus($menus); + if ( $sitemap->save() && $sitemap->usecache) { + XmapCache::cleanCache($sitemap); + } + XmapAdminHtml::printMenusList($sitemap); + } + break; + case 'remove_menu_sitemap': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + if (!$id || $id != JRequest::getVar('sitemap','',"REQUEST")) { + die("Invalid Sitemap ID"); + } + $sitemap = new XmapSitemap($database); + if ( $sitemap->load($id) ) { + $menus = $sitemap->getMenus(); + $menu_delete = JRequest::getVar('menu',array(),"REQUEST"); + $newMenus = array(); + foreach ($menus as $aMenu => $menu) { + if ($aMenu != $menu_delete) { + $newMenus[$aMenu] = $menu; + } + } + $sitemap->setMenus($newMenus); + if ( $sitemap->save() && $sitemap->usecache) { + XmapCache::cleanCache($sitemap); + } + XmapAdminHtml::printMenusList($sitemap); + } + break; + case 'move_menu_sitemap': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + if (!$id || $id != JRequest::getVar('sitemap','',"REQUEST")) { + die("Invalid Sitemap ID"); + } + $sitemap = new XmapSitemap($database); + if ( $sitemap->load($id) ) { + $menu_move = JRequest::getVar('menu',array(),"REQUEST"); + $move = intval(JRequest::getVar('move',array(),"REQUEST")); + $sitemap->orderMenu($menu_move,$move); + if ( $sitemap->save() && $sitemap->usecache) { + XmapCache::cleanCache($sitemap); + } + + XmapAdminHtml::printMenusList($sitemap); + } + break; + case 'get_menus_sitemap': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + if (!$id || $id != JRequest::getVar('sitemap','',"REQUEST")) { + die("Invalid Sitemap ID"); + } + $sitemap = new XmapSitemap($database); + if ( $sitemap->load($id) ) { + XmapAdminHtml::printMenusList($sitemap); + } + break; + case 'menu_options': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + $sitemap = new XmapSitemap($database); + if ( !$sitemap->load($id) ) { + die('Cannot load sitemap'); + } + $menutype = JRequest::getVar('menutype','',"REQUEST"); + $menus = $sitemap->getMenus(); + $menu = $menus[$menutype]; + $changefreq = array(); + $changefreq[] = JHTML::_('select.option', 'always', _XMAP_CFG_CHANGEFREQ_ALWAYS); + $changefreq[] = JHTML::_('select.option', 'hourly', _XMAP_CFG_CHANGEFREQ_HOURLY); + $changefreq[] = JHTML::_('select.option', 'daily', _XMAP_CFG_CHANGEFREQ_DAILY); + $changefreq[] = JHTML::_('select.option', 'weekly', _XMAP_CFG_CHANGEFREQ_WEEKLY); + $changefreq[] = JHTML::_('select.option', 'monthly', _XMAP_CFG_CHANGEFREQ_MONTHLY); + $changefreq[] = JHTML::_('select.option', 'yearly', _XMAP_CFG_CHANGEFREQ_YEARLY); + $changefreq[] = JHTML::_('select.option', 'never', _XMAP_CFG_CHANGEFREQ_NEVER); + $lists['changefreq'] = JHTML::_('select.genericlist', $changefreq, 'changefreq', 'class="inputbox" size="1"', 'value', 'text', $menu->changefreq); + $priority = array(); + for ($i=0;$i<=9;$i++) { + $priority[] = JHTML::_('select.option', '0.'.$i, '0.'.$i ); + } + + $priority[] = JHTML::_('select.option', '1', '1' ); + $lists['priority'] = JHTML::_('select.genericlist', $priority, 'priority', 'class="inputbox" size="1"', 'value', 'text', $menu->priority); + XmapAdminHtml::showMenuOptions($sitemap,$menu,$lists); + break; + case 'save_menu_options': + $id = intval (JRequest::getVar('sitemap','',"REQUEST")); + $sitemap = new XmapSitemap($database); + if ( !$sitemap->load($id) ) { + die('Cannot load sitemap'); + } + $menutype = JRequest::getVar('menutype','',"REQUEST"); + $menus = $sitemap->getMenus(); + if (!empty($menus[$menutype]) ) { + $menu = &$menus[$menutype]; + $menu->show = JRequest::getVar('show','',"POST"); + $menu->showXML = JRequest::getVar('showXML','',"POST"); + $menu->priority = JRequest::getVar('priority','',"POST"); + $menu->changefreq = JRequest::getVar('changefreq','',"POST"); + $menu->module = JRequest::getVar('module','',"POST"); + + # Clean the cache of the sitemap + + + $sitemap->setMenus($menus); + if ($sitemap->save()) { + if ($sitemap->usecache) { + XmapCache::cleanCache($sitemap); + } + echo 1; + } else { + echo $database->getErrorMsg(); + } + } + break; + case 'uninstallplugin': + $id = intval (JRequest::getVar('plugin','',"REQUEST")); + if ($id != JRequest::getVar('plugin','',"REQUEST")) { //Security Check! + die('Cannot load plugin'); + } + if (xmapUninstallPlugin( $id )) { + echo 1; + } + break; + case 'edit_plugin_settings': + $id = intval (JRequest::getVar('plugin','',"REQUEST")); + $plugin = new XmapPlugin($database); + if ($id != JRequest::getVar('plugin','',"REQUEST") || !$plugin->load($id)) { + die('Cannot load plugin'); + } + XmapAdminHtml::showPluginSettings($plugin); + + break; +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapAdmin.php b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapAdmin.php new file mode 100644 index 00000000..b23b41f4 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapAdmin.php @@ -0,0 +1,385 @@ +config = &$config; + global $xmapComponentPath; + switch ($task) { + + case 'save': + $this->saveOptions( $config ); + break; + + case 'cancel': + global $mainframe; + $mainframe->redirect( 'index2.php' ); + break; + + case 'uploadfile': + xmapUploadPlugin(); + break; + + case 'installfromdir': + xmapInstallPluginFromDirectory(); + break; + + case 'ajax_request': + include($xmapComponentPath . '/ajaxResponse.php'); + exit; + break; + case 'navigator': + xmapShowNavigator($this->config); + break; + case 'navigator-links': + xmapShowNavigatorLinks($this->config); + break; + default: + $success = JRequest::getVar('success','',"REQUEST"); + $this->showSettingsDialog($success); + break; + } + } + + /** Show settings dialog + * @param integer configuration save success + */ + function showSettingsDialog( $success = 0 ) { + global $mainframe; + $database = & JFactory::getDBO(); + + + $menus = $this->getMenus(); + # $this->sortMenus( $menus ); + + $config = &$this->config; + + // success messages + switch( $success ) { + case 1: + $lists['msg_success'] = _XMAP_MSG_SET_BACKEDUP; + break; + case 2: + $lists['msg_success'] = _XMAP_ERR_CONF_SAVE; + break; + default: + $lists['msg_success'] = ''; + break; + } + + $pluginList = ''; + $xmlfile = ''; + loadInstalledPlugins($pluginList,$xmlfile); + + require_once( $mainframe->getPath( 'admin_html' ) ); + XmapAdminHtml::show( $config, $menus, $lists,$pluginList,$xmlfile ); + } + + /** Save settings handed via POST */ + function saveOptions( &$config ) { + global $mainframe; + + // save css + $csscontent = JRequest::getVar('csscontent', '',"POST","STRING",JREQUEST_ALLOWHTML); // CSS + $file = JPATH_COMPONENT_SITE.DS.'css'.DS.'xmap.css'; + $success = 1; + + $exclude_css = JRequest::getVar('exclude_css', 0 ,"POST"); + $exclude_xsl = JRequest::getVar('exclude_xsl', 0 ,"POST"); + + $config->exclude_css = $exclude_css; + $config->exclude_xsl = $exclude_xsl; + $config->save(); + + JFile::write($file, stripslashes( $csscontent )); + + $mainframe->redirect('index2.php?option=com_xmap&success='.$success); + exit; + } + + /** + * + * get the complete list of menus in joomla + */ + function &getMenus() { + $config = &$this->config; + + require_once( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_menus'.DS.'helpers'.DS.'helper.php' ); + $menutypes = MenusHelper::getMenuTypeList(); + + $allmenus = array(); + $i=0; + foreach( $menutypes as $menu ) { + $menutype = $menu->menutype; + $allmenus[$menutype] = new stdclass; + $allmenus[$menutype]->ordering = $i; + $allmenus[$menutype]->show = false; + $allmenus[$menutype]->showSitemap = false; + $allmenus[$menutype]->priority = '0.5'; + $allmenus[$menutype]->changefreq = 'weekly'; + $allmenus[$menutype]->id = $i; + $allmenus[$menutype]->type = $menutype; + $i++; + } + return $allmenus; + } +} + +function loadInstalledPlugins( &$rows,&$xmlfile ) { + $database = & JFactory::getDBO(); + + + if (!defined('DOMIT_INCLUDE_PATH') ) { + require_once (JPATH_SITE.DS.'libraries'.DS.'domit'.DS.'xml_domit_lite_parser.php'); + } + + $query = "SELECT id, extension, published" + . "\n FROM #__xmap_ext" + . "\n WHERE extension not like '%.bak'" + . "\n ORDER BY extension"; + + $database->setQuery( $query ); + $rows = $database->loadObjectList(); + + $n = count( $rows ); + for ($i = 0; $i < $n; $i++) { + $row =& $rows[$i]; + + // path to module directory + $extensionBaseDir = JPATH_COMPONENT_ADMINISTRATOR.DS.'extensions'.DS; + + // xml file for module + $xmlfile = $extensionBaseDir. $row->extension. ".xml"; + + if (file_exists( $xmlfile )) { + $xmlDoc = new DOMIT_Lite_Document(); + $xmlDoc->resolveErrors( true ); + if (!$xmlDoc->loadXML( $xmlfile, false, true )) { + continue; + } + + $root = &$xmlDoc->documentElement; + + if ($root->getTagName() != 'install' && $root->getTagName() != 'mosinstall') { + continue; + } + if ($root->getAttribute( "type" ) != "xmap_ext") { + continue; + } + + + $element = &$root->getElementsByPath( 'name', 1 ); + $row->name = $element ? $element->getText() : ''; + + $element = &$root->getElementsByPath( 'creationDate', 1 ); + $row->creationdate = $element ? $element->getText() : ''; + + $element = &$root->getElementsByPath( 'author', 1 ); + $row->author = $element ? $element->getText() : ''; + + $element = &$root->getElementsByPath( 'copyright', 1 ); + $row->copyright = $element ? $element->getText() : ''; + + $element = &$root->getElementsByPath( 'authorEmail', 1 ); + $row->authorEmail = $element ? $element->getText() : ''; + + $element = &$root->getElementsByPath( 'authorUrl', 1 ); + $row->authorUrl = $element ? $element->getText() : ''; + + $element = &$root->getElementsByPath( 'version', 1 ); + $row->version = $element ? $element->getText() : ''; + }else { + echo "Missing file '$xmlfile'"; + } + } +} + +function showInstalledPlugins( $_option ) { + $rows = ''; + $xmlfile = ''; + loadInstalledPlugins($rows,$xmlfile); + XmapAdminHtml::showInstalledModules( $rows, $_option, $xmlfile, $lists ); +} + +require_once(JPATH_COMPONENT_ADMINISTRATOR.DS.'classes'.DS.'XmapPluginInstaller.php'); +require_once(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_installer'.DS.'models'.DS.'install.php'); + +function xmapUploadPlugin( ) { + + $lang =& JFactory::getLanguage(); + $lang->load('com_installer',JPATH_ADMINISTRATOR); + + $installerModel = new InstallerModelInstall; + + // Get an installer instance + $installer =& JInstaller::getInstance(); + + $xmapInstaller = new XmapPluginInstaller($installer); + + /* Fix for a small bug on Joomla on PHP 4 */ + if (version_compare(PHP_VERSION, '5.0.0', '<')) { + // We use eval to avoid PHP warnings on PHP>=5 versions + eval("\$installer->setAdapter('xmap_ext',&\$xmapInstaller);"); + }else { + $installer->setAdapter('xmap_ext',$xmapInstaller); + } + $xmapInstaller->parent = &$installer; + $install->_adapters['xmap_ext'] = &$xmapXinstaller; + /* End of the fix for PHP <= 4 */ + + if ($installerModel->install()) { + XmapAdminHtml::showInstallMessage(_XMAP_EXT_INSTALLED_MSG, '', 'index.php?option=com_xmap'); + } else { + XmapAdminHtml::showInstallFailedMessage(_XMAP_EXT_INSTALLED_MSG, '', 'index.php?option=com_xmap'); + } +} + +function xmapInstallPluginFromDirectory() { + return xmapUploadPlugin(); +} + +function xmapUninstallPlugin( $extensionid ) { + require_once(JPATH_COMPONENT_ADMINISTRATOR.DS.'classes'.DS.'XmapPluginInstaller.php'); + // Get an installer instance + $installer =& JInstaller::getInstance(); + $xmapInstaller = new XmapPluginInstaller($installer); + $installer->setAdapter('xmap_ext',$xmapInstaller); + $result = false; + if ($extensionid) { + $result = $installer->uninstall('xmap_ext', $extensionid ); + } + + if (!$result) { + echo $installer->getError(); + } + return $result; +} + +function xmapShowNavigator($config) { + require_once(JPATH_COMPONENT_ADMINISTRATOR.DS.'classes'.DS.'XmapNav.php'); + + $sitemapid = JRequest::getInt('sitemap',0); + $link = urldecode(JRequest::getVar('link','')); + $name = JRequest::getCmd('e_name',''); + if (!$sitemapid) { + $sitemapid = $config->sitemap_default; + } + + $sitemap = new XmapSitemap($database); + if ( !$sitemap->load($sitemapid) ) { + echo _XMAP_INVALID_SITEMAP; + return false; + } + JHTML::script('mootree.js','media/system/js/'); + JHTML::stylesheet('mootree.css','media/system/css/'); + XmapAdminHtml::showNavigator($sitemapid,$name); + + +} + +function xmapShowNavigatorLinks($config) { + require_once( JPATH_COMPONENT_ADMINISTRATOR.DS.'classes'.DS.'XmapNav.php'); + require_once( JPATH_COMPONENT_ADMINISTRATOR.DS.'classes'.DS.'XmapPlugins.php'); + require_once( JPATH_SITE.DS.'includes'.DS.'application.php'); + +# DEBUG +ini_set('display_errors', 1); +error_reporting(E_ALL); +# DEBUG + + $sitemapid = JRequest::getInt('sitemap',0); + $link = urldecode(JRequest::getVar('link','')); + $name = JRequest::getCmd('e_name',''); + $Itemid = JRequest::getInt('Itemid'); + if (!$sitemapid) { + $sitemapid = $config->sitemap_default; + } + + $sitemap = new XmapSitemap($database); + if ( !$sitemap->load($sitemapid) ) { + echo _XMAP_INVALID_SITEMAP; + return false; + } + $menus = $sitemap->getMenus(); + $list = array(); + // Show the menu items + if (! $link && !$Itemid ) { + foreach ( $menus as $menutype => $menu ) { + $node = new stdclass(); + $menu->id = 0; + $menu->menutype = $menutype; + + $node->uid = $menu->uid = "menu".$menu->id; + $node->menutype = $menutype; + $node->ordering = $menu->ordering; + $node->priority = $menu->priority; + $node->changefreq = $menu->changefreq; + $node->browserNav = 3; + $node->type = 'separator'; + if (!$node->name = getMenuTitle($menutype,@$menu->module) ) { + $node->name = $menutype; + } + $node->link = '-menu-'.$menutype; + $node->expandible = true; + $node->selectable = false; + //$node->name = $this->getMenuTitle($menutype,@$menu->module); // get the mod_mainmenu title from modules table + + $list[] = $node; + } + } else { + $nav = new XmapNav($config, $sitemap); + + $extensions = XmapPlugins::loadAvailablePlugins(); + $parent = new stdClass; + if ( $Itemid ) { + $items = &JSite::getMenu(); + $item =& $items->getItem($Itemid); + if ( isset($menus[$item->menutype]) ) { + $parent->name = $item->name; + $parent->id = $item->id; + $parent->uid = 'itemid'.$item->id; + $parent->link = $link; + $parent->type = $item->type; + $parent->browserNav = $item->browserNav; + $parent->priority = $menus[$item->menutype]->priority; + $parent->changefreq = $menus[$item->menutype]->changefreq; + $parent->menutype = $item->menutype; + $parent->selectable = false; + $parent->expandible = true; + } + } else { + $parent->id = 0; + $parent->link = $link; + } + $list = $nav->expandLink($parent,$extensions); + } + XmapAdminHtml::showNavigatorLinks($sitemapid,$list,$name); +} + +/** Look up the title for the module that links to $menutype */ +function getMenuTitle($menutype,$module='mod_mainmenu') { + $database = &JFactory::getDBO(); + $query = "SELECT title FROM #__modules WHERE published='1' AND module ='$module' AND params LIKE '%menutype=". $menutype ."%'"; + $database->setQuery( $query ); + if( !$title = $database->loadResult() ) { + $items = &JSite::getMenu(); + $query = "SELECT title FROM #__menu_types WHERE menutype='$menutype'"; + $database->setQuery( $query ); + $title = $database->loadResult(); + } + return $title; +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapCache.php b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapCache.php new file mode 100644 index 00000000..b1be80d6 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapCache.php @@ -0,0 +1,34 @@ +id); + $cache->setCaching($sitemap->usecache); + $cache->setLifeTime($sitemap->cachelifetime); + return $cache; + } + /** + * Cleans the cache + */ + function cleanCache( &$sitemap ) { + $cache =&XmapCache::getCache( $sitemap ); + if (class_exists('JFactory')) { + return $cache->clean(); + } else { + return $cache->clean( $cache->_group ); + } + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapConfig.php b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapConfig.php new file mode 100644 index 00000000..dde777f1 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapConfig.php @@ -0,0 +1,284 @@ +setQuery($query); + $ids = $db->loadResultArray(); + $sitemaps = array(); + foreach ($ids as $id ) { + $sitemap = new XmapSitemap($db); + $sitemap->load($id); + $sitemaps[] = $sitemap; + } + return $sitemaps; + + } + + /** Create the settings table for Xmap and add initial default values */ + function create() { + $db = & JFactory::getDBO(); + jimport('joomla.filesystem.file'); + + $fields = array(); + $fields[] = "`name` varchar(30) not null primary key"; + $fields[] = "`value` varchar(100)"; + + + $query = "CREATE TABLE IF NOT EXISTS #__xmap (". implode(', ', $fields) .")"; + $db->setQuery( $query ); + if( $db->query() === FALSE ) { + echo _XMAP_ERR_NO_CREATE . "
    \n"; + echo stripslashes($db->getErrorMsg()); + return false; + } + + $fields = array(); + $fields[] = "`id` int not null primary key auto_increment"; + $fields[] = "`extension` varchar(100) not null"; + $fields[] = "`published` int(1) default 0"; + $fields[] = "`params` text"; + + $query = "CREATE TABLE IF NOT EXISTS #__xmap_ext (". implode(', ', $fields) .")"; + $db->setQuery( $query ); + if( $db->query() === FALSE ) { + echo _XMAP_ERR_NO_CREATE . "
    \n"; + echo stripslashes($db->getErrorMsg()); + return false; + } + + $extensions = array ( + // name published + array( 'com_agora', 1), + array( 'com_contact', 1), + array( 'com_content', 1), + array( 'com_eventlist', 1), + array( 'com_g2bridge', 1), + array( 'com_glossary', 1), + array( 'com_hotproperty', 1), + array( 'com_jcalpro', 1), + array( 'com_jdownloads', 1), + array( 'com_jevents', 1), + array( 'com_jmovies', 1), + array( 'com_jomres', 1), + array( 'com_joomdoc', 1), + array( 'com_joomgallery', 1), + array( 'com_kb', 1), + array( 'com_kunena', 1), + array( 'com_mtree', 1), + array( 'com_myblog', 1), + array( 'com_rapidrecipe', 1), + array( 'com_remository', 1), + array( 'com_resource', 1), + array( 'com_rokdownloads', 1), + array( 'com_rsgallery2', 1), + array( 'com_sectionex', 1), + array( 'com_cmsshopbuilder', 1), + array( 'com_sobi2', 1), + array( 'com_virtuemart', 1), + array( 'com_weblinks', 1) + ); + + foreach ( $extensions as $ext ) { + $query = "SELECT COUNT(*) FROM `#__xmap_ext` WHERE extension='{$ext[0]}'"; + $db->setQuery($query); + $extension = new XmapPlugin($db); + $extension->extension = $ext[0]; + $extension->published = $ext[1]; + $xmlfile = $extension->getXmlPath(); + JFile::move("$xmlfile.txt",$xmlfile); + $extension->setParams($extension->loadDefaultsParams(true),'-1'); + if ( $db->loadResult() == 0 ) { + $extension->store(); + } + } + + $vars = get_class_vars('XmapSitemap'); + $fields = ''; + foreach($vars as $name => $value) { + if ($name[0]!=='_') { + if ($name == 'id') { + $fields[] = 'id INT NOT NULL PRIMARY KEY AUTO_INCREMENT'; + } else { + switch( gettype( $value ) ) { + case 'integer': + $fields[] = "`$name` INTEGER NULL"; + break; + case 'string': + if( $name == 'menus' || $name == 'excluded_items') + $fields[] = "`$name` TEXT NULL"; + else + $fields[] = "`$name` VARCHAR(255) NULL"; + break; + } + } + } + } + $query = "CREATE TABLE IF NOT EXISTS #__xmap_sitemap (". implode(', ', $fields) .")"; + $db->setQuery( $query ); + if( $db->query() === FALSE ) { + echo _XMAP_ERR_NO_CREATE . "
    \n"; + echo stripslashes($db->getErrorMsg()); + return false; + } + + $query = "CREATE TABLE IF NOT EXISTS #__xmap_items ( uid varchar(100) not null, itemid int not null, view varchar(10) not null, sitemap_id int not null, properties varchar(300), primary key (uid,itemid,view,sitemap_id),index (uid,itemid),index (view));"; + $db->setQuery( $query ); + if( $db->query() === FALSE ) { + echo _XMAP_ERR_NO_CREATE . "
    \n"; + echo stripslashes($db->getErrorMsg()); + return false; + } + + echo _XMAP_MSG_SET_DB_CREATED . "
    \n"; + + + // Insert default Settings + + $query = "SELECT COUNT(*) from `#__xmap_sitemap`"; + $db->setQuery($query); + if ( $db->loadResult() == 0 ) { + $sitemap = new XmapSitemap($db); + $sitemap->save(); + } + + $query = "SELECT COUNT(*) from `#__xmap`"; + $db->setQuery($query); + if ( $db->loadResult() == 0 ) { + $fields = array(); + $vars = get_class_vars('XmapConfig'); + foreach($vars as $name => $value) { + if ($name == 'sitemap_default') { + $value = $sitemap->id; + } + $query = "INSERT INTO #__xmap (`name`,`value`) values ('$name','$value')"; + $db->setQuery( $query ); + if( $db->query() === FALSE ) { + echo _XMAP_ERR_NO_DEFAULT_SET . "
    \n"; + echo stripslashes($db->getErrorMsg()); + return false; + } + } + } + + echo _XMAP_MSG_SET_DEF_INSERT . "
    \n"; + return true; + } + + /** Remove the settings table */ + function remove() { + $db = & JFactory::getDBO(); + $querys[] = "DROP TABLE IF EXISTS #__xmap"; + $querys[] = "DROP TABLE IF EXISTS #__xmap_sitemap"; + $querys[] = "DROP TABLE IF EXISTS #__xmap_ext"; + $querys[] = "DROP TABLE IF EXISTS #__xmap_items"; + foreach ($querys as $query) { + $db->setQuery( $query ); + if( $db->query() === FALSE ) { + echo _XMAP_ERR_NO_DROP_DB . "
    \n"; + echo stripslashes($db->getErrorMsg()); + return false; + } + } + echo "Xmap's tables have been saved!
    \n"; + + } + + /** Load settings from the database into this instance */ + function load() { + $db = & JFactory::getDBO(); + + $query = "SELECT * FROM #__xmap"; + $db->setQuery( $query ); + if ($result = $db->loadAssocList('name') ) { + foreach ($result as $name => $row) { + $this->$name = $row['value']; + } + return true; // defaults are still set, though + } + $this->_sitemaps = array(); + return false; + } + + /** Save current settings to the database */ + function save() { + $db = & JFactory::getDBO(); + + $vars = get_object_vars( $this ); + $query = "DELETE FROM `#__xmap`"; + $db->setQuery( $query ); + $db->query(); + foreach($vars as $name => $value) { + if ( substr($name,0,1) !== '_' ) { + $query = "INSERT INTO #__xmap (`name`,`value`) values ('$name','$value')"; + $db->setQuery( $query ); + if ( $db->query() === FALSE ) { + return false; + } + } + } + + return true; + } + + /** Debug output of current settings */ + function dump() { + $vars = get_object_vars( $this ); + echo '
    ';
    +		foreach( $vars as $name => $value ) {
    +			echo $name.': '.$value."\n";
    +		}
    +		echo '
    '; + } + +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapNav.php b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapNav.php new file mode 100644 index 00000000..b9f40c39 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapNav.php @@ -0,0 +1,162 @@ +_list=array(); + $this->view='navigator'; + global $mainframe; + + jimport('joomla.utilities.date'); + + $user =& JFactory::getUser(); + + $access = new stdClass(); + $access->canEdit = $user->authorize('com_content', 'edit', 'content', 'all'); + $access->canEditOwn = $user->authorize('com_content', 'edit', 'content', 'own'); + $access->canPublish = $user->authorize('com_content', 'publish', 'content', 'all'); + $this->access = &$access; + + $date = new JDate(); + + $this->noauth = $mainframe->getCfg( 'shownoauth' ); + $this->gid = $user->get('gid'); + $this->now = $date->toUnix(); + $this->config = &$config; + $this->sitemap = &$sitemap; + $this->isNews = false; + $this->_isAdmin = ($this->gid == "25"); + + } + + function printNode( &$node ) { + if (!isset($node->selectable )) { + $node->selectable=true; + } + // For extentions that doesn't set this property as this is new in Xmap 1.2.3 + if (!isset($node->expandible )) { + $node->expandible = true; + } + if ( empty($this->_list[$node->uid]) ) { // Avoid duplicated items + $this->_list[$node->uid] = $node; + } + return false; + } + function startOutput( &$menus, &$config ) { + } + function endOutput( &$menus ) { + } + + function startMenu(&$menu) { + return true; + } + function changeLevel($level){ + return true; + } + function endMenu(&$menu) { + return true; + } + function &expandLink(&$parent,&$extensions) { + $items = &JSite::getMenu(); + $rows = null; + if (strpos($parent->link,'-menu-') === 0 ) { + $menutype = str_replace('-menu-','',$parent->link); + // Get Menu Items + $rows = $items->getItems('menutype', $menutype); + } elseif ($parent->id) { + $rows = $items->getItems('parent', $parent->id); + } + if ( $rows ) { + $router = JSite::getRouter(); + foreach ($rows as $item) { + if ($item->parent == $parent->id) { + $item->mid = $item->id; + if ($item->type == 'menulink') { + $menu = &JSite::getMenu(); + $params = new JParameter($item->params); + if ($newItem = $menu->getItem($params->get('menu_item'))) { + $item->type = $newItem->type; + $item->mid = $newItem->id; + $item->parent = $newItem->parent; + $item->link = $newItem->link; + } + } + + $node = new stdclass; + $node->name = $item->name; + $node->id = $item->id; + $node->uid = 'itemid'.$item->id; + $node->link = $item->link; + $node->expandible = true; + $node->selectable=true; + // Prepare the node link + XmapPlugins::prepareMenuItem($node,$extensions); + if ( $item->home ) { + $node->link = JURI::root(); + } elseif (substr($item->link,0,9) == 'index.php' && $item->type != 'url' && $item->type != 'separator') { + if ( strpos($node->link,'Itemid=') === FALSE ){ + $node->link = $router->getMode() == JROUTER_MODE_SEF ? 'index.php?Itemid='.$node->id : $node->link.'&Itemid='.$node->id; + } + } + $this->printNode($node); // Add to the internal list + } + } + } + if ($parent->id) { + $option = null; + if ( preg_match('#^/?index.php.*option=(com_[^&]+)#',$parent->link,$matches) ) { + $option = $matches[1]; + } + $Itemid = JRequest::getInt('Itemid'); + if (!$option && $Itemid) { + $item = $items->getItem($Itemid); + if ( preg_match('#^/?index.php.*option=(com_[^&]+)#',$item->link,$matches) ) { + $option = $matches[1]; + $parent->link = $item->link; + } + } + if ( $option ) { + if ( !empty($extensions[$option]) ) { + $parent->uid = $option; + $className = 'xmap_'.$option; + $result = call_user_func_array(array($className, 'getTree'),array(&$this,&$parent,$extensions[$option]->getParams())); + } + } + } + return $this->_list;; + } + + function &getParam($arr, $name, $def) { + $var = JArrayHelper::getValue( $arr, $name, $def, '' ); + return $var; + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPlugin.php b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPlugin.php new file mode 100644 index 00000000..0da66a08 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPlugin.php @@ -0,0 +1,132 @@ +load($id); + } + } + + function &getParams($Itemid='-1',$asTXT=0) { + if (!is_array($this->_params)) { + $this->parseParams(); + } + if (!empty($this->_params[$Itemid])) { + $params = $this->_params[$Itemid]; + } else { + $params = $this->_params[-1]; + } + if ($asTXT) { + return $params['__TXT__']; + } + return $params; + } + + function parseParams() { + $this->_params =array('-1'=>array()); + if ($this->params) { + preg_match_all('/(.?[0-9]+){([^}]+)}/',$this->params,$paramsList); + $count = count($paramsList[1]); + for ($i=0; $i < $count; $i++) { + $this->_params[$paramsList[1][$i]] = $this->paramsToArray($paramsList[2][$i]); + } + } + } + + function &loadDefaultsParams ($asText) { + global $mosConfig_absolute_path; + $path = $this->getXmlPath(); + $xmlDoc = new DOMIT_Lite_Document(); + $xmlDoc->resolveErrors( true ); + + $params=null; + if ($xmlDoc->loadXML( $path, false, true )) { + $root =& $xmlDoc->documentElement; + + $tagName = $root->getTagName(); + $isParamsFile = ($tagName == 'mosinstall' || $tagName == 'install' || $tagName == 'mosparams'); + if ($isParamsFile && $root->getAttribute( 'type' ) == 'xmap_ext') { + $params = &$root->getElementsByPath( 'params', 1 ); + } + } + + $result = ($asText)? '' : array(); + + if (is_object( $params )) { + foreach ($params->childNodes as $param) { + $name = $param->getAttribute( 'name' ); + $label = $param->getAttribute( 'label' ); + + $key = $name ? $name : $label; + if ( $label != '@spacer' && $name != '@spacer') { + $value = str_replace("\n",'\n',$param->getAttribute( 'default' )); + if ($asText) { + $result.="$key=$value\n"; + } else { + $result[$key]=$value; + } + } + } + } + return $result; + } + + /** convert a menuitem's params field to an array */ + function paramsToArray( &$menuparams ) { + $tmp = explode("\n", $menuparams); + $res = array(); + foreach($tmp AS $a) { + @list($key, $val) = explode('=', $a, 2); + $res[$key] = str_replace('\n',"\n",$val); + } + $res['__TXT__'] = $menuparams; + return $res; + } + + function setParams($params,$itemid) { + $this->_params[$itemid] = $params; + } + + function getXmlPath () { + return JPATH_ADMINISTRATOR.DS.'components'.DS.'com_xmap'.DS.'extensions'.DS.$this->extension.'.xml'; + } + + function store() { + if (is_array($this->_params)) { + $this->params=''; + foreach ($this->_params as $itemid => $params) { + if ($params) { + $this->params .= $itemid . '{' . $params . '}'; + } + } + } + return JTable::store(); + } + + function restore() { + $database = & JFactory::getDBO(); + $query = "select * from #__xmap_ext where extension='".$this->extension.".bak'"; + $database->setQuery($query); + if ($row = $database->loadObject()) { + $this->params=$row->params; + JTable::store(); + } + } + +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPluginInstaller.php b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPluginInstaller.php new file mode 100644 index 00000000..9d8bfa3a --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPluginInstaller.php @@ -0,0 +1,279 @@ +parent =& $parent; + } + + /** + * Custom install method + * + * @access public + * @return boolean True on success + * @since 1.5 + */ + function install() + { + // Get a database connector object + $db =& $this->parent->getDBO(); + + // Get the extension manifest object + $manifest =& $this->parent->getManifest(); + $this->manifest =& $manifest->document; + + /** + * --------------------------------------------------------------------------------------------- + * Manifest Document Setup Section + * --------------------------------------------------------------------------------------------- + */ + + // Set the extensions name + $name =& $this->manifest->getElementByPath('name'); + $name = JFilterInput::clean($name->data(), 'cmd'); + $this->set('name', $name); + + // Get the component description + $description = & $this->manifest->getElementByPath('description'); + if (is_a($description, 'JSimpleXMLElement')) { + $this->parent->set('message', $description->data()); + } else { + $this->parent->set('message', '' ); + } + + /* + * Backward Compatability + * @todo Deprecate in future version + */ + $type = $this->manifest->attributes('type'); + + // Set the installation path + $element =& $this->manifest->getElementByPath('files'); + if (is_a($element, 'JSimpleXMLElement') && count($element->children())) { + $files =& $element->children(); + foreach ($files as $file) { + if ($file->attributes($type)) { + $pname = $file->attributes($type); + break; + } + } + } + + if ( !empty ($pname) ) { + $this->parent->setPath('extension_root', JPATH_ROOT.DS.'/administrator/components/com_xmap/extensions'); + } else { + $this->parent->abort(JText::_('Plugin').' '.JText::_('Install').': '.JText::_('No extension file specified')); + return false; + } + + /** + * --------------------------------------------------------------------------------------------- + * Filesystem Processing Section + * --------------------------------------------------------------------------------------------- + */ + + // If the extension directory does not exist, lets create it + $created = false; + if (!file_exists($this->parent->getPath('extension_root'))) { + if (!$created = JFolder::create($this->parent->getPath('extension_root'))) { + $this->parent->abort(JText::_('Plugin').' '.JText::_('Install').': '.JText::_('Failed to create directory').': "'.$this->parent->getPath('extension_root').'"'); + return false; + } + } + + /* + * If we created the extension directory and will want to remove it if we + * have to roll back the installation, lets add it to the installation + * step stack + */ + if ($created) { + $this->parent->pushStep(array ('type' => 'folder', 'path' => $this->parent->getPath('extension_root'))); + } + + // Copy all necessary files + if ($this->parent->parseFiles($element, -1) === false) { + // Install failed, roll back changes + $this->parent->abort(); + return false; + } + + /** + * --------------------------------------------------------------------------------------------- + * Database Processing Section + * --------------------------------------------------------------------------------------------- + */ + + // Check to see if a extension by the same name is already installed + $query = 'SELECT `id`' . + ' FROM `#__xmap_ext`' . + ' WHERE extension = '.$db->Quote($pname); + $db->setQuery($query); + if (!$db->Query()) { + // Install failed, roll back changes + $this->parent->abort('Extension Install: '.$db->stderr(true)); + return false; + } + $id = $db->loadResult(); + + // Was there a module already installed with the same name? + if ($id) { + + if (!$this->parent->getOverwrite()) + { + // Install failed, roll back changes + $this->parent->abort('Extension Install: Extension "' . $pname . '" already exists!' ); + return false; + } + + } else { + + // Check to see if there is a backup for this extension + $query = 'SELECT `id`' . + ' FROM `#__xmap_ext`' . + ' WHERE extension = '.$db->Quote($pname. '.bak'); + $db->setQuery($query); + if (!$db->Query()) { + // Install failed, roll back changes + $this->parent->abort('Extension Install: '.$db->stderr(true)); + return false; + } + $id = $db->loadResult(); + + $row = new XmapPlugin($db,$id); + $row->extension = $pname; + $row->published = 0; + if (!$id ) { + $row->setParams($this->parent->getParams(),'-1'); + } + + if (!$row->store()) { + // Install failed, roll back changes + $this->parent->abort(JText::_('Plugin').' '.JText::_('Install').': '.$db->stderr(true)); + return false; + } + + // Since we have created a extension item, we add it to the installation step stack + // so that if we have to rollback the changes we can undo it. + $this->parent->pushStep(array ('type' => 'xmap_ext', 'id' => $row->id)); + } + + /** + * --------------------------------------------------------------------------------------------- + * Finalization and Cleanup Section + * --------------------------------------------------------------------------------------------- + */ + + // Lastly, we will copy the manifest file to its appropriate place. + if (!$this->parent->copyManifest(-1)) { + // Install failed, rollback changes + $this->parent->abort(JText::_('Plugin').' '.JText::_('Install').': '.JText::_('Could not copy setup file')); + return false; + } + return true; + } + + /** + * Custom uninstall method + * + * @access public + * @param int $cid The id of the extension to uninstall + * @param int $clientId The id of the client (unused) + * @return boolean True on success + * @since 1.5 + */ + function uninstall($id, $clientId ) + { + // Initialize variables + $row = null; + $retval = true; + $db =& $this->parent->getDBO(); + + // First order of business will be to load the module object table from the database. + // This should give us the necessary information to proceed. + $row = new XmapPlugin($db,(int) $id); + // Set the extension root path + $this->parent->setPath('extension_root', JPATH_ADMINISTRATOR.DS.'components'.DS.'com_xmap'.DS.'extensions'); + + // Because extensions don't have their own folders we cannot use the standard method of finding an installation manifest + $manifestFile = JPATH_ADMINISTRATOR.DS.'components'.DS.'com_xmap'.DS.'extensions'.DS.$row->extension.'.xml'; + if (file_exists($manifestFile)) + { + $xml =& JFactory::getXMLParser('Simple'); + + // If we cannot load the xml file return null + if (!$xml->loadFile($manifestFile)) { + JError::raiseWarning(100, JText::_('Plugin').' '.JText::_('Uninstall').': '.JText::_('Could not load manifest file')); + return false; + } + + /* + * Check for a valid XML root tag. + * @todo: Remove backwards compatability in a future version + * Should be 'install', but for backward compatability we will accept 'mosinstall'. + */ + $root =& $xml->document; + if ($root->name() != 'install' && $root->name() != 'mosinstall') { + JError::raiseWarning(100, JText::_('Plugin').' '.JText::_('Uninstall').': '.JText::_('Invalid manifest file')); + return false; + } + + // Remove the extension files + $this->parent->removeFiles($root->getElementByPath('images'), -1); + $this->parent->removeFiles($root->getElementByPath('files'), -1); + JFile::delete($manifestFile); + + // Remove all media and languages as well + $this->parent->removeFiles($root->getElementByPath('media')); + $this->parent->removeFiles($root->getElementByPath('languages'), 1); + } else { + JError::raiseWarning(100, 'Plugin Uninstall: Manifest File invalid or not found'); + return false; + } + + // Now we will no longer need the extension object, so lets delete it + $row->extension = $row->extension . '.bak'; + $row->store(); + unset ($row); + + return $retval; + } + + /** + * Custom rollback method + * - Roll back the extension item + * + * @access public + * @param array $arg Installation step to rollback + * @return boolean True on success + * @since 1.5 + */ + function _rollback_extension($arg) + { + // Get database connector object + $db =& $this->parent->getDBO(); + + // Remove the entry from the #__extensions table + $query = 'DELETE' . + ' FROM `#__xmap_ext`' . + ' WHERE id='.(int)$arg['id']; + $db->setQuery($query); + return ($db->query() !== false); + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPlugins.php b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPlugins.php new file mode 100644 index 00000000..e6eb6149 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapPlugins.php @@ -0,0 +1,66 @@ +setQuery($query); + $rows = $database->loadAssocList(); + foreach ($rows as $row) { +// ini_set('display_errors','Off'); +// error_reporting(E_ALL); + $extension = new XmapPlugin($database); + $extension->bind($row); + require_once(JPATH_COMPONENT_ADMINISTRATOR.DS.'extensions'.DS.$extension->extension.'.php'); + $list[$extension->extension] = $extension; + } + return $list; + } + + /** Determine which extension-object handles this content and let it generate a tree */ + function &printTree( &$xmap, &$parent, &$cache, &$extensions ) { + $result = null; + + $matches=array(); + if ( preg_match('#^/?index.php.*option=(com_[^&]+)#',$parent->link,$matches) ) { + $option = $matches[1]; + if ( !empty($extensions[$option]) ) { + $parent->uid = $option; + $className = 'xmap_'.$option; + $result = call_user_func_array(array($className, 'getTree'),array(&$xmap,&$parent,$extensions[$option]->getParams())); + } + } + return $result; + } + + function prepareMenuItem(&$node,&$extensions) { + if ( preg_match('#^/?index.php.*option=(com_[^&]+)#',$node->link,$matches) ) { + $option = $matches[1]; + if ( !empty($extensions[$option]) ) { + $className = 'xmap_'.$option; + $obj = new $className; + if (method_exists($obj,'prepareMenuItem')) { + $obj->prepareMenuItem($node); + } + } + } + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapSitemap.php b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapSitemap.php new file mode 100644 index 00000000..d6fb91c2 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/classes/XmapSitemap.php @@ -0,0 +1,331 @@ +name= _XMAP_NAME_NEW_SITEMAP; + $this->usecache = $config->getValue('config.caching'); + $this->cachelifetime= $config->getValue('config.cachetime'); + $this->_excluded_items=NULL; + + parent::__construct('#__xmap_sitemap', 'id', $db); + } + + /** Return $menus as an associative array */ + function &getMenus() { + $lines = explode("\n", $this->menus); + + $menus = array(); + foreach( $lines as $line ) { + if ($line) { + list( $menutype, $ordering, $show, $showXML, $priority, $changefreq ) = explode(',', $line); + $info = explode(',', $line); + $menu = new stdclass; + $menu->menutype = @$info[0]; + $menu->ordering = @$info[1]; + $menu->show = @$info[2]; + $menu->showXML = @$info[3]; + $menu->priority = (@$info[4]? $info[4] : '0.5'); + $menu->changefreq = (@$info[5]? $info[5] : 'weekly'); + $menu->module = (@$info[6]? $info[6] : 'mod_mainmenu'); + $menus[$menutype] = $menu; + } + } + return $menus; + } + + /** Set $menus from an associative array of menu objects */ + function setMenus( &$menus ) { + $db = & JFactory::getDBO(); + $lines = array(); + foreach( $menus as $menutype => $menu ) { + $show = $menu->show ? 1 : 0; + $showXML = $menu->showXML ? 1 : 0; + $lines[] = $db->getEscaped($menutype).','.intval($menu->ordering).','.$show.','.$showXML.','.$db->getEscaped($menu->priority).','.$db->getEscaped($menu->changefreq).','.$db->getEscaped($menu->module); + } + $this->menus = implode("\n", $lines); + } + + /** Remove the sitemap from the table */ + function remove() { + $db = & JFactory::getDBO(); + $query = "delete from #__xmap_sitemap where `id`=".$this->id; + $db->setQuery( $query ); + if( $db->query() === FALSE ) { + echo _XMAP_ERR_NO_DROP_DB . "
    \n"; + echo mosStripslashes($db->getErrorMsg()); + return false; + } + return true; + } + + /** Load settings from the database into this instance */ + + function load($id) { + $db = & JFactory::getDBO(); + + $this->id = intval($id); + $query = 'SELECT * FROM `#__xmap_sitemap` where id='.$this->id; + $db->setQuery( $query ); + if( !$res = $db->loadAssocList( )) { + return false; // defaults are still set, though + } + $this->bind($res[0]); + $this->_items = NULL; + return true; + } + + + /** Save current settings to the database */ + function save($forceinstall=false) { + $db = & JFactory::getDBO(); + + $fields = array(); + + $vars = get_object_vars( $this ); + foreach($vars as $name => $value) { + if (is_array($value) || is_object($value)) { + continue; + } + if ($name[0]!=='_' && ($name != 'id' || ($forceinstall && $value) ) ) { + $fields["`{$name}`"] = "'{$value}'"; + } + } + + if ($this->id && !$forceinstall) { + $sep = ""; + $values=""; + foreach ($fields as $k => $value) { + if ($k != 'id') { + $values .= "$sep$k=$value"; + $sep = ","; + } + } + $query = "UPDATE #__xmap_sitemap SET $values WHERE id=" . intval($this->id); + $isInsert = 0; + } else { + $query = "INSERT INTO #__xmap_sitemap (". implode(',',array_keys($fields)) .") VALUES (".implode(',',$fields).")"; + $isInsert = 1; + } + $db->setQuery( $query ); + # echo $db->getQuery( ); + if( $db->query() === FALSE ) { + echo stripslashes($db->getErrorMsg()); + return false; + } + if ($isInsert) { + $this->id = $db->insertid( ); + } + return true; + } + + /** Debug output of current settings */ + function dump() { + $vars = get_object_vars( $this ); + echo '
    ';
    +		foreach( $vars as $name => $value ) {
    +			echo $name.': '.$value."\n";
    +		}
    +		echo '
    '; + } + + function bind( $array, $ignore='' ) { + if (!is_array( $array )) { + $this->_error = strtolower(get_class( $this ))."::bind failed."; + return false; + } else { + foreach (get_object_vars($this) as $k => $v) { + if( substr( $k, 0, 1 ) != '_' ) { // internal attributes of an object are ignored + if ( isset($array[$k]) ) { + $this->$k = get_magic_quotes_gpc() ? stripslashes( $array[$k] ) : $array[$k]; + } elseif ( !in_array($k, array('id','count_xml','views_xml','views_html','lastvisit_xml','count_html','views_html','lastvisit_html')) ) { + $this->$k = ''; + } + } + } + } + } + + /** Move the display order of a record */ + function orderMenu( $menutype, $inc ) { + + $menus = $this->getMenus(); + if (empty($menus[$menutype]) ) { + return false; + } + + if ($menus[$menutype]->ordering == 0 && $inc < 0) return false; + if ($menus[$menutype]->ordering >= count($menus) && $inc > 0) return false; + + $menus[$menutype]->ordering += $inc; // move position up/down + + foreach( $menus as $type => $menu ) { // swap position of previous entry at that position + if( $type != $menutype + && $menu->ordering == $menus[$menutype]->ordering ) + $menus[$type]->ordering -= $inc; + } + + $this->sortMenus( $menus ); + $this->setMenus( $menus ); + } + + function &getExcludedItems() { + if (!$this->_excluded_items) { + $this->_excluded_items = array(); + $pairs = explode(';',$this->excluded_items); + foreach ($pairs as $pair) { + if (strpos($pair,':') !== FALSE) { + list($itemid,$items) = explode(':',$pair); + $this->_excluded_items[$itemid] = explode(',',$items); + } + } + } + return $this->_excluded_items; + } + + function isExcluded($itemid,$uid) { + $this->getExcludedItems(); + if (!empty($this->_excluded_items[$itemid])) { + $excluded_items = $this->_excluded_items[$itemid]; + } else { + $excluded_items = NULL; + } + return ( $excluded_items && in_array($uid,$excluded_items)); + } + + function loadItems ($view,$itemid=NULL) { + $db =& JFactory::getDBO(); + + if ($this->_items !== NULL && isset($this->_items[$view]) && ($itemid==NULL || isset($this->_items[$view][$itemid]))) { + return; + } + $query = "select * from #__xmap_items where view='$view' and sitemap_id=".$this->id; + $db->setQuery($query); + $rows = $db->loadObjectList(); + $this->_items[$view] = array(); + foreach ($rows as $row) { + $this->_items[$view][$row->itemid] = array(); + $this->_items[$view][$row->itemid][$row->uid] = array(); + $pairs = explode(';',$row->properties); + foreach ($pairs as $pair) { + if (strpos($pair,'=') !== FALSE) { + list($property,$value) = explode('=',$pair); + $this->_items[$view][$row->itemid][$row->uid][$property] = $value; + } + } + } + } + + function getProperty($property,$default,$itemid,$view,$uid) { + if ($this->_items == NULL || !isset($this->_items[$view][$itemid][$uid][$property])) { + return $default; + } + return $this->_items[$view][$itemid][$uid][$property]; + } + + function chageItemPropery($uid,$itemid,$view,$property,$value) { + $this->loadItems($view,$itemid); + $db = &JFactory::getDBO(); + $isNew = false; + if (empty($this->_items[$view][$itemid][$uid])) { + $this->_items[$view][$itemid][$uid] = array(); + $isNew = true; + } + $this->_items[$view][$itemid][$uid][$property]=$value; + $sep = $properties = ''; + foreach ($this->_items[$view][$itemid][$uid] as $k => $v) { + $properties .= $sep.$k.'='.$v; + $sep = ';'; + } + if (!$isNew) { + $query = 'UPDATE #__xmap_items SET properties=\''.$db->getEscaped($properties)."' where uid='".$db->getEscaped($uid). "' and itemid=$itemid and view='$view' and sitemap_id=".$this->id; + } else { + $query = 'INSERT #__xmap_items (uid,itemid,view,sitemap_id,properties) values ( \''.$db->getEscaped($uid). "',$itemid,'$view',{$this->id},'".$db->getEscaped($properties)."')"; + } + $db->setQuery($query); + echo $db->getQuery(); + if ($db->query()) { + return true; + } else { + return false; + } + } + + function toggleItem($uid,$itemid) { + if ( !$this->isExcluded($itemid,$uid) ) { + $this->_excluded_items[$itemid][] = $uid; + $state = 0; + } else { + if (is_array($this->_excluded_items[$itemid]) && count($this->_excluded_items[$itemid])) { + $this->_excluded_items[$itemid] = array_filter($this->_excluded_items[$itemid],create_function('$var', 'return ($var != \''.$uid.'\');')); + } else { + unset($this->_excluded_items[$itemid]); + } + $state = 1; + } + + $sep = $str = ''; + foreach ($this->_excluded_items as $itemid => $items) { + $str .= $sep."$itemid:".implode(',',$items); + $sep = ';'; + } + $db = &JFactory::getDBO(); + $query = "UPDATE #__xmap_sitemap set excluded_items='".$db->getEscaped($str) ."' where id=". $this->id; + $db->setQuery($query); + $db->query(); + return $state; + } + + /** uasort function that compares element ordering */ + function sort_ordering( &$a, &$b) { + if( $a->ordering == $b->ordering) { + return 0; + } + return $a->ordering < $b->ordering ? -1 : 1; + } + + /** make menu ordering continuous*/ + function sortMenus( &$menus ) { + uasort( $menus, array('XmapSitemap','sort_ordering') ); + $i = 0; + foreach( $menus as $key => $menu) + $menus[$key]->ordering = $i++; + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/classes/index.html b/oss/joomla/trunk/administrator/components/com_xmap/classes/index.html new file mode 100644 index 00000000..88a5baf7 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/classes/index.html @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/elements/index.html b/oss/joomla/trunk/administrator/components/com_xmap/elements/index.html new file mode 100644 index 00000000..88a5baf7 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/elements/index.html @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/elements/sitemap.php b/oss/joomla/trunk/administrator/components/com_xmap/elements/sitemap.php new file mode 100644 index 00000000..224e7f8d --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/elements/sitemap.php @@ -0,0 +1,32 @@ +setQuery($sql); + $rows = $db->loadObjectList(); + + $html = JHTML::_('select.genericlist',$rows,$fieldName,'','id','name',$value); + + return $html; + } + +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_acymailing.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_acymailing.php new file mode 100644 index 00000000..1d419874 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_acymailing.php @@ -0,0 +1,154 @@ +link ); + parse_str( html_entity_decode($query['query']), $url_vars); + $view = JArrayHelper::getValue($url_vars,'view',''); + $task = JArrayHelper::getValue($url_vars,'task',''); + $ctrl = JArrayHelper::getValue($url_vars,'ctrl',''); + $mailid = intval(JArrayHelper::getValue($url_vars,'mailid','')); + if ( $task == 'view' && $mailid ) { + $node->uid = 'com_acymailingm'.$id; + $node->expandible = false; + } elseif ( $view == 'lists' ) { + $node->uid = 'com_acymailinglists'; + $node->expandible = true; + } elseif ( $view == 'archive' || ($ctrl == 'archive' && !$mailid) ) { + $catid = intval(JArrayHelper::getValue($url_vars,'listid',0)); + $node->uid = 'com_acymailingl'.$catid; + $node->expandible = true; + } + } + + function getTree( &$xmap, &$parent, &$params) { + $url_query = parse_url( $parent->link ); + parse_str( html_entity_decode($url_query['query']), $url_vars ); + $view = JArrayHelper::getValue($url_vars,'view',''); + $ctrl = JArrayHelper::getValue($url_vars,'ctrl',''); + $mailid = intval(JArrayHelper::getValue($url_vars,'mailid','')); + $extraParams = ''; + + $menu =& JSite::getMenu(); + $menuparams = $menu->getParams($parent->id); + + if ( $view == 'archive' || ($ctrl == 'archive' && !$mailid) ) { + $catid = intval($menuparams->get('listid',0)); + } elseif ( $view == 'lists' ) { + $catid = 0; + } else { // Only expand category menu items + return; + } + + $include_mails = JArrayHelper::getValue( $params, 'include_mails',1,'' ); + $include_mails = ( $include_mails == 1 + || ( $include_mails == 2 && $xmap->view == 'xml') + || ( $include_mails == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_mails'] = $include_mails; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'mail_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'mail_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['mail_priority'] = $priority; + $params['mail_changefreq'] = $changefreq; + + $params['limit'] = ''; + $limit = intval(JArrayHelper::getValue($params,'max_mails',0,'')); + + if ( intval($limit) && $xmap->view != 'navigator' ) { + $params['limit'] = ' LIMIT '.$limit; + } + + xmap_com_acymailing::getCategoryTree($xmap, $parent, $params, $catid, $extraParams ); + + } + + function getCategoryTree ( &$xmap, &$parent, &$params, $listid) { + $db = &JFactory::getDBO(); + + if (!$listid) { // view=lists + $query = ' SELECT a.listid,a.name'. + ' ,CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS("-", a.listid, a.alias) ELSE a.listid END as slug' . + ' FROM #__acymailing_list AS a '. + ' WHERE a.published=1 AND a.visible=1'. + ' ORDER by a.ordering '; + + $db->setQuery($query); + $cats = $db->loadObjectList(); + $xmap->changeLevel(1); + foreach($cats as $cat) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = 'com_acymailingl'.$cat->listid; + $node->name = $cat->name; + $node->link = 'index.php?option=com_acymailing&ctrl=archive&listid='.$cat->slug; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + if ( $xmap->printNode($node) !== FALSE ) { + xmap_com_acymailing::getCategoryTree( $xmap, $parent, $params, $cat->listid,'&ctrl=archive' ); + } + } + $xmap->changeLevel(-1); + } elseif ( $params['include_mails'] ) { //view=archive || //ctrl=archive&listid=... + + $query = ' SELECT a.mailid,a.subject,a.created'. + ' ,CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS("-", a.mailid, a.alias) ELSE a.mailid END as slug' . + ' ,CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS("-", c.listid, c.alias) ELSE c.listid END as catslug'. + ' FROM #__acymailing_mail AS a,#__acymailing_listmail AS ac,#__acymailing_list AS c '. + ' WHERE ac.mailid = a.mailid AND a.published=1 and a.visible=1 '. + ' AND ac.listid='.$listid.' AND c.listid=ac.listid ' . + ' ORDER by a.created '. + $params['limit']; + + $db->setQuery($query); + $mails = $db->loadObjectList(); + $xmap->changeLevel(1); + foreach($mails as $mail) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = 'com_acymailingm'.$mail->mailid; + $node->name = $mail->subject; + $node->created = $mail->created; + $node->link = 'index.php?option=com_acymailing&ctrl=archive&task=view&listid='.$mail->catslug.'&mailid='.$mail->slug; + $node->priority = $params['mail_priority']; + $node->changefreq = $params['mail_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } + } + +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_acymailing.xml.txt b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_acymailing.xml.txt new file mode 100644 index 00000000..ba84a70c --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_acymailing.xml.txt @@ -0,0 +1,74 @@ + + + + AcyMailing Plugin + Guillermo Vargas + Apr 2004 + GNU GPL + http://www.gnu.org/copyleft/gpl.html GNU/GPL + guille@vargas.co.cr + joomla.vargas.co.cr + 1.0.0 + Plugin for AcyMailing component + + com_acymailing.php + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_agora.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_agora.php new file mode 100644 index 00000000..efd3254d --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_agora.php @@ -0,0 +1,201 @@ +link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $id = intval(JArrayHelper::getValue($link_vars,'id',0)); + $task = JArrayHelper::getValue( $link_vars, 'task', '', '' ); + if ( $task == '' && $id ) { + $node->uid = 'com_agorac'.$catid; + $node->expandible = true; + } elseif ($task == 'forum' && $id) { + $node->uid = 'com_agoraf'.$id; + $node->expandible = true; + } elseif ($task == 'topic' && $id) { + $node->uid = 'com_agorat'.$id; + $node->expandible = false; + } + } + + function getTree ( &$xmap, &$parent, &$params ) { + if (strpos($parent->link, 'task=topic') ) { + return true; // Do not expand links to posts + } + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $task = $xmap->getParam($link_vars,'task',''); + $id = $xmap->getParam($link_vars,'id',0); + $forumid = $catid = 0; + if ($task == 'forum') { + $forumid = $id; + } else { + $catid = $id; + } + + $include_forums = $xmap->getParam($params,'include_forums',1); + $include_forums = ( $include_forums == 1 + || ( $include_forums == 2 && $xmap->view == 'xml') + || ( $include_forums == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_forums'] = $include_forums; + + $include_topics = $xmap->getParam($params,'include_topics',1); + $include_topics = ( $include_topics == 1 + || ( $include_topics == 2 && $xmap->view == 'xml') + || ( $include_topics == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_topics'] = $include_topics; + + $priority = $xmap->getParam($params,'cat_priority',$parent->priority); + $changefreq = $xmap->getParam($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + // Forums Properties + $priority = $xmap->getParam($params,'forum_priority',$parent->priority); + $changefreq = $xmap->getParam($params,'forum_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['forum_priority'] = $priority; + $params['forum_changefreq'] = $changefreq; + + // Topics Properties + $priority = $xmap->getParam($params,'topic_priority',$parent->priority); + $changefreq = $xmap->getParam($params,'topic_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['topic_priority'] = $priority; + $params['topic_changefreq'] = $changefreq; + + if ( $include_topics ) { + $ordering = $xmap->getParam($params,'topics_order','ordering'); + if ( !in_array($ordering,array('last_post','subject','num_views')) ) + $ordering = 'last_post desc'; + $params['topics_order'] = $ordering; + + $params['limit'] = ''; + $params['days'] = ''; + $limit = $xmap->getParam($params,'max_topics',''); + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = $xmap->getParam($params,'max_age',''); + if ( intval($days) ) + $params['days'] = ' AND last_post >='.($xmap->now - ($days*86400)) ." "; + } + + xmap_com_agora::getCategoryTree($xmap, $parent, $params, $catid, $forumid); + } + + /* Return category/forum tree */ + function getCategoryTree( &$xmap, &$parent, &$params, $parentCat, $parentForum=0 ) + { + $database =& JFactory::getDBO(); + + /*get list of categories*/ + $xmap->changeLevel(1); + + if ( !$parentCat && !$parentForum ) { + $query = "SELECT id, cat_name FROM #__agora_categories WHERE enable=1 ORDER BY disp_position"; + $database->setQuery($query); + # echo $database->getQuery(); + $cats = $database->loadObjectList(); + + foreach ( $cats as $cat ) { + $node = new stdclass; + $node->id = $parent->id; + $node->browserNav = $parent->browserNav; + $node->uid = $parent->uid.'c'.$cat->id; + $node->name = $cat->cat_name; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->link = 'index.php?option=com_agora&id='.$cat->id; + $node->expandible = true; + if ( $xmap->printNode($node) !== FALSE ) { + xmap_com_agora::getCategoryTree($xmap,$parent,$params,$cat->id,0); + } + } + } else { + if ( $params['include_forums'] ) { + $query = "SELECT f.id,f.forum_name,f.last_post as modified ". + "FROM #__agora_forums AS f ". + "WHERE cat_id=$parentCat ". + "AND parent_forum_id=$parentForum AND enable=1"; + $database->setQuery($query); + $forums = $database->loadObjectList(); + //get list of forums + foreach($forums as $forum) { + $node = new stdclass; + $node->id = $parent->id; + $node->browserNav = $parent->browserNav; + $node->uid = $parent->uid.'f'.$forum->id; + $node->name = $forum->forum_name; + $node->priority = $params['forum_priority']; + $node->changefreq = $params['forum_changefreq']; + $node->modified = intval($forum->modified); + $node->link = 'index.php?option=com_agora&task=forum&id='.$forum->id; + $node->expandible = true; + if ( $xmap->printNode($node) !== FALSE ) { + xmap_com_agora::getCategoryTree($xmap,$parent,$params,$parentCat,$forum->id); + } + } + + if ( $params['include_topics'] ) { + $query = "SELECT id, subject, last_post as modified ". + "FROM #__agora_topics ". + "WHERE forum_id=$parentForum ". + $params['days'] . + "ORDER BY ". $params['topics_order'] . + $params['limit']; + + $database->setQuery($query); + $topics = $database->loadObjectList(); + + //get list of topics + foreach($topics as $topic) { + $node = new stdclass; + $node->id = $parent->id; + $node->browserNav = $parent->browserNav; + $node->uid = $parent->uid.'t'.$topic->id; + $node->name = $topic->subject; + $node->priority = $params['topic_priority']; + $node->changefreq = $params['topic_changefreq']; + $node->modified = intval($topic->modified); + $node->link = 'index.php?option=com_agora&task=topic&id='.$topic->id; + $node->expandible = false; + $xmap->printNode($node); + } + } + } + } + $xmap->changeLevel(-1); + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_agora.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_agora.xml new file mode 100644 index 00000000..f47dd280 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_agora.xml @@ -0,0 +1,105 @@ + + + + Agora Plugin + Guillermo Vargas + July 2009 + GNU GPL + http://www.gnu.org/copyleft/gpl.html GNU/GPL + guille@vargas.co.cr + joomla.vargas.co.cr + 1.0.0 + Plugin for Agora component + + com_agora.php + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_cmsshopbuilder.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_cmsshopbuilder.php new file mode 100644 index 00000000..05a67244 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_cmsshopbuilder.php @@ -0,0 +1,148 @@ +link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = intval(JArrayHelper::getValue($link_vars,'catid',0)); + $id = intval(JArrayHelper::getValue($link_vars,'id',0)); + $view = JArrayHelper::getValue( $link_vars, 'view', '', '' ); + if ( $view == 'category' && $id && !$catid) { + $node->uid = 'com_cmsshopbuilderc'.$id; + $node->expandible = true; + } elseif ($view == 'category' && $catid) { + $node->uid = 'com_cmsshopbuilderi'.$id; + $node->expandible = false; + } elseif ($view == 'categories') { + $node->uid = 'com_cmsshopbuilder'.$view; + $node->expandible = true; + } + } + + function getTree( &$xmap, &$parent, &$params) + { + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars ); + $catid = JArrayHelper::getValue($link_vars,'catid',0); + $id = JArrayHelper::getValue($link_vars,'id',0); + $view = JArrayHelper::getValue($link_vars,'view',0); + + if ( $view != 'categories' && ($view != 'category' || $catid) ) { + return; + } + + $catid = $id; + + $include_items = JArrayHelper::getValue( $params, 'include_items',1,'' ); + $include_items = ( $include_items == 1 + || ( $include_items == 2 && $xmap->view == 'xml') + || ( $include_items == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_items'] = $include_items; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'item_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'item_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['item_priority'] = $priority; + $params['item_changefreq'] = $changefreq; + + if ( $include_items ) { + $params['limit'] = ''; + $params['days'] = ''; + $limit = JArrayHelper::getValue($params,'max_items','',''); + + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = JArrayHelper::getValue($params,'max_age','',''); + if ( intval($days) ) + $params['days'] = ' AND filedate >= \''.date('Y-m-d H:m:s', ($xmap->now - ($days*86400)) ) ."' "; + } + + xmap_com_cmsshopbuilder::getCategoriesTree( $xmap, $parent, $params, $catid ); + } + + function getCategoriesTree ( &$xmap, &$parent, &$params, &$catid ) + { + $db = JFactory::getDBO(); + $db->setQuery( + "select c.cat_id, c.cat_name, ". + "CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.cat_id, c.alias) ELSE c.cat_id END as slug ". + "FROM `#__ms_cat` AS c, `#__ms_catref` AS x ". + "WHERE x.cat_pid=$catid and c.cat_id=x.cat_cid AND cat_publish=1 ". + "ORDER BY c.ordering,c.cat_name" + ); + $cats = $db->loadObjectList(); + $xmap->changeLevel(1); + + foreach($cats as $cat) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$cat->cat_id; // Uniq ID for the category + $node->name = $cat->cat_name; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->link = 'index.php?option=com_cmsshopbuilder&view=category&id='.$cat->slug; + $node->expandible = true; + + if ($xmap->printNode($node) !== FALSE ) { + xmap_com_cmsshopbuilder::getCategoriesTree($xmap, $parent, $params, $cat->cat_id); + } + } + + if ( $params['include_items'] ) { + $db->setQuery ( + "SELECT p.product_id, p.product_name,p.alias, ". + "CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.cat_id, c.alias) ELSE c.cat_id END as catslug ". + "FROM `#__ms_product` AS p, `#__ms_cat` AS c ". + "WHERE p.cat_id=$catid and c.cat_id = p.cat_id AND ". + " p.product_publish=1 ". + "ORDER BY p.ordering, p.product_name" + ); + //echo $db->getQuery(); + $items = $db->loadObjectList(); + foreach($items as $item) { + $node = new stdclass; + $node->id = $parent->id; // Itemid + $node->uid = $parent->uid .'d'.$item->product_id; // Uniq ID for the download + $node->name = $item->product_name; + $node->link = 'index.php?option=com_cmsshopbuilder&view=category&catid='.$item->catslug.'&id='.$item->product_id.'-'.$item->alias; + $node->priority = $params['item_priority']; + $node->changefreq = $params['item_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + } + $xmap->changeLevel(-1); + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_cmsshopbuilder.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_cmsshopbuilder.xml new file mode 100644 index 00000000..573b0523 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_cmsshopbuilder.xml @@ -0,0 +1,75 @@ + + + + CMS Shop Builder Plugin + Guillermo Vargas + December 2008 + GNU GPL + http://www.gnu.org/copyleft/gpl.html GNU/GPL + guille@vargas.co.cr + joomla.vargas.co.cr + 1.5.0 + Plugin for CMS Shop Builder component + + com_cmsshopbuilder.php + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_contact.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_contact.php new file mode 100644 index 00000000..861c5974 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_contact.php @@ -0,0 +1,126 @@ +link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $view = JArrayHelper::getValue($link_vars,'view',''); + if ( $view == 'contact') { + $id = intval(JArrayHelper::getValue($link_vars,'id',0)); + if ( $id ) { + $node->uid = 'com_contacti'.$id; + $node->expandible = false; + } + }else{ + $catid = intval(JArrayHelper::getValue($link_vars,'catid',0)); + $node->uid = 'com_contactc'.$catid; + $node->expandible = true; + } + + } + + function getTree( &$xmap, &$parent, &$params) { + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars ); + $view = JArrayHelper::getValue($link_vars,'view',0); + + $menu =& JSite::getMenu(); + $menuparams = $menu->getParams($parent->id); + + $catid = 0; + if ( $view == 'category' ) { + $catid = intval(JArrayHelper::getValue($link_vars,'catid',0)); + } else { // Only expand category menu items + if (!$menuparams->get('show_contact_list')) { + return; + } + } + + $include_contacts = JArrayHelper::getValue( $params, 'include_contacts',1,'' ); + $include_contacts = ( $include_contacts == 1 + || ( $include_contacts == 2 && $xmap->view == 'xml') + || ( $include_contacts == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_contacts'] = $include_contacts; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'contact_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'contact_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['contact_priority'] = $priority; + $params['contact_changefreq'] = $changefreq; + + $params['limit'] = ''; + $limit = JArrayHelper::getValue($params,'max_contacts','',''); + + if ( intval($limit) && $xmap->view != 'navigator' ) { + $params['limit'] = ' LIMIT '.$limit; + } + + xmap_com_contact::getCategoryTree($xmap, $parent, $params, $catid ); + + } + + function getCategoryTree ( &$xmap, &$parent, &$params, $catid) { + $db = &JFactory::getDBO(); + + $query = ' SELECT a.id,a.name'. + ' ,CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug' . + ' ,CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END as catslug'. + ' FROM #__contact_details a,#__categories c '. + ' WHERE a.catid = c.id AND c.published=1 and c.access<='.$xmap->gid.' AND '. + ' a.access<='.$xmap->gid.' AND a.published=1 '. + ( $catid? ' AND a.catid='.$catid.' ' : ' ') . + ' ORDER by a.ordering '. + $params['limit']; + + $db->setQuery($query); + //echo $db->getQuery(); + $contacts = $db->loadObjectList(); + $xmap->changeLevel(1); + foreach($contacts as $contact) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid .'i'.$contact->id; + $node->name = $contact->name; + $node->link = 'index.php?option=com_contact&view=contact&id='.$contact->slug . "&catid=" . $contact->catslug; + $node->priority = $params['contact_priority']; + $node->changefreq = $params['contact_changefreq']; + $node->expandible = false; + //$node->tree = array(); + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } + +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_contact.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_contact.xml new file mode 100644 index 00000000..36455621 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_contact.xml @@ -0,0 +1,74 @@ + + + + Contacts Plugin + Guillermo Vargas + 2010/01/01 + GNU GPL + http://www.gnu.org/copyleft/gpl.html GNU/GPL + guille@vargas.co.cr + joomla.vargas.co.cr + 1.0.1 + Plugin for Joomla's contact component + + com_contact.php + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_content.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_content.php new file mode 100644 index 00000000..3b5ffd4b --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_content.php @@ -0,0 +1,526 @@ +link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $view = JArrayHelper::getValue($link_vars,'view',''); + $id = intval(JArrayHelper::getValue($link_vars,'id',0)); + $layout = JArrayHelper::getValue($link_vars,'layout',''); + + switch( $view ) { + case 'category': + $node->uid = 'com_contentc'.$id; + $node->expandible=true; + break; + case 'section': + $node->uid = 'com_contents'.$layout.$id; + $node->expandible=true; + break; + case 'article': + $node->expandible=false; + if ( $id ) { + $db = & JFactory::getDBO(); + $node->uid = 'com_contenta'.$id; + $db = & JFactory::getDBO(); + $db->setQuery("SELECT UNIX_TIMESTAMP(modified) as modified, UNIX_TIMESTAMP(created) as created FROM #__content WHERE id=". $id); + $item = $db->loadObject(); + if( !$item->modified ) + $item->modified = $item->created; + $node->modified = $item->modified; + $node->expandible = false; + } + case 'archive': + $node->expandible=true; + } + } + + /** return a node-tree */ + function getTree(&$xmap, &$parent, &$params) { + $result = null; + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $view = JArrayHelper::getValue($link_vars,'view',''); + $layout = JArrayHelper::getValue($link_vars,'layout',''); + $id = intval(JArrayHelper::getValue($link_vars,'id',0)); + + $menu =& JSite::getMenu(); + $menuparams = $menu->getParams($parent->id); + + /*** + * Parameters Initialitation + **/ + //----- Set expand_categories param + $expand_categories = JArrayHelper::getValue($params,'expand_categories',1); + $expand_categories = ( $expand_categories == 1 + || ( $expand_categories == 2 && $xmap->view == 'xml') + || ( $expand_categories == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['expand_categories'] = $expand_categories; + + //----- Set expand_sections param + $expand_sections = JArrayHelper::getValue($params,'expand_sections',1); + $expand_sections = ( $expand_sections == 1 + || ( $expand_sections == 2 && $xmap->view == 'xml') + || ( $expand_sections == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['expand_sections'] = $expand_sections; + + //----- Set show_unauth param + $show_unauth = JArrayHelper::getValue($params,'show_unauth',1); + $show_unauth = ( $show_unauth == 1 + || ( $show_unauth == 2 && $xmap->view == 'xml') + || ( $show_unauth == 3 && $xmap->view == 'html')); + $params['show_unauth'] = $show_unauth; + + //----- Set add_images param + $add_images = JArrayHelper::getValue($params,'add_images',0); + $add_images = ( $add_images == 1 && $xmap->view == 'xml'); + $params['add_images'] = $add_images; + $params['max_images'] = JArrayHelper::getValue($params,'max_images',1000); + + + //----- Set expand_sections param + $add_pagebreaks = JArrayHelper::getValue($params,'add_pagebreaks',1); + $add_pagebreaks = ( $add_pagebreaks == 1 + || ( $add_pagebreaks == 2 && $xmap->view == 'xml') + || ( $add_pagebreaks == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['add_pagebreaks'] = $add_pagebreaks; + + if ( $params['add_pagebreaks'] ) { + $lang =& JFactory::getLanguage(); + $lang->load('plg_content_pagebreak'); + } + + //----- Set cat_priority and cat_changefreq params + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + //----- Set art_priority and art_changefreq params + $priority = JArrayHelper::getValue($params,'art_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'art_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['art_priority'] = $priority; + $params['art_changefreq'] = $changefreq; + + $params['keywords'] = JArrayHelper::getValue($params,'keywords','metakey'); + $params['max_art'] = intval(JArrayHelper::getValue($params,'max_art',0)); + $params['max_art_age'] = intval(JArrayHelper::getValue($params,'max_art_age',0)); + $params['articles_order'] = JArrayHelper::getValue($params,'articles_order','menu'); + + if ($xmap->isNews) { +// $params['max_art_age'] = 2; + $params['show_unauth'] = 0; + } + + switch( $view ) { + case 'category': + if( $params['expand_categories'] ) { + xmap_com_content::getContentCategory( $xmap, $parent, $id, $params, $menuparams ); + } + break; + case 'section': + if( $params['expand_sections'] ) { + if ($layout == 'blog') { + xmap_com_content::getContentBlogSection($xmap, $parent, $id, $params, $menuparams); + } else { + xmap_com_content::getContentSection($xmap, $parent, $id, $params, $menuparams); + } + } + break; + case 'archive': + xmap_com_content::getArchivedArticles($xmap, $parent,$params,$menuparams); + break; + } + return true; + } + + /** Get all content items within a content category. + * Returns an array of all contained content items. */ + function getContentCategory(&$xmap, &$parent, $catid, &$params, &$menuparams) { + $db = & JFactory::getDBO(); + if ($params['articles_order'] == 'menu') { + $orderby = $menuparams->get('orderby'); + if ( !$orderby ) { + $orderby = $menuparams->get('orderby_sec','rdate'); + } + } else { + $orderby = $params['articles_order']; + } + + $orderby = xmap_com_content::orderby_sec( $orderby ); + + $query = + "SELECT a.id, a.title, a.metakey,a.access, UNIX_TIMESTAMP(a.modified) as modified, CASE WHEN strcmp(a.created,a.publish_up)<0 THEN UNIX_TIMESTAMP(a.publish_up) ELSE UNIX_TIMESTAMP(a.created) END as `created`, a.sectionid" . + ',CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug' . + ',CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END as catslug'. + ',c.title as category' . + (($params['add_images'] || $params['add_pagebreaks'])? ',a.introtext, a.fulltext': ''). + "\n FROM #__content AS a,#__categories AS c" . + "\n WHERE a.catid=(".$catid.")" . + "\n AND a.catid=c.id" . + "\n AND a.state='1'" . + "\n AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '". date('Y-m-d H:i:s',$xmap->now) ."' )" . + "\n AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '". date('Y-m-d H:i:s',$xmap->now) ."' )" . + ( $params['max_art_age'] ? "\n AND ( a.created >= '".date('Y-m-d H:i:s',time() - $params['max_art_age'] * 86400)."' ) " : '') . + ( $params['show_unauth'] ? '' : "\n AND a.access<='". $xmap->gid ."'" ) . // authentication required ? + ( $xmap->view != 'xml'?"\n ORDER BY ". $orderby ."": '' ) . + ( $params['max_art'] ? "\n LIMIT {$params['max_art']}" : ''); + ; + return xmap_com_content::showArticles($xmap,$parent,$params,$query); + } + + /** Get all content items within a content category. + * Returns an array of all contained content items. */ + function getArchivedArticles(&$xmap, &$parent, &$params, &$menuparams) { + if ($params['articles_order'] == 'menu') { + $orderby = $menuparams->get('orderby',''); + } else { + $orderby = $params['articles_order']; + } + $orderby = xmap_com_content::orderby_sec( $orderby ); + + $query = + "SELECT a.id, a.title, a.metakey, a.access, UNIX_TIMESTAMP(a.modified) as modified, CASE WHEN strcmp(a.created,a.publish_up)<0 THEN UNIX_TIMESTAMP(a.publish_up) ELSE UNIX_TIMESTAMP(a.created) END as `created`, a.sectionid" . + ',CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug' . + ',CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END as catslug' . + ',c.title as category' . + (($params['add_images'] || $params['add_pagebreaks'])? ',a.introtext, a.fulltext':'') + . "\n FROM #__content AS a,#__categories AS c" + . "\n WHERE a.catid=c.id" + . "\n AND a.state='-1'" + . "\n AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '". date('Y-m-d H:i:s',$xmap->now) ."' )" + . "\n AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '". date('Y-m-d H:i:s',$xmap->now) ."' )" + . ( $params['max_art_age'] ? "\n AND ( created >= '".date('Y-m-d H:i:s',time() - $params['max_art_age'] * 86400)."' ) " : '') + . ( $params['show_unauth'] ? '':"\n AND a.access<='". $xmap->gid ."'" ) // authentication required ? + . ( $xmap->view != 'xml'?"\n ORDER BY ". $orderby ."": '' ) + . ( $params['max_art'] ? "\n LIMIT {$params['max_art']}" : ''); + ; + return xmap_com_content::showArticles($xmap,$parent,$params,$query); + } + + function showArticles(&$xmap, &$parent,$params, $query) + { + $db = & JFactory::getDBO(); + $db->setQuery( $query ); + $db->getQuery( ); + $items = $db->loadObjectList(); + + static $urlBase; + + if (!isset($urlBase)){ + $urlBase = JURI::base(); + $urlBaseLen = strlen($urlBase); + } + + if ( count($items) > 0 ) { + $xmap->changeLevel(1); + foreach($items as $item) { + // Ignore old items for news sitemap + if ($xmap->isNews && $item->created < ($xmap->now-(2* 86400))) { + continue; + } + $subnodes = array(); + $node = new stdclass(); + $node->id = $parent->id; + $node->uid = $parent->uid.'a'.$item->id; + $node->browserNav = $parent->browserNav; + $node->priority = $params['art_priority']; + $node->changefreq = $params['art_changefreq']; + $node->name = $item->title; + $node->access = $item->access; + $node->expandible = false; + // TODO: Should we include category name or metakey here? + switch ( $params['keywords'] ) { + case 'metakey': + $node->keywords = $item->metakey; + case 'category': + $node->keywords = $item->category; + case 'both': + $node->keywords = $item->metakey . ($item->metakey? ',':'').$item->category; + } + $node->newsItem = 1; + + // For the google news we should use te publication date instead + // the last modification date. See + $node->modified = (@$item->modified? $item->modified : $item->created); + // $node->link = 'index.php?option=com_content&view=article&catid='.$item->catslug.'&id='.$item->slug; + $node->link = ContentHelperRoute::getArticleRoute($item->slug, $item->catslug, @$item->sectionid); + + // Add images to the article + $text = @$item->introtext.@$item->fulltext; + if ($params['add_images']) { + $matches = array(); + if (preg_match_all('/]*?(?:(?:[^>]*src="(?P[^"]+)")|(?:[^>]*alt="(?P[^"]+)")|(?:[^>]*title="(?P[^"]+)"))+[^>]*>/i',$text,$matches,PREG_SET_ORDER)) { + $node->images = array(); + + $count = count($matches); + $j=0; + for ($i=0; $i<$count && $j<$params['max_images']; $i++){ + if ( substr($matches[$i]['src'],0,1) == '/' || !preg_match('/^https?:\/\//i',$matches[$i]['src']) || substr($matches[$i]['src'],0,$urlBaseLen) == $urlBase ) { + $src = $matches[$i]['src']; + if (substr($src) == '/'){ + $src = substr($src,1); + } + if (!preg_match('/^https?:\//')){ + $src = $urlBase.$src; + } + $image = new stdClass; + $image->src = $src; + $image->title = (isset($matches[$i]['title'])? $matches[$i]['title'] : @$matches[$i]['alt']); + $node->images[] = $image; + $j++; + } + } + } + } + + if ($params['add_pagebreaks']) { + $matches = array(); + if (preg_match_all('/<hr\s*[^>]*?(?:(?:\s*alt="(?P<alt>[^"]+)")|(?:\s*title="(?P<title>[^"]+)"))+[^>]*>/i',$text,$matches,PREG_SET_ORDER)) { + $i = 2; + foreach ( $matches as $match ) + { + if (strpos($match[0],'class="system-pagebreak"')!== FALSE) { + $link = $node->link.'&limitstart='. ($i-1); + + if ( @$match['alt'] ) + { + $title = stripslashes( $match['alt'] ); + } + elseif ( @$match['title'] ) + { + $title = stripslashes( $match['title'] ); + } + else + { + $title = JText::sprintf( 'Page #', $i ); + } + $subnode = new stdclass(); + $subnode->id = $parent->id; + $subnode->uid = $parent->uid.'a'.$item->id.'p'.$i; + $subnode->browserNav = $parent->browserNav; + $subnode->priority = $params['art_priority']; + $subnode->changefreq = $params['art_changefreq']; + $subnode->name = $title; + $subnode->access = $item->access; + $subnode->expandible = false; + $subnode->link = $link; + $subnodes[]=$subnode; + $i++; + } + } + $node->expandible = (count($subnodes)> 0); // This article has children + + } + } + if ($xmap->printNode($node) && $node->expandible) { + $xmap->changeLevel(1); + foreach ($subnodes as $subnode) { + $xmap->printNode($subnode); + } + $xmap->changeLevel(-1); + } + } + $xmap->changeLevel(-1); + } + return true; + } + + + /** Get all Categories within a Section. + * Also call getCategory() for each Category to include it's items */ + function getContentSection(&$xmap, &$parent, $secid, &$params, &$menuparams ) { + $db = & JFactory::getDBO(); + + $orderby = $menuparams->get('orderby'); + $orderby = xmap_com_content::orderby_sec( $orderby ); + $query = + 'SELECT a.id, a.title, a.name, a.params,a.section,a.alias' + . ',CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug' + . "\n FROM #__categories AS a" + . "\n LEFT JOIN #__content AS b ON b.catid = a.id " + . "\n AND b.state = '1'" + . "\n AND ( b.publish_up = '0000-00-00 00:00:00' OR b.publish_up <= '". date('Y-m-d H:i:s',$xmap->now) ."' )" + . "\n AND ( b.publish_down = '0000-00-00 00:00:00' OR b.publish_down >= '". date('Y-m-d H:i:s',$xmap->now) ."' )" + . ( $params['show_unauth'] ? '' : "\n AND b.access <= ". $xmap->gid ) // authentication required ? + . "\n WHERE a.section = '". $secid ."'" + . "\n AND a.published = '1'" + . ( $params['show_unauth'] ? '' : "\n AND a.access <= ". $xmap->gid ) // authentication required ? + . "\n GROUP BY a.id" + . ( $menuparams->get('empty_cat') ? '' : "\n HAVING COUNT( b.id ) > 0" ) // hide empty categories ? + . ( $xmap->view != 'xml'? "\n ORDER BY ". $orderby: ''); + + $db->setQuery( $query ); + $items = $db->loadObjectList(); + + $layout = ''; + + $xmap->changeLevel(1); + foreach($items as $item) { + $node = new stdclass(); + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$item->id; + $node->name = $item->title; + $node->browserNav = $parent->browserNav; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + $node->link = ContentHelperRoute::getCategoryRoute($item->slug, $item->section); + # $node->link = 'index.php?option=com_content&view=category'.$layout.'&id='.$item->slug; + if( ($xmap->printNode($node) !== FALSE) && $params['expand_categories'] ) { + xmap_com_content::getContentCategory($xmap, $parent, $item->id, $params, $menuparams); + } + } + $xmap->changeLevel(-1); + return true; + } + + /** Return an array with all Items in a Section */ + function getContentBlogSection(&$xmap, &$parent, $secid, &$params, &$menuparams ) { + $db = & JFactory::getDBO(); + if ($params['articles_order'] == 'menu') { + $order_sec = $menuparams->get('orderby_sec','rdate'); + } else { + $order_sec = $params['articles_order']; + } + $order_pri = $menuparams->get('orderby_pri'); + + $order_pri = xmap_com_content::orderby_pri( $order_pri ); + $order_sec = xmap_com_content::orderby_sec( $order_sec ); + + $now = date('Y-m-d H:i:s',$xmap->now); + $query = + "SELECT a.id, a.title,a.access,a.metakey, UNIX_TIMESTAMP(a.modified) AS modified, UNIX_TIMESTAMP(a.created) AS created,a.sectionid" + . ',CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug' + . ',CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug'. + ',cc.title as category' + . "\n FROM #__content AS a" + . "\n INNER JOIN #__categories AS cc ON cc.id = a.catid" + . "\n LEFT JOIN #__users AS u ON u.id = a.created_by" + . "\n LEFT JOIN #__content_rating AS v ON a.id = v.content_id" + . "\n LEFT JOIN #__sections AS s ON a.sectionid = s.id" + . "\n LEFT JOIN #__groups AS g ON a.access = g.id" + . "\n WHERE a.sectionid = '". $secid ."'" + . "\n AND s.access <= ".$xmap->gid + . "\n AND cc.access <= ".$xmap->gid + . "\n AND a.state = '1'" + . "\n AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '$now' )" + . "\n AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '$now' )" + . ( $params['show_unauth'] ? '' : "\n AND a.access <= ". $xmap->gid ) // authentication required ? + . ( $params['max_art_age'] ? "\n AND ( a.created >= '".date('Y-m-d H:i:s',time() - $params['max_art_age'] * 86400)."' ) " : '') + . "\n AND s.published = 1" + . "\n AND cc.published = 1" + . ($xmap->view!='xmal'?"\n ORDER BY $order_pri $order_sec":''); + return xmap_com_content::showArticles($xmap,$parent,$params,$query); + + } + + /** translate primary order parameter to sort field */ + function orderby_pri( $orderby ) { + switch ( $orderby ) { + case 'alpha': + $orderby = 'cc.title, '; + break; + + case 'ralpha': + $orderby = 'cc.title DESC, '; + break; + + case 'order': + $orderby = 'cc.ordering, '; + break; + + default: + $orderby = ''; + break; + } + + return $orderby; + } + + /** translate secondary order parameter to sort field */ + function orderby_sec( $orderby ) { + switch ( $orderby ) { + case 'date': + $orderby = 'a.created'; + break; + + case 'rdate': + $orderby = 'a.created DESC'; + break; + + case 'alpha': + $orderby = 'a.title'; + break; + + case 'ralpha': + $orderby = 'a.title DESC'; + break; + + case 'hits': + $orderby = 'a.hits'; + break; + + case 'rhits': + $orderby = 'a.hits DESC'; + break; + + case 'order': + $orderby = 'a.ordering'; + break; + + case 'author': + $orderby = 'a.created_by_alias, u.name'; + break; + + case 'rauthor': + $orderby = 'a.created_by_alias DESC, u.name DESC'; + break; + + case 'front': + $orderby = 'f.ordering'; + break; + + default: + $orderby = 'a.ordering'; + break; + } + + return $orderby; + } + +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_content.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_content.xml new file mode 100644 index 00000000..53629965 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_content.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_content.xml 106 2010-04-18 14:40:53Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>Content Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>26/02/2008</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.5.0</version> + <description>Plugin for Joomla's categories/articles</description> + <files> + <filename xmap_ext="com_content">com_content.php</filename> + </files> + <params> + <param name="expand_categories" type="list" default="1" label="Expand Categories" description="Expand Content Categories"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="expand_sections" type="list" default="1" label="Expand Sections" description="Expand Content Sections"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="articles_order" type="list" default="menu" label="Articles order" description="In which order do you want the articles?"> + <option value="menu">Use menu item ordering setting</option> + <option value="order">Custom ordering</option> + <option value="alpha">Title Ascendant</option> + <option value="ralpha">Title Descendant</option> + <option value="date">Creation date Ascendant</option> + <option value="rdate">Creation date Descendant</option> + <option value="hits">Hits Ascendant</option> + <option value="rhits">Hits Descendant</option> + </param> + <param name="add_pagebreaks" type="list" default="1" label="Add pagebreaks?" description="If yes, will include the sub-pages of the article into the sitemap."> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="add_images" type="list" default="0" label="Add images?" description="If yes, will parse the content of the article searching for images and add them to the sitemap. Valid Only for XML sitamap (Google Sitemap) "> + <option value="1">Yes</option> + <option value="0">No</option> + </param> + <param name="max_images" type="text" default="1000" label="Max images" description="The maximun number of images to include per article. 1000 images is the maximun allowed by Google" /> + <param name="show_unauth" type="list" default="0" label="Show Unauthorized Links" description="If yes, will show links to content to registered content even if you are not logged in. The user will need to login to see the item in full."> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="max_art" type="text" default="0" label="Max. Articles per Category" description="Maximum number of articles per category to include in the sitemap (0 for no limit)." /> + <param name="max_art_age" type="text" default="0" label="Max. Article's Age in days" description="The maximun number of days that an article must have to be included in the sitemap. (0 for no limit). If this is 0 or greater than 3, then Xmap will use 3 days as the max limit for the Google News Sitemp." /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="art_priority" type="list" default="-1" label="Article Priority" description="Set the priority for articles"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="art_changefreq" type="list" default="-1" label="Article Change frequency" description="Set the chage frequency for articles"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="@spacer" type="spacer" default="" label="News Sitemap" description="Options for the Google News sitemap only" /> + <param name="keywords" type="list" default="1" label="News Keywords" description="Which keywords should we use for Google News"> + <option value="metakey">Article's Metakeys</option> + <option value="category">Catetegory Title</option> + <option value="both">Article's Metakeys + Category Title</option> + <option value="none">None</option> + </param> + </params> +</install> \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_docman.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_docman.php new file mode 100644 index 00000000..6cb3a5b9 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_docman.php @@ -0,0 +1,153 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_docman.php 76 2009-12-19 19:41:55Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for DOCman component +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +class xmap_com_docman { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $task = JArrayHelper::getValue($link_vars,'task',''); + $id = intval(JArrayHelper::getValue($link_vars,'gid',0)); + + switch( $task ) { + case 'doc_details': case 'doc_download': + $node->uid = 'com_docmand'.$id; + $node->false=true; + break; + case 'cat_view': + $node->uid = 'com_docmanc'.$id; + $node->expandible=true; + break; + } + } + + function &getTree ( &$xmap, &$parent, &$params ) { + $db =& JFactory::getDBO(); + + //DOCMan core interaction API + include_once( JPATH_SITE."/administrator/components/com_docman/docman.class.php"); + global $_DOCMAN, $_DMUSER; + if(!is_object($_DOCMAN)) { + $_DOCMAN = new dmMainFrame(); + } + + if(!is_object($_DMUSER)) { + $_DMUSER =$_DOCMAN->getUser(); + } + + $_DOCMAN->setType(_DM_TYPE_MODULE); + $_DOCMAN->loadLanguage('modules'); + + require_once($_DOCMAN->getPath('classes', 'utils')); + require_once($_DOCMAN->getPath('classes', 'file')); + require_once($_DOCMAN->getPath('classes', 'model')); + + // get the parameters + $menu = JSite::getMenu(); + $queryparams = $menu->getParams($parent->id); + $catid=intval($queryparams->get('cat_id',NULL)); + if (!$catid) { + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = JArrayHelper::getValue($link_vars,'gid',0); + } + + $include_docs = JArrayHelper::getValue($params,'include_docs',1); + $include_docs = ( $include_docs == 1 + || ( $include_docs == 2 && $xmap->view == 'xml') + || ( $include_docs == 3 && $xmap->view == 'html')); + $params['include_docs'] = $include_docs; + + $doc_task = JArrayHelper::getValue($params,'doc_task','doc_details'); + $params['doc_task'] = $doc_task; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'doc_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'doc_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['doc_priority'] = $priority; + $params['doc_changefreq'] = $changefreq; + + $menuid = $parent->id; + $list = xmap_com_docman::getCategoryTree($xmap,$parent,$params,$catid,$menuid); + + return $list; + } + + function getCategoryTree(&$xmap,&$parent,&$params,$catid=0,$menuid) { + $db =& JFactory::getDBO(); + $limits = 25; + $list = array(); + + $query = 'select id,title from #__categories where parent_id='.$catid . ' and section=\'com_docman\' and published=1'; + $db->setQuery($query); + $rows = $db->loadRowList(); + // Get sub-categories list + $xmap->changeLevel(1); + foreach ($rows as $row) { + $node = new stdclass; + $node->id = $menuid; + $node->uid = $parent->uid . 'c'.$row[0]; // should be uniq on component + $node->name = $row[1]; + $node->browserNav = $parent->browserNav; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + $node->link = 'index.php?option=com_docman&task=cat_view&gid='.$row[0]; + if ($xmap->printNode($node) !== FALSE) { + xmap_com_docman::getCategoryTree($xmap,$parent,$params,$row[0],$menuid); + } + } + $xmap->changeLevel(-1); + + $include_docs = @$params['include_docs']; + if ( $catid > 0 && $params['include_docs'] ) { + $xmap->changeLevel(1); + $rows = DOCMAN_Docs::getDocsByUserAccess($catid, '', '', $limits); + // Get documents list + foreach ($rows as $row) { + $doc = new DOCMAN_Document($row->id); + + $node = new stdclass; + $node->id = $menuid; + $node->uid = $parent->uid . 'd'.$row->id; // should be uniq on component + $node->link = 'index.php?option=com_docman&task='.$params['doc_task'].'&gid='.$row->id. '&Itemid='.$menuid; + $node->browserNav = $parent->browserNav; + $node->priority = $params['doc_priority']; + $node->changefreq = $params['doc_changefreq']; + $node->name = $doc->getData('dmname'); + $node->type = 'separator'; + $node->expandible = false; + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } + return true; + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_docman.xml.txt b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_docman.xml.txt new file mode 100644 index 00000000..aac150ee --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_docman.xml.txt @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<install type="xmap_ext" version="1.5.0"> + <name>DOCman Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>2008/02/25</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.5.0</version> + <description>Plugin for DOCman component</description> + <files> + <filename xmap_ext="com_docman">com_docman.php</filename> + </files> + <params> + <param name="include_docs" type="list" default="1" label="Show Documents" description="Should we include documents into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="doc_task" type="list" default="" label="Link Documents" description="Where should we link the documents link?"> + <option value="doc_details">Document Details</option> + <option value="doc_download">Document Download</option> + </param> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="0.5" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="weekly" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="doc_priority" type="list" default="0.5" label="Document Priority" description="Set the priority for the documents"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="doc_changefreq" type="list" default="weekly" label="Document Change frequency" description="Set the chage frequency for the documents"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_eventlist.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_eventlist.php new file mode 100644 index 00000000..d7b0ebf6 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_eventlist.php @@ -0,0 +1,235 @@ +<?php +/** + * $Id: com_eventlist.php 90 2010-03-14 16:06:40Z guilleva $ + * $LastChangedDate: 2010-03-14 10:06:40 -0600 (dom, 14 mar 2010) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * a sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + +/* + * Handles EventList Category structure + */ +class xmap_com_eventlist +{ + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $id = intval(xmap_com_eventlist::getParam($link_vars,'id',0)); + $view = xmap_com_eventlist::getParam($link_vars,'view',0); + if ( !$id ) { + $menu =& JSite::getMenu(); + $params = $menu->getParams($node->id); + $id = $params->get('id',0); + } + if ( $id ) { + if ( $view == 'details' ) { + $node->uid = 'com_eventliste'.$id; + $node->expandible = false; + } elseif ( $view == 'categoryevents' ) { + $node->expandible = true; + $node->uid = 'com_eventlistc'.$id; + } elseif ( $view == 'venueevents' ) { + $node->expandible = true; + $node->uid = 'com_eventlistv'.$id; + } + } else { + $node->expandible = true; + } + } + + /* + * Return Category tree + */ + function getTree( &$xmap, &$parent, $params ) + { + $catid=0; + $venid=0; + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars ); + $view = JArrayHelper::getValue($link_vars,'view',''); + + if ( $view == 'categoryevents' ) { + $catid = intval(JArrayHelper::getValue($link_vars,'id',0)); + }elseif ( $view == 'venueevents' ) { + $venid = intval(JArrayHelper::getValue($link_vars,'id',0)); + }elseif ( $view == 'eventlist' ) { + $catid = 0; + }elseif ( $view != 'venues' && $view != 'categories' ) { //Do not expand other kind of menu items + return true; + } + + $include_events = JArrayHelper::getValue( $params, 'include_events',1,'' ); + $include_events = ( $include_events == 1 + || ( $include_events == 2 && $xmap->view == 'xml') + || ( $include_events == 3 && $xmap->view == 'html')); + $params['include_events'] = $include_events; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'venue_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'venue_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['venue_priority'] = $priority; + $params['venue_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'event_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'event_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['event_priority'] = $priority; + $params['event_changefreq'] = $changefreq; + + if ( $include_events ) { + $params['limit'] = ''; + $params['days'] = ''; + $limit = JArrayHelper::getValue($params,'max_events','',''); + + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = JArrayHelper::getValue($params,'max_age','',''); + if ( intval($days) ) + $params['days'] = ' AND filedate >= \''.date('Y-m-d H:m:s', ($xmap->now - ($days*86400)) ) ."' "; + } + + switch ($view) { + case 'categories': + case 'categoriesdetailed': + case 'categoryevents': + case 'eventlist': + xmap_com_eventlist::getCategoryTree( $xmap, $parent, $params, $catid ); + break; + case 'venues': + case 'venueevents': + xmap_com_eventlist::getVenueTree( $xmap, $parent, $params, $venid ); + break; + } + } + + function getCategoryTree(&$xmap, &$parent, $params,$catid=0) + { + + $db = &JFactory::getDBO(); + $gid = intval($xmap->gid); + + $query = "SELECT id , catname, alias" + . "\nFROM #__eventlist_categories" + . "\nWHERE published = 1 and parent_id=$catid" + . "\nAND access <= $gid" + . "\nORDER BY ordering"; + $db->setQuery($query); + $cats = $db->loadObjectList(); + + $xmap->changeLevel(1); + foreach($cats as $cat) + { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$cat->id; + $node->name = $cat->catname; + $node->link = 'index.php?option=com_eventlist&view=categoryevents&id='.$cat->id.':'.$cat->alias; + $node->expandible = true; + $xmap->printNode($node); + } + + if ($params['include_events']) { + $db->setQuery ("select `id`, `title`,`alias`,UNIX_TIMESTAMP(`created`) as `created`,UNIX_TIMESTAMP(`modified`) as `modified` from #__eventlist_events where catsid=$catid and `published` = '1' ".$params['days']." order by dates,times,enddates,endtimes " . $params['limit']); + # echo $db->getQuery (); + $rows = $db->loadObjectList(); + foreach ($rows as $event) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid .'e'.$event->id; + $node->name = $event->title; + $node->modified = ($event->modified? $event->modified : $event->created); + $node->link = 'index.php?option=com_eventlist&view=details&id='.$event->id.':'.$event->alias; + $node->priority = $params['event_priority']; + $node->changefreq = $params['event_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + } + + $xmap->changeLevel(-1); + + } + + function getVenueTree(&$xmap, &$parent, $params,$id=0) + { + + $db = &JFactory::getDBO(); + $gid = intval($xmap->gid); + + $xmap->changeLevel(1); + if ( !$id ) { + $query = "SELECT id , venue, alias" + . "\nFROM #__eventlist_venues" + . "\nWHERE published = 1" + . "\nORDER BY ordering"; + $db->setQuery($query); + $venues = $db->loadObjectList(); + + foreach($venues as $venue) + { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'v'.$venue->id; + $node->name = $venue->venue; + $node->link = 'index.php?option=com_eventlist&view=venueevents&id='.$venue->id.':'.$venue->alias; + $node->expandible = true; + if ( $xmap->printNode($node) ) { + xmap_com_eventlist::getVenueTree($xmap, $parent,$params,$venue->id); + } + } + } else { + if ($params['include_events']) { + $db->setQuery ("select `id`, `title`,`alias`,UNIX_TIMESTAMP(`created`) as `created`,UNIX_TIMESTAMP(`modified`) as `modified` from #__eventlist_events where catsid=$id and `published` = '1' ".$params['days']." order by dates,times,enddates,endtimes " . $params['limit']); + $rows = $db->loadObjectList(); + foreach($rows as $event) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid .'e'.$event->id; + $node->name = $event->title; + $node->modified = ($event->modified? $event->modified : $event->created); + $node->link = 'index.php?option=com_eventlist&view=details&id='.$event->id.':'.$event->alias; + $node->priority = $params['event_priority']; + $node->changefreq = $params['event_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + } + } + + $xmap->changeLevel(-1); + + } + + function &getParam($arr, $name, $def) { + $var = JArrayHelper::getValue( $arr, $name, $def, '' ); + return $var; + } +} +?> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_eventlist.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_eventlist.xml new file mode 100644 index 00000000..d5ae962a --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_eventlist.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_eventlist.xml 52 2009-10-24 22:35:11Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>Eventlist Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>2009/07/29</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.0</version> + <description>Plugin for Eventlist component</description> + <files> + <filename xmap_ext="com_eventlist">com_eventlist.php</filename> + </files> + <params> + <param name="include_events" type="list" default="1" label="Show Events" description="Should we include events into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="max_events" type="text" default="" label="Max events" description="Max number of events per category to include on sitemap (Leave empty for no limit)" /> + <param name="max_age" type="text" default="" label="Newest than" description="Only show events newest than this number of days (Leave it blank to ignore this option)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="file_priority" type="list" default="-1" label="File Priority" description="Set the priority for the files"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="file_changefreq" type="list" default="-1" label="File Change frequency" description="Set the chage frequency for the files"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_g2bridge.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_g2bridge.php new file mode 100644 index 00000000..e156dd8f --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_g2bridge.php @@ -0,0 +1,180 @@ +<?php +/** +* $Id: com_g2bridge.php 52 2009-10-24 22:35:11Z guilleva $ +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for Gallery2 Brige component +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +class xmap_com_g2bridge +{ + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) + { + $menu =& JSite::getMenu(); + $g2params = $menu->getParams($node->id); + + $rootAlbum = $g2params->get("alb_id", -1); + + if($rootAlbum != -1) { + $node->uid = 'com_g2bridgea'.$rootAlbum; + $node->expandible=true; + } + } + + function getTree( &$xmap, &$parent, $params ) + { + if ( !file_exists(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_g2bridge'.DS.'helpers'.DS.'g2bridgecore.class.php') ) { + return false; + } + require_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_g2bridge'.DS.'helpers'.DS.'g2bridgecore.class.php' ); + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $view = xmap_com_g2bridge::getParam($link_vars,'view','gallery'); + $rootAlbum = xmap_com_g2bridge::getParam($link_vars,'g2_itemId',-1); + + + if(!G2BridgeCore::loadSettings()) + { + return false; + } + global $gallery; + + $urlGenerator =& $gallery->getUrlGenerator(); + + $ret = GalleryInitSecondPass(); + if ($ret) { + return false; + } + + $menu =& JSite::getMenu(); + $g2params = $menu->getParams($parent->id); + + if ( $rootAlbum == -1 ) { // If the album id is not in the url of the parent item, then look at the menu params + // ItemID of the root album + $rootAlbum = $g2params->get("alb_id", -1); + } + if($rootAlbum != -1) + $rootId = $rootAlbum; + else + $rootId = 7; + + // Fetch all items contained in the root album + list ($ret, $rootItems) = + GalleryCoreApi::fetchChildItemIdsWithPermission($rootId, 'core.view'); + + if ( $ret ) + return null; + + // init params + $include_items = xmap_com_g2bridge::getParam($params,'include_items',1); + $include_items = ( $include_items == 1 + || ( $include_items == 2 && $xmap->view == 'xml') + || ( $include_items == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_items'] = $include_items; + + $priority = xmap_com_g2bridge::getParam($params,'cat_priority',$parent->priority); + $changefreq = xmap_com_g2bridge::getParam($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = xmap_com_g2bridge::getParam($params,'item_priority',$parent->priority); + $changefreq = xmap_com_g2bridge::getParam($params,'item_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['item_priority'] = $priority; + $params['item_changefreq'] = $changefreq; + + // Recurse through the whole album tree + xmap_com_g2bridge::getG2Tree( $xmap,$parent,$params,$rootItems,$urlGenerator ); + } + + + function getG2Tree( &$xmap,&$parent,$params,&$items,&$urlGenerator ) + { + if( !$items ) + return null; + + $xmap->changeLevel(1); + $media = array(); + foreach( $items as $itemId ) { + + // Fetch the details for this item + list ($ret, $entity) = GalleryCoreApi::loadEntitiesById($itemId); + + if ( $ret ){ + // error, skip and continue, catch this error in next component version + continue; + } + + $node = new stdClass(); + $node->id = $entity->getId(); + $node->uid = $parent->uid.'a'.$entity->getId(); + $node->name = $entity->getTitle(); + $node->pid = $entity->getParentId(); + $node->modified = $entity->getModificationTimestamp(); + $node->link = $urlGenerator->generateUrl ( + array('view' => 'core.ShowItem', 'itemId' => $node->id), + array('forceSessionId' => false, 'forceFullUrl' => false) + ); + + // Fix for the navigator view + if ( $xmap->view == 'navigator' ) { + $node->link = str_replace('/administrator/index.php','',$node->link); + } + + // If it is an album + if ( $entity->getCanContainChildren() ) { + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible=true; + // Get all child items contained in this album and add them to the tree + list ($ret, $childIds) = + GalleryCoreApi::fetchChildItemIdsWithPermission($node->id, 'core.view'); + + if ($ret) { + // error, skip and continue, catch this error in next component version + continue; + } + + if ($xmap->printNode($node) !== false) { + xmap_com_g2bridge::getG2Tree( $xmap,$parent,$params,$childIds,$urlGenerator ); + } + } elseif ($params['include_items']) { + $node->priority = $params['item_priority']; + $node->changefreq = $params['item_changefreq']; + $node->uid = $parent->uid.'p'.$entity->getId(); + $node->expandible=false; + $media[] = $node; + } + } + + foreach ($media as $pic ) { + $xmap->printNode($pic); + } + $xmap->changeLevel(-1); + + } + + function getParam($arr, $name, $def) + { + return JArrayHelper::getValue( $arr, $name, $def, '' ); + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_g2bridge.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_g2bridge.xml new file mode 100644 index 00000000..6db64efd --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_g2bridge.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_g2bridge.xml 52 2009-10-24 22:35:11Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>Gallery2 Bridge Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>Nov 2008</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.2</version> + <description>Plugin for Gallery2 Bridge component</description> + <files> + <filename xmap_ext="com_g2bridge">com_g2bridge.php</filename> + </files> + <params> + <param name="include_items" type="list" default="2" label="Show Photos" description="Should we include photos into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In HTML Sitemap Only</option> + </param> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="item_priority" type="list" default="-1" label="Photos Priority" description="Set the priority for the photos"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="item_changefreq" type="list" default="-1" label="Photos Change frequency" description="Set the chage frequency for the photos"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_glossary.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_glossary.php new file mode 100644 index 00000000..757273fc --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_glossary.php @@ -0,0 +1,206 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_glossary.php 52 2009-10-24 22:35:11Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for Glossary Forumn Component. +*/ + +/** Handles Glossary component structure */ +class xmap_com_glossary { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $letter = JArrayHelper::getValue($link_vars,'letter',''); + $id = intval(JArrayHelper::getValue($link_vars,'id',0)); + $func = JArrayHelper::getValue( $link_vars, 'func', '', '' ); + if ( $letter && !$id ) { + $node->uid = 'com_glossaryl'.$catid; + $node->expandible = true; + } elseif ( $id) { + $node->uid = 'com_glossarye'.$id; + $node->expandible = false; + } + } + + function getTree ( &$xmap, &$parent, &$params ) { + if (! file_exists((JPATH_SITE.DS.'components'.DS.'com_glossary'.DS.'cmsapi.interface.php'))){ + return false; + } + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $glossaryid = $xmap->getParam($link_vars,'glossid',0); + $letter = $xmap->getParam($link_vars,'letter',''); + $id = $xmap->getParam($link_vars,'id',0); + + $conf =& xmap_com_glossary::getConfig(); + if ($id) { // Do not expand links to entries + return; + } elseif ( !$glossaryid ) { + if (!$conf->showcategories) { + $database =& JFactory::getDBO(); + $query = "SELECT id FROM #__glossaries ORDER BY isdefault DESC, id LIMIT 1"; + $database->setQuery($query); + $glossaryid = $database->loadResult(); + } + } + + $include_entries = $xmap->getParam($params,'include_entries',1); + $include_entries = ( $include_entries == 1 + || ( $include_entries == 2 && $xmap->view == 'xml') + || ( $include_entries == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_entries'] = $include_entries; + + + $priority = $xmap->getParam($params,'letter_priority',$parent->priority); + $changefreq = $xmap->getParam($params,'letter_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['letter_priority'] = $priority; + $params['letter_changefreq'] = $changefreq; + + // Entries Properties + $priority = $xmap->getParam($params,'entry_priority',$parent->priority); + $changefreq = $xmap->getParam($params,'entry_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['entry_priority'] = $priority; + $params['entry_changefreq'] = $changefreq; + + + if ( $include_entries ) { + $params['limit'] = ''; + $limit = $xmap->getParam($params,'max_entries',''); + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + } + + if ( !$letter && $glossaryid ) { + xmap_com_glossary::getGlossaryTree($xmap, $parent, $params, $glossaryid); + } elseif ( $letter ) { + xmap_com_glossary::getLetterTree($xmap, $parent, $params, $letter, $glossaryid); + } else { + xmap_com_glossary::getFullTree($xmap, $parent, $params); + } + } + + /* Return glossaries/letters/entries tree */ + function getFullTree( &$xmap, &$parent, &$params ) + { + $database =& JFactory::getDBO(); + + /*get list of glossaries */ + $xmap->changeLevel(1); + $query = "select g.id,g.name,UNIX_TIMESTAMP(max(t.teditdate)) as `modified` FROM ". + "#__glossaries AS g LEFT JOIN #__glossary AS t ON g.id = t.catid AND t.published=1 ". + "WHERE g.published=1 ". + "GROUP BY t.catid ORDER BY name"; + $database->setQuery($query); + # echo $database->getQuery(); + $glossaries = $database->loadObjectList(); + + foreach ( $glossaries as $glossary ) { + $node = new stdclass; + $node->id = $parent->id; + $node->browserNav = $parent->browserNav; + $node->uid = $parent->uid.'l'.$glossary->id; + $node->name = $glossary->name; + $node->modified = intval($glossary->modified); + $node->priority = $params['letter_priority']; + $node->changefreq = $params['letter_changefreq']; + $node->link = 'index.php?option=com_glossary&glossid='.$glossary->id; + $node->expandible = true; + if ( ($xmap->printNode($node) !== FALSE) ) { + xmap_com_glossary::getGlossaryTree($xmap,$parent,$params,$glossary->id,0); + } + } + $xmap->changeLevel(-1); + } + + /* Return glossary/letter tree */ + function getGlossaryTree( &$xmap, &$parent, &$params, $glossaryid ) + { + $database =& JFactory::getDBO(); + + /*get list of letters */ + $xmap->changeLevel(1); + $query = "select tletter,unix_timestamp(max(teditdate)) as `modified` from #__glossary where published=1 && catid=$glossaryid group by tletter order by tletter"; + $database->setQuery($query); + # echo $database->getQuery(); + $letters = $database->loadObjectList(); + + foreach ( $letters as $letter ) { + $node = new stdclass; + $node->id = $parent->id; + $node->browserNav = $parent->browserNav; + $node->uid = $parent->uid.'l'.$letter->tletter; + $node->name = $letter->tletter; + $node->modified = intval($letter->modified); + $node->priority = $params['letter_priority']; + $node->changefreq = $params['letter_changefreq']; + $node->link = 'index.php?option=com_glossary&glossid='.$glossaryid.'&letter='.$letter->tletter; + $node->expandible = true; + if ( ($xmap->printNode($node) !== FALSE) && $params['include_entries'] ) { + xmap_com_glossary::getLetterTree($xmap,$parent,$params,$letter->tletter,$glossaryid); + } + } + $xmap->changeLevel(-1); + } + + function getLetterTree( &$xmap, &$parent, &$params,$letter,$glossaryid ) + { + $database =& JFactory::getDBO(); + if ( $letter && $glossaryid ) { + $xmap->changeLevel(1); + $query = "SELECT id,tterm,unix_timestamp(tdate) as created, unix_timestamp(teditdate) as modified ". + "FROM #__glossary ". + "WHERE tletter='".$database->getEscaped($letter)."' ". + "AND catid=$glossaryid AND published=1 " . + $params['limit']; + $database->setQuery($query); + $entries = $database->loadObjectList(); + //get list of forums + foreach($entries as $entry) { + if (!$entry->modified) $entry->modified = $entry->created; + $node = new stdclass; + $node->id = $parent->id; + $node->browserNav = $parent->browserNav; + $node->uid = $parent->uid.'e'.$entry->id; + $node->name = $entry->tterm; + $node->priority = $params['entry_priority']; + $node->changefreq = $params['entry_changefreq']; + $node->modified = intval($entry->modified); + $node->link = 'index.php?option=com_glossary&task=entry&id='.$entry->id; + $node->expandible = false; + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } + } + + function &getConfig() { + static $config; + if (!isset($config)) { + require_once(JPATH_SITE.DS.'components'.DS.'com_glossary'.DS.'cmsapi.interface.php'); + $config =& cmsapiConfiguration::getInstance(); + } + + return $config; + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_glossary.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_glossary.xml new file mode 100644 index 00000000..243f271a --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_glossary.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_glossary.xml 52 2009-10-24 22:35:11Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>Glossary Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>July 2009</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.0</version> + <description>Plugin for Glossary component</description> + <files> + <filename xmap_ext="com_glossary">com_glossary.php</filename> + </files> + <params> + <param name="include_entries" type="list" default="1" label="Show Forums" description="Should we include entries into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="max_entries" type="text" default="" label="Max entries" description="Max number of entries per Letter to include on sitemap (Leave empty for no limit)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="letter_priority" type="list" default="0.5" label="Category Priority" description="Set the priority for the letters"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="letter_changefreq" type="list" default="weekly" label="Letter Change frequency" description="Set the change frequency for the letters"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="entry_priority" type="list" default="0.5" label="Topic Priority" description="Set the priority for the entries"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="entry_changefreq" type="list" default="weekly" label="Topic Change frequency" description="Set the change frequency for the entries"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_hotproperty.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_hotproperty.php new file mode 100644 index 00000000..66f761dc --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_hotproperty.php @@ -0,0 +1,371 @@ +<?php +/** + * $Id: com_hotproperty.php 97 2010-04-15 19:21:56Z guilleva $ + * $LastChangedDate: 2010-04-15 13:21:56 -0600 (jue, 15 abr 2010) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * a sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + + +defined('_JEXEC') or die('Direct Access to this location is not allowed.'); + +class xmap_com_hotproperty { + + + function getTree( &$xmap, &$parent, $params ) { + $type=$company=0; + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $view = $xmap->getParam($link_vars,'view',0); + $layout = $xmap->getParam($link_vars,'layout',0); + $id = intval($xmap->getParam($link_vars,'id',0)); + + switch ($view) { + case 'type': case 'types': + $type = $id; + break; + case 'company': case 'companies': + $company = $id; + break; + case 'home': + break; + default: + // Only expand link to home or certain type of views + return; + } + + $include_properties = $xmap->getParam($params,'include_properties',1); + $include_properties = ( $include_properties == 1 + || ( $include_properties == 2 && $xmap->view == 'xml') + || ( $include_properties == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_properties'] = $include_properties; + + $include_companies = $xmap->getParam($params,'include_companies',1); + $include_companies = ( $include_companies == 1 + || ( $include_companies == 2 && $xmap->view == 'xml') + || ( $include_companies == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_companies'] = $include_companies; + + $include_agents = $xmap->getParam($params,'include_agents',1); + $include_agents = ( $include_agents == 1 + || ( $include_agents == 2 && $xmap->view == 'xml') + || ( $include_agents == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_agents'] = $include_agents; + + $priority = $xmap->getParam($params,'type_priority',$parent->priority); + $changefreq = $xmap->getParam($params,'type_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['type_priority'] = $priority; + $params['type_changefreq'] = $changefreq; + + $priority = $xmap->getParam($params,'property_priority',$parent->priority); + $changefreq = $xmap->getParam($params,'property_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['property_priority'] = $priority; + $params['property_changefreq'] = $changefreq; + + $priority = $xmap->getParam($params,'company_priority',$parent->priority); + $changefreq = $xmap->getParam($params,'company_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['company_priority'] = $priority; + $params['company_changefreq'] = $changefreq; + + $priority = $xmap->getParam($params,'agent_priority',$parent->priority); + $changefreq = $xmap->getParam($params,'agent_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['agent_priority'] = $priority; + $params['agent_changefreq'] = $changefreq; + + + if (file_exists(JPATH_ADMINISTRATOR.DS."components".DS."com_hotproperty".DS."config.hotproperty.php")) { + include (JPATH_ADMINISTRATOR.DS."components".DS."com_hotproperty".DS."config.hotproperty.php"); + $params['property_order'] = $hp_default_order? $hp_default_order : 'name'; + $params['property_order_mode'] = $hp_default_order2? $hp_default_order2 : 'asc'; + $params['link_type'] = 0; + } elseif (file_exists(JPATH_ADMINISTRATOR.DS."components".DS."com_hotproperty".DS."configuration.php")) { + require_once (JPATH_ADMINISTRATOR.DS."components".DS."com_hotproperty".DS."configuration.php"); + $conf = new HotpropertyConfiguration; + $params['property_order'] = $conf->hp_default_order? $conf->hp_default_order : 'name'; + $params['property_order_mode'] = $conf->hp_default_order2? $conf->hp_default_order2 : 'asc'; + $params['link_type'] = 0; + } elseif (file_exists(JPATH_ADMINISTRATOR.DS."components".DS."com_hotproperty".DS."config.xml")) { //Hot Property >= 1.0beta5 + $conf = JComponentHelper::getParams('com_hotproperty'); + $params['property_order'] = str_replace('Property.','',$conf->get('orderging', 'name')); + $params['property_order_mode'] = $conf->get('ordering_dir', 'asc'); + $params['link_type'] = 1; + } else { //Unknown version or configuration not found + return; + } + + if (!isset($params['companies_text'])) { + $params['companies_text'] = 'Companies'; + } + if (!isset($params['properties_text'])) { + $params['properties_text'] = 'Properties'; + } + if (!isset($params['agents_text'])) { + $params['agents_text'] = 'Agents'; + } + + switch ($view) { + case 'home': case 'type': case 'types': + xmap_com_hotproperty::getHotProperty($xmap, $parent, $params,$type); + break; + case 'company': case 'companies': + $list = $xmap->getParam($link_vars,'list',''); + if ($company) { + if ( $layout == 'properties') { + xmap_com_hotproperty::getHotPropertyCompany($xmap, $parent, $params, $company,$list); + } + } else { + xmap_com_hotproperty::getHotPropertyCompanies($xmap, $parent, $params); + } + break; + } + } + + function getHotProperty ( &$xmap, &$parent, &$params,$type ) { + + $database =& JFactory::getDBO(); + + $xmap->changeLevel(1); + if (!$type) { + $query = "SELECT id, name FROM #__hp_prop_types WHERE published='1' ORDER BY id"; + + $database->setQuery($query); + $rows = $database->loadObjectList(); + + if ( $params['link_type'] == 1 ) { + $prefix = 'index.php?option=com_hotproperty&view=types&layout=properties'; + } else { + $prefix = 'index.php?option=com_hotproperty&view=type'; + } + foreach($rows as $row) { + $node = new stdclass; + $node->name = $row->name; + $node->id = $parent->id; + $node->uid = $parent->uid.'t'.$row->id; + $node->link = $prefix.'&id='.$row->id; + $node->priority = $params['type_priority']; + $node->changefreq = $params['type_changefreq']; + $node->expandible = true; + if ($xmap->printNode($node) !== FALSE) { + xmap_com_hotproperty::getHotProperty($xmap, $parent, $params,$row->id); + } + } + } else { + if ( $params['include_properties'] ) { + $query = "SELECT id, name, UNIX_TIMESTAMP(created) AS `created`, UNIX_TIMESTAMP(`modified`) as `modified`, type FROM #__hp_properties WHERE published='1' AND approved='1' and type=$type ORDER BY {$params['property_order']} {$params['property_order_mode']}"; + $database->setQuery($query); + $rows = $database->loadObjectList(); + if ( $params['link_type'] == 1 ) { + //$prefix = 'index.php?option=com_hotproperty&view=properties'; + $prefix = 'index.php?option=com_hotproperty&view=properties&layout=property'; + } else { + $prefix = 'index.php?option=com_hotproperty&view=property'; + } + foreach($rows as $row) { + if( $row->modified == 0 ) { + $row->modified = $row->created; + } + $node = new stdclass; + $node->name = $row->name; + $node->link = $prefix.'&id='.$row->id; + $node->id = $parent->id; + $node->uid = $parent->uid.'p'.$row->id; + $node->modified = $row->modified; + $node->priority = $params['property_priority']; + $node->changefreq = $params['property_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + } + } + if ($params['include_companies'] && !$type) { + $node = new stdclass; + $node->name = $params['companies_text']; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'; + $node->link = 'index.php?option=com_hotproperty&view='.($params['link_type'] == 1 ? 'companies':'company') ; + $node->type = 'separator'; + $node->browserNav = 3; + $node->priority = $params['company_priority']; + $node->changefreq = $params['company_changefreq']; + $node->expandible = true; + $node->selectable = false; + if ($xmap->printNode($node) !== FALSE) { + xmap_com_hotproperty::getHotPropertyCompanies($xmap, $parent, $params); + } + } + $xmap->changeLevel(-1); + } + + + function getHotPropertyProperties ( &$xmap, &$parent, &$params,$company ) { + + $database =& JFactory::getDBO(); + + $xmap->changeLevel(1); + + $query = "SELECT id, name, UNIX_TIMESTAMP(created) AS `created`, UNIX_TIMESTAMP(`modified`) as `modified`, type ". + "FROM #__hp_properties ". + "WHERE published='1' AND approved='1' AND ". + " agent in (select id from #__hp_agents where company=$company) ". + "ORDER BY {$params['property_order']} {$params['property_order_mode']}"; + $database->setQuery($query); + $rows = $database->loadObjectList(); + if ( $params['link_type'] == 1 ) { + $prefix = 'index.php?option=com_hotproperty&view=properties&layout=properties'; + } else { + $prefix = 'index.php?option=com_hotproperty&view=property'; + } + foreach($rows as $row) { + if( $row->modified == 0 ) { + $row->modified = $row->created; + } + $node = new stdclass; + $node->name = $row->name; + $node->link = $prefix.'&id='.$row->id; + $node->id = $parent->id; + $node->uid = $parent->uid.'p'.$row->id; + $node->modified = $row->modified; + $node->priority = $params['property_priority']; + $node->changefreq = $params['property_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + + $xmap->changeLevel(-1); + } + + function getHotPropertyCompany ( &$xmap, &$parent, &$params, $company, $list ) { + + $database =& JFactory::getDBO(); + if (!$list && $company) { + $xmap->changeLevel(1); + $node = new stdclass; + $node->name = $params['properties_text']; + $node->id = $parent->id; + $node->uid = $parent->uid.'cp'.$company; + if ( $params['link_type'] == 1 ) { + $node->link = 'index.php?option=com_hotproperty&view=companies&layout=properties&id='.$company; + } else { + $node->link = 'index.php?option=com_hotproperty&view=company&id='.$company.'&list=property'; + } + $node->priority = $params['company_priority']; + $node->changefreq = $params['company_changefreq']; + $node->expandible = true; + if ( $xmap->printNode($node) !== FALSE) { + //xmap_com_hotproperty::getHotPropertyProperties($xmap, $parent, $params,$company); + } + + $node = new stdclass; + $node->name = $params['agents_text']; + $node->id = $parent->id; + $node->uid = $parent->uid.'ca'.$company; + // Dummy link, there is no need to link to this page as it's the same as the company link but + // we need to create a different link to use with the navigator + $node->link = 'index.php?option=com_hotproperty&view='.( $params['link_type'] == 1? 'companies':'company' ).'&id='.$company.'&list=agents'; + $node->type = 'separator'; + $node->browserNav = 3; + $node->priority = $params['company_priority']; + $node->changefreq = $params['company_changefreq']; + $node->expandible = true; + $node->selectable = false; + if ($xmap->printNode($node) !== FALSE) { + xmap_com_hotproperty::getHotPropertyAgents($xmap, $parent, $params,$company); + } + $xmap->changeLevel(-1); + } else if ($list=='property' && $company && $params['include_properties']) { + xmap_com_hotproperty::getHotPropertyProperties($xmap, $parent, $params,$company); + } elseif ($list=='agent' && $company && $params['include_agents']) { + xmap_com_hotproperty::getHotPropertyAgents($xmap, $parent, $params,$company); + } + } + + function getHotPropertyCompanies ( &$xmap, &$parent, &$params ) { + + $database =& JFactory::getDBO(); + + $query = "SELECT id, name FROM #__hp_companies ORDER BY name"; + + $database->setQuery($query); + $rows = $database->loadObjectList(); + + $xmap->changeLevel(1); + if ( $params['link_type'] == 1 ) { + $prefix = 'index.php?option=com_hotproperty&view=companies&layout=agents'; + } else { + $prefix = 'index.php?option=com_hotproperty&view=company'; + } + foreach($rows as $row) { + $node = new stdclass; + $node->name = $row->name; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$row->id; + $node->link = $prefix.'&id='.$row->id; + $node->priority = $params['company_priority']; + $node->changefreq = $params['company_changefreq']; + $node->expandible = true; + if ($xmap->printNode($node) !== FALSE ) { + xmap_com_hotproperty::getHotPropertyCompany($xmap, $parent, $params,$row->id,''); + } + } + $xmap->changeLevel(-1); + } + + function getHotPropertyAgents ( &$xmap, &$parent, &$params, $companyid ) { + + $database =& JFactory::getDBO(); + + $xmap->changeLevel(1); + $query = "SELECT id, name FROM #__hp_agents WHERE company=$companyid ORDER BY name"; + + $database->setQuery($query); + $rows = $database->loadObjectList(); + + if ( $params['link_type'] == 1 ) { + $prefix = 'index.php?option=com_hotproperty&view=agents&layout=properties'; + } else { + $prefix = 'index.php?option=com_hotproperty&view=agent'; + } + foreach($rows as $row) { + $node = new stdclass; + $node->name = $row->name; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$row->id; + $node->link = $prefix.'&id='.$row->id; + $node->priority = $params['agent_priority']; + $node->changefreq = $params['agent_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } +} + diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_hotproperty.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_hotproperty.xml new file mode 100644 index 00000000..670a69a0 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_hotproperty.xml @@ -0,0 +1,137 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_hotproperty.xml 52 2009-10-24 22:35:11Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>Hot Property Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>2009/10/23</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.1</version> + <description>Plugin for Mosets Hot Property component. Now compatible with Mosets Hot Property 1.0beta5</description> + <files> + <filename xmap_ext="com_hotproperty">com_hotproperty.php</filename> + </files> + <params> + <param name="include_properties" type="list" default="1" label="Show Properties" description="Should we include properties into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="include_companies" type="list" default="1" label="Show Companies" description="Should we include companies into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="include_agents" type="list" default="1" label="Show Agents" description="Should we include agents into the sitemap? (Show companies should be enabled)"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="properties_text" type="text" default="Properties" label="Properties Label" description="Enter the label we should use to show the Properties tree (Default: Properties)" /> + <param name="companies_text" type="text" default="Companies" label="Companies Label" description="Enter the label we should use to show the Companies tree (Default: Companies)" /> + <param name="agents_text" type="text" default="Agents" label="Agents Label" description="Enter the label we should use to show the Agents tree (Default: Agents)" /> + <param name="max_properties" type="text" default="" label="Max properties" description="Max number of properties per type to include in sitemap (Leave empty for no limit)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="type_priority" type="list" default="-1" label="Property Type Priority" description="Set the priority for the property types items"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="type_changefreq" type="list" default="-1" label="Property Type Change frequency" description="Set the change frequency for the property types pages"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="property_priority" type="list" default="-1" label="Property Priority" description="Set the priority for the properties pages"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="property_changefreq" type="list" default="-1" label="Property Change frequency" description="Set the change frequency for the properties pages"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="company_priority" type="list" default="-1" label="Company Priority" description="Set the priority for the companies pages"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="company_changefreq" type="list" default="-1" label="Company Change frequency" description="Set the change frequency for the companies pages"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="agent_priority" type="list" default="-1" label="Agent Priority" description="Set the priority for the agents pages"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="agent_changefreq" type="list" default="-1" label="Agent Change frequency" description="Set the change frequency for the agents pages"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jcalpro.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jcalpro.php new file mode 100644 index 00000000..64b91f58 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jcalpro.php @@ -0,0 +1,109 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_jcalpro.php 52 2009-10-24 22:35:11Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for JCal Pro component +*/ + +defined('_JEXEC') or defined ('_VALID_MOS') or die ('Restricted Access'); + +class xmap_com_jcalpro { + + function getTree( &$xmap, &$parent, &$params ) { + $catid = 0; + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = intval(!empty($link_vars['cat_id'])? $link_vars['cat_id'] : 0); + + + $include_events = !empty($params['include_events'])? $params['include_events'] : 1; + $include_events = ( $include_events == 1 + || ( $include_events == 2 && $xmap->view == 'xml') + || ( $include_events == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_events'] = $include_events; + + $priority = !empty($params['cat_priority'])? $params['cat_priority'] : $parent->priority; + $changefreq = !empty($params['cat_changefreq'])? $params['cat_changefreq'] : $parent->changefreq; + if ( $priority == '-1' ) + $priority = $parent->priority; + if ( $changefreq == '-1' ) + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = !empty($params['events_priority'])? $params['events_priority'] : $parent->priority; + $changefreq = !empty($params['events_priority'])? $params['events_changefreq'] : $parent->changefreq; + if ( $priority == '-1' ) + $priority = $parent->priority; + if ( $changefreq == '-1' ) + $changefreq = $parent->changefreq; + + $params['events_priority'] = $priority; + $params['events_changefreq'] = $changefreq; + + xmap_com_jcalpro::getJCALPro($xmap, $parent, $params, $catid); + } + + function getJCALPro(&$xmap, &$parent, &$params, $catid) { + if (defined('JPATH_SITE') && defined('_JEXEC')) { + $database = &JFactory::getDBO(); + $mosConfig_absolute_path = JPATH_SITE; + } else { + global $database, $mosConfig_absolute_path; + } + + $query = "SELECT cat_name, cat_id, cat_parent FROM #__jcalpro_categories WHERE cat_parent=$catid and published='1' ORDER BY cat_name"; + + $database->setQuery($query); + $rows = $database->loadObjectList(); + + $xmap->changeLevel(1); + $list = array(); + foreach($rows as $row) { + if( $row->cat_parent == 0 ) { + $row->cat_parent = ''; + } + $node = new stdclass; + $node->name = $row->cat_name; + $node->link = 'index.php?option=com_jcalpro&extmode=cat&cat_id='.$row->cat_id; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$row->cat_id; // unique id of the element in all the component + $node->pid = $row->cat_parent; // parent id + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + $xmap->printNode($node); + xmap_com_jcalpro::getJCALPro($xmap, $parent, $params, $row->cat_id); + } + + /* Returns URLs of all listings in JCal Pro */ + $query = "SELECT extid, title, cat FROM #__jcalpro_events WHERE cat=$catid AND ( published ='1' AND approved='1' )"; + + $database->setQuery($query); + $rows = $database->loadObjectList(); + + $xmap->changeLevel(1); + foreach($rows as $row) { + if( $row->cat == 0 ) { + $row->cat = ''; + } + $node = new stdclass; + $node->name = $row->title; + $node->uid = $parent->uid.'e'.$row->extid; // unique id of the element in all the component + $node->link = 'index.php?option=com_jcalpro&extmode=view&extid='.$row->extid; + $node->id = $parent->id; + $node->priority = $params['events_priority']; + $node->changefreq = $params['events_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + $xmap->changeLevel(-2); + } +} + diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jcalpro.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jcalpro.xml new file mode 100644 index 00000000..8f751f25 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jcalpro.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_jcalpro.xml 52 2009-10-24 22:35:11Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>JCALPro Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>26/02/2008</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.0</version> + <description>Plugin for JCal Pro componet contents</description> + <files> + <filename xmap_ext="com_jcalpro">com_jcalpro.php</filename> + </files> + <params> + <param name="include_events" type="list" default="1" label="Include events" description="Include the events into the site map?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="event_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the events"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="event_changefreq" type="list" default="-1" label="Event Change frequency" description="Set the chage frequency for the events"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jdownloads.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jdownloads.php new file mode 100644 index 00000000..9ed02bbf --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jdownloads.php @@ -0,0 +1,136 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_jdownloads.php 93 2010-03-21 13:25:39Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for JDownloads component +*/ + +defined( '_JEXEC' ) or die( 'Restricted access.' ); + +class xmap_com_jdownloads { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = intval(JArrayHelper::getValue($link_vars,'catid',0)); + $cid = intval(JArrayHelper::getValue($link_vars,'cid',0)); + $task = JArrayHelper::getValue( $link_vars, 'task', '', '' ); + if ( $task == 'viewcategory' && $cid ) { + $node->uid = 'com_jdownloadsc'.$cid; + $node->expandible = true; + } elseif ($task == 'view.download' && $cid) { + $node->uid = 'com_jdownloadsd'.$cid; + $node->expandible = false; + } + } + + function getTree( &$xmap, &$parent, &$params) + { + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars ); + $catid = JArrayHelper::getValue($link_vars,'catid',0); + $task = JArrayHelper::getValue($link_vars,'task',0); + + if ( $task != 'viewcategory' ) { + return $list; + } + + $include_files = JArrayHelper::getValue( $params, 'include_files',1,'' ); + $include_files = ( $include_files == 1 + || ( $include_files == 2 && $xmap->view == 'xml') + || ( $include_files == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_files'] = $include_files; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'file_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'file_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['file_priority'] = $priority; + $params['file_changefreq'] = $changefreq; + + if ( $include_files ) { + $params['limit'] = ''; + $params['days'] = ''; + $limit = JArrayHelper::getValue($params,'max_files','',''); + + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = JArrayHelper::getValue($params,'max_age','',''); + if ( intval($days) ) + $params['days'] = ' AND filedate >= \''.date('Y-m-d H:m:s', ($xmap->now - ($days*86400)) ) ."' "; + } + + $user = &JFactory::getUser(); + $access = ''; + if ($user->aid == 0) $access = '01'; + if ($user->aid == 1) $access = '11'; + if ($user->aid == 2) $access = '22'; + $params['access'] = $access; + + xmap_com_jdownloads::getCategoriesTree( $xmap, $parent, $params, $catid ); + } + + function getCategoriesTree ( &$xmap, &$parent, &$params, &$catid ) + { + $db = JFactory::getDBO(); + $db->setQuery("select cat_id, cat_title, parent_id from #__jdownloads_cats where parent_id=$catid and cat_access<=".$params['access']." and published=1 order by cat_title"); + $cats = $db->loadObjectList(); + $xmap->changeLevel(1); + + foreach($cats as $cat) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$cat->cat_id; // Uniq ID for the category + $node->pid = $cat->parent_id; + $node->name = $cat->cat_title? $cat->cat_title : $cat->cat_title; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->link = 'index.php?option=com_jdownloads&task=viewcategory&catid='.$cat->cat_id; + $node->expandible = true; + + if ($xmap->printNode($node) !== FALSE ) { + xmap_com_jdownloads::getCategoriesTree($xmap, $parent, $params, $cat->cat_id); + } + } + + if ( $params['include_files'] ) { + $db->setQuery ("select file_id, file_title, cat_id from #__jdownloads_files where cat_id=$catid and published=1 order by file_title"); + $cats = $db->loadObjectList(); + foreach($cats as $file) { + $node = new stdclass; + $node->id = $parent->id; // Itemid + $node->uid = $parent->uid .'d'.$file->file_id; // Uniq ID for the download + $node->name = ($file->file_title ? $file->file_title : $file->file_title); + $node->link = 'index.php?option=com_jdownloads&task=view.download&cid='.$file->file_id; + $node->priority = $params['file_priority']; + $node->changefreq = $params['file_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + } + $xmap->changeLevel(-1); + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jdownloads.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jdownloads.xml new file mode 100644 index 00000000..f4c109f1 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jdownloads.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_jdownloads.xml 101 2010-04-16 09:26:47Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>JDownloads Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>Apr 2010</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.5.1</version> + <description>Plugin for JDownloads component</description> + <files> + <filename xmap_ext="com_jdownloads">com_jdownloads.php</filename> + </files> + <params> + <param name="include_files" type="list" default="1" label="Show Files" description="Should we include downloads into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In HTML Sitemap Only</option> + </param> + <param name="max_files" type="text" default="" label="Max files" description="Max number of files per category to include on sitemap (Leave empty for no limit)" /> + <param name="max_age" type="text" default="" label="Newest than" description="Only show files newest than this number of days (Leave it blank to ignore this option)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="file_priority" type="list" default="-1" label="Files Priority" description="Set the priority for the downloads"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="file_changefreq" type="list" default="-1" label="Files Change frequency" description="Set the chage frequency for the downloads"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jevents.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jevents.php new file mode 100644 index 00000000..df4042e9 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jevents.php @@ -0,0 +1,195 @@ +<?php +/** + * @version $Id: com_jevents.php 52 2009-10-24 22:35:11Z guilleva $ + * @author Guillermo Vargas, http://joomla.vargas.co.cr + * @email guille@vargas.co.cr + * @package xmap + * @license GNU/GPL + * @description Xmap plugin for JEvents Component +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +class xmap_com_jevents { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) { + + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $evid = intval(JArrayHelper::getValue($link_vars,'evid',0)); + $catid = intval(JArrayHelper::getValue($link_vars,'category_fv',0)); + $task = JArrayHelper::getValue($link_vars,'task',0); + if ( !$catid ) { + $menu =& JSite::getMenu(); + $params = $menu->getParams($node->id); + $catids = array(); + for ( $i=0; $i<=10;$i++ ) { + if ($catid = $params->get("catid$i",0) ) { + $catids[] = $catid; + } + } + $catid = implode(',',$catids); + } + if ( $task == 'icalrepeat.detail' && $evid ) { + $node->uid = 'com_jeventse'.$evid; + $node->expandible = false; + } elseif ( $task == 'cat.listevents' && $catid ) { + $node->expandible = true; + $node->uid = 'com_jeventsc'.$catid; + } + } + + function getTree( &$xmap, &$parent, &$params) { + + if (!file_exists(JPATH_SITE.DS.'components'.DS.'com_jevents'.DS."jevents.defines.php") ) { + return; + } + + + // get the parameters + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = $xmap->getParam($link_vars,'category_fv',0); + $task = $xmap->getParam($link_vars,'task','cat.listevents'); + if ( !in_array($task,array('cat.listevents')) ) { // Only expand some kind of items + return; + } + + if ( !$catid ) { + $catids=array(); + $menu =& JSite::getMenu(); + $mparams = $menu->getParams($parent->id); + for ( $i=0; $i<=10;$i++ ) { + if ($catid = $mparams->get("catid$i",0) ) { + $catids[] = $catid; + } + } + if ( !count($catids)) { + $catids[]=0; + } + } else { + $catids = array ($catid); + } + + $include_events = $xmap->getParam($params,'include_events',1); + $include_events = ( $include_events == 1 + || ( $include_events == 2 && $xmap->view == 'xml') + || ( $include_events == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator' ); + + $params['include_events'] = $include_events; + + if (!defined('JEV_COM_COMPONENT') ) { + include_once(JPATH_SITE.DS.'components'.DS.'com_jevents'.DS."jevents.defines.php"); + require_once(JPATH_SITE.DS.'components'.DS.'com_jevents'.DS.'libraries'.DS.'datamodel.php'); + } + // Backup the original datamodel to restore it later + $reg = & JevRegistry::getInstance("jevents"); + $datamodel = $reg->getReference("jevents.datamodel",false); + + xmap_com_jevents::getCategoryTree ( $xmap, $parent, $params, $catids ); + + // Restore the original datamodel to avoid problems with modules or plugins + $reg->setReference("jevents.datamodel",$datamodel); + } + + function getCategoryTree ( &$xmap, &$parent, &$params, $catids) { + $menuid = $parent->id; + $database =& JFactory::getDBO(); + $my =& JFactory::getUser(); + + $content = ""; + $enum = 0; + + $xmap->changeLevel(1); + if ( count($catids) != 1 ) { + foreach ( $catids as $i => $catid) { + $query = 'SELECT id,name,title FROM ' . + '#__categories '. + ' WHERE id = ' . $catid . + ' AND section = \''.JEV_COM_COMPONENT.'\'' . + ' AND access<='.$my->gid. ' ' . + 'ORDER BY ordering '; + + $database->setQuery($query); + $rows = $database->loadRowList(); + $now = time(); + foreach ($rows as $num => $row) { + $node = new stdclass; + $node->link = "index.php?option=com_jevents&task=cat.listevents&offset=1&category_fv=".$row[0]; + $node->name = $row[2]; + $node->id = $menuid; + $node->uid = $parent->uid.'c'.$row[0]; //Unique ID + $node->expandible = true; + if ($xmap->printNode($node) !== FALSE) { + xmap_com_jevents::getCategoryTree ($xmap, $parent, $params, array($row[0]) ); + } + } + } + } else { + + $query = 'SELECT id,name,title FROM ' . + '#__categories '. + ' WHERE parent_id = ' . $catids[0] . + ' AND section = \''.JEV_COM_COMPONENT.'\'' . + ' AND access<='.$my->gid. ' ' . + 'ORDER BY ordering '; + + $database->setQuery($query); + $rows = $database->loadRowList(); + $now = time(); + foreach ($rows as $num => $row) { + $node = new stdclass; + $node->link = "index.php?option=com_jevents&task=cat.listevents&offset=1&category_fv=".$row[0]; + $node->name = $row[2]; + $node->id = $menuid; + $node->uid = $parent->uid.'c'.$row[0]; //Unique ID + $node->expandible = true; + if ($xmap->printNode($node) !== FALSE) { + xmap_com_jevents::getCategoryTree ($xmap, $parent, $params, array($row[0]) ); + } + } + + if ( $params['include_events'] && count($catids) == 1 && $catids[0] ) { + $rows =& xmap_com_jevents::getCategoryEvents($menuid, $catids); + foreach ($rows as $row ) { + $node = new stdclass; + $node->link = $row->viewDetailLink($row->yup(),$row->mup(),$row->dup(),false); + $node->name = $row->title(); + $node->id = $menuid; + $node->uid = $parent->uid.'e'.$row->id(); //Unique ID + $node->priority = $parent->priority; + $node->changefreq = $parent->changefreq; + $node->expandible = false; + $xmap->printNode($node); + } + } + } + $xmap->changeLevel(-1); + } + + function &getCategoryEvents($Itemid,&$catids) { + static $datamodel; + if (!isset($datamodel)) { + $datamodel = new JEventsDataModel(); + + $reg = & JevRegistry::getInstance("jevents"); + $reg->setReference("jevents.datamodel",$datamodel); + } + $datamodel->catidList = JEVHelper::forceIntegerArray($catids,true); + $datamodel->catids = $catids; + $datamodel->catidsOut = implode('|',$catids); + + JRequest::setVar('category_fv', $datamodel->catidList); + $filter = new jevFilterProcessing(array('category')); + $rows = $datamodel->queryModel->listEventsByCat( $catids, 0, 10000 ); + $icalrows = $datamodel->queryModel->listIcalEventsByCat( $catids,false,0, 0, 10000," ORDER BY rpt.startrepeat asc",$filter,'','' ); + $rows = array_merge($icalrows,$rows); + + return $rows; + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jevents.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jevents.xml new file mode 100644 index 00000000..66647b39 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jevents.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_jevents.xml 52 2009-10-24 22:35:11Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>JEvents Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>2008/02/25</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.3</version> + <description>Plugin for JEvents component</description> + <files> + <filename xmap_ext="com_events">com_events.php</filename> + </files> + <params> + <param name="include_events" type="list" default="1" label="Show Events" description="Should we include events into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="max_events" type="text" default="" label="Max events" description="Max number of events per category to include on sitemap (Leave empty for no limit)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="0.5" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="weekly" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="event_priority" type="list" default="0.5" label="Event Priority" description="Set the priority for the events"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="event_changefreq" type="list" default="weekly" label="Event Change frequency" description="Set the chage frequency for the events"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jmovies.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jmovies.php new file mode 100644 index 00000000..558e9bc3 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jmovies.php @@ -0,0 +1,132 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_jmovies.php 95 2010-04-14 18:38:36Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for JMovies component +*/ + +defined( '_JEXEC' ) or die( 'Restricted access.' ); + +class xmap_com_jmovies { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = intval(JArrayHelper::getValue($link_vars,'catid',0)); + $cid = intval(JArrayHelper::getValue($link_vars,'id',0)); + $task = JArrayHelper::getValue( $link_vars, 'task', '', '' ); + if ( $task == 'showcategory' && $cid ) { + $node->uid = 'com_jmoviesc'.$cid; + $node->expandible = true; + } elseif ($task = 'detail' && $cid) { + $node->uid == 'com_jmoviesm'.$cid; + $node->expandible = false; + } + } + + function getTree( &$xmap, &$parent, &$params) + { + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars ); + $catid = JArrayHelper::getValue($link_vars,'catid',0); + $task = JArrayHelper::getValue($link_vars,'task',0); + + if ( $task != 'showcategory' ) { + return $list; + } + + $include_movies = JArrayHelper::getValue( $params, 'include_movies',1,'' ); + $include_movies = ( $include_movies == 1 + || ( $include_movies == 2 && $xmap->view == 'xml') + || ( $include_movies == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_movies'] = $include_movies; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'file_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'file_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['file_priority'] = $priority; + $params['file_changefreq'] = $changefreq; + + if ( $include_movies ) { + $params['limit'] = ''; + $params['days'] = ''; + $limit = JArrayHelper::getValue($params,'max_movies','',''); + + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = JArrayHelper::getValue($params,'max_age','',''); + if ( intval($days) ) + $params['days'] = ' AND m.created >= \''.date('Y-m-d H:m:s', ($xmap->now - ($days*86400)) ) ."' "; + } + + xmap_com_jmovies::getCategoriesTree( $xmap, $parent, $params, $catid ); + } + + function getCategoriesTree ( &$xmap, &$parent, &$params, $catid=0 ) + { + $db = JFactory::getDBO(); + + $xmap->changeLevel(1); + if ( !$catid ) { + $db->setQuery("select id, title from #__categories where section='com_jmovies' and published=1 order by ordering"); + $cats = $db->loadObjectList(); + + foreach($cats as $cat) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = 'com_jmoviesc'.$cat->id; // Uniq ID for the category + $node->name = $cat->title; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->link = 'index.php?option=com_jmovies&task=showcategory&catid='.$cat->id; + $node->expandible = true; + + if ($xmap->printNode($node) !== FALSE ) { + xmap_com_jmovies::getCategoriesTree($xmap, $parent, $params, $cat->id); + } + } + } + + if ( $params['include_movies'] && $catid ) { + $db->setQuery ("select m.id, m.titolo, m.titolo2, UNIX_TIMESTAMP(created) as created, UNIX_TIMESTAMP(modified) as modified from `#__jmovies` AS m,`#__jmovies_categories` AS c where c.jmoviesid=m.id and c.catid=$catid and m.published=1 and m.access<={$xmap->gid} ".$params['days']." order by ordering " . $params['limit']); + $movies = $db->loadObjectList(); + foreach($movies as $movie) { + $node = new stdclass; + $node->id = $parent->id; // Itemid + $node->uid = 'com_jmoviesm'.$movie->id; // Uniq ID for the download + $node->name = $movie->titolo; + $node->link = 'index.php?option=com_jmovies&task=detail&id='.$movie->id; + $node->priority = $params['file_priority']; + $node->changefreq = $params['file_changefreq']; + $node->modified = (@$movie->modified? $movie->modified : $movie->created); + $node->expandible = false; + $xmap->printNode($node); + } + } + $xmap->changeLevel(-1); + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jmovies.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jmovies.xml new file mode 100644 index 00000000..167b47f3 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jmovies.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_jmovies.xml 81 2009-12-29 12:16:28Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>JMovies Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>March 2010</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.5.0</version> + <description>Plugin for JMovies component</description> + <files> + <filename xmap_ext="com_jmovies">com_jmovies.php</filename> + </files> + <params> + <param name="include_movies" type="list" default="1" label="Show Movies" description="Should we include movies into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In HTML Sitemap Only</option> + </param> + <param name="max_movies" type="text" default="" label="Max movies" description="Max number of movies per category to include on sitemap (Leave empty for no limit)" /> + <param name="max_age" type="text" default="" label="Newest than" description="Only show movies newest than this number of days (Leave it blank to ignore this option)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="file_priority" type="list" default="-1" label="Files Priority" description="Set the priority for the downloads"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="file_changefreq" type="list" default="-1" label="Files Change frequency" description="Set the chage frequency for the downloads"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jomres.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jomres.php new file mode 100644 index 00000000..261128fb --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jomres.php @@ -0,0 +1,99 @@ +<?php +/** +* @author Hazel Wilson - http://www.highlandvision.com +* @email hazel@highlandvision.com +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for Jomres component +*/ + +defined( '_VALID_MOS' ) or defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +/** Adds support for Jomres categories to Xmap */ +class xmap_com_jomres + { + + /** Get the content tree for this kind of content */ + function getTree( &$xmap, &$parent, &$params ) + { + if (defined('JPATH_SITE')) + $mosConfig_absolute_path = JPATH_SITE; + else + global $mosConfig_absolute_path; + + //Include the jomres stuff + require_once('components/com_jomres/integration.php'); + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $task = xmap_com_jomres::getParam($link_vars,'task',""); + + if ($task != "") + return $tree; + + $priority = xmap_com_jomres::getParam($params,'priority',$parent->priority); + $changefreq = xmap_com_jomres::getParam($params,'changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['priority'] = $priority; + $params['changefreq'] = $changefreq; + + xmap_com_jomres::getCategoryTree($xmap, $parent, $params, $prop); + + return true; + } + + /** Jomres support */ + function getCategoryTree( &$xmap, &$parent,&$params, $prop=0 ) + { + if (defined('JPATH_SITE')) + { + $database = &JFactory::getDBO(); + $mosConfig_absolute_path = JPATH_SITE; + } + else + global $database,$mosConfig_absolute_path; + + + $query = "SELECT propertys_uid,property_name,UNIX_TIMESTAMP(`timestamp`) FROM #__jomres_propertys WHERE published=1 ORDER BY propertys_uid"; + $rows = doSelectSql($query); + + $xmap->changeLevel(1); + + foreach($rows as $row) + { + $node = new stdclass; + + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$row->propertys_uid; + $node->browserNav = $parent->browserNav; + $node->name = stripslashes($row->property_name); + $node->modified = intval($row->timestamp); + $node->modified = $row->timestamp; + $node->priority = $params['priority']; + $node->changefreq = $params['changefreq']; + //$node->link = jomresURL('index.php?option=com_jomres&task=viewproperty&property_uid='.$row->propertys_uid); + $node->link = 'index.php?option=com_jomres&task=viewproperty&property_uid='.$row->propertys_uid; + $node->pid = $row->propertys_uid; + $node->expandible = false; //Doesn't support children + + //if ($xmap->printNode($node) !== FALSE) + //xmap_com_jomres::getCategoryTree( $xmap, $parent, $params, $row->propertys_uid); + $xmap->printNode($node); + } + + $xmap->changeLevel(-1); + + return true; + } + + + function &getParam($arr, $name, $def) + { + $var = JArrayHelper::getValue( $arr, $name, $def, '' ); + return $var; + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jomres.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jomres.xml new file mode 100644 index 00000000..5857b776 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_jomres.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_jomres.xml 52 2009-10-24 22:35:11Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>Jomres Plugin</name> + <author>Hazel Wilson</author> + <creationDate>December 2008</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>hazel@highlandvision.com</authorEmail> + <authorUrl>highlandvision.com</authorUrl> + <version>1.0</version> + <description>Plugin for Jomres component</description> + <files> + <filename xmap_ext="com_jomres">com_jomres.php</filename> + </files> + <params> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="priority" type="list" default="0.5" label="Priority" description="Set the priority"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="changefreq" type="list" default="weekly" label="Change frequency" description="Set the change frequency"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomdoc.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomdoc.php new file mode 100644 index 00000000..bfcd6961 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomdoc.php @@ -0,0 +1,167 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_joomdoc.php 64 2009-11-26 17:22:16Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for Seyret Video component +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +class xmap_com_joomdoc { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $task = JArrayHelper::getValue($link_varas,'task',''); + $gid = intval(JArrayHelper::getValue($link_vars,'gid',0)); + if ( $task == 'view_cat' && $gid ) { + $node->uid = 'com_joomdocc'.$gid; + $node->expandible = true; + } elseif (($task == 'doc_details' || $task == 'doc_download') && $gid) { + $node->uid = 'com_joomdocd'.$gid; + $node->expandible = false; + } + } + + function getTree ( &$xmap, &$parent, &$params ) { + + //DOCMan core interaction API + xmap_com_joomdoc::includeDependencies(); + $docman = &DocmanFactory::getDocman (); + + // get the parameters from the query string + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $task = JArrayHelper::getValue($link_varas,'task',0); + $catid = intval(JArrayHelper::getValue($link_vars,'gid',0)); + + if ($task != '' && $task != 'cat_view') { + return true; + } + + if ( !$catid ) { + // get the parameters + $menu =& JSite::getMenu(); + $queryparams = $menu->getParams($parent->id); + $catid=intval($queryparams->get('cat_id',NULL)); + if (!$catid) { + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = JArrayHelper::getValue($link_vars,'gid',0); + } + } + + $include_docs = JArrayHelper::getValue($params,'include_docs',1); + $include_docs = ( $include_docs == 1 + || ( $include_docs == 2 && $xmap->view == 'xml') + || ( $include_docs == 3 && $xmap->view == 'html')); + $params['include_docs'] = $include_docs; + + $doc_task = JArrayHelper::getValue($params,'doc_task','doc_details'); + $params['doc_task'] = $doc_task; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'doc_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'doc_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['doc_priority'] = $priority; + $params['doc_changefreq'] = $changefreq; + + $menuid = $parent->id; + + $params['tpl'] = $docman->getCfg('icon_theme'); + + xmap_com_joomdoc::getCategoryTree($xmap,$parent,$params,$catid,$menuid); + + } + + function getCategoryTree(&$xmap,&$parent,&$params,$catid=0,$menuid) { + $db =& JFactory::getDBO(); + $limits = 1000; + $list = array(); + + $query = 'select id,title from #__categories where parent_id='.$catid . ' and section=\'com_joomdoc\' and published=1'; + $db->setQuery($query); + $rows = $db->loadRowList(); + // Get sub-categories list + $xmap->changeLevel(1); + foreach ($rows as $row) { + $node = new stdclass; + $node->id = $menuid; + $node->uid = $parent->uid . 'c'.$row[0]; // should be unique on component + $node->name = $row[1]; + $node->browserNav = $parent->browserNav; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->link = 'index.php?option=com_joomdoc&task=cat_view&gid='.$row[0]; + $node->expandible = true; + if ($xmap->printNode($node)) { + xmap_com_joomdoc::getCategoryTree($xmap,$parent,$params,$row[0],$menuid); + } + } + $xmap->changeLevel(-1); + + $include_docs = @$params['include_docs']; + if ( $catid > 0 && $params['include_docs'] ) { + $xmap->changeLevel(1); + $rows = DOCMAN_Docs::getDocsByUserAccess ( $catid, '', '', 10000, 0 ); + // Get documents list + foreach ($rows as $row) { + $node = new stdclass; + $node->id = $menuid; + $node->uid = $parent->uid . 'd'.$row->id; // should be unique on component + $node->link = 'index.php?option=com_joomdoc&task='.$params['doc_task'].'&gid='.$row->id. '&Itemid='.$menuid; + $node->browserNav = $parent->browserNav; + $node->priority = $params['doc_priority']; + $node->changefreq = $params['doc_changefreq']; + $node->name = $row->dmname; + $node->expandible = false; + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } + return true; + } + + function includeDependencies() + { + if (!defined('JPATH_COMPONENT_HELPERS')) { + define ( 'JPATH_COMPONENT_HELPERS', JPATH_SITE.DS.'components'.DS.'com_joomdoc'.DS.'helpers' ); + define ( 'JPATH_COMPONENT_AHELPERS', JPATH_ADMINISTRATOR.DS.'components'.DS.'com_joomdoc' . DS . 'helpers' ); + require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_joomdoc'. DS . 'docman.class.php'); + require_once (JPATH_COMPONENT_AHELPERS . DS . 'factory.php'); + + define ( 'C_DOCMAN_DEFAULT_THEME', JPATH_SITE.'components'.DS.'com_joomdoc' . DS . 'views' . DS . 'themes' . DS); + + $docman = &DocmanFactory::getDocman (); + + define ( 'C_DOCMAN_HTML', $docman->getPath ( 'classes', 'html' ) ); + define ( 'C_DOCMAN_UTILS', $docman->getPath ( 'classes', 'utils' ) ); + define ( 'C_DOCMAN_FILE', $docman->getPath ( 'classes', 'file' ) ); + + require_once (C_DOCMAN_HTML); + require_once (C_DOCMAN_UTILS); + require_once (C_DOCMAN_FILE); + } + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomdoc.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomdoc.xml new file mode 100644 index 00000000..e002b4c6 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomdoc.xml @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<install type="xmap_ext" version="1.5"> + <name>JoomDOC Extension</name> + <author>Guillermo Vargas</author> + <creationDate>2008/02/25</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.0</version> + <description>Extension for JoomDOC component</description> + <files> + <filename xmap_ext="com_joomdoc">com_joomdoc.php</filename> + </files> + <params> + <param name="include_docs" type="list" default="1" label="Show Documents" description="Should we include documents into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="doc_task" type="list" default="" label="Link Documents" description="Where should we link the documents link?"> + <option value="doc_details">Document Details</option> + <option value="doc_download">Document Download</option> + </param> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="0.5" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="weekly" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="doc_priority" type="list" default="0.5" label="Document Priority" description="Set the priority for the documents"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="doc_changefreq" type="list" default="weekly" label="Document Change frequency" description="Set the chage frequency for the documents"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomgallery.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomgallery.php new file mode 100644 index 00000000..ae946882 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomgallery.php @@ -0,0 +1,126 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_joomgallery.php 111 2010-04-24 17:43:05Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for JoomGallery Component. +*/ + +class xmap_com_joomgallery { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) + { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $id = intval(JArrayHelper::getValue($link_vars,'id',0)); + $func = JArrayHelper::getValue( $link_vars, 'func', '', '' ); + if ( $func =='detail' && !$id ) { + $node->uid = 'com_joomgalleryp'.$id; + $node->expandible = true; + } elseif ($func =='viewcategory' && $id) { + $node->uid = 'com_joomgalleryg'.$id; + $node->expandible = false; + } + } + + function getTree ( &$xmap, &$parent, &$params ) + { + $catid=0; + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $func = JArrayHelper::getValue( $link_vars, 'func', '', '' ); + $catid = JArrayHelper::getValue($link_vars,'catid',0); + + if ($func && $func != 'viewcategory') { + return; + } + + $include_pics = JArrayHelper::getValue( $params, 'include_pictures',1 ); + $include_pics = ( $include_pics == 1 + || ( $include_pics == 2 && $xmap->view == 'xml') + || ( $include_pics == 3 && $xmap->view == 'html')); + $params['include_pictures'] = $include_pics; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'pictures_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'pictures_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['pictures_priority'] = $priority; + $params['pictures_changefreq'] = $changefreq; + + if ( $include_pics ) { + + $params['limit'] = ''; + $limit = JArrayHelper::getValue($params,'max_pictures',''); + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + } + + xmap_com_joomgallery::getGallery($xmap, $parent, $params, $catid); + } + + + function getGallery ( &$xmap, &$parent, &$params, $catid ) + { + $db =& JFactory::getDBO(); + $list = array(); + $db->setQuery("select cid, name, parent from #__joomgallery_catg where parent=$catid and published = '1' and access <=".$xmap->gid." order by ordering"); + $cats = $db->loadObjectList(); + $xmap->changeLevel(1); + + foreach($cats as $cat) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'g'.$cat->cid; // Uniq ID for the category + $node->pid = $cat->parent; + $node->name = $cat->name? $cat->name : $cat->name; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->link = 'index.php?option=com_joomgallery&func=viewcategory&catid='.$cat->cid; + $node->expandible = true; + + if ($xmap->printNode($node) !== FALSE ) { + xmap_com_joomgallery::getGallery($xmap, $parent, $params, $cat->cid); + } + } + + if ( $params['include_pictures'] ) { + $db->setQuery ("select id, imgtitle, catid from #__joomgallery where catid IN ($catid) and published = '1' order by ordering " . $params['limit']); + $cats = $db->loadObjectList(); + foreach($cats as $file) { + $node = new stdclass; + $node->id = $parent->id; // Itemid + $node->uid = $parent->uid .'p'.$file->id; // Uniq ID for the picture + $node->name = ($file->imgtitle? $file->imgtitle : $file->imgtitle); + $node->priority = $params['pictures_priority']; + $node->changefreq = $params['pictures_changefreq']; + $node->link = 'index.php?option=com_joomgallery&func=detail&id='.$file->id; + $node->expandible = false; + $xmap->printNode($node); + } + } + $xmap->changeLevel(-1); + } + +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomgallery.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomgallery.xml new file mode 100644 index 00000000..3a0ab987 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_joomgallery.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_joomgallery.xml 94 2010-04-14 16:23:32Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>JoomGallery Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>Apr 2010</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.1</version> + <description>Plugin for JoomGallery component</description> + <files> + <filename xmap_ext="com_joomgallery">com_joomgallery.php</filename> + </files> + <params> + <param name="include_pictures" type="list" default="1" label="Show Pictures" description="Should we include pictures into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In HTML Sitemap Only</option> + </param> + <param name="max_pictures" type="text" default="" label="Max pictures" description="Max number of pictures per gallery to include on sitemap (Leave empty for no limit)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the change frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="pictures_priority" type="list" default="-1" label="Pictures Priority" description="Set the priority for the downloads"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="pictures_changefreq" type="list" default="-1" label="Pictures Change frequency" description="Set the change frequency for the pictures"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kb.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kb.php new file mode 100644 index 00000000..4cb5a492 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kb.php @@ -0,0 +1,156 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_kb.php 52 2009-10-24 22:35:11Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for Joomla KnowledgeBase component +*/ + +defined( '_JEXEC' ) or die( 'Restricted access.' ); + +class xmap_com_kb { + + function getTree( &$xmap, &$parent, &$params) { + if ( strpos($parent->link, 'task=article') ) { + return true; + } + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars ); + $catid = JArrayHelper::getValue($link_vars,'category',0); + + $include_articles = JArrayHelper::getValue( $params, 'include_articles',1,'' ); + $include_articles = ( $include_articles == 1 + || ( $include_articles == 2 && $xmap->view == 'xml') + || ( $include_articles == 3 && $xmap->view == 'html')); + $params['include_articles'] = $include_articles; + + $params['include_feeds'] = JArrayHelper::getValue( $params, 'include_feeds',1,'' ); + if ($xmap->view != 'xml' ) { + $params['include_feeds']=0; + } + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'article_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'article_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + $params['article_priority'] = $priority; + $params['article_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'feed_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'feed_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + $params['feed_priority'] = $priority; + $params['feed_changefreq'] = $changefreq; + + if ( $include_articles ) { + $params['limit'] = ''; + $params['days'] = ''; + $limit = JArrayHelper::getValue($params,'max_articles','',''); + + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = JArrayHelper::getValue($params,'max_age','',''); + if ( intval($days) ) + $params['days'] = ' AND a.`created` >= \''.date('Y-m-d H:m:s', ($xmap->now - ($days*86400)) ) ."' "; + } + + if ( $params['include_feeds'] ) { + // Include the latest listings feed + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'flatest'; + $node->name = 'Latest Listings'; + $node->priority = $params['feed_priority']; + $node->changefreq = $params['feed_changefreq']; + $node->link = 'index.php?option=com_kb&task=rss&format=RSS2.0&no_html=1&pop=1&type=latestlistings'; + $node->expandible = false; + $xmap->printNode($node); + + // Include the Top 10 Most Popular Listings feed + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'ftop10'; + $node->name = 'Top 10 Most Popular Listings'; + $node->priority = $params['feed_priority']; + $node->changefreq = $params['feed_changefreq']; + $node->expandible = false; + $node->link = 'index.php?option=com_kb&task=rss&format=RSS2.0&no_html=1&pop=1&type=mostpopular'; + $xmap->printNode($node); + } + + xmap_com_kb::getKBTree( $xmap, $parent, $params, $catid ); + } + + function getKBTree ( &$xmap, &$parent, &$params, &$catid ) { + $db = JFactory::getDBO(); + + $db->setQuery("select `id`, `title`,UNIX_TIMESTAMP(`created`) as `created`,UNIX_TIMESTAMP(`modified`) as `modified` from #__kb_categorys where parentid=$catid and published = '1' and access<=".$xmap->gid." order by ordering"); + # echo $db->getQuery(); + $cats = $db->loadObjectList(); + $xmap->changeLevel(1); + foreach($cats as $cat) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$cat->id; + $node->name = $cat->title; + $node->modified = ($cat->modified? $cat->modified : $cat->created); + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + $node->link = 'index.php?option=com_kb&task=category&category='.$cat->id; + + if ( $xmap->printNode($node) !== FALSE ) { // To allow the items exclusion feature + if ( $params['include_feeds'] ) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'f'.$cat->id; + $node->name = $cat->title . ' feed'; + $node->priority = $params['feed_priority']; + $node->changefreq = $params['feed_changefreq']; + $node->link = 'index.php?option=com_kb&task=rss&format=RSS2.0&no_html=1&pop=1&type=latestlistingspercategory&category='.$cat->id; + $node->expandible = false; + $xmap->printNode($node); + } + xmap_com_kb::getKBTree($xmap, $parent, $params, $cat->id); + } + } + + if ($params['include_articles']) { + $db->setQuery ("select a.`id`, a.`title`,UNIX_TIMESTAMP(a.`created`) as `created`,UNIX_TIMESTAMP(a.`modified`) as `modified` from #__kb_articles a, #__kb_category_map m where m.category_id=$catid and m.article_id=a.id and a.`published` = '1' and a.`access`<=".$xmap->gid." ".$params['days']." order by m.ordering" . $params['limit']); + $cats = $db->loadObjectList(); + foreach($cats as $article) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid .'c'.$catid.'a'.$article->id; + $node->name = $article->title; + $node->modified = ($article->modified? $article->modified : $article->created); + $node->link = 'index.php?option=com_kb&task=article&article='.$article->id; + $node->priority = $params['article_priority']; + $node->changefreq = $params['article_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + } + $xmap->changeLevel(-1); + + } + +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kb.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kb.xml new file mode 100644 index 00000000..abb3f013 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kb.xml @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_kb.xml 52 2009-10-24 22:35:11Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>KnowledgeBase Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>2008/03/09</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.0</version> + <description>Plugin for Joomla KnowledgeBase component</description> + <files> + <filename xmap_ext="com_kb">com_kb.php</filename> + </files> + <params> + <param name="include_articles" type="list" default="1" label="Show articles" description="Should we include articles into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="include_feeds" type="list" default="1" label="Include feeds on XML Sitemap" description="Should we include feeds into the XML sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + </param> + <param name="max_articles" type="text" default="" label="Max articles" description="Max number of articles per category to include on sitemap (Leave empty for no limit)" /> + <param name="max_age" type="text" default="" label="Newest than" description="Only show articles newest than this number of days (Leave it blank to ignore this option)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="file_priority" type="list" default="-1" label="File Priority" description="Set the priority for the articles"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="file_changefreq" type="list" default="-1" label="File Change frequency" description="Set the chage frequency for the articles"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kunena.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kunena.php new file mode 100644 index 00000000..85fc2660 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kunena.php @@ -0,0 +1,147 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_kunena.php 58 2009-10-28 03:26:21Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for Kunena Forum Component. +*/ + +/** Handles Kunena forum structure */ +class xmap_com_kunena { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = intval(JArrayHelper::getValue($link_vars,'catid',0)); + $id = intval(JArrayHelper::getValue($link_vars,'id',0)); + $func = JArrayHelper::getValue( $link_vars, 'func', '', '' ); + if ( $func = 'showcat' && $catid ) { + $node->uid = 'com_kunenac'.$catid; + $node->expandible = false; + } elseif ($func = 'view' && $id) { + $node->uid = 'com_kunenaf'.$id; + $node->expandible = false; + } + } + + function getTree ( &$xmap, &$parent, &$params ) { + $catid=0; + if ( strpos($parent->link, 'func=showcat') ) { + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = $xmap->getParam($link_vars,'catid',0); + } elseif (strpos($parent->link, 'func=view') ) { + return true; // Do not expand links to posts + } + + $include_topics = $xmap->getParam($params,'include_topics',1); + $include_topics = ( $include_topics == 1 + || ( $include_topics == 2 && $xmap->view == 'xml') + || ( $include_topics == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_topics'] = $include_topics; + + $priority = $xmap->getParam($params,'cat_priority',$parent->priority); + $changefreq = $xmap->getParam($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = $xmap->getParam($params,'topic_priority',$parent->priority); + $changefreq = $xmap->getParam($params,'topic_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['topic_priority'] = $priority; + $params['topic_changefreq'] = $changefreq; + + if ( $include_topics ) { + $ordering = $xmap->getParam($params,'topics_order','ordering'); + if ( !in_array($ordering,array('ordering','time','subject','hits')) ) + $ordering = 'ordering'; + $params['topics_order'] = $ordering = $ordering; + + $params['limit'] = ''; + $params['days'] = ''; + $limit = $xmap->getParam($params,'max_topics',''); + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = $xmap->getParam($params,'max_age',''); + if ( intval($days) ) + $params['days'] = ' AND time >='.($xmap->now - ($days*86400)) ." "; + } + + xmap_com_kunena::getCategoryTree($xmap, $parent, $params, $catid); + } + + /* Return category/forum tree */ + function getCategoryTree( &$xmap, &$parent, &$params, $parentCat ) + { + $database =& JFactory::getDBO(); + $list = array(); + $query = "SELECT id as cat_id, name as cat_title, ordering FROM #__fb_categories WHERE parent=$parentCat AND published=1 and pub_access <=".$xmap->gid." ORDER BY name"; + $database->setQuery($query); + # echo $database->getQuery(); + $cats = $database->loadObjectList(); + + /*get list of categories*/ + $xmap->changeLevel(1); + foreach ( $cats as $cat ) { + $node = new stdclass; + $node->id = $parent->id; + $node->browserNav = $parent->browserNav; + $node->uid = $parent->uid.'c'.$cat->cat_id; + $node->name = $cat->cat_title; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->link = 'index.php?option=com_kunena&func=showcat&catid='.$cat->cat_id; + $node->expandible = true; + if ( $xmap->printNode($node) !== FALSE ) { + xmap_com_kunena::getCategoryTree($xmap,$parent,$params,$cat->cat_id); + } + } + + if ( $params['include_topics'] ) { + $query = "SELECT id as forum_id, catid as cat_id, subject as forum_name, time as modified ". + "FROM #__fb_messages ". + "WHERE catid=$parentCat ". + "AND parent=0 " . + $params['days'] . + "ORDER BY `". $params['topics_order'] . "`" . + $params['limit']; + + $database->setQuery($query); + $forums = $database->loadObjectList(); + + //get list of forums + foreach($forums as $forum) { + $node = new stdclass; + $node->id = $parent->id; + $node->browserNav = $parent->browserNav; + $node->uid = $parent->uid.'t'.$forum->forum_id; + $node->name = $forum->forum_name; + $node->priority = $params['topic_priority']; + $node->changefreq = $params['topic_changefreq']; + $node->modified = intval($forum->modified); + $node->link = 'index.php?option=com_kunena&func=view&id='.$forum->forum_id.'&catid='.$forum->cat_id; + $node->expandible = false; + $xmap->printNode($node); + } + } + $xmap->changeLevel(-1); + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kunena.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kunena.xml new file mode 100644 index 00000000..26e6eab6 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_kunena.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_kunena.xml 57 2009-10-28 03:16:48Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>Kunena Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>September 2007</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.1</version> + <description>Plugin for Kunena component</description> + <files> + <filename xmap_ext="com_kunena">com_kunena.php</filename> + </files> + <params> + <param name="include_topics" type="list" default="1" label="Show Topics" description="Should we include topics into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="max_topics" type="text" default="" label="Max topics" description="Max number of topics per category to include on sitemap (Leave empty for no limit)" /> + <param name="max_age" type="text" default="" label="Newest than" description="Only show topics newest than this number of days (Leave it blank to ignore this option)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="topic_priority" type="list" default="-1" label="Topic Priority" description="Set the priority for the topics"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="topic_changefreq" type="list" default="-1" label="Topic Change frequency" description="Set the chage frequency for the topics"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_mtree.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_mtree.php new file mode 100644 index 00000000..cddca4b2 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_mtree.php @@ -0,0 +1,150 @@ +<?php +/** +* Mosets Tree Plug-in by Sam Lewis - Moxie Media, LLC -> GoMoxieMedia.com +* Version 1.0 +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +/** Handles Mosets Tree component */ +class xmap_com_mtree { + + function getTree( &$xmap, &$parent, &$params ) { + + $catid=0; + if ( strpos($parent->link, 'task=listcats') ) { + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = xmap_com_mtree::getParam($link_vars,'cat_id',0); + } + + $include_links = xmap_com_mtree::getParam($params,'include_links',1); + $include_links = ( $include_links == 1 + || ( $include_links == 2 && $xmap->view == 'xml') + || ( $include_links == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_links'] = $include_links; + + $priority = xmap_com_mtree::getParam($params,'cat_priority',$parent->priority); + $changefreq = xmap_com_mtree::getParam($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = xmap_com_mtree::getParam($params,'link_priority',$parent->priority); + $changefreq = xmap_com_mtree::getParam($params,'link_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['link_priority'] = $priority; + $params['link_changefreq'] = $changefreq; + + $ordering = xmap_com_mtree::getParam($params,'links_order','cat_name'); + if ( !in_array($ordering,array('ordering','cat_name','cat_created')) ) + $ordering = 'cat_name'; + + $params['cats_order'] = $ordering; + + if ( $include_links ) { + $ordering = xmap_com_mtree::getParam($params,'links_order','ordering'); + if ( !in_array($ordering,array('ordering','link_name','link_modified','link_created','link_hits')) ) + $ordering = 'ordering'; + + $params['links_order'] = $ordering; + + $params['limit'] = ''; + $params['days'] = ''; + $limit = xmap_com_mtree::getParam($params,'max_links',''); + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = xmap_com_mtree::getParam($params,'max_age',''); + if ( intval($days) ) + $params['days'] = ' AND time >='.($xmap->now - ($days*86400)) ." "; + } + + + xmap_com_mtree::getMtreeCategory($xmap,$parent,$params,$catid); + } + + /* Returns URLs of all Categories and links in of one category using recursion */ + function getMtreeCategory (&$xmap, &$parent, &$params, &$catid ) { + $database =& JFactory::getDBO(); + + $query = "SELECT cat_name, cat_id, UNIX_TIMESTAMP(cat_created) as `created` ". + "FROM #__mt_cats WHERE cat_published='1' AND cat_approved='1' AND cat_parent = $catid " . + "ORDER BY `" . $params['cats_order'] ."`"; + + $database->setQuery($query); + $rows = $database->loadObjectList(); + + $xmap->changeLevel(1); + foreach($rows as $row) { + if( !$row->created ) { + $row->created = $xmap->now; + } + + $node = new stdclass; + $node->name = $row->cat_name; + $node->link = 'index.php?option=com_mtree&task=listcats&cat_id='.$row->cat_id; + $node->id = $parent->id; + $node->uid = $parent->uid .'c'.$row->cat_id; + $node->browserNav = $parent->browserNav; + $node->modified = $row->created; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + + if ( $xmap->printNode($node) !== FALSE) { + xmap_com_mtree::getMtreeCategory($xmap,$parent,$params,$row->cat_id); + } + } + + /* Returns URLs of all listings in the current category */ + if ($params['include_links']) { + $query = " SELECT a.link_name, a.link_id, UNIX_TIMESTAMP(a.link_created) as `created`, UNIX_TIMESTAMP(a.link_modified) as `modified` \n". + " FROM #__mt_links AS a, #__mt_cl as b \n". + " WHERE a.link_id = b.link_id \n". + " AND b.cat_id = $catid " . + " AND ( link_published='1' AND link_approved='1' ) " . + $params['days'] . + " ORDER BY `" . $params['links_order'] ."` " . + $params['limit']; + + $database->setQuery($query); + + $rows = $database->loadObjectList(); + + foreach($rows as $row) { + if( !$row->modified ) { + $row->modified = $row->created; + } + + $node = new stdclass; + $node->name = $row->link_name; + $node->link = 'index.php?option=com_mtree&task=viewlink&link_id='.$row->link_id; + $node->id = $parent->id; + $node->uid = $parent->uid.'l'.$row->link_id; + $node->browserNav = $parent->browserNav; + $node->modified = ($row->modified? $row->modified : $row->created); + $node->priority = $params['link_priority']; + $node->changefreq = $params['link_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + } + $xmap->changeLevel(-1); + + } + function &getParam($arr, $name, $def) { + $var = JArrayHelper::getValue( $arr, $name, $def, '' ); + return $var; + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_mtree.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_mtree.xml new file mode 100644 index 00000000..8793ac3b --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_mtree.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_mtree.xml 52 2009-10-24 22:35:11Z guilleva $ --> +<install type="xmap_ext" version="1.5"> + <name>Mosets Tree Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>September 2007</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.1</version> + <description>Plugin for Mosets Tree component</description> + <files> + <filename xmap_ext="com_mtree">com_mtree.php</filename> + </files> + <params> + <param name="cats_order" type="list" default="cat_name" label="Categories order" description="In which order do you want the categories listed on your sitemap?"> + <option value="ordering">Default ordering</option> + <option value="cat_name">Category Name</option> + <option value="cat_created">Category creation date</option> + </param> + <param name="include_links" type="list" default="1" label="Show Listings" description="Should we include links into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="links_order" type="list" default="ordering" label="Listings order" description="In which order do you want the listings?"> + <option value="ordering">Default ordering</option> + <option value="link_name">Listing Name</option> + <option value="link_created">Listing creation date</option> + <option value="link_modified">Listing modified date</option> + <option value="link_hits">Number hits</option> + </param> + <param name="max_links" type="text" default="" label="Max links" description="Max number of links per category to include on sitemap (Leave empty for no limit)" /> + <param name="max_age" type="text" default="" label="Newest than" description="Only show links newest than this number of days (Leave it blank to ignore this option)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="0.5" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="weekly" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="link_priority" type="list" default="0.5" label="Listing Priority" description="Set the priority for the links"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="link_changefreq" type="list" default="weekly" label="Listing Change frequency" description="Set the chage frequency for the links"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_myblog.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_myblog.php new file mode 100644 index 00000000..13902ef5 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_myblog.php @@ -0,0 +1,315 @@ +<?php +/** +* @author Guillermo Vargas +* @email guille@vargas.co.cr +* @version $Id: com_contact.php +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for Joomla's contact component +*/ + +defined( '_JEXEC' ) or die( 'Restricted access.' ); + +class xmap_com_myblog { + + function getMyBlog( &$xmap, &$parent,&$params ) + { + $database = &JFactory::getDBO(); + $my = &JFactory::getUser(); + + require_once (JPATH_SITE . '/components/com_myblog/functions.myblog.php'); + require_once (JPATH_SITE . '/administrator/components/com_myblog/config.myblog.php'); + $_MY_CONFIG = new MYBLOG_Config(); + + $managed_sections = $_MY_CONFIG->get('managedSections'); + + // include popular bloggers by default + $query = "SELECT a.created_by, sum(hits) AS hits,u.username FROM #__content AS a LEFT JOIN #__users AS u ON a.created_by=u.id WHERE a.sectionid IN (".$managed_sections.") AND a.state=1 group by a.created_by order by hits desc"; + if ($params['number_of_bloggers']) + $query .= " limit 0, ". $params['number_of_bloggers']; + $database->setQuery($query); + $rows = $database->loadObjectList(); + $modified = time(); + + if ($params['include_bloggers'] || $params['include_blogger_posts']) { + + if ($params['include_bloggers'] ) { + $xmap->changeLevel(1); + $node = new stdclass; + $node->browserNav = $parent->browserNav; + $node->id = $parent->id; + $node->uid = $parent->uid.'b'; + $node->priority = $params['blogger_priority']; + $node->changefreq = $params['blogger_changefreq']; + $node->name = $params["text_bloggers"]; + $node->link = "index.php?option=com_myblog&task=blogs"; + $node->modified = time(); + $node->expandible = true; + $xmap->printNode($node); + + $xmap->changeLevel(1); + } + foreach($rows as $row) + { + $node = new stdclass; + + if ($row->username) { + if ($params['include_bloggers'] ) { + $node->id = $parent->id; + $node->uid = $parent->uid.'b'.$row->username; + $node->priority = $params['blogger_priority']; + $node->changefreq = $params['blogger_changefreq']; + $node->browserNav = $parent->browserNav; + $node->name = $row->username; + $node->modified = $modified; + $node->link = "index.php?option=com_myblog&blogger=".$node->name; + $node->expandible = true; + $xmap->printNode($node); + } + if ($params['include_blogger_posts'] ) + { + $sql = "SELECT a.id, a.title, a.created_by, a.modified,b.permalink from #__content a LEFT JOIN #__myblog_permalinks AS b on a.id=b.contentid WHERE created_by=".$row->created_by. " and sectionid in (".$managed_sections.") and + state=1 order by modified desc"; + if ($params['number_of_post_per_blogger']) { + $sql .= " limit 0, ". $params['number_of_post_per_blogger']; + } + $res = $database->setQuery($sql); + $posts = $database->loadObjectList(); + $xmap->changeLevel(1); + foreach ($posts as $post) + { + $node = new stdclass; + $node->id = $post->id; + $node->uid = $parent->uid.'p'.$post->id; + $node->priority = $params['entry_priority']; + $node->changefreq = $params['entry_changefreq']; + $node->browserNav = $parent->browserNav; + $node->modified = intval($post->modified); + $node->name = $post->title; + $node->link = "index.php?option=com_myblog&show=".$post->permalink; + $node->expandible = false; + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } + } + } + if ($params['include_bloggers'] ) { + $xmap->changeLevel(-1); + $xmap->changeLevel(-1); + } + } + + // retrieve tag clouds + if ($params['include_tag_clouds']) { + $xmap->changeLevel(1); + $node = new stdclass; + $node->browserNav = $parent->browserNav; + $node->id = $parent->id; + $node->uid = $parent->uid.'t'; + $node->priority = $params['cats_priority']; + $node->changefreq = $params['cats_changefreq']; + $node->name = "Tag Clouds"; + $node->link = "index.php?option=com_myblog&task=categories"; + $node->expandible = true; + $xmap->printNode($node); + + // http://archive/index.php?option=com_myblog&category=sports&Itemid=8 + + $query = "SELECT * from #__myblog_categories"; + $database->setQuery($query); + $tagrows = $database->loadObjectList(); + + $tag_clouds=array(); + $j=count($tagrows); + $i=0; + $xmap->changeLevel(1); + while ( $i<$j ) + { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'t'.$tagrows[$i]->name; + $node->priority = $params['tag_priority']; + $node->changefreq = $params['tag_changefreq']; + $node->browserNav = $parent->browserNav; + $node->name = $tagrows[$i]->name; + $node->modified = $modified; + $node->link = "index.php?option=com_myblog&category=".$node->name; + $node->expandible = false; + $xmap->printNode($node); + + if ($params['include_feed']) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'f'.$tagrows[$i]->name; + $node->priority = $params['feed_priority']; + $node->changefreq = $params['feed_changefreq']; + $node->browserNav = $parent->browserNav; + $node->name = $tagrows[$i]->name . ' Feed'; + $node->modified = $modified; + $node->link = "index.php?option=com_myblog&category=".$tagrows[$i]->name. "&task=rss"; + $xmap->printNode($node); + } + $i++; + + } + $xmap->changeLevel(-1); + $xmap->changeLevel(-1); + } + + // time to retrieve archives now + if ( $params['include_archives'] ) { + $xmap->changeLevel(1); + $query = 'SELECT DISTINCT (date_format(jc.created,"%M-%Y")) as archive FROM #__content as jc WHERE jc.sectionid IN('.$managed_sections.') and state = 1 ORDER BY jc.created DESC'; + $database->setQuery($query); + $objList = $database->loadObjectList(); + foreach ($objList as $obj) + { + $node = new stdclass; + $node->browserNav = $parent->browserNav; + $node->id = $parent->id; + $node->uid = $parent->uid.'a'.$obj->archive; + $node->priority = $params['arc_priority']; + $node->changefreq = $params['arc_changefreq']; + $node->name = $obj->archive; + $node->link = "index.php?option=com_myblog&archive=".$obj->archive; + $node->expandible = false; + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } + + if ( $params['include_feed'] ) { + $xmap->changeLevel(1); + $node = new stdclass; + $node->browserNav = $parent->browserNav; + $node->id = $parent->id; + $node->uid = $parent->uid.'f'; + $node->priority = $params['feed_priority']; + $node->changefreq = $params['feed_changefreq']; + $node->name = 'Feed'; + $node->link = "index.php?option=com_myblog&task=rss"; + $node->modified = time(); + $node->expandible = false; + $xmap->printNode($node); + $xmap->changeLevel(-1); + } + } + + /** Get the content tree for this kind of content */ + function getTree( &$xmap, &$parent, &$params ) + { + + $include_bloggers = JArrayHelper::getValue($params,'include_bloggers',1); + $include_bloggers = ( $include_bloggers == 1 + || ( $include_bloggers == 2 && $xmap->view == 'xml') + || ( $include_bloggers == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_bloggers'] = $include_bloggers; + + $include_tag_clouds = JArrayHelper::getValue($params,'include_tag_clouds',1); + $include_tag_clouds = ( $include_tag_clouds == 1 + || ( $include_tag_clouds == 2 && $xmap->view == 'xml') + || ( $include_tag_clouds == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_tag_clouds'] = $include_tag_clouds; + + $include_archives = JArrayHelper::getValue($params,'include_archives',1); + $include_archives = ( $include_archives == 1 + || ( $include_archives == 2 && $xmap->view == 'xml') + || ( $include_archives == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_archives'] = $include_archives; + + $include_feed = JArrayHelper::getValue($params,'include_feed',1); + $include_feed = ( $include_feed == 1 + || ( $include_feed == 2 && $xmap->view == 'xml') + || ( $include_feed == 3 && $xmap->view == 'html')); + $params['include_feed'] = $include_feed; + + $number_of_bloggers = intval(JArrayHelper::getValue($params,'number_of_bloggers',8)); + $params['number_of_bloggers'] = $number_of_bloggers; + + $text_bloggers = JArrayHelper::getValue($params,'text_bloggers','Bloggers'); + $params['text_bloggers'] = $text_bloggers; + + $include_blogger_posts = JArrayHelper::getValue($params,'include_blogger_posts',1); + $include_blogger_posts = ( $include_blogger_posts == 1 + || ( $include_blogger_posts == 2 && $xmap->view == 'xml') + || ( $include_blogger_posts == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_blogger_posts'] = $include_blogger_posts; + + $number_of_post_per_blogger = intval(JArrayHelper::getValue($params,'number_of_post_per_blogger',32)); + $params['number_of_post_per_blogger'] = $number_of_post_per_blogger; + + //----- Set tag_priority and tag_changefreq params + $priority = JArrayHelper::getValue($params,'tag_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'tag_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['tag_priority'] = $priority; + $params['tag_changefreq'] = $changefreq; + + //----- Set feed_priority and feed_changefreq params + $priority = JArrayHelper::getValue($params,'feed_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'feed_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['feed_priority'] = $priority; + $params['feed_changefreq'] = $changefreq; + + //----- Set cats_priority and cats_changefreq params + $priority = JArrayHelper::getValue($params,'cats_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'cats_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cats_priority'] = $priority; + $params['cats_changefreq'] = $changefreq; + + //----- Set blogger_priority and blogger_changefreq params + $priority = JArrayHelper::getValue($params,'blogger_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'blogger_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['blogger_priority'] = $priority; + $params['blogger_changefreq'] = $changefreq; + + //----- Set entry_priority and entry_changefreq params + $priority = JArrayHelper::getValue($params,'entry_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'entry_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['entry_priority'] = $priority; + $params['entry_changefreq'] = $changefreq; + + //----- Set arc_priority and arc_changefreq params + $priority = JArrayHelper::getValue($params,'arc_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'arc_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['arc_priority'] = $priority; + $params['arc_changefreq'] = $changefreq; + + xmap_com_myblog::getMyBlog($xmap, $parent, $params); + } + +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_myblog.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_myblog.xml new file mode 100644 index 00000000..49909bff --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_myblog.xml @@ -0,0 +1,199 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_myblog.xml 104 2010-04-18 11:22:52Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>MyBlog Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>25/06/2008</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.5.1</version> + <description>Plugin for MyBlog component</description> + <files> + <filename xmap_ext="com_myblog">com_myblog.php</filename> + </files> + <params> + <param name="include_bloggers" type="list" default="1" label="Include Bloggers List" description="Include the bloggers list in the site map?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="include_tag_clouds" type="list" default="1" label="Include tag clouds" description="Include Tag Clouds in the site map?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="include_feed" type="list" default="2" label="Include Feed" description="Include Feed in the site map?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="include_archives" type="list" default="2" label="Include archives" description="Include archives in the site map?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="number_of_bloggers" type="text" default="8" label="Numbre of Bloggers" description="Number of bloggers to show in the site map." /> + <param name="include_blogger_posts" type="list" default="1" label="Include Blogger posts" description="Include blogger posts in the site map?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="number_of_post_per_blogger" type="text" default="32" label="Numbre of posts per blogger" description="Number of posts per blogger to show in the site map." /> + <param name="text_bloggers" type="text" default="Bloggers" label="Label for Bloggers list" description="Label to show in the Bloggers list." /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="blogger_priority" type="list" default="-1" label="Blogger Priority" description="Set the priority for bloggers links"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="blogger_changefreq" type="list" default="-1" label="Blogger Change frequency" description="Set the change frequency for Bloggers links"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="feed_priority" type="list" default="-1" label="Feed Priority" description="Set the priority for feed links"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="feed_changefreq" type="list" default="-1" label="Feed Change frequency" description="Set the change frequency for Feed links"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + + <param name="entry_priority" type="list" default="-1" label="Blog Entry Priority" description="Set the priority for the blog entries"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="entry_changefreq" type="list" default="-1" label="Blog Entry Change frequency" description="Set the change frequency for the blog entries"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + + <param name="cats_priority" type="list" default="-1" label="Tags list Priority" description="Set the priority for the Tags list page"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cats_changefreq" type="list" default="-1" label="Tags list Change frequency" description="Set the change frequency for the tags list page"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + + <param name="arc_priority" type="list" default="-1" label="Archive Priority" description="Set the priority for archives"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="arc_changefreq" type="list" default="-1" label="Archive Change frequency" description="Set the change frequency for archives"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="tag_priority" type="list" default="-1" label="Tag Priority" description="Set the priority for tags"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="tag_changefreq" type="list" default="-1" label="Tag Change frequency" description="Set the change frequency for tags"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rapidrecipe.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rapidrecipe.php new file mode 100644 index 00000000..6ffffbc4 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rapidrecipe.php @@ -0,0 +1,173 @@ +<?php +/** + * $Id: com_rapidrecipe.php 64 2009-11-26 17:22:16Z guilleva $ + * $LastChangedDate: 2009-11-26 11:22:16 -0600 (jue, 26 nov 2009) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * a sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +/** +* Handles Mosets Tree component +*/ +class xmap_com_rapidrecipe { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = intval(JArrayHelper::getValue($link_vars,'category_id',0)); + $id = intval(JArrayHelper::getValue($link_vars,'recipe_id',0)); + $page = JArrayHelper::getValue( $link_vars, 'page', '', '' ); + if ( $page == 'viewcategory' && $catid ) { + $node->uid = 'com_rapidrecipec'.$catid; + $node->expandible = true; + } elseif ($page == 'viewrecipe' && $id) { + $node->uid = 'com_rapidreciper'.$id; + $node->expandible = false; + } + } + + function getTree( &$xmap, &$parent, &$params ) { + + $catid=0; + if ( strpos($parent->link, 'page=viewcategory') ) { + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = JArrayHelper::getValue( $link_vars,'category_id',0); + } + + if ( strpos($parent->link, 'page=viewrecipe') ) { + return; + } + + $include_recipes = JArrayHelper::getValue($params,'include_recipes',1); + $include_recipes = ( $include_recipes == 1 + || ( $include_recipes == 2 && $xmap->view == 'xml') + || ( $include_recipes == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_recipes'] = $include_recipes; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'recipe_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'recipe_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['recipe_priority'] = $priority; + $params['recipe_changefreq'] = $changefreq; + + $ordering = JArrayHelper::getValue($params,'recipes_order','ordering'); + if ( !in_array($ordering,array('ordering','title')) ) + $ordering = 'ordering'; + + $params['cats_order'] = $ordering; + + if ( $include_recipes ) { + $ordering = JArrayHelper::getValue($params,'recipes_order','ordering'); + if ( !in_array($ordering,array('ordering','title','hits','created')) ) + $ordering = 'ordering'; + + $params['recipes_order'] = $ordering; + + $params['limit'] = ''; + $params['days'] = ''; + $limit = JArrayHelper::getValue($params,'max_recipes',''); + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = JArrayHelper::getValue($params,'max_age',''); + if ( intval($days) ) + $params['days'] = ' AND time >='.($xmap->now - ($days*86400)) ." "; + } + + xmap_com_rapidrecipe::getCategory($xmap,$parent,$params,$catid); + } + + /* Returns URLs of all Categories and recipes in of one category using recursion */ + function getCategory (&$xmap, &$parent, &$params, &$catid ) { + $db =& JFactory::getDBO(); + + $query = "SELECT title, category_id ". + "FROM #__rr_categories AS a WHERE a.parent_id = $catid " . + " AND a.published=1 AND a.child_all_recipes>0 " . + "ORDER BY `" . $params['cats_order'] ."`"; + + $db->setQuery($query); + //echo $db->getQuery(); + $rows = $db->loadObjectList(); + + $xmap->changeLevel(1); + foreach($rows as $row) { + $row->created = $xmap->now; + + $node = new stdclass; + $node->name = $row->title; + $node->link = 'index.php?option=com_rapidrecipe&page=viewcategory&category_id='.$row->category_id; + $node->id = $parent->id; + $node->uid = $parent->uid .'c'.$row->category_id; + $node->browserNav = $parent->browserNav; + $node->modified = null; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + + if ( $xmap->printNode($node) !== FALSE) { + xmap_com_rapidrecipe::getCategory($xmap,$parent,$params,$row->category_id); + } + } + + /* Returns URLs of all listings in the current category */ + if ($params['include_recipes']) { + $query = " SELECT a.title, a.recipe_id, UNIX_TIMESTAMP(a.created) as `created` \n". + " FROM #__rr_recipes AS a, #__rr_recipecategory AS b \n". + " WHERE a.recipe_id = b.recipe_id \n". + " AND b.category_id = $catid " . + " AND a.published=1 AND a.user_group <=".$xmap->gid . + $params['days'] . + " ORDER BY `" . $params['links_order'] ."` " . + $params['limit']; + $db->setQuery($query); + //echo $db->getQuery(); + + $rows = $db->loadObjectList(); + + foreach($rows as $row) { + $row->modified = $row->created; + + $node = new stdclass; + $node->name = $row->title; + $node->link = 'index.php?option=com_rapidrecipe&page=viewrecipe&recipe_id='.$row->recipe_id; + $node->id = $parent->id; + $node->uid = $parent->uid.'r'.$row->recipe_id; + $node->browserNav = $parent->browserNav; + $node->modified = $row->created; + $node->priority = $params['recipe_priority']; + $node->changefreq = $params['recipe_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + } + $xmap->changeLevel(-1); + + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rapidrecipe.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rapidrecipe.xml new file mode 100644 index 00000000..4e079df3 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rapidrecipe.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_mtree.xml 47 2009-08-02 02:47:16Z guilleva $ --> +<install type="xmap_ext" version="1.5"> + <name>Rapid Recipe Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>November 2009</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.0</version> + <description>Xmap's Extension for Rapid Recipe component</description> + <files> + <filename xmap_ext="com_rapidrecipe">com_rapidrecipe.php</filename> + </files> + <params> + <param name="cats_order" type="list" default="cat_name" label="Categories order" description="In which order do you want the categories listed on your sitemap?"> + <option value="ordering">Default ordering</option> + <option value="cat_name">Category Name</option> + <option value="cat_created">Category creation date</option> + </param> + <param name="include_links" type="list" default="1" label="Show Recipes" description="Should we include recipes into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="links_order" type="list" default="ordering" label="Recipes order" description="In which order do you want the recipes?"> + <option value="ordering">Default ordering</option> + <option value="title">Title</option> + <option value="created">Creation date</option> + <option value="hits">Number hits</option> + </param> + <param name="max_links" type="text" default="" label="Max links" description="Max number of recipes per category to include on sitemap (Leave empty for no limit)" /> + <param name="max_age" type="text" default="" label="Newest than" description="Only show recipes newer than this number of days (Leave it blank to ignore this option)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="recipe_priority" type="list" default="-1" label="Recipe Priority" description="Set the priority for the recipes"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="recipe_changefreq" type="list" default="-1" label="Recipe Change frequency" description="Set the chage frequency for the recipes"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_remository.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_remository.php new file mode 100644 index 00000000..530bf1f9 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_remository.php @@ -0,0 +1,108 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_remository.php 52 2009-10-24 22:35:11Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for Remository component +*/ + +defined( '_JEXEC' ) or die( 'Restricted access.' ); + +class xmap_com_remository { + + function getTree( &$xmap, &$parent, &$params) { + if ( strpos($parent->link, 'func=fileinfo') ) { + return $list; + } + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars ); + $catid = JArrayHelper::getValue($link_vars,'id',0); + + $include_files = JArrayHelper::getValue( $params, 'include_files',1,'' ); + $include_files = ( $include_files == 1 + || ( $include_files == 2 && $xmap->view == 'xml') + || ( $include_files == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_files'] = $include_files; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'file_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'file_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['file_priority'] = $priority; + $params['file_changefreq'] = $changefreq; + + if ( $include_files ) { + $params['limit'] = ''; + $params['days'] = ''; + $limit = JArrayHelper::getValue($params,'max_files','',''); + + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = JArrayHelper::getValue($params,'max_age','',''); + if ( intval($days) ) + $params['days'] = ' AND filedate >= \''.date('Y-m-d H:m:s', ($xmap->now - ($days*86400)) ) ."' "; + } + + xmap_com_remository::getRemositoryTree( $xmap, $parent, $params, $catid ); + } + + function getRemositoryTree ( &$xmap, &$parent, &$params, &$catid ) { + $db = JFactory::getDBO(); + + $db->setQuery("select id, windowtitle,name, parentid from #__downloads_containers where parentid=$catid and published = '1' and groupid = '0' order by windowtitle"); + $cats = $db->loadObjectList(); + $xmap->changeLevel(1); + foreach($cats as $cat) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$cat->id; + $node->pid = $cat->parentid; + $node->name = $cat->name? $cat->name : $cat->windowtitle; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->link = 'index.php?option=com_remository&func=select&id='.$cat->id; + $node->expandible = true; + + if ($xmap->printNode($node) !== FALSE) { + xmap_com_remository::getRemositoryTree($xmap, $parent, $params, $cat->id); + } + } + + if ($params['include_files']) { + $db->setQuery ("select id, windowtitle,filetitle, containerid from #__downloads_files where containerid=$catid and published = '1' and groupid = '0' ".$params['days']." order by windowtitle" . $params['limit']); + $cats = $db->loadObjectList(); + foreach($cats as $file) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid .'d'.$file->id; + $node->name = ($file->windowtitle ? $file->windowtitle : $file->filetitle); + $node->link = 'index.php?option=com_remository&func=fileinfo&id='.$file->id; + $node->priority = $params['file_priority']; + $node->changefreq = $params['file_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + } + $xmap->changeLevel(-1); + } + +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_remository.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_remository.xml new file mode 100644 index 00000000..e7536831 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_remository.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_remository.xml 48 2009-08-02 02:56:12Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>Remository Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>2008/03/09</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.3</version> + <description>Plugin for Remository component</description> + <files> + <filename xmap_ext="com_remository">com_remository.php</filename> + </files> + <params> + <param name="include_files" type="list" default="1" label="Show Files" description="Should we include files into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="max_files" type="text" default="" label="Max files" description="Max number of files per category to include on sitemap (Leave empty for no limit)" /> + <param name="max_age" type="text" default="" label="Newest than" description="Only show files newest than this number of days (Leave it blank to ignore this option)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="file_priority" type="list" default="-1" label="File Priority" description="Set the priority for the files"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="file_changefreq" type="list" default="-1" label="File Change frequency" description="Set the chage frequency for the files"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_resource.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_resource.php new file mode 100644 index 00000000..cbf924c9 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_resource.php @@ -0,0 +1,187 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for JoomSuite Content component +*/ + +defined( '_VALID_MOS' ) or defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +/** Adds support for JoomSuite Content categories to Xmap */ +class xmap_com_resource { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = xmap_com_resource::getParam($link_vars,'category_id',0); + $cid = xmap_com_resource::getParam($link_vars,'article',0); + if ( !$catid ) { + $menu =& JSite::getMenu(); + $params = $menu->getParams($node->id); + $catid = $params->get('category_id',0); + } + if ( $cid && $catid ) { + $node->uid = 'com_resourcec'.$catid.'a'.$cid; + } elseif ( $catid ) { + $node->uid = 'com_resourcec'.$catid; + } + } + + /** Get the content tree for this kind of content */ + function getTree( &$xmap, &$parent, &$params ) { + + $menu =& JSite::getMenu(); + $db =& JFactory::getDBO(); + $vmparams = $menu->getParams($parent->id); + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = intval(xmap_com_resource::getParam($link_vars,'category_id',0)); + $cid = intval(xmap_com_resource::getParam($link_vars,'content_id',0)); + $params['Itemid'] = intval(xmap_com_resource::getParam($link_vars,'Itemid',$parent->id)); + + $view = xmap_com_resource::getParam($link_vars,'view',''); + + + if ( !$catid ) { + $catid = intval($vmparams->get('category_id',0)); + } + + if ($view && $view != 'list') { // We only expand category menu items or item + return true; + } + + // Check if the user has privileges to view this category + if ( $catid ) { + $db->setQuery('SELECT `access` FROM #__js_res_category WHERE id='.$catid); + $access = $db->loadResult(); + if ( $access > $xmap->gid ) { + return true; + } + } + + if ( $cid ) + return $tree; + + $include_articles = xmap_com_resource::getParam($params,'include_articles',1); + $include_articles = ( $include_articles == 1 + || ( $include_articles == 2 && $xmap->view == 'xml') + || ( $include_articles == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_articles'] = $include_articles; + + $priority = xmap_com_resource::getParam($params,'cat_priority',$parent->priority); + $changefreq = xmap_com_resource::getParam($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = xmap_com_resource::getParam($params,'article_priority',$parent->priority); + $changefreq = xmap_com_resource::getParam($params,'article_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['article_priority'] = $priority; + $params['article_changefreq'] = $changefreq; + + + $params['limit'] = ''; + $limit = intval(JArrayHelper::getValue($params,'max_articles',0,'')); + + if ( intval($limit) && $xmap->view != 'navigator' ) { + $params['limit'] = ' LIMIT '.$limit; + } + + + xmap_com_resource::getCategoryTree($xmap, $parent, $params, $catid); + return true; + } + + /** JoomSuite Content support */ + function &getCategoryTree( &$xmap, &$parent,&$params, $catid=0 ) { + + $database = &JFactory::getDBO(); + $list = array(); + + $query = + "SELECT c.name,c.id,UNIX_TIMESTAMP(c.ctime) as ctime ,UNIX_TIMESTAMP(c.mtime) as mtime " + ."\n FROM #__js_res_category AS c " + ."\n WHERE " + ."\n c.published=1 " + ."\n AND c.access<=".$xmap->gid + ."\n AND c.parent=$catid " + ."\n ORDER BY c.ordering ASC"; + + $database->setQuery( $query ); + $database->getQuery(); + + $rows = $database->loadObjectList(); + + $xmap->changeLevel(1); + foreach($rows as $row) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$row->id; + $node->browserNav = $parent->browserNav; + $node->name = stripslashes($row->name); + $node->modified = ($row->mtime ? $row->mtime : $row->ctime); + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + $node->link = 'index.php?option=com_resource&view=list&category_id='.$row->id.'&Itemid='.$params['Itemid']; + if ( $xmap->printNode($node) !== FALSE ) { + xmap_com_resource::getCategoryTree( $xmap, $parent, $params, $row->id); + } + } + $xmap->changeLevel(-1); + + if ( $params['include_articles'] ) { + $query = + "SELECT a.id,a.title,UNIX_TIMESTAMP(a.ctime) as ctime ,UNIX_TIMESTAMP(a.mtime) as mtime " + ."\n FROM #__js_res_record AS a, #__js_res_record_category AS b " + ."\n WHERE a.published=1" + ."\n AND a.access<=".$xmap->gid + ."\n AND b.catid=$catid " + ."\n AND a.id=b.record_id " + ."\n ORDER BY a.ordering" + ."\n ". $params['limit']; + + $database->setQuery( $query ); + $rows = $database->loadObjectList(); + $xmap->changeLevel(1); + foreach ( $rows as $row ) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$catid.'a'.$row->id; + $node->browserNav = $parent->browserNav; + $node->priority = $params['article_priority']; + $node->changefreq = $params['article_changefreq']; + $node->name = $row->title; + $node->modified = ($row->mtime ? $row->mtime : $row->ctime); + $node->expandible = false; + $node->link = 'index.php?option=com_resource&controller=article&article='.$row->id.'&category_id='.$catid.'&Itemid='.$params['Itemid']; + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } + + return $list; + } + + function &getParam($arr, $name, $def) { + $var = JArrayHelper::getValue( $arr, $name, $def, '' ); + return $var; + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_resource.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_resource.xml new file mode 100644 index 00000000..ce4676b8 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_resource.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_resource.xml 105 2010-04-18 11:40:00Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>JoomSuite Resources Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>December 2008</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.0</version> + <description>Plugin for JoomSuite Resources component. Sponsored by MyIslandsNetwork.com</description> + <files> + <filename xmap_ext="com_resource">com_resource.php</filename> + </files> + <params> + <param name="include_articles" type="list" default="1" label="Show Article Items" description="Should we include content items into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In HTML Sitemap Only</option> + </param> + <param name="max_articles" type="text" default="" label="Max articles" description="Max number of articles per category to include on sitemap (Leave empty for no limit)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="article_priority" type="list" default="-1" label="Article Priority" description="Set the priority for the content"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="article_changefreq" type="list" default="-1" label="Article Change frequency" description="Set the chage frequency for the content"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rokdownloads.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rokdownloads.php new file mode 100644 index 00000000..5f88e2d4 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rokdownloads.php @@ -0,0 +1,208 @@ +<?php +/** +* @author Guillermo Vargas +* @email guille@vargas.co.cr +* @version $Id: com_rokdownloads.php 56 2009-10-28 02:56:55Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for Rokdownloads component. Based on the work of Jan Moehrke, http://www.joomla-cbe.de +*/ + +defined( '_JEXEC' ) or die( 'Restricted access.' ); + +class xmap_com_rokdownloads { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item and indicate whether the node is expandible or not + * + * @param object $node + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $view = JArrayHelper::getValue($link_vars,'view',''); + if ( $view == 'folder') { + $catid = JArrayHelper::getValue($link_vars,'id',0); + if ( !$catid ) { + $menu =& JSite::getMenu(); + $params = $menu->getParams($node->id); + $catid = $params->get('top_level_folder',0); + } + }else{ + $catid = 0; + } + if ( $catid ) { + $node->uid = 'com_rokdownloadso'.$catid; + $node->expandible = true; + } + + } + + /** + * This function is called from Xmap's component and it's expected to + * expand the given menu item ($parent) + * + * @param object $xmap + * @param object $parent + * @param array $params + * @param int $catid + */ + function getTree( &$xmap, &$parent, &$params) { + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars ); + $view = JArrayHelper::getValue($link_vars,'view',0); + if ( $view == 'folder' ) { + $catid = intval(JArrayHelper::getValue($link_vars,'id',0)); + + if ( !$catid ) { + $menu =& JSite::getMenu(); + $mparams = $menu->getParams($parent->id); + $catid = $mparams->get('top_level_folder',0); + } + } else { + $catid = 1; + } + + $include_files = JArrayHelper::getValue( $params, 'include_files',1,'' ); + $include_files = ( $include_files == 1 + || ( $include_files == 2 && $xmap->view == 'xml') + || ( $include_files == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_files'] = $include_files; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'file_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'file_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['file_priority'] = $priority; + $params['file_changefreq'] = $changefreq; + + if ( $include_files ) { + $params['limit'] = ''; + $params['days'] = ''; + $limit = JArrayHelper::getValue($params,'max_files','',''); + + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = JArrayHelper::getValue($params,'max_age','',''); + if ( intval($days) ) + $params['days'] = ' AND filedate >= \''.date('Y-m-d H:m:s', ($xmap->now - ($days*86400)) ) ."' "; + } + + xmap_com_rokdownloads::getRokdownloadsTree($xmap, $parent, $params, $catid ); + + } + + /** + * Generates the elements tree for Rokdownloads component + * + * @param object $xmap + * @param object $parent + * @param array $params + * @param int $catid + */ + function getRokdownloadsTree ( &$xmap, &$parent, &$params, $catid) { + $db = &JFactory::getDBO(); + + ($catid)? $cats = xmap_com_rokdownloads::getDBFolders($catid):$cats = xmap_com_rokdownloads::getDBFolders(); + + $xmap->changeLevel(1); + foreach($cats as $cat) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'o'.$cat->id; + $node->name = $cat->displayname? $cat->displayname : $cat->name; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + $node->link = 'index.php?option=com_rokdownloads&view=folder&id=' . $cat->id . ":" . strtolower($cat->name); + $node->tree = array(); + + if ($xmap->printNode($node) !== FALSE) { + xmap_com_rokdownloads::getRokdownloadsTree($xmap, $parent, $params, $cat->id); + } + + } + + if ($params['include_files'] && $catid) { + $files = xmap_com_rokdownloads::getDBFilesForFolder($catid); + foreach($files as $file) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid .$catid . 'd' . $file->id; + $node->name = ($file->displayname ? $file->displayname : $file->name); + $node->link = 'index.php?option=com_rokdownloads&view=file&id='.$file->id . ":" . strtolower($file->name); + $node->priority = $params['file_priority']; + $node->changefreq = $params['file_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + } + $xmap->changeLevel(-1); + } + + /** + * Retrieve the published folder for a specific parent + * + * @param int $parentFolderId + * @param int $depth + * @return array + */ + function getDBFolders($parentFolderId = 1, $depth = 1){ + $db = &JFactory::getDBO(); + + $query = "SELECT node.*, (COUNT(parent.name) - (sub_tree.depth + 1)) AS depth " + ."FROM #__rokdownloads AS node,#__rokdownloads AS parent,#__rokdownloads AS sub_parent," + ."(SELECT node.id, (COUNT(parent.name) - 1) AS depth FROM #__rokdownloads AS node,#__rokdownloads AS parent " + ."WHERE node.lft BETWEEN parent.lft AND parent.rgt " + ."AND node.id = " . $parentFolderId . " " + ."GROUP BY node.id ORDER BY node.lft ) AS sub_tree " + ."WHERE node.published=1 and node.lft BETWEEN parent.lft AND parent.published=1 AND parent.rgt AND node.lft BETWEEN sub_parent.lft " + ."AND sub_parent.rgt AND sub_parent.id = sub_tree.id and node.folder = 1 " + ."GROUP BY node.id HAVING depth = $depth ORDER BY node.lft"; + $db->setQuery($query); + $folders = $db->loadObjectList(); + return $folders; + } + + /** + * Retrieve the published files for a specific folder + * + * @param int $catid + * @return array + */ + function getDBFilesForFolder($catid){ + $db = &JFactory::getDBO(); + $query = "SELECT node.*, (COUNT(parent.name) - (sub_tree.depth + 1)) AS depth " + ."FROM #__rokdownloads AS node,#__rokdownloads AS parent,#__rokdownloads AS sub_parent," + ."(SELECT node.id, (COUNT(parent.name) - 1) AS depth FROM #__rokdownloads AS node,#__rokdownloads AS parent " + ."WHERE node.lft BETWEEN parent.lft AND parent.rgt " + ."AND node.id = " . $catid . " " + ."GROUP BY node.id ORDER BY node.lft ) AS sub_tree " + ."WHERE node.published=1 AND node.lft BETWEEN parent.lft AND parent.rgt AND node.lft BETWEEN sub_parent.lft " + ."AND sub_parent.rgt AND sub_parent.id = sub_tree.id and node.folder = 0 " + ."GROUP BY node.id HAVING depth = 1 ORDER BY node.lft"; + + $db->setQuery($query); + $files = $db->loadObjectList(); + return $files; + } + +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rokdownloads.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rokdownloads.xml new file mode 100644 index 00000000..44648f05 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rokdownloads.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_rokdownloads.xml 56 2009-10-28 02:56:55Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>Rokdownloads Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>2009/10/27</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.4</version> + <description>Plugin for Rokdownload component</description> + <files> + <filename xmap_ext="com_rokdownloads">com_rokdownloads.php</filename> + </files> + <params> + <param name="include_files" type="list" default="1" label="Show Files" description="Should we include files into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="max_files" type="text" default="" label="Max files" description="Max number of files per category to include on sitemap (Leave empty for no limit)" /> + <param name="max_age" type="text" default="" label="Newest than" description="Only show files newest than this number of days (Leave it blank to ignore this option)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="file_priority" type="list" default="-1" label="File Priority" description="Set the priority for the files"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="file_changefreq" type="list" default="-1" label="File Change frequency" description="Set the chage frequency for the files"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rsgallery2.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rsgallery2.php new file mode 100644 index 00000000..f797e258 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rsgallery2.php @@ -0,0 +1,170 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_rsgallery2.php 52 2009-10-24 22:35:11Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for RSGallery2 component +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +/** Adds support for RSGallery2 component to Xmap */ +class xmap_com_rsgallery2 { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $letter = JArrayHelper::getValue($link_vars,'letter',''); + $id = intval(JArrayHelper::getValue($link_vars,'id',0)); + $catid = JArrayHelper::getValue( $link_vars, 'catid', '', '' ); + if ( $id ) { + $node->uid = 'com_rsgallery2i'.$id; + $node->expandible = false; + } elseif ( $catid) { + $node->uid = 'rsgallery2c'.$catid; + $node->expandible = true; + } + } + + /** Get the content tree for this kind of content */ + function getTree( &$xmap, &$parent, &$params ) { + global $rsgConfig, $rsgAccess, $rsgVersion, $rsgOption; + + if (!file_exists(JPATH_SITE.'/administrator/components/com_rsgallery2/init.rsgallery2.php')) { + return $list; + } + + require_once(JPATH_SITE.'/administrator/components/com_rsgallery2/init.rsgallery2.php'); + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = JArrayHelper::getValue($link_vars,'catid',0); + $id = JArrayHelper::getValue($link_vars,'id',0); + + if ( $id ) + return $tree; + + $include_images = JArrayHelper::getValue($params,'include_images',1); + $include_images = ( $include_images == 1 + || ( $include_images == 2 && $xmap->view == 'xml') + || ( $include_images == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_images'] = $include_images; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'image_priority',$parent->priority); + $changefreq = JArrayHelper::getValue($params,'image_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['image_priority'] = $priority; + $params['image_changefreq'] = $changefreq; + + + if ( $include_images ) { + $ordering = JArrayHelper::getValue($params,'images_order','ordering'); + $orderModes = array('ordering'=>'ASC','date'=>'DESC','title'=>'ASC','hits'=>'DESC'); + if ( empty($orderModes[$ordering]) ) + $ordering = 'ordering'; + + $params['images_order'] = $ordering . ' '. $orderModes[$ordering]; + + $params['limit'] = ''; + $params['days'] = ''; + $limit = JArrayHelper::getValue($params,'max_images',''); + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = JArrayHelper::getValue($params,'max_age',''); + if ( intval($days) ) + $params['days'] = ' AND `date` >=\''.date('Y-m-d H:i:s',$xmap->now - ($days*86400)) ."' "; + } + + xmap_com_rsgallery2::getGalleries($xmap,$parent,$params,$catid); + } + + /** RSGallery support */ + function getGalleries ( &$xmap, &$parent,&$params, $catid ) { + global $rsgConfig, $rsgAccess, $rsgVersion, $rsgOption; + + $database = &JFactory::getDBO(); + + $gid=0; + $query = "SELECT id,name,unix_timestamp(`date`) as `date` FROM #__rsgallery2_galleries". + " WHERE published=1". + " AND parent=$catid". + " ORDER BY ordering ASC"; + $database->setQuery($query); + + $rows = $database->loadAssocList(); + $xmap->changeLevel(1); + foreach($rows as $row) { + // check if user has view access + if( !$rsgAccess->checkGallery( 'view', $row['id'] )) + continue; + + $node = new stdclass; + + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$row['id']; + $node->browserNav = $parent->browserNav; + $node->name = $row['name']; + $node->modified = $xmap->now; + $node->link = 'index.php?option=com_rsgallery2&catid='.$row['id']; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + if ($xmap->printNode($node) !== FALSE) { + xmap_com_rsgallery2::getGalleries($xmap,$parent,$row['id'],$params); + } + } + + if ( $params['include_images'] ) { + $query = + "SELECT id,name,title,UNIX_TIMESTAMP(`date`) as `date` " + ."\n FROM #__rsgallery2_files" + ."\n WHERE gallery_id = $catid" + ."\n AND published=1 " + ."\n AND approved=1 " + .$params['days'] + ."\n ORDER BY ".$params['images_order'] . ' ' + .$params['limit']; + + $database->setQuery( $query ); + $database->getQuery( ); + $rows = $database->loadAssocList(); + foreach($rows as $row) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'i'.$row['id']; + $node->browserNav = $parent->browserNav; + $node->name = $row['title']; + $node->modified = intval($row['date']); + $node->priority = $params['image_priority']; + $node->changefreq = $params['image_changefreq']; + $node->link = 'index.php?option=com_rsgallery2&page=inline&catid=' . $catid . '&id=' . $row['id']; // parent id + $node->expandible = false; + $xmap->printNode($node); + } + } + $xmap->changeLevel(-1); + } +} + diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rsgallery2.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rsgallery2.xml new file mode 100644 index 00000000..2d2b69bd --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_rsgallery2.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_rsgallery2.xml 52 2009-10-24 22:35:11Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>RSGallery2 Extension</name> + <author>Guillermo Vargas</author> + <creationDate>2008/02/29</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.0</version> + <description>Plugin for RSGallery2 component</description> + <files> + <filename xmap_ext="com_rsgallery2">com_rsgallery2.php</filename> + </files> + <params> + <param name="include_images" type="list" default="1" label="Show Images" description="Should we include images into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="max_images" type="text" default="" label="Max images" description="Max number of images per category to include on sitemap (Leave empty for no limit)" /> + <param name="max_age" type="text" default="" label="Newest than" description="Only show images newest than this number of days (Leave it blank to ignore this option)" /> + <param name="images_order" type="list" default="orderding" label="Images Order" description="Set the order to display the images"> + <option value="ordering">Default Order</option> + <option value="hits">Hits</option> + <option value="date">Date</option> + <option value="title">Title</option> + </param> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="0.5" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="weekly" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="image_priority" type="list" default="0.5" label="Image Priority" description="Set the priority for the images"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="image_changefreq" type="list" default="weekly" label="Image Change frequency" description="Set the chage frequency for the images"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sectionex.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sectionex.php new file mode 100644 index 00000000..76fe811c --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sectionex.php @@ -0,0 +1,328 @@ +<?php +/** + * $Id: com_sectionex.php 52 2009-10-24 22:35:11Z guilleva $ + * $LastChangedDate: 2009-10-24 16:35:11 -0600 (sáb, 24 oct 2009) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * a sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +/** Handles standard Joomla Content */ +class xmap_com_sectionex { + + /** return a node-tree */ + function getTree(&$xmap, &$parent, &$params) { + $result = null; + + /*** + * Parameters Initialitation + **/ + //----- Set expand_categories param + $expand_categories = xmap_com_sectionex::getParam($params,'expand_categories',1); + $expand_categories = ( $expand_categories == 1 + || ( $expand_categories == 2 && $xmap->view == 'xml') + || ( $expand_categories == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['expand_categories'] = $expand_categories; + + //----- Set expand_sections param + $expand_sections = xmap_com_sectionex::getParam($params,'expand_sections',1); + $expand_sections = ( $expand_sections == 1 + || ( $expand_sections == 2 && $xmap->view == 'xml') + || ( $expand_sections == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['expand_sections'] = $expand_sections; + + //----- Set show_unauth param + $show_unauth = xmap_com_sectionex::getParam($params,'show_unauth',1); + $show_unauth = ( $show_unauth == 1 + || ( $show_unauth == 2 && $xmap->view == 'xml') + || ( $show_unauth == 3 && $xmap->view == 'html')); + $params['show_unauth'] = $show_unauth; + + //----- Set cat_priority and cat_changefreq params + $priority = xmap_com_sectionex::getParam($params,'cat_priority',$parent->priority); + $changefreq = xmap_com_sectionex::getParam($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + //----- Set art_priority and art_changefreq params + $priority = xmap_com_sectionex::getParam($params,'art_priority',$parent->priority); + $changefreq = xmap_com_sectionex::getParam($params,'art_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['art_priority'] = $priority; + $params['art_changefreq'] = $changefreq; + + $menuparams = xmap_com_sectionex::paramsToArray( $parent->params ); + + $id = $menuparams['se_show_section_name']; + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $id = isset($link_vars['id'])? $link_vars['id'] : 0; + + if (defined('JPATH_SITE') && defined('_JEXEC')) { + require_once (JPATH_SITE.DS.'components'.DS.'com_sectionex'.DS.'helpers'.DS.'route.php'); + } + + if ( $id ) { + xmap_com_sectionex::getContentSection($xmap, $parent, $id, $params, $menuparams); + } + } + + /** Get all content items within a content category. + * Returns an array of all contained content items. */ + function getContentCategory(&$xmap, &$parent, $catid, &$params, &$menuparams) { + $database = & JFactory::getDBO(); + $orderby = !empty($menuparams['se_orderby_article']) ? $menuparams['se_orderby_article'] : 'rdate'; + $orderby = xmap_com_sectionex::orderby_sec( $orderby ); + + $query = + "SELECT a.id, a.title, a.modified, a.created, a.sectionid" + . ',CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug' . + ',CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END as catslug' + . "\n FROM #__content AS a,#__categories AS c" + . "\n WHERE a.catid=(".$catid.")" + . "\n AND a.catid=c.id" + . "\n AND a.state='1'" + . "\n AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '". date('Y-m-d H:i:s',$xmap->now) ."' )" + . "\n AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '". date('Y-m-d H:i:s',$xmap->now) ."' )" + . ( $params['show_unauth'] ? '' : "\n AND a.access<='". $xmap->gid ."'" ) // authentication required ? + . ( $xmap->view != 'xml'?"\n ORDER BY ". $orderby ."": '' ) + ; + $database->setQuery( $query ); + $items = $database->loadObjectList(); + + if (count($items) > 0) { + $xmap->changeLevel(1); + foreach($items as $item) { + $node = new stdclass(); + $node->id = $parent->id; + $node->uid = $parent->uid.'a'.$item->id; + $node->browserNav = $parent->browserNav; + $node->priority = $params['art_priority']; + $node->changefreq = $params['art_changefreq']; + $node->name = $item->title; + $node->expandible = false; + + if( $item->modified == '0000-00-00 00:00:00' ) + $item->modified = $item->created; + + $node->modified = xmap_com_sectionex::toTimestamp( $item->modified ); + $node->link = ContentHelperRouteX::getArticleRoute($item->slug, $item->catslug, $item->sectionid); + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } + return true; + } + + /** Get all Categories within a Section. + * Also call getCategory() for each Category to include it's items */ + function getContentSection(&$xmap, &$parent, $secid, &$params, &$menuparams ) { + $database = & JFactory::getDBO(); + + $orderby = isset($menuparams['se_orderby_cat']) ? $menuparams['se_orderby_cat'] : ''; + $orderby = xmap_com_sectionex::orderby_sec( $orderby ); + + $query = + "SELECT a.id, a.title, a.name, a.params,a.section,a.alias" + . ',CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug' + . "\n FROM #__categories AS a" + . "\n LEFT JOIN #__content AS b ON b.catid = a.id " + . "\n AND b.state = '1'" + . "\n AND ( b.publish_up = '0000-00-00 00:00:00' OR b.publish_up <= '". date('Y-m-d H:i:s',$xmap->now) ."' )" + . "\n AND ( b.publish_down = '0000-00-00 00:00:00' OR b.publish_down >= '". date('Y-m-d H:i:s',$xmap->now) ."' )" + . ( $params['show_unauth'] ? '' : "\n AND b.access <= ". $xmap->gid ) // authentication required ? + . "\n WHERE a.section = '". $secid ."'" + . "\n AND a.published = '1'" + . ( $params['show_unauth'] ? '' : "\n AND a.access <= ". $xmap->gid ) // authentication required ? + . "\n GROUP BY a.id" + . ( @$menuparams['empty_cat'] ? '' : "\n HAVING COUNT( b.id ) > 0" ) // hide empty categories ? + . ( $xmap->view != 'xml'? "\n ORDER BY ". $orderby: '') + ; + $database->setQuery( $query ); + $items = $database->loadObjectList(); + + $xmap->changeLevel(1); + foreach($items as $item) { + $node = new stdclass(); + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$item->id; + $node->name = $item->title; + $node->browserNav = $parent->browserNav; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->link = ContentHelperRouteX::getCategoryRoute($item->slug, $item->section); + $node->expandible = true; + if ($xmap->printNode($node) !== FALSE) { + if( $params['expand_categories'] ) { + xmap_com_sectionex::getContentCategory($xmap, $parent, $item->id, $params, $menuparams); + } + } + } + $xmap->changeLevel(-1); + return true; + } + + /***************************************************/ + /* copied from /components/com_content/content.php */ + /***************************************************/ + + /** convert a menuitem's params field to an array */ + function paramsToArray( &$menuparams ) { + $tmp = explode("\n", $menuparams); + $res = array(); + foreach($tmp AS $a) { + @list($key, $val) = explode('=', $a, 2); + $res[$key] = $val; + } + return $res; + } + /** Translate Joomla datestring to timestamp */ + function toTimestamp( &$date ) { + if ( $date && ereg( "([0-9]{4})-([0-9]{2})-([0-9]{2})[ ]([0-9]{2}):([0-9]{2}):([0-9]{2})", $date, $regs ) ) { + return mktime( $regs[4], $regs[5], $regs[6], $regs[2], $regs[3], $regs[1] ); + } + return FALSE; + } + + /** translate primary order parameter to sort field */ + function orderby_pri( $orderby ) { + switch ( $orderby ) { + case 'alpha': + $orderby = 'cc.title, '; + break; + + case 'ralpha': + $orderby = 'cc.title DESC, '; + break; + + case 'order': + $orderby = 'cc.ordering, '; + break; + + default: + $orderby = ''; + break; + } + + return $orderby; + } + + /** translate secondary order parameter to sort field */ + function orderby_sec( $orderby ) { + switch ( $orderby ) { + case 'date': + $orderby = 'a.created'; + break; + + case 'rdate': + $orderby = 'a.created DESC'; + break; + + case 'alpha': + $orderby = 'a.title'; + break; + + case 'ralpha': + $orderby = 'a.title DESC'; + break; + + case 'hits': + $orderby = 'a.hits'; + break; + + case 'rhits': + $orderby = 'a.hits DESC'; + break; + + case 'order': + $orderby = 'a.ordering'; + break; + + case 'author': + $orderby = 'a.created_by_alias, u.name'; + break; + + case 'rauthor': + $orderby = 'a.created_by_alias DESC, u.name DESC'; + break; + + case 'front': + $orderby = 'f.ordering'; + break; + + default: + $orderby = 'a.ordering'; + break; + } + + return $orderby; + } + /** @param int 0 = Archives, 1 = Section, 2 = Category */ + function where( $type=1, &$access, &$noauth, $gid, $id, $now=NULL, $year=NULL, $month=NULL ) { + $database = & JFactory::getDBO(); + + $nullDate = $database->getNullDate(); + $where = array(); + + // normal + if ( $type > 0) { + $where[] = "a.state = '1'"; + if ( !$access->canEdit ) { + $where[] = "( a.publish_up = '$nullDate' OR a.publish_up <= '$now' )"; + $where[] = "( a.publish_down = '$nullDate' OR a.publish_down >= '$now' )"; + } + if ( !$noauth ) { + $where[] = "a.access <= $gid"; + } + if ( $id > 0 ) { + if ( $type == 1 ) { + $where[] = "a.sectionid IN ( $id ) "; + } else if ( $type == 2 ) { + $where[] = "a.catid IN ( $id ) "; + } + } + } + + // archive + if ( $type < 0 ) { + $where[] = "a.state='-1'"; + if ( $year ) { + $where[] = "YEAR( a.created ) = '$year'"; + } + if ( $month ) { + $where[] = "MONTH( a.created ) = '$month'"; + } + if ( !$noauth ) { + $where[] = "a.access <= $gid"; + } + if ( $id > 0 ) { + if ( $type == -1 ) { + $where[] = "a.sectionid = $id"; + } else if ( $type == -2) { + $where[] = "a.catid = $id"; + } + } + } + + return $where; + } + function &getParam($arr, $name, $def) { + $var = JArrayHelper::getValue( $arr, $name, $def, '' ); + return $var; + } +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sectionex.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sectionex.xml new file mode 100644 index 00000000..df377c4c --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sectionex.xml @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_sectionex.xml 52 2009-10-24 22:35:11Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>SectionEx Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>26/06/2008</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.2</version> + <description>Plugin for SectionEx component</description> + <files> + <filename xmap_ext="com_sectionex">com_sectionex.php</filename> + </files> + <params> + <param name="expand_categories" type="list" default="1" label="Expand Categories" description="Expand Content Categories"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="expand_sections" type="list" default="1" label="Expand Sections" description="Expand Content Sections"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="show_unauth" type="list" default="0" label="Show Unauthorized Links" description="If yes, will show links to content to registered content even if you are not logged in. The user will need to login to see the item in full."> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="art_priority" type="list" default="-1" label="Article Priority" description="Set the priority for articles"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="art_changefreq" type="list" default="-1" label="Article Change frequency" description="Set the chage frequency for articles"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sobi2.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sobi2.php new file mode 100644 index 00000000..faeb8d3c --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sobi2.php @@ -0,0 +1,175 @@ +<?php +/** +* @author Guillermo Vargas guille@vargas.co.cr +* @version $Id: com_sobi2.php 86 2010-01-03 06:20:10Z guilleva $ +* @package xmap +* @license GNU/GPL +* @authorSite http://joomla.vargas.co.cr +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +/** Adds support for Sobi2 categories to Xmap */ +class xmap_com_sobi2 { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item and indicate whether the node is expandible or not + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = JArrayHelper::getValue($link_vars,'catid',0); + $sobi2Id = JArrayHelper::getValue($link_vars,'sobi2Id',0); + $task = JArrayHelper::getValue($link_vars,'sobi2Task',''); + if ( $sobi2Id && $catid ) { + $node->uid = 'com_sobi2e'.$sobi2Id; + $node->expandible = false; + } elseif ( $catid ) { + $node->uid = 'com_sobi2c'.$catid; + $node->expandible = true; + } elseif ( $task ) { + $node->uid = 'com_sobi2'.$task; + $node->expandible = false; + } + } + + /** Get the content tree for this kind of content */ + function &getTree( &$xmap, &$parent, &$params ) { + $tree = array(); + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid =JArrayHelper::getValue($link_vars,'catid',1); + $entrieid =JArrayHelper::getValue($link_vars,'sobi2Id',0); + $task = JArrayHelper::getValue($link_vars,'sobi2Task',''); + + if ( $entrieid || $task != '') + return $tree; + + $include_entries =JArrayHelper::getValue($params,'include_entries',1); + $include_entries = ( $include_entries == 1 + || ( $include_entries == 2 && $xmap->view == 'xml') + || ( $include_entries == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_entries'] = $include_entries; + + $priority =JArrayHelper::getValue($params,'cat_priority',$parent->priority); + $changefreq =JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority =JArrayHelper::getValue($params,'entry_priority',$parent->priority); + $changefreq =JArrayHelper::getValue($params,'entry_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['entry_priority'] = $priority; + $params['entry_changefreq'] = $changefreq; + + if ( $include_entries ) { + $ordering = $xmap->getParam($params,'entries_order','a.ordering'); + $orderdir = $xmap->getParam($params,'entries_orderdir','ASC'); + if ( !in_array($ordering,array('a.ordering','a.visits','a.hits','a.publish_up','a.last_update')) ){ + $ordering = 'a.ordering'; + } + if ( !in_array($orderdir,array('ASC','DESC')) ){ + $orderdir = 'ASC'; + } + $params['ordering'] = $ordering. ' '. $orderdir; + + $params['limit'] = ''; + $params['days'] = ''; + $limit = $xmap->getParam($params,'max_entries',''); + if ( intval($limit) ) + $params['limit'] = ' LIMIT '.$limit; + + $days = $xmap->getParam($params,'max_age',''); + if ( intval($days) ) + $params['days'] = ' AND a.publish_up >=\''.strftime("%Y-%m-%d %H:%M:%S",$xmap->now - ($days*86400)) ."' "; + } + + xmap_com_sobi2::getCategoryTree($xmap, $parent, $catid, $params); + return $tree; + } + + /** SOBI2 support */ + function getCategoryTree( &$xmap, &$parent, $catid, &$params ) { + $database =& JFactory::getDBO(); + + $query = + "SELECT a.catid, a.name, b.parentid as pid " + ."\n FROM #__sobi2_categories AS a, #__sobi2_cats_relations AS b " + ."\n WHERE b.parentid=$catid" + ." AND a.published=1 " + ."\n AND a.catid=b.catid " + ."\n ORDER BY a.ordering ASC"; + + $database->setQuery($query); + + $database->setQuery( $query ); + $rows = $database->loadObjectList(); + + $modified = time(); + $xmap->changeLevel(1); + foreach($rows as $row) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'c'.$row->catid; // Unique ID + $node->browserNav = $parent->browserNav; + $node->name = html_entity_decode($row->name); + $node->modified = $modified; + $node->link = 'index.php?option=com_sobi2&catid='.$row->catid; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + if ( $xmap->printNode($node) !== FALSE ) { + xmap_com_sobi2::getCategoryTree($xmap, $parent, $row->catid, $params); + } + } + + if ( $params['include_entries'] ) { + $query = + "SELECT a.itemid, a.title,UNIX_TIMESTAMP(a.last_update) as modified,UNIX_TIMESTAMP(a.publish_up) as publish_up, b.catid " + ."\n FROM #__sobi2_item AS a, #__sobi2_cat_items_relations AS b" + ."\n WHERE a.published=1 " + ."\n AND b.catid = $catid" + ."\n AND a.approved=1 " + ."\n AND a.publish_up<=now() " + ."\n AND (a.publish_down>=now() or a.publish_down='0000-00-00 00:00:00' ) " + ."\n AND a.itemid=b.itemid " + . $params['days'] + ."\n ORDER BY " . $params['ordering'] + . $params['limit']; + + + $database->setQuery( $query ); + $rows = $database->loadObjectList(); + foreach($rows as $row) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid.'e'.$row->itemid; // Unique ID + $node->browserNav = $parent->browserNav; + $node->name = html_entity_decode($row->title); + $node->modified = $row->modified? $row->modified : $row->publish_up; + $node->priority = $params['entry_priority']; + $node->changefreq = $params['entry_changefreq']; + $node->expandible = false; + // &sobi2Task=sobi2Details&catid=2&sobi2Id=1&Itemid=31 + $node->link = 'index.php?option=com_sobi2&sobi2Task=sobi2Details&catid='.$row->catid . '&sobi2Id=' . $row->itemid; + $xmap->printNode($node); + } + + } + $xmap->changeLevel(-1); + + } + +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sobi2.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sobi2.xml new file mode 100644 index 00000000..11a03526 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_sobi2.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_sobi2.xml 86 2010-01-03 06:20:10Z guilleva $ --> +<install type="xmap_ext" version="1.5"> + <name>SOBI2 Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>February 2008</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.5.1</version> + <description>Plugin for SOBI2 component</description> + <files> + <filename xmap_ext="com_sobi2">com_sobi2.php</filename> + </files> + <params> + <param name="include_entries" type="list" default="1" label="Show Entries" description="Should we include entries into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In HTML Sitemap Only</option> + </param> + <param name="max_entries" type="text" default="" label="Max entries per cat." description="Max number of entries per category to include on sitemap (Leave empty for no limit)" /> + <param name="max_age" type="text" default="" label="Newest than" description="Only show entries newest than this number of days (Leave it blank to ignore this option)" /> + <param name="entries_order" type="list" default="a.ordering" label="Entries Order" description="How should the items be ordered in the sitemap?"> + <option value="a.ordering">Default</option> + <option value="a.visits">Number of visits</option> + <option value="a.hits">Number of hits</option> + <option value="a.publish_up">Publish up date</option> + <option value="a.last_update">Last modification date</option> + </param> + <param name="entries_orderdir" type="list" default="DESC" label="Order direction" description="How should the items be ordered in the sitemap?"> + <option value="ASC">Ascendant</option> + <option value="DESC">Descendant</option> + </param> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="weekly" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="entry_priority" type="list" default="-1" label="Entries Priority" description="Set the priority for the entries"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="entry_changefreq" type="list" default="weekly" label="Entries Change frequency" description="Set the chage frequency for the entris"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_virtuemart.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_virtuemart.php new file mode 100644 index 00000000..3a2ffeb7 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_virtuemart.php @@ -0,0 +1,195 @@ +<?php +/** +* @author Guillermo Vargas, http://joomla.vargas.co.cr +* @email guille@vargas.co.cr +* @version $Id: com_virtuemart.php 74 2009-12-16 11:54:01Z guilleva $ +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for Virtuemart component +*/ + +defined( '_VALID_MOS' ) or defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +/** Adds support for Virtuemart categories to Xmap */ +class xmap_com_virtuemart { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item and indicate whether the node is expandible or not + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = xmap_com_virtuemart::getParam($link_vars,'category_id',0); + $prodid = xmap_com_virtuemart::getParam($link_vars,'product_id',0); + if ( !$catid ) { + $menu =& JSite::getMenu(); + $params = $menu->getParams($node->id); + $catid = $params->get('category_id',0); + } + if ( !$prodid ) { + $menu =& JSite::getMenu(); + $params = $menu->getParams($node->id); + $prodid = $params->get('product_id',0); + } + if ( $prodid && $catid ) { + $node->uid = 'com_virtuemartc'.$catid.'p'.$prodid; + $node->expandible = false; + } elseif ( $catid ) { + $node->uid = 'com_virtuemartc'.$catid; + $node->expandible = true; + } + + } + + /** Get the content tree for this kind of content */ + function getTree( &$xmap, &$parent, &$params ) { + $menu =& JSite::getMenu(); + $vmparams = $menu->getParams($parent->id); + + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $catid = intval(xmap_com_virtuemart::getParam($link_vars,'category_id',0)); + $prodid = intval(xmap_com_virtuemart::getParam($link_vars,'product_id',0)); + $params['Itemid'] = intval(xmap_com_virtuemart::getParam($link_vars,'Itemid',$parent->id)); + + $page = xmap_com_virtuemart::getParam($link_vars,'page',''); + + + if ( !$catid ) { + $catid = intval($vmparams->get('category_id',0)); + } + if ( !$prodid ) { + $prodid = intval($vmparams->get('product_id',0)); + } + if ( !$page ) { + $page = $vmparams->get('page',''); + } + + //if ($page && $page != 'shop.browse') { // We only expand VM category items or item + if ($page && ($page != 'shop.browse' || $catid == 0)) { // PW - We only expand VM browse menu items with a valid category_id + return true; + } + + if ( $prodid ) + return $tree; + + $include_products = xmap_com_virtuemart::getParam($params,'include_products',1); + $include_products = ( $include_products == 1 + || ( $include_products == 2 && $xmap->view == 'xml') + || ( $include_products == 3 && $xmap->view == 'html')); + $params['include_products'] = $include_products; + + $priority = xmap_com_virtuemart::getParam($params,'cat_priority',$parent->priority); + $changefreq = xmap_com_virtuemart::getParam($params,'cat_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = xmap_com_virtuemart::getParam($params,'prod_priority',$parent->priority); + $changefreq = xmap_com_virtuemart::getParam($params,'prod_changefreq',$parent->changefreq); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['prod_priority'] = $priority; + $params['prod_changefreq'] = $changefreq; + + if ( file_exists(JPATH_SITE.'/components/com_virtuemart/virtuemart_parser.php') ) { + require_once( JPATH_SITE . '/components/com_virtuemart/virtuemart_parser.php' ); + + // PW - Get the value of Itemid used by VirtueMart as the default value + global $sess; + if ( !is_object($sess) ) { + return false; + } + $params['Itemid'] = $sess->getShopItemid(); // PW - Use the default VirtueMart Itemid value + } else { + return false; + } + + xmap_com_virtuemart::getCategoryTree($xmap, $parent, $params, $catid); + return true; + } + + /** Virtuemart support */ + function &getCategoryTree( &$xmap, &$parent,&$params, $catid=0 ) { + $database = &JFactory::getDBO(); + global $sess; + + $query = + "SELECT a.category_id, a.category_name, a.mdate,a.category_flypage " + ."\n FROM #__vm_category AS a, #__vm_category_xref AS b " + ."\n WHERE a.category_publish='Y' " + ."\n AND b.category_parent_id = $catid " + ."\n AND a.category_id=b.category_child_id " + ."\n ORDER BY a.list_order ASC, a.category_name ASC"; + + $database->setQuery( $query ); + + $rows = $database->loadObjectList(); + + $xmap->changeLevel(1); + foreach($rows as $row) { + $node = new stdclass; + + $node->id = $params['Itemid']; + $node->uid = $parent->uid.'c'.$row->category_id; + $node->browserNav = $parent->browserNav; + $node->name = stripslashes($row->category_name); + $node->modified = intval($row->mdate); + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + //$node->link = $parent->link.'&page=shop.browse&category_id='.$row->category_id.'&Itemid='.$params['Itemid']; + $node->link = $sess->url("index.php?page=shop.browse&category_id=".$row->category_id); + if ($xmap->printNode($node) !== FALSE) { + xmap_com_virtuemart::getCategoryTree( $xmap, $parent, $params, $row->category_id); + } + } + $xmap->changeLevel(-1); + + if ( $params['include_products'] ) { + $query = + "SELECT a.product_id, a.product_name,a.mdate, b.category_id,d.category_flypage " + ."\n FROM #__vm_product AS a, #__vm_product_category_xref AS b, #__vm_category d" + ."\n WHERE a.product_publish='Y'" + ."\n AND b.category_id=$catid " + ."\n AND a.product_parent_id=0 " + ."\n AND a.product_id=b.product_id " + ."\n AND b.category_id=d.category_id " + ."\n ORDER BY a.product_name"; + + $database->setQuery( $query ); + $rows = $database->loadObjectList(); + $xmap->changeLevel(1); + foreach ( $rows as $row ) { + $node = new stdclass; + $node->id = $params['Itemid']; + $node->uid = $parent->uid.'c'.$row->category_id.'p'.$row->product_id; + $node->browserNav = $parent->browserNav; + $node->priority = $params['prod_priority']; + $node->changefreq = $params['prod_changefreq']; + $node->name = $row->product_name; + $node->modified = intval($row->mdate); + $node->expandible = false; + $node->link = $sess->url("index.php?page=shop.product_details&flypage=".($row->category_flypage? $row->category_flypage : FLYPAGE)."&category_id=".$row->category_id.'&product_id=' . $row->product_id); + //$node->link = 'index.php?option=com_virtuemart&page=shop.product_details&flypage='.($row->category_flypage? $row->category_flypage : FLYPAGE).'&category_id='.$row->category_id . '&product_id=' . $row->product_id. '&Itemid='.$params['Itemid']; + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } + + return $list; + } + + function &getParam($arr, $name, $def) { + $var = JArrayHelper::getValue( $arr, $name, $def, '' ); + return $var; + } +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_virtuemart.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_virtuemart.xml new file mode 100644 index 00000000..ab2197c0 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_virtuemart.xml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<install type="xmap_ext" version="1.5.0"> + <name>Virtuemart Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>Octuber 2007</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.1.3</version> + <description>Plugin for Virtuemart component</description> + <files> + <filename xmap_ext="com_virtuemart">com_virtuemart.php</filename> + </files> + <params> + <param name="include_products" type="list" default="1" label="Show Products" description="Should we include products into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In HTML Sitemap Only</option> + </param> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="0.5" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="weekly" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="prod_priority" type="list" default="0.5" label="Products Priority" description="Set the priority for the products"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="prod_changefreq" type="list" default="weekly" label="Products Change frequency" description="Set the chage frequency for the products"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_weblinks.php b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_weblinks.php new file mode 100644 index 00000000..5068bb7e --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_weblinks.php @@ -0,0 +1,152 @@ +<?php +/** +* @author Guillermo Vargas +* @email guille@vargas.co.cr +* @version $Id: com_weblinks.php +* @package Xmap +* @license GNU/GPL +* @description Xmap plugin for Joomla's web links component +*/ + +defined( '_JEXEC' ) or die( 'Restricted access.' ); + +class xmap_com_weblinks { + + /* + * This function is called before a menu item is printed. We use it to set the + * proper uniqueid for the item and indicate whether the node is expandible or not + */ + function prepareMenuItem(&$node) { + $link_query = parse_url( $node->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars); + $view = JArrayHelper::getValue($link_vars,'view',''); + if ( $view == 'weblink') { + $id = intval(JArrayHelper::getValue($link_vars,'id',0)); + if ( $id ) { + $node->uid = 'com_weblinksi'.$id; + $node->expandible = false; + } + } elseif ( $view == 'categories') { + $catid = intval(JArrayHelper::getValue($link_vars,'catid',0)); + $node->uid = 'com_weblinkscategories'; + $node->expandible = true; + } elseif ( $view == 'category' ) { + $catid = intval(JArrayHelper::getValue($link_vars,'catid',0)); + $node->uid = 'com_weblinksc'.$catid; + $node->expandible = true; + } + } + + function getTree( &$xmap, &$parent, &$params) { + $link_query = parse_url( $parent->link ); + parse_str( html_entity_decode($link_query['query']), $link_vars ); + $view = JArrayHelper::getValue($link_vars,'view',0); + + $menu =& JSite::getMenu(); + $menuparams = $menu->getParams($parent->id); + + if ( $view == 'category' ) { + $catid = intval(JArrayHelper::getValue($link_vars,'id',0)); + } elseif ( $view == 'categories' ) { + $catid = 0; + } else { // Only expand category menu items + return; + } + + $include_links = JArrayHelper::getValue( $params, 'include_links',1,'' ); + $include_links = ( $include_links == 1 + || ( $include_links == 2 && $xmap->view == 'xml') + || ( $include_links == 3 && $xmap->view == 'html') + || $xmap->view == 'navigator'); + $params['include_links'] = $include_links; + + $priority = JArrayHelper::getValue($params,'cat_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'cat_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['cat_priority'] = $priority; + $params['cat_changefreq'] = $changefreq; + + $priority = JArrayHelper::getValue($params,'link_priority',$parent->priority,''); + $changefreq = JArrayHelper::getValue($params,'link_changefreq',$parent->changefreq,''); + if ($priority == '-1') + $priority = $parent->priority; + + if ($changefreq == '-1') + $changefreq = $parent->changefreq; + + $params['link_priority'] = $priority; + $params['link_changefreq'] = $changefreq; + + $params['limit'] = ''; + $limit = JArrayHelper::getValue($params,'max_links','',''); + + if ( intval($limit) && $xmap->view != 'navigator' ) { + $params['limit'] = ' LIMIT '.$limit; + } + + xmap_com_weblinks::getCategoryTree($xmap, $parent, $params, $catid ); + + } + + function getCategoryTree ( &$xmap, &$parent, &$params, $catid) { + $db = &JFactory::getDBO(); + + if (!$catid) { // view=categories + $query = ' SELECT a.id,a.title'. + ' ,CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug' . + ' FROM #__categories a '. + ' WHERE a.published=1 and a.section=\'com_weblinks\' and a.access<='.$xmap->gid. + ' ORDER by a.ordering '; + + $db->setQuery($query); + $cats = $db->loadObjectList(); + $xmap->changeLevel(1); + foreach($cats as $cat) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid .'c'.$cat->id; + $node->name = $cat->title; + $node->link = 'index.php?option=com_weblinks&view=category&id='.$cat->slug; + $node->priority = $params['cat_priority']; + $node->changefreq = $params['cat_changefreq']; + $node->expandible = true; + if ( $xmap->printNode($node) !== FALSE ) { + xmap_com_weblinks::getCategoryTree( $xmap, $parent, $params, $cat->id ); + } + } + $xmap->changeLevel(-1); + } elseif ( $params['include_links'] ) { //view=category&catid=... + + $query = ' SELECT a.id,a.title'. + ' ,CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug' . + ' ,CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END as catslug'. + ' FROM #__weblinks a,#__categories c '. + ' WHERE a.catid = c.id AND c.published=1 and c.access<='.$xmap->gid.' AND '. + ' a.published=1 AND a.archived=0 AND a.approved=1'. + ( $catid? ' AND a.catid='.$catid.' ' : ' ') . + ' ORDER by a.ordering '. + $params['limit']; + + $db->setQuery($query); + $links = $db->loadObjectList(); + $xmap->changeLevel(1); + foreach($links as $link) { + $node = new stdclass; + $node->id = $parent->id; + $node->uid = $parent->uid .'i'.$link->id; + $node->name = $link->title; + $node->link = 'index.php?option=com_weblinks&view=weblink&id='.$link->slug . "&catid=" . $link->catslug; + $node->priority = $params['link_priority']; + $node->changefreq = $params['link_changefreq']; + $node->expandible = false; + $xmap->printNode($node); + } + $xmap->changeLevel(-1); + } + } + +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_weblinks.xml b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_weblinks.xml new file mode 100644 index 00000000..d6bb9ee5 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/com_weblinks.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Id: com_contact.xml 84 2010-01-01 12:00:21Z guilleva $ --> +<install type="xmap_ext" version="1.5.0"> + <name>Web Links Plugin</name> + <author>Guillermo Vargas</author> + <creationDate>Apr 2004</creationDate> + <copyright>GNU GPL</copyright> + <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>joomla.vargas.co.cr</authorUrl> + <version>1.0.0</version> + <description>Plugin for Joomla's web links component</description> + <files> + <filename xmap_ext="com_weblinks">com_weblinks.php</filename> + </files> + <params> + <param name="include_links" type="list" default="1" label="Show Links" description="Should we include link items into the sitemap?"> + <option value="0">Never</option> + <option value="1">Always</option> + <option value="2">In XML Sitemap Only</option> + <option value="3">In Site Sitemap Only</option> + </param> + <param name="max_links" type="text" default="" label="Max links" description="Max number of links per category to include on sitemap (Leave empty for no limit)" /> + <param name="@spacer" type="spacer" default="" label="XML Sitemap" description="Options for the XML sitemap only" /> + <param name="cat_priority" type="list" default="-1" label="Category Priority" description="Set the priority for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="cat_changefreq" type="list" default="-1" label="Category Change frequency" description="Set the chage frequency for the categories"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + <param name="link_priority" type="list" default="-1" label="Link Priority" description="Set the priority for the links"> + <option value="-1">Use Parent Menu Settings</option> + <option value="0.0">0.0</option> + <option value="0.1">0.1</option> + <option value="0.2">0.2</option> + <option value="0.3">0.3</option> + <option value="0.4">0.4</option> + <option value="0.5">0.5</option> + <option value="0.6">0.6</option> + <option value="0.7">0.7</option> + <option value="0.8">0.8</option> + <option value="0.9">0.9</option> + <option value="1">1</option> + </param> + <param name="link_changefreq" type="list" default="-1" label="Link Change frequency" description="Set the chage frequency for the links"> + <option value="-1">Use Parent Menu Settings</option> + <option value="always">Always</option> + <option value="hourly">Hourly</option> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + <option value="yearly">Yearly</option> + <option value="never">Never</option> + </param> + </params> +</install> diff --git a/oss/joomla/trunk/administrator/components/com_xmap/extensions/index.html b/oss/joomla/trunk/administrator/components/com_xmap/extensions/index.html new file mode 100644 index 00000000..88a5baf7 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/extensions/index.html @@ -0,0 +1,4 @@ +<html> +<body bgcolor="#FFFFFF"> +</body> +</html> \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/bor_bl.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/bor_bl.gif new file mode 100644 index 0000000000000000000000000000000000000000..fb0fa859a51014c6f75d240e6b9cf6f4de5c7a98 GIT binary patch literal 192 zcmZ?wbhEHb<YF*n*v!E2|NsBrzkk1f|NhytXZP;iyLRo`xpU`^9zD8u@7}Fjx2|2g zcInckKs5|7p!k!8k)45uK?fuNGJ}C7*MOsF#@<PBHm}oWZf}*pG4;vxzU8+z&5}N> zWPW?=)<-W+pSHa0`&^l?_268?NSAMYUg{rCwwNuxk*z-6P{pp{z=8&coI`V4G<4Lo p#oC!2G931ZGkjYz&*RBg7FM>RdPX5;W|sQOHX)|&?lwUNYXEuWR$Bl7 literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/bor_bot.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/bor_bot.gif new file mode 100644 index 0000000000000000000000000000000000000000..63b8f9188a882b12aa29e6ada8fd73dc5257d30d GIT binary patch literal 72 zcmZ?wbhEHbWMyDySj50EfByWNH*fCWzyJUL|8L*EUAuPey?gf<7#I|PvH%tQXV3w% a89-_on0Yl;U5FLX6U|bU=-(^MU=09H*cxB} literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/bor_br.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/bor_br.gif new file mode 100644 index 0000000000000000000000000000000000000000..132909dae66cb1c7ddd2386bdf53e47b87a12960 GIT binary patch literal 198 zcmZ?wbhEHb<YaJS*v!E2|NsB*-@m_q|NhytXZP;iyLRo`xpU`^9zD8u@7}Fjw=P|} z6sUj!2`K(#VPt3EX3znNfy`iFDK7A=?BbXlHRtu&?&H2n5oNPyE|Ry-(%pH=@K4+3 zwbv}_FKwTHZY%e*D!2QA9XeK>0S|(uWP{dU%h|l^XxY{?ABx^6U*Ti_teqGzS)kRC sK_O7(lK6pxaTCwK<;bmMC}+)L=wK^s?qFu_=@2jOm?AM{x*&r!08{E%P5=M^ literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/bor_left.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/bor_left.gif new file mode 100644 index 0000000000000000000000000000000000000000..831aeb5f82a75ffa1c7ef046274ff466173de385 GIT binary patch literal 73 zcmZ?wbhEHb<YHiDSj50^@ZiD!|Np;v^XBHwn?Ha4WPkz1pDYaQ4F4H)Kms7O49t8U UMgsr3Y<Jw^xp=O|nTf#~0P%(x%m4rY literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/bor_right.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/bor_right.gif new file mode 100644 index 0000000000000000000000000000000000000000..6bd9bcff0e35631a59c1f997be503e2ae2f9caa1 GIT binary patch literal 73 zcmZ?wbhEHb<YHiDSj50^@ZiD!|Np;v^XBHwn?Ha4WPkz1pDYaQ4F4H)Kms7O49t8I Uy9}JVEhU_*ub!*%WMZ%e0Oqe3#{d8T literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/bor_tl.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/bor_tl.gif new file mode 100644 index 0000000000000000000000000000000000000000..170a431bf3859d578c310d432157984300b19d52 GIT binary patch literal 113 zcmV-%0FM7hNk%w1VF~~r0HOc@!NI}*|NrLZ=GocV`T6<X-QCH_$?xy)A^8LV2LS&7 zEC2ui015yf0009v7`oj41Gs2rZDibb#v_7<9g+i<T!Ajcp_<*Qv=Lm7H$%(8Zu34I TF!n17jXL6Snar`2j06BXB@Z;q literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/bor_top.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/bor_top.gif new file mode 100644 index 0000000000000000000000000000000000000000..870a0641ad1930265cacf4cd15e932f060c01b67 GIT binary patch literal 45 xcmZ?wbhEHbWMN=tXkcJCc<|u=|Nj+#vM{hS{AbW%00NK<0~1S6{(=AoYXC4B3-bT~ literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/bor_tr.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/bor_tr.gif new file mode 100644 index 0000000000000000000000000000000000000000..33b964184c466a995ef97a63d91f0d8afc3be600 GIT binary patch literal 110 zcmV-!0FnPkNk%w1VF>^k0HOc@!NI}*|NrRd=-JuX`T6<X-QCH_$?xy)A^8LV2LS&7 zEC2ui00{sY0009s7`og$P8k5B8N}i^PHqGCF@Wa)0x>E;VUq3|Q13#^caxJH-s?YJ QjTN*NiNo1Z=}7<pI~lGp%K!iX literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/default.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/default.gif new file mode 100644 index 0000000000000000000000000000000000000000..f2451a82e097b50c91942fe3a82f6208ff39b635 GIT binary patch literal 264 zcmZ?wbhEHb6k!lyIKsfdkg$LL;pYw==RbV=tx$6Oz>W9$OK%Hg9bSL-b;6wM58iw? zs5|}t|Nn~BcLOF}zVPVtmJ4qRmfddHa33fL)J+g5{$yblVGw4}0jUJp$-vtBK&7wI znStRUOR}|+y4GTrM_tF(obH|dX7}Odk4 Kg_qjF~1hvnC1^oNDWlUyyRwNFsDf zrdmKsVCVbC3far{#UD!g5F7FQK10~1VrHd+c&=JL>$HMaD{bqBcvc6UI`$I&GOJ)= j4r@ln9BVVBs8|M0J;B9-<}>SZ7pw|N*3>pvWUvMR+3R5` literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/index.html b/oss/joomla/trunk/administrator/components/com_xmap/images/index.html new file mode 100644 index 00000000..19b4b1df --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/images/index.html @@ -0,0 +1,4 @@ +<html> +<body bgcolor="#FFFFFF"> +</body> +</html> \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/logo.jpg b/oss/joomla/trunk/administrator/components/com_xmap/images/logo.jpg new file mode 100644 index 0000000000000000000000000000000000000000..784bf6aece2ee0bf17bd010a5e0c3823e2668ad1 GIT binary patch literal 10064 zcmbuEXHb(}wC{s}ARtJSPEbGu>AeK<qS6(lNfRO<A|Sm51ftSJnslX#lu!+bG^GcK z6bZez1R=CYLJbhY;l1b1xik0EnRE6t&!=baHS=3*X084IKj+iu%YbW!x(2!cDk=bg z>f!;MQvjfQW;)syCT8kFuFs_0eOz3Hg5;!Sg>DD>yLq_^85rsb89vg{6ADt67nc<B z4Rn0z77!w&DI_N=%WysixOWljf4BY(^1q94ar(Riz)BDB0(eqW-2_}>rJ`n~I`0Mm zFDPmMGdAG=E~-n^G_;rL=&vv^UTmnp2Dn5;O?`=mnwFM^=3;mF#diP=D=pg%Iql2r zrjB$seL3Xcq!iK%->vQBG#ep^C^-4Oy~1#vi<^g6^p@CdaS25wWffI5^?UbqboKNN z49zVpA6r@5*g8LRdG7kc&D}pBFen%r5*is59TWR5?tN-ndPZi}$4}W`ii%50;br9& z-|D{CH#9ai|L8(?_w=HE_4SXAjZaKYP0!3?uq%I7*Kq3_o5bC{{e#0J((%c^TvPz+ z|4P|^g8hG7tQTCDXlSTu=>FxRx)glzQnS*~-jKV@rfo{+=*xan{tZ3H-IT)G&MU$S zW&}<rzY&J(B8nJM;=gGBhwQ%x_V#~7_FrKCk82jdL``*3JZe?|7(gM1y4KRLpysB7 zh2dk_%$Gy{%KgG^ZHM}3lS8Qw(C|`!5-dNR-<kh_ZY~)$)d~>fKkTDxR7FoUI_?~l ztWc-?`gQUrNmF&LrEUfGUTNnNS%6fsV!{-jMqvYAAyN0_3y*L;dh>T1Tp!@ceDvrW zSJ24smwR)3@zCxO(QYXbmkF1<e&Do%*GmLDAW6cchXnw9hdXp884y`I8-C~|)(_;_ zb(|!g10n;hMk56JihHo}P5Z4dE8<;^IfH5&Jx?0z)WgRgZHq$KsQU6Jx}W9By~mc{ zyORlt8ua;eFUh$(gp0+5^^<ei6e6+{bH|mm-F^ka`VJoRbz{^z!^}9hn#&_8OVp5v z+%r~47d0am*?vn@HIz#)F6$~T;%?U6$(${iMm35J2W+7PT21`%V|2R|JvbbPKZ#(9 z=v^Y10poxTuAP;z1YV_d3SDCwWFkz%w{Yo++tl8@z~XpkMdHG&+lL~g%q-Wy<NF_I zMLSf{W4mGYq@OA>*kflpk>dx*Bp+BXhnVnJDgipJ_BB*o`}aL0%ax|FxE2uh9B`Ga z(?JZTe?DE6rq%zvDFjXX>FJ+Bhe(8xN_9+GdPBM4cZ|qbLiWVjBBVnt$t4QuTr<5* zLujfnt=6sHnzg{ytp-?R6&bnC6qK#L?zMI<JdUN-`UD&dTxnGqOiq1fT$I{D)w%ra zU^^Vu8ewsfe{A584l1#py6IY{;Cdj<CGhA}sk-z0(}Uh-A|&CxVwQu_BqxAs39oR! zK#p5<aqS;9p|BY=w`S$8`Z=Hhh^(l0))OZrC(6}VXxS=Otc6%gWIQ`aaAs2P`Q5iw zY#w1Nm`y<OXKX%)>Wg~RGgOO~EUXUTNWkhfEG<8pAr<^yzk_;7QWi?LtJYU+mlHHJ zv+T7bS>^+~3?e{J&hG5;)L->m27<d!_UB&X@F<$l#1S<fbdV79i^k>&Ja>KjJCHUz zJ36BReQo(q%`T|TMC5?~a8t_`(qJx}bW8Re@J{@bq(qwKEz;Nb-8#1#zU;ctiB`Bx zByR@5x~0FaoCAby!zPWFEVE>cw7g%=+I#n-rzTuLF<1A65?1EGPr}{&!hhfp#;vL+ zuoU#_QZ&eZh5q1-VHA8F8sFbM`Tb{zaGF)iCxKh7G0M6IqAoWk8ft`T`1up2HfdhH z)ypl&FxX1f-$}i!6|1(^-mVpQ4lv5+JF!{?S$^_4V!%C-CFyZxJtdCsCFnA;GwD3( zO$;3`i7JoEEuOfI`BU-A+T3$Uxeeay3%qKD>2C@RBy#uyZ4wPSM-#Bv@+PsN;>NI9 zo7U@R#eY(v`yJphYU2Kiz(Z-x4)QtRv!ZWqg7duZF>}Wuj#zvS0Gl9=&jDL7`vPSF z|9peaU(3`>HR$8b+kbGw&SWqep;(lvzj@jCN(XhaLks^Ac>|2TH~>xrgy^AOnKXuR zkeZz?uY?emdK)nRh~4sL-eg_Aq>;HXkK2ME#kQ}U>XY;^?b{)hq+sij2w7{$dV~fk z9<u=Jp>Ppm;{w}hZAsU+jN6ETlX-#VvoCBXqdh~udSpM(!kih7gyp%f@%=RA>tx_r zp%B_`*v9Wrk%oT1_O2({K^l?IB5`iPrcd9XiBDH1+uy@TBIkf!KF>SL$=%6s)xk+E zS1>yq_GB9p+(j%J<l-jc=U!vtG~1G0UqV*#nRgOk*O~l2edBuLwOb`pRasZLAEi=6 z_iN#I;UkftZmg;YSNHxm7#B$Tw}+$8r&2L-D8DA}Opp3Z-b-CRF|??<s<lDm-LID{ zB*rt89v9z;@FJ(w=bIXSe{uStUErabxux1dx$2l{hM`gR!!Sd)lAyF8O*n<#F3cP3 zY_x1yBu+H%F?M`vS$L{bngUMm*ERhhYgYZ1UbqY~LuL-b%?E7Dhc2H3Oa`a0S>$V7 zPD^zx-FC{^YO}}{@Aw;TpEW+G=Xg-9b)aJ2o5&0%)~M+I^8Fn#vS{Dw;^`agv&Gr^ zoo(JkSk^M>wrO#YBorW#Y9Pe)EM>BNt!U#c16v0!JxU7kGLPzZ^8JK*$C_mSwzR~K z)1l2HasVD($Wg>&S#4&CVcdnQ{rsNu?d&vCj5kayZK$}2eyjuGrc&%w-tTVqYDPx~ z|4kPd4|2vJs9!WL-XJ<4T)%AahM7q9tp54=NW|Sb$}}tUuDXc(pr2O#u?{iokP?rb ze6x}qa}KCOzYX)nE*S6WjVt0+dTlQ!!^&-JJtR10er-5=%8Py*Ebhndp#Qn-MC~JJ zQVBf(dlw|MiDX$%1~S5Cz!<%EIKrU1U{0V?Q~@^`QrypHVel8vBhA&B{p`0uD=J0N zZ;MM@<bHJ%=SlD~n2!YM$OqOBhf!fXWsrh`qc^Oj_Ai?5`tZg{c)IMHUD@x^96y%7 zr#?X6VSAP`Ab>hUpRh*sMgW)d`7yxj<gk-TXVi4IHRwnR6X%3^+XoGC+R%lnL;IE7 z%AJW{m88Vt%#qClnR$$5<5`#|;Vajb1AT2wu0D!3l*PfVu3^;cD$3i#dleVP*^Li< zzS;I~ln^0rVas3g6-fT@bzTTwoIs6gV;-&gjt84eL<qgev<e-(X5{V7!M=IY7%Mm` z;Ld2ktJ2(*+Iwe5h|Q3b2Usq6g@}%d5FtVIi10U{d!^8VuGzC(s}tS&;wPfN^H#ri zT<c$9O1%|iL{rH>tk0|FY(=Y=N`hncVnO!B^XrQWV~VX-Mon+E6>WdaeCz&9>vr8H z?v>jkedS+ONsP?;stB}9lzI<*JMq+T!-0)(_(k+Aul)sr^~w6R^$pdm2c!^UBEI19 z$lv{%D={cT;$nVdLt{hcs%M&Qje%42RU|dZ1W$jK7Ivl6L69hu0M<J;q5DXvXVQJu z17bH(O7e*9`9rK&)Q}z6=(m(pHJsKHA5Xs_8l8KQ-wg5MRd{T^;@Zcm6&cK;;y|U# zjtWAO`C*Pl*A&vx*ZKtN8g~+z_o7Vle$8;6d%!VHd@MfQE)+bMOrwW`qPkKJq_CPo zthp;(gxZw`x$%?04#Y$ms{gg`?pL)#AP%tw$%I|~!bUpkk|P*Q1stiZ+z@5iO2CAN zY?>&YWCJ=ngq}KUy|(J7pqRwOViu*HJzeb*<r5TwCeG|`9p?TFfaX0uS(@4=n`Du1 zyVT&LDrJ;@KVCY0QJhaFMhyoRlAFX5f=U2;{Ym<2C~spHg!>EJUXT7|KYB62GtD2# zCdlk_fQ!i>J#lAe|8Rri-?@JqeQ-j=YpV`Xq2T6c3X`wp51OK8m8;pW4oK&O^D*~0 z%vuU1hpiA#rie=C0Gi(fndmTQ!rWmZAvQ_t67=4RRpj@j*<h?^?7P2SIrp^W2%<$- zu(4*Nj^j>|mYI|Ir$1gdL|58Cy8D0L%vSLQ9xjBHY=0epwo{)6!0+8hicu3OmSpyb zfpY*um=4hpcep_^CqND}YR+=b0WW@w9o7+tsxhxRUtL-xwRZ)DqT&P2?2sxaMvL0g zC0~}F{HEH&y!{)l^><M$nrraG)C$n><rkZ!5s&ULCTRSbxdo{m$#0HTPbbBcvWuEy z8K!AJuB>()h~reln6Fz;PgchvPi-yKEFU};Y~xiDH~M+2e7kOtBM;~u%DsNdu^~QQ zfBScr;EcMLnd!Iqy37hG!@*ND<%-<$0vG0M{HYyTkucHH;J{B1!{5XH=0YAScqv$~ zf9YMcm+1A}9ulpqQ9k^3`MD3FVeL6hf#EseZ5<ibewKF*a6AXZM@Wpw2%@?vw`(IY zxEQa(4=7*Ha#BlMj_AB3ePHHL=U*@3XUIE3!u4Uuiwamxv^e@Nx6dAW12>7#EY#z3 zz<1+1vG{tZrRV2yvW~ZRne}GY^^s*s<uQA=Z;Zalnb(>f<RILzPJhZBXc5+Gy9fTR z9>VBA(z{36D|GXB%NI<xR8NWz%a*PhMpi>0_dIF$?D1}n%9A5V#{2!rxBaZhgcHqh zUZS8JWmXa{y(0PCAm3-_Dl`@|r1G9Pu?G^)^iS;dfwK%y#dj?Gvcr=H%do^i@fFv1 zNqngs=YSB0N9pO11)R-he~UypNWRjD^<9UvbIg0V%t9CE=3e>Goy?pBE{P|74R`@| z_bD>FGd8B6G>n<h9=rc4<K4z0$A#ny2-qty{W;0#uEGXhI@RgkWd}taC--8t5yK|T zVbAhmuOR{;ox@{W6DCqt?{!DYaA(S3gRd?#Uzx{is-chrZUhcYx$?6bT4_*AOvGjQ zibXru*N#d3<%vxbtX0C-&&~c*{MYqV{&<Hs;r5NVKMZH$q`<G6KVrANPc7U%G%Gfy zU>u<Pf+t3$ECQ|Yci(USb$YuX?5%DCYL}1|p~i{iigTU=?k;_25$Rfm8MSk@fHCu% zsr^l^totvJXOA<Tc~u{@AvmCM(MTuxjWJ702G#Y|4E9WB3Dx)CSDCGqL}4pnK+7W} zn4@Wj_Fdu=y+e~2p1-#OGQ{jnd#WNqUpG}tlrAp{<}T<B{3<TFmGNog$5L-dQ6tgA zC}^p<ZNxL@C_xwRCY&O#@aE_CU<WS0sMUegS-G%P@C_IrA+$lXf8wFVG}&^42u6Oh z=@ISO-PGbBu6+vhmP+@fR(LSUZa;VX-F0Ybz^ZlRF?wYq%t$7V=nAU*41J643T^qd z*ZnqRe*q+NS4mpLH7WQLlW)1`v^ec+M2nWvq65kKP=zq{TCw?S71@Lcwj((b#_lIg z+DPrp?pRK2A9&g<vu1p(|C$4TqIhaDuvQjECq&VFi*bLVfowNYpAUT9jcM|a-hFuv zh`BwE8ZOsOx<e~DCYKT7=<Xy`KCy;;6f0ST=6mRsx3mQ|7F6!@2cZuApHX;RXCAxe zK@+<_ny{<3)1_VLmMRCU=q{hf<~o=?TWj02^62^pk2Pk^yLH+8O2-UG!Nuqqc5FdZ zgwiIMIm~exufM6x6@1;yzPMq}c41~I{59IwGuYFg!~dS5m%dN`Wo=w_1d6(=9K^&z zJUK%2>`a?11K+e=+RVQ~KtxJ<-EcE>*b1JSGGBzahZY=qR2^}#_2a)EC!De=-G3Cy z-gj1bL?%)0wGUg7j!va~a;1!r?cBsLF8)5BHklrB-?M_*zv*?rGRNHqr5r_ZnS!!K zYQ5%pCG@&P-xl-Xv&wEBCqWI#B&klUaHjd;;?O4lZl!6P#az%x*v_<hZa#8YaN+0P z*2(E8EdQ7c>nqwj2dG|Xk4adDs;dB<d0(%I2?TKtuxmaCn3|xwRZ%=AMDkC;)>GH^ zEAy_+`~|S70<Um!6VSm1`auf*I6@#q_20`pt{R{xzmuecvUvK>&TdN5#ZCQIdmLhh zuXE{YJ#f~D!l1Lf#819GqIJ`LK4OBRcs=Oop||4-_sc&Q(^$ARts|>0JQK5Xb5b;B zaeLz=FTDZn@AY?0@4Xthp$a$s${F6E2ELFiycB&3M;P<CmLl2htOdkgxn2i-^?)#i zFCl`vAuJSSl5jWc282zEAG*7~anj9JpFrfU7hr&VNBRiC>Svx9Ceoh8Q}b_-kM~>A zyX55cT5P)iOB8$BYICM1hQi2|`;>U#V_j9jinVsWkz8UNBSsfD$jQ)T7%@i`)h%i1 z&Q@-gD0zSV%mD#UG0l6jCljz-F%D;XR%C2ymM~Y?zdUD_AYF`CleQRbMFe8o3A$J1 zr;v^3fJT+5YN;Kmmt^p%p$Bhx_16-`vCZp;nX~YCycD)28?%V@D7d-6wD$y*`um2w zMqRDgh73spy*=3eU1i&zXxF91If6Gy_#RM4io`TkRSO&CS=kYibHW<L`v2K834bcR zy-X)P+W$`FIzxor#VApFVY?KiB^0rw#YmKSFCFHF1z#mYjWl6BS((IHduWz*ycsdU zHl|s#O53S1$FzCLUxZaAgI(WDNSNWy5zu1n>BLLv@2822mg6jp>M5;^mpI2i{1fm} z{)1c!x&(Gn5PhJ)UVD)VUcGPy#{8TO<)o^|iJ@a1?_RF3N|aopvO_wsl*d;aD@{nG zS?4ObXRKG<zo8Y(rP}2=cQBtOR#X6mouxT2uy&6Pz7Q2jgNr70m%)D+%Rl*6SD#jY zat_FE-_H3u-{XNbp@zm|^WlUn<R!jDh?$3VmE;aWDJQ6L?D^>8?%^bs(u*~6Nxhco z8`38q6R4x>e#S<KfS-cbv+YY0F>s<vf}~`1QOuZbTbgataLFX-^wrNLR!ArRNq9_A znK2Q4$)T@R^b@94c~#r+gzoU@B86Vsn4Nb&+PimX?SS+T5%zs$?y5D}uuC3CsrtWf zeQvz|XpnM!Qrhq8J{N1ER!AL43iz?BO^M`BI0y7R))E>cOZ{=P`tf_-Huv!HY(%ZA zU!&ZMlfd4}GW}HHiryL<+lSK6<zghRg$+`j1DaSE+wzyRO-f)_^m?<y0+I7KdY`zZ z|M}Ra(N`0qY;#ta>&t8sRYaTAy~ZJHoq*zuE82d#KHT#IT1B(rH)e2G33wcdEr`sQ zAoPNPQ5eB%g*hgi?-1L2>VcDj-^(Tw%6c>9r5gl{S>ZCS;>Lk)7RB3t3&c;9F2o-9 zi|o&-U}mxc;crsbbp_-ZqC)%WN%0-!v()f1J;e{D1&n2TW-nS+STl8!{a3!8Ws@}n zPaPws1UV<GR#NwtgSTs>y`=)5B_?HH5pi6-x1|x)B`&g0dfZ<+*VRA=lI!eD<dyq6 z!Aj(tB-T?M%J`8iNu!hZddV^*CX1;ST7U|!HF7&_RS7LVYzX!Xd4B&BPjZ?QLZs7Y zPx4hXO#ec&p*mPDQGQ>@rU36)Et*<u$!(#y0|D(3+O^tp?g=lM9RUt6H-4a$x(*M0 zQDnjK(pfF6o)IbOeVNELat>HO$aC_~)ngwj<$AAhl$d$z3vy{@GQ*}K?NFiI&{BN# z^K8ZZgkf#0h*P`GiD)>x|6fk5d&C_Qoc|kw(~%HJ0BK~bPP_Yb68_S0-Zo;Tw@eT| zNO&%KS8>zw;aHJTeg==ptg#6m^7<VF8x+?Y*5nO*tNxCDYus;IljXtG`Z?ej1zstb zYzKi|p@Ri%RRwfMwt-tGPd`*H(Iph@dhFkeMEivXqQ|HO4EFJmNJ<~SSnY|jD|cx< z3L2Mh(Kh5TK%Ft{c{G`0wfln7NW5i$8~@S}bNTJ*s_Dk+*V)j^3UAdqSCR})UNINt zfBAqD5$xU{q7y5H**a)<{1PUs@6*6yM_+fl(jgo&C?y5?v2<!3z_EO}`O^a9hjeXV zrqh56cP6Qzgj%(8MW9)@eTx)&F*MErxRXaz6xa|9?FhlioC9c?i0ybyf;ojj_|(~B zsSee9(dHGK&H>RgW$s+rT(N<w*wK15FR~hDpffPA2%-~M?9Q&5F3vs|@-_0Q5Azr$ zQG_BEnfqsdV{B=v44+VdO+Kt3s35)B&jFox&jDUbOyqmRRW4)F6dCg6@nWL-Z>6Nh z&l~Fag16r_pI=olv;ONeR(+r}?sV!oHZx?=$tu*jRvBd2zzhNxIMzu6F^l2@avoCf zkAL_rGaMCi(-gXp*H_iKTbPwIY>n|fUEiH~)1RjoiIyJ&6GCvDgd>*KkmSqGH6;E` zwZFW1YEH+KKvr#xZ-$4XgmE7Hp%W+fSfYN@u0gq)NFEtQp;y8tUne!%pVffw5vk2` ztcZ<qWTRy?2MKPLKXg^g^Pc@gDG~G|aXa&I?LE(zQ|$fEUf?lFoTBfA%-@`GtneTF z+72c7E+w$zhjbzsV4XMjwU>8hfrqmM@9Do)mm>q0&(tIlU!}Zuo+cYjfsEiihdGs^ zc1Fz!;ykY^U980x*1mjE|9rN&B1Yrc(SZ&NebcMoae_<AI0r~U>Ybn$PU%A!EAb;! z-PN?Gwey;od@;t1r|Hg-12wyZtr)k_PK+>juN)GCd1zL|-E+H3Lfl69WUqrf$CXcV z?3!tC)Kv`&(zyB#kx<B+RORMW5|6-RcvB6{O)G!9X+Ep^yW^Ks=m_6buA6ml2nwE* zFK3@y(&jiEy}^A`f9)y{4fRhSlyC}!oBWcbcB-~OdS%`?iXpizL-^dyj7r_|Z`9kX z5175R>$VGjK4LqZWh1>G@^?Alc5%orW9Bi4AguH0h2)Dzzjk0FS!rcp&rFcPi?VG* z=J$su;qwiBzRxochmO)v{3*xrZXy*_PxVp#NKWz=DfTdx)U$%-Ty)dAJlf*1Qj%=W zNJ}Yjg9ZGEnjG!=a=h9ZWuQ5PR(|di^drXequ80)Sq`uk{=V&l!&M*fD2!`A5e2nG z=01$ZGNEpExHNIE9uBI))CN@}zCx0R6rKcvzIk(5T~Xhk_xTn@NG;33mEuXTcna7T z&P06d)=9odHzeC}cixzh<vkX3q>{+QM3^4D#m6K0n2%96-QA7_FM8Lv{GFNQ=Mq;Q zYf62+_nh<LbCS~X&Q<G;A4rGwNh?{X;q84pjz%N3{Q><{1FxIu_t%u;crDU(A7Hru z(j=U<7r8gs9;TFfgg#q(F;<_bg*LCvy_6qVvd_9;XH;J^(8k01K0i-Z?mb20U#UO6 zbO<M%5&1BGGl&IUwzya=<^@t|xN9$8eVrp>-p$iZR<`R#lKC|*In>qJPuM)qwM(L& z^DxH?!^`Efo4P}E=|4haik@0yMq?P7#xxiB9LmGv`Wj8MzLU<p-|z8M57OKr;*2XI z9(KP?hJZr?FG1%NiNK^<sN^{yu0<c)=c{br-K_IO&?NzhjM<&G9LO$=9rDRX$(MgL zha0m7RASo17ncg5)ZG+O-y}xOA<`Dl2NP=an@$&=AicMhF)?)PF>o+myua1W*gD&C z)hx1j{?BKOhT&-K{?zuI;LbbwcCr4EuQ@`lnVB5aW6eifLwEM+QvFZ%aqXYESK9Z{ zolA8z4=8dIUzHoP1mCShj5Yc%Am6MT(+OSE6XW4QwA7{y|KS(BA_S9xnBXAmdfQbU z<6Yq#eiilN{kgR*&OINa(Og`&Q34FC8O3RJ7FGGbrI?dhMSph(nz@x>d}_yBPJhm= zM*N8T#RKq1se<AA%g*^tB^^RuG%JPNny-K+IJ9P&aFVK~X6Pm3SD`*E=KyPw*RuL6 z;|B*PK_`(1;0+!^VG;|Skn<Z<SXu{&DR2k>@aXI^_!rn#>*4|)cLajv67{^h&jAG} za0x)19KP%S3te*#P(xq_C=9g-^3$`Au;t<cE{Xz4*GBPTd_voBn8iZhvMTCFgoC5Q zh{$4;SZtW9v!ssGx0dEn{8~dB-AlG&|9hIPgTD1J-%n!X)1Wi(nNvI9qAOqgDccP* zIxEz=^@6ye9?{IPNKaU+3@mntdOnW7K0j^b_B^#xPiZ?*o!)cqGUiR3f^eBuDa1-L zk*Pn)`yM-lDz0l3Zn<2cn<;ZuDIWR5x<w<~C+`8M^+-2j^@YEAM)TKp1tR1QJjVwy z@rO8EZ6e=c)rpm#O^H#tk^r}?P|ap=8>`yzH_Bl#pGVM1m^I3K5RsHCd@HRGtQcPJ z)RBa<8{0nvniJPzF)*$LH}(6w=#mY5ITUV@@p4<NS;|+bzQtU`cR)cgflAVd9Wo3A z;Komu1zYI^Le@3*5&b44F}m%@FJytUFA*x6f_&pj0(TxvwXl>-&y%byzGn>$%Uq<A zUBSTB182ZLS*vp+o317sydT0r{|oXV0y{%u)Nh=9&bFu=;%3MALE{T8z%`dmmyiGb zIUtW^)^r)d>DxHE6Q>}}QyJCma}dEySW9Hu;{%shS=8hL(=m69HjU<-I56sL(fVag z<vlas$6zD*v@7MSg4cb97zL6tof8W6*m;}E97|%Mp9VM|dli=%%trlL-5Fa8OKtIf z77<JthJAx|A!aoo1i^YDSJz2!oD7I*YUTdJyTcHvn)XaJX;9g-CE$)BmF$aYRRH^I z+EBU+J84F^LyOhg@j|W#*x#Z#7M6nB%;I(K#($^{`AYNZk&gj=bDwE)NrXh083Eks zp(*{)&(7#dpzcQ-JCTs)AJ;thm`v|iD>gl+>W`V#7ZX_ybH%pLd7J(GnT_gnU~T=8 zk%vush4Zi;$-0qIWS#$<&q!J}DlbXa4}JtI!VM!ga<GUPeqd)4m_v0lHtLfO$e8`+ zfDccrgCOQ5C&NsVa+}m>xj8%9EZ4W5I22euRx+SAVP(8dY${SEoYEGo@sx_itgopZ z7~Boq!j^*!BNKV$qMj13I=YD&bL2!Tk7fKB3vQhL0qlCH+@VeX%I+>>iZ^`jru=f* zOZ_ETZp<$ofz~_YFT?o0*m^oXulq)9TWwj?WyV)2Uow`9-tYT`7yw=-yOTD8vF%Kx ze9GkP=|g)%Yj$Kxc<C%(Z^r#QZGWzKiKHrh`g5(K!jLGvdaM)CWrGrFAQ*0}_KC>- zB7X2ozIo?c7?Q-Dp+;S5%<KW-)q1NcQ`C6PhXQ=(b8N-A#<OMz3O-y7v)Jn&=^aLF z*EShu)YcQ_18eI3m{)R_8T!|&8U98%M?)8ruVLhTI#2l-IwupwmkEAw-hd5b2@4mn zGrhK9vAMg%h6o~@brX2m^G2lQ!~;`3ZaeNr^y9YygD7r*?=BARV4}4DXeS@Ke58s} zMLh^jc;)MGgOClB###HxK2VNd`rzOv`zqm$!?IoTpS@2000B)F2S1HqRm8sQ`p*pW zKC<91pMbKiXmIsfhO=?5FujgN@3{NOd(#b1wh`gArng0v*;Z+uZMKFxkMYJ@FR!eW zGW!oZbDskQ7sOeP$><W`%GibO)6$4gY;AJV3_W3aKxsO=bHYu$S181$Em)MVad5PP zSkYH!rs~`D$8S(zhQ8b{1wY~w_SLo(hDQNvbf8e@aTb#;(xXd3L!tb@f8+{q`C!3$ ziVkJMD$`aB&r{hKmg7uhc|%rkJS4e5z4l9Dt&=wD8C~za9<GLG-3Um(*&JxU%zCnB zpmu~K;>aGmdxx#0m-(usoa#keNS=xfVFyW1)`1)MBvzpwPVjhb@0glS_xO8A#`E1& z(39`|oz7I6_fnKeTDeq(RZ@zjaxAtnQT*|rax0!FxL$THdrs+QKWo`?$?eX5LwR>} z4|;cA*CTVh%TeNP=ABtH#N9y7jZ;Im!wQAXA|<ZNleK0)CIqPok1qsSS(~)|241lt zcv0ZZa&x|i!Jk%r@0ZS}0cq2HqE+b7M+=|6gnxa$IKZBnsI_Gc7?PLO-slk4^z9Ax z&!tWoZ3mqLp2bJClL{*5L!8uroqkoH!@IgD3rDwcNlj)EPnJWcHhAyL%KE0E#Y&As z)HGqh&<nGuEh7vJCdE%YzI81z5E%wG_Dx97QUVE=K>GrG;DN!f6sz)M7oZ^^9chkE z^B(hP&;xgDhP8QWy0FT-G<SJh)lK}*hLfFL2ws>Ffy0&&!s}x`dduwRRNwup@$L0J z4?fg2%S;0~?j?!K)(aB_jsW%^pHQpq_AgL(AW5I>7UJp6yV&LJRHJ<(L|P<?yEw`0 zr_&PX{irx|CGYZzNb-+*jht{Xlh$#Zjm!JqS-VecQZah^Ss@n8{XdgrRb=`17TZ*b z!QBh5x@RM2e%RW*FrS%638vO&iYy4}OaJv62uXc1m$CO)by78jSpP9`;uQSGK@2*U zi~(hJInWNu@`FD-n|>L@#g&ap{pu#6R;t{lUM*qPW0@ggXjxe{X7NJIcr>RXM+^2| z6)e>A+`8o)pxM2q+M}LcX*w|BHqtS2(#mU*=7a39tc=i8E4Og>tnd5MJ}k&Z(q4wJ zpx}%G>U=*FL9IR23nNJek8Sk*!CAaI^u8U5Q6bu|nL`k^NyB-~H2Lc6Q;iPID@&XN z-5iWJ$G4mXv0fE|gEr46vo)h4#*lyHOq9hF-q9}urL{L>+VV(zD+_wPKOU~;e`Crz z(UA0p7Q#j!Y1|K9ade|DL~h$}#kgGk5Mk8QekDw2U<;|Sk}q1_U7x<`(4fFe<dogv zvY9F?8_O^-gEQ2_#fKC**wYdHDcghwjhIQEQOx{RCP7|e!UPkj?9{*%&TBB9p?|l; zz&y&rS-e?8B>mF?3aJk&tf=8nds&>j_eKs7usu%*JshH|z|jdGZ0!{6kr?)N0QcFh z{*#Q&1Vb>on^$`Mpi1jnGpe|yjd_-8m;qER(i+H2f-zTB8?kCCw-A+{odX8fev9Gd zCRRP{Q6~Du+}uY)(2WFG92vE?PyOK^)n0k6Ry62zJmg=qlAJXDIVD%H_0>5*{S35+ HKA-sy289vG literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/no_default.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/no_default.gif new file mode 100644 index 0000000000000000000000000000000000000000..54e01ef374daf8ebf7448fcf216084be2fe591ef GIT binary patch literal 209 zcmV;?051PWNk%w1VH5xq0J9GO>gML!+}XUlyv4`D!oI-v^Yq8a#PICx#>c|S%*e#X z!qnH)zr4Ty|NptUx&QzFA^8LW000jFEC2ui02BZe000Dj@X5IpbB?Js`wSN*Vocyk z$f$~mH>|4wG#{+WO<_Kv?cfCh<FW9GW{sDlVq7*FMT}*nI3zKHCqN+TWu8w4q3|Ra z$Ik^avGO_$;OC*OSXse!)n*0P!Z>aMWB_I=Lk|Hf3kzH;I}b`t4g($rk_IP;Ze5R= L6(JfN9uWXLRX|=? literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/options.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/options.gif new file mode 100644 index 0000000000000000000000000000000000000000..4daca255e335a62935df315a52e6fcc6899782cd GIT binary patch literal 219 zcmV<103`oMNk%w1VHf}x0J8u9|NsB{`TO_x_w(`d@9*#A>GbI6=-u7j+1c5|)b_Q^ z_rbxzyu7@XxcPpm`gWxIA^8LV2LS&7EC2ui02lxl000Dt5XecZy*SUsyZ?tKO571t zL8`87x|oz9%yezf?<vW5UmpV<&*wWF1g9afw;&{!#DxrC7+9~3hgRFTUSGkgcTm`B z3**7dDIP1finJQRmJb{c2SL7|2iju^4+(aCYy^mji3*C1hJTHbk_3+ilb48<n3tNH Vl8>H~prMhE45z56s;Z9>06X`<ZWRCk literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/options_over.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/options_over.gif new file mode 100644 index 0000000000000000000000000000000000000000..3b5262a4a75809c72db71f7c544d9ea9a705535f GIT binary patch literal 283 zcmZ?wbhEHblwc5NIKsg2|NsA=KYzY||Ng~`7q_1MxO?~R#oMoM-n@DG`pctNUL3sm z{P4vW2QIumdGh4SLm&3+*)wm?r|ym4s+a#NTk@NM2%z|rg@K*nKZ6cPEyzv=))@*4 zeJPpqGOX-!UhiY|I#ZHs?jIvn^Zx%HH^mLi{{%diOt3KeHR(cA180HL`V)%6r;pk# zTeME%rvyvK^%E(3`y7Nn$ox2!uwK$*M_k`NryBxQO`QDf3C#sU!b02~g>5c<e8PNv z{q22?&D?XiTW3rwn7erX#J<IIxmIy4WmvI(&g#``H!R+?Y3Ww(?R%E)*}s3O{^29K I6BHS&0Re`7VE_OC literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/images/optionsbg.gif b/oss/joomla/trunk/administrator/components/com_xmap/images/optionsbg.gif new file mode 100644 index 0000000000000000000000000000000000000000..6d2959ea099c92aa8162ad9a92165ec7913ad641 GIT binary patch literal 59 zcmZ?wbh9u|WMmL#IK<AdXV0F`A3vWtbLQRqcfWuBe)aOz_wV2T|NpPU00ba449pxJ O+oazqpJEbXum%8#AsgBN literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/administrator/components/com_xmap/index.html b/oss/joomla/trunk/administrator/components/com_xmap/index.html new file mode 100644 index 00000000..88a5baf7 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/index.html @@ -0,0 +1,4 @@ +<html> +<body bgcolor="#FFFFFF"> +</body> +</html> \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/install.xmap.php b/oss/joomla/trunk/administrator/components/com_xmap/install.xmap.php new file mode 100644 index 00000000..0090ee72 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/install.xmap.php @@ -0,0 +1,82 @@ +<?php +/** + * $Id: install.xmap.php 82 2010-01-01 11:18:15Z guilleva $ + * $LastChangedDate: 2010-01-01 05:18:15 -0600 (vie, 01 ene 2010) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * a sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +// load language file +$pathLangFile = JPATH_ADMINISTRATOR.DS.'components'.DS.'com_xmap'.DS.'language'.DS; +$lang =& JFactory::getLanguage(); +$tmp_lng = strtolower($lang->getBackwardLang()); + ?> + <div align="center"> + <table border="0" width="90%"> + <tr> + <td width="18%"><u><b>Name:</b></u></td> + <td width="80%"><b>Xmap 1.2.7 Stable</b></td> + </tr> + <tr> + <td width="18%"><u><b>Description:</b></u></td> + <td width="80%"><b>Xmap is a sitemap component for Joomla! Based on <a target="_blank" href="http://www.ko-ca.com">Joomap</a> by Daniel Grothe.</b></td> + </tr> + + <td width="18%"><u><b>Author:</b></u></td> + <td width="80%"><b>2010 by <a target="_blank" href="http://www.joomla.vargas.co.cr/">Guillermo Vargas</a>.</b></td> + </tr> + <tr> + <td width="18%"><u><b>License:</b></u></td> + <td width="80%"><b>Released under the terms and conditions of the <a href="http://www.gnu.org/licenses/gpl-1.0.html">GNU General Public License</a>.</b></td> + </tr> + <tr> + <tr> + <td width="18%"><u><b>Website:</b></u></td> + <td width="80%"><b><a target="_blank" href="http://joomla.vargas.co.cr">http://joomla.vargas.co.cr/</a></b></td> + </tr> + <tr> + <td width="18%"><u><b>Installation Process:</b></u></td> + <td width="80%" rowspan="2"><b> + <?php + if ( file_exists( $pathLangFile . $tmp_lng . '.php' )){ + include_once( $pathLangFile . $tmp_lng . '.php' ); + }else{ + include_once( $pathLangFile . $tmp_lng . '.php' ); + } + + $live_site = substr_replace(JURI::root(), "", -1, 1); + + include( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_xmap'.DS.'classes'.DS.'XmapConfig.php' ); + + echo '<table>'; + echo '<tr><td><img src="',$live_site,'/administrator/components/com_xmap/images/logo.jpg" /></td>'; + echo '<td>'; + echo '<table class="adminlist" style="width:auto"><tr class="row0"><td>→</td><td>'."\n"; + + XmapConfig::create(); + + echo '</td></tr>'."\n"; + + echo "</table></td>\n"; + echo "</tr>"; + ?> </b> + <font color="green"><b>Installation completed.</b><br /> + <br> </br> + <font color="green"><b>Xmap 1.2.7 has been installed successfully! Thank you for using Xmap! Settings can be configured in the <a href="index2.php?option=com_xmap">→ component menu</a>!<br /></b><br /> + <br> </br></td> + </tr> + <tr> + <td> </td> + </tr> + <tr> + <td width="100%" colspan="2"> + <p><b><font style="color:#008000;">Please periodically review our project's site for changes or new versions for this program.</font></b> + </td> + </tr> + </table> + </div> \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/arabic.php b/oss/joomla/trunk/administrator/components/com_xmap/language/arabic.php new file mode 100644 index 00000000..4e784213 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/arabic.php @@ -0,0 +1,186 @@ +<?php +/** + * $Id: arabic.php 41 2009-07-23 20:50:14Z guilleva $ + * $LastChangedDate: 2009-07-23 14:50:14 -0600 (jue, 23 jul 2009) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * A sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html + * Translated By : Mohammad Alkhuzzi mohd.khuzzi@gmail.com +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_OPTIONS', 'خيارات العرض'); + define('_XMAP_CFG_CSS_CLASSNAME', 'CSS Classname'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'توسعة تصنيفات المحتويات'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'توسعة أقسام المحتويات'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'عرض عناوين القوائم'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'عدد الإعمدة'); + define('_XMAP_EX_LINK', 'توضيح الروابط الخارجية'); + define('_XMAP_CFG_CLICK_HERE', 'إضغط هنا'); + define('_XMAP_CFG_GOOGLE_MAP', 'خريطة الموقع لقوقل'); + define('_XMAP_EXCLUDE_MENU', 'إستثناء القوائم ذات الأرقام'); + define('_XMAP_TAB_DISPLAY', 'عرض'); + define('_XMAP_TAB_MENUS', 'قوائم'); + define('_XMAP_CFG_WRITEABLE', 'قابل للكتابة'); + define('_XMAP_CFG_UNWRITEABLE', 'غير قابل للكتابة'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'تغييره لغير قابل للكتابة بعد الحفظ'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'تجاوز حماية الكتابة خلال الحفظ'); + define('_XMAP_GOOGLE_LINK', 'رابط قوقل'); + define('_XMAP_CFG_INCLUDE_LINK', 'تضمين روابط للكتابة'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'حدد أرقام القوائم التي لا تريد تضمينها في خريطة الموقع.<br /><strong>ملاحظة:</strong><br />فرق بين الأرقام بفاصلة!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'حدد ترتيب عرض القوائم'); + define('_XMAP_CFG_MENU_SHOW', 'عرض'); + define('_XMAP_CFG_MENU_REORDER', 'إعادة ترتيب'); + define('_XMAP_CFG_MENU_ORDER', 'ترتيب'); + define('_XMAP_CFG_MENU_NAME', 'إسم القائمة'); + define('_XMAP_CFG_DISABLE', 'إضغط للتعطيل'); + define('_XMAP_CFG_ENABLE', 'إضغط للتفعيل'); + define('_XMAP_SHOW', 'عرض'); + define('_XMAP_NO_SHOW', 'عدم عرض'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'حفظ'); + define('_XMAP_TOOLBAR_CANCEL', 'إلغاء'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', 'ملف اللغة [ %s ] غير موجود, أعرض ملف اللغة الإفتراضي: الإنجليزي<br />'); + define('_XMAP_ERR_CONF_SAVE', 'خطأ: فشل حفظ الإعدادات.'); + define('_XMAP_ERR_NO_CREATE', 'خطأ: غير قادر على إنشاء جدول الإعدادات.'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'خطأ: غير قادر على إدخال الإعدادات الإفتراضية.'); + define('_XMAP_ERR_NO_PREV_BU', 'تحذير: غير قادر على حذف النسخة الإحتياطية السابقة'); + define('_XMAP_ERR_NO_BACKUP', 'خطأ: غير قادر على إنشاء نسخة إحتياطية.'); + define('_XMAP_ERR_NO_DROP_DB', 'خطأ: غير قادر على حذف جدول الإعدادات'); + define('_XMAP_ERR_NO_SETTINGS', 'خطأ: غير قادر على تحميل الإعدادات من قاعدة البيانات: <a href="%s">إنشاء جدول الإعدادات</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'الإعدادات أسترجعت'); + define('_XMAP_MSG_SET_BACKEDUP', 'الإعدادات حفظت'); + define('_XMAP_MSG_SET_DB_CREATED', 'جدول الإعدادات أنشيء'); + define('_XMAP_MSG_SET_DEF_INSERT', 'الإعدادات الإفتراضية أدخلت'); + define('_XMAP_MSG_SET_DB_DROPPED','جداول Xmap حفظت!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'تعديل التملبت'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'الرابط يفتح صفحة جديدة'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'عرض في الموقع'); + define('_XMAP_CFG_MENU_SHOW_XML', 'عرض في خريطة ال XML'); + define('_XMAP_CFG_MENU_PRIORITY', 'الأهمية'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'تغيير التردد'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'دائماً'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'كل ساعة'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'كل يوم'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'كل أسبوع'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'كل شهر'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'كل سنة'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'أبداً'); + + define('_XMAP_TIT_SETTINGS_OF', 'الإعدادات لـ %s'); + define('_XMAP_TAB_SITEMAPS', 'خرائط الموقع'); + define('_XMAP_MSG_NO_SITEMAPS', 'لم يتم إنشاء خريطة الموقع حتى الآن'); + define('_XMAP_MSG_NO_SITEMAP', 'خريطة الموقع هذه غير متوفرة'); + define('_XMAP_MSG_LOADING_SETTINGS', 'تحميل الإعدادات...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'خطأ. لا يمك تحميل خريطة الموقع'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'خطأ. لا يمكن حفظ خصائص خريطة الموقع.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'خطأ. لا يمكن مسح كاش خريطة الموقع'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'لا يمكن حذف خريطة الموقع الإفتراضية!'); + define('_XMAP_MSG_CACHE_CLEANED', 'تم مسح الكاش!'); + define('_XMAP_CHARSET', 'UTF-8'); + define('_XMAP_SITEMAP_ID', 'رقم خريطة الموقع'); + define('_XMAP_ADD_SITEMAP', 'إضافة خريطة موقع'); + define('_XMAP_NAME_NEW_SITEMAP', 'خريطة موقع جديدة'); + define('_XMAP_DELETE_SITEMAP', 'حذف'); + define('_XMAP_SETTINGS_SITEMAP', 'الإعدادات'); + define('_XMAP_COPY_SITEMAP', 'نسخ'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'تحديد كإفتراضي'); + define('_XMAP_EDIT_MENU', 'خيارات'); + define('_XMAP_DELETE_MENU', 'حذف'); + define('_XMAP_CLEAR_CACHE', 'مسح الكاش'); + define('_XMAP_MOVEUP_MENU', 'أعلى'); + define('_XMAP_MOVEDOWN_MENU', 'أسفل'); + define('_XMAP_ADD_MENU', 'إضافة قوائم'); + define('_XMAP_COPY_OF', 'نسخ من %s'); + define('_XMAP_INFO_LAST_VISIT', 'آخر زيارة'); + define('_XMAP_INFO_COUNT_VIEWS', 'عدد الزيارات'); + define('_XMAP_INFO_TOTAL_LINKS', 'عدد الروابط'); + define('_XMAP_CFG_URLS', 'رابط خريطة الموقع'); + define('_XMAP_XML_LINK_TIP', 'نسخ الرابط و تسليمه إلى قوقل و ياهو'); + define('_XMAP_HTML_LINK_TIP', 'هذا هو رابط خريطة الموقع. بإمكانك إستخدامه لإنشاء عناصر جديدة في القوائم.'); + define('_XMAP_CFG_XML_MAP', 'خريطة موقع XML'); + define('_XMAP_CFG_HTML_MAP', 'خريطة موقع HTML'); + define('_XMAP_XML_LINK', 'رابط قوقل'); + define('_XMAP_CFG_XML_MAP_TIP', 'تم إنشاء ملف XML لمحركات البحث'); + define('_XMAP_ADD', 'حفظ'); + define('_XMAP_CANCEL', 'إلغاء'); + define('_XMAP_LOADING', 'تحميل...'); + define('_XMAP_CACHE', 'كاش'); + define('_XMAP_USE_CACHE', 'إستخدام الكاش'); + define('_XMAP_CACHE_LIFE_TIME', 'عمر الكاش'); + define('_XMAP_NEVER_VISITED', 'أبداً'); + + // New on Xmap 1.1 beta 1 + define('_XMAP_PLUGINS','إضافات'); + define( '_XMAP_INSTALL_3PD_WARN', 'تحذير: تركيب إضافات من طرف ثالث ممكن أن يسبب لك مشاكل أمنية.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'تركيب إضافة برمجية'); + define('_XMAP_UNKNOWN_AUTHOR','ناشر غير معروف'); + define('_XMAP_PLUGIN_VERSION','النسخة %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','تركيب'); + define('_XMAP_TAB_EXTENSIONS','الإضافات'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','الإضافة المخزنة'); + define('_XMAP_NO_PLUGINS_INSTALLED','لم يتم تركيب إضافات معدلة'); + define('_XMAP_AUTHOR','الناشر'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','هل أنت متأكد من حذف خريطة الموقع هذه؟'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','هل أنت متأكد من حذف هذه الإضافة البرمجية؟'); + define('_XMAP_UNINSTALL','إلغاء التركيب'); + define('_XMAP_EXT_PUBLISHED','تم النشر'); + define('_XMAP_EXT_UNPUBLISHED','ألغي النشر'); + define('_XMAP_PLUGIN_OPTIONS','خيارات'); + define('_XMAP_EXT_INSTALLED_MSG','تم تركيب الإضافة البرمجية بنجاح, رجاءاً راجع خياراتها ثم قم بنشرها.'); + define('_XMAP_CONTINUE','الإستمرار'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','لا تشمل ال CSS مع خريطة الموقع'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','إستخدم عرض ال XML الكلاسيكي لخريطة الموقع'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','فضلاً أختر مجلد'); + define('_XMAP_UPLOAD_PKG_FILE','رفع ملف الباقة'); + define('_XMAP_UPLOAD_AND_INSTALL','رفع الملف & تركيب'); + define('_XMAP_INSTALL_F_DIRECTORY','التركيب من مجلد'); + define('_XMAP_INSTALL_DIRECTORY','مجلد التركيب'); + define('_XMAP_INSTALL','تركيب'); + define('_XMAP_WRITEABLE','قابل للكتابة'); + define('_XMAP_UNWRITEABLE','غير قابل للكتابة'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','ضغط'); + define('_XMAP_USE_COMPRESSION','ضغط ملف ال XML لتقليل كمية استهلاك الباندوث'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/bulgarian.php b/oss/joomla/trunk/administrator/components/com_xmap/language/bulgarian.php new file mode 100644 index 00000000..11e18704 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/bulgarian.php @@ -0,0 +1,183 @@ +<?php +/* @package xmap + * @author Guillermo Vargas + * @email guille@vargas.co.cr + * @translator webg, http://www.seo.webg.org/ + */ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_COM_TITLE', 'Xmap Конфигуриране'); + define('_XMAP_CFG_OPTIONS', 'Външен вид'); + define('_XMAP_CFG_CSS_CLASSNAME', 'Име на CSS-клас'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'Разшири категориите на съдържанието'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'Разшири секциите на съдържанието'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Покажи заглавията в менюто'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Брой колони'); + define('_XMAP_EX_LINK', 'Маркирай вътрешните връзки'); + define('_XMAP_CFG_CLICK_HERE', 'Кликни тук'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google карта на сайта'); + define('_XMAP_EXCLUDE_MENU', 'Не включвай ID на менюто'); + define('_XMAP_TAB_DISPLAY', 'Покажи'); + define('_XMAP_TAB_MENUS', 'Менюта'); + define('_XMAP_CFG_WRITEABLE', 'Запис разрешен'); + define('_XMAP_CFG_UNWRITEABLE', 'Запис забранен'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'След запис маркирай като [ <span style="color: red;">заключен</span> ]'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'При запис пренебрегва забраната за записване'); + define('_XMAP_GOOGLE_LINK', 'Google-връзка'); + define('_XMAP_CFG_INCLUDE_LINK', 'Невидим линк към автора'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Посочете ID-то на менютата, които не искате да бъдат включени в картата.<br /><strong>Забележка</strong><br />Разделете ID-тата със запетая!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Настройка за реда на показване на менютата'); + define('_XMAP_CFG_MENU_SHOW', 'Покажи'); + define('_XMAP_CFG_MENU_REORDER', 'Пренареждане'); + define('_XMAP_CFG_MENU_ORDER', 'Подредба'); + define('_XMAP_CFG_MENU_NAME', 'Име на менюто'); + define('_XMAP_CFG_DISABLE', 'Кликни за да го изключиш'); + define('_XMAP_CFG_ENABLE', 'Кликни за да го включиш'); + define('_XMAP_SHOW', 'Покажи'); + define('_XMAP_NO_SHOW', 'Не показвай'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Запази'); + define('_XMAP_TOOLBAR_CANCEL', 'Отказ'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', 'Езиковия файл [ %s ] не е открит, включен е езика по подразбиране: english<br />'); + define('_XMAP_ERR_CONF_SAVE', '<h2>ГРЕШКА: Failed to save the configuration.</h2>'); + define('_XMAP_ERR_NO_CREATE', 'ГРЕШКА: Неможе да създаде таблицата с настройки'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'ГРЕШКА: Неможе да включи настройките по подразбиране'); + define('_XMAP_ERR_NO_PREV_BU', 'ВНИМАНИЕ: Неможе да възстанови предишен бекъп'); + define('_XMAP_ERR_NO_BACKUP', 'ГРЕШКА: Неможе да създаде бекъп'); + define('_XMAP_ERR_NO_DROP_DB', 'ГРЕШКА: Неможе да изтрие таблицата с настройки'); + define('_XMAP_ERR_NO_SETTINGS', 'ГРЕШКА: Неможе да включи настройките от БД: <a href="%s">Създаване на таблица с настройки</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Настройките са възстановени'); + define('_XMAP_MSG_SET_BACKEDUP', 'Настройките са запазени'); + define('_XMAP_MSG_SET_DB_CREATED', 'Таблицата с настройки е създадена'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Включени са настройките по подразбиране'); + define('_XMAP_MSG_SET_DB_DROPPED','Xmap таблиците са запазени!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Редакция на шаблона'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Отваря се връзката в нов прозорец'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Покажи в HTML формат'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Покажи в XML формат'); + define('_XMAP_CFG_MENU_PRIORITY', 'Приоритет'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Промени честотата'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Винаги'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Почасово'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Ежедневно'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Седмично'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Месечно'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Годишно'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Никога'); + + define('_XMAP_TIT_SETTINGS_OF', 'Настройки за %s'); + define('_XMAP_TAB_SITEMAPS', 'Карти'); + define('_XMAP_MSG_NO_SITEMAPS', 'Все още нямате създадени карти'); + define('_XMAP_MSG_NO_SITEMAP', 'Тази карта не съществува'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Зареждане на настройките...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Грешка. Неможе да зареди картата'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Грешка. Неможе да запази приоритета на картата.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Грешка. Неможе да изчисти кеша на картата'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Неможе да изтрие подразбиращата се карта!'); + define('_XMAP_MSG_CACHE_CLEANED', 'Кешът е изчистен!'); + define('_XMAP_CHARSET', 'utf-8'); + define('_XMAP_SITEMAP_ID', 'ID на Картата'); + define('_XMAP_ADD_SITEMAP', 'Добави Карта'); + define('_XMAP_NAME_NEW_SITEMAP', 'Нова Карта'); + define('_XMAP_DELETE_SITEMAP', 'Изтрий'); + define('_XMAP_SETTINGS_SITEMAP', 'Настройки'); + define('_XMAP_COPY_SITEMAP', 'Копирай'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Добави по подразбиране'); + define('_XMAP_EDIT_MENU', 'Опции'); + define('_XMAP_DELETE_MENU', 'Изтрий'); + define('_XMAP_CLEAR_CACHE', 'Изчисти кеша'); + define('_XMAP_MOVEUP_MENU', 'Нагоре'); + define('_XMAP_MOVEDOWN_MENU', 'Надолу'); + define('_XMAP_ADD_MENU', 'Добави менюта'); + define('_XMAP_COPY_OF', 'Копиране на %s'); + define('_XMAP_INFO_LAST_VISIT', 'Последно посещение'); + define('_XMAP_INFO_COUNT_VIEWS', 'Брой посещения'); + define('_XMAP_INFO_TOTAL_LINKS', 'Брой линкове'); + define('_XMAP_CFG_URLS', 'URL на Картата'); + define('_XMAP_XML_LINK_TIP', 'Копирай линка и го добави в Google и Yahoo'); + define('_XMAP_HTML_LINK_TIP', 'Това е URL-то на картата. Може да го използвате за добавяне на артикули към менюто.'); + define('_XMAP_CFG_XML_MAP', 'XML Карта'); + define('_XMAP_CFG_HTML_MAP', 'HTML Карта'); + define('_XMAP_XML_LINK', 'Googlelink'); + define('_XMAP_CFG_XML_MAP_TIP', 'The XML файлът генериран за търсачките'); + define('_XMAP_ADD', 'Запази'); + define('_XMAP_CANCEL', 'Отказ'); + define('_XMAP_LOADING', 'Зареждане...'); + define('_XMAP_CACHE', 'Кеш'); + define('_XMAP_USE_CACHE', 'Използване на кеша'); + define('_XMAP_CACHE_LIFE_TIME', 'Живот на кеша'); + define('_XMAP_NEVER_VISITED', 'Никога'); + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/chinese.php b/oss/joomla/trunk/administrator/components/com_xmap/language/chinese.php new file mode 100644 index 00000000..e159e0a8 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/chinese.php @@ -0,0 +1,184 @@ +<?php +/** + * @package Xmap + * @author: Guillermo Vargas +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_COM_TITLE', 'Xmap 设置'); + define('_XMAP_CFG_OPTIONS', '显示选项'); + define('_XMAP_CFG_CSS_CLASSNAME', 'CSS Classname'); + define('_XMAP_CFG_EXPAND_CATEGORIES', '展开内容分类'); + define('_XMAP_CFG_EXPAND_SECTIONS', '展开内容单元'); + define('_XMAP_CFG_SHOW_MENU_TITLES', '显示菜单标题'); + define('_XMAP_CFG_NUMBER_COLUMNS', '栏数'); + define('_XMAP_EX_LINK', '外部链接标记'); + define('_XMAP_CFG_CLICK_HERE', '点击这里'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google Sitemap'); + define('_XMAP_EXCLUDE_MENU', '排除菜单 IDs'); + define('_XMAP_TAB_DISPLAY', '显示'); + define('_XMAP_TAB_MENUS', '菜单'); + define('_XMAP_CFG_WRITEABLE', '可写'); + define('_XMAP_CFG_UNWRITEABLE', '不可写'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', '保存后更改为不可写'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', '保存时不考虑写保护'); + define('_XMAP_GOOGLE_LINK', 'Googlelink'); + define('_XMAP_CFG_INCLUDE_LINK', '链接到作者为不可见'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', '选择你不想包含在网站地图中的菜单 IDs.<br /><strong>注</strong><br />每个 IDs 用逗号隔开!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', '设置菜单显示顺序'); + define('_XMAP_CFG_MENU_SHOW', '显示'); + define('_XMAP_CFG_MENU_REORDER', '重排序'); + define('_XMAP_CFG_MENU_ORDER', '排序'); + define('_XMAP_CFG_MENU_NAME', '菜单名'); + define('_XMAP_CFG_DISABLE', '点击禁用'); + define('_XMAP_CFG_ENABLE', '点击启用'); + define('_XMAP_SHOW', '显示'); + define('_XMAP_NO_SHOW', '不显示'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', '保存'); + define('_XMAP_TOOLBAR_CANCEL', '取消'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', 'Language file [ %s ] not found, loaded default language: english<br />'); + define('_XMAP_ERR_CONF_SAVE', 'ERROR: Failed to save the configuration.'); + define('_XMAP_ERR_NO_CREATE', 'ERROR: Not able to create Settings table'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'ERROR: Not able to insert default Settings'); + define('_XMAP_ERR_NO_PREV_BU', 'WARNING: Not able to drop previous backup'); + define('_XMAP_ERR_NO_BACKUP', 'ERROR: Not able to create backup'); + define('_XMAP_ERR_NO_DROP_DB', 'ERROR: Not able to drop Settings table'); + define('_XMAP_ERR_NO_SETTINGS', 'ERROR: Unable to load Settings from Database: <a href="%s">Create Settings table</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', '设置恢复'); + define('_XMAP_MSG_SET_BACKEDUP', '设置已保存'); + define('_XMAP_MSG_SET_DB_CREATED', '设置表已经创建'); + define('_XMAP_MSG_SET_DEF_INSERT', '默认设置已插入'); + define('_XMAP_MSG_SET_DB_DROPPED','Xmap 表已保存!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', '编辑模板'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', '链接在新窗口打开'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', '在站内显示'); + define('_XMAP_CFG_MENU_SHOW_XML', '在 XML Sitemap 显示'); + define('_XMAP_CFG_MENU_PRIORITY', '优先'); + define('_XMAP_CFG_MENU_CHANGEFREQ', '改变频率'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', '总是'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', '小时'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', '天'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', '星期'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', '月'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', '年'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', '从不'); + + define('_XMAP_TIT_SETTINGS_OF', '%s 个性化选项'); + define('_XMAP_TAB_SITEMAPS', '网站地图'); + define('_XMAP_MSG_NO_SITEMAPS', '还没有创建网站地图'); + define('_XMAP_MSG_NO_SITEMAP', '此 sitemap 不可用'); + define('_XMAP_MSG_LOADING_SETTINGS', '载入个性化选项...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', '错误. 不能载入网站地图'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', '错误. 不能保存网站地图属性.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', '错误. 不能清除网站地图缓存'); + define('_XMAP_ERROR_DELETE_DEFAULT', '不能删除默认网站地图!'); + define('_XMAP_MSG_CACHE_CLEANED', '缓存已经清除!'); + define('_XMAP_CHARSET', 'utf-8'); + define('_XMAP_SITEMAP_ID', '网站地图 ID'); + define('_XMAP_ADD_SITEMAP', '添加网站地图'); + define('_XMAP_NAME_NEW_SITEMAP', '新建网站地图'); + define('_XMAP_DELETE_SITEMAP', '删除'); + define('_XMAP_SETTINGS_SITEMAP', '个性化选项'); + define('_XMAP_COPY_SITEMAP', '复制'); + define('_XMAP_SITEMAP_SET_DEFAULT', '设为默认'); + define('_XMAP_EDIT_MENU', '选项'); + define('_XMAP_DELETE_MENU', '删除'); + define('_XMAP_CLEAR_CACHE', '清除缓存'); + define('_XMAP_MOVEUP_MENU', '上移'); + define('_XMAP_MOVEDOWN_MENU', '下移'); + define('_XMAP_ADD_MENU', '添加菜单'); + define('_XMAP_COPY_OF', '复制 %s'); + define('_XMAP_INFO_LAST_VISIT', '最后访问'); + define('_XMAP_INFO_COUNT_VIEWS', '访问数'); + define('_XMAP_INFO_TOTAL_LINKS', '链接数'); + define('_XMAP_CFG_URLS', '网站地图 URL'); + define('_XMAP_XML_LINK_TIP', '复制链接并提交到 Google 和 Yahoo'); + define('_XMAP_HTML_LINK_TIP', '这是网站地图的 URL. 你可以用来创建一个菜单项目.'); + define('_XMAP_CFG_XML_MAP', 'XML 网站地图'); + define('_XMAP_CFG_HTML_MAP', 'HTML 网站地图'); + define('_XMAP_XML_LINK', 'Googlelink'); + define('_XMAP_CFG_XML_MAP_TIP', '为搜索引擎生成 XML 文件'); + define('_XMAP_ADD', '保存'); + define('_XMAP_CANCEL', '取消'); + define('_XMAP_LOADING', '载入...'); + define('_XMAP_CACHE', '缓存'); + define('_XMAP_USE_CACHE', '使用缓存'); + define('_XMAP_CACHE_LIFE_TIME', '缓存有效期'); + define('_XMAP_NEVER_VISITED', '从不'); + + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/dutch.php b/oss/joomla/trunk/administrator/components/com_xmap/language/dutch.php new file mode 100644 index 00000000..df9e77b2 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/dutch.php @@ -0,0 +1,188 @@ +<?php +/* @package Xmap + * @author Guillermo Vargas, http://joomla.vargas.co.cr/ + * @email guille@vargas.co.cr + * @translator Arjan Menger, http://joomla.taalbestand.nl/ + * @email arjan@taalbestand.nl + */ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1 ); + + // -- Really Important -------- + define('_XMAP_CHARSET','ISO-8859-1'); + + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_COM_TITLE', 'Xmap Instellingen'); + define('_XMAP_CFG_OPTIONS', 'Weergave-opties'); + define('_XMAP_CFG_CSS_CLASSNAME', 'CSS Classnaam'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'Content categorieën uitvouwen'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'Content sections uitvouwen'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Menutitels tonen'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Aantal kolommen'); + define('_XMAP_EX_LINK', 'Externe links markeren'); + define('_XMAP_CFG_CLICK_HERE', 'Klik hier'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google Sitemap'); + define('_XMAP_EXCLUDE_MENU', 'Menu ID\'s uitsluiten'); + define('_XMAP_TAB_DISPLAY', 'Weergave'); + define('_XMAP_TAB_MENUS', 'Menu\'s'); + define('_XMAP_CFG_WRITEABLE', 'Schrijfbaar'); + define('_XMAP_CFG_UNWRITEABLE', 'Onschrijfbaar'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Onschrijfbaar maken na opslaan'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Schrijfbescherming opheffen tijdens opslaan'); + define('_XMAP_GOOGLE_LINK', 'Google link'); + define('_XMAP_CFG_INCLUDE_LINK', 'Link naar auteur (Powered by ..)'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Specificeer menu ID\'s die je niet in de sitemap wilt invoegen.<br /><strong>NOTITIE</strong><br />Scheid ID\'s met een komma!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Set Menu Display Order'); + define('_XMAP_CFG_MENU_SHOW', 'Tonen'); + define('_XMAP_CFG_MENU_REORDER', 'Herordenen'); + define('_XMAP_CFG_MENU_ORDER', 'Ordenen'); + define('_XMAP_CFG_MENU_NAME', 'Menu naam'); + define('_XMAP_CFG_DISABLE', 'Klik om uit te schakelen'); + define('_XMAP_CFG_ENABLE', 'Klik om in te schakelen'); + define('_XMAP_SHOW', 'Tonen'); + define('_XMAP_NO_SHOW', 'Niet tonen'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Opslaan'); + define('_XMAP_TOOLBAR_CANCEL', 'Annuleren'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', 'Taalbestand [ %s ] niet gevonden, de standaard taal wordt geladen: english<br />'); + define('_XMAP_ERR_CONF_SAVE', 'FOUT: De instellingen konden niet worden opgeslagen.'); + define('_XMAP_ERR_NO_CREATE', 'FOUT: De instellingen tabel kon niet worden aangemaakt'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'FOUT: De standaard instellingen konden niet ingevoegd worden'); + define('_XMAP_ERR_NO_PREV_BU', 'WAARSCHUWING: De vorige backup kon niet worden verwijderd'); + define('_XMAP_ERR_NO_BACKUP', 'FOUT: Backup kon niet worden gemaakt'); + define('_XMAP_ERR_NO_DROP_DB', 'FOUT: De instellingen tabel kon niet worden verwijderd'); + define('_XMAP_ERR_NO_SETTINGS', 'FOUT: De instellingen konden niet vanuit de database worden geladen: <a href="%s">Instellingen tabel aanmaken</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'De instellingen zijn hersteld'); + define('_XMAP_MSG_SET_BACKEDUP', 'De instellingen zijn opgeslagen'); + define('_XMAP_MSG_SET_DB_CREATED', 'De instellingen tabel is aangemaakt'); + define('_XMAP_MSG_SET_DEF_INSERT', 'De standaard instellingen zijn ingevoegd'); + define('_XMAP_MSG_SET_DB_DROPPED','De tabellen van Xmap zijn opgeslagen!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Template bewerken'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Link opent in een nieuw venster'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Wordt in de website getoond'); + define('_XMAP_CFG_MENU_SHOW_XML', 'In XML sitemap tonen'); + define('_XMAP_CFG_MENU_PRIORITY', 'Prioriteit'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Frequentie aanpassen'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Altijd'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Uurlijks'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Dagelijks'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Wekelijks'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Maandelijks'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Jaarlijks'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Nooit'); + + define('_XMAP_TIT_SETTINGS_OF', 'Voorkeuren voor %s'); + define('_XMAP_TAB_SITEMAPS', 'Sitemaps'); + define('_XMAP_MSG_NO_SITEMAPS', 'Er zijn nog geen sitemaps aangemaakt'); + define('_XMAP_MSG_NO_SITEMAP', 'Deze sitemap is niet beschikbaar'); + define('_XMAP_MSG_LOADING_SETTINGS', 'De voorkeuren worden geladen...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Fout. De sitemap kan niet worden geladen'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Fout. De eigenschap van de sitemap kan niet worden opgeslagen.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Fout. De buffer van de sitemap kan niet worden geleegd'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'De standaard sitemap kan niet worden verwijderd!'); + define('_XMAP_MSG_CACHE_CLEANED', 'De buffer is geleegd!'); + define('_XMAP_SITEMAP_ID', 'Sitemap\'s ID'); + define('_XMAP_ADD_SITEMAP', 'Sitemap toevoegen'); + define('_XMAP_NAME_NEW_SITEMAP', 'Nieuwe sitemap'); + define('_XMAP_DELETE_SITEMAP', 'Verwijderen'); + define('_XMAP_SETTINGS_SITEMAP', 'Voorkeuren'); + define('_XMAP_COPY_SITEMAP', 'Kopiëren'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Als standaard instellen'); + define('_XMAP_EDIT_MENU', 'Opties'); + define('_XMAP_DELETE_MENU', 'Verwijderen'); + define('_XMAP_CLEAR_CACHE', 'Buffer legen'); + define('_XMAP_MOVEUP_MENU', 'Omhoog'); + define('_XMAP_MOVEDOWN_MENU', 'Omlaag'); + define('_XMAP_ADD_MENU', 'Menu\'s toevoegen'); + define('_XMAP_COPY_OF', 'Kopie van %s'); + define('_XMAP_INFO_LAST_VISIT', 'Laatste bezoek'); + define('_XMAP_INFO_COUNT_VIEWS', 'Aantal bezoeken'); + define('_XMAP_INFO_TOTAL_LINKS', 'Aantal links'); + define('_XMAP_CFG_URLS', 'Sitemap\'s adres'); + define('_XMAP_XML_LINK_TIP', 'Link kopiëren en versturen naar Google en Yahoo'); + define('_XMAP_HTML_LINK_TIP', 'Dit is het adres van de sitemap. Je kan het gebruiken om items in menu\'s aan te maken.'); + define('_XMAP_CFG_XML_MAP', 'XML sitemap'); + define('_XMAP_CFG_HTML_MAP', 'HTML sitemap'); + define('_XMAP_XML_LINK', 'Google link'); + define('_XMAP_CFG_XML_MAP_TIP', 'Het gegenereerde XML-bestand voor zoekmachines'); + define('_XMAP_ADD', 'Opslaan'); + define('_XMAP_CANCEL', 'Annuleren'); + define('_XMAP_LOADING', 'Laden...'); + define('_XMAP_CACHE', 'Buffer'); + define('_XMAP_USE_CACHE', 'Buffer gebruiken'); + define('_XMAP_CACHE_LIFE_TIME', 'Tijdsduur van buffer'); + define('_XMAP_NEVER_VISITED', 'Nooit'); + + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/english.php b/oss/joomla/trunk/administrator/components/com_xmap/language/english.php new file mode 100644 index 00000000..37c7c0ac --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/english.php @@ -0,0 +1,187 @@ +<?php +/** + * $Id: english.php 41 2009-07-23 20:50:14Z guilleva $ + * $LastChangedDate: 2009-07-23 14:50:14 -0600 (jue, 23 jul 2009) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * A sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_OPTIONS', 'Display Options'); + define('_XMAP_CFG_CSS_CLASSNAME', 'CSS Classname'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'Expand Content Categories'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'Expand Content Sections'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Show Menu Titles'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Number of Columns'); + define('_XMAP_EX_LINK', 'Mark external links'); + define('_XMAP_CFG_CLICK_HERE', 'Click here'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google Sitemap'); + define('_XMAP_EXCLUDE_MENU', 'Exclude Menu IDs'); + define('_XMAP_TAB_DISPLAY', 'Display'); + define('_XMAP_TAB_MENUS', 'Menus'); + define('_XMAP_CFG_WRITEABLE', 'Writeable'); + define('_XMAP_CFG_UNWRITEABLE', 'Unwriteable'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Make unwriteable after saving'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Override write protection while saving'); + define('_XMAP_GOOGLE_LINK', 'Googlelink'); + define('_XMAP_CFG_INCLUDE_LINK', 'Include link to author'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Specify menu IDs you dont want to be included in the sitemap.<br /><strong>NOTE</strong><br />Seperate IDs with comma!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Set Menu Display Order'); + define('_XMAP_CFG_MENU_SHOW', 'Show'); + define('_XMAP_CFG_MENU_REORDER', 'Reorder'); + define('_XMAP_CFG_MENU_ORDER', 'Order'); + define('_XMAP_CFG_MENU_NAME', 'Menu Name'); + define('_XMAP_CFG_DISABLE', 'Click to disable'); + define('_XMAP_CFG_ENABLE', 'Click to enable'); + define('_XMAP_SHOW', 'Show'); + define('_XMAP_NO_SHOW', 'Dont\'t show'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Save'); + define('_XMAP_TOOLBAR_CANCEL', 'Cancel'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', 'Language file [ %s ] not found, loaded default language: english<br />'); + define('_XMAP_ERR_CONF_SAVE', 'ERROR: Failed to save the configuration.'); + define('_XMAP_ERR_NO_CREATE', 'ERROR: Not able to create Settings table'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'ERROR: Not able to insert default Settings'); + define('_XMAP_ERR_NO_PREV_BU', 'WARNING: Not able to drop previous backup'); + define('_XMAP_ERR_NO_BACKUP', 'ERROR: Not able to create backup'); + define('_XMAP_ERR_NO_DROP_DB', 'ERROR: Not able to drop Settings table'); + define('_XMAP_ERR_NO_SETTINGS', 'ERROR: Unable to load Settings from Database: <a href="%s">Create Settings table</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Settings restored'); + define('_XMAP_MSG_SET_BACKEDUP', 'Settings saved'); + define('_XMAP_MSG_SET_DB_CREATED', 'Settings table created'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Default Settings inserted'); + define('_XMAP_MSG_SET_DB_DROPPED','Xmap\'s tables have been saved!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Edit template'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Link opens new window'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Shown in the site'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Show in XML Sitemap'); + define('_XMAP_CFG_MENU_PRIORITY', 'Priority'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Change frequency'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Always'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Hourly'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Daily'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Weekly'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Monthly'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Yearly'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Never'); + + define('_XMAP_TIT_SETTINGS_OF', 'Preferences for %s'); + define('_XMAP_TAB_SITEMAPS', 'Sitemaps'); + define('_XMAP_MSG_NO_SITEMAPS', 'There is not created sitemaps yet'); + define('_XMAP_MSG_NO_SITEMAP', 'This sitemap is unavailable'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Loading preferences...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Error. Cannot load the sitemap'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Error. Cannot save the property of the sitemap.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Error. Cannot clean the sitemap cache'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Cannot delete the default sitemap!'); + define('_XMAP_MSG_CACHE_CLEANED', 'The cache has been cleaned!'); + define('_XMAP_CHARSET', 'UTF-8'); + define('_XMAP_SITEMAP_ID', 'Sitemap\'s ID'); + define('_XMAP_ADD_SITEMAP', 'Add Sitemap'); + define('_XMAP_NAME_NEW_SITEMAP', 'New Sitemap'); + define('_XMAP_DELETE_SITEMAP', 'Delete'); + define('_XMAP_SETTINGS_SITEMAP', 'Preferences'); + define('_XMAP_COPY_SITEMAP', 'Copy'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Set Default'); + define('_XMAP_EDIT_MENU', 'Options'); + define('_XMAP_DELETE_MENU', 'Delete'); + define('_XMAP_CLEAR_CACHE', 'Clean cache'); + define('_XMAP_MOVEUP_MENU', 'Up'); + define('_XMAP_MOVEDOWN_MENU', 'Down'); + define('_XMAP_ADD_MENU', 'Add menus'); + define('_XMAP_COPY_OF', 'Copy of %s'); + define('_XMAP_INFO_LAST_VISIT', 'Last visit'); + define('_XMAP_INFO_COUNT_VIEWS', 'Number of visits'); + define('_XMAP_INFO_TOTAL_LINKS', 'Number of links'); + define('_XMAP_CFG_URLS', 'Sitemap\'s URL'); + define('_XMAP_XML_LINK_TIP', 'Copy link and submit to Google and Yahoo'); + define('_XMAP_HTML_LINK_TIP', 'This is the sitemap\'s URL.'); + define('_XMAP_CFG_XML_MAP', 'XML Sitemap'); + define('_XMAP_CFG_HTML_MAP', 'HTML Sitemap'); + define('_XMAP_XML_LINK', 'Googlelink'); + define('_XMAP_CFG_XML_MAP_TIP', 'The XML file generated for the search engines'); + define('_XMAP_ADD', 'Save'); + define('_XMAP_CANCEL', 'Cancel'); + define('_XMAP_LOADING', 'Loading...'); + define('_XMAP_CACHE', 'Cache'); + define('_XMAP_USE_CACHE', 'Use Cache'); + define('_XMAP_CACHE_LIFE_TIME', 'Cache Lifetime'); + define('_XMAP_NEVER_VISITED', 'Never'); + + // New on Xmap 1.1 beta 1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); + +} \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/finnish.php b/oss/joomla/trunk/administrator/components/com_xmap/language/finnish.php new file mode 100644 index 00000000..7d6e576f --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/finnish.php @@ -0,0 +1,187 @@ +<?php +/** + * $Id: finnish.php 41 2009-07-23 20:50:14Z guilleva $ + * $LastChangedDate: 2009-07-23 14:50:14 -0600 (jue, 23 jul 2009) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * A sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1); + + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_OPTIONS', 'Ominaisuudet'); + define('_XMAP_CFG_CSS_CLASSNAME', 'CSS-luokkanimi'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'Laajenna alaryhmät'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'Laajenna pääryhmät'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Näytä valikko-otsikot'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Palstojen lukumäärä'); + define('_XMAP_EX_LINK', 'Merkitse ulkoiset linkit'); + define('_XMAP_CFG_CLICK_HERE', 'Paina tästä'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google-sivukartta'); + define('_XMAP_EXCLUDE_MENU', 'Jätä pois valikoiden ID:t'); + define('_XMAP_TAB_DISPLAY', 'Näytä'); + define('_XMAP_TAB_MENUS', 'Valikot'); + define('_XMAP_CFG_WRITEABLE', 'Kirjoitettavissa'); + define('_XMAP_CFG_UNWRITEABLE', 'Kirjoitussuojattu'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Kirjoitussuojaa tallennuksen jälkeen'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Yliaja kirjoitussuojaus tallennettaessa'); + define('_XMAP_GOOGLE_LINK', 'Googlelink'); + define('_XMAP_CFG_INCLUDE_LINK', 'Lisää linkki tekijän kotisivulle'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Määrittele ne valikko-ID:t joita et halua mukaan sivukarttaan.<br /><strong>HUOM!</strong><br />Erota ID:t pilkulla!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Aseta valikoiden katselujärjestys'); + define('_XMAP_CFG_MENU_SHOW', 'Näytä'); + define('_XMAP_CFG_MENU_REORDER', 'Järjestä uudelleen'); + define('_XMAP_CFG_MENU_ORDER', 'Järjestä'); + define('_XMAP_CFG_MENU_NAME', 'Valikon nimi'); + define('_XMAP_CFG_DISABLE', 'Paina estääksesi näkyminen'); + define('_XMAP_CFG_ENABLE', 'Paina salliaksesi näkyminen'); + define('_XMAP_SHOW', 'Näytä'); + define('_XMAP_NO_SHOW', 'Älä näytä'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Tallenna'); + define('_XMAP_TOOLBAR_CANCEL', 'Peru'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', 'Kielitiedostoa \'%s\' ei löytynyt. Käytetään vakiokieltä: english<br />'); + define('_XMAP_ERR_CONF_SAVE', 'VIRHE: Asetuksia ei kyetty tallentamaan'); + define('_XMAP_ERR_NO_CREATE', 'VIRHE: Asetustaulua ei voitu luoda'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'ERROR: Vakioasetuksia ei onnistuttu lisäämään'); + define('_XMAP_ERR_NO_PREV_BU', 'WARNING: Aikaisemman varmuuskopion poisto epäonnistui'); + define('_XMAP_ERR_NO_BACKUP', 'ERROR: Varmuuskopion tekeminen epäonnistui'); + define('_XMAP_ERR_NO_DROP_DB', 'ERROR: Asetustaulun poisto epäonnistui'); + define('_XMAP_ERR_NO_SETTINGS', 'ERROR: Asennusten lataaminen tietokannasta epäonnistui: <a href="%s">Luo asetustaulu uudelleen</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Asetukset palautettu'); + define('_XMAP_MSG_SET_BACKEDUP', 'Asetukset tallennettu'); + define('_XMAP_MSG_SET_DB_CREATED', 'Asetustaulu luotu'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Oletusasetukset luotu'); + define('_XMAP_MSG_SET_DB_DROPPED', 'Xmap-taulut talletettu!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Muokkaa CSS-tyylitietoja'); + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Linkki avautuu uuteen ikkunaan'); + + // -- Added for Xmap ----------------------------------------------------------- + define('_XMAP_CFG_MENU_SHOW_HTML', 'Näytä sivustolla'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Näytä XML-sivukartalla'); + define('_XMAP_CFG_MENU_PRIORITY', 'Tärkeä'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Muuta aikaväliä'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Aina'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Tunneittain'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Päivittäin'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Viikoittain'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Kuukausittain'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Vuosittain'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Ei koskaan'); + + define('_XMAP_TIT_SETTINGS_OF', '%s: asetukset'); + define('_XMAP_TAB_SITEMAPS', 'Sivukartat'); + define('_XMAP_MSG_NO_SITEMAPS', 'Ei luotuja sivukarttoja'); + define('_XMAP_MSG_NO_SITEMAP', 'Sivukartta ei ole saatavilla'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Ladataan asetuksia...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Virhe. Sivukartan lataaminen epäonnistui.'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Virhe. Sivukartan tietojen tallennus epäonnistui.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Virhe. Sivukartan välimuistin tyhjennys epäonnistui.'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Oletussivukartan poistaminen ei sallittua.'); + define('_XMAP_MSG_CACHE_CLEANED', 'Välimuisti tyhjennetty!'); + define('_XMAP_CHARSET', 'UTF-8'); + define('_XMAP_SITEMAP_ID', 'Sivukartan ID'); + define('_XMAP_ADD_SITEMAP', 'Lisää sivukartta'); + define('_XMAP_NAME_NEW_SITEMAP', 'Uusi sivukartta'); + define('_XMAP_DELETE_SITEMAP', 'Poista'); + define('_XMAP_SETTINGS_SITEMAP', 'Tiedot'); + define('_XMAP_COPY_SITEMAP', 'Kopioi'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Aseta oletukseksi'); + define('_XMAP_EDIT_MENU', 'Asetukset'); + define('_XMAP_DELETE_MENU', 'Poista'); + define('_XMAP_CLEAR_CACHE', 'Tyhjennä välimuisti'); + define('_XMAP_MOVEUP_MENU', 'Ylös'); + define('_XMAP_MOVEDOWN_MENU', 'Alas'); + define('_XMAP_ADD_MENU', 'Lisää valikko'); + define('_XMAP_COPY_OF', '%s:n kopio'); + define('_XMAP_INFO_LAST_VISIT', 'Viimeksi vierailtu'); + define('_XMAP_INFO_COUNT_VIEWS', 'Vierailuiden lukumäärä'); + define('_XMAP_INFO_TOTAL_LINKS', 'Linkkien lukumäärä'); + define('_XMAP_CFG_URLS', 'Sivukartan URL'); + define('_XMAP_XML_LINK_TIP', 'Kopioi linkit ja lähetä ne Googleen tai Yahooseen'); + define('_XMAP_HTML_LINK_TIP', 'Tämä on sivukartan osoite. Voit käyttä sitä luodaksesi uuden valikkokohdan.'); + define('_XMAP_CFG_XML_MAP', 'XML-sivukartta'); + define('_XMAP_CFG_HTML_MAP', 'HTML-sivukartta'); + define('_XMAP_XML_LINK', 'Googlelink'); + define('_XMAP_CFG_XML_MAP_TIP', 'XML-tiedosto hakukoneita varten'); + define('_XMAP_ADD', 'Tallenna'); + define('_XMAP_CANCEL', 'Peruuta'); + define('_XMAP_LOADING', 'Ladataan...'); + define('_XMAP_CACHE', 'Peruuta'); + define('_XMAP_USE_CACHE', 'Käytä välimuistia'); + define('_XMAP_CACHE_LIFE_TIME', 'Välimuistin kesto'); + define('_XMAP_NEVER_VISITED', 'Ei koskaan'); + + // New on Xmap 1.1 beta 1 + define('_XMAP_PLUGINS', 'Laajennukset'); + define( '_XMAP_INSTALL_3PD_WARN', 'Varoitus: Kolmansien osapuolten laajennusten asentaminen saattaa vaarantaa palvelimesi turvallisuuden.'); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Asenna uusi laajennus'); + define('_XMAP_UNKNOWN_AUTHOR', 'Tuntematon tekijä'); + define('_XMAP_PLUGIN_VERSION', 'Versio %s'); + define('_XMAP_TAB_INSTALL_PLUGIN', 'Asenna'); + define('_XMAP_TAB_EXTENSIONS', 'Laajennukset'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS', 'Asennetut laajennukset'); + define('_XMAP_NO_PLUGINS_INSTALLED', 'Ei asennettuja laajennuksia'); + define('_XMAP_AUTHOR', 'Tekijä'); + define('_XMAP_CONFIRM_DELETE_SITEMAP', 'Oletko varma, että haluat poistaa tämän sivukartan?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN', 'Oletko varma, että haluat poistaa tämän laajennuksen?'); + define('_XMAP_UNINSTALL', 'Poista laajennus'); + define('_XMAP_EXT_PUBLISHED', 'Julkaistu'); + define('_XMAP_EXT_UNPUBLISHED', 'Julkaisematon'); + define('_XMAP_PLUGIN_OPTIONS', 'Asetukset'); + define('_XMAP_EXT_INSTALLED_MSG', 'Laajennus asennettu. Ole hyvä ja tarkista asetukset ennen sen julkaisemista.'); + define('_XMAP_CONTINUE', 'Jatka...'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP', 'Älä liitä CSS-tietoja sivukarttaan'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP', 'Käytä vanhanaikaista XML-sivukarttaa'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER', 'Valitse hakemisto'); + define('_XMAP_UPLOAD_PKG_FILE', 'Siirrä tiedostopaketti'); + define('_XMAP_UPLOAD_AND_INSTALL', 'Siirrä ja asenna tiedosto'); + define('_XMAP_INSTALL_F_DIRECTORY', 'Asenna hakemistosta'); + define('_XMAP_INSTALL_DIRECTORY', 'Asennushakemisto'); + define('_XMAP_INSTALL', 'Asenna'); + define('_XMAP_WRITEABLE', 'Kirjoitettavissa'); + define('_XMAP_UNWRITEABLE', 'Kirjoitussuojattu'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/french.php b/oss/joomla/trunk/administrator/components/com_xmap/language/french.php new file mode 100644 index 00000000..60d105ce --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/french.php @@ -0,0 +1,188 @@ +<?php +/* @package xmap + * @author: nartconcept, nartconcept@gmail.com, http://www.modos-groupware.info/ + * @translate by Daneel, www.joomlafrance.org + */ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define ('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define("_XMAP_CFG_COM_TITLE", "Préférences de Xmap"); + define("_XMAP_CFG_OPTIONS", "Préférences"); + define("_XMAP_CFG_TITLE", "Titre"); + define("_XMAP_CFG_CSS_CLASSNAME", "Nom de fichier CSS"); + define("_XMAP_CFG_EXPAND_CATEGORIES","Développer les catégories"); + define("_XMAP_CFG_EXPAND_SECTIONS","Développer les sections"); + define("_XMAP_CFG_SHOW_MENU_TITLES", "Afficher le(s) titres de(s) menu(s)"); + define("_XMAP_CFG_NUMBER_COLUMNS", "Nombre de colonnes"); + define('_XMAP_EX_LINK', 'Marquer les liens externes'); + define('_XMAP_CFG_CLICK_HERE', 'Cliquer ici'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google Sitemap'); + define('_XMAP_EXCLUDE_MENU', 'Exclure lien(s) [ Menu IDs ]'); + define('_XMAP_TAB_DISPLAY', 'Préférences'); + define('_XMAP_TAB_MENUS', 'Menus'); + define('_XMAP_CFG_WRITEABLE', 'Modifiable'); + define('_XMAP_CFG_UNWRITEABLE', 'Non modifiable'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Rendre [ <span style="color: red;">non modifiable</span> ] après la sauvegarde'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Protéger en écriture en sauvegardant'); + define('_XMAP_GOOGLE_LINK', 'Lien Google'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Sélectionner le(s) lien(s) [ Menu IDs ] que vous ne souhaitez pas ajouter dans le Plan du site.<br /><strong>NOTE</strong><br />Séparer les liens [ IDs ] par une virgule!'); + define('_XMAP_CFG_GOOGLE_MAP_TIP', 'Fichier XML généré pour Google SiteMap'); + define('_XMAP_GOOGLE_LINK_TIP', 'Copier et Soumettre le lien à Google SiteMap'); + + // -- Menus -------------------------------------------------------------------- + define("_XMAP_CFG_SET_ORDER", "Ordre d'affichage de(s) menu(s)"); + define("_XMAP_CFG_MENU_SHOW", "Afficher"); + define("_XMAP_CFG_MENU_REORDER", "Réorganiser"); + define("_XMAP_CFG_MENU_ORDER", "Ordre"); + define("_XMAP_CFG_MENU_NAME", "Nom du menu"); + define("_XMAP_CFG_DISABLE", "Cliquer pour masquer"); + define("_XMAP_CFG_ENABLE", "Cliquer pour afficher"); + define('_XMAP_SHOW','Affiché'); + define('_XMAP_NO_SHOW','Masqué'); + + // -- Toolbar ------------------------------------------------------------------ + define("_XMAP_TOOLBAR_SAVE", "Sauver"); + define("_XMAP_TOOLBAR_CANCEL", "Quitter"); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG','Aucun fichier de la langue [ %s ] n\'a pas été trouvé, la langue par défaut est: anglais<br />'); // %s = $GLOBALS['mosConfig_lang'] + define('_XMAP_ERR_CONF_SAVE', '<h2>Echec de sauvegarde de table de préférences.</h2>'); + define('_XMAP_ERR_NO_CREATE', 'ERREUR: Impossible de créer la table de préférences'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'ERREUR: Impossible d\'appliquer la table de préférences par défaut'); + define('_XMAP_ERR_NO_PREV_BU', 'ERREUR: Impossible de supprimer la dernière sauvegarde'); + define('_XMAP_ERR_NO_BACKUP', 'ERREUR: Impossible de créer une sauvegarde'); + define('_XMAP_ERR_NO_DROP_DB', 'ERREUR: Impossible de supprimer la table de préférences'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Table de préférences a été restaurée<br />'); + define('_XMAP_MSG_SET_BACKEDUP', 'Les préférences ont été sauvegardée<br />'); + define('_XMAP_MSG_SET_DB_CREATED', 'Table de préférences a été créée<br />'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Table de préférences par défaut a été inserée'); + define('_XMAP_MSG_SET_DB_DROPPED', 'Table de préférences a été supprimée'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Editer le template [ fichier CSS ]'); // Edit template + + // -- Sitemap ------------------------------------------------------------------ + define('_XMAP_SHOW_AS_EXTERN_ALT','Ouvrire le lien dans une nouvelle fenêtre'); + define('_XMAP_PREVIEW','Aperçu'); + define('_XMAP_SITEMAP_NAME','Plan du site'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Afficher dans le site'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Afficher dans Sitemap XML'); + define('_XMAP_CFG_MENU_PRIORITY', 'Priorité'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Changer la fréquence'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Toujours'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Heure'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Jour'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Semaine'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Mois'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Année'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Jamais'); + + define('_XMAP_TIT_SETTINGS_OF', 'Préferences de %s'); + define('_XMAP_TAB_SITEMAPS', 'Sitemaps'); + define('_XMAP_MSG_NO_SITEMAPS', 'Il n\'y a aucun plan de site crée'); + define('_XMAP_MSG_NO_SITEMAP', 'Ce plan de site est indisponible'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Chargement préferences...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Erreur. Ne peut charger le plan de site'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Erreur. Ne peut charger les proprietes du plan de site.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Erreur. ne peut vider le plan de site en cache'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Le cache ne peut être vidé!'); + define('_XMAP_MSG_CACHE_CLEANED', 'Le cache est vide!'); + define('_XMAP_CHARSET', 'ISO-8859-1'); + define('_XMAP_SITEMAP_ID', 'Plan de site ID'); + define('_XMAP_ADD_SITEMAP', 'Ajouter Plan de site'); + define('_XMAP_NAME_NEW_SITEMAP', 'Nouveau plan de site'); + define('_XMAP_DELETE_SITEMAP', 'Effacer'); + define('_XMAP_SETTINGS_SITEMAP', 'Préferences'); + define('_XMAP_COPY_SITEMAP', 'Copier'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Définir par Défaut'); + define('_XMAP_EDIT_MENU', 'Options'); + define('_XMAP_DELETE_MENU', 'Effacer'); + define('_XMAP_CLEAR_CACHE', 'Vider cache'); + define('_XMAP_MOVEUP_MENU', 'Monter'); + define('_XMAP_MOVEDOWN_MENU', 'Descendre'); + define('_XMAP_ADD_MENU', 'Ajoutermenus'); + define('_XMAP_COPY_OF', 'Copie de %s'); + define('_XMAP_INFO_LAST_VISIT', 'Dernière visite'); + define('_XMAP_INFO_COUNT_VIEWS', 'Nombre de visites'); + define('_XMAP_INFO_TOTAL_LINKS', 'Nombre de liens'); + define('_XMAP_CFG_URLS', 'URL Sitemap'); + define('_XMAP_XML_LINK_TIP', 'Copier ce lien et envoyer dans les moteurs de recherche Google et Yahoo'); + define('_XMAP_HTML_LINK_TIP', 'Lien URL plan de site. Vous pouvez utiliser pour la liste des titres de vos menus.'); + define('_XMAP_CFG_XML_MAP', 'XML Plan de Site'); + define('_XMAP_CFG_HTML_MAP', 'HTML Plan de Site'); + define('_XMAP_XML_LINK', 'Lien Google'); + define('_XMAP_CFG_XML_MAP_TIP', 'Le fichier XML est généré pour les moteurs de recherche'); + define('_XMAP_ADD', 'Sauvegarder'); + define('_XMAP_CANCEL', 'Annuler'); + define('_XMAP_LOADING', 'Chargement...'); + define('_XMAP_CACHE', 'Cache'); + define('_XMAP_USE_CACHE', 'Utiliser le Cache'); + define('_XMAP_CACHE_LIFE_TIME', 'Durée du Cache'); + define('_XMAP_NEVER_VISITED', 'Jamais'); + define('_XMAP_CFG_INCLUDE_LINK', 'lien cliquable'); + + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/german.php b/oss/joomla/trunk/administrator/components/com_xmap/language/german.php new file mode 100644 index 00000000..ce0de56c --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/german.php @@ -0,0 +1,188 @@ +<?php +/** + * $Id: german.php 41 2009-07-23 20:50:14Z guilleva $ + * $LastChangedDate: 2009-07-23 14:50:14 -0600 (jue, 23 jul 2009) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * A sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html + * Language file by Daniel Grothe, http://www.ko-ca.com/ +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_COM_TITLE', 'Xmap-Konfiguration'); + define('_XMAP_CFG_OPTIONS', 'Anzeige-Einstellungen'); + define('_XMAP_CFG_CSS_CLASSNAME', 'CSS-Klassenname'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'Kategorien ausklappen'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'Bereiche ausklappen'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Menütitel anzeigen'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Spaltenanzahl'); + define('_XMAP_EX_LINK', 'Externe Links markieren'); + define('_XMAP_CFG_CLICK_HERE', 'Hier Klicken'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google Sitemap'); + define('_XMAP_EXCLUDE_MENU', 'Menü-IDs ausschließen'); + define('_XMAP_TAB_DISPLAY', 'Anzeige'); + define('_XMAP_TAB_MENUS', 'Menüs'); + define('_XMAP_CFG_WRITEABLE', 'Beschreibbar'); + define('_XMAP_CFG_UNWRITEABLE', 'Nicht beschreibbar'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Nach dem Speicher auf Nur-Lesen setzen'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Schreibschutz beim Speichern überschreiben'); + define('_XMAP_GOOGLE_LINK', 'Google-Link'); + define('_XMAP_CFG_INCLUDE_LINK', 'Unsichtbarer Link zum Autoren'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Geben Sie die ID des Menüs an, das im Inhaltsverzeichnis eingetragen werden soll.<br /><strong>BEMERKUNG</strong><br />Mehrere IDs durch Kommata trennen!'); + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Reihen folge der Menü-Anzeige'); + define('_XMAP_CFG_MENU_SHOW', 'Zeige'); + define('_XMAP_CFG_MENU_REORDER', 'Neu ordnen'); + define('_XMAP_CFG_MENU_ORDER', 'Reihenfolge'); + define('_XMAP_CFG_MENU_NAME', 'Name des Menüs'); + define('_XMAP_CFG_DISABLE', 'Zum Deaktivieren klicken'); + define('_XMAP_CFG_ENABLE', 'Zum Aktivieren klicken'); + define('_XMAP_SHOW', 'Anzeigen'); + define('_XMAP_NO_SHOW', 'Nicht anzeigen'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Speichern'); + define('_XMAP_TOOLBAR_CANCEL', 'Abbrechen'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', 'Konnte die Sprachdatei [ %s ] nicht finden. Lade die Standardsprach: Englisch<br />'); + define('_XMAP_ERR_CONF_SAVE', 'FEHELER: Konfiguration konnte nicht gespeichert werden.'); + define('_XMAP_ERR_NO_CREATE', 'FEHELER: Konnte Tabelle mit den Einstellungen nicht speichern.'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'FEHLER: Konnte Standardeinstellungen nicht einfügen.'); + define('_XMAP_ERR_NO_PREV_BU', 'WARNUNG: Konnte vorherige Sicherung nicht löschen.'); + define('_XMAP_ERR_NO_BACKUP', 'FEHLER: Konnte Sicherung nicht erstellen.'); + define('_XMAP_ERR_NO_DROP_DB', 'FEHLER: Konnte Tabelle mit den Einstellungen nicht löschen.'); + define('_XMAP_ERR_NO_SETTINGS', 'FEHLER: Konnte Einstellungen nicht aus der Datenbank laden: <a href="%s">Tablle für die Einstellungen erstellen</a>'); + + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Einstellungen wurden wieder hergestellt'); + define('_XMAP_MSG_SET_BACKEDUP', 'Einstellungen wurden gespeichert'); + define('_XMAP_MSG_SET_DB_CREATED', 'Tabelle für die Einstellungen wurde erstellt'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Standardeinstellungen wurden eingefügt'); + define('_XMAP_MSG_SET_DB_DROPPED','Die Tabellen für Xmap wurden gespeichert!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Template editieren'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Link öffnet eine neues Fenster'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Anzeige auf der Seite'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Anzeige in XML-Inhaltsverichnis'); + define('_XMAP_CFG_MENU_PRIORITY', 'Priorität'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Häufigkeit ändern'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Immer'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Stündlich'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Täglich'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Wöchentlich'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Monatlich'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Jährlich'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Nie'); + define('_XMAP_TIT_SETTINGS_OF', 'Voreinstellungen für %s'); + define('_XMAP_TAB_SITEMAPS', 'Inhaltsverzeichnisse'); + define('_XMAP_MSG_NO_SITEMAPS', 'Bisher wurden noch keine Inhaltsverzeichnisse erstellt'); + define('_XMAP_MSG_NO_SITEMAP', 'Dieses Inhaltsverzeichnis ist nicht verfügbar'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Lade Voreinstellungen...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Fehler. Kann Inhaltsverzeichnis nicht laden'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Fehler. Kann die Eigenschaften des Inhaltsverzeichnisses nicht speichrn.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Fehler. Kann den Zwischenspeicher des Inhaltsverzeichnisses nicht löschen.'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Standard-Inhaltsverzeichnis kann nicht gelöscht werden!'); + define('_XMAP_MSG_CACHE_CLEANED', 'Zwischenspeicher gelöscht!'); + define('_XMAP_CHARSET', 'UTF-8'); + define('_XMAP_SITEMAP_ID', 'ID des Inhaltsverzeichnisses'); + define('_XMAP_ADD_SITEMAP', 'Inhaltsverzeichnis hinzufügen'); + define('_XMAP_NAME_NEW_SITEMAP', 'Neues Inhaltsverzeichnis'); + define('_XMAP_DELETE_SITEMAP', 'Löschen'); + define('_XMAP_SETTINGS_SITEMAP', 'Voreinstellungen'); + define('_XMAP_COPY_SITEMAP', 'Kopieren'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Als Standdard'); + define('_XMAP_EDIT_MENU', 'Optionen'); + define('_XMAP_DELETE_MENU', 'Löschen'); + define('_XMAP_CLEAR_CACHE', 'Zwischenspeicher löschen'); + define('_XMAP_MOVEUP_MENU', 'Hoch'); + define('_XMAP_MOVEDOWN_MENU', 'Runter'); + define('_XMAP_ADD_MENU', 'Neues Menü'); + define('_XMAP_COPY_OF', 'Kopie von %s'); + define('_XMAP_INFO_LAST_VISIT', 'Letzter Aufruf'); + define('_XMAP_INFO_COUNT_VIEWS', 'Anzahl der Aufrufe'); + define('_XMAP_INFO_TOTAL_LINKS', 'Anzahl der Links'); + define('_XMAP_CFG_URLS', 'URL des Inhaltsverzeichnisses'); + define('_XMAP_XML_LINK_TIP', 'Link kopieren und an Google und Yahoo senden'); + define('_XMAP_HTML_LINK_TIP', 'Das ist die URL des Inhaltsverzeichnisses. Sie können diese benutzen, um Einträge in Menüs vorzunehmen.'); + define('_XMAP_CFG_XML_MAP', 'XML-Inhaltsverzeichnis'); + define('_XMAP_CFG_HTML_MAP', 'HTML-Inhaltsverzeichnis'); + define('_XMAP_XML_LINK', 'Google-Link'); + //define('_XMAP_CFG_XML_MAP_TIP', 'The XML file generated for the search engines'); + define('_XMAP_CFG_XML_MAP_TIP', 'Die XML-Datei wurde für die Suchmaschine generiert'); + define('_XMAP_ADD', 'Speichern'); + define('_XMAP_CANCEL', 'Abbrechen'); + define('_XMAP_LOADING', 'Lade...'); + define('_XMAP_CACHE', 'Zwischenspeicher'); + define('_XMAP_USE_CACHE', 'Zwischenspeichern'); + define('_XMAP_CACHE_LIFE_TIME', 'Speicherzeit'); + define('_XMAP_NEVER_VISITED', 'Nie'); + + // New on Xmap 1.1 beta 1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warnung: Die Installation von Erweiterungen Dritter kann die Sicherheit des Servers beeinträchtigen.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Neue Plugins installieren'); + define('_XMAP_UNKNOWN_AUTHOR','Unbekannter Autor'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Installieren'); + define('_XMAP_TAB_EXTENSIONS','Erweiterungen'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installierte Erweiterungen'); + define('_XMAP_NO_PLUGINS_INSTALLED','Kein benutzerdefiniertes Plugin installiert'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Möchten Sie diese Sitemap wirklich löschen?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Möchten Sie dieses Plugin wirklich deinstallieren?'); + define('_XMAP_UNINSTALL','Deinstallieren'); + define('_XMAP_EXT_PUBLISHED','Veröffentlicht'); + define('_XMAP_EXT_UNPUBLISHED','Unveröffentlicht'); + define('_XMAP_PLUGIN_OPTIONS','Optionen'); + define('_XMAP_EXT_INSTALLED_MSG','Die Erweiterung wurde erfolgreich installiert, bitte überpüfen sie deren Einstellungen und veröffentlichen Sie die Erweiterung anschlie?end'); + define('_XMAP_CONTINUE','Fortfahren...'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Die CSS Datei nicht für die Sitemap verwenden'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Klassische XML Sitemap Anzeige verwenden'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Bitte wählen Sie ein Verzeichnis aus'); + define('_XMAP_UPLOAD_PKG_FILE','Dateien hochladen'); + define('_XMAP_UPLOAD_AND_INSTALL','Dateien hochladen und installieren'); + define('_XMAP_INSTALL_F_DIRECTORY','Aus lokalem Verzeichnis installieren'); + define('_XMAP_INSTALL_DIRECTORY','Installationsverzeichnis'); + define('_XMAP_INSTALL','Installieren'); + define('_XMAP_WRITEABLE','Beschreibbar'); + define('_XMAP_UNWRITEABLE','Schreibgeschützt'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Kompression'); + define('_XMAP_USE_COMPRESSION','Komprimieren Sie die XML-Sitemap, um Bandbreite zu sparen'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/hungarian.php b/oss/joomla/trunk/administrator/components/com_xmap/language/hungarian.php new file mode 100644 index 00000000..4eaab5fb --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/hungarian.php @@ -0,0 +1,183 @@ +<?php +/* @package Xmap + * @author Guillermo Vargas, http://joomla.vargas.co.cr/ + * @translator Jozsef Tamas Herczeg, http://www.joomlandia.eu/ +*/ + +defined( '_JEXEC' ) or die( 'A közvetlen hozzáférés ehhez a helyhez nem engedélyezett.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define ('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_COM_TITLE', 'Xmap beállításai'); + define('_XMAP_CFG_OPTIONS', 'Megjelenítés beállításai'); + define('_XMAP_CFG_CSS_CLASSNAME', 'CSS osztálynév'); + define('_XMAP_CFG_EXPAND_CATEGORIES','A tartalomkategóriák kibontása'); + define('_XMAP_CFG_EXPAND_SECTIONS','A tartalomszekciók kibontása'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'A menüpontok megjelenítése'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Az oszlopok száma'); + define('_XMAP_EX_LINK', 'A külsõ hivatkozások megjelölése'); + define('_XMAP_CFG_CLICK_HERE', 'Kattintson ide'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google Sitemap'); + define('_XMAP_EXCLUDE_MENU', 'Kizárandó menüazonosítók'); + define('_XMAP_TAB_DISPLAY', 'Megjelenítés'); + define('_XMAP_TAB_MENUS', 'Menük'); + define('_XMAP_CFG_WRITEABLE', 'Írható'); + define('_XMAP_CFG_UNWRITEABLE', 'Írásvédett'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Írásvédetté tétel mentés után'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Az írásvédettség hatálytalanítása mentéskor'); + define('_XMAP_GOOGLE_LINK', 'Google hivatkozás'); + define('_XMAP_CFG_INCLUDE_LINK', 'A szerzõre mutató láthatatlan hivatkozás'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Adja meg a helytérképbõl kihagyandó menüazonosítókat.<br /><strong>MEGJEGYZÉS</strong><br />Válassza el vesszõvel az azoosítókat!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Állítsa be a menük megjelenítésének sorrendjét'); + define('_XMAP_CFG_MENU_SHOW', 'Látszik'); + define('_XMAP_CFG_MENU_REORDER', 'Átrendezés'); + define('_XMAP_CFG_MENU_ORDER', 'Sorrend'); + define('_XMAP_CFG_MENU_NAME', 'Menünév'); + define('_XMAP_CFG_DISABLE', 'Kattintson rá a letiltáshoz'); + define('_XMAP_CFG_ENABLE', 'Kattintson rá az engedélyezéshez'); + define('_XMAP_SHOW','Látszik'); + define('_XMAP_NO_SHOW','Nem látszik'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Mentés'); + define('_XMAP_TOOLBAR_CANCEL', 'Mégse'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG','[ %s ] nyelvi fájl nem található, betöltésre került az alapértelmezett nyelv: angol<br />'); // %s = $GLOBALS['mosConfig_lang'] + define('_XMAP_ERR_CONF_SAVE', 'HIBA: A beállítások mentése nem sikerült.'); + define('_XMAP_ERR_NO_CREATE', 'HIBA: Nem hozható létre a Settings tábla'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'HIBA: Nem szúrhatók be az alapértelmezett beállítások'); + define('_XMAP_ERR_NO_PREV_BU', 'FIGYELEM! Nem dobható el az elõzõ biztonsági mentés'); + define('_XMAP_ERR_NO_BACKUP', 'HIBA: Nem hozható létre a biztonsági mentés'); + define('_XMAP_ERR_NO_DROP_DB', 'HIBA: Nem dobható el a Settings tábla'); + define('_XMAP_ERR_NO_SETTINGS', 'HIBA: Nem tölthetõk be az adatbázisból a beállítások: <a href="%s">A Settings tábla létrehozása</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'A beállítások visszaállítása kész'); + define('_XMAP_MSG_SET_BACKEDUP', 'A beállítások mentése kész'); + define('_XMAP_MSG_SET_DB_CREATED', 'A Settings tábla létrehozása kész'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Az alapértelmezett beállítások beszúrása kész'); + define('_XMAP_MSG_SET_DB_DROPPED', 'A Settings tábla eldobása megtörtént'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Sablon szerkesztése'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT','Új ablakban nyílik meg a hivatkozás'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Látható a webhelyen'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Látható az XML oldaltérképben'); + define('_XMAP_CFG_MENU_PRIORITY', 'Prioritás'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Gyakoriság módosítása'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Mindig'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Óránként'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Naponta'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Hetente'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Havonta'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Évente'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Soha'); + + define('_XMAP_TIT_SETTINGS_OF', '%s beállításai'); + define('_XMAP_TAB_SITEMAPS', 'Oldaltérképek'); + define('_XMAP_MSG_NO_SITEMAPS', 'Még nem történt meg az oldaltérkép létrehozása'); + define('_XMAP_MSG_NO_SITEMAP', 'Ez az oldaltérkép nem elérhetõ'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Beállítások betöltése...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Hiba. Nem tölthetõ be az oldaltérkép'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Hiba. Nem menthetõ az oldaltérkép tulajdonsága.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Hiba. Nem törölhetõ az oldaltérkép gyorsítótára'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Az alapértelmezett oldaltérkép nem törölhetõ!'); + define('_XMAP_MSG_CACHE_CLEANED', 'A gyorsítótár törlése kész!'); + define('_XMAP_CHARSET', 'ISO-8859-2'); + define('_XMAP_SITEMAP_ID', 'Az oldaltérkép azonosítója'); + define('_XMAP_ADD_SITEMAP', 'Oldaltérkép hozzáadása'); + define('_XMAP_NAME_NEW_SITEMAP', 'Új oldaltérkép'); + define('_XMAP_DELETE_SITEMAP', 'Törlés'); + define('_XMAP_SETTINGS_SITEMAP', 'Beállítások'); + define('_XMAP_COPY_SITEMAP', 'Másolás'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Alapértelmezésként'); + define('_XMAP_EDIT_MENU', 'Beállítások'); + define('_XMAP_DELETE_MENU', 'Törlés'); + define('_XMAP_CLEAR_CACHE', 'Gyorsítótár törlése'); + define('_XMAP_MOVEUP_MENU', 'Fel'); + define('_XMAP_MOVEDOWN_MENU', 'Le'); + define('_XMAP_ADD_MENU', 'Menük hozzáadása'); + define('_XMAP_COPY_OF', '%s másolata'); + define('_XMAP_INFO_LAST_VISIT', 'Utolsó látogatás'); + define('_XMAP_INFO_COUNT_VIEWS', 'Látogatások száma'); + define('_XMAP_INFO_TOTAL_LINKS', 'Hivatkozások száma'); + define('_XMAP_CFG_URLS', 'Az oldaltérkép URL-je'); + define('_XMAP_XML_LINK_TIP', 'A hivatkozás másolása és beküldése a Google-nek és a Yahoonak'); + define('_XMAP_HTML_LINK_TIP', 'Ez az oldaltérkép URL-je. Menüpontok létrehozásához is felhasználhatja.'); + define('_XMAP_CFG_XML_MAP', 'XML oldaltérkép'); + define('_XMAP_CFG_HTML_MAP', 'HTML oldaltérkép'); + define('_XMAP_XML_LINK', 'Google hivatkozás'); + define('_XMAP_CFG_XML_MAP_TIP', 'A keresõmotorok számára generált XML fájl'); + define('_XMAP_ADD', 'Mentés'); + define('_XMAP_CANCEL', 'Mégse'); + define('_XMAP_LOADING', 'Betöltés...'); + define('_XMAP_CACHE', 'Gyorsítótár'); + define('_XMAP_USE_CACHE', 'A gyorsítótár használata'); + define('_XMAP_CACHE_LIFE_TIME', 'A gyorsítótár élettartama'); + define('_XMAP_NEVER_VISITED', 'Soha'); + + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL. You can use it to create items on your menus.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/hungariani.php b/oss/joomla/trunk/administrator/components/com_xmap/language/hungariani.php new file mode 100644 index 00000000..1ed2640f --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/hungariani.php @@ -0,0 +1,182 @@ +<?php +/* @package Xmap + * @author Guillermo Vargas, http://joomla.vargas.co.cr/ + * @translator Jozsef Tamas Herczeg, http://www.joomlandia.eu/ +*/ + +defined( '_JEXEC' ) or die( 'A közvetlen hozzáférés ehhez a helyhez nem engedélyezett.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define ('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_COM_TITLE', 'Xmap beállításai'); + define('_XMAP_CFG_OPTIONS', 'Megjelenítés beállításai'); + define('_XMAP_CFG_CSS_CLASSNAME', 'CSS osztálynév'); + define('_XMAP_CFG_EXPAND_CATEGORIES','A tartalomkategóriák kibontása'); + define('_XMAP_CFG_EXPAND_SECTIONS','A tartalomszekciók kibontása'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'A menüpontok megjelenítése'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Az oszlopok száma'); + define('_XMAP_EX_LINK', 'A külsõ hivatkozások megjelölése'); + define('_XMAP_CFG_CLICK_HERE', 'Kattints ide'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google Sitemap'); + define('_XMAP_EXCLUDE_MENU', 'Kizárandó menüazonosítók'); + define('_XMAP_TAB_DISPLAY', 'Megjelenítés'); + define('_XMAP_TAB_MENUS', 'Menük'); + define('_XMAP_CFG_WRITEABLE', 'Írható'); + define('_XMAP_CFG_UNWRITEABLE', 'Írásvédett'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Írásvédetté tétel mentés után'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Az írásvédettség hatálytalanítása mentéskor'); + define('_XMAP_GOOGLE_LINK', 'Google hivatkozás'); + define('_XMAP_CFG_INCLUDE_LINK', 'A szerzõre mutató láthatatlan hivatkozás'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Add meg a helytérképbõl kihagyandó menüazonosítókat.<br /><strong>MEGJEGYZÉS</strong><br />Válaszd el vesszõvel az azoosítókat!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Állítsd be a menük megjelenítésének sorrendjét'); + define('_XMAP_CFG_MENU_SHOW', 'Látszik'); + define('_XMAP_CFG_MENU_REORDER', 'Átrendezés'); + define('_XMAP_CFG_MENU_ORDER', 'Sorrend'); + define('_XMAP_CFG_MENU_NAME', 'Menünév'); + define('_XMAP_CFG_DISABLE', 'Kattints rá a letiltáshoz'); + define('_XMAP_CFG_ENABLE', 'Kattints rá az engedélyezéshez'); + define('_XMAP_SHOW','Látszik'); + define('_XMAP_NO_SHOW','Nem látszik'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Mentés'); + define('_XMAP_TOOLBAR_CANCEL', 'Mégse'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG','[ %s ] nyelvi fájl nem található, betöltésre került az alapértelmezett nyelv: angol<br />'); // %s = $GLOBALS['mosConfig_lang'] + define('_XMAP_ERR_CONF_SAVE', 'HIBA: A beállítások mentése nem sikerült.'); + define('_XMAP_ERR_NO_CREATE', 'HIBA: Nem hozható létre a Settings tábla'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'HIBA: Nem szúrhatók be az alapértelmezett beállítások'); + define('_XMAP_ERR_NO_PREV_BU', 'FIGYELEM! Nem dobható el az elõzõ biztonsági mentés'); + define('_XMAP_ERR_NO_BACKUP', 'HIBA: Nem hozható létre a biztonsági mentés'); + define('_XMAP_ERR_NO_DROP_DB', 'HIBA: Nem dobható el a Settings tábla'); + define('_XMAP_ERR_NO_SETTINGS', 'HIBA: Nem tölthetõk be az adatbázisból a beállítások: <a href="%s">A Settings tábla létrehozása</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'A beállítások visszaállítása kész'); + define('_XMAP_MSG_SET_BACKEDUP', 'A beállítások mentése kész'); + define('_XMAP_MSG_SET_DB_CREATED', 'A Settings tábla létrehozása kész'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Az alapértelmezett beállítások beszúrása kész'); + define('_XMAP_MSG_SET_DB_DROPPED', 'A Settings tábla eldobása megtörtént'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Sablon szerkesztése'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT','Új ablakban nyílik meg a hivatkozás'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Látható a webhelyen'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Látható az XML oldaltérképben'); + define('_XMAP_CFG_MENU_PRIORITY', 'Prioritás'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Gyakoriság módosítása'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Mindig'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Óránként'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Naponta'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Hetente'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Havonta'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Évente'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Soha'); + + define('_XMAP_TIT_SETTINGS_OF', '%s beállításai'); + define('_XMAP_TAB_SITEMAPS', 'Oldaltérképek'); + define('_XMAP_MSG_NO_SITEMAPS', 'Még nem történt meg az oldaltérkép létrehozása'); + define('_XMAP_MSG_NO_SITEMAP', 'Ez az oldaltérkép nem elérhetõ'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Beállítások betöltése...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Hiba. Nem tölthetõ be az oldaltérkép'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Hiba. Nem menthetõ az oldaltérkép tulajdonsága.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Hiba. Nem törölhetõ az oldaltérkép gyorsítótára'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Az alapértelmezett oldaltérkép nem törölhetõ!'); + define('_XMAP_MSG_CACHE_CLEANED', 'A gyorsítótár törlése kész!'); + define('_XMAP_CHARSET', 'ISO-8859-2'); + define('_XMAP_SITEMAP_ID', 'Az oldaltérkép azonosítója'); + define('_XMAP_ADD_SITEMAP', 'Oldaltérkép hozzáadása'); + define('_XMAP_NAME_NEW_SITEMAP', 'Új oldaltérkép'); + define('_XMAP_DELETE_SITEMAP', 'Törlés'); + define('_XMAP_SETTINGS_SITEMAP', 'Beállítások'); + define('_XMAP_COPY_SITEMAP', 'Másolás'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Alapértelmezésként'); + define('_XMAP_EDIT_MENU', 'Beállítások'); + define('_XMAP_DELETE_MENU', 'Törlés'); + define('_XMAP_CLEAR_CACHE', 'Gyorsítótár törlése'); + define('_XMAP_MOVEUP_MENU', 'Fel'); + define('_XMAP_MOVEDOWN_MENU', 'Le'); + define('_XMAP_ADD_MENU', 'Menük hozzáadása'); + define('_XMAP_COPY_OF', '%s másolata'); + define('_XMAP_INFO_LAST_VISIT', 'Utolsó látogatás'); + define('_XMAP_INFO_COUNT_VIEWS', 'Látogatások száma'); + define('_XMAP_INFO_TOTAL_LINKS', 'Hivatkozások száma'); + define('_XMAP_CFG_URLS', 'Az oldaltérkép URL-je'); + define('_XMAP_XML_LINK_TIP', 'A hivatkozás másolása és beküldése a Google-nek és a Yahoonak'); + define('_XMAP_HTML_LINK_TIP', 'Ez az oldaltérkép URL-je. Menüpontok létrehozásához is felhasználhatod.'); + define('_XMAP_CFG_XML_MAP', 'XML oldaltérkép'); + define('_XMAP_CFG_HTML_MAP', 'HTML oldaltérkép'); + define('_XMAP_XML_LINK', 'Google hivatkozás'); + define('_XMAP_CFG_XML_MAP_TIP', 'A keresõmotorok számára generált XML fájl'); + define('_XMAP_ADD', 'Mentés'); + define('_XMAP_CANCEL', 'Mégse'); + define('_XMAP_LOADING', 'Betöltés...'); + define('_XMAP_CACHE', 'Gyorsítótár'); + define('_XMAP_USE_CACHE', 'A gyorsítótár használata'); + define('_XMAP_CACHE_LIFE_TIME', 'A gyorsítótár élettartama'); + define('_XMAP_NEVER_VISITED', 'Soha'); + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/index.html b/oss/joomla/trunk/administrator/components/com_xmap/language/index.html new file mode 100644 index 00000000..88a5baf7 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/index.html @@ -0,0 +1,4 @@ +<html> +<body bgcolor="#FFFFFF"> +</body> +</html> \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/italian.php b/oss/joomla/trunk/administrator/components/com_xmap/language/italian.php new file mode 100644 index 00000000..d77fc82c --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/italian.php @@ -0,0 +1,187 @@ +<?php +/** + * $Id: italian.php 41 2009-07-23 20:50:14Z guilleva $ + * $LastChangedDate: 2009-07-23 14:50:14 -0600 (jue, 23 jul 2009) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * A sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_OPTIONS', 'Visualizza Opzionie'); + define('_XMAP_CFG_CSS_CLASSNAME', 'Classname CSS'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'Espandi Contenuto Categorie'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'Espandi Contenuto Sezioni'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Visualizza Titoli Menu'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Numero di colonne'); + define('_XMAP_EX_LINK', 'Seleziona link esterni'); + define('_XMAP_CFG_CLICK_HERE', 'Clicca qui'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google Sitemap'); + define('_XMAP_EXCLUDE_MENU', 'Escludi Menu IDs'); + define('_XMAP_TAB_DISPLAY', 'Visualizza'); + define('_XMAP_TAB_MENUS', 'Menu'); + define('_XMAP_CFG_WRITEABLE', 'Scrivibile'); + define('_XMAP_CFG_UNWRITEABLE', 'Non Scrivibile'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Dopo il salvataggio imposta come non scrivibile'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Sovrascri protezione scrittura, mentre salvi'); + define('_XMAP_GOOGLE_LINK', 'Googlelink'); + define('_XMAP_CFG_INCLUDE_LINK', 'Includi link autore'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Specifica gli IDs dei menu che non vuoi includere nella sitemap.<br /><strong>NOTA</strong><br />Separa gli IDs con la virgola!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Modifica l’ordine del menu'); + define('_XMAP_CFG_MENU_SHOW', 'Visualizza'); + define('_XMAP_CFG_MENU_REORDER', 'Riordina'); + define('_XMAP_CFG_MENU_ORDER', 'Ordina'); + define('_XMAP_CFG_MENU_NAME', 'Nome Menu'); + define('_XMAP_CFG_DISABLE', 'Clicca per disabilitare'); + define('_XMAP_CFG_ENABLE', 'Clicca per abilitare'); + define('_XMAP_SHOW', 'Visualizza'); + define('_XMAP_NO_SHOW', 'Non visualizzare'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Salva'); + define('_XMAP_TOOLBAR_CANCEL', 'Cancella'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', 'Lingua file [ %s ] non trovato, è stata caricata la lingua predefinita: inglese<br />'); + define('_XMAP_ERR_CONF_SAVE', 'ERRORE: Impossibile salvare la configurazione.'); + define('_XMAP_ERR_NO_CREATE', 'ERRORE: Impossibile creare le tabelle di configurazione'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'ERRORE: Impossibile inserire le configurazioni predefinite'); + define('_XMAP_ERR_NO_PREV_BU', 'ATTENZIONE: Impossibile cancellare backup precedenti'); + define('_XMAP_ERR_NO_BACKUP', 'ERRORE: Impossibile creare un backup'); + define('_XMAP_ERR_NO_DROP_DB', 'ERRORE: Impossibile cancellare le tabelle di configurazione'); + define('_XMAP_ERR_NO_SETTINGS', 'ERRORE: Impossibile caricare le impostazioni dal database: <a href="%s">Crea impostazioni tabella</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Impostazioni ristabilite'); + define('_XMAP_MSG_SET_BACKEDUP', 'Impostazioni salvate'); + define('_XMAP_MSG_SET_DB_CREATED', 'Impostazioni tabella creata'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Impostazioni predefinite inserite'); + define('_XMAP_MSG_SET_DB_DROPPED','Xmap le tabelle sono state salvate!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Modifica template'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Apri il link in una nuova finestra'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Mostra nel sito'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Mostra in formato XML'); + define('_XMAP_CFG_MENU_PRIORITY', 'Priorità'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Frequenza aggiornamenti'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Sempre'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Ogni ora'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Quotidianamente'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Settimanalmente'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Mensilmente'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Annualmente'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Mai'); + + define('_XMAP_TIT_SETTINGS_OF', 'Preferenze per %s'); + define('_XMAP_TAB_SITEMAPS', 'Sitemap'); + define('_XMAP_MSG_NO_SITEMAPS', 'Non sono state ancora create sitemap'); + define('_XMAP_MSG_NO_SITEMAP', 'Questa sitemap non è disponibile'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Caricamento preferenze...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Errore. Impossibile caricare la sitemap'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Errore. Impossibile salvare le proprietà della sitemap.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Errore. Impossibile pulire la cache della sitemap'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Impossibile eliminare la sitemap predefinta!'); + define('_XMAP_MSG_CACHE_CLEANED', 'Cache eliminata!'); + define('_XMAP_CHARSET', 'UTF-8'); + define('_XMAP_SITEMAP_ID', 'ID Sitemap'); + define('_XMAP_ADD_SITEMAP', 'Aggiungi Sitemap'); + define('_XMAP_NAME_NEW_SITEMAP', 'Nuova Sitemap'); + define('_XMAP_DELETE_SITEMAP', 'Cancella'); + define('_XMAP_SETTINGS_SITEMAP', 'Preferenze'); + define('_XMAP_COPY_SITEMAP', 'Copia'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Applica predefinita'); + define('_XMAP_EDIT_MENU', 'Opzioni'); + define('_XMAP_DELETE_MENU', 'Cancella'); + define('_XMAP_CLEAR_CACHE', 'Cancella cache'); + define('_XMAP_MOVEUP_MENU', 'Su'); + define('_XMAP_MOVEDOWN_MENU', 'Giù'); + define('_XMAP_ADD_MENU', 'Aggiungi menu'); + define('_XMAP_COPY_OF', 'Copia di %s'); + define('_XMAP_INFO_LAST_VISIT', 'Ultima visita'); + define('_XMAP_INFO_COUNT_VIEWS', 'Numero di visite'); + define('_XMAP_INFO_TOTAL_LINKS', 'Numero di link'); + define('_XMAP_CFG_URLS', 'URL Sitemap'); + define('_XMAP_XML_LINK_TIP', 'Copia link e segnala a Google e Yahoo'); + define('_XMAP_HTML_LINK_TIP', 'Questo è l’URL della Sitemap. Puoi utilizzarlo per creare delle voci nel tuo menu.'); + define('_XMAP_CFG_XML_MAP', 'XML Sitemap'); + define('_XMAP_CFG_HTML_MAP', 'HTML Sitemap'); + define('_XMAP_XML_LINK', 'Googlelink'); + define('_XMAP_CFG_XML_MAP_TIP', 'Il file XML generato per i motori di ricerca'); + define('_XMAP_ADD', 'Salva'); + define('_XMAP_CANCEL', 'Annula'); + define('_XMAP_LOADING', 'Caricamento...'); + define('_XMAP_CACHE', 'Cache'); + define('_XMAP_USE_CACHE', 'Usa Cache'); + define('_XMAP_CACHE_LIFE_TIME', 'Durata cache'); + define('_XMAP_NEVER_VISITED', 'Mai'); + + // New on Xmap 1.1 beta 1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Attenzione: installare estensioni di terze parti possono compromettere la sicurezza del tuo server.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Installa nuovo plugin'); + define('_XMAP_UNKNOWN_AUTHOR','Autore sconosciuto'); + define('_XMAP_PLUGIN_VERSION','Versione %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Installa'); + define('_XMAP_TAB_EXTENSIONS','Estensioni'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Estensioni Installate'); + define('_XMAP_NO_PLUGINS_INSTALLED','Nessun plugin personalizzato installato'); + define('_XMAP_AUTHOR','Autore'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Sei sicuro di voler eliminare questa sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Sei certo di voler rimuovere questo plugin?'); + define('_XMAP_UNINSTALL','Rimuovi'); + define('_XMAP_EXT_PUBLISHED','Pubblicato'); + define('_XMAP_EXT_UNPUBLISHED','Non pubblicato'); + define('_XMAP_PLUGIN_OPTIONS','Opzioni'); + define('_XMAP_EXT_INSTALLED_MSG','L’estensione è stata installata correttamente. Ora puoi controllarne le opzioni e pubblicarla.'); + define('_XMAP_CONTINUE','Continua'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Non includere il CSS all’interno della Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Usa la visualizzazione XML Sitemap classica'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Seleziona una cartella'); + define('_XMAP_UPLOAD_PKG_FILE','Carica un pacchetto file'); + define('_XMAP_UPLOAD_AND_INSTALL','Carica file & Installa'); + define('_XMAP_INSTALL_F_DIRECTORY','Installa dalla cartella'); + define('_XMAP_INSTALL_DIRECTORY','Cartella d’installazione'); + define('_XMAP_INSTALL','Installa'); + define('_XMAP_WRITEABLE','Scrivibile'); + define('_XMAP_UNWRITEABLE','Non scrivibile'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compressione'); + define('_XMAP_USE_COMPRESSION','Comprimi la Sitemap XML per risparmiare banda'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'URL della Sitemap News.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} + diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/polish.php b/oss/joomla/trunk/administrator/components/com_xmap/language/polish.php new file mode 100644 index 00000000..5db01f1f --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/polish.php @@ -0,0 +1,185 @@ +<?php +/* @package Xmap + * @author Guillermo Vargas, http://joomla.vargas.co.cr + */ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_COM_TITLE', 'Konfiguracja Xmap'); + define('_XMAP_CFG_OPTIONS', 'Opcje wyswietlania'); + define('_XMAP_CFG_CSS_CLASSNAME', 'Nazwa klasy CSS'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'Rozwin kategorie zawartosci'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'Rozwin sekcje zawartosci'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Pokaz tytuly menu'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Liczba kolumn'); + define('_XMAP_EX_LINK', 'Zaznacz linki zewnetrzne'); + define('_XMAP_CFG_CLICK_HERE', 'Kliknij tutaj'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google Sitemap'); + define('_XMAP_EXCLUDE_MENU', 'Wyklucz ID pozycji w menu'); + define('_XMAP_TAB_DISPLAY', 'Wyswietl'); + define('_XMAP_TAB_MENUS', 'Menu'); + define('_XMAP_CFG_WRITEABLE', 'Zapisywalny'); + define('_XMAP_CFG_UNWRITEABLE', 'Niezapisywalny'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Ustaw niezapisywalny po zapisaniu'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Pomin ograniczenia zapisu podczas zapisywania'); + define('_XMAP_GOOGLE_LINK', 'Googlelink'); + define('_XMAP_CFG_INCLUDE_LINK', 'Pokaz link do autora'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Wybierz te ID pozycji w menu, które chcesz wykluczyc z mapy strony.<br +/><strong>UWAGA:</strong><br />Oddzielaj ID przecinkami!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Ustaw kolejnosc wyswietlania menu'); + define('_XMAP_CFG_MENU_SHOW', 'Wyswietl'); + define('_XMAP_CFG_MENU_REORDER', 'Ulóz ponownie'); + define('_XMAP_CFG_MENU_ORDER', 'Ulóz'); + define('_XMAP_CFG_MENU_NAME', 'Nazwa Menu'); + define('_XMAP_CFG_DISABLE', 'Kliknij aby wylaczyc'); + define('_XMAP_CFG_ENABLE', 'Kliknij aby wlaczyc'); + define('_XMAP_SHOW', 'Wyswietl'); + define('_XMAP_NO_SHOW', 'Nie wyswietlaj'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Zapisz'); + define('_XMAP_TOOLBAR_CANCEL', 'Zrezygnuj'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', ' Nie znaleziono pliku jezyka [ %s ], zaladowano jezyk domyslny: Polish<br +/>'); + define('_XMAP_ERR_CONF_SAVE', 'ERROR: Nie udalo sie zapisac konfiguracji.'); + define('_XMAP_ERR_NO_CREATE', 'ERROR: Nie udalo sie utworzyc tabeli ustawien'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'ERROR: Nie udalo sie wpisac Ustawien domyslnych'); + define('_XMAP_ERR_NO_PREV_BU', 'WARNING: Nie udalo sie usunac poprzedniej kopii zapasowej'); + define('_XMAP_ERR_NO_BACKUP', 'ERROR: Nie udalo sie utworzyc kopii zapasowej'); + define('_XMAP_ERR_NO_DROP_DB', 'ERROR: Nie udalo sie usunac yabeli ustawien'); + define('_XMAP_ERR_NO_SETTINGS', 'ERROR: Nie udalo sie zaladowac ustawien z bazy danych: <a href="%s">Utwórz +tabele ustawien</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Ustawienia przywrócono'); + define('_XMAP_MSG_SET_BACKEDUP', 'Ustawienia zapisano'); + define('_XMAP_MSG_SET_DB_CREATED', 'Utworzono tabele ustawien'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Wpisano ustawienia domyslne'); + define('_XMAP_MSG_SET_DB_DROPPED','Tabele Xmap zostaly zapisane!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'CSS Xmap'); + define('_XMAP_CSS_EDIT', 'Edytuj szablon'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Linki otwieraja nowe okno'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Pokazane na stronie'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Pokazane w mapie strony XML'); + define('_XMAP_CFG_MENU_PRIORITY', 'Prioritet'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Zmien czestotliwosc'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Zawsze'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Co godzine'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Codziennie'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Co tydzien'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Co miesiac'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Co rok'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Brak'); + + define('_XMAP_TIT_SETTINGS_OF', 'Preferencje dla %s'); + define('_XMAP_TAB_SITEMAPS', 'Mapy strony'); + define('_XMAP_MSG_NO_SITEMAPS', 'Nie ma jeszcze utworzonych map strony'); + define('_XMAP_MSG_NO_SITEMAP', 'Ta mapa strony jest niedostepna'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Ladowanie preferencji...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Blad. Nie mozna zaladowac mapy strony'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Blad. Nie mozna zapisac wlasciwosci mapy strony.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Blad. Nie mozna wyczyscic pamieci podrecznej mapy strony'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Nie mozna skasowac domyslnej mapy strony!'); + define('_XMAP_MSG_CACHE_CLEANED', 'Pamiec podreczna zostala wyczyszczona!'); + define('_XMAP_CHARSET', 'ISO-8859-2'); + define('_XMAP_SITEMAP_ID', 'ID mapy strony'); + define('_XMAP_ADD_SITEMAP', 'Dodaj mape strony'); + define('_XMAP_NAME_NEW_SITEMAP', 'Nowa mapa strony'); + define('_XMAP_DELETE_SITEMAP', 'Usun'); + define('_XMAP_SETTINGS_SITEMAP', 'Preferencje'); + define('_XMAP_COPY_SITEMAP', 'Kopiuj'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Ustawienia domyslne'); + define('_XMAP_EDIT_MENU', 'Opcje'); + define('_XMAP_DELETE_MENU', 'Usun'); + define('_XMAP_CLEAR_CACHE', 'Wyczysc pamiec podreczna'); + define('_XMAP_MOVEUP_MENU', 'Do góry'); + define('_XMAP_MOVEDOWN_MENU', 'Do dolu'); + define('_XMAP_ADD_MENU', 'Dodaj menu'); + define('_XMAP_COPY_OF', 'Kopia %s'); + define('_XMAP_INFO_LAST_VISIT', 'Ostatnie wejscie'); + define('_XMAP_INFO_COUNT_VIEWS', 'Liczba wejsc'); + define('_XMAP_INFO_TOTAL_LINKS', 'Liczba linków'); + define('_XMAP_CFG_URLS', 'URL mapy strony'); + define('_XMAP_XML_LINK_TIP', 'Skopiuj link I wyslij go do Google i Yahoo'); + define('_XMAP_HTML_LINK_TIP', 'To jest URL mapy strony. Mozesz go uzyc aby dodac nowa pozycje w Twoim menu.'); + define('_XMAP_CFG_XML_MAP', 'Format XML'); + define('_XMAP_CFG_HTML_MAP', 'Format HTML'); + define('_XMAP_XML_LINK', 'Googlelink'); + define('_XMAP_CFG_XML_MAP_TIP', 'Plik XML utworzony na potrzeby wyszukiwarek'); + define('_XMAP_ADD', 'Zapisz'); + define('_XMAP_CANCEL', 'Zrezygnuj'); + define('_XMAP_LOADING', 'Laduje...'); + define('_XMAP_CACHE', 'Pamiec podreczna'); + define('_XMAP_USE_CACHE', 'Uzywaj pamieci podrecznej'); + define('_XMAP_CACHE_LIFE_TIME', 'Czas wygasania zawartosci pamieci podrecznej'); + define('_XMAP_NEVER_VISITED', 'Brak'); + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/portuguese.php b/oss/joomla/trunk/administrator/components/com_xmap/language/portuguese.php new file mode 100644 index 00000000..018af45c --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/portuguese.php @@ -0,0 +1,186 @@ +<?php +/** + * @package xmap + * @author: Guillermo Vargas, http://joomla.vargas.co.cr + * translated by: Andr?s Victoria Ortega +*/ + + +defined( '_JEXEC' ) or die( 'O acesso direto a esta p?gina n?o foi autorizado' ); + +if( !defined( 'JOOMAP_LANG' )) { + define ('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define("_XMAP_CFG_COM_TITLE", "Configura??o de Xmap"); + define("_XMAP_CFG_OPTIONS", "Op??es de configura??o"); + define("_XMAP_CFG_TITLE", "T?tulo"); + define("_XMAP_CFG_CSS_CLASSNAME", "Nome da clsase CSS"); + define("_XMAP_CFG_EXPAND_CATEGORIES","Expandir o conte?do das categorias"); + define("_XMAP_CFG_EXPAND_SECTIONS","Expandir o conte?do das se??es"); + define("_XMAP_CFG_SHOW_MENU_TITLES", "Mostrar os t?tulos dos menus"); + define("_XMAP_CFG_NUMBER_COLUMNS", "N?mero de colunas"); + define('_XMAP_EX_LINK', 'Marcar links externos'); + define('_XMAP_CFG_CLICK_HERE', 'Clique aqui'); + define('_XMAP_EXCLUDE_MENU', 'Excluir IDs do menu'); + define('_XMAP_TAB_DISPLAY', 'Mostrar'); + define('_XMAP_TAB_MENUS', 'Menus'); + define('_XMAP_CFG_WRITEABLE', 'N?o protegido contra escrita'); + define('_XMAP_CFG_UNWRITEABLE', 'Protegido contra escrita'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Ap?s salvar, marcar como [ <span style="color: red;">protegido contra escrita</span> ]'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Anular a prote??o contra escrita ao salvar'); + define('_XMAP_CFG_INCLUDE_LINK', 'Links invis?veis ao autor'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Especificar os IDs do menu que n?o deseja incluir no mapa do site.<br /><strong>NOTA</strong><br />Separe os IDs por v?rgulas!'); + + // -- Menus -------------------------------------------------------------------- + define("_XMAP_CFG_SET_ORDER", "Selecionar a ordem na qual ser?o mostrados os menus"); + define("_XMAP_CFG_MENU_SHOW", "Mostrar"); + define("_XMAP_CFG_MENU_REORDER", "Reordenar"); + define("_XMAP_CFG_MENU_ORDER", "Ordenar"); + define("_XMAP_CFG_MENU_NAME", "Nome do Menu"); + define("_XMAP_CFG_DISABLE", "Clique para desativar"); + define("_XMAP_CFG_ENABLE", "Clique para ativar"); + define('_XMAP_SHOW','Mostrar'); + define('_XMAP_NO_SHOW','N?o mostrar'); + + // -- Toolbar ------------------------------------------------------------------ + define("_XMAP_TOOLBAR_SAVE", "Salvar"); + define("_XMAP_TOOLBAR_CANCEL", "Cancelar"); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG','L?ngua [ %s ] n?o encontrada, usando a l?ngua default: ingl?s<br />'); // %s = $GLOBALS['mosConfig_lang'] + define('_XMAP_ERR_CONF_SAVE', '<h2>Erro ao salvar a configura??o.</h2>'); + define('_XMAP_ERR_NO_CREATE', 'ERRO: N?o foi poss?vel criar a tabela de op??es'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'ERRO: N?o foi poss?vel inserir as op??es default'); + define('_XMAP_ERR_NO_PREV_BU', 'ATEN??O: N?o foi poss?vel apagar a c?pia de seguran?a anterior'); + define('_XMAP_ERR_NO_BACKUP', 'ERRO: N?o foi poss?vel criar a c?pia de seguran?a'); + define('_XMAP_ERR_NO_DROP_DB', 'ERRO: N?o foi poss?vel apagar a tabela de op??es'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Op??es restauradas<br />'); + define('_XMAP_MSG_SET_BACKEDUP', 'Op??es salvas<br />'); + define('_XMAP_MSG_SET_DB_CREATED', 'Tabela de op??es criada<br />'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Op??es default inseridas'); + define('_XMAP_MSG_SET_DB_DROPPED', 'Tabela de op??es salva!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Editar modelo'); // Edit template + + // -- Sitemap ------------------------------------------------------------------ + define('_XMAP_SHOW_AS_EXTERN_ALT','O link se abre em uma nova janela'); + define('_XMAP_PREVIEW','Previsualiza??o'); + define('_XMAP_SITEMAP_NAME','Mapa do site'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Mostrar o site'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Mostrar no Sitemap XML'); + define('_XMAP_CFG_MENU_PRIORITY', 'Prioridade'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Freq??ncia de Atualiza??o'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Sempre'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Hor?ria'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Di?ria'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Semanal'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Mensal'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Anual'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Nunca'); + + define('_XMAP_TIT_SETTINGS_OF', 'Prefer?ncias para %s'); + define('_XMAP_TAB_SITEMAPS', 'Sitemaps'); + define('_XMAP_MSG_NO_SITEMAPS', 'Nenhum Sitemap criado ainda'); + define('_XMAP_MSG_NO_SITEMAP', 'Este mapa n?o se encontra dispon?vel'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Carregando as prefer?ncias...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'ERRO: N?o foi poss?vel carregar o mapa indicado'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'ERRO: N?o foi poss?vel salvar a propiedade para o sitemap'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'ERRO: N?o foi poss?vel limpar o cache do sitemap'); + define('_XMAP_MSG_CACHE_CLEANED', 'O cache foi limpo com sucesso!'); + define('_XMAP_CHARSET', 'ISO-8859-1'); + define('_XMAP_SITEMAP_ID', 'ID do Sitemap'); + define('_XMAP_ADD_SITEMAP', 'Adicionar Sitemap'); + define('_XMAP_NAME_NEW_SITEMAP', 'Novo Sitemap'); + define('_XMAP_DELETE_SITEMAP', 'Apagar'); + define('_XMAP_SETTINGS_SITEMAP', 'Prefer?ncias'); + define('_XMAP_COPY_SITEMAP', 'Duplicar'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Marcar como Default'); + define('_XMAP_EDIT_MENU', 'Op??es'); + define('_XMAP_DELETE_MENU', 'Sair'); + define('_XMAP_CLEAR_CACHE', 'Limpar Cache'); + define('_XMAP_MOVEUP_MENU', 'Para cima'); + define('_XMAP_MOVEDOWN_MENU', 'Para baixo'); + define('_XMAP_ADD_MENU', 'Adicionar Menus'); + define('_XMAP_COPY_OF', 'C?pia de %s'); + define('_XMAP_INFO_LAST_VISIT', '?ltima Visita'); + define('_XMAP_INFO_COUNT_VIEWS', 'N?mero de Visitas'); + define('_XMAP_INFO_TOTAL_LINKS', 'Quantidade de links'); + define('_XMAP_CFG_URLS', 'URLs do Sitemap'); + define('_XMAP_XML_LINK_TIP', 'Copie o link e o envie a buscadores como Google e Yahoo'); + define('_XMAP_CFG_XML_MAP', 'XML Sitemap'); + + define('_XMAP_CFG_HTML_MAP', 'HTML Sitemap'); + define('_XMAP_XML_LINK', 'Googlelink'); + define('_XMAP_CFG_XML_MAP_TIP', 'Arquivo XML gerado para o mapa do site.'); + define('_XMAP_HTML_LINK_TIP', 'Esta ? a URL do Sitemap. Use-a para criar itens em seus menus.'); + define('_XMAP_ADD', 'Salvar'); + define('_XMAP_CANCEL', 'Cancelar'); + define('_XMAP_LOADING', 'Carregando...'); + define('_XMAP_CACHE', 'Cache'); + define('_XMAP_USE_CACHE', 'Utilizar Cache'); + define('_XMAP_CACHE_LIFE_TIME', 'Tempo do Cache'); + define('_XMAP_NEVER_VISITED', 'Nunca'); + define('_XMAP_MSG_SET_DB_DROPPED','As tabelas do Xmap foram salvas!'); + + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/romanian.php b/oss/joomla/trunk/administrator/components/com_xmap/language/romanian.php new file mode 100644 index 00000000..a4543232 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/romanian.php @@ -0,0 +1,183 @@ +<?php +/* @package Xmap + * @author Bogdan Ionut Georgescu + * @email georgescu_bogdan@hotmail.com +*/ +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define ('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define("_XMAP_CFG_COM_TITLE", "Configurare Xmap"); + define("_XMAP_CFG_OPTIONS", "Vizualizare optiuni"); + define("_XMAP_CFG_TITLE", "Titlu"); + define("_XMAP_CFG_CSS_CLASSNAME", "Nume clasa CSS"); + define("_XMAP_CFG_EXPAND_CATEGORIES","Expandeaza categoriile"); + define("_XMAP_CFG_EXPAND_SECTIONS","Expandeaza sectiunile"); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Arata titlurile meniurilor'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Numarul de coloane'); + define('_XMAP_EX_LINK', 'Marcheaza link-urile externe'); + define('_XMAP_CFG_CLICK_HERE', 'Click aici'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google Sitemap'); + define('_XMAP_EXCLUDE_MENU', 'Exclude ID-urile'); + define('_XMAP_TAB_DISPLAY', 'Afiseaza'); + define('_XMAP_TAB_MENUS', 'Meniuri'); + define('_XMAP_CFG_WRITEABLE', 'Neprotejat la scriere'); + define('_XMAP_CFG_UNWRITEABLE', 'Protejat la scriere'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Protejeaza la scriere dupa salvare'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Suprascrie protectia la scriere dupa salvare'); + define('_XMAP_GOOGLE_LINK', 'link Google'); + define('_XMAP_CFG_INCLUDE_LINK', 'Arata link catre autor'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Specifica ID-urile meniurilor ce nu doresti sa fie incluse.<br /><strong>NOTA</strong><br />Separa ID-urile cu virgula!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Arata ordinea de afisare a meniurilor'); + define('_XMAP_CFG_MENU_SHOW', 'Arata'); + define('_XMAP_CFG_MENU_REORDER', 'Reordoneaza'); + define('_XMAP_CFG_MENU_ORDER', 'Ordoneaza'); + define('_XMAP_CFG_MENU_NAME', 'Nume meniu'); + define('_XMAP_CFG_DISABLE', 'Dezactivare'); + define('_XMAP_CFG_ENABLE', 'Activare'); + define('_XMAP_SHOW', 'Arata'); + define('_XMAP_NO_SHOW', 'Ascunde'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Salveaza'); + define('_XMAP_TOOLBAR_CANCEL', 'Anuleaza'); + + // -- EROAREs ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', 'Limbajul [ %s ] nu a fost gasit, a fost incarcat limbajul: english<br />'); + define('_XMAP_ERR_CONF_SAVE', 'EROARE: Configurarea nu a putut fi salvata'); + define('_XMAP_ERR_NO_CREATE', 'EROARE: Tabela de setari nu a putut fi creata'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'EROARE: Nu au putut fi inserate setarile implicite'); + define('_XMAP_ERR_NO_PREV_BU', 'ATENTIE: Nu s-a putut renunta la arhivarea anterioara'); + define('_XMAP_ERR_NO_BACKUP', 'EROARE: Nu am putut crea arhivarea'); + define('_XMAP_ERR_NO_DROP_DB', 'EROARE: Nu s-a putut renunta la tabela de setari'); + define('_XMAP_ERR_NO_SETTINGS', 'EROARE: Nu au putut fi incarcate tabela cu setari: <a href="%s">Creeaza tabela</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Setari au fost restaurate'); + define('_XMAP_MSG_SET_BACKEDUP', 'Setari au fost salvate'); + define('_XMAP_MSG_SET_DB_CREATED', 'Tabela cu setari a fost creata'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Setarile implicite au fost inserate'); + define('_XMAP_MSG_SET_DB_DROPPED','Tabelele Xmap au fost salvate!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Editeaza template'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Link opens new window'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Afisat pe site'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Afiseaza in harta Xmap'); + define('_XMAP_CFG_MENU_PRIORITY', 'Prioritate'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Modifica frecventa'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Always'); // Not to be translated + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Hourly'); // Not to be translated + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Daily'); // Not to be translated + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Weekly'); // Not to be translated + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Monthly'); // Not to be translated + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Yearly'); // Not to be translated + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Never'); // Not to be translated + + define('_XMAP_TIT_SETTINGS_OF', 'Preferinte pentru %s'); + define('_XMAP_TAB_SITEMAPS', 'Harti'); + define('_XMAP_MSG_NO_SITEMAPS', 'Nu a fost creata o harta a site-ului, inca'); + define('_XMAP_MSG_NO_SITEMAP', 'Aceasta harta nu este disponibila'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Se incarca preferintele...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'EROARE. Harta nu a putut fi incarcata'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'EROARE. Proprietatile hartii nu au putut fi salvate'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'EROARE. Cache-ul hartii nu a putut fi golit'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Harta implicita nu poate fi stearsa!'); + define('_XMAP_MSG_CACHE_CLEANED', 'Cache-ul a fost golit!'); + define('_XMAP_CHARSET', 'ISO-8859-1'); + define('_XMAP_SITEMAP_ID', 'ID-ul hartii'); + define('_XMAP_ADD_SITEMAP', 'Adauga harta'); + define('_XMAP_NAME_NEW_SITEMAP', 'Harta noua'); + define('_XMAP_DELETE_SITEMAP', 'Sterge'); + define('_XMAP_SETTINGS_SITEMAP', 'Preferinte'); + define('_XMAP_COPY_SITEMAP', 'Copiaza'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Seteaza implicit'); + define('_XMAP_EDIT_MENU', 'Optiuni'); + define('_XMAP_DELETE_MENU', 'Sterge'); + define('_XMAP_CLEAR_CACHE', 'Goleste cache'); + define('_XMAP_MOVEUP_MENU', 'Sus'); + define('_XMAP_MOVEDOWN_MENU', 'Jos'); + define('_XMAP_ADD_MENU', 'Adauga meniuri'); + define('_XMAP_COPY_OF', 'Copie a %s'); + define('_XMAP_INFO_LAST_VISIT', 'Ultima vizita'); + define('_XMAP_INFO_COUNT_VIEWS', 'Numarul de vizite'); + define('_XMAP_INFO_TOTAL_LINKS', 'Numarul de link-uri'); + define('_XMAP_CFG_URLS', 'URL-ul hartii'); + define('_XMAP_XML_LINK_TIP', 'Copiaza link-ul si trimite-l la Google si Yahoo'); + define('_XMAP_HTML_LINK_TIP', 'Acesta este URL-ul hartii. Il poti folosi pentru a crea entitati in meniul tau.'); + define('_XMAP_CFG_XML_MAP', 'Harta XML'); + define('_XMAP_CFG_HTML_MAP', 'Harta HTML'); + define('_XMAP_XML_LINK', 'link Google'); + define('_XMAP_CFG_XML_MAP_TIP', 'Fisierul XML generat pentru motoarele de cautare'); + define('_XMAP_ADD', 'Salveaza'); + define('_XMAP_CANCEL', 'Anuleaza'); + define('_XMAP_LOADING', 'Se incarca...'); + define('_XMAP_CACHE', 'Cache'); + define('_XMAP_USE_CACHE', 'Foloseste Cache'); + define('_XMAP_CACHE_LIFE_TIME', 'Durata de valabilitate a Cache-ului'); + define('_XMAP_NEVER_VISITED', 'Niciodata'); + + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/russian.php b/oss/joomla/trunk/administrator/components/com_xmap/language/russian.php new file mode 100644 index 00000000..c5ee002a --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/russian.php @@ -0,0 +1,184 @@ +<?php +/* @package Xmap + * @author Guillermo Vargas, http://joomla.vargas.co.cr/ + * @translator Oleg Eneev, Oleg.Eneev@gmail.com + * @translator Michael Grigorev, sleuthhound@gmail.com +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1 ); + + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_OPTIONS', 'Настройки отображения'); + define('_XMAP_CFG_CSS_CLASSNAME', 'Имя класса CSS'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'Раскрывать категории'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'Раскрывать разделы'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Показывать заголовки меню'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Количество колонок'); + define('_XMAP_EX_LINK', 'Пометить внешние ссылки'); + define('_XMAP_CFG_CLICK_HERE', 'Нажмите здесь'); + define('_XMAP_CFG_GOOGLE_MAP', 'Карта сайта Google'); + define('_XMAP_EXCLUDE_MENU', 'Исключить пункты меню (по ID)'); + define('_XMAP_TAB_DISPLAY', 'Показать'); + define('_XMAP_TAB_MENUS', 'Меню'); + define('_XMAP_CFG_WRITEABLE', 'Доступен на запись'); + define('_XMAP_CFG_UNWRITEABLE', 'Недоступен на запись'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Сделать недоступным для записи после сохранения'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Преодолеть запрет на запись при сохранении'); + define('_XMAP_GOOGLE_LINK', 'Ссылка для Google'); + define('_XMAP_CFG_INCLUDE_LINK', 'Показать ссылку на сайт разработчика'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Укажите идентификаторы (ID) меню, которые вы хотели бы исключить из карты сайта.<br /><strong>Примечание:</strong><br />Разделяйте идентификаторы (ID) запятыми!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Установить порядок отображения меню'); + define('_XMAP_CFG_MENU_SHOW', 'Показать'); + define('_XMAP_CFG_MENU_REORDER', 'Упорядочить'); + define('_XMAP_CFG_MENU_ORDER', 'Порядок'); + define('_XMAP_CFG_MENU_NAME', 'Имя меню'); + define('_XMAP_CFG_DISABLE', 'Нажмите, чтобы отключить'); + define('_XMAP_CFG_ENABLE', 'Нажмите, чтобы включить'); + define('_XMAP_SHOW', 'Показать'); + define('_XMAP_NO_SHOW', 'Не показывать'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Сохранить'); + define('_XMAP_TOOLBAR_CANCEL', 'Отменить'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', '[ %s ] языковой файл не найден, по умолчанию загружен английский<br />'); + define('_XMAP_ERR_CONF_SAVE', 'ERROR: Невозможно сохранить настройки.'); + define('_XMAP_ERR_NO_CREATE', 'ERROR: Невозможно создать таблицу настроек'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'ERROR: Невозможно вставить (в таблицу БД) настройки по умолчанию'); + define('_XMAP_ERR_NO_PREV_BU', 'WARNING: Невозможно очистить предыдущую резервную копию'); + define('_XMAP_ERR_NO_BACKUP', 'ERROR: Невозможно создать резервную копию'); + define('_XMAP_ERR_NO_DROP_DB', 'ERROR: Невозможно удалить таблицу настроек'); + define('_XMAP_ERR_NO_SETTINGS', 'ERROR: Невозможно загрузить настройки из БД: <a href="%s">Создать таблицу настроек</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Настройки восстановлены'); + define('_XMAP_MSG_SET_BACKEDUP', 'Настройки сохранены'); + define('_XMAP_MSG_SET_DB_CREATED', 'Создана таблица настроек'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Установлены настройки по умолчанию'); + define('_XMAP_MSG_SET_DB_DROPPED','Таблицы карты сайта сохранены!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Стили CSS карты сайта'); + define('_XMAP_CSS_EDIT', 'Редактировать шаблон'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Открывать ссылки в новом окне'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Показаны на сайте'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Показывать в карте сайта на XML'); + define('_XMAP_CFG_MENU_PRIORITY', 'Приоритет'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Изменить частоту'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Всегда'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Каждый час'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Ежедневно'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Каждую неделю'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Каждый месяц'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Каждый год'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Никогда'); + + define('_XMAP_TIT_SETTINGS_OF', 'Установки для %s'); + define('_XMAP_TAB_SITEMAPS', 'Карты сайта'); + define('_XMAP_MSG_NO_SITEMAPS', 'Карта сайта еще не создана'); + define('_XMAP_MSG_NO_SITEMAP', 'Эта карта сайта недоступна'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Загрузка установок...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Ошибка. Невозможно загрузить карту сайта'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Ошибка. Невозможно сохранить свойство карты сатйа.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Ошибка. Невозможно сбросить кэш карты сайта'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Невозможно удалить карту сайта по умолчанию!'); + define('_XMAP_MSG_CACHE_CLEANED', 'Кэш сброшен!'); + define('_XMAP_CHARSET', 'UTF-8'); + define('_XMAP_SITEMAP_ID', 'Идентияикатор (ID) карты сайта'); + define('_XMAP_ADD_SITEMAP', 'Добавить карту сайта'); + define('_XMAP_NAME_NEW_SITEMAP', 'Новая карта сайта'); + define('_XMAP_DELETE_SITEMAP', 'Удалить'); + define('_XMAP_SETTINGS_SITEMAP', 'Установки'); + define('_XMAP_COPY_SITEMAP', 'Копировать'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Установить значение по умолчанию'); + define('_XMAP_EDIT_MENU', 'Изменить'); + define('_XMAP_DELETE_MENU', 'Удалить'); + define('_XMAP_CLEAR_CACHE', 'Сбросить кэш'); + define('_XMAP_MOVEUP_MENU', 'Вверх'); + define('_XMAP_MOVEDOWN_MENU', 'Вниз'); + define('_XMAP_ADD_MENU', 'Добавить меню'); + define('_XMAP_COPY_OF', 'Копия %s'); + define('_XMAP_INFO_LAST_VISIT', 'Последнее посещение'); + define('_XMAP_INFO_COUNT_VIEWS', 'Количество посещений'); + define('_XMAP_INFO_TOTAL_LINKS', 'Количество ссылок'); + define('_XMAP_CFG_URLS', 'Ссылка (URL) на карту сайта'); + define('_XMAP_XML_LINK_TIP', 'Скопируйте эту ссылку и сообщите Google и Yahoo'); + define('_XMAP_HTML_LINK_TIP', 'Это ссылка на карту сайта. Вы можете использовать ее для создания пунктов меню.'); + define('_XMAP_CFG_XML_MAP', 'Карта сайта на XML '); + define('_XMAP_CFG_HTML_MAP', 'Катра сайта в HTML'); + define('_XMAP_XML_LINK', 'Ссылка для Google'); + define('_XMAP_CFG_XML_MAP_TIP', 'XML-файл для поисковых машин создан'); + define('_XMAP_ADD', 'Сохранить'); + define('_XMAP_CANCEL', 'Отменить'); + define('_XMAP_LOADING', 'Загрузка...'); + define('_XMAP_CACHE', 'Кэширование'); + define('_XMAP_USE_CACHE', 'Использовать кэширование'); + define('_XMAP_CACHE_LIFE_TIME', 'Время жизни кэша'); + define('_XMAP_NEVER_VISITED', 'Никогда'); + + // New on Xmap 1.1 beta 1 + define('_XMAP_PLUGINS','Расширения (Plugins)'); + define( '_XMAP_INSTALL_3PD_WARN', 'Внимание: Установка сторонних расширений может нарушить безопасность вашего сервера.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Установить новые расширения'); + define('_XMAP_UNKNOWN_AUTHOR','Неизвестный автор'); + define('_XMAP_PLUGIN_VERSION','Версия %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Установка'); + define('_XMAP_TAB_EXTENSIONS','Расширения (Extensions)'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Установленные расширения (Extensions)'); + define('_XMAP_NO_PLUGINS_INSTALLED','Дополнительные расширения (plugins) не установлены'); + define('_XMAP_AUTHOR','Автор'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Вы действительно хотите удалить эту карту сайта?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Вы действительно хотите удалить это расширение (plugin)?'); + define('_XMAP_UNINSTALL','Удалить'); + define('_XMAP_EXT_PUBLISHED','Опубликовано'); + define('_XMAP_EXT_UNPUBLISHED','Скрыто'); + define('_XMAP_PLUGIN_OPTIONS','Настройки'); + define('_XMAP_EXT_INSTALLED_MSG','Расширение (extension) успешно установлено, проверьте его настройки, затем опубликуйте это расширение.'); + define('_XMAP_CONTINUE','Продолжить'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Не подключать CSS в карте сайта'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Использовать классическое отображение карты сайта на XML'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Выберите каталог'); + define('_XMAP_UPLOAD_PKG_FILE','Загрузить файл пакета'); + define('_XMAP_UPLOAD_AND_INSTALL','Загрузить файл & Установить'); + define('_XMAP_INSTALL_F_DIRECTORY','Установить из каталога'); + define('_XMAP_INSTALL_DIRECTORY','Каталог установкиы'); + define('_XMAP_INSTALL','Установить'); + define('_XMAP_WRITEABLE','Доступен на запись'); + define('_XMAP_UNWRITEABLE','Недоступен на запись'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Сжатие'); + define('_XMAP_USE_COMPRESSION','Сжать XML карту сайта, для увеличения пропускной способности.'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP','Новости Карты сайта'); + define('_XMAP_NEWS_LINK_TIP','Это новости Карты сайта.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE','Модуль'); + define('_XMAP_CFG_MENU_MODULE_TIP','Укажите модуль который Вы используете, чтобы показать меню на своем сайте (По умолчанию: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT','Текст ссылки'); + define('_XMAP_TITLE','Заголовок ссылки'); + define('_XMAP_LINK','URL ссылки'); + define('_XMAP_CSS_STYLE','CSS стиль'); + define('_XMAP_CSS_CLASS','CSS класс'); + define('_XMAP_INVALID_SITEMAP','Неверная Карта сайта'); + define('_XMAP_OK', 'ОК'); + +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/spanish.php b/oss/joomla/trunk/administrator/components/com_xmap/language/spanish.php new file mode 100644 index 00000000..70aea7d4 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/spanish.php @@ -0,0 +1,187 @@ +<?php +/** + * $Id: spanish.php 41 2009-07-23 20:50:14Z guilleva $ + * $LastChangedDate: 2009-07-23 14:50:14 -0600 (jue, 23 jul 2009) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * a sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + +defined( '_JEXEC' ) or die( 'No se permite el acceso directo a esta posición.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define ('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define("_XMAP_CFG_COM_TITLE", "Configuración de Xmap"); + define("_XMAP_CFG_OPTIONS", "Opciones de configuración"); + define("_XMAP_CFG_TITLE", "Título"); + define("_XMAP_CFG_CSS_CLASSNAME", "Nombre de la clase CSS"); + define("_XMAP_CFG_EXPAND_CATEGORIES","Expandir el contenido de las categorías"); + define("_XMAP_CFG_EXPAND_SECTIONS","Expandir el contenido de las secciones"); + define("_XMAP_CFG_SHOW_MENU_TITLES", "Mostrar los títulos de los menús"); + define("_XMAP_CFG_NUMBER_COLUMNS", "Número de columnas"); + define('_XMAP_EX_LINK', 'Marcar enlaces externos'); + define('_XMAP_CFG_CLICK_HERE', 'Pulse aquí'); + define('_XMAP_EXCLUDE_MENU', 'Excluir IDs del menú'); + define('_XMAP_TAB_DISPLAY', 'Mostrar'); + define('_XMAP_TAB_MENUS', 'Menús'); + define('_XMAP_CFG_WRITEABLE', 'No protegido contra escritura'); + define('_XMAP_CFG_UNWRITEABLE', 'Protegido contra escritura'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Tras grabarlo marcarlo como [ <span style="color: red;">protegido contra escritura</span> ]'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Anular la protección contra escritura al grabar'); + define('_XMAP_CFG_INCLUDE_LINK', 'Enlace a sitio del autor'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Especifica los IDs del menú que no quiere incluir en el mapa del sitio.<br /><strong>NOTA</strong><br />¡Separe los IDs con comas!'); + + // -- Menus -------------------------------------------------------------------- + define("_XMAP_CFG_SET_ORDER", "Seleccionar el orden en el que se muestran los menús"); + define("_XMAP_CFG_MENU_SHOW", "Mostrar"); + define("_XMAP_CFG_MENU_REORDER", "Reordenar"); + define("_XMAP_CFG_MENU_ORDER", "Ordenar"); + define("_XMAP_CFG_MENU_NAME", "Nombre del Menú"); + define("_XMAP_CFG_DISABLE", "Pulse para desactivar"); + define("_XMAP_CFG_ENABLE", "Pulse para activar"); + define('_XMAP_SHOW','Mostrar'); + define('_XMAP_NO_SHOW','No mostrar'); + + // -- Toolbar ------------------------------------------------------------------ + define("_XMAP_TOOLBAR_SAVE", "Guardar"); + define("_XMAP_TOOLBAR_CANCEL", "Cancelar"); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG','No se ha encontrado el lenguaje [ %s ], se carga el lenguaje por defecto: inglés<br />'); // %s = $GLOBALS['mosConfig_lang'] + define('_XMAP_ERR_CONF_SAVE', '<h2>Fallo al guardar la configuración.</h2>'); + define('_XMAP_ERR_NO_CREATE', 'ERROR: No se ha podido crear la tabla de opciones'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'ERROR: No se han podido insertar las opciones por defecto'); + define('_XMAP_ERR_NO_PREV_BU', 'ATENCIÓN: No se ha podido borrar la copia de seguridad anterior'); + define('_XMAP_ERR_NO_BACKUP', 'ERROR: No se ha podido crear la copia de seguridad'); + define('_XMAP_ERR_NO_DROP_DB', 'ERROR: No se ha podido borrar la tabla de opciones'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Opciones restauradas<br />'); + define('_XMAP_MSG_SET_BACKEDUP', 'Opciones guardadas<br />'); + define('_XMAP_MSG_SET_DB_CREATED', 'Tabla de opciones creada<br />'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Opciones por defecto insertadas'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Editar plantilla'); // Edit template + + // -- Sitemap ------------------------------------------------------------------ + define('_XMAP_SHOW_AS_EXTERN_ALT','El enlace se abre en una nueva ventana'); + define('_XMAP_PREVIEW','Previsualización'); + define('_XMAP_SITEMAP_NAME','Mapa del sitio'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Mostrar en el sitio'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Mostrar en el Sitemap XML'); + define('_XMAP_CFG_MENU_PRIORITY', 'Prioridad'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Frecuencia Actualización'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Siempre'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Horaria'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Diaria'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Semanal'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Mensual'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Anual'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Nunca'); + + define('_XMAP_TIT_SETTINGS_OF', 'Preferencias para %s'); + define('_XMAP_TAB_SITEMAPS', 'Sitemaps'); + define('_XMAP_MSG_NO_SITEMAPS', 'No se han creado Sitemaps todavía'); + define('_XMAP_MSG_NO_SITEMAP', 'Este mapa no se encuentra disponible'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Cargando las preferencias...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Ha ocurrido un error. No se ha podido cargar el mapa indicado'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Ha ocurrido un error. No se ha podido guardar la propiedad para el sitemap'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Ha ocurrido un error. No se ha podido limpiar el caché del sitemap'); + define('_XMAP_MSG_CACHE_CLEANED', 'Se ha limpiado el caché correctamente!'); + define('_XMAP_CHARSET', 'UTF-8'); + define('_XMAP_SITEMAP_ID', 'ID del Sitemap'); + define('_XMAP_ADD_SITEMAP', 'Agregar Sitemap'); + define('_XMAP_NAME_NEW_SITEMAP', 'Sitemap Nuevo'); + define('_XMAP_DELETE_SITEMAP', 'Borrar'); + define('_XMAP_SETTINGS_SITEMAP', 'Preferencias'); + define('_XMAP_COPY_SITEMAP', 'Duplicar'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Predeterminar'); + define('_XMAP_EDIT_MENU', 'Opciones'); + define('_XMAP_DELETE_MENU', 'Quitar'); + define('_XMAP_CLEAR_CACHE', 'Limpiar Caché'); + define('_XMAP_MOVEUP_MENU', 'Subir'); + define('_XMAP_MOVEDOWN_MENU', 'Bajar'); + define('_XMAP_ADD_MENU', 'Agregar Menús'); + define('_XMAP_COPY_OF', 'Copia de %s'); + define('_XMAP_INFO_LAST_VISIT', 'Última Visita'); + define('_XMAP_INFO_COUNT_VIEWS', 'Numero de Visitas'); + define('_XMAP_INFO_TOTAL_LINKS', 'Cantidad de enlaces'); + define('_XMAP_CFG_URLS', 'URLs del Sitemap'); + define('_XMAP_XML_LINK_TIP', 'Copie el enlace y envíelo a los buscadores como Google y Yahoo'); + define('_XMAP_CFG_XML_MAP', 'XML Sitemap'); + + define('_XMAP_CFG_HTML_MAP', 'HTML Sitemap'); + define('_XMAP_XML_LINK', 'Googlelink'); + define('_XMAP_CFG_XML_MAP_TIP', 'Fichero XML generado para el mapa del sitio.'); + define('_XMAP_HTML_LINK_TIP', 'Este es el URL del Sitemap. Lo puede usar para crear ítems en sus menús.'); + define('_XMAP_ADD', 'Guardar'); + define('_XMAP_CANCEL', 'Cancelar'); + define('_XMAP_LOADING', 'Cargando...'); + define('_XMAP_CACHE', 'Caché'); + define('_XMAP_USE_CACHE', 'Utilizar Caché'); + define('_XMAP_CACHE_LIFE_TIME', 'Tiempo del Caché'); + define('_XMAP_NEVER_VISITED', 'Nunca'); + define('_XMAP_MSG_SET_DB_DROPPED', 'Tabla de opciones respaldada!'); + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Extensiones'); + define( '_XMAP_INSTALL_3PD_WARN', 'Precaución: Instalar extensiones desarrolladas por terceros puede comprometer la seguridad de su servidor.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Instalar nueva extensión'); + define('_XMAP_UNKNOWN_AUTHOR','Autor desconocido'); + define('_XMAP_PLUGIN_VERSION','Versión %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Instalar'); + define('_XMAP_TAB_EXTENSIONS','Extensiones'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Extensiones instaladas'); + define('_XMAP_NO_PLUGINS_INSTALLED','No hay extensiones instaladas'); + define('_XMAP_AUTHOR','Autor'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Está seguro de que desea borrar este sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Está seguro de que quiere desinstalar esta extensión?'); + define('_XMAP_UNINSTALL','Desinstalar'); + define('_XMAP_EXT_PUBLISHED','Publicado'); + define('_XMAP_EXT_UNPUBLISHED','Sin publicar'); + define('_XMAP_PLUGIN_OPTIONS','Opciones'); + define('_XMAP_EXT_INSTALLED_MSG','La extensión fue instalada correctamente. por favor revise sus opciones y luego publíquela.'); + define('_XMAP_CONTINUE','Continuar'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','No incluya los estilos CSS en el sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Utilizar el estilo clasico para el Sitemap XML'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'Este es el URL del sitemap para Google News.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Módulo'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Indique el nombre del módulo que utiliza para mostrar este menú en su sitio. Por defecto: (mod_mainmenu'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Texto Enlace'); + define('_XMAP_TITLE', 'Título Enlace'); + define('_XMAP_LINK', 'URL Enlace'); + define('_XMAP_CSS_STYLE', 'Estilo CSS'); + define('_XMAP_CSS_CLASS', 'Clase CSS'); + define('_XMAP_INVALID_SITEMAP', 'Sitemap no válido'); + define('_XMAP_OK', 'Aceptar'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/srpski.php b/oss/joomla/trunk/administrator/components/com_xmap/language/srpski.php new file mode 100644 index 00000000..18ec290c --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/srpski.php @@ -0,0 +1,185 @@ +<?php +/** + * @package Xmap + * @author Guillermo Vargas, http://joomla.vargas.co.cr/ + * @Translated by Čolović Vladan, http://www.cvladan.com +*/ + +defined( '_JEXEC' ) or die( 'Pristup ovoj lokaciji nije dozvoljen' ); + +if( !defined( 'JOOMAP_LANG' )) +{ + define('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_COM_TITLE', 'Xmap podešavanja'); + define('_XMAP_CFG_OPTIONS', 'Opcije prikaza'); + define('_XMAP_CFG_CSS_CLASSNAME', 'CSS ime class-e'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'Prikaži kategorije'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'Prikaži sekcije'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Prikaži imena menija'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Broj kolona'); + define('_XMAP_EX_LINK', 'Obeleži spoljne veze van domena'); + define('_XMAP_CFG_CLICK_HERE', 'Klikni ovdje'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google mapa'); + define('_XMAP_EXCLUDE_MENU', 'Izuzmi ID-je menija'); + define('_XMAP_TAB_DISPLAY', 'Prikaži'); + define('_XMAP_TAB_MENUS', 'Meniji'); + define('_XMAP_CFG_WRITEABLE', 'Dozvoljen upis'); + define('_XMAP_CFG_UNWRITEABLE', 'Nije dozvoljeno upisivanje'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Onemogući upis nakon snimanja'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Zaobiđi zaštitu od snimanja'); + define('_XMAP_GOOGLE_LINK', 'Google link'); + define('_XMAP_CFG_INCLUDE_LINK', 'Prikaži sakriveni link ka autoru'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Navedi ID stavki menija koji ne treba da se nalaze u mapi.<br /><strong>NAPOMENA:</strong> ID brojeve razdvoj zarezima!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Postavi redosled prikazivanja menija'); + define('_XMAP_CFG_MENU_SHOW', 'Prikaži'); + define('_XMAP_CFG_MENU_REORDER', 'Novi redosled'); + define('_XMAP_CFG_MENU_ORDER', 'Redosled'); + define('_XMAP_CFG_MENU_NAME', 'Ime menija'); + define('_XMAP_CFG_DISABLE', 'Isključi'); + define('_XMAP_CFG_ENABLE', 'Uključi'); + define('_XMAP_SHOW', 'Prikaži'); + define('_XMAP_NO_SHOW', 'Sakrij'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Sačuvaj'); + define('_XMAP_TOOLBAR_CANCEL', 'Otkaži'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', 'Jezička datoteka [ %s ] nije pronađena, pa se koristi podrazumevani jezik: english<br />'); + define('_XMAP_ERR_CONF_SAVE', 'GREŠKA: Snimanje konfiguracije nije uspelo'); + define('_XMAP_ERR_NO_CREATE', 'GREŠKA: Nemoguće je napraviti tabelu sa podešavanjima'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'GREŠKA: Nemoguće je ubaciti podrazumevane postavke'); + define('_XMAP_ERR_NO_PREV_BU', 'UPOZORENJE: Nije moguće ukloniti prethodnu sigurnosnu kopiju'); + define('_XMAP_ERR_NO_BACKUP', 'GREŠKA: Nije moguće napraviti sigurnosnu kopiju'); + define('_XMAP_ERR_NO_DROP_DB', 'GREŠKA: Nije moguće ukloniti tabelu sa podešavanjima'); + define('_XMAP_ERR_NO_SETTINGS', 'GREŠKA: Nije moguće učitati podešavanja iz baze podataka: <a href="%s">Napravi novu tabelu podešavanja</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Podešavanja su povraćena u početno stanje'); + define('_XMAP_MSG_SET_BACKEDUP', 'Podešavanja snimljena'); + define('_XMAP_MSG_SET_DB_CREATED', 'Tabela podešavanja je kreirana'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Ubačena su podrazumevana podešavanja'); + define('_XMAP_MSG_SET_DB_DROPPED', 'Tabela sa podešavanjima je obrisana!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Izmeni template'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Otvaraj linkove u novom prozoru'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Prikaži u HTML strani'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Prikaži u XML sitemapu'); + define('_XMAP_CFG_MENU_PRIORITY', 'Prioritet'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Promeni učestalost'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Uvek'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Svakoga časa'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Dnevno'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Sedmično'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Mesečno'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Godišnje'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Nikad'); + + define('_XMAP_TIT_SETTINGS_OF', 'Podešavanja za %s'); + define('_XMAP_TAB_SITEMAPS', 'Sitemap-e'); + define('_XMAP_MSG_NO_SITEMAPS', 'Nema kreiranih mapa'); + define('_XMAP_MSG_NO_SITEMAP', 'Mapa je nedostupna'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Učitavanje podešavanja...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Greška: Nije moguće učitati mapu'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Greška: Nije moguće snimiti mapu'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Greška: Nije moguće obrisati cache'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Greška: Nije moguće izbrisati podrazumevanu mapu!'); + define('_XMAP_MSG_CACHE_CLEANED', 'Cache je obrisan'); + define('_XMAP_CHARSET', 'utf-8'); + define('_XMAP_SITEMAP_ID', 'ID oznaka mape'); + define('_XMAP_ADD_SITEMAP', 'Dodaj mapu'); + define('_XMAP_NAME_NEW_SITEMAP', 'Nova mapa'); + define('_XMAP_DELETE_SITEMAP', 'Obriši'); + define('_XMAP_SETTINGS_SITEMAP', 'Podešavanja'); + define('_XMAP_COPY_SITEMAP', 'Kopiraj'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Podrazumevana'); + define('_XMAP_EDIT_MENU', 'Izmeni'); + define('_XMAP_DELETE_MENU', 'Obriši'); + define('_XMAP_CLEAR_CACHE', 'Očisti cache'); + define('_XMAP_MOVEUP_MENU', 'Gore'); + define('_XMAP_MOVEDOWN_MENU', 'Dole'); + define('_XMAP_ADD_MENU', 'Dodaj menije'); + define('_XMAP_COPY_OF', 'Kopija od %s'); + define('_XMAP_INFO_LAST_VISIT', 'Poslednja poseta'); + define('_XMAP_INFO_COUNT_VIEWS', 'Broj poseta'); + define('_XMAP_INFO_TOTAL_LINKS', 'Broj linkova'); + define('_XMAP_CFG_URLS', 'URL-ovi mape'); + define('_XMAP_XML_LINK_TIP', 'Kopiraj link i postavi ga na Google i Yahoo'); + define('_XMAP_HTML_LINK_TIP', 'Ovo je URL mape, možete ga koristiti prilikom kreiranja stavki u menijima'); + define('_XMAP_CFG_XML_MAP', 'XML mapa sajta'); + define('_XMAP_CFG_HTML_MAP', 'HTML mapa sajta'); + define('_XMAP_XML_LINK', 'Googlelink'); + define('_XMAP_CFG_XML_MAP_TIP', 'XML datoteka je generisana za pretraživače'); + define('_XMAP_ADD', 'Snimi'); + define('_XMAP_CANCEL', 'Odustani'); + define('_XMAP_LOADING', 'Učitavam...'); + define('_XMAP_CACHE', 'Cache'); + define('_XMAP_USE_CACHE', 'Koristi cache'); + define('_XMAP_CACHE_LIFE_TIME', 'Cache trajanje'); + define('_XMAP_NEVER_VISITED', 'Nikad'); + + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/swedish.php b/oss/joomla/trunk/administrator/components/com_xmap/language/swedish.php new file mode 100644 index 00000000..3010de43 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/swedish.php @@ -0,0 +1,183 @@ +<?php +/* @package xmap + * @author: Guillermo Vargas http://joomla.vargas.co.cr + * @translation: Sven Luthman, http://www.genealogi.nu/ http://www.glassrecept.se/ + */ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_COM_TITLE', 'Xmap konfiguration'); + define('_XMAP_CFG_OPTIONS', 'Visa alternativ'); + define('_XMAP_CFG_CSS_CLASSNAME', 'CSS Klassnamn'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'Expandera innehållskategorier'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'Expandera innehållssektioner'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Visa menytitlar'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Antalet kolumner'); + define('_XMAP_EX_LINK', 'Markera externa länkar'); + define('_XMAP_CFG_CLICK_HERE', 'Klicka här'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google platskarta'); + define('_XMAP_EXCLUDE_MENU', 'Uteslut följade meny ID´s'); + define('_XMAP_TAB_DISPLAY', 'Visa'); + define('_XMAP_TAB_MENUS', 'Menyer'); + define('_XMAP_CFG_WRITEABLE', 'Skrivbar'); + define('_XMAP_CFG_UNWRITEABLE', 'Ej skrivbar'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'gör EJ SKRIVBAR efter sparande'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Forcera skrivskyddet vid sparandet'); + define('_XMAP_GOOGLE_LINK', 'Googlelänk'); + define('_XMAP_CFG_INCLUDE_LINK', 'Osynlig länk till författaren'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Specificera meny ID´s du inte vill ha med i platskartan.<br /><strong>OBS</strong><br />separera ID´n med kommatecken!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Ange menyns sorteringsordning'); + define('_XMAP_CFG_MENU_SHOW', 'Visa'); + define('_XMAP_CFG_MENU_REORDER', 'Sortera om'); + define('_XMAP_CFG_MENU_ORDER', 'Ordning'); + define('_XMAP_CFG_MENU_NAME', 'Menynamn'); + define('_XMAP_CFG_DISABLE', 'Klicka för att avaktivera'); + define('_XMAP_CFG_ENABLE', 'Klicka för aktivering'); + define('_XMAP_SHOW', 'Visa'); + define('_XMAP_NO_SHOW', 'Visa\'s inte'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Spara'); + define('_XMAP_TOOLBAR_CANCEL', 'Avbryt'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', 'Språkfil [ %s ] inte funnen, laddade standardspråket: english<br />'); + define('_XMAP_ERR_CONF_SAVE', 'FEL: Misslyckades att spara konfigurationen.'); + define('_XMAP_ERR_NO_CREATE', 'FEL: Går inte att skapa inställningstabell'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'FEL: Går inte att återställa standardinställningar'); + define('_XMAP_ERR_NO_PREV_BU', 'VARNING: Gick inte att radera förgående backup'); + define('_XMAP_ERR_NO_BACKUP', 'FEL: Klarar inte att skapa backup'); + define('_XMAP_ERR_NO_DROP_DB', 'FEL: Klarar inte att släppa inställningstabell'); + define('_XMAP_ERR_NO_SETTINGS', 'FEL: Går inte att ladda inställningar från databas: <a href="%s">Skapa inställningstabell</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Inställningar återställda'); + define('_XMAP_MSG_SET_BACKEDUP', 'Inställningar sparade'); + define('_XMAP_MSG_SET_DB_CREATED', 'Inställningstabell skapad'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Grundinställningar infogade'); + define('_XMAP_MSG_SET_DB_DROPPED', 'Xmap\'s tabeller har blivit sparade!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Ändra mall'); // Ändra template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Länk öppnar nytt fönster'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Visas på webbplatsen'); + define('_XMAP_CFG_MENU_SHOW_XML', 'Visa i XML webbplatskarta'); + define('_XMAP_CFG_MENU_PRIORITY', 'Prioritet'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Ändra periodicitet'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Alltid'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Timvis'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Dagligen'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Veckovis'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Månatligen'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Årligen'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Aldrig'); + + define('_XMAP_TIT_SETTINGS_OF', 'Inställningar för %s'); + define('_XMAP_TAB_SITEMAPS', 'Platskartor'); + define('_XMAP_MSG_NO_SITEMAPS', 'Det är ingen platskarta skapad ännu'); + define('_XMAP_MSG_NO_SITEMAP', 'Denna platskarta är ej tillgänglig'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Laddar inställningar...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Fel, kan inte öppna platskartan'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Fel, kan inte spara property för platskartan.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Fel, kan inte rensa platskartans cache'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Kan inte radera default platskarta!'); + define('_XMAP_MSG_CACHE_CLEANED', 'Cacheminnet är rensat!'); + define('_XMAP_CHARSET', 'UTF-8'); + define('_XMAP_SITEMAP_ID', 'Sitemap\'s ID'); + define('_XMAP_ADD_SITEMAP', 'Lägg till platskarta'); + define('_XMAP_NAME_NEW_SITEMAP', 'Ny platskarta'); + define('_XMAP_DELETE_SITEMAP', 'Radera'); + define('_XMAP_SETTINGS_SITEMAP', 'Inställningar'); + define('_XMAP_COPY_SITEMAP', 'Kopiera'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Återställ grundinställning'); + define('_XMAP_EDIT_MENU', 'Alternativ'); + define('_XMAP_DELETE_MENU', 'Radera'); + define('_XMAP_CLEAR_CACHE', 'Rensa cacheminnet'); + define('_XMAP_MOVEUP_MENU', 'Upp'); + define('_XMAP_MOVEDOWN_MENU', 'Ner'); + define('_XMAP_ADD_MENU', 'Lägg till menyer'); + define('_XMAP_COPY_OF', 'Kopia av %s'); + define('_XMAP_INFO_LAST_VISIT', 'Sista besök'); + define('_XMAP_INFO_COUNT_VIEWS', 'Antalet besök'); + define('_XMAP_INFO_TOTAL_LINKS', 'Antalet länkar'); + define('_XMAP_CFG_URLS', 'Platskartans\'ornas URL'); + define('_XMAP_XML_LINK_TIP', 'Kopiera länk och överlämna till Google och Yahoo'); + define('_XMAP_HTML_LINK_TIP', 'Detta är URL för platskartan\'orna. Du kan använda den för att skapa poster till dina menyer.'); + define('_XMAP_CFG_XML_MAP', 'XML platskarta'); + define('_XMAP_CFG_HTML_MAP', 'HTML platskarta'); + define('_XMAP_XML_LINK', 'Googlelänk'); + define('_XMAP_CFG_XML_MAP_TIP', 'XML-filen skapad för sökmotorerna'); + define('_XMAP_ADD', 'Spara'); + define('_XMAP_CANCEL', 'Avbryt'); + define('_XMAP_LOADING', 'Laddar...'); + define('_XMAP_CACHE', 'Cache'); + define('_XMAP_USE_CACHE', 'Använd Cache'); + define('_XMAP_CACHE_LIFE_TIME', 'Cache livslängd'); + define('_XMAP_NEVER_VISITED', 'Aldrig'); + + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/language/turkish.php b/oss/joomla/trunk/administrator/components/com_xmap/language/turkish.php new file mode 100644 index 00000000..ac1043ca --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/language/turkish.php @@ -0,0 +1,183 @@ +<?php +/* @package Xmap + * @author Guillermo Vargas, http://joomla.vargas.co.cr + * Turkish translation by http://www.turkiye-destani.com + */ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +if( !defined( 'JOOMAP_LANG' )) { + define('JOOMAP_LANG', 1 ); + // -- General ------------------------------------------------------------------ + define('_XMAP_CFG_COM_TITLE', 'Xmap Ayarlar'); + define('_XMAP_CFG_OPTIONS', 'Görüntüleme Ayarlarý'); + define('_XMAP_CFG_CSS_CLASSNAME', 'CSS Class Adý'); + define('_XMAP_CFG_EXPAND_CATEGORIES', 'Ýçerik Kategorilerini Geniþlet'); + define('_XMAP_CFG_EXPAND_SECTIONS', 'Ýçerik Bölümlerini Geniþlet'); + define('_XMAP_CFG_SHOW_MENU_TITLES', 'Menü Baþlýklarýný Göster'); + define('_XMAP_CFG_NUMBER_COLUMNS', 'Kolon Sayýsý'); + define('_XMAP_EX_LINK', 'Dýþ Baðlantýyý Ýþaretle'); + define('_XMAP_CFG_CLICK_HERE', 'Buraya Týklayým'); + define('_XMAP_CFG_GOOGLE_MAP', 'Google Site Haritasi'); + define('_XMAP_EXCLUDE_MENU', 'Dýþlanacak Menü ID leri'); + define('_XMAP_TAB_DISPLAY', 'Görüntüleme'); + define('_XMAP_TAB_MENUS', 'Menüler'); + define('_XMAP_CFG_WRITEABLE', 'Yazýlabilir'); + define('_XMAP_CFG_UNWRITEABLE', 'Yazýlamaz'); + define('_XMAP_MSG_MAKE_UNWRITEABLE', 'Kaydettikten sonra yazýlamaz yap'); + define('_XMAP_MSG_OVERRIDE_WRITE_PROTECTION', 'Kayýt ederken yazýlabilme iznini deðiþtir'); + define('_XMAP_GOOGLE_LINK', 'Google Baðlantýsý'); + define('_XMAP_CFG_INCLUDE_LINK', 'Yazara görünmez baðlantý'); + + // -- Tips --------------------------------------------------------------------- + define('_XMAP_EXCLUDE_MENU_TIP', 'Eklemek istemediðiniz menü ID lerini belirtiniz.<br /><strong>NOT</strong><br />ID leri virgul ile ayýrýnýz!'); + + // -- Menus -------------------------------------------------------------------- + define('_XMAP_CFG_SET_ORDER', 'Menü Görüntüleme Sýrasýný Ayarla'); + define('_XMAP_CFG_MENU_SHOW', 'Göster'); + define('_XMAP_CFG_MENU_REORDER', 'Yeniden Sýrala'); + define('_XMAP_CFG_MENU_ORDER', 'Sýrala'); + define('_XMAP_CFG_MENU_NAME', 'Menü Ýsmi'); + define('_XMAP_CFG_DISABLE', 'Kapatmamak için týklayýnýz.'); + define('_XMAP_CFG_ENABLE', 'Açmak için týklayýnýz'); + define('_XMAP_SHOW', 'Göster'); + define('_XMAP_NO_SHOW', 'Gösterme'); + + // -- Toolbar ------------------------------------------------------------------ + define('_XMAP_TOOLBAR_SAVE', 'Kaydet'); + define('_XMAP_TOOLBAR_CANCEL', 'Ýptal'); + + // -- Errors ------------------------------------------------------------------- + define('_XMAP_ERR_NO_LANG', '[ %s ] dil dosyasý bulunamadý, varsayýlan dil: Ýngilizce<br />'); + define('_XMAP_ERR_CONF_SAVE', 'HATA: Ayarlar kayýt edilemedi.'); + define('_XMAP_ERR_NO_CREATE', 'HATA: Ayarlar tablosu yaratýlamadý'); + define('_XMAP_ERR_NO_DEFAULT_SET', 'HATA: Varsayýlan ayarlar yüklenemedi'); + define('_XMAP_ERR_NO_PREV_BU', 'UYARI: Önceki yedekleme silinemedi'); + define('_XMAP_ERR_NO_BACKUP', 'HATA: Yedekleme oluþturulamadý'); + define('_XMAP_ERR_NO_DROP_DB', 'HATA: Ayarlar tablosu boþaltýlamadý'); + define('_XMAP_ERR_NO_SETTINGS', 'HATA: Veritabanýndaký ayarlar yüklenemedi: <a href="%s">Ayarlar tablosu yarat</a>'); + + // -- Config ------------------------------------------------------------------- + define('_XMAP_MSG_SET_RESTORED', 'Settings restored'); + define('_XMAP_MSG_SET_BACKEDUP', 'Ayarlar kaydedildi'); + define('_XMAP_MSG_SET_DB_CREATED', 'Ayarlar tablosu yaratýldý'); + define('_XMAP_MSG_SET_DEF_INSERT', 'Varsayýlan ayarlar yüklendi'); + define('_XMAP_MSG_SET_DB_DROPPED','Xmap\'s tables have been saved!'); + + // -- CSS ---------------------------------------------------------------------- + define('_XMAP_CSS', 'Xmap CSS'); + define('_XMAP_CSS_EDIT', 'Tema düzenle'); // Edit template + + // -- Sitemap (Frontend) ------------------------------------------------------- + define('_XMAP_SHOW_AS_EXTERN_ALT', 'Baðlantýyý yeni pencerede aç'); + + // -- Added for Xmap + define('_XMAP_CFG_MENU_SHOW_HTML', 'Sitede goster'); + define('_XMAP_CFG_MENU_SHOW_XML', 'XML Site Haritasinda göster'); + define('_XMAP_CFG_MENU_PRIORITY', 'Onem'); + define('_XMAP_CFG_MENU_CHANGEFREQ', 'Deðiþme Sýklýðý'); + define('_XMAP_CFG_CHANGEFREQ_ALWAYS', 'Herzaman'); + define('_XMAP_CFG_CHANGEFREQ_HOURLY', 'Saatlik'); + define('_XMAP_CFG_CHANGEFREQ_DAILY', 'Günlük'); + define('_XMAP_CFG_CHANGEFREQ_WEEKLY', 'Haftalýk'); + define('_XMAP_CFG_CHANGEFREQ_MONTHLY', 'Aylýk'); + define('_XMAP_CFG_CHANGEFREQ_YEARLY', 'Yýllýk'); + define('_XMAP_CFG_CHANGEFREQ_NEVER', 'Hiçbir Zaman'); + + define('_XMAP_TIT_SETTINGS_OF', '%s için seçimler'); + define('_XMAP_TAB_SITEMAPS', 'Site Haritalarý'); + define('_XMAP_MSG_NO_SITEMAPS', 'Yaratýlmýþ Site Haritasý Yok'); + define('_XMAP_MSG_NO_SITEMAP', 'Bu Site Haritasý hazýr deðil'); + define('_XMAP_MSG_LOADING_SETTINGS', 'Yükleme Seçimleri...'); + define('_XMAP_MSG_ERROR_LOADING_SITEMAP', 'Hata. Site Haritasýný yükleyemiyor.'); + define('_XMAP_MSG_ERROR_SAVE_PROPERTY', 'Hata. Site Haritasi kayýt edilemiyor.'); + define('_XMAP_MSG_ERROR_CLEAN_CACHE', 'Hata. Site Haritasý cache silinemiyor'); + define('_XMAP_ERROR_DELETE_DEFAULT', 'Varsayýlan Site Haritasý silinemiyor!'); + define('_XMAP_MSG_CACHE_CLEANED', 'Cache temizlendi!'); + define('_XMAP_CHARSET', 'ISO-8859-1'); + define('_XMAP_SITEMAP_ID', 'Site Haritasý ID'); + define('_XMAP_ADD_SITEMAP', 'Site Haritasý Ekle'); + define('_XMAP_NAME_NEW_SITEMAP', 'Yeni Site Haritasý'); + define('_XMAP_DELETE_SITEMAP', 'Sil'); + define('_XMAP_SETTINGS_SITEMAP', 'Ayarlar'); + define('_XMAP_COPY_SITEMAP', 'Kopyala'); + define('_XMAP_SITEMAP_SET_DEFAULT', 'Varsayýlan Olarak Ata'); + define('_XMAP_EDIT_MENU', 'Seçenekler'); + define('_XMAP_DELETE_MENU', 'Sil'); + define('_XMAP_CLEAR_CACHE', 'Cache temizle'); + define('_XMAP_MOVEUP_MENU', 'Yukarý'); + define('_XMAP_MOVEDOWN_MENU', 'Aþaðý'); + define('_XMAP_ADD_MENU', 'Menü ekle'); + define('_XMAP_COPY_OF', '%s\nin kopyasý'); + define('_XMAP_INFO_LAST_VISIT', 'En son ziyaret'); + define('_XMAP_INFO_COUNT_VIEWS', 'Ziyaret sayýsý'); + define('_XMAP_INFO_TOTAL_LINKS', 'Baðlantý sayýsý'); + define('_XMAP_CFG_URLS', 'Site Haritasýnýn URL\'si'); + define('_XMAP_XML_LINK_TIP', 'Baðlantýyý kopyala ve Google ve Yahoo\'ya gönder'); + define('_XMAP_HTML_LINK_TIP', 'Bu Site Haritasýnýn URL\'si. Menü eklemek için kullanabilirsiniz.'); + define('_XMAP_CFG_XML_MAP', 'XML Site Haritasý'); + define('_XMAP_CFG_HTML_MAP', 'HTML Site Haritasý'); + define('_XMAP_XML_LINK', 'Google baðlantýsý'); + define('_XMAP_CFG_XML_MAP_TIP', 'Arama motorlarý için yaratýlan XML dosyasý'); + define('_XMAP_ADD', 'Kaydet'); + define('_XMAP_CANCEL', 'Ýptal'); + define('_XMAP_LOADING', 'Yükleniyor...'); + define('_XMAP_CACHE', 'Cache'); + define('_XMAP_USE_CACHE', 'Cache Kullan'); + define('_XMAP_CACHE_LIFE_TIME', 'Cache Ömrü'); + define('_XMAP_NEVER_VISITED', 'Hiçbir Zaman'); + + + // New on Xmap 1.1 + define('_XMAP_PLUGINS','Plugins'); + define( '_XMAP_INSTALL_3PD_WARN', 'Warning: Installing 3rd party extensions may compromise your server\'s security.' ); + define('_XMAP_INSTALL_NEW_PLUGIN', 'Install new Plugins'); + define('_XMAP_UNKNOWN_AUTHOR','Unknown author'); + define('_XMAP_PLUGIN_VERSION','Version %s'); + define('_XMAP_TAB_INSTALL_PLUGIN','Install'); + define('_XMAP_TAB_EXTENSIONS','Extensions'); + define('_XMAP_TAB_INSTALLED_EXTENSIONS','Installed Extensions'); + define('_XMAP_NO_PLUGINS_INSTALLED','No custom plugins installed'); + define('_XMAP_AUTHOR','Author'); + define('_XMAP_CONFIRM_DELETE_SITEMAP','Are you sure you want to delete this sitemap?'); + define('_XMAP_CONFIRM_UNINSTALL_PLUGIN','Are you sure you want to uninstall this plugin?'); + define('_XMAP_UNINSTALL','Uninstall'); + define('_XMAP_EXT_PUBLISHED','Published'); + define('_XMAP_EXT_UNPUBLISHED','Unpublished'); + define('_XMAP_PLUGIN_OPTIONS','Options'); + define('_XMAP_EXT_INSTALLED_MSG','The extension was installed successfully, please review their options and then publish the extension.'); + define('_XMAP_CONTINUE','Continue'); + define('_XMAP_MSG_EXCLUDE_CSS_SITEMAP','Do not include the CSS within the Sitemap'); + define('_XMAP_MSG_EXCLUDE_XSL_SITEMAP','Use classic XML Sitemap display'); + + // New on Xmap 1.1 + define('_XMAP_MSG_SELECT_FOLDER','Please select a directory'); + define('_XMAP_UPLOAD_PKG_FILE','Upload Package File'); + define('_XMAP_UPLOAD_AND_INSTALL','Upload File & Install'); + define('_XMAP_INSTALL_F_DIRECTORY','Install from directory'); + define('_XMAP_INSTALL_DIRECTORY','Install directory'); + define('_XMAP_INSTALL','Install'); + define('_XMAP_WRITEABLE','Writeable'); + define('_XMAP_UNWRITEABLE','Unwriteable'); + + // New on Xmap 1.2 + define('_XMAP_COMPRESSION','Compression'); + define('_XMAP_USE_COMPRESSION','Compress the XML sitemap to save bandwidth'); + + // New on Xmap 1.2.1 + define('_XMAP_CFG_NEWS_MAP', 'News Sitemap'); + define('_XMAP_NEWS_LINK_TIP', 'This is the news sitemap\'s URL.'); + + // New on Xmap 1.2.2 + define('_XMAP_CFG_MENU_MODULE', 'Module'); + define('_XMAP_CFG_MENU_MODULE_TIP', 'Specify the module you use to show this menu in your site (Default: mod_mainmenu).'); + + // New on Xmap 1.2.3 + define('_XMAP_TEXT', 'Link Text'); + define('_XMAP_TITLE', 'Link Title'); + define('_XMAP_LINK', 'Link URL'); + define('_XMAP_CSS_STYLE', 'CSS style'); + define('_XMAP_CSS_CLASS', 'CSS class'); + define('_XMAP_INVALID_SITEMAP', 'Invalid Sitemap'); + define('_XMAP_OK', 'Ok'); +} diff --git a/oss/joomla/trunk/administrator/components/com_xmap/manifest.xml b/oss/joomla/trunk/administrator/components/com_xmap/manifest.xml new file mode 100644 index 00000000..483af54a --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/manifest.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Id: manifest.xml 109 2010-04-20 22:24:37Z guilleva $ --> +<install method="upgrade" version="1.5" type="component"> + <name>Xmap</name> + <creationDate>2010/04/20</creationDate> + <author>Guillermo Vargas</author> + <copyright>This component is released under the GNU/GPL License</copyright> + <authorEmail>guille@vargas.co.cr</authorEmail> + <authorUrl>http://joomla.vargas.co.cr</authorUrl> + <version>1.2.7</version> + <license>GNU/GPL</license> + <description>Xmap - Sitemap Generator for Joomla!</description> + <install /> + <uninstall /> + <installfile>install.xmap.php</installfile> + <uninstallfile>uninstall.xmap.php</uninstallfile> + <url addpath="/administrator/components/com_xmap/elements"> + <param name="sitemap" type="sitemap" default="0" label="Select Site Map" description="A Site Map" /> + </url> + <files folder="front"> + <filename>xmap.xml.php</filename> + <filename>xmap.html.php</filename> + <filename>xmap.php</filename> + <filename>gss.xsl</filename> + <filename>gssadmin.xsl</filename> + <filename>metadata.xml</filename> + <filename>index.html</filename> + <folder>css</folder> + <folder>cache</folder> + </files> + <images folder="front"> + <folder>images</folder> + </images> + <administration> + <menu>Xmap</menu> + <files folder="admin"> + <filename>admin.xmap.php</filename> + <filename>admin.xmap.html.php</filename> + <filename>toolbar.xmap.php</filename> + <filename>toolbar.xmap.html.php</filename> + <filename>index.html</filename> + <filename>admin.js</filename> + <filename>admin.css</filename> + <filename>ajaxResponse.php</filename> + <folder>elements</folder> + <folder>classes</folder> + <folder>language</folder> + <folder>extensions</folder> + </files> + <images folder="admin"> + <folder>images</folder> + </images> + </administration> +</install> \ No newline at end of file diff --git a/oss/joomla/trunk/administrator/components/com_xmap/toolbar.xmap.html.php b/oss/joomla/trunk/administrator/components/com_xmap/toolbar.xmap.html.php new file mode 100644 index 00000000..a4101331 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/toolbar.xmap.html.php @@ -0,0 +1,12 @@ +<?php +/** + * $Id: toolbar.xmap.html.php 10 2008-09-20 22:36:33Z guilleva $ + * $LastChangedDate: 2008-09-20 16:36:33 -0600 (sáb, 20 sep 2008) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * a sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); diff --git a/oss/joomla/trunk/administrator/components/com_xmap/toolbar.xmap.php b/oss/joomla/trunk/administrator/components/com_xmap/toolbar.xmap.php new file mode 100644 index 00000000..0521d45c --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/toolbar.xmap.php @@ -0,0 +1,13 @@ +<?php +/** + * $Id: toolbar.xmap.php 10 2008-09-20 22:36:33Z guilleva $ + * $LastChangedDate: 2008-09-20 16:36:33 -0600 (sáb, 20 sep 2008) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * a sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + diff --git a/oss/joomla/trunk/administrator/components/com_xmap/uninstall.xmap.php b/oss/joomla/trunk/administrator/components/com_xmap/uninstall.xmap.php new file mode 100644 index 00000000..f714cf88 --- /dev/null +++ b/oss/joomla/trunk/administrator/components/com_xmap/uninstall.xmap.php @@ -0,0 +1,25 @@ +<?php +/** + * $Id: uninstall.xmap.php 32 2009-05-18 20:00:14Z guilleva $ + * $LastChangedDate: 2009-05-18 14:00:14 -0600 (lun, 18 may 2009) $ + * $LastChangedBy: guilleva $ + * Xmap by Guillermo Vargas + * a sitemap component for Joomla! CMS (http://www.joomla.org) + * Author Website: http://joomla.vargas.co.cr + * Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html +*/ + +defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); + +/** + * Uninstall routine for Xmap. + * Drops the settings table from the Joomla! database + * @author Daniel Grothe + * @see XmapConfig.php + * @package Xmap_Admin + * @version $Id: uninstall.xmap.php 32 2009-05-18 20:00:14Z guilleva $ + */ +function com_uninstall() { + require_once( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_xmap'.DS.'classes'.DS.'XmapConfig.php' ); + XmapConfig::remove(); +}