Bleekk
Co-Administrator
Gepostet am:27.09.2014 10:25
<link href="<{xoImgUrl css/mansetx.css}>" type="text/css" rel="stylesheet" />
[!SCRIPT FILTERED!]
[!SCRIPT FILTERED!]
<{includeq file="$theme_name/slidetpublisher.html"}>
<{php}>
include_once XOOPS_ROOT_PATH . '/modules/publisher/include/common.php';
$publisher =& PublisherPublisher::getInstance();
$myts =& MyTextSanitizer::getInstance();
$itemsObj = $publisher->getHandler('item')->getItems($limit = 6, $start = 0, array(_PUBLISHER_STATUS_PUBLISHED), -1, $sort = 'datesub', $order='DESC', '', true, $criteria = null, true);
$totalItems = count($itemsObj);
global $items;
$items = array();
if ($itemsObj) {
for ( $i = 0; $i < $totalItems; $i++ ) {
$newItems['itemid'] = $itemsObj[$i]->itemid();
$newItems['title'] = $itemsObj[$i]->title();
$newItems['body'] = $itemsObj[$i]->body();
$newItems['votes'] = $itemsObj[$i]->votes();
$newItems['image'] = XOOPS_URL . '/uploads/blank.gif';
$images = $itemsObj[$i]->getImages();
if (is_object($images['main'])) {
$newItems['image'] = XOOPS_URL . '/uploads/' . $images['main']->getVar('image_name');
}
$items[] = $newItems;
}
}
<{/php}>
<div id="mansetx">
<{php}>
foreach ( $GLOBALS['items'] as $myrow )
{
$GLOBALS['xoopsTpl']->assign('itemid', $myrow['itemid']);
$GLOBALS['xoopsTpl']->assign('title', $myrow['title']);
$GLOBALS['xoopsTpl']->assign('body', $myrow['body']);
$GLOBALS['xoopsTpl']->assign('votes', $myrow['votes']);
$GLOBALS['xoopsTpl']->assign('image', $myrow['image']);
<{/php}>
<div id="mansetx-img">
<a href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>"><img width="720" height="315" src="<{$image}>"></a>
</div>
<{php}>
}
<{/php}>
<div id="mansetx-selector">
<ul>
</ul>
</div>
</div>
Forum | Thema | Antworten | Views | Letzter Beitrag |
---|---|---|---|---|
Die Installation und Administration von XOOPS 2.5.X | xoRewriteModulea - Simplified, Short URLs? | 8 | 2487 | 13.04.2021 12:52 Goffy ![]() |
Die Installation und Administration von XOOPS 2.5.X | xsitemap and SEO URLS | 1 | 72 | 12.04.2021 15:44 Goffy ![]() |
Hinweise, News und Forenregel | XOOPS 2.6.0 pre-Alpha 3 Installation Video | 3 | 4736 | 07.04.2021 20:09 trucker2006 ![]() |
Bug-Report für XOOPS 2.5.X | [Anfrage] wggallery mit xoops 2.5.11 beta | 4 | 115 | 07.04.2021 14:39 Goffy ![]() |
Die Installation und Administration von XOOPS 2.5.X | [Anfrage] Erbitte 2 Sachen | 7 | 862 | 02.04.2021 10:27 trucker2006 ![]() |
Die Installation und Administration von XOOPS 2.5.X | MyAlbum-P für Xoops 2.5.11 | 43 | 7343 | 14.03.2021 10:54 Goffy ![]() |
Sprachfiles | Wenn du beim Übersetzen mithelfen möchtest..... | 6 | 2551 | 26.02.2021 21:52 WDC ![]() |
Entwicklung allgemein | Infinite Scroll in myalbum | 4 | 822 | 17.02.2021 20:37 WDC ![]() |
Entwicklung allgemein | Xoops Multisite | 8 | 1726 | 20.01.2021 09:38 Goffy ![]() |
sonstige Module | xsitemap | 2 | 768 | 19.01.2021 14:18 WDC ![]() |