Skip to content

Commit

Permalink
Merge pull request #2 from xoopscube/master
Browse files Browse the repository at this point in the history
⚡ 🔨 🎨 Sitemap v2.3.1.2
  • Loading branch information
gigamaster authored May 1, 2022
2 parents dcdf4ab + 4f293d7 commit f500999
Show file tree
Hide file tree
Showing 36 changed files with 510 additions and 98 deletions.
10 changes: 10 additions & 0 deletions admin/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<?php
/**
* Sitemap
* Automated Sitemap and XML file for search engines
* @package Sitemap
* @version 2.3.1
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author chanoir
* @copyright Copyright 2005-2022 Authors
* @license https://github.com/xoopscube/xcl/blob/master/docs/GPL_V2.txt
*/

require_once '../../../mainfile.php';
require_once XOOPS_ROOT_PATH . '/header.php';
Expand Down
10 changes: 10 additions & 0 deletions blocks/sitemap_blocks.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<?php
/**
* Sitemap blocks
* Automated Sitemap and XML file for search engines
* @package Sitemap
* @version 2.3.1
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author chanoir
* @copyright Copyright 2005-2022 Authors
* @license https://github.com/xoopscube/xcl/blob/master/docs/GPL_V2.txt
*/

function b_sitemap_show( $options )
{
Expand Down
1 change: 1 addition & 0 deletions images/module_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions images/sitemap1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions include/sitemap.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* Sitemap
* Automated Sitemap and XML file for search engines
* @package Sitemap
* @version 2.3.1
* @author Other authors gigamaster, 2020 XCL/PHP7
* @author Ryuji
* @author chanoir
* @copyright Copyright 2005-2022 Authors
* @license https://github.com/xoopscube/xcl/blob/master/docs/GPL_V2.txt
*/

include_once(XOOPS_ROOT_PATH . '/class/xoopstree.php');

Expand Down Expand Up @@ -42,10 +53,12 @@ function sitemap_show()
$block['modules'][$i]['id'] = $i;
$block['modules'][$i]['name'] = $modules[$i]->getVar('name');
$block['modules'][$i]['directory'] = $modules[$i]->getVar('dirname');

$old_error_reporting = error_reporting() ;
error_reporting( $old_error_reporting & (~E_NOTICE) ) ;
$sublinks =& $modules[$i]->subLink();
error_reporting( $old_error_reporting ) ;

if (count($sublinks) > 0) {
foreach($sublinks as $sublink){
$block['modules'][$i]['sublinks'][] = ['name' => $sublink['name'], 'url' => XOOPS_URL.'/modules/'.$modules[$i]->getVar('dirname').'/'.$sublink['url']];
Expand Down
8 changes: 4 additions & 4 deletions language/english/admin.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('_MD_A_MYMENU_MYTPLSADMIN','Templates');
define('_MD_A_MYMENU_MYBLOCKSADMIN','Blocks/Permissions');
define('_MD_A_MYMENU_MYLANGADMIN','Language');
define('_MD_A_MYMENU_MYPREFERENCES','Preferences');
define( '_MD_A_MYMENU_MYTPLSADMIN' , 'Templates');
define( '_MD_A_MYMENU_MYBLOCKSADMIN' , 'Blocks/Permissions');
define( '_MD_A_MYMENU_MYLANGADMIN' , 'Language');
define( '_MD_A_MYMENU_MYPREFERENCES' , 'Preferences');
6 changes: 3 additions & 3 deletions language/english/blocks.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('_MB_SITEMAP_OPENCLOSE', '[ Open/Close ]');
define('_MB_SITEMAP_COLS', 'Columns');
define('_MB_SITEMAP_HOME', 'HOME');
define( '_MB_SITEMAP_OPENCLOSE' , '[ Open/Close ]');
define( '_MB_SITEMAP_COLS' , 'Columns');
define( '_MB_SITEMAP_HOME' , 'HOME');

10 changes: 5 additions & 5 deletions language/english/help/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

<nav id="help-menu">
<ul>
<li><a href="#help-description" class="ui-btn">Sitemap Module</a>
<li><a href="#help-features" class="ui-btn">Features</a>
<li><a href="#help-protocol" class="ui-btn">Sitemap Protocol</a>
<li><a href="#help-block" class="ui-btn">Block</a>
<li><a href="#help-overview" class="button">Sitemap Module</a>
<li><a href="#help-features" class="button">Features</a>
<li><a href="#help-protocol" class="button">Sitemap Protocol</a>
<li><a href="#help-block" class="button">Block</a>
</ul>
</nav>


<hr>


<article id="help-description">
<article id="help-overview">
<h3>Sitemap</h3>
<p>Automated HTML Sitemap and XML file for search engines
<p>developed by Chanoir, and several developers have contributed with plugins.
Expand Down
2 changes: 1 addition & 1 deletion language/english/main.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

define('_MD_SITEMAP_HOME', 'HOME');
define( '_MD_SITEMAP_HOME' , 'HOME');
32 changes: 16 additions & 16 deletions language/english/modinfo.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<?php

define('_MI_SITEMAP_NAME', 'Sitemap');
define('_MI_SITEMAP_MESSAGE', 'Message');
define( '_MI_SITEMAP_NAME' , 'Sitemap');
define( '_MI_SITEMAP_MESSAGE' , 'Message');

define('_MI_SITEMAP_ADMENU_TOP', 'TOP' ) ;
define('_MI_SITEMAP_ADMENU_MYBLOCKSADMIN', 'Blocks/Groups' ) ;
define( '_MI_SITEMAP_ADMENU_TOP' , 'TOP');
define( '_MI_SITEMAP_ADMENU_MYBLOCKSADMIN' , 'Blocks/Groups');

define('_MI_SITEMAP_BLOCKNAME', 'Sitemap');
define('_MI_SITEMAP_BLOCKDESC', 'Show sitemap as a block.');
define( '_MI_SITEMAP_BLOCKNAME' , 'Sitemap');
define( '_MI_SITEMAP_BLOCKDESC' , 'Show sitemap as a block.');

define('_MI_MESSAGE', 'Message [html]');
define('_MI_MESSAGEEDSC', 'Message to appear on the page');
define( '_MI_MESSAGE' , 'Message [html]');
define( '_MI_MESSAGEEDSC' , 'Message to appear on the page');

define('_MI_SHOW_SUBCATEGORIES', 'Show sub-categories');
define('_MI_SHOW_SUBCATEGORIESDSC', '');
define( '_MI_SHOW_SUBCATEGORIES' , 'Show sub-categories');
define( '_MI_SHOW_SUBCATEGORIESDSC' , '');

define('_MI_ALLTIME_GUEST', 'All-time guest mode');
define('_MI_ALLTIME_GUESTDSC', "If you turn this module's cache on, set this option to 'yes'");
define( '_MI_ALLTIME_GUEST' , 'All-time guest mode');
define( '_MI_ALLTIME_GUESTDSC' , "If you turn this module's cache on, set this option to 'yes'");

define('_MI_INVISIBLE_WEIGHTS', 'Invisible Modules');
define('_MI_INVISIBLE_WEIGHTSDSC', 'Exclude Modules from the Sitemap using the same value of the "order" field (next to the module name in Module Management). The "order" numbers must be separated by commas. Default is : 0 or blank.');
define( '_MI_INVISIBLE_WEIGHTS' , 'Invisible Modules');
define( '_MI_INVISIBLE_WEIGHTSDSC' , 'Exclude Modules from the Sitemap using the same value of the "order" field (next to the module name in Module Management). The "order" numbers must be separated by commas. Default is : 0 or blank.');

define('_MI_INVISIBLE_DIRNAMES', 'Hide directory names from Sitemap');
define('_MI_INVISIBLE_DIRNAMESDSC', "Specify the directory name of modules to hide from Sitemap.<br>Dirnames must be separated by commas, eg: downloads,widget");
define( '_MI_INVISIBLE_DIRNAMES' , 'Hide directory names from Sitemap');
define( '_MI_INVISIBLE_DIRNAMESDSC' , "Specify the directory name of modules to hide from Sitemap.<br>Dirnames must be separated by commas, eg: downloads,widget");
9 changes: 4 additions & 5 deletions language/fr_utf8/admin.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

define('_MD_A_MYMENU_MYLANGADMIN','Langage');

define('_MD_A_MYMENU_MYTPLSADMIN','Templates');
define('_MD_A_MYMENU_MYBLOCKSADMIN','Blocks/Permissions');
define('_MD_A_MYMENU_MYPREFERENCES','Préferences');
define( '_MD_A_MYMENU_MYLANGADMIN' , 'Langage');
define( '_MD_A_MYMENU_MYTPLSADMIN' , 'Templates');
define( '_MD_A_MYMENU_MYBLOCKSADMIN' , 'Blocks/Permissions');
define( '_MD_A_MYMENU_MYPREFERENCES' , 'Préferences');
7 changes: 3 additions & 4 deletions language/fr_utf8/blocks.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

define('_MB_SITEMAP_HOME','Accueil');

define('_MB_SITEMAP_OPENCLOSE', 'Click!!(Ouvrir/Fermer)');
define('_MB_SITEMAP_COLS', 'Colonnes');
define( '_MB_SITEMAP_HOME' , 'Accueil');
define( '_MB_SITEMAP_OPENCLOSE' , 'Click!!(Ouvrir/Fermer)');
define( '_MB_SITEMAP_COLS' , 'Colonnes');

115 changes: 115 additions & 0 deletions language/fr_utf8/help/help.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<section id="help-sitemap">


<nav id="help-menu">
<ul>
<li><a href="#help-overview" class="button">Sitemap Module</a>
<li><a href="#help-features" class="button">Features</a>
<li><a href="#help-protocol" class="button">Sitemap Protocol</a>
<li><a href="#help-block" class="button">Block</a>
</ul>
</nav>


<hr>


<article id="help-overview">
<h3>Sitemap</h3>
<p>Automated HTML Sitemap and XML file for search engines
<p>developed by Chanoir, and several developers have contributed with plugins.
<p>From the module preferences you can customize your Sitemap message, select to show sub-categories,
<p>use Module Management's field "order" to exclude a module (invisible, private).
<p>and specify the directory name of modules that should be hide from Sitemap.
<p>If it's not already installed, copy modules/sitemap/xml_google.php to your public root (public_html/xml_google.php).
<p>and edit the file "robots.txt" to add your sitemap: https://siteurl.com/xml_google.php
</article>





<hr>


<article id="help-features">
<h3>Sitemap plugins</h3>
<ul>
<li>AMS: jseymour
<li>articles: PsyDoc
<li>bluesbb: StingBlue
<li>booklists:noisia
<li>catads: HMN
<li>debaser: proshack
<li>extcal: bonnaudet eric
<li>formulaire: philou
<li>liaise:monsuke
<li>myAds:Tom_G3X
<li>myalbum-P: suin, GIJOE
<li>mybbs: suin
<li>mydownloads: Ryuji
<li>mylinks: Ryuji
<li>mymovie: t_sakurai
<li>newbb: Ryuji
<li>newbb2: D.J.
<li>news: chanoir
<li>pages: philou
<li>pbboard: karedokx
<li>piCal-0.6x: GIJOE
<li>popnupblog: dashboard
<li>sections: onego
<li>smartfaq: HMN
<li>smartsection: karedokx
<li>soapbox: domifara
<li>sora_typethree: morisoba
<li>tutorials: HMN
<li>utype_bbs: morisoba
<li>weblinks: Ryuji
<li>weblog: fugafuga
<li>wfdownloads: HMN
<li>wfsection: onego
<li>wordbook: onego
<li>wordpress: Ryuji
<li>xcGallery: t_sakurai, karedokx
<li>xfsection: onego
<li>xoopsfaq: onego
<li>xoopsheadline: GIJOE
<li>xoopspoll: suin, bananas
<li>xwords: onego
<li>yybbs: suin
</ul>

<ul><li>PLUGIN in module's directory
<li>amaxoop
<li>piCal-0.7x
<li>xhld
</ul>
</article>


<hr>


<article id="help-protocol">
<h3>Learn more about the sitemap protocol</h3>
<p>What are Sitemaps?</p>
<p><a rel="nofollow" href="https://www.sitemaps.org/index.html" target="_blank">Sitemaps.org</a></p>
<p>Sitemaps XML format</p>
<p><a rel="nofollow" href="https://www.sitemaps.org/protocol.html" target="_blank">Sitemap Protocol</a></p>
<p>sitemap-generators - SitemapGenerators.wiki</p>
<p><a rel="nofollow" href="https://code.google.com/archive/p/sitemap-generators/wikis/SitemapGenerators.wiki" target="_blank">Archive Sitemap Generators</a></p>
</article>


<hr>


<article id="help-block">
<h3>The Sitemap block</h3>
<p>This block displays a tree-like sitemap that can be expanded
<p>The block can be displayed to selected user groups
<p>and cached as well to improve performance.</p>
</article>


</section>
1 change: 1 addition & 0 deletions language/fr_utf8/help/images/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script>history.go(-1);</script>
1 change: 1 addition & 0 deletions language/fr_utf8/help/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script>history.go(-1);</script>
2 changes: 1 addition & 1 deletion language/fr_utf8/main.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

define('_MD_SITEMAP_HOME', 'Accueil');
define( '_MD_SITEMAP_HOME' , 'Accueil');
32 changes: 16 additions & 16 deletions language/fr_utf8/modinfo.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<?php

define('_MI_SITEMAP_ADMENU_TOP','TOP');
define( '_MI_SITEMAP_ADMENU_TOP' , 'TOP');

define('_MI_SITEMAP_NAME', 'Plan du site');
define('_MI_SITEMAP_MESSAGE', 'Message');
define( '_MI_SITEMAP_NAME' , 'Plan du site');
define( '_MI_SITEMAP_MESSAGE' , 'Message');

define('_MI_SITEMAP_ADMENU_MYBLOCKSADMIN','Blocs/Groupes');
define( '_MI_SITEMAP_ADMENU_MYBLOCKSADMIN' , 'Blocs/Groupes');

define('_MI_SITEMAP_BLOCKNAME','Plan du site');
define('_MI_SITEMAP_BLOCKDESC','Afficher le plan dans un bloc.');
define( '_MI_SITEMAP_BLOCKNAME' , 'Plan du site');
define( '_MI_SITEMAP_BLOCKDESC' , 'Afficher le plan dans un bloc.');

define('_MI_MESSAGE', 'Message [html]');
define('_MI_MESSAGEEDSC', 'Message qui apparaitra sur la page');
define( '_MI_MESSAGE' , 'Message [html]');
define( '_MI_MESSAGEEDSC' , 'Message qui apparaitra sur la page');

define('_MI_SHOW_SUBCATEGORIES', 'Afficher les sous-catégories');
define('_MI_SHOW_SUBCATEGORIESDSC', 'Afficher ou non les sous-catégories');
define( '_MI_SHOW_SUBCATEGORIES' , 'Afficher les sous-catégories');
define( '_MI_SHOW_SUBCATEGORIESDSC' , 'Afficher ou non les sous-catégories');

define('_MI_ALLTIME_GUEST','Mode invité permanent');
define('_MI_ALLTIME_GUESTDSC',"Si vous activez le cache sur le module, mettre cette option sur 'oui'");
define( '_MI_ALLTIME_GUEST' , 'Mode invité permanent');
define( '_MI_ALLTIME_GUESTDSC' , "Si vous activez le cache sur le module, mettre cette option sur 'oui'");

define('_MI_INVISIBLE_WEIGHTS','Poids des modules sur cacher');
define('_MI_INVISIBLE_WEIGHTSDSC',"Les modules qui ont ce numéro d'ordre dans l'administration des modules seront invisibles. Les nombres doivent être séparées par une virgule.<br>(Normalement 0 ou à blanc)");
define( '_MI_INVISIBLE_WEIGHTS' , 'Poids des modules sur cacher');
define( '_MI_INVISIBLE_WEIGHTSDSC' , "Les modules qui ont ce numéro d'ordre dans l'administration des modules seront invisibles. Les nombres doivent être séparées par une virgule.<br>(Normalement 0 ou à blanc)");

define('_MI_INVISIBLE_DIRNAMES','Nom du répertoire des modules &agrave; cacher');
define('_MI_INVISIBLE_DIRNAMESDSC',"Spécifier le nom des modules qui doivent être cachés.<br>Les noms des répertoires doivent être séparés par une virgule.<br>ex: xoopsheadline,newbb ");
define( '_MI_INVISIBLE_DIRNAMES' , 'Nom du répertoire des modules &agrave; cacher');
define( '_MI_INVISIBLE_DIRNAMESDSC' , "Spécifier le nom des modules qui doivent être cachés.<br>Les noms des répertoires doivent être séparés par une virgule.<br>ex: xoopsheadline,newbb ");
8 changes: 4 additions & 4 deletions language/ja_utf8/admin.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('_MD_A_MYMENU_MYTPLSADMIN','テンプレート管理');
define('_MD_A_MYMENU_MYBLOCKSADMIN','ブロック管理/アクセス権限');
define('_MD_A_MYMENU_MYLANGADMIN','言語定数管理');
define('_MD_A_MYMENU_MYPREFERENCES','一般設定');
define( '_MD_A_MYMENU_MYTPLSADMIN' , 'テンプレート管理');
define( '_MD_A_MYMENU_MYBLOCKSADMIN' , 'ブロック管理/アクセス権限');
define( '_MD_A_MYMENU_MYLANGADMIN' , '言語定数管理');
define( '_MD_A_MYMENU_MYPREFERENCES' , '一般設定');
6 changes: 3 additions & 3 deletions language/ja_utf8/blocks.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

define('_MB_SITEMAP_OPENCLOSE', 'Click !! ( Open/Close )');
define('_MB_SITEMAP_COLS', '列数');
define('_MB_SITEMAP_HOME', 'HOME');
define( '_MB_SITEMAP_OPENCLOSE' , 'Click !! ( Open/Close )');
define( '_MB_SITEMAP_COLS' , '列数');
define( '_MB_SITEMAP_HOME' , 'HOME');
8 changes: 4 additions & 4 deletions language/ja_utf8/help/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

<nav id="help-menu">
<ul>
<li><a href="#help-description" class="ui-btn">Sitemap Module</a>
<li><a href="#help-features" class="ui-btn">Features</a>
<li><a href="#help-protocol" class="ui-btn">Sitemap Protocol</a>
<li><a href="#help-block" class="ui-btn">Block</a>
<li><a href="#help-description" class="button">Sitemap Module</a>
<li><a href="#help-features" class="button">Features</a>
<li><a href="#help-protocol" class="button">Sitemap Protocol</a>
<li><a href="#help-block" class="button">Block</a>
</ul>
</nav>

Expand Down
2 changes: 1 addition & 1 deletion language/ja_utf8/main.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

define('_MD_SITEMAP_HOME', 'HOME');
define( '_MD_SITEMAP_HOME' , 'HOME');
Loading

0 comments on commit f500999

Please sign in to comment.