Your IP : 216.73.216.190


Current Path : /proc/1908984/root/proc/2603263/cwd/
Upload File :
Current File : //proc/1908984/root/proc/2603263/cwd/accordion.tar

css/accordion.css000064400000003400152351550330010006 0ustar00ul.yt-accordion {
  margin: 0;
  list-style: none;
  padding: 0;
  clear: both;
}
ul.yt-accordion li.yt-accordion-group {
  margin-bottom: 5px;
  background: #fff;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
ul.yt-accordion li.yt-accordion-group h3.accordion-heading {
  padding: 8px;
  margin: 0;
  line-height: 22px;
  cursor: pointer;
  font-size: 13px;
  background: #f1f1f1;
}

ul.yt-accordion li.yt-accordion-group h3.accordion-heading .fa-plus-circle {
  text-align: left;
}
ul.yt-accordion li.yt-accordion-group h3.accordion-heading .fa-plus-circle:before {
  font-size: 14px;
}
ul.yt-accordion li.yt-accordion-group h3.accordion-heading.active .fa-plus-circle:before {
  content: "\f056";
}
ul.yt-accordion li.yt-accordion-group h3.accordion-heading.active .fa-plus:before {
  content: "\f068";
}
ul.yt-accordion li.yt-accordion-group h3.accordion-heading.active .fa-folder:before {
  content: "\f07c";
}
ul.yt-accordion li.yt-accordion-group h3.accordion-heading.active .fa-arrows-v:before {
  content: "\f07e";
}
ul.yt-accordion li.yt-accordion-group h3.accordion-heading.active .fa-arrow-circle-o-up:before {
  content: "\f01a";
}
ul.yt-accordion li.yt-accordion-group h3.accordion-heading.active .fa-arrow-right:before {
  content: "\f063";
}
ul.yt-accordion li.yt-accordion-group h3.accordion-heading.active .fa-caret-right:before {
  content: "\f0d7";
}
ul.yt-accordion li.yt-accordion-group h3.accordion-heading.active .fa-chevron-right:before {
  content: "\f078";
}
ul.yt-accordion li.yt-accordion-group .yt-accordion-inner {
  background: #fff;
  padding: 9px 15px;
}
ul.yt-accordion.line li.yt-accordion-group .yt-accordion-inner {
  border-top: 1px solid #ccc;
}
css/index.html000064400000000032152351550330007326 0ustar00<html><body></body></html>js/index.html000064400000000032152351550330007152 0ustar00<html><body></body></html>config.php000064400000005316152351550330006531 0ustar00<?php
/*
* @package   YouTech Shortcodes
* @author    YouTech Company http://smartaddons.com/
* @copyright Copyright (C) 2015 YouTech Company
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;

class YT_Shortcode_accordion_config {
static function get_config() {
        // accordion
        return array(
			'align' => array('type' => 'select',
				'default' => 'left',
				'name' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ALIGN'),
				'desc' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ALIGN_DESC'),
				'values' => array(
					'left'=>'Left',
					'right' => 'Right',
					'none' =>'None'	
				),
				'child'  => array(
	                'width' => array('type' => 'slider',
						'default' => 100,
						'min' => 0,
						'max' => 100,
						'step' => 1,
						'name' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_WIDTH'),
						'desc' => JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_WIDTH_%_DESC"),
					),
	                'style' => array(
	                	'type'    => 'select',
	                    'default' => 'basic',
	                    'values'   => array(
        					'basic' => 'Basic',
        					'line'  => 'Line',
        					'border'=> 'Border', 
        				),
	                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STYLE'),
	                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STYLE_DESC')
	                )
	            )
			),
			'color_background_active' => array(
				'type' => 'bool',
				'default' =>'yes',
				'name' => JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_COLOR_BACKGROUND_ACTIVE"),
				'desc' => JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_COLOR_BACKGROUND_ACTIVE_DESC"),
				'child' => array(
					'item_active' => array(
	                	'type'    => 'select',
	                    'default' => '1',
	                    'values'   => array(
        					'1' 	=> '1',
        				),
	                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEM_ACTIVE'),
	                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEM_ACTIVE_DESC')
	                )
				),
			),
			'background_active'=>array(
				'type' => 'color',
				'default'=> '#fff',
				'name' =>JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_ACCORDION_ITEM_BACKGROUND_ACTIVE"),
				'desc' => JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_ACCORDION_ITEM_BACKGROUND_ACTIVE_DESC"),
				'child' => array(
					'color_active' => array(
						'type' => 'color',
						'default' => '#ccc',
						'name' => JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_ACCORDION_ITEM_COLOR_ACTIVE"),
						'desc' => JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_ACCORDION_ITEM_COLOR_ACTIVE_DESC"),		
					),
				),
			),
		);
	}
}
?>shortcode.php000064400000003646152351550330007262 0ustar00<?php
/*
* @package   YouTech Shortcodes
* @author    YouTech Company http://smartaddons.com/
* @copyright Copyright (C) 2015 YouTech Company
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/

defined('_JEXEC') or die;
function accordionYTShortcode($atts, $content = null){
	global $style_acc,$item_active,$dem;
	extract(ytshortcode_atts(array(
		"style"  					=>'',
		"align"  					=>'none',
		"width"  					=>'100',
		"color_active" 				=> '',
		"background_active" 		=> '',
		"color_background_active" 	=> 'yes',
		"item_active" 				=> '1'
	),$atts));
	$style_acc =$style;
	$dem = 1;
	$id = uniqid('ul_').rand().time(); 
	$accordion = "<ul class='yt-clearfix yt-accordion ".$id." pull-".$align." ".trim($style)."'>";
	$accordion .= parse_shortcode(str_replace(array("<br/>", "<br>", "<br />"), " ", $content)); 
	$accordion .= "</ul>";
	
	JHtml::stylesheet(JUri::base()."plugins/system/ytshortcodes/shortcodes/accordion/css/accordion.css");
	
	$css ='';
	if($style != 'line' && $color_background_active =="yes"){
		$css .= 'ul.yt-accordion.'.$id.'{width:'.$width.'%;}ul.yt-accordion.'.$id.' li.yt-accordion-group h3.accordion-heading.active{color: '.$color_active.' !important;background : '.$background_active.' !important;} ul.yt-accordion.'.$id.' li.yt-accordion-group .yt-accordion-inner.active{background : '.$background_active.' !important;} ul.yt-accordion.'.$id.' li.yt-accordion-group .active i{color: '.$color_active.' !important;}';
	}else{
		$css .= 'ul.yt-accordion.'.$id.'.line li.yt-accordion-group .yt-accordion-inner.active{
	border-top: '.$color_active.' 1px solid !important;	} ul.yt-accordion.'.$id.' li.yt-accordion-group h3.accordion-heading.active{color: '.$color_active.' !important;} ul.yt-accordion.'.$id.' li.yt-accordion-group .active i{color: '.$color_active.' !important;}';
	}
	$doc = JFactory::getDocument();
	$doc->addStyleDeclaration($css);
	return $accordion;
}	
?>