|
From: <bi...@us...> - 2013-02-13 04:56:37
|
Revision: 11045
http://sourceforge.net/p/xoops/svn/11045
Author: bitc3r0
Date: 2013-02-13 04:56:34 +0000 (Wed, 13 Feb 2013)
Log Message:
-----------
Modified Paths:
--------------
RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php
RMC/modules/xthemes/trunk/xthemes/css/themes.css
RMC/modules/xthemes/trunk/xthemes/settings.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php
Modified: RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php 2013-02-13 04:54:14 UTC (rev 11044)
+++ RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php 2013-02-13 04:56:34 UTC (rev 11045)
@@ -271,5 +271,31 @@
return !is_a($this->current, 'StandardTheme');
}
+
+ /**
+ * is module or plugin installed?
+ * @paramn string Directory name of module or plugin
+ * @param string type can be 'module' or 'plugin'
+ * @return bool
+ */
+ public function installed($dirname, $type){
+
+ $rmf = new RMFunctions();
+
+ if($type=='plugin'){
+
+ return $rmf->plugin_installed($dirname);
+
+ } else {
+
+ $mod = $rmf->load_module($dirname);
+ if($mod->isNew())
+ return false;
+ else
+ return true;
+
+ }
+
+ }
}
Modified: RMC/modules/xthemes/trunk/xthemes/css/themes.css
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/css/themes.css 2013-02-13 04:54:14 UTC (rev 11044)
+++ RMC/modules/xthemes/trunk/xthemes/css/themes.css 2013-02-13 04:56:34 UTC (rev 11045)
@@ -407,6 +407,7 @@
background: #000;
opacity: 0.8;
display: none;
+ z-index: 3000;
}
#xt-previewer{
position: fixed;
@@ -416,6 +417,7 @@
display: none;
background: #fff;
border: 1px solid #5E8B03;
+ z-index: 3001;
}
#xt-previewer .title{
padding: 8px 10px;
Modified: RMC/modules/xthemes/trunk/xthemes/settings.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/settings.php 2013-02-13 04:54:14 UTC (rev 11044)
+++ RMC/modules/xthemes/trunk/xthemes/settings.php 2013-02-13 04:56:34 UTC (rev 11045)
@@ -144,6 +144,12 @@
case 'color':
$ele = new RMFormColorSelector($option['caption'], $name, $option['value'], true);
break;
+ case 'imageselect':
+ $ele = new RMFormImageSelect($option['caption'], $name, $option['value']);
+ foreach($option['options'] as $v => $url){
+ $ele->addImage($v, $url);
+ }
+ break;
case 'textbox':
case 'password':
default:
Modified: RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php 2013-02-13 04:54:14 UTC (rev 11044)
+++ RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php 2013-02-13 04:56:34 UTC (rev 11045)
@@ -10,7 +10,7 @@
<div class="current_standar_legend">
<?php _e('This is a standard XOOPS Theme and doesn\'t have any additional option.','xthemes'); ?>
</div>
- <a href="<?php echo XOOPS_URL; ?>" class="button" target="_blank"><span class="icon icon-home"></span> <?php _e('View Site','xthemes'); ?></a>
+ <a href="<?php echo XOOPS_URL; ?>" class="button" target="_blank"><i class="icon-home"></i> <?php _e('View Site','xthemes'); ?></a>
<?php else: ?>
<div class="current_data">
<ul>
@@ -35,19 +35,19 @@
<div class="current_options">
<h4><span><?php _e('Theme Options','xthemes'); ?></span></h4>
<?php if(method_exists($current, 'controlPanel')): ?>
- <a href="theme.php" class="button buttonLight btn btn-warning"><span class="icon icon-gear"></span> <?php _e('Dashboard','xthemes'); ?></a>
+ <a href="theme.php" class="button buttonLight btn btn-warning"><i class="icon-cog"></span> <?php _e('Dashboard','xthemes'); ?></a>
<?php endif; ?>
<?php if($xtAssembler->rootMenus()): ?>
- <a href="navigation.php" class="button btn"><span class="icon icon-menu"></span> <?php _e('Menus','xthemes'); ?></a>
+ <a href="navigation.php" class="button btn"><i class="icon-reorder"></i> <?php _e('Menus','xthemes'); ?></a>
<?php endif; ?>
<?php if($current->settings()): ?>
- <a href="settings.php" class="button btn"><span class="icon icon-settings"></span> <?php _e('Settings','xthemes'); ?></a>
+ <a href="settings.php" class="button btn"><i class="icon-wrench"></i> <?php _e('Settings','xthemes'); ?></a>
<?php endif; ?>
<?php if($current->getInfo('uri')!=''): ?>
- <a href="<?php echo $current->getInfo('uri'); ?>" target="_blank" class="button btn"><span class="icon icon-home"></span> <?php _e('Website','xthemes'); ?></a>
+ <a href="<?php echo $current->getInfo('uri'); ?>" target="_blank" class="button btn"><i class="icon-home"></i> <?php _e('Website','xthemes'); ?></a>
<?php endif; ?>
<?php if($current->getInfo('author_uri')!=''): ?>
- <a href="<?php echo $current->getInfo('author_uri'); ?>" target="_blank" class="button btn"><span class="icon icon-user"></span> <?php _e('Author','xthemes'); ?></a>
+ <a href="<?php echo $current->getInfo('author_uri'); ?>" target="_blank" class="button btn"><i class="icon-user"></i> <?php _e('Author','xthemes'); ?></a>
<?php endif; ?>
</div>
<?php endif; ?>
|