Permalink
Browse files

better looking ui

  • Loading branch information...
1 parent 9f51253 commit 2223c1ed6db77a2c42cfd44dd9dcb2c130680539 @PapePathe PapePathe committed Aug 27, 2010
Showing with 3,414 additions and 0 deletions.
  1. +25 −0 deploy
  2. +7 −0 mod_xws_content/README
  3. +2 −0 mod_xws_content/authors.txt
  4. BIN mod_xws_content/css/blitzer/images/ui-anim_basic_16x16.gif
  5. BIN mod_xws_content/css/blitzer/images/ui-bg_diagonals-thick_75_f3d8d8_40x40.png
  6. BIN mod_xws_content/css/blitzer/images/ui-bg_dots-small_65_a6a6a6_2x2.png
  7. BIN mod_xws_content/css/blitzer/images/ui-bg_flat_0_333333_40x100.png
  8. BIN mod_xws_content/css/blitzer/images/ui-bg_flat_65_ffffff_40x100.png
  9. BIN mod_xws_content/css/blitzer/images/ui-bg_flat_75_ffffff_40x100.png
  10. BIN mod_xws_content/css/blitzer/images/ui-bg_glass_55_fbf8ee_1x400.png
  11. BIN mod_xws_content/css/blitzer/images/ui-bg_highlight-hard_100_eeeeee_1x100.png
  12. BIN mod_xws_content/css/blitzer/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png
  13. BIN mod_xws_content/css/blitzer/images/ui-bg_highlight-soft_15_cc0000_1x100.png
  14. BIN mod_xws_content/css/blitzer/images/ui-icons_004276_256x240.png
  15. BIN mod_xws_content/css/blitzer/images/ui-icons_cc0000_256x240.png
  16. BIN mod_xws_content/css/blitzer/images/ui-icons_ffffff_256x240.png
  17. +486 −0 mod_xws_content/css/blitzer/jquery-ui.css
  18. BIN mod_xws_content/css/ui-darkness/images/ui-anim_basic_16x16.gif
  19. BIN mod_xws_content/css/ui-darkness/images/ui-bg_flat_30_cccccc_40x100.png
  20. BIN mod_xws_content/css/ui-darkness/images/ui-bg_flat_50_5c5c5c_40x100.png
  21. BIN mod_xws_content/css/ui-darkness/images/ui-bg_glass_20_555555_1x400.png
  22. BIN mod_xws_content/css/ui-darkness/images/ui-bg_glass_40_0078a3_1x400.png
  23. BIN mod_xws_content/css/ui-darkness/images/ui-bg_glass_40_ffc73d_1x400.png
  24. BIN mod_xws_content/css/ui-darkness/images/ui-bg_gloss-wave_25_333333_500x100.png
  25. BIN mod_xws_content/css/ui-darkness/images/ui-bg_highlight-soft_80_eeeeee_1x100.png
  26. BIN mod_xws_content/css/ui-darkness/images/ui-bg_inset-soft_25_000000_1x100.png
  27. BIN mod_xws_content/css/ui-darkness/images/ui-bg_inset-soft_30_f58400_1x100.png
  28. BIN mod_xws_content/css/ui-darkness/images/ui-icons_222222_256x240.png
  29. BIN mod_xws_content/css/ui-darkness/images/ui-icons_4b8e0b_256x240.png
  30. BIN mod_xws_content/css/ui-darkness/images/ui-icons_a83300_256x240.png
  31. BIN mod_xws_content/css/ui-darkness/images/ui-icons_cccccc_256x240.png
  32. BIN mod_xws_content/css/ui-darkness/images/ui-icons_ffffff_256x240.png
  33. +489 −0 mod_xws_content/css/ui-darkness/jquery-ui.css
  34. BIN mod_xws_content/css/ui-lightness/images/ui-anim_basic_16x16.gif
  35. BIN mod_xws_content/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
  36. BIN mod_xws_content/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
  37. BIN mod_xws_content/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
  38. BIN mod_xws_content/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
  39. BIN mod_xws_content/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
  40. BIN mod_xws_content/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
  41. BIN mod_xws_content/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
  42. BIN mod_xws_content/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
  43. BIN mod_xws_content/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
  44. BIN mod_xws_content/css/ui-lightness/images/ui-icons_222222_256x240.png
  45. BIN mod_xws_content/css/ui-lightness/images/ui-icons_228ef1_256x240.png
  46. BIN mod_xws_content/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
  47. BIN mod_xws_content/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
  48. BIN mod_xws_content/css/ui-lightness/images/ui-icons_ffffff_256x240.png
  49. +489 −0 mod_xws_content/css/ui-lightness/jquery-ui.css
  50. +43 −0 mod_xws_content/css/xws-content.css
  51. +41 −0 mod_xws_content/elements/csstemplate.php
  52. +54 −0 mod_xws_content/elements/moduletemplate.php
  53. +166 −0 mod_xws_content/helper.php
  54. +1 −0 mod_xws_content/index.html
  55. +154 −0 mod_xws_content/js/jquery-1.4.2.js
  56. +1,012 −0 mod_xws_content/js/jquery-ui-1.8.2.js
  57. +82 −0 mod_xws_content/js/jquery.xws.readmore.js
  58. +79 −0 mod_xws_content/js/jquery.xws.uiHelpers.js
  59. +44 −0 mod_xws_content/language/en-GB/en-GB.mod_xws_content.ini
  60. 0 mod_xws_content/licence.txt
  61. +34 −0 mod_xws_content/mod_xws_content.php
  62. +80 −0 mod_xws_content/mod_xws_content.xml
  63. +63 −0 mod_xws_content/tmpl/accordion/default.php
  64. +1 −0 mod_xws_content/tmpl/accordion/index.html
  65. +1 −0 mod_xws_content/tmpl/index.html
  66. +60 −0 mod_xws_content/tmpl/tabs/default.php
  67. +1 −0 mod_xws_content/tmpl/tabs/index.html
View
25 deploy
@@ -0,0 +1,25 @@
+#!/bin/sh
+####################################
+#
+# Archivage du composant
+#
+####################################
+day=$(date +%A)
+
+# Création du nom de l'archive.
+archive_file="mod-xws-content-$day.tar.gz"
+
+# Affichage du commencement de la sauvegarde.
+echo "Debut de l'archivage du module"
+date
+
+# Sauvegarde à l'aide de tar.
+tar czfa $archive_file mod_xws_content
+
+# Affichage de la fin de la sauvegarde
+echo "Sauvegarde terminée"
+date
+
+# Liste détaillée des fichiers de $dest pour vérifier la taille des fichiers
+ls -lh
+
View
@@ -0,0 +1,7 @@
+MOD_XWS_CONTENT
+* The mod_xws_content is a joomla module displaying core joomla articles with jquery ui widgets.
+* The mod_xws_content has for now two widgets tabs and accordion and is under nightly development.
+* The mod_xws_content is bundled with dozen of jquery ui themes
+* The mod_xws_content is optimized for production website as it can load assets from google ajax librairies.
+* The mod_xws_content is brought to you by Xws-Joomla a brand new startup from Dakar Sénégal in West Africa.
+
@@ -0,0 +1,2 @@
+Papa Pathé Séne <pathe.sene@gmail.com>
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,43 @@
+/*
+ * Xws_Content Joomla Module
+ * This file override some definitions from jquery ui stylesheets
+ * @package xws_content
+ * @version 0.0.3
+ * @author Papa Pathé Séne - Xarala Web Studios Sénégal http://www.xarala.sn
+ *
+ * Copyright 2010, Papa Pathé Séne - Xarala Web Studios Sénégal
+ * Licensed under GPL licence
+ *
+ * Date: sam. 17 juil. 2010 23:35:32 GMT
+ *
+ *--------------------------------------------------------------------------------------------- */
+
+
+/* Readmore Link
+ * --------------------------------------------------------------------------------------------- */
+.ui-accordion a.readon, .ui-tabs a.readon {
+ /* float: right; */
+ font-size: 1.1em;
+}
+
+/* Accordion Header Overrides
+ * -------------------------------------------------------------------------------------------- */
+.ui-accordion .ui-accordion-header {
+}
+/**
+ * Ui tabs Overrides for readmore buttons
+ * -------------------------------------------------------------------------------------------- */
+.ui-tabs .ui-accordion-header {
+ position: relative;
+ cursor: pointer;
+}
+.ui-tabs .ui-accordion-header a {
+ padding-left: 2.2em;
+}
+.ui-tabs .ui-accordion-header .ui-icon {
+ left:0.5em;
+ margin-top:-8px;
+ position:absolute;
+ top:50%;
+}
+
@@ -0,0 +1,41 @@
+<?php
+/**
+ * @version $Id: moduletemplate.php 478 2010-06-16 16:11:42Z joomlaworks $
+ * @package K2
+ * @author JoomlaWorks http://www.joomlaworks.gr
+ * @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved.
+ * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
+ */
+
+// no direct access
+defined('_JEXEC') or die('Restricted access');
+
+class JElementCssTemplate extends JElement {
+
+ var $_name = 'csstemplate';
+
+ function fetchElement($name, $value, &$node, $control_name) {
+
+ jimport('joomla.filesystem.folder');
+
+ $moduleName = $node->_attributes['modulename'];
+ $moduleTemplatesPath = JPATH_SITE.DS.'modules'.DS.$moduleName.DS.'css';
+ $moduleTemplatesFolders = JFolder::folders($moduleTemplatesPath);
+ $folders = $moduleTemplatesFolders;
+
+ $exclude = 'Default';
+ $options = array ();
+ foreach ($folders as $folder) {
+ if (preg_match(chr(1).$exclude.chr(1), $folder)) {
+ continue ;
+ }
+ $options[] = JHTML::_('select.option', $folder, $folder);
+ }
+
+ array_unshift($options, JHTML::_('select.option','Default','-- '.JText::_('Use default').' --'));
+
+ return JHTML::_('select.genericlist', $options, ''.$control_name.'['.$name.']', 'class="inputbox"', 'value', 'text', $value, $control_name.$name);
+
+ }
+
+}
@@ -0,0 +1,54 @@
+<?php
+/**
+ * @version $Id: moduletemplate.php 478 2010-06-16 16:11:42Z joomlaworks $
+ * @package K2
+ * @author JoomlaWorks http://www.joomlaworks.gr
+ * @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved.
+ * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
+ */
+
+// no direct access
+defined('_JEXEC') or die('Restricted access');
+
+class JElementModuletemplate extends JElement {
+
+ var $_name = 'moduletemplate';
+
+ function fetchElement($name, $value, &$node, $control_name) {
+
+ jimport('joomla.filesystem.folder');
+
+ $moduleName = $node->_attributes['modulename'];
+ $moduleTemplatesPath = JPATH_SITE.DS.'modules'.DS.$moduleName.DS.'tmpl';
+ $moduleTemplatesFolders = JFolder::folders($moduleTemplatesPath);
+
+ $db =& JFactory::getDBO();
+ $query = "SELECT template FROM #__templates_menu WHERE client_id = 0 AND menuid = 0";
+ $db->setQuery($query);
+ $defaultemplate = $db->loadResult();
+ $templatePath = JPATH_SITE.DS.'templates'.DS.$defaultemplate.DS.'html'.DS.$moduleName;
+
+ if (JFolder::exists($templatePath)){
+ $templateFolders = JFolder::folders($templatePath);
+ $folders = @array_merge($templateFolders, $moduleTemplatesFolders);
+ $folders = @array_unique($folders);
+ } else {
+ $folders = $moduleTemplatesFolders;
+ }
+
+ $exclude = 'Default';
+ $options = array ();
+ foreach ($folders as $folder) {
+ if (preg_match(chr(1).$exclude.chr(1), $folder)) {
+ continue ;
+ }
+ $options[] = JHTML::_('select.option', $folder, $folder);
+ }
+
+ array_unshift($options, JHTML::_('select.option','Default','-- '.JText::_('Use default').' --'));
+
+ return JHTML::_('select.genericlist', $options, ''.$control_name.'['.$name.']', 'class="inputbox"', 'value', 'text', $value, $control_name.$name);
+
+ }
+
+}
View
@@ -0,0 +1,166 @@
+<?php
+/**
+* @version $Id: helper.php 14401 2010-01-26 14:10:00Z louis $
+* @package Joomla
+* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
+* @license GNU/GPL, see LICENSE.php
+* Joomla! is free software. This version may have been modified pursuant
+* to the GNU General Public License, and as distributed it includes or
+* is derivative of works licensed under the GNU General Public License or
+* other free or open source software licenses.
+* See COPYRIGHT.php for copyright notices and details.
+*/
+
+/* No direct access to joomla filesystem
+ * -------------------------------------------------------------------------------------------- */
+
+/* Include com_content router to generate urls for articles
+ * -------------------------------------------------------------------------------------------- */
+require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');
+
+
+/* Definition of XwsJoomla constants
+ *-------------------------------------------------------------------------------------------- */
+ define('_XWS_CONTENT_PATH', 'modules'.DS.'mod_xws_content');
+ define('_XWS_CONTENT_JS_PATH', _XWS_CONTENT_PATH.DS.'js'.DS);
+ define('_XWS_CONTENT_CSS_PATH', _XWS_CONTENT_PATH.DS.'css'.DS);
+
+/**
+ * @class modXwsContentHelper
+ * @scope public
+ */
+class modXwsContentHelper
+{
+
+ /**
+ *
+ * @method loadJquery
+ * @return void
+ */
+ public static function loadJquery($params) {
+ if ($params->get('load_javascripts') == 1) {
+ if ($params->get('environment') == 0) {
+ JHTML::script('jquery-1.4.2.js', _XWS_CONTENT_JS_PATH, false);
+ }
+ else {
+ #TODO load_jquery from google ajax apis
+ }
+ }
+ }
+
+ /**
+ * @method loadJqueryUi
+ * @return void
+ *
+ */
+ public static function loadJqueryUi($params) {
+ if ($params->get('load_javascripts') == 1) {
+ if ($params->get('environment') == 0) {
+ JHTML::script('jquery-ui-1.8.2.js', _XWS_CONTENT_JS_PATH, false);
+ }
+ else {
+ #TODO load_jquery_ui from google ajax apis
+ }
+ JHTML::script('jquery.xws.uiHelpers.js', _XWS_CONTENT_JS_PATH, false);
+ JHTML::script('jquery.xws.readmore.js', _XWS_CONTENT_JS_PATH, false);
+ }
+ }
+ /**
+ * @method loadJqueryUiStylesheets
+ * @return void
+ *
+ */
+ public static function loadJqueryUiStylesheets($params) {
+ if ($params->get('load_stylesheets') == 1) {
+
+ /* Set the user desired theme
+ * Load the user desired theme
+ * --------------------------------------------------------------------------------- */
+ if ($params->get('environment') == 0) {
+ JHTML::stylesheet('jquery-ui.css', _XWS_CONTENT_CSS_PATH.DS.$params->get('jquery-ui-theme').DS, array());
+ }
+ else {
+ #TODO load_jquery_ui_stylesheets from google ajax apis
+ }
+ JHTML::stylesheet('xws-content.css', _XWS_CONTENT_CSS_PATH, array());
+ }
+ }
+
+ /**
+ * @method getList
+ * @return JObjectList
+ * @param JParameter
+ */
+ function getList(&$params)
+ {
+ global $mainframe;
+
+ $db =& JFactory::getDBO();
+ $user =& JFactory::getUser();
+
+ $count = intval($params->get('count', 5));
+ $catid = trim($params->get('catid'));
+ $secid = trim($params->get('secid'));
+ $show_front = $params->get('show_front', 1);
+ $aid = $user->get('aid', 0);
+
+ $contentConfig = &JComponentHelper::getParams( 'com_content' );
+ $access = !$contentConfig->get('show_noauth');
+
+ $nullDate = $db->getNullDate();
+ $date =& JFactory::getDate();
+ $now = $date->toMySQL();
+
+ if ($catid)
+ {
+ $ids = explode( ',', $catid );
+ JArrayHelper::toInteger( $ids );
+ $catCondition = ' AND (cc.id=' . implode( ' OR cc.id=', $ids ) . ')';
+ }
+ if ($secid)
+ {
+ $ids = explode( ',', $secid );
+ JArrayHelper::toInteger( $ids );
+ $secCondition = ' AND (s.id=' . implode( ' OR s.id=', $ids ) . ')';
+ }
+
+ //Content Items only
+ $query = 'SELECT a.*,' .
+ ' CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug,'.
+ ' CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug'.
+ ' FROM #__content AS a' .
+ ' LEFT JOIN #__content_frontpage AS f ON f.content_id = a.id' .
+ ' INNER JOIN #__categories AS cc ON cc.id = a.catid' .
+ ' INNER JOIN #__sections AS s ON s.id = a.sectionid' .
+ ' WHERE ( a.state = 1 AND s.id > 0 )' .
+ ' AND ( a.publish_up = '.$db->Quote($nullDate).' OR a.publish_up <= '.$db->Quote($now).' )' .
+ ' AND ( a.publish_down = '.$db->Quote($nullDate).' OR a.publish_down >= '.$db->Quote($now).' )'.
+ ($access ? ' AND a.access <= ' .(int) $aid. ' AND cc.access <= ' .(int) $aid. ' AND s.access <= ' .(int) $aid : '').
+ ($catid ? $catCondition : '').
+ ($secid ? $secCondition : '').
+ ($show_front == '0' ? ' AND f.content_id IS NULL' : '').
+ ' AND s.published = 1' .
+ ' AND cc.published = 1' .
+ ' ORDER BY a.hits DESC';
+ $db->setQuery($query, 0, $count);
+ $rows = $db->loadObjectList();
+
+ $i = 0;
+ $lists = array();
+ foreach ( $rows as $row )
+ {
+ if($row->access <= $aid)
+ {
+ $lists[$i]->link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catslug, $row->sectionid));
+ } else {
+ $lists[$i]->link = JRoute::_('index.php?option=com_user&view=login');
+ }
+ $lists[$i]->title = htmlspecialchars( $row->title );
+ $lists[$i]->introtext = $row->introtext;
+ $i++;
+ }
+ // print_r($rows);
+ return $lists;
+ }
+}
+
@@ -0,0 +1 @@
+<html><body bgcolor="#FFFFFF"></body></html>
Oops, something went wrong.

0 comments on commit 2223c1e

Please sign in to comment.