Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
JoomBall authored May 18, 2018
1 parent 7590e94 commit f5c8a47
Show file tree
Hide file tree
Showing 35 changed files with 1,171 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
JBWeblinks 3.0.0 (18-05-2018)
================================================================================
+ Initiation the module in November 2011
+ Add in Github
+ Display component 'com_weblinks'
4 changes: 4 additions & 0 deletions assets/css/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<body>
</body>
</html>
108 changes: 108 additions & 0 deletions assets/css/jbtoolbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
@charset "UTF-8";

/**
* @package Joomla.Administrator
* @subpackage templates.bluestork
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
*/


/* -- TOOLBAR STYLES ----------------------------- */

/* Page titles */
div.jbpagetitle {
padding-left: 60px;
background-repeat: no-repeat;
height: 48px;
}

div.jbpagetitle h2 {
line-height: 48px;
font-size: 18px;
font-weight: normal;
color: #146295;
margin: 0;
padding: 0;
}

/* Main toolbars */
div.jbtoolbar-list {
float: right;
text-align: right;
padding: 0;
}

div.jbtoolbar-list ul {
margin: 0;
padding: 0;
}

div.jbtoolbar-list li {
padding: 1px 1px 3px 4px;
text-align: center;
color: #666;
height: 48px;
list-style: none;
float: left;
}

div.jbtoolbar-list li.spacer {
width: 10px;
}

div.jbtoolbar-list li.divider {
border-right: 1px solid #c7c7c7;
width: 2px;
}

div.jbtoolbar-list span {
float: none;
width: 32px;
height: 32px;
margin: 0 auto;
display: block;
}

div.jbtoolbar-list a {
display: block;
float: left;
white-space: nowrap;
border: 1px solid #F4F4F4;
padding: 1px 5px;
cursor: pointer;
}

div.jbtoolbar-list a:hover,
div.jbtoolbar-list a:focus,
div.jbtoolbar-list a:active {
border-left: 1px solid #eee;
border-top: 1px solid #eee;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
text-decoration: none;
color: #0B55C4;
}


/* -- BUTTON STYLES ----------------------------- */

jbbutton {
margin-top: 4px;
background: #fff;
border: 1px solid #ccc;
text-decoration: none;
}

jbbutton:hover {
cursor: pointer;
background: #E8F6FE;
text-decoration: none;
border: 1px solid #aaa;
}


/* -- ICON STYLES ----------------------------- */
.icon-32-help { background-image: url(../images/icon-32-help.png); }

48 changes: 48 additions & 0 deletions assets/css/jbweblinks.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* @author JoomBall! Project
* @link http://www.joomball.com
* @copyright Copyright © 2012 JoomBall! Project All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/

/* ++++++++++++++ weblinks ++++++++++++++ */
/* ESTIL PER A WEBLINKS */
ul.weblinks, ul.weblinks li ul, ul.weblinks_grey, ul.weblinks_grey li ul {
margin: 0 5px !important;
padding: 0 0 5px 0 !important;
}

ul.weblinks li, ul.weblinks_grey li {
font-style: italic;
font-size: 1.2em;
color: #000000;
list-style-type: none;
}

ul.weblinks li ul li, ul.weblinks_grey li ul li {
font-style: normal;
font-size: .8em;
color: #000000;
padding: 2px 0;
border-bottom: dashed 1px #aaaaaa;
}

ul.weblinks li ul li p, ul.weblinks_grey li ul li p {
font-size: 0.78em;
margin: 2px;
}

ul.weblinks li ul li span, ul.weblinks_grey li ul li span {
padding-left: 4px;
color: #808080;
}

#jbweblinks ul.menu {
border: none;
background: none;
}

#jbweblinks ul.menu li a {
font-style: normal;
font-size: 1.0em;
}
Binary file added assets/images/Thumbs.db
Binary file not shown.
Binary file added assets/images/icon-32-help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icon-32-joomball.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icon-32-joomla.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icon-32-rss-file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icon-48-jbweblinks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/images/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<body>
</body>
</html>
4 changes: 4 additions & 0 deletions assets/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<body>
</body>
</html>
1 change: 1 addition & 0 deletions fields/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><title></title>
127 changes: 127 additions & 0 deletions fields/jbheader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<?php
/**
*
* @package Joomla
* @subpackage Modules - jbmenu_accordion
*
* @author JoomBall! Project
* @link http://www.joomball.com
* @copyright Copyright © 2012 JoomBall! Project - All Rights Reserved
* @license license.txt (english) or licencia.txt (spanish) Proprietary License. This code belongs to JoomBall! Project
* You are not allowed to distribute or sell this code. You bought only a license to use it for ONE virtuemart installation.
* You are not allowed to modify this code.
*
**/

defined('_JEXEC') or die('Restricted access');

jimport('joomla.form.formfield');

class JFormFieldJbHeader extends JFormField {

protected $type = 'JbHeader';

public function getLabel() {
return;
}

protected function getInput() {

$lang = JFactory::getLanguage();
$languageTag = $lang->getTag();

if ($languageTag == 'es-ES' or $languageTag == 'ca-ES') {
$linkCategory = $this->element['es_category'];
$linkVideoTutorial = $this->element['es_help'];
} else {
$linkCategory = $this->element['en_category'];
$linkVideoTutorial = $this->element['en_help'];
}

$imageHeader = 'http://www.joomball.com/images/template/toolbar/'.$this->element['icon_48'].'.png';
// --> Comprovem si existeix arxiu
if (!strlen(@file_get_contents($imageHeader))) {
$imageHeader = $this->element['path'].$this->element['icon_48'].'.png';
}

// $AgetHeaders = @get_headers($imageJoomBall);
// if (preg_match("|200|", $AgetHeaders[0])) {
// file exists
// }


// $exist = @fopen($imageJoomBall, "r");

$imageJoomBall = 'http://www.joomball.com/images/template/toolbar/icon-32-joomball.png';
// --> Comprovem si existeix arxiu
if (!strlen(@file_get_contents($imageJoomBall))) {
$imageJoomBall = $this->element['path'].'icon-32-joomball.png';
}

$imageJoomla = 'http://www.joomball.com/images/template/toolbar/icon-32-joomla.png';
// --> Comprovem si existeix arxiu
if (!strlen(@file_get_contents($imageJoomla))) {
$imageJoomla = $this->element['path'].'icon-32-joomla.png';
}

//echo $imageJoomBall;
$imageRssFile = 'http://www.joomball.com/images/template/toolbar/icon-32-rss-file.png';
// --> Comprovem si existeix arxiu
if (!strlen(@file_get_contents($imageRssFile))) {
$imageRssFile = $this->element['path'].'icon-32-rss-file.png';
}

$document = JFactory::getDocument();

$styleCss = '.'.$this->element['icon_48'].' {
background-image: url("'.$imageHeader.'");
}
.icon-32-joomball {
background-image: url("'.$imageJoomBall.'");
}
.icon-32-joomla {
background-image: url("'.$imageJoomla.'");
}
.icon-32-rss-file {
background-image: url("'.$imageRssFile.'");
}';



$document->addStyleDeclaration($styleCss);

$document->addStyleSheet(JURI::root() . 'modules/mod_jbweblinks/assets/css/jbtoolbar.css');

$html = '
<div style="max-width: 500px; margin: 0; border:1px solid #CCCCCC; background-color: #F4F4F4; padding: 5px 10px; border-radius: 5px;">
<div class="jbtoolbar-list">
<ul>
<li class="jbbutton">
<a class="jbtoolbar hasTip" title="JoomBall" rel="'.JText::_('JBJOOMBALL_TITLE').'" href="http://www.joomball.com/" target="_blank">
<span class="icon-32-joomball"></span>'.JText::_('JoomBall').'</a>
</li>
<li class="jbbutton">
<a class="jbtoolbar hasTip" title="'.JText::_('JBVOTE').'" rel="'.JText::_('JBVOTE_TITLE').'" href="'.$this->element['extension'].'" target="_blank">
<span class="icon-32-joomla"></span>'.JText::_('JBVOTE').'</a>
</li>
<li class="jbbutton">
<a class="jbtoolbar hasTip" title="'.JText::_('JBDOCUMENTATION').'" rel="'.JText::_('JBDOCUMENTATION_TITLE').'" href="http://www.joomball.com/'.$linkCategory.'" target="_blank">
<span class="icon-32-rss-file"></span>'.JText::_('JBDOCUMENTATION').'</a>
</li>
<li class="jbbutton">
<a class="jbtoolbar hasTip" title="'.JText::_('JHELP').'" rel="'.JText::_('JBHELP_TITLE').'" onclick="Joomla.popupWindow(\'http://www.joomball.com/'.$linkVideoTutorial.'?tmpl=component\', \'Documentation\', 700, 500, 1)" href="#">
<span class="icon-32-help"></span>'.JText::_('JHELP').'</a>
</li>
</ul>
<div class="clr"></div>
</div>
<div class="jbpagetitle '.$this->element['icon_48'].'">
<h2>'.$this->element['pagetitle'].'</h2>
</div>
<div class="clr"></div>
</div>';

return $html;
}
}
41 changes: 41 additions & 0 deletions fields/jbinformation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/**
*
* @package Joomla
* @subpackage Modules - jbmenu_accordion
*
* @author JoomBall! Project
* @link http://www.joomball.com
* @copyright Copyright © 2012 JoomBall! Project - All Rights Reserved
* @license license.txt (english) or licencia.txt (spanish) Proprietary License. This code belongs to JoomBall! Project
* You are not allowed to distribute or sell this code. You bought only a license to use it for ONE virtuemart installation.
* You are not allowed to modify this code.
*
**/
// no direct access
defined('_JEXEC') or die('Restricted access');

class JFormFieldJbinformation extends JFormField {

protected $type = 'jbinformation';

protected function getInput() {

$label = $this->element['label'] ? (string) $this->element['label'] : '';

$html = array();

$html[] = '<div style="clear:left;"></div>';
$html[] = '<div style="max-width: 500px; border: 1px solid #8bda8b; background-color: #cbfbcb; margin: 5px 0; padding: 5px 10px; border-radius: 5px; font-size:12px;">';
$html[] = '<strong style="color:#303030;">';
$html[] = JText::_('JBINFORMATION').': ';
$html[] = '</strong>';
$html[] = JText::_($label);
$html[] = '</div>';

return implode('', $html);
}

protected function getLabel() {}

}
33 changes: 33 additions & 0 deletions fields/jblang.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/**
*
* @package Joomla
* @subpackage Modules - jbmenu_accordion
*
* @author JoomBall! Project
* @link http://www.joomball.com
* @copyright Copyright © 2012 JoomBall! Project - All Rights Reserved
* @license license.txt (english) or licencia.txt (spanish) Proprietary License. This code belongs to JoomBall! Project
* You are not allowed to distribute or sell this code. You bought only a license to use it for ONE virtuemart installation.
* You are not allowed to modify this code.
*
**/

defined('_JEXEC') or die('Restricted access');

jimport('joomla.form.formfield');

class JFormFieldJBLang extends JFormField {

protected $type = 'JBLang';

public function getLabel() {
return;
}

protected function getInput() {
$lang = JFactory::getLanguage();
$lang->load('mod_weblinks', JPATH_SITE, null, false, false)
|| $lang->load('mod_weblinks', JPATH_SITE, $lang->getDefault(), false, false);
}
}
Loading

0 comments on commit f5c8a47

Please sign in to comment.