|
From: <bi...@us...> - 2013-02-12 02:08:43
|
Revision: 11029
http://sourceforge.net/p/xoops/svn/11029
Author: bitc3r0
Date: 2013-02-12 02:08:36 +0000 (Tue, 12 Feb 2013)
Log Message:
-----------
xthemes first commit
Added Paths:
-----------
RMC/modules/xthemes/trunk/xthemes/class/
RMC/modules/xthemes/trunk/xthemes/class/index.html
RMC/modules/xthemes/trunk/xthemes/class/standardtheme.class.php
RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php
RMC/modules/xthemes/trunk/xthemes/class/xtcolor.class.php
RMC/modules/xthemes/trunk/xthemes/class/xtfeedparser.class.php
RMC/modules/xthemes/trunk/xthemes/class/xtfunctions.class.php
RMC/modules/xthemes/trunk/xthemes/class/xttheme.php
RMC/modules/xthemes/trunk/xthemes/css/
RMC/modules/xthemes/trunk/xthemes/css/dashboard.css
RMC/modules/xthemes/trunk/xthemes/css/index.html
RMC/modules/xthemes/trunk/xthemes/css/settings.css
RMC/modules/xthemes/trunk/xthemes/css/themes.css
RMC/modules/xthemes/trunk/xthemes/events/
RMC/modules/xthemes/trunk/xthemes/events/index.html
RMC/modules/xthemes/trunk/xthemes/events/rmcommon.php
RMC/modules/xthemes/trunk/xthemes/images/
RMC/modules/xthemes/trunk/xthemes/images/about.png
RMC/modules/xthemes/trunk/xthemes/images/catalog.png
RMC/modules/xthemes/trunk/xthemes/images/dashboard.png
RMC/modules/xthemes/trunk/xthemes/images/error.png
RMC/modules/xthemes/trunk/xthemes/images/icons.png
RMC/modules/xthemes/trunk/xthemes/images/index.html
RMC/modules/xthemes/trunk/xthemes/images/logo.png
RMC/modules/xthemes/trunk/xthemes/images/options.png
RMC/modules/xthemes/trunk/xthemes/images/searching.gif
RMC/modules/xthemes/trunk/xthemes/images/sections.png
RMC/modules/xthemes/trunk/xthemes/images/settings.png
RMC/modules/xthemes/trunk/xthemes/images/spacer.png
RMC/modules/xthemes/trunk/xthemes/images/themes.png
RMC/modules/xthemes/trunk/xthemes/images/xthemes.png
RMC/modules/xthemes/trunk/xthemes/images/xthemes24.png
RMC/modules/xthemes/trunk/xthemes/images/xthemes32.png
RMC/modules/xthemes/trunk/xthemes/images/xthemes48.png
RMC/modules/xthemes/trunk/xthemes/index.php
RMC/modules/xthemes/trunk/xthemes/js/
RMC/modules/xthemes/trunk/xthemes/js/dashboard.js
RMC/modules/xthemes/trunk/xthemes/js/index.html
RMC/modules/xthemes/trunk/xthemes/js/jquery.nestedSortable.js
RMC/modules/xthemes/trunk/xthemes/js/json_encode.js
RMC/modules/xthemes/trunk/xthemes/js/xthemes.js
RMC/modules/xthemes/trunk/xthemes/lang/
RMC/modules/xthemes/trunk/xthemes/lang/en.po
RMC/modules/xthemes/trunk/xthemes/lang/es.mo
RMC/modules/xthemes/trunk/xthemes/lang/es.po
RMC/modules/xthemes/trunk/xthemes/lang/index.html
RMC/modules/xthemes/trunk/xthemes/menu.php
RMC/modules/xthemes/trunk/xthemes/navigation.php
RMC/modules/xthemes/trunk/xthemes/preloads/
RMC/modules/xthemes/trunk/xthemes/preloads/core.php
RMC/modules/xthemes/trunk/xthemes/preloads/index.html
RMC/modules/xthemes/trunk/xthemes/settings.php
RMC/modules/xthemes/trunk/xthemes/smarty/
RMC/modules/xthemes/trunk/xthemes/smarty/block.htmlhead.php
RMC/modules/xthemes/trunk/xthemes/smarty/function.locale.php
RMC/modules/xthemes/trunk/xthemes/smarty/index.html
RMC/modules/xthemes/trunk/xthemes/sql/
RMC/modules/xthemes/trunk/xthemes/sql/index.html
RMC/modules/xthemes/trunk/xthemes/sql/mysql.sql
RMC/modules/xthemes/trunk/xthemes/templates/
RMC/modules/xthemes/trunk/xthemes/templates/index.html
RMC/modules/xthemes/trunk/xthemes/templates/widgets/
RMC/modules/xthemes/trunk/xthemes/templates/widgets/index.html
RMC/modules/xthemes/trunk/xthemes/templates/widgets/xt_wgt_sections.php
RMC/modules/xthemes/trunk/xthemes/templates/widgets/xt_wgt_themeinfo.php
RMC/modules/xthemes/trunk/xthemes/templates/widgets/xt_wgt_themeoptions.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_index.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_menu_manager.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_navigation.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_settings.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php
RMC/modules/xthemes/trunk/xthemes/theme.php
RMC/modules/xthemes/trunk/xthemes/themes.php
RMC/modules/xthemes/trunk/xthemes/xoops_version.php
Added: RMC/modules/xthemes/trunk/xthemes/class/index.html
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/class/index.html (rev 0)
+++ RMC/modules/xthemes/trunk/xthemes/class/index.html 2013-02-12 02:08:36 UTC (rev 11029)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: RMC/modules/xthemes/trunk/xthemes/class/standardtheme.class.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/class/standardtheme.class.php (rev 0)
+++ RMC/modules/xthemes/trunk/xthemes/class/standardtheme.class.php 2013-02-12 02:08:36 UTC (rev 11029)
@@ -0,0 +1,42 @@
+<?php
+// $Id: standardtheme.class.php 99 2012-10-24 21:46:58Z i.bitcero $
+// --------------------------------------------------------------
+// xThemes for XOOPS
+// Module for manage themes by Red Mexico
+// Author: Eduardo Cortés <i.b...@gm...>
+// License: GPL v2
+// --------------------------------------------------------------
+
+class StandardTheme extends XtTheme implements XtITheme
+{
+ public function details(){
+
+ $details = array(
+ 'name' => '',
+ 'description' => 'Theme based on original FastPage template from AtomicWebsiteTemplates.com',
+ 'version' => '1.0',
+ 'author' => 'Not provided',
+ 'uri' => '',
+ 'author_uri' => '',
+ 'author_email' => '',
+ 'license' => 'Not specified',
+ 'screenshot' => 'screenshot.png',
+ 'type' => 'standard'
+ );
+
+ return $details;
+
+ }
+
+ public function set_dir($dir){
+
+ $this->details['dir'] = $dir;
+ $this->details['name'] = ucfirst($dir);
+
+ }
+
+ public function haveMenus(){return false;}
+ public function options(){return false;}
+ public function init(){}
+
+}
Added: RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php (rev 0)
+++ RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php 2013-02-12 02:08:36 UTC (rev 11029)
@@ -0,0 +1,275 @@
+<?php
+// $Id: xtassembler.class.php 159 2012-12-06 23:51:54Z i.bitcero $
+// --------------------------------------------------------------
+// xThemes for XOOPS
+// Module for manage themes by Red Mexico
+// Author: Eduardo Cortés <i.b...@gm...>
+// License: GPL v2
+// --------------------------------------------------------------
+
+// Load required classes
+include_once XTPATH.'/class/xttheme.php';
+include_once XTPATH.'/class/xtcolor.class.php';
+include_once XTPATH.'/class/standardtheme.class.php';
+include_once XTPATH.'/class/xtfunctions.class.php';
+
+/**
+* This class is the main controller for xThemes
+*/
+class XtAssembler
+{
+ private $current = null;
+ private $root_menus = null;
+ private $menus = null;
+ private $registered = array();
+ private $colors = '';
+
+ public function __construct($theme = ''){
+
+ global $xoopsConfig;
+
+ $theme = $theme!='' ? $theme : $xoopsConfig['theme_set'];
+ $dir = XOOPS_THEME_PATH.'/'.($theme=='' ? $xoopsConfig['theme_set'] : $theme);
+
+ if(!is_file($dir.'/assemble/'.$theme.'.theme.php')){
+ $this->current = new StandardTheme();
+ $this->current->set_dir($theme);
+ return;
+ }
+
+ require_once $dir.'/assemble/'.$theme.'.theme.php';
+ $class = ucfirst($theme);
+ $this->current = new $class();
+
+ /**
+ * The theme support native menus?
+ */
+ $this->root_menus = $this->current->haveMenus();
+
+ /**
+ * Load theme configuration
+ */
+ $this->current->setSettings($this->load_settings());
+ /*
+ * @todo Agregar código para carga de métodos del tema
+ */
+ $this->loadMenus();
+
+ // Register pluguins
+ if(method_exists($this->current, 'register')){
+
+ $plugins = $this->theme()->register();
+
+ $dir = str_replace(XOOPS_URL, XOOPS_ROOT_PATH, $this->theme()->url().'/assemble/plugins');
+ foreach($plugins as $plug){
+ if(!file_exists($dir.'/'.$plug['file'])) continue;
+
+ include_once $dir.'/'.$plug['file'];
+ $this->registered[$plug['var']] = new $plug['name']();
+
+ }
+
+ }
+
+ }
+
+ /**
+ * This function reload the current theme
+ */
+ public function loadTheme($theme){
+ $this->__construct($theme);
+ }
+
+ /**
+ * Init data for theme rendering
+ */
+ public function init(){
+
+ global $xoopsTpl, $xoopsConfig, $rmc_config, $xoTheme;
+
+ if(!$this->isSupported()) return;
+
+ if($this->current->getInfo('dir')!=$xoopsConfig['theme_set']){
+
+ // If user has selected another theme, realod all theme data
+ $dir = XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'];
+
+ if(!is_file($dir.'/assemble/'.$xoopsConfig['theme_set'].'.theme.php')){
+ $this->current = new StandardTheme();
+ $this->current->set_dir($xoopsConfig['theme_set']);
+ return;
+ }
+
+ require_once $dir.'/assemble/'.$xoopsConfig['theme_set'].'.theme.php';
+ $class = ucfirst($xoopsConfig['theme_set']);
+ $this->current = new $class();
+
+ /**
+ * The theme support native menus?
+ */
+ $this->root_menus = $this->current->haveMenus();
+
+ /**
+ * Load theme configuration
+ */
+ $this->current->setSettings($this->load_settings());
+ /*
+ * @todo Agregar código para carga de métodos del tema
+ */
+ $this->loadMenus();
+
+ // Register pluguins
+ if(method_exists($this->current, 'register')){
+
+ $plugins = $this->theme()->register();
+
+ $dir = str_replace(XOOPS_URL, XOOPS_ROOT_PATH, $this->theme()->url().'/assemble/plugins');
+ foreach($plugins as $plug){
+ if(!file_exists($dir.'/'.$plug['file'])) continue;
+
+ include_once $dir.'/'.$plug['file'];
+ $this->registered[$plug['var']] = new $plug['name']();
+
+ }
+
+ }
+
+ }
+
+ $xoopsTpl->assign('theme', $this->theme());
+ $xoopsTpl->assign('xtConfig', $this->theme()->settings());
+ $xoopsTpl->assign('xt_language', $rmc_config['lang']);
+ $xoopsTpl->assign('isHome', defined('XTHEMES_IS_HOME'));
+
+ $this->colors = new XtColor();
+ $xoopsTpl->assign('xtColor', $this->colors);
+
+ // Assign plugins
+ foreach($this->registered as $id => $o){
+ $xoopsTpl->assign($id, $o);
+ }
+
+ // Register smarty plugins
+ $dir = str_replace(XOOPS_URL, XOOPS_ROOT_PATH, $this->theme()->url());
+
+ $xoopsTpl->plugins_dir[] = XOOPS_ROOT_PATH.'/modules/xthemes/smarty';
+ $xoopsTpl->plugins_dir[] = $dir.'/assemble/smarty';
+
+ load_theme_locale($this->theme()->getInfo('dir'));
+
+ $this->current->init();
+
+ }
+
+ /**
+ * Access to registered plugins
+ */
+ public function plugin($name){
+
+ if($name=='' || !isset($this->registered[$name])) return false;
+
+ return $this->registered[$name];
+
+ }
+
+ /**
+ * Determines if current page is the homepage
+ */
+ public function isHome(){
+ return defined('XTHEMES_IS_HOME');
+ }
+
+ /**
+ * Load theme settings from database
+ */
+ private function load_settings(){
+
+ $db = XoopsDatabaseFactory::getDatabaseConnection();
+ $sql = "SELECT * FROM ".$db->prefix("xt_options")." WHERE theme=".$this->current->id();
+ $result = $db->query($sql);
+
+ $settings = array();
+
+ while($row = $db->fetchArray($result)){
+ $settings[$row['name']] = $row['type']=='array' ? unserialize(trim($row['value'])) : $row['value'];
+ }
+
+ return $settings;
+
+ }
+
+ /**
+ * Load confgiured menus from database
+ * @return array
+ * @return bool
+ */
+ private function loadMenus(){
+
+ $db = XoopsDatabaseFactory::getDatabaseConnection();
+ $sql = "SELECT * FROM ".$db->prefix("xt_menus")." WHERE theme=".$this->current->id()." AND (";
+ $sqlm = '';
+
+ foreach($this->root_menus as $id => $menu){
+ $sqlm .= $sqlm=='' ? "menu='".$id."'" : " OR menu='".$id."'";
+ }
+ $sql .= $sqlm.')';
+ unset($sqlm);
+
+ $result = $db->query($sql);
+ $this->menus = array();
+
+ while($row = $db->fetchArray($result)){
+ $this->menus[$row['menu']] = unserialize($row['content']);
+ }
+
+ }
+
+ /**
+ * Get configured menus from database
+ * @return array
+ * @return false
+ */
+ public function menu($id = ''){
+
+ if($id=='') return $this->menus;
+
+ if(!isset($this->menus[$id])) return false;
+
+ return $this->menus[$id];
+
+ }
+
+ /**
+ * @return Theme Object
+ */
+ public function theme(){return $this->current;}
+
+ /**
+ * @return $xtColor class
+ */
+ public function colorControl(){
+
+ if(!is_object($this->colors))
+ $this->colors = new XtColor();
+
+ return $this->colors;
+ }
+
+ /**
+ * Return the accepted menus from theme
+ * @return array
+ */
+ public function rootMenus(){
+ return $this->root_menus;
+ }
+
+ /**
+ * Determines if the theme is supported
+ */
+ public function isSupported(){
+
+ return !is_a($this->current, 'StandardTheme');
+
+ }
+
+}
Added: RMC/modules/xthemes/trunk/xthemes/class/xtcolor.class.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/class/xtcolor.class.php (rev 0)
+++ RMC/modules/xthemes/trunk/xthemes/class/xtcolor.class.php 2013-02-12 02:08:36 UTC (rev 11029)
@@ -0,0 +1,420 @@
+<?php
+/*
+Based on phpColor, a class by Arlo Carreon
+Copyright © 2012 Arlo Carreon, http://arlocarreon.com
+*/
+
+/**
+ * A color utility that helps manipulate HEX colors
+ */
+class XtColor {
+
+ private $_hex;
+ private $_hsl;
+
+ /**
+ * Auto darkens/lightens by 10% for sexily-subtle gradients.
+ * Set this to FALSE to adjust automatic shade to be between given color
+ * and black (for darken) or white (for lighten)
+ */
+ const DEFAULT_ADJUST = 10;
+
+ /**
+ * Instantiates the class with a HEX value
+ * @param string $hex
+ */
+ function __construct( $hex = '' ) {
+
+ if($hex!='')
+ $this->prepareColor($hex);
+
+ }
+
+ // ====================
+ // = Public Interface =
+ // ====================
+
+ /**
+ * Prepares initial color
+ */
+ public function prepareColor($hex){
+ // Strip # sign is present
+ $color = str_replace("#", "", $hex);
+
+ // Make sure it's 6 digits
+ if( strlen($color) === 3 ) {
+ $color = $color[0].$color[0].$color[1].$color[1].$color[2].$color[2];
+ } else if( strlen($color) != 6 ) {
+
+ throw new Exception("HEX color needs to be 6 or 3 digits long");
+ }
+
+ $this->_hsl = self::hexToHsl( $color );
+ $this->_hex = $color;
+
+ }
+
+ /**
+ * Given a HEX string returns a HSL array equivalent.
+ * @param string $color
+ * @return array HSL associative array
+ */
+ public static function hexToHsl( $color ){
+
+ // Sanity check
+ $color = self::_checkHex($color);
+
+ // Convert HEX to DEC
+ $R = hexdec($color[0].$color[1]);
+ $G = hexdec($color[2].$color[3]);
+ $B = hexdec($color[4].$color[5]);
+
+ $HSL = array();
+
+ $var_R = ($R / 255);
+ $var_G = ($G / 255);
+ $var_B = ($B / 255);
+
+ $var_Min = min($var_R, $var_G, $var_B);
+ $var_Max = max($var_R, $var_G, $var_B);
+ $del_Max = $var_Max - $var_Min;
+
+ $L = ($var_Max + $var_Min)/2;
+
+ if ($del_Max == 0)
+ {
+ $H = 0;
+ $S = 0;
+ }
+ else
+ {
+ if ( $L < 0.5 ) $S = $del_Max / ( $var_Max + $var_Min );
+ else $S = $del_Max / ( 2 - $var_Max - $var_Min );
+
+ $del_R = ( ( ( $var_Max - $var_R ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
+ $del_G = ( ( ( $var_Max - $var_G ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
+ $del_B = ( ( ( $var_Max - $var_B ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
+
+ if ($var_R == $var_Max) $H = $del_B - $del_G;
+ else if ($var_G == $var_Max) $H = ( 1 / 3 ) + $del_R - $del_B;
+ else if ($var_B == $var_Max) $H = ( 2 / 3 ) + $del_G - $del_R;
+
+ if ($H<0) $H++;
+ if ($H>1) $H--;
+ }
+
+ $HSL['H'] = ($H*360);
+ $HSL['S'] = $S;
+ $HSL['L'] = $L;
+
+ return $HSL;
+ }
+
+ /**
+ * Given a HSL associative array returns the equivalent HEX string
+ * @param array $hsl
+ * @return string HEX string
+ * @throws Exception "Bad HSL Array"
+ */
+ public static function hslToHex( $hsl = array() ){
+ // Make sure it's HSL
+ if(empty($hsl) || !isset($hsl["H"]) || !isset($hsl["S"]) || !isset($hsl["L"]) ) {
+ throw new Exception("Param was not an HSL array");
+ }
+
+ list($H,$S,$L) = array( $hsl['H']/360,$hsl['S'],$hsl['L'] );
+
+ if( $S == 0 ) {
+ $r = $L * 255;
+ $g = $L * 255;
+ $b = $L * 255;
+ } else {
+
+ if($L<0.5) {
+ $var_2 = $L*(1+$S);
+ } else {
+ $var_2 = ($L+$S) - ($S*$L);
+ }
+
+ $var_1 = 2 * $L - $var_2;
+
+ $r = round(255 * self::_huetorgb( $var_1, $var_2, $H + (1/3) ));
+ $g = round(255 * self::_huetorgb( $var_1, $var_2, $H ));
+ $b = round(255 * self::_huetorgb( $var_1, $var_2, $H - (1/3) ));
+
+ }
+
+ // Convert to hex
+ $r = dechex($r);
+ $g = dechex($g);
+ $b = dechex($b);
+
+ // Make sure we get 2 digits for decimals
+ $r = (strlen("".$r)===1) ? "0".$r:$r;
+ $g = (strlen("".$g)===1) ? "0".$g:$g;
+ $b = (strlen("".$b)===1) ? "0".$b:$b;
+
+ return $r.$g.$b;
+ }
+
+ /**
+ * Given a HEX value, returns a darker color. If no desired amount provided, then the color halfway between
+ * given HEX and black will be returned.
+ * @param int $amount
+ * @return string Darker HEX value
+ */
+ public function darken( $hex='', $amount = self::DEFAULT_ADJUST ){
+
+ if($hex!='')
+ $this->prepareColor($hex);
+
+ // Darken
+ $darkerHSL = $this->_darken($this->_hsl, $amount);
+ // Return as HEX
+ return self::hslToHex($darkerHSL);
+ }
+
+ /**
+ * Given a HEX value, returns a lighter color. If no desired amount provided, then the color halfway between
+ * given HEX and white will be returned.
+ * @param int $amount
+ * @return string Lighter HEX value
+ */
+ public function lighten( $hex='', $amount = self::DEFAULT_ADJUST ){
+
+ if($hex!='')
+ $this->prepareColor($hex);
+
+ // Lighten
+ $lighterHSL = $this->_lighten($this->_hsl, $amount);
+ // Return as HEX
+ return self::hslToHex($lighterHSL);
+ }
+
+ /**
+ * Creates an array with two shades that can be used to make a gradient
+ * @param int $amount Optional percentage amount you want your contrast color
+ * @return array An array with a 'light' and 'dark' index
+ */
+ public function makeGradient( $hex, $amount = self::DEFAULT_ADJUST ) {
+
+ $this->prepareColor($hex);
+
+ // Decide which color needs to be made
+ if( $this->isLight() ) {
+ $lightColor = $this->_hex;
+ $darkColor = $this->darken('',$amount);
+ } else {
+ $lightColor = $this->lighten('',$amount);
+ $darkColor = $this->_hex;
+ }
+
+ // Return our gradient array
+ return array( "light" => $lightColor, "dark" => $darkColor );
+ }
+
+
+ /**
+ * Returns whether or not given color is considered "light"
+ * @param string|Boolean $color
+ * @return boolean
+ */
+ public function isLight( $color = FALSE ){
+ // Get our color
+ $color = ($color) ? str_replace("#", '', $color) : $this->_hex;
+
+ // Calculate straight from rbg
+ $r = hexdec($color[0].$color[1]);
+ $g = hexdec($color[2].$color[3]);
+ $b = hexdec($color[4].$color[5]);
+
+ return (( $r*299 + $g*587 + $b*114 )/1000 > 130);
+ }
+
+ /**
+ * Returns whether or not a given color is considered "dark"
+ * @param string|Boolean $color
+ * @return boolean
+ */
+ public function isDark( $color = FALSE ){
+ // Get our color
+ $color = ($color) ? $color:$this->_hex;
+
+ // Calculate straight from rbg
+ $r = hexdec($color[0].$color[1]);
+ $g = hexdec($color[2].$color[3]);
+ $b = hexdec($color[4].$color[5]);
+
+ return (( $r*299 + $g*587 + $b*114 )/1000 <= 130);
+ }
+
+ /**
+ * Returns the complimentary color
+ * @return string Complementary hex color
+ *
+ */
+ public function complementary($hex='') {
+
+ if($hex!='')
+ $this->prepareColor($hex);
+
+ // Get our HSL
+ $hsl = $this->_hsl;
+
+ // Adjust Hue 180 degrees
+ $hsl['H'] += ($hsl['H']>180) ? -180:180;
+
+ // Return the new value in HEX
+ return self::hslToHex($hsl);
+ }
+
+ /**
+ * Returns your colors HSL array
+ */
+ public function getHsl($hex='') {
+ if($hex!='')
+ $this->prepareColor($hex);
+ return $this->_hsl;
+ }
+ /**
+ * Returns your original color
+ */
+ public function getHex($hex='') {
+ if($hex!='')
+ $this->prepareColor($hex);
+ return $this->_hex;
+ }
+ /**
+ * Returns the cross browser CSS3 gradient
+ * @param int Optional: percentage amount to light/darken the gradient
+ * @param string $prefix Optional: prefix for every lines
+ * @param string $suffix Optional: suffix for every lines
+ * @return string CSS3 gradient for chrome, safari, firefox, opera and IE10
+ */
+ public function getCssGradient($hex, $amount = self::DEFAULT_ADJUST, $suffix = "" , $prefix = "" ) {
+
+ // Get the recommended gradient
+ $g = $this->makeGradient($hex, $amount);
+
+ $css = "";
+ /* fallback/image non-cover color */
+ $css .= "{$prefix}background-color: #".$this->_hex.";{$suffix}";
+
+ /* IE Browsers */
+ $css .= "{$prefix}filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#".$g['light']."', endColorstr='#".$g['dark']."');{$suffix}";
+
+ /* Safari 4+, Chrome 1-9 */
+ $css .= "{$prefix}background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#".$g['light']."), to(#".$g['dark']."));{$suffix}";
+
+ /* Safari 5.1+, Mobile Safari, Chrome 10+ */
+ $css .= "{$prefix}background-image: -webkit-linear-gradient(top, #".$g['light'].", #".$g['dark'].");{$suffix}";
+
+ /* Firefox 3.6+ */
+ $css .= "{$prefix}background-image: -moz-linear-gradient(top, #".$g['light'].", #".$g['dark'].");{$suffix}";
+
+ /* IE 10+ */
+ $css .= "{$prefix}background-image: -ms-linear-gradient(top, #".$g['light'].", #".$g['dark'].");{$suffix}";
+
+ /* Opera 11.10+ */
+ $css .= "{$prefix}background-image: -o-linear-gradient(top, #".$g['light'].", #".$g['dark'].");{$suffix}";
+
+ // Return our CSS
+ return $css;
+ }
+
+ // ===========================
+ // = Private Functions Below =
+ // ===========================
+
+
+ /**
+ * Darkens a given HSL array
+ * @param array $hsl
+ * @param int $amount
+ * @return array $hsl
+ */
+ private function _darken( $hsl, $amount = self::DEFAULT_ADJUST){
+ // Check if we were provided a number
+ if( $amount ) {
+ $hsl['L'] = ($hsl['L'] * 100) - $amount;
+ $hsl['L'] = ($hsl['L'] < 0) ? 0:$hsl['L']/100;
+ } else {
+ // We need to find out how much to darken
+ $hsl['L'] = $hsl['L']/2 ;
+ }
+
+ return $hsl;
+ }
+
+ /**
+ * Lightens a given HSL array
+ * @param array $hsl
+ * @param int $amount
+ * @return array $hsl
+ */
+ private function _lighten( $hsl, $amount = self::DEFAULT_ADJUST){
+ // Check if we were provided a number
+ if( $amount ) {
+ $hsl['L'] = ($hsl['L'] * 100) + $amount;
+ $hsl['L'] = ($hsl['L'] > 100) ? 1:$hsl['L']/100;
+ } else {
+ // We need to find out how much to lighten
+ $hsl['L'] += (1-$hsl['L'])/2;
+ }
+
+ return $hsl;
+ }
+
+ /**
+ * Given a Hue, returns corresponding RGB value
+ * @param type $v1
+ * @param type $v2
+ * @param type $vH
+ * @return int
+ */
+ private static function _huetorgb( $v1,$v2,$vH ) {
+ if( $vH < 0 ) {
+ $vH += 1;
+ }
+
+ if( $vH > 1 ) {
+ $vH -= 1;
+ }
+
+ if( (6*$vH) < 1 ) {
+ return ($v1 + ($v2 - $v1) * 6 * $vH);
+ }
+
+ if( (2*$vH) < 1 ) {
+ return $v2;
+ }
+
+ if( (3*$vH) < 2 ) {
+ return ($v1 + ($v2-$v1) * ( (2/3)-$vH ) * 6);
+ }
+
+ return $v1;
+
+ }
+
+ /**
+ * You need to check if you were given a good hex string
+ * @param string $hex
+ * @return string Color
+ * @throws Exception "Bad color format"
+ */
+ private static function _checkHex( $hex ) {
+ // Strip # sign is present
+ $color = str_replace("#", "", $hex);
+
+ // Make sure it's 6 digits
+ if( strlen($color) == 3 ) {
+ $color = $color[0].$color[0].$color[1].$color[1].$color[2].$color[2];
+ } else if( strlen($color) != 6 ) {
+ throw new Exception("HEX color needs to be 6 or 3 digits long");
+ }
+
+ return $color;
+ }
+
+}
\ No newline at end of file
Added: RMC/modules/xthemes/trunk/xthemes/class/xtfeedparser.class.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/class/xtfeedparser.class.php (rev 0)
+++ RMC/modules/xthemes/trunk/xthemes/class/xtfeedparser.class.php 2013-02-12 02:08:36 UTC (rev 11029)
@@ -0,0 +1,554 @@
+<?php
+ /*=======================================================================+
+ | PHP Universal Feed Parser |
+ +------------------------------------------------------------------------/
+
+ Author : Anis uddin Ahmad <ad...@aj...>
+ Web : http://www.ajaxray.com
+ Publish Date : March 24, 2008
+
+LICENSE
+----------------------------------------------------------------------
+PHP Universal Feed Parser 1.0 - A PHP class to parse RSS 1.0, RSS 2.0 and ATOM 1.0 feed.
+Copyright (C) 2008 Anis uddin Ahmad <ad...@aj...>
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License (GPL)
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+To read the license please visit http://www.gnu.org/copyleft/gpl.html
+=======================================================================
+
+HOW TO USE
+-----------------------------------------------------------------------
+It's very easy to use. Just follow this 3 steps:
+1. Include the file
+ include('FeedParser.php');
+2. Create an object of FeedParser class
+ $Parser = new FeedParser();
+3. Parse the URL you want to featch
+ $Parser->parse('http://www.sitepoint.com/rss.php');
+
+Done.
+Now you can use this functions to get various information of parsed feed:
+ 1. $Parser->getChannels() - To get all channel elements as array
+ 2. $Parser->getItems() - To get all feed elements as array
+ 3. $Parser->getChannel($name) - To get a channel element by name
+ 4. $Parser->getItem($index) - To get a feed element as array by it's index
+ 5. $Parser->getTotalItems() - To get the number of total feed elements
+ 6. $Parser->getFeedVersion() - To get the detected version of parsed feed
+ 7. $Parser->getParsedUrl() - To get the parsed feed URL
+
+===============...
[truncated message content] |
|
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; ?>
|
|
From: <bi...@us...> - 2013-03-06 23:15:53
|
Revision: 11172
http://sourceforge.net/p/xoops/svn/11172
Author: bitc3r0
Date: 2013-03-06 23:15:46 +0000 (Wed, 06 Mar 2013)
Log Message:
-----------
Modified Paths:
--------------
RMC/modules/xthemes/trunk/xthemes/css/themes.css
RMC/modules/xthemes/trunk/xthemes/events/rmcommon.php
RMC/modules/xthemes/trunk/xthemes/templates/widgets/xt_wgt_themeoptions.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_menu_manager.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_navigation.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_settings.php
RMC/modules/xthemes/trunk/xthemes/xoops_version.php
Removed Paths:
-------------
RMC/modules/xthemes/trunk/xthemes/images/icons.png
RMC/modules/xthemes/trunk/xthemes/templates/widgets/xt_wgt_sections.php
Modified: RMC/modules/xthemes/trunk/xthemes/css/themes.css
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/css/themes.css 2013-03-06 20:49:48 UTC (rev 11171)
+++ RMC/modules/xthemes/trunk/xthemes/css/themes.css 2013-03-06 23:15:46 UTC (rev 11172)
@@ -1,7 +1,46 @@
/*
$Id: themes.css 159 2012-12-06 23:51:54Z i.bitcero $
*/
+.button > i{
+ font-size: 14px;
+}
+.xt-settings-tabs{
+ background: #ebebeb;
+ margin: -10px -10px 20px -10px!important;
+ padding: 5px 10px 0 10px;
+}
+.form-horizontal .control-label{
+ width: 250px!important;
+ padding: 5px 0 5px 0;
+ text-align: left!important;
+}
+.form-horizontal .controls{
+ margin-left: 260px!important;
+ padding: 5px 0 5px 10px;
+ border-left: 1px dashed #ddd;
+}
+.tabs-vertical{
+ margin: -10px 10px -10px -10px;
+}
+.tabs-vertical ul{
+ background: #ebebeb;
+ padding: 10px 0 10px 5px;
+ border-right: 1px solid #ddd;
+ border-bottom: 0;
+}
+.tabs-vertical .nav-tabs li{
+ float: none!important;
+ margin-top: 2px;
+ margin-right: -3px;
+}
+.tabs-vertical .nav-tabs li.active a{
+ border: 1px solid #ddd!important;
+ border-radius: 5px 0 0 5px!important;
+ border-right: 0!important;
+}
+
+
.xt-separator{
clear: both;
display: block;
@@ -206,6 +245,10 @@
background: #ebebeb;
text-decoration: none;
}
+.w_options i{
+ font-size: 14px;
+ color: #000;
+}
/* Menus */
#menus-select{
@@ -334,6 +377,8 @@
opacity: 0.3;
cursor: pointer;
margin-left: 3px;
+ font-size: 16px;
+ text-shadow: 1px 1px 1px rgba(255,255,255,0.6);
}
.menu_opt_display:hover, .menu_delete:hover{
opacity: 0.9;
@@ -346,32 +391,6 @@
background: #f2f2f2;
}
-/* ICONS */
-span.icon{
- display: inline-block;
- height: 16px;
- width: 16px;
- background-repeat: no-repeat;
- background-image: url(../images/icons.png);
- line-height: 16px;
- vertical-align: text-bottom;
-}
-span.icon-home{background-position: 0 0px;}
-span.icon-install,span.icon-plus{background-position: -26px 0;}
-span.icon-uninstall,span.icon-minus{background-position: -156px 0;}
-span.icon-activate{background-position: -182px 0;}
-span.icon-view{background-position: -52px 0;}
-span.icon-info{background-position: -78px 0;}
-span.icon-close{background-position: -104px 0;}
-span.icon-closeblack{background-position: 0 -26px;}
-span.icon-menu{background-position: -130px 0;}
-span.icon-settings{background-position: -208px 0;}
-span.icon-user{background-position: -234px 0;}
-span.icon-down{background-position: -260px 0;}
-span.icon-up{background-position: -286px 0;}
-span.icon-ok{background-position: -312px 0;}
-span.icon-gear{background-position: -26px -26px;}
-
/* Messages */
#xt-messages{
padding: 10px;
Modified: RMC/modules/xthemes/trunk/xthemes/events/rmcommon.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/events/rmcommon.php 2013-03-06 20:49:48 UTC (rev 11171)
+++ RMC/modules/xthemes/trunk/xthemes/events/rmcommon.php 2013-03-06 23:15:46 UTC (rev 11172)
@@ -12,7 +12,7 @@
public function eventRmcommonLoadLeftWidgets($widgets){
global $xoopsModule, $xtAssembler;
- if(RMCLOCATION!='themes' && RMCLOCATION!='settings' && $xoopsModule->dirname()=='xthemes'){
+ if(RMCLOCATION!='themes' && $xoopsModule->dirname()=='xthemes'){
return self::showThemeInfo($widgets);
@@ -47,16 +47,6 @@
}
- public function eventRmcommonLoadRightWidgets($widgets){
- global $xoopsModule;
-
- if(RMCLOCATION=='settings' && $xoopsModule->dirname()=='xthemes')
- return self::showThemeInfo($widgets);
-
- return $widgets;
-
- }
-
private function showThemeInfo($widgets){
global $xtAssembler, $xtFunctions;
Deleted: RMC/modules/xthemes/trunk/xthemes/images/icons.png
===================================================================
(Binary files differ)
Deleted: RMC/modules/xthemes/trunk/xthemes/templates/widgets/xt_wgt_sections.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/templates/widgets/xt_wgt_sections.php 2013-03-06 20:49:48 UTC (rev 11171)
+++ RMC/modules/xthemes/trunk/xthemes/templates/widgets/xt_wgt_sections.php 2013-03-06 23:15:46 UTC (rev 11172)
@@ -1,5 +0,0 @@
-<ul class="w_sections">
- <?php foreach($options['sections'] as $name => $section): ?>
- <li<?php if($visible==$name): ?> class="xt-section-visible"<?php endif; ?>><a href="#" class="section-<?php echo $name; ?>"><?php echo $section; ?></a></li>
- <?php endforeach; ?>
-</ul>
\ No newline at end of file
Modified: RMC/modules/xthemes/trunk/xthemes/templates/widgets/xt_wgt_themeoptions.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/templates/widgets/xt_wgt_themeoptions.php 2013-03-06 20:49:48 UTC (rev 11171)
+++ RMC/modules/xthemes/trunk/xthemes/templates/widgets/xt_wgt_themeoptions.php 2013-03-06 23:15:46 UTC (rev 11172)
@@ -1,17 +1,17 @@
<ul class="w_options">
<?php if(method_exists($theme, 'controlPanel')): ?>
- <li><a href="theme.php"><span class="icon icon-gear"></span> <?php _e('Dashboard','xthemes'); ?></a></li>
+ <li><a href="theme.php"><i class="icon-gear"></i> <?php _e('Dashboard','xthemes'); ?></a></li>
<?php endif; ?>
<?php if($xtAssembler->rootMenus()): ?>
- <li><a href="navigation.php"><span class="icon icon-menu"></span> <?php _e('Menus','xthemes'); ?></a></li>
+ <li><a href="navigation.php"><i class="icon-reorder"></i> <?php _e('Menus','xthemes'); ?></a></li>
<?php endif; ?>
<?php if($theme->options()): ?>
- <li><a href="settings.php"><span class="icon icon-settings"></span> <?php _e('Settings','xthemes'); ?></a></li>
+ <li><a href="settings.php"><i class="icon-wrench"></i> <?php _e('Settings','xthemes'); ?></a></li>
<?php endif; ?>
<?php if($theme->getInfo('uri')!=''): ?>
- <li><a href="<?php echo $theme->getInfo('uri'); ?>" target="_blank"><span class="icon icon-home"></span> <?php _e('Website','xthemes'); ?></a></li>
+ <li><a href="<?php echo $theme->getInfo('uri'); ?>" target="_blank"><i class="icon-home"></i> <?php _e('Website','xthemes'); ?></a></li>
<?php endif; ?>
<?php if($theme->getInfo('author_uri')!=''): ?>
- <li><a href="<?php echo $theme->getInfo('author_uri'); ?>" target="_blank"><span class="icon icon-user"></span> <?php _e('Author','xthemes'); ?></a></li>
+ <li><a href="<?php echo $theme->getInfo('author_uri'); ?>" target="_blank"><i class="icon-user"></i> <?php _e('Author','xthemes'); ?></a></li>
<?php endif; ?>
</ul>
\ No newline at end of file
Modified: RMC/modules/xthemes/trunk/xthemes/templates/xt_menu_manager.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/templates/xt_menu_manager.php 2013-03-06 20:49:48 UTC (rev 11171)
+++ RMC/modules/xthemes/trunk/xthemes/templates/xt_menu_manager.php 2013-03-06 23:15:46 UTC (rev 11172)
@@ -1,6 +1,6 @@
<?php $tc = TextCleaner::getInstance(); ?><li>
<div>
- <span class="title"><?php echo $m['title']; ?></span> <span class="icon icon-down menu_opt_display" title="<?php _e('Show options','xthemes'); ?>"></span> <span class="icon icon-minus menu_delete" title="<?php _e('Delete item','xthemes'); ?>"></span>
+ <span class="title"><?php echo $m['title']; ?></span> <i class="icon-chevron-down menu_opt_display" title="<?php _e('Show options','xthemes'); ?>"></i> <i class="icon-trash menu_delete" title="<?php _e('Delete item','xthemes'); ?>"></i>
<div class="options row">
<div class="xt-separator"></div>
<div class="option span4">
Modified: RMC/modules/xthemes/trunk/xthemes/templates/xt_navigation.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/templates/xt_navigation.php 2013-03-06 20:49:48 UTC (rev 11171)
+++ RMC/modules/xthemes/trunk/xthemes/templates/xt_navigation.php 2013-03-06 23:15:46 UTC (rev 11172)
@@ -5,8 +5,8 @@
<?php _e('To configure menus please select a menu by clicking on tab name, and then use next form to add elements.','xthemes'); ?>
</p>
-<a href="#" class="button add-menu"><span class="icon icon-plus"></span> <?php _e('Add Menu','xthemes'); ?></a>
-<a href="#" class="button save-menu"><span class="icon icon-ok"></span> <?php _e('Save Menu','xthemes'); ?></a>
+<a href="#" class="button add-menu"><i class="icon-plus-sign"></i> <?php _e('Add Menu','xthemes'); ?></a>
+<a href="#" class="button save-menu"><i class="icon-ok-sign"></i> <?php _e('Save Menu','xthemes'); ?></a>
<div class="xt-separator"></div>
<div id="xt-messages" class="xt-msg-error">
@@ -51,7 +51,7 @@
<ol id="copy">
<li>
<div>
- <span class="title"><?php _e('Menu Item','xthemes'); ?></span> <span class="icon icon-down menu_opt_display" title="<?php _e('Show options','xthemes'); ?>"></span> <span class="icon icon-minus menu_delete" title="<?php _e('Delete item','xthemes'); ?>"></span>
+ <span class="title"><?php _e('Menu Item','xthemes'); ?></span> <i class="icon-chevron-down menu_opt_display" title="<?php _e('Show options','xthemes'); ?>"></i> <i class="icon-trash menu_delete" title="<?php _e('Delete item','xthemes'); ?>"></i>
<div class="options row" style="display: block;">
<div class="xt-separator"></div>
<div class="option span4">
Modified: RMC/modules/xthemes/trunk/xthemes/templates/xt_settings.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/templates/xt_settings.php 2013-03-06 20:49:48 UTC (rev 11171)
+++ RMC/modules/xthemes/trunk/xthemes/templates/xt_settings.php 2013-03-06 23:15:46 UTC (rev 11172)
@@ -1,38 +1,57 @@
<h1 class="rmc_titles"><?php echo sprintf(__('%s Settings','xthemes'), $xtAssembler->theme()->getInfo("name")); ?></h1>
<form name="formSettings" id="frm-settings" action="settings.php" method="post" class="form-horizontal">
-<?php foreach($sections as $name => $section): ?>
-<div id="xt-section-<?php echo $name; ?>" class="xt-configuration-section"<?php if($visible==$name): ?> style="display: block;"<?php endif; ?>>
-<h2><?php echo $section; ?></h2>
-<?php if(isset($options[$name])): ?>
- <?php foreach($options[$name] as $name => $option): ?>
- <div class="control-group">
- <label for="<?php echo $name; ?>" class="control-label">
- <strong><?php echo $option['caption']; ?></strong>
- <?php if($option['description']!=''): ?>
- <span class="xt-option-desc"><?php echo $option['description']; ?></span>
- <?php endif; ?>
- </label>
- <div class="controls">
- <?php echo $option['field']; ?>
+ <ul class="nav nav-tabs xt-settings-tabs">
+ <?php if(count($sections)<=10): ?>
+ <?php foreach($sections as $name => $section): ?>
+ <li<?php if($visible==$name): ?> class="active"<?php endif; ?>><a href="#section-<?php echo $name; ?>" data-toggle="tab"><?php echo $section; ?></a></li>
+ <?php endforeach; ?>
+ <?php else: ?>
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php _e('Configuration Sections','xthemes'); ?> <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <?php foreach($sections as $name => $section): ?>
+ <li<?php if($visible==$name): ?> class="active"<?php endif; ?>><a href="#section-<?php echo $name; ?>" data-toggle="tab"><?php echo $section; ?></a></li>
+ <?php endforeach; ?>
+ </ul>
+ </li>
+ <?php endif; ?>
+ <li class="pull-right"><button type="submit" class="btn btn-info"><?php _e('Save Settings','xthemes'); ?></button></li>
+ </ul>
+
+ <div class="tab-content">
+ <?php foreach($sections as $name => $section): ?>
+ <div id="section-<?php echo $name; ?>" class="tab-pane<?php if($visible==$name): ?> active<?php endif; ?> xt-configuration-section">
+ <?php if(isset($options[$name])): ?>
+ <?php foreach($options[$name] as $name => $option): ?>
+ <div class="control-group">
+ <label for="<?php echo $name; ?>" class="control-label">
+ <strong><?php echo $option['caption']; ?></strong>
+ <?php if($option['description']!=''): ?>
+ <span class="xt-option-desc"><?php echo $option['description']; ?></span>
+ <?php endif; ?>
+ </label>
+ <div class="controls">
+ <?php echo $option['field']; ?>
+ </div>
+ </div>
+ <?php endforeach; ?>
+ <?php endif; ?>
</div>
- </div>
- <?php endforeach; ?>
-<?php endif; ?>
-</div>
-<?php endforeach; ?>
+ <?php endforeach; ?>
-<div class="xt-settings-buttons sb-bottom">
- <div>
- <div class="alert alert-info">
- <?php _e('You can configure all sections before to press "Save Settings" button. Change between sections will not loose configured data.', 'xthemes'); ?>
+ <div class="xt-settings-buttons sb-bottom">
+ <div>
+ <div class="alert alert-info">
+ <?php _e('You can configure all sections before to press "Save Settings" button. Change between sections will not loose configured data.', 'xthemes'); ?>
+ </div>
+ <div>
+ <button type="submit" class="btn btn-large btn-inverse"><?php _e('Save Settings','xthemes'); ?></button>
+ </div>
+ </div>
</div>
- <div>
- <button type="submit" class="btn btn-large btn-inverse"><?php _e('Save Settings','xthemes'); ?></button>
- </div>
+
+ <?php echo $xoopsSecurity->getTokenHTML(); ?>
+ <input type="hidden" name="action" value="save" />
</div>
-</div>
-
-<?php echo $xoopsSecurity->getTokenHTML(); ?>
-<input type="hidden" name="action" value="save" />
</form>
\ No newline at end of file
Modified: RMC/modules/xthemes/trunk/xthemes/xoops_version.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/xoops_version.php 2013-03-06 20:49:48 UTC (rev 11171)
+++ RMC/modules/xthemes/trunk/xthemes/xoops_version.php 2013-03-06 23:15:46 UTC (rev 11172)
@@ -27,7 +27,7 @@
$modversion['name'] = 'XThemes';
$modversion['version'] = 1.5;
$modversion['rmnative'] = '1';
-$modversion['rmversion'] = array('major'=>1,'minor'=>5, 'revision'=>18,'stage'=>-2,'name'=>'XThemes');
+$modversion['rmversion'] = array('major'=>1,'minor'=>5, 'revision'=>20,'stage'=>-1,'name'=>'XThemes');
$modversion['updateurl'] = "http://www.xoopsmexico.net/modules/vcontrol/?action=check&id=9";
$modversion['description'] = 'A module to manage themes from Red México';
$modversion['credits'] = "Eduardo Cortés <i.b...@gm...>";
|
|
From: <bi...@us...> - 2013-03-23 02:09:10
|
Revision: 11286
http://sourceforge.net/p/xoops/svn/11286
Author: bitc3r0
Date: 2013-03-23 02:09:06 +0000 (Sat, 23 Mar 2013)
Log Message:
-----------
Modified Paths:
--------------
RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php
RMC/modules/xthemes/trunk/xthemes/settings.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php
RMC/modules/xthemes/trunk/xthemes/xoops_version.php
Modified: RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php 2013-03-22 20:15:23 UTC (rev 11285)
+++ RMC/modules/xthemes/trunk/xthemes/class/xtassembler.class.php 2013-03-23 02:09:06 UTC (rev 11286)
@@ -86,7 +86,9 @@
public function init(){
global $xoopsTpl, $xoopsConfig, $rmc_config, $xoTheme;
-
+
+ $xoopsTpl->assign('isHome', defined('XTHEMES_IS_HOME'));
+
if(!$this->isSupported()) return;
if($this->current->getInfo('dir')!=$xoopsConfig['theme_set']){
Modified: RMC/modules/xthemes/trunk/xthemes/settings.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/settings.php 2013-03-22 20:15:23 UTC (rev 11285)
+++ RMC/modules/xthemes/trunk/xthemes/settings.php 2013-03-23 02:09:06 UTC (rev 11286)
@@ -186,7 +186,8 @@
$options[$option['section']][$id] = $option;
}
-
+
+ $tpl->add_style("settings.css",'xthemes');
$tpl->add_local_script('jquery.ck.js', 'rmcommon', 'include');
$tpl->add_local_script('xthemes.js', 'xthemes');
xoops_cp_header();
Modified: RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php 2013-03-22 20:15:23 UTC (rev 11285)
+++ RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php 2013-03-23 02:09:06 UTC (rev 11286)
@@ -35,7 +35,7 @@
<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"><i class="icon-cog"></span> <?php _e('Dashboard','xthemes'); ?></a>
+ <a href="theme.php" class="button buttonLight btn btn-warning"><i class="icon-cog"></i> <?php _e('Dashboard','xthemes'); ?></a>
<?php endif; ?>
<?php if($xtAssembler->rootMenus()): ?>
<a href="navigation.php" class="button btn"><i class="icon-reorder"></i> <?php _e('Menus','xthemes'); ?></a>
Modified: RMC/modules/xthemes/trunk/xthemes/xoops_version.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/xoops_version.php 2013-03-22 20:15:23 UTC (rev 11285)
+++ RMC/modules/xthemes/trunk/xthemes/xoops_version.php 2013-03-23 02:09:06 UTC (rev 11286)
@@ -9,10 +9,10 @@
$amod = xoops_getActiveModules();
if(!in_array("rmcommon",$amod)){
- $error = "<strong>WARNING:</strong> xThemes requires %s to be installed!<br />Please install %s before trying to use MyWords";
+ $error = "<strong>WARNING:</strong> xThemes requires %s to be installed!<br />Please install %s before trying to use xThemes";
$error = str_replace("%s", '<a href="http://www.xoopsmexico.net/downloads/common-utilities/" target="_blank">Common Utilities</a>', $error);
xoops_error($error);
- $error = '%s is not installed! This might cause problems with functioning of MyWords and entire system. To solve, install %s or uninstall MyWords and then delete module folder.';
+ $error = '%s is not installed! This might cause problems with functioning of xThemes and entire system. To solve, install %s or uninstall xThemes and then delete module folder.';
$error = str_replace("%s", '<a href="http://www.xoopsmexico.net/downloads/common-utilities/" target="_blank">Common Utilities</a>', $error);
trigger_error($error, E_USER_WARNING);
echo "<br />";
|
|
From: <bi...@us...> - 2013-04-23 03:34:20
|
Revision: 11433
http://sourceforge.net/p/xoops/svn/11433
Author: bitc3r0
Date: 2013-04-23 03:34:13 +0000 (Tue, 23 Apr 2013)
Log Message:
-----------
Modified Paths:
--------------
RMC/modules/xthemes/trunk/xthemes/class/xtcolor.class.php
Added Paths:
-----------
RMC/modules/xthemes/trunk/xthemes/lang/fr.mo
RMC/modules/xthemes/trunk/xthemes/lang/fr.po
Modified: RMC/modules/xthemes/trunk/xthemes/class/xtcolor.class.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/class/xtcolor.class.php 2013-04-23 03:32:55 UTC (rev 11432)
+++ RMC/modules/xthemes/trunk/xthemes/class/xtcolor.class.php 2013-04-23 03:34:13 UTC (rev 11433)
@@ -417,4 +417,24 @@
return $color;
}
+ public function hexToRGB($hex){
+
+ $hex = str_replace("#", "", $hex);
+ $color = array();
+
+ if(strlen($hex) == 3) {
+ $color['r'] = hexdec(substr($hex, 0, 1) . $r);
+ $color['g'] = hexdec(substr($hex, 1, 1) . $g);
+ $color['b'] = hexdec(substr($hex, 2, 1) . $b);
+ }
+ else if(strlen($hex) == 6) {
+ $color['r'] = hexdec(substr($hex, 0, 2));
+ $color['g'] = hexdec(substr($hex, 2, 2));
+ $color['b'] = hexdec(substr($hex, 4, 2));
+ }
+
+ return implode(",",$color);
+
+ }
+
}
\ No newline at end of file
Added: RMC/modules/xthemes/trunk/xthemes/lang/fr.mo
===================================================================
(Binary files differ)
Index: RMC/modules/xthemes/trunk/xthemes/lang/fr.mo
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/lang/fr.mo 2013-04-23 03:32:55 UTC (rev 11432)
+++ RMC/modules/xthemes/trunk/xthemes/lang/fr.mo 2013-04-23 03:34:13 UTC (rev 11433)
Property changes on: RMC/modules/xthemes/trunk/xthemes/lang/fr.mo
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: RMC/modules/xthemes/trunk/xthemes/lang/fr.po
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/lang/fr.po (rev 0)
+++ RMC/modules/xthemes/trunk/xthemes/lang/fr.po 2013-04-23 03:34:13 UTC (rev 11433)
@@ -0,0 +1,406 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: xThemes\n"
+"POT-Creation-Date: 2012-10-23 14:46-0600\n"
+"PO-Revision-Date: 2013-04-19 18:16-0600\n"
+"Last-Translator: Eduardo Cortés <i.b...@gm...>\n"
+"Language-Team: Xoops Mexico <xoo...@gm...>\n"
+"Language: en\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.5.4\n"
+"X-Poedit-KeywordsList: __;_e\n"
+"X-Poedit-Basepath: .\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-SearchPath-0: c:\\wamp\\www\\xm\\modules\\xthemes\n"
+
+#: c:\wamp\www\xm\modules\xthemes/menu.php:17
+#: c:\wamp\www\xm\modules\xthemes/class/xtfunctions.class.php:13
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:38
+#: c:\wamp\www\xm\modules\xthemes/templates/widgets/xt_wgt_themeoptions.php:3
+msgid "Dashboard"
+msgstr "Tableau de contrôle"
+
+#: c:\wamp\www\xm\modules\xthemes/menu.php:24
+msgid "Themes"
+msgstr "Thèmes"
+
+#: c:\wamp\www\xm\modules\xthemes/menu.php:40
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:41
+#: c:\wamp\www\xm\modules\xthemes/templates/widgets/xt_wgt_themeoptions.php:6
+msgid "Menus"
+msgstr "Menus"
+
+#: c:\wamp\www\xm\modules\xthemes/menu.php:48
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:44
+#: c:\wamp\www\xm\modules\xthemes/templates/widgets/xt_wgt_themeoptions.php:9
+msgid "Settings"
+msgstr "Réglages"
+
+#: c:\wamp\www\xm\modules\xthemes/menu.php:56
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:28
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:47
+#: c:\wamp\www\xm\modules\xthemes/templates/widgets/xt_wgt_themeoptions.php:12
+msgid "Website"
+msgstr "Site Web"
+
+#: c:\wamp\www\xm\modules\xthemes/menu.php:64
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:50
+#: c:\wamp\www\xm\modules\xthemes/templates/widgets/xt_wgt_themeoptions.php:15
+msgid "Author"
+msgstr "Auuteur"
+
+#: c:\wamp\www\xm\modules\xthemes/navigation.php:29
+msgid "This theme does not support xThemes menus!"
+msgstr "Ce thème ne supporte pas la gestion des menus xThemes!"
+
+#: c:\wamp\www\xm\modules\xthemes/navigation.php:36
+msgid "Do you really want to delete selected menu?"
+msgstr "Voulez vous vraiment effacer le menu sélectionné?"
+
+#: c:\wamp\www\xm\modules\xthemes/navigation.php:38
+msgid "Theme menus"
+msgstr "Menus du Thème"
+
+#: c:\wamp\www\xm\modules\xthemes/navigation.php:61
+msgid "Menu not found!"
+msgstr "Menu introuvable!"
+
+#: c:\wamp\www\xm\modules\xthemes/navigation.php:74
+#, php-format
+msgid "Current theme \"%s\" does not have any menu identified as \"%s\""
+msgstr "Le thème utilisé \"%s\" n'a pas de menu identifié comme \"%s\" "
+
+#: c:\wamp\www\xm\modules\xthemes/navigation.php:80
+#: c:\wamp\www\xm\modules\xthemes/navigation.php:99
+msgid "There was some errors while trying to save menus:"
+msgstr ""
+"Il y a eu quelques erreurs lors de la tentative de sauvegarde des menus:"
+
+#: c:\wamp\www\xm\modules\xthemes/navigation.php:101
+msgid "Menu saved successfully!"
+msgstr "Menu sauvegardé avec succès!"
+
+#: c:\wamp\www\xm\modules\xthemes/settings.php:100
+#: c:\wamp\www\xm\modules\xthemes/settings.php:105
+msgid "None"
+msgstr "Aucun"
+
+#: c:\wamp\www\xm\modules\xthemes/settings.php:138
+msgid "Slider Title"
+msgstr "Titre du Slider"
+
+#: c:\wamp\www\xm\modules\xthemes/settings.php:138
+msgid "Show the slider title"
+msgstr "Voir le titre du Slider"
+
+#: c:\wamp\www\xm\modules\xthemes/settings.php:198
+msgid "This is a not valid theme"
+msgstr "Ce n'est pas un thème valide"
+
+#: c:\wamp\www\xm\modules\xthemes/settings.php:212
+msgid "Settings could not be saved! Please try again"
+msgstr "Les réglages ne peuvent pas être sauvegardés! Merci de réessayer"
+
+#: c:\wamp\www\xm\modules\xthemes/settings.php:216
+msgid "Settings updated successfully!"
+msgstr "Réglages mis à jour avec succès!"
+
+#: c:\wamp\www\xm\modules\xthemes/theme.php:25
+#, php-format
+msgid "%s does not support this feature."
+msgstr "%s ne supporte pas cette option."
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:57
+msgid "Themes Manager"
+msgstr "Gestionnaire de thèmes"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:74
+#: c:\wamp\www\xm\modules\xthemes/themes.php:98
+#: c:\wamp\www\xm\modules\xthemes/themes.php:126
+msgid "No theme has been specified!"
+msgstr "Aucun thème n'a été spécifié!"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:80
+#, php-format
+msgid "%s is not a valid theme!"
+msgstr "%s n'est pas un thème valide!"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:103
+#: c:\wamp\www\xm\modules\xthemes/themes.php:131
+msgid "Specified directory does not contain a valid theme!"
+msgstr "Le répertoire spécifié ne contient pas de thème valide!"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:109
+#: c:\wamp\www\xm\modules\xthemes/themes.php:163
+msgid "Theme could not be activated"
+msgstr "Le thème ne peut pas être activé"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:114
+msgid "Theme activated successfully!"
+msgstr "Thème activé avec succès!"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:142
+msgid "Specified theme is not a valid xThemes theme!"
+msgstr "Le thème spécifié n'est pas un thème xThemes valide!"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:148
+msgid "Theme could not be activated!"
+msgstr "Le thème ne peint pas être activé!"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:151
+#: c:\wamp\www\xm\modules\xthemes/themes.php:155
+msgid "Sorry, theme could not be installed!"
+msgstr "Désolé, le thème ne peut pas être installé!"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:168
+msgid "Theme installed and activated successfully!"
+msgstr "Thème installé et activé avec succès!"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:179
+msgid "Specified theme is not valid!"
+msgstr "Le thème spécifié n'est pas valide!"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:182
+msgid ""
+"Specified theme is being used by XOOPS as current theme and can not be "
+"uninstalled. Please, activate another available theme before uninstalling "
+"this."
+msgstr ""
+"Le thème spécifié est utilisé par XOOPS comme le thème en cours, et ne peut "
+"être désinstallé. SVP, activez un autre thème disponible avant de le "
+"désinstaller."
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:187
+msgid ""
+"This theme is not a xThemes! To deactivate it simply activate another "
+"available theme."
+msgstr ""
+"Ce n'est pas un thème xThemes! Pour le désactiver, activez simplement un "
+"autre thème disponible."
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:191
+msgid "Theme could not be uninstalled!"
+msgstr "Le thème ne peut pas être désinstallé!"
+
+#: c:\wamp\www\xm\modules\xthemes/themes.php:193
+msgid "Theme has been uninstalled successfully!"
+msgstr "Le thème a été désinstallé avec succès!"
+
+#: c:\wamp\www\xm\modules\xthemes/xoops_version.php:31
+msgid "bitcero on Twitter"
+msgstr "bitcero sur Twitter"
+
+#: c:\wamp\www\xm\modules\xthemes/xoops_version.php:32
+msgid "bitcero on nLinkedIn"
+msgstr "bitcero sur LinkedIn"
+
+#: c:\wamp\www\xm\modules\xthemes/xoops_version.php:33
+msgid "Xoops Mexico on Twitter"
+msgstr "Xoops Mexico sur Twitter"
+
+#: c:\wamp\www\xm\modules\xthemes/xoops_version.php:34
+msgid "Xoops Mexico on Facebook"
+msgstr "Xoops Mexico sur Facebook"
+
+#: c:\wamp\www\xm\modules\xthemes/xoops_version.php:35
+msgid "Red Mexico on Twitter"
+msgstr "Red Mexico sur Twitter"
+
+#: c:\wamp\www\xm\modules\xthemes/xoops_version.php:36
+msgid "Red Mexico on Facebook"
+msgstr "Red Mexico sur Facebook"
+
+#: c:\wamp\www\xm\modules\xthemes/class/xtfunctions.class.php:14
+msgid "Available Themes"
+msgstr "Thèmes disponibles"
+
+#: c:\wamp\www\xm\modules\xthemes/class/xtfunctions.class.php:15
+msgid "Theme Settings"
+msgstr "Réglages du thème"
+
+#: c:\wamp\www\xm\modules\xthemes/class/xtfunctions.class.php:16
+msgid "About"
+msgstr "A propos"
+
+#: c:\wamp\www\xm\modules\xthemes/events/rmcommon.php:21
+msgid "Configuration Sections"
+msgstr "Sections de configuration"
+
+#: c:\wamp\www\xm\modules\xthemes/events/rmcommon.php:63
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:7
+msgid "Current Theme"
+msgstr "Thème en cours"
+
+#: c:\wamp\www\xm\modules\xthemes/events/rmcommon.php:78
+#, php-format
+msgid "%s Options"
+msgstr "%s Options"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_index.php:2
+msgid "Recent Themes on Xoops Mexico"
+msgstr "Thèmes récents sur Xoops Mexico"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_index.php:6
+msgid "View more themes"
+msgstr "Voir plus de thèmes"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_index.php:12
+msgid "xThemes Related News"
+msgstr "Nouvelles de xThemes"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_index.php:21
+msgid "About xThemes"
+msgstr "A propos de xThemes"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_menu_manager.php:3
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:54
+msgid "Show options"
+msgstr "Voir les options"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_menu_manager.php:3
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:54
+msgid "Delete item"
+msgstr "Effacer un item"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_menu_manager.php:8
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:59
+msgid "Title:"
+msgstr "Titre:"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_menu_manager.php:12
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:63
+msgid "URL:"
+msgstr "URL:"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_menu_manager.php:16
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:67
+msgid "Rel:"
+msgstr "Rel:"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_menu_manager.php:20
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:71
+msgid "Target:"
+msgstr "Cible:"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_menu_manager.php:25
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:76
+msgid "Extra:"
+msgstr "Extra:"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_menu_manager.php:27
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:78
+msgid "Description:"
+msgstr "Description:"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:1
+msgid "Menus and Navigation"
+msgstr "Menus et Navigation"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:4
+#, php-format
+msgid ""
+"This theme have %u different menus that can be configured with xThemes menus."
+msgstr ""
+"Ce thème a %u menus différents qui peuvent être configurés avec le "
+"gestionnaire de menu xThemes"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:5
+msgid ""
+"To configure menus please select a menu by clicking on tab name, and then "
+"use next form to add elements."
+msgstr ""
+"Pour configurer les menus, sélectionnez en un en cliquant sur le nom de "
+"l'onglet, et utilisez le formulaire apparu pour ajouter des éléments."
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:8
+msgid "Add Menu"
+msgstr "Ajouter un Menu"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:9
+msgid "Save Menu"
+msgstr "Sauvegarder le Menu"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:54
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:60
+msgid "Menu Item"
+msgstr "Item du Menu"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_navigation.php:79
+msgid "255 characters long"
+msgstr "255 caractères de long"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_settings.php:1
+#, php-format
+msgid "%s Settings"
+msgstr "%s Réglages"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_settings.php:26
+msgid ""
+"You can configure all sections before to press \"Save Settings\" button. "
+"Change between sections will not loose configured data."
+msgstr ""
+"Vous pouvez configurer toutes les sections avant de presser le bouton "
+"\"Sauvegarder les réglages\". Les changements entre les sections ne perdront "
+"pas les données configurées."
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_settings.php:29
+msgid "Cancel"
+msgstr "Annuler"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_settings.php:30
+msgid "Save Settings"
+msgstr "Sauvegarder les Réglages"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:11
+msgid "This is a standard XOOPS Theme and doesn't have any additional option."
+msgstr "C'est un thème XOOPS standard, qui n'a pas d'option additionnelle "
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:13
+msgid "View Site"
+msgstr "Voir le site"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:19
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:21
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:77
+#: c:\wamp\www\xm\modules\xthemes/templates/widgets/xt_wgt_themeinfo.php:9
+#, php-format
+msgid "By %s"
+msgstr "Par %s"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:25
+#: c:\wamp\www\xm\modules\xthemes/templates/widgets/xt_wgt_themeinfo.php:10
+#, php-format
+msgid "Version %s"
+msgstr "Version %s"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:36
+msgid "Theme Options"
+msgstr "Options du Thème"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:68
+msgid "This is a standard XOOPS theme."
+msgstr "C'est un thème XOOPS standard."
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:71
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:84
+msgid "Activate"
+msgstr "Activer"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:72
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:87
+msgid "Preview"
+msgstr "Prévisualisation"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:82
+msgid "Install"
+msgstr "Installer"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:85
+msgid "Uninstall"
+msgstr "Désinstaller"
+
+#: c:\wamp\www\xm\modules\xthemes/templates/xt_themes.php:88
+msgid "Details"
+msgstr "Détails"
|
|
From: <bi...@us...> - 2013-11-19 18:30:38
|
Revision: 12229
http://sourceforge.net/p/xoops/svn/12229
Author: bitc3r0
Date: 2013-11-19 18:30:35 +0000 (Tue, 19 Nov 2013)
Log Message:
-----------
Some changes to adapt to new rmcommon version
Modified Paths:
--------------
RMC/modules/xthemes/trunk/xthemes/css/themes.css
RMC/modules/xthemes/trunk/xthemes/preloads/core.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_index.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_navigation.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_settings.php
RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php
RMC/modules/xthemes/trunk/xthemes/themes.php
RMC/modules/xthemes/trunk/xthemes/xoops_version.php
Modified: RMC/modules/xthemes/trunk/xthemes/css/themes.css
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/css/themes.css 2013-11-18 22:11:28 UTC (rev 12228)
+++ RMC/modules/xthemes/trunk/xthemes/css/themes.css 2013-11-19 18:30:35 UTC (rev 12229)
@@ -470,4 +470,5 @@
display: block;
width: 100%; height: 100%;
border-radius: 0 0 2px 2px;
+ border: 0;
}
\ No newline at end of file
Modified: RMC/modules/xthemes/trunk/xthemes/preloads/core.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/preloads/core.php 2013-11-18 22:11:28 UTC (rev 12228)
+++ RMC/modules/xthemes/trunk/xthemes/preloads/core.php 2013-11-19 18:30:35 UTC (rev 12229)
@@ -11,19 +11,19 @@
{
public function eventCoreIncludeCommonLanguage(){
-
+
load_mod_locale('xthemes');
define('XTPATH', XOOPS_ROOT_PATH.'/modules/xthemes');
define('XTURL', XOOPS_URL.'/modules/xthemes');
-
+
require_once XTPATH.'/class/xtassembler.class.php';
$GLOBALS['xtAssembler'] = new XtAssembler();
$GLOBALS['xtFunctions'] = new XtFunctions();
-
+
load_theme_locale($GLOBALS['xtAssembler']->theme()->getInfo('dir'));
-
+
}
-
+
public function eventCoreHeaderAddMeta(){
global $xtAssembler;
/**
@@ -32,12 +32,12 @@
if(!defined('XOOPS_CPFUNC_LOADED')){
$xtAssembler->init();
}
-
+
}
-
+
public function eventCoreIndexStart(){
-
+
define('XTHEMES_IS_HOME', 1);
-
+
}
}
Modified: RMC/modules/xthemes/trunk/xthemes/templates/xt_index.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/templates/xt_index.php 2013-11-18 22:11:28 UTC (rev 12228)
+++ RMC/modules/xthemes/trunk/xthemes/templates/xt_index.php 2013-11-19 18:30:35 UTC (rev 12229)
@@ -1,3 +1,4 @@
+<h1 class="cu-section-title"><?php _e('Dashboard', 'xthemes'); ?></h1>
<div class="outer themes">
<div class="th"><?php _e('Recent Themes on Xoops Mexico','xthemes'); ?></div>
<div class="even waiting" id="recent-themes">
Modified: RMC/modules/xthemes/trunk/xthemes/templates/xt_navigation.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/templates/xt_navigation.php 2013-11-18 22:11:28 UTC (rev 12228)
+++ RMC/modules/xthemes/trunk/xthemes/templates/xt_navigation.php 2013-11-19 18:30:35 UTC (rev 12229)
@@ -1,4 +1,4 @@
-<h1 class="rmc_titles"><?php _e('Menus and Navigation','xthemes'); ?></h1>
+<h1 class="cu-section-title"><?php _e('Menus and Navigation','xthemes'); ?></h1>
<p class="introduction">
<?php echo sprintf(__('This theme have %u different menus that can be configured with xThemes menus.','xthemes'), count($menus)); ?>
Modified: RMC/modules/xthemes/trunk/xthemes/templates/xt_settings.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/templates/xt_settings.php 2013-11-18 22:11:28 UTC (rev 12228)
+++ RMC/modules/xthemes/trunk/xthemes/templates/xt_settings.php 2013-11-19 18:30:35 UTC (rev 12229)
@@ -1,4 +1,4 @@
-<h1 class="rmc_titles"><?php echo sprintf(__('%s Settings','xthemes'), $xtAssembler->theme()->getInfo("name")); ?></h1>
+<h1 class="cu-section-title"><?php echo sprintf(__('%s Settings','xthemes'), $xtAssembler->theme()->getInfo("name")); ?></h1>
<form name="formSettings" id="frm-settings" action="settings.php" method="post" class="form-horizontal">
<ul class="nav nav-tabs xt-settings-tabs">
Modified: RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php 2013-11-18 22:11:28 UTC (rev 12228)
+++ RMC/modules/xthemes/trunk/xthemes/templates/xt_themes.php 2013-11-19 18:30:35 UTC (rev 12229)
@@ -1,3 +1,4 @@
+<h1 class="cu-section-title"><?php _e('Available Themes', 'xthemes'); ?></h1>
<div class="xt_current">
<?php if($current): ?>
<div class="xt_current_screenshot">
@@ -101,7 +102,7 @@
</div>
<div id="xt-previewer-blocker"></div>
<div id="xt-previewer">
- <div class="title"><span></span><span class="icon icon-close close"></span></div>
+ <div class="title"><span></span><span class="close">×</span></div>
<div class="website"></div>
</div>
Modified: RMC/modules/xthemes/trunk/xthemes/themes.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/themes.php 2013-11-18 22:11:28 UTC (rev 12228)
+++ RMC/modules/xthemes/trunk/xthemes/themes.php 2013-11-19 18:30:35 UTC (rev 12229)
@@ -18,7 +18,7 @@
function xt_show_themes(){
global $tpl, $xtf, $xoopsSecurity, $xtAssembler;
- $xtf->menu_options();
+ $xtf->toolbar();
$current = $xtAssembler->theme();
// Read all available themes
@@ -54,6 +54,9 @@
$tpl->add_local_script('xthemes.js', 'xthemes');
$tpl->add_head_script("var xoops_url = '".XOOPS_URL."';");
$tpl->assign('xoops_pagetitle', __('Themes Manager','xthemes'));
+
+ $bc = RMBreadCrumb::get();
+ $bc->add_crumb(__('Themes', 'xthemes'));
xoops_cp_header();
Modified: RMC/modules/xthemes/trunk/xthemes/xoops_version.php
===================================================================
--- RMC/modules/xthemes/trunk/xthemes/xoops_version.php 2013-11-18 22:11:28 UTC (rev 12228)
+++ RMC/modules/xthemes/trunk/xthemes/xoops_version.php 2013-11-19 18:30:35 UTC (rev 12229)
@@ -27,7 +27,7 @@
$modversion['name'] = 'XThemes';
$modversion['version'] = 1.5;
$modversion['rmnative'] = '1';
-$modversion['rmversion'] = array('major'=>1,'minor'=>5, 'revision'=>23,'stage'=>-1,'name'=>'XThemes');
+$modversion['rmversion'] = array('major'=>1,'minor'=>5, 'revision'=>28,'stage'=>0,'name'=>'XThemes');
$modversion['updateurl'] = "http://www.xoopsmexico.net/modules/vcontrol/?action=check&id=9";
$modversion['description'] = 'A module to manage themes from Red México';
$modversion['credits'] = "Eduardo Cortés <i.b...@gm...>";
|