Publisher قالب های قابل تنظیم برای نمایش مقالات و بلوک ها را برای ادغام sidebar/widget فراهم می کند. این راهنما سفارشی سازی قالب و پیکربندی بلوک را پوشش می دهد.
الگو هدف publisher_index.tplصفحه اصلی ماژول publisher_item.tplمشاهده تک مقاله publisher_category.tplفهرست بندی دسته ها publisher_archive.tplصفحه آرشیو publisher_search.tplنتایج جستجو publisher_submit.tplفرم ارسال مقاله publisher_print.tplنمایش مناسب چاپ
الگو هدف publisher_block_latest.tplآخرین مقالات بلوک publisher_block_spotlight.tplبلوک مقاله ویژه publisher_block_category.tplبلوک فهرست دسته بندی publisher_block_author.tplبلوک مقالات نویسنده
{* Available in publisher_item.tpl *}
< {$item.title}> {* Article title *}
< {$item.body}> {* Full content *}
< {$item.summary}> {* Summary/excerpt *}
< {$item.author}> {* Author name *}
< {$item.authorid}> {* Author user ID *}
< {$item.datesub}> {* Publication date *}
< {$item.datemodified}> {* Last modified date *}
< {$item.counter}> {* View count *}
< {$item.rating}> {* Average rating *}
< {$item.votes}> {* Number of votes *}
< {$item.categoryname}> {* Category name *}
< {$item.categorylink}> {* Category URL *}
< {$item.itemurl}> {* Article URL *}
< {$item.image}> {* Featured image *}
{* Available in publisher_category.tpl *}
< {$category.name}> {* Category name *}
< {$category.description}> {* Category description *}
< {$category.image}> {* Category image *}
< {$category.total}> {* Article count *}
< {$category.link}> {* Category URL *}
الگوها را برای سفارشی کردن در تم خود کپی کنید:
themes/mytheme/modules/publisher/
└── publisher_block_latest.tpl
{* themes/mytheme/modules/publisher/publisher_item.tpl *}
< article class = " publisher-article " >
< span class = " author " > By < {$item.author}> </ span >
< span class = " date " > < {$item.datesub}> </ span >
< a href = " < {$item.categorylink}> " > < {$item.categoryname}> </ a >
< figure class = " featured-image " >
< img src = " < {$item.image}> " alt = " < {$item.title}> " >
< p class = " attribution " > < {$item.who_when}> </ p >
< a href = " < {$xoops_url}>/modules/publisher/submit.php?itemid= < {$item.itemid}> " >
< a href = " < {$item.printlink}> " target = " _blank " > Print </ a >
< a href = " < {$item.maillink}> " > Email </ a >
بلوک توضیحات آخرین اخبار نمایش مقالات اخیر کانون توجه برجسته مقاله منوی دسته بندی ناوبری دسته آرشیو لینک های آرشیو نویسندگان برتر فعال ترین نویسندگان اقلام محبوب پربازدیدترین مقالات
گزینه توضیحات موارد برای نمایش تعداد مقالات فیلتر دسته محدود به دسته های خاص نمایش خلاصه نمایش گزیده مقاله طول عنوان کوتاه کردن عناوین الگو فایل قالب مسدود
{* themes/mytheme/modules/publisher/blocks/publisher_block_latest.tpl *}
< div class = " publisher-latest-block " >
< {foreach item=item from=$block.items}>
< article class = " block-item " >
< a href = " < {$item.link}> " > < {$item.title}> </ a >
< {if $block.show_summary}>
< span class = " date " > < {$item.date}> </ span >
< span class = " views " > < {$item.counter}> views </ span >
{* Show different content for different users *}
< a href = " admin/item.php?op=edit&itemid= < {$item.itemid}> " > Admin Edit </ a >
< {elseif $item.uid == $xoops_userid}>
< a href = " submit.php?itemid= < {$item.itemid}> " > Edit Your Article </ a >
{* Add status-based styling *}
< article class = " article < {$item.status}> " >
{* Format dates with Smarty *}
< time datetime = " < {$item.datesub|date_format:'%Y-%m-%d'}> " >
< {$item.datesub|date_format:$xoops_config.dateformat}>
../User-Guide/Basic-Configuration - تنظیمات ماژول
../User-Guide/Creating-Articles - مدیریت محتوا
../../04-API-Reference/Template/Template-System - موتور قالب XOOPS
../../02-Core-Concepts/Themes/Theme-Development - سفارشی سازی تم