예제 #1
0
    ?>
    	<div class="clear"></div>
        </div>
    <?php 
}
// Product Navigation END
?>
	
	<?php 
// Back To Category Button
if ($this->product->virtuemart_category_id) {
    $catURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $this->product->virtuemart_category_id);
    $categoryName = $this->product->category_name;
} else {
    $catURL = JRoute::_('index.php?option=com_virtuemart');
    $categoryName = jtext::_('COM_VIRTUEMART_SHOP_HOME');
}
?>
	<div class="back-to-category">
    	<a href="<?php 
echo $catURL;
?>
" class="product-details" title="<?php 
echo $categoryName;
?>
"><?php 
echo JText::sprintf('COM_VIRTUEMART_CATEGORY_BACK_TO', $categoryName);
?>
</a>
	</div>
	
예제 #2
0
 private function _publishPlugin($plg_name, $plg_type, $plg_full_name = null)
 {
     $plugin = JPluginHelper::getPlugin($plg_type, $plg_name);
     $success = true;
     if (empty($plugin)) {
         //get the smallest order value
         $db = jfactory::getdbo();
         // publish plugin
         $query = $db->getquery(true);
         // fields to update.
         $fields = array($db->quotename('enabled') . '=' . $db->quote('1'));
         // conditions for which records should be updated.
         $conditions = array($db->quotename('type') . '=' . $db->quote('plugin'), $db->quotename('folder') . '=' . $db->quote($plg_type), $db->quotename('element') . '=' . $db->quote($plg_name));
         $query->update($db->quotename('#__extensions'))->set($fields)->where($conditions);
         $db->setquery($query);
         $result = $db->execute();
         $getaffectedrows = $db->getAffectedRows();
         $success = $getaffectedrows;
     }
     if (empty($plg_full_name)) {
         $plg_full_name = $plg_name;
     }
     $msg = jtext::_('jglobal_fieldset_publishing') . ': <b style="color:blue;"> ' . JText::_($plg_full_name) . '</b> ... ';
     if ($success) {
         $msg .= '<b style="color:green">' . jtext::_('jpublished') . '</b>';
     } else {
         $msg .= '<b style="color:red">' . jtext::_('error') . '</b>';
     }
     $this->messages[] = $msg;
 }
 function newLink($view, $idLink, $created_by, $task = "add", $vendorId = null)
 {
     if ($idLink === null) {
         return;
     }
     if (!$this->can($task, $view, $created_by, $vendorId)) {
         return '';
     }
     if (jtext::_('COM_VIRTUEMART_' . $view) !== 'COM_VIRTUEMART_' . $view) {
         $text = jtext::_('COM_VIRTUEMART_' . $view);
     } else {
         $text = $view;
     }
     $edit_link = 'index.php?option=com_virtuemart&tmpl=component&view=' . $view . '&task=' . $task . $idLink;
     return '<a title="' . JText::_('JNEW') . ' ' . $text . '" href="' . JRoute::_($edit_link, FALSE) . '" class="btn btn-default"><span class="icon icon-new"> </span> ' . $text . '</a>';
 }
"><i class="icon icon-dashboard"></i><span class="desktop"><?php 
echo jtext::_('COM_VIRTUEMART_SHOP_HOME');
?>
</span></a></li>
						<?php 
foreach ($treemenu as $topname => $menus) {
    if ($topname == 'COM_VIRTUEMART_ADD') {
        $task = 'add';
    }
    $hasLink = false;
    ?>
							<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="icon icon-<?php 
    echo $mainIcons[$topname];
    ?>
"></i><span class="desktop"><?php 
    echo jtext::_($topname);
    ?>
</span><span class="caret"></span></a>
								<ul class="dropdown-menu">
									<?php 
    foreach ($menus as $link => $name) {
        if ($task === 'add') {
            $viewArray = explode('&', $link);
            $view = $viewArray[0];
        } else {
            $view = $link;
        }
        if (!ShopFunctions::can($task, $view)) {
            continue;
        }
        $hasLink = true;
예제 #5
0
} else {
    echo $pane->startPanel(jtext::_('JPSTATUSSUMMARY'), 'jpstatussummary') . "\n";
    echo $this->statuscell . "\n";
    echo "<hr/>\n";
    echo $this->detailscell . "\n";
    echo $pane->endPanel() . "\n";
}
if (!$this->easymode) {
    echo $pane->startPanel(jtext::_('BACKUP_STATS'), 'jpbackupstats') . "\n";
    echo $this->statscell . "\n";
    echo $pane->endPanel() . "\n";
    echo $pane->startPanel(jtext::_('NEWS_TITLE'), 'jpnews') . "\n";
    echo $this->newscell . "\n";
    echo $pane->endPanel() . "\n";
}
echo $pane->startPanel(jtext::_('TRANSLATION_CREDITS'), 'jptranslationcredits') . "\n";
?>
		<p>
		<strong><?php 
echo JText::_('TRANSLATION_LANGUAGE');
?>
</strong><br/>
		<a href="<?php 
echo JText::_('TRANSLATION_AUTHOR_URL');
?>
"><?php 
echo JText::_('TRANSLATION_AUTHOR');
?>
</a>
		</p>
		<?php