本文整理汇总了PHP中KunenaForum::isSvn方法的典型用法代码示例。如果您正苦于以下问题:PHP KunenaForum::isSvn方法的具体用法?PHP KunenaForum::isSvn怎么用?PHP KunenaForum::isSvn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KunenaForum
的用法示例。
在下文中一共展示了KunenaForum::isSvn方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
<div class="icon-container">
<div class="icon"> <a href="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=recount') ?>" title="<?php echo JText::_('COM_KUNENA_RECOUNTFORUMS');?>"> <img src="<?php echo JURI::base(true); ?>/components/com_kunena/media/icons/large/recount.png" align="middle" border="0" alt="" /> <span> <?php echo JText::_('COM_KUNENA_RECOUNTFORUMS'); ?> </span></a> </div>
</div>
<div class="icon-container">
<div class="icon"> <a href="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=trash') ?>" title="<?php echo JText::_('COM_KUNENA_TRASH_VIEW');?>"> <img src="<?php echo JURI::base(true); ?>/components/com_kunena/media/icons/large/trash.png" align="middle" border="0" alt="" /> <span> <?php echo JText::_('COM_KUNENA_TRASH_VIEW'); ?> </span></a> </div>
</div>
<div class="icon-container">
<div class="icon"> <a href="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=stats') ?>" title="<?php echo JText::_('COM_KUNENA_STATS_GEN_STATS');?>"> <img src="<?php echo JURI::base(true); ?>/components/com_kunena/media/icons/large/stats.png" align="middle" border="0" alt="" /> <span> <?php echo JText::_('COM_KUNENA_STATS_GEN_STATS'); ?> </span></a> </div>
</div>
<div class="icon-container">
<div class="icon"> <a href="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=report') ?>" title="<?php echo JText::_('COM_KUNENA_REPORT_SYSTEM');?>"> <img src="<?php echo JURI::base(true); ?>/components/com_kunena/media/icons/large/report.png" align="middle" border="0" alt="" /> <span> <?php echo JText::_('COM_KUNENA_REPORT_SYSTEM'); ?> </span></a> </div>
</div>
<div class="icon-container">
<div class="icon"> <a href="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=createmenu') ?>" title="<?php echo JText::_('COM_KUNENA_CREATE_MENU');?>"> <img src="<?php echo JURI::base(true); ?>/components/com_kunena/media/icons/large/menu.png" align="middle" border="0" alt="" /> <span> <?php echo JText::_('COM_KUNENA_CREATE_MENU'); ?> </span></a> </div>
</div>
<?php if (KunenaForum::isSvn()) { ?>
<div class="icon-container">
<div class="icon"> <a href="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=install&task=prepare&'.JUtility::getToken().'=1') ?>" title="<?php echo JText::_('COM_KUNENA_SVN_INSTALL');?>"> <img src="<?php echo JURI::base(true); ?>/components/com_kunena/media/icons/large/install.png" align="middle" border="0" alt="" /> <span> <?php echo JText::_('COM_KUNENA_SVN_INSTALL'); ?> </span></a> </div>
</div>
<?php } ?>
<div class="icon-container">
<div class="icon"> <a href="http://www.kunena.org" target="_blank" title="<?php echo JText::_('COM_KUNENA_C_SUPPORTDESC');?>"> <img src="<?php echo JURI::base(true); ?>/components/com_kunena/media/icons/large/support.png" align="middle" border="0" alt="" /> <span> <?php echo JText::_('COM_KUNENA_C_SUPPORT'); ?> </span></a> </div>
</div>
</div>
</td>
</tr>
</table>
</div>
<?php if ( $this->config->version_check ) : ?>
<div class="kadmin-welcome">
<?php echo $this->versioncheck; ?>
示例2: KunenaAddStyleSheet
/**
* Wrapper to addStyleSheet
*
*/
function KunenaAddStyleSheet($filename) {
$document = JFactory::getDocument ();
$config = KunenaFactory::getConfig ();
if (JDEBUG || $config->debug || KunenaForum::isSvn()) {
// If we are in debug more, make sure we load the unpacked css
$filename = preg_replace ( '/\-min\./u', '.', $filename );
}
return $document->addStyleSheet ( $filename );
}
示例3: displaySchemaDiff
function displaySchemaDiff() {
require_once KPATH_ADMIN . '/install/schema.php';
$schema = new KunenaModelSchema ();
$diff = $schema->getDiffSchema ();
$sql = $schema->getSchemaSQL ( $diff );
echo '<textarea cols="80" rows="20">';
echo $this->escape ( $diff->saveXML () );
echo '</textarea>';
if (KunenaForum::isSvn()) {
echo '<textarea cols="80" rows="20">';
foreach ( $sql as $item ) {
echo $this->escape($item ['sql']) . "\n\n";
}
echo '</textarea>';
}
}
示例4: uninstall
function uninstall() {
JRequest::checkToken( 'get' ) or die( 'Invalid Token' );
$this->model->setAction ( 'uninstall' );
$this->model->deleteTables('kunena_');
$this->model->deleteMenu();
$app = JFactory::getApplication();
$app->enqueueMessage(JText::_('COM_KUNENA_INSTALL_REMOVED'));
if (!KunenaForum::isSvn()) {
jimport('joomla.filesystem.folder');
JFolder::delete(KPATH_MEDIA);
jimport('joomla.installer.installer');
$installer = new JInstaller ( );
jimport('joomla.application.component.helper');
$component = JComponentHelper::getComponent('com_kunena');
$installer->uninstall ( 'component', $component->id );
$this->setRedirect ( 'index.php?option=com_installer' );
} else {
$this->setRedirect ( 'index.php?option=com_kunena&view=install' );
}
}
示例5: addScript
/**
* Wrapper to addScript
*/
function addScript($filename) {
if (!JDEBUG && !KunenaFactory::getConfig ()->debug && !KunenaForum::isSvn ()) {
// If we are in debug more, make sure we load the unpacked css
$filename = preg_replace ( '/\.js$/u', '-min.js', $filename );
}
return JFactory::getDocument ()->addScript ( JURI::root(true).'/'.$this->getFile($filename) );
}