| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/administrator/components/com_linkr/views/bookmark/ |
Upload File : |
<?php defined('_JEXEC') or die;
/**
* Bookmark view for Link component
*
* @package Linkr
* @author Frank
*/
// Import librairies
jimport( 'joomla.application.component.view' );
class LinkrViewBookmark extends JView
{
/**
* display method of bookmark view
* @return void
**/
function display($tpl = null)
{
// Toolbar
$bookmark = & $this->get( 'Bookmark' );
$isNew = ( $bookmark->id < 1 );
$text = $isNew ? JText::_( 'NEW' ) : JText::_( 'EDIT' );
JToolBarHelper::title( JText::_( 'BOOKMARK' ).': <small><small>[ ' . $text.' ]</small></small>', 'bookmark' );
JToolBarHelper::save();
JToolBarHelper::apply();
if ($isNew) {
JToolBarHelper::cancel();
} else {
JToolBarHelper::cancel('cancel', JText::_('CLOSE'));
}
JHTML::_('behavior.modal');
$doc = & JFactory::getDocument();
$doc->addStyleDeclaration(
'.icon-48-bookmark{'.
'background-image:url(components/com_linkr/assets/icon.bm.png);'.
'}'
);
$this->assignRef('bookmark', $bookmark);
$this->assignRef('lists', $this->get('Lists'));
parent::display($tpl);
}
}