/** * Utility class for writing the HTML for content * @package Joomla RE * @subpackage Content */ class HTML_content { /** * Draws a Content List * Used by Content Category & Content Section */ function showContentList( $title, &$items, &$access, $id=0, $sectionid=NULL, $gid, &$params, &$pageNav, $other_categories, &$lists, $order, $categories_exist ) { global $Itemid, $mosConfig_live_site;
/** * Display links to content items */ function showLinks( &$rows, $links, $total, $i=0, $show=1, $ItemidCount=NULL ) { global $mainframe, $Itemid;
// getItemid compatibility mode, holds maintenance version number $compat = (int) $mainframe->getCfg('itemid_compat');
if ( $show ) { ?> <div> <strong> <?php echo _MORE; ?> </strong> </div> <?php } ?> <ul> <?php for ( $z = 0; $z < $links; $z++ ) { if (!isset( $rows[$i] )) { // stops loop if total number of items is less than the number set to display as intro + leading break; }
if ( $_Itemid && $_Itemid != 99999999 ) { // where Itemid value is returned, do not add Itemid to url $Itemid_link = '&Itemid='. $_Itemid; } else { // where Itemid value is NOT returned, do not add Itemid to url $Itemid_link = ''; }
/** * Show a content item * @param object An object with the record data * @param boolean If <code>false</code>, the print button links to a popup window. If <code>true</code> then the print button invokes the browser print method. */ function show( &$row, &$params, &$access, $page=0 ) { global $mainframe, $hide_js; global $mosConfig_live_site; global $_MAMBOTS;
// adds mospagebreak heading or title to <site> Title if ( isset($row->page_title) && $row->page_title ) { $mainframe->setPageTitle( $row->title .' '. $row->page_title ); }
// displays the next & previous buttons HTML_content::Navigation ( $row, $params );
// displays close button in pop-up window mosHTML::CloseButton ( $params, $hide_js );
// displays back button in pop-up window mosHTML::BackButton ( $params, $hide_js ); }
/** * calculate Itemid */ function _Itemid( &$row ) { global $task, $Itemid, $mainframe;
// getItemid compatibility mode, holds maintenance version number $compat = (int) $mainframe->getCfg('itemid_compat');
if ( ($compat > 0 && $compat <= 11) && $task != 'view' && $task != 'category' ) { $row->_Itemid = $mainframe->getItemid( $row->id, 0, 0 ); } else { // when viewing a content item, it is not necessary to calculate the Itemid $row->_Itemid = $Itemid; }
if ( $row->_Itemid && $row->_Itemid != 99999999 ) { // where Itemid value is returned, do not add Itemid to url $row->Itemid_link = '&Itemid='. $row->_Itemid; } else { // where Itemid value is NOT returned, do not add Itemid to url $row->Itemid_link = ''; } }
/** * determines the link and `link text` of the readmore button & linked title */ function _linkInfo( &$row, &$params ) { global $my;
$row->link_on = ''; $row->link_text = '';
if ($params->get( 'readmore' ) || $params->get( 'link_titles' )) { if ( $params->get( 'intro_only' ) ) { // checks if the item is a public or registered/special item if ( $row->access <= $my->gid ) { $row->link_on = sefRelToAbs( 'index.php?option=com_content&task=view&id=' . $row->id . $row->Itemid_link );
if ( isset($row->readmore) && @$row->readmore) { // text for the readmore link $row->link_text = _READ_MORE; } } else { $row->link_on = sefRelToAbs( 'index.php?option=com_registration&task=register' );
if ( isset($row->readmore) && @$row->readmore ) { // text for the readmore link if accessible only if registered $row->link_text = _READ_MORE_REGISTER; } } } } }
/** * Writes the edit form for new and existing content item * * A new record is defined when <var>$row</var> is passed with the <var>id</var> * property set to 0. * @param mosContent The category object * @param string The html for the groups select list */ function editContent( &$row, $section, &$lists, &$images, &$access, $myid, $sectionid, $task, $Itemid ) { global $mosConfig_live_site, $mainframe;
/** * Writes Email sent popup * @param string Who it was sent to * @param string The current template */ function emailSent( $to, $template='' ) { global $mosConfig_sitename, $mainframe;
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Здравствуйте, подскажите какой тег использовать для увеличения значения, пример на картинке.
Вроде, про такой тег я слышала. Если есть тег прогресс бар, значит и такое должно быть.
Question
vovchikku
нужно перенести подпись "автор" под текст, как это сделать?
http://www.consultant-ugra.ru/content/view/98/16/
вот код. понятно что надо кусок тега перенести, но какой и куда? я даже не понимаю где в этом массиве тег вывода основного текста mainbody...
просветите плиз
и почему здесь (на форуме) код не сжимается?
пасибки
Edited by vovchikkuLink to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.