Skip to content

Commit

Permalink
Setting to render site map without entry level
Browse files Browse the repository at this point in the history
  • Loading branch information
slackero committed Apr 7, 2013
1 parent eaaa472 commit 834f96b
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 49 deletions.
40 changes: 20 additions & 20 deletions include/inc_front/content/cnt19.article.inc.php
Expand Up @@ -26,41 +26,41 @@

if($sitemap['articleimg']) {
$sitemap['article_style'] = ' style="list-style-image: url('.$sitemap['articleimg'].');"';
} else {
if(empty($sitemap['article_style'])) {
$sitemap['article_style'] = '';
}
} elseif(empty($sitemap['article_style'])) {
$sitemap['article_style'] = '';
}
if($sitemap['catimg']) {
$sitemap['cat_style'] = ' style="list-style-image: url('.$sitemap['catimg'].');"';
} else {
if(empty($sitemap['cat_style'])) {
$sitemap['cat_style'] = '';
}
} elseif(empty($sitemap['cat_style'])) {
$sitemap['cat_style'] = '';
}

$CNT_TMP .= $sitemap['before'];

$sitemap['c'] = '';
if($sitemap['classcount']) {
if($sitemap['catclass']) $sitemap['c'] = ' class="'.$sitemap['catclass'].$counter.'"';
} else {
if($sitemap['catclass']) $sitemap['c'] = ' class="'.$sitemap['catclass'].'"';
if($sitemap['classcount'] && $sitemap['catclass']) {
$sitemap['c'] = ' class="'.$sitemap['catclass'].$counter.'"';
} elseif($sitemap['catclass']) {
$sitemap['c'] = ' class="'.$sitemap['catclass'].'"';
}
if($content['struct'][ $sitemap['startid'] ]['acat_nositemap']) {
$CNT_TMP .= "<ul".$sitemap['c'].">\n<li".$sitemap['cat_style'].">"; //.$sitemap['c']
$CNT_TMP .= '<a href="index.php?';
if($content['struct'][ $sitemap['startid'] ]['acat_alias']) {
$CNT_TMP .= $content['struct'][ $sitemap['startid'] ]['acat_alias'];
} else {
$CNT_TMP .= 'id='.$sitemap['startid'].',0,0,1,0,0';
if(empty($sitemap["without_parent"])) {
$CNT_TMP .= "<ul".$sitemap['c']."><li".$sitemap['cat_style'].">";
$CNT_TMP .= '<a href="index.php?';
if($content['struct'][ $sitemap['startid'] ]['acat_alias']) {
$CNT_TMP .= $content['struct'][ $sitemap['startid'] ]['acat_alias'];
} else {
$CNT_TMP .= 'id='.$sitemap['startid'];
}
$CNT_TMP .= '">'.html_specialchars($content['struct'][ $sitemap['startid'] ]['acat_name']).'</a>';
}
$CNT_TMP .= '">'.html_specialchars($content['struct'][ $sitemap['startid'] ]['acat_name']).'</a>';
if($sitemap["display"]) {
$CNT_TMP .= build_sitemap_articlelist( $sitemap['startid'] , 0);
}
$CNT_TMP .= build_sitemap( $sitemap['startid'] , 0);
$CNT_TMP .= "</li>\n</ul>";
if(empty($sitemap["without_parent"])) {
$CNT_TMP .= "</li>\n</ul>";
}
}
$CNT_TMP .= $sitemap['after'];

Expand Down
1 change: 1 addition & 0 deletions include/inc_lang/backend/de/lang.inc.php
Expand Up @@ -747,6 +747,7 @@
$BL['be_cnt_sitemap_count'] = 'Z&auml;hler';
$BL['be_cnt_sitemap_classcount'] = 'im CSS Class Namen mitf&uuml;hren';
$BL['be_cnt_sitemap_noclasscount'] = 'nicht im CSS Class Namen mitf&uuml;hren';
$BL['be_cnt_sitemap_without_parent'] = 'ohne Startebene';

// added: 23-04-2004
$BL['be_ctype_bid'] = 'Angebot';
Expand Down
1 change: 1 addition & 0 deletions include/inc_lang/backend/en/lang.inc.php
Expand Up @@ -749,6 +749,7 @@
$BL['be_cnt_sitemap_count'] = 'counter';
$BL['be_cnt_sitemap_classcount'] = 'add to class name';
$BL['be_cnt_sitemap_noclasscount'] = 'don\'t add to class name';
$BL['be_cnt_sitemap_without_parent'] = 'without start level';

// added: 23-04-2004
$BL['be_ctype_bid'] = 'bid';
Expand Down
19 changes: 10 additions & 9 deletions include/inc_lib/content/cnt19.readform.inc.php
Expand Up @@ -19,14 +19,15 @@


// Content Type Guestbook
$content["sitemap"]["before"] = slweg($_POST["csitemap_before"]);
$content["sitemap"]["after"] = slweg($_POST["csitemap_after"]);
$content["sitemap"]["catimg"] = clean_slweg($_POST["csitemap_catimg"]);
$content["sitemap"]["articleimg"] = clean_slweg($_POST["csitemap_articleimg"]);
$content["sitemap"]["display"] = intval($_POST["csitemap_display"]);
$content["sitemap"]["catclass"] = clean_slweg($_POST["csitemap_catclass"]);
$content["sitemap"]["articleclass"] = clean_slweg($_POST["csitemap_articleclass"]);
$content["sitemap"]["classcount"] = intval($_POST["csitemap_classcount"]);
$content["sitemap"]["startid"] = intval($_POST["csitemap_startid"]);
$content["sitemap"]["before"] = slweg($_POST["csitemap_before"]);
$content["sitemap"]["after"] = slweg($_POST["csitemap_after"]);
$content["sitemap"]["catimg"] = clean_slweg($_POST["csitemap_catimg"]);
$content["sitemap"]["articleimg"] = clean_slweg($_POST["csitemap_articleimg"]);
$content["sitemap"]["display"] = empty($_POST["csitemap_display"]) ? 0 : 1;
$content["sitemap"]["catclass"] = clean_slweg($_POST["csitemap_catclass"]);
$content["sitemap"]["articleclass"] = clean_slweg($_POST["csitemap_articleclass"]);
$content["sitemap"]["classcount"] = intval($_POST["csitemap_classcount"]);
$content["sitemap"]["startid"] = intval($_POST["csitemap_startid"]);
$content["sitemap"]["without_parent"] = empty($_POST["csitemap_without_parent"]) ? 0 : 1;

?>
4 changes: 4 additions & 0 deletions include/inc_lib/content/cnt19.takeval.inc.php
Expand Up @@ -22,4 +22,8 @@
// Content Type Sitemap
$content["sitemap"] = unserialize($row["acontent_form"]);

if(!isset($content["sitemap"]["without_parent"])) {
$content["sitemap"]["without_parent"] = 0;
}

?>
6 changes: 3 additions & 3 deletions include/inc_lib/revision/revision.php
Expand Up @@ -8,8 +8,8 @@
* @link http://www.phpwcms.de
*
**/
define('PHPWCMS_VERSION', '1.6.530');
define('PHPWCMS_RELEASE_DATE', '2013/04/06');
define('PHPWCMS_REVISION', '530');
define('PHPWCMS_VERSION', '1.6.531');
define('PHPWCMS_RELEASE_DATE', '2013/04/07');
define('PHPWCMS_REVISION', '531');

?>
37 changes: 20 additions & 17 deletions include/inc_tmpl/content/cnt19.inc.php
Expand Up @@ -21,15 +21,16 @@

if(!isset($content['sitemap'])) {

$content['sitemap']["before"] = '';
$content['sitemap']["after"] = '';
$content['sitemap']["catimg"] = '';
$content['sitemap']["articleimg"] = '';
$content['sitemap']["startid"] = 0;
$content['sitemap']["display"] = 0;
$content['sitemap']["catclass"] = '';
$content['sitemap']["articleclass"] = '';
$content['sitemap']["classcount"] = 0;
$content['sitemap']["before"] = '';
$content['sitemap']["after"] = '';
$content['sitemap']["catimg"] = '';
$content['sitemap']["articleimg"] = '';
$content['sitemap']["startid"] = 0;
$content['sitemap']["display"] = 0;
$content['sitemap']["catclass"] = '';
$content['sitemap']["articleclass"] = '';
$content['sitemap']["classcount"] = 0;
$content['sitemap']["without_parent"] = 0;

}

Expand Down Expand Up @@ -75,10 +76,12 @@
<td align="right" class="chatlist"><?php echo $BL['be_cnt_sitemap_display'] ?>:&nbsp;</td>
<td valign="top"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#E7E8EB" summary="">
<tr>
<td><input name="csitemap_display" type="radio" value="0" <?php is_checked(0, $content["sitemap"]["display"]) ?>></td>
<td><?php echo $BL['be_cnt_sitemap_structuronly'] ?>&nbsp;&nbsp;</td>
<td><input name="csitemap_display" type="radio" value="1" <?php is_checked(1, $content["sitemap"]["display"]) ?>></td>
<td><?php echo $BL['be_cnt_sitemap_structurarticle'] ?>&nbsp;&nbsp;&nbsp;</td>
<td><input name="csitemap_display" id="csitemap_display0" type="radio" value="0" <?php is_checked(0, $content["sitemap"]["display"]) ?>></td>
<td><label for="csitemap_display0"><?php echo $BL['be_cnt_sitemap_structuronly'] ?></label>&nbsp;&nbsp;</td>
<td><input name="csitemap_display" id="csitemap_display1" type="radio" value="1" <?php is_checked(1, $content["sitemap"]["display"]) ?>></td>
<td><label for="csitemap_display1"><?php echo $BL['be_cnt_sitemap_structurarticle'] ?></label>&nbsp;&nbsp;</td>
<td><input name="csitemap_without_parent" id="csitemap_without_parent" type="checkbox" value="1" <?php is_checked(1, $content["sitemap"]["without_parent"]) ?>></td>
<td><label for="csitemap_without_parent"><?php echo $BL['be_cnt_sitemap_without_parent'] ?></label>&nbsp;&nbsp;</td>
</tr></table></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr>
Expand All @@ -96,10 +99,10 @@
<td align="right" class="chatlist"><?php echo $BL['be_cnt_sitemap_count'] ?>:&nbsp;</td>
<td valign="top"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#E7E8EB" summary="">
<tr>
<td><input name="csitemap_classcount" type="radio" value="0" <?php is_checked(0, $content["sitemap"]["classcount"]) ?>></td>
<td><?php echo $BL['be_cnt_sitemap_noclasscount'] ?>&nbsp;&nbsp;</td>
<td><input name="csitemap_classcount" type="radio" value="1" <?php is_checked(1, $content["sitemap"]["classcount"]) ?>></td>
<td><?php echo $BL['be_cnt_sitemap_classcount'] ?>&nbsp;&nbsp;&nbsp;</td>
<td><input name="csitemap_classcount" id="csitemap_classcount0" type="radio" value="0" <?php is_checked(0, $content["sitemap"]["classcount"]) ?>></td>
<td><label for="csitemap_classcount0"><?php echo $BL['be_cnt_sitemap_noclasscount'] ?></label>&nbsp;&nbsp;</td>
<td><input name="csitemap_classcount" id="csitemap_classcount1" type="radio" value="1" <?php is_checked(1, $content["sitemap"]["classcount"]) ?>></td>
<td><label for="csitemap_classcount1"><?php echo $BL['be_cnt_sitemap_classcount'] ?></label>&nbsp;&nbsp;</td>
</tr></table></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr>

0 comments on commit 834f96b

Please sign in to comment.