Your IP : 216.73.216.231


Current Path : /home/digilove/www/41423/
Upload File :
Current File : /home/digilove/www/41423/com_bdthemes_shortcodes.tar

helpers/index.html000064400000000054152325656540010217 0ustar00<html><body bgcolor="#FFFFFF"></body></html>helpers/item.php000064400000014714152325656540007701 0ustar00<?php

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

/**
 * BDThemes Shortcode Ultimate 
 *
 * @package     Shortcode Ultimate Joomla 3.0
 * @subpackage  BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 *
 */
 
class bdthemes_shortcodesHelperItem
{

	function getCatTitle($catid)
	{
		// import com_content route helper
		require_once (JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_content'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'route.php');
		jimport('joomla.filesystem.file');
		// prepare an array
		$results = array();
		// generate the query
		$database = JFactory::getDBO();

		// SQL query for slides
		$cat_query = '
		SELECT 
			`c`.`id` AS `id`,
			`c`.`title` AS `title`
		FROM 
			#__categories AS `c` 
		WHERE 
			`c`.`id` IN ('.$catid.')
		;';

		// running query
		$database->setQuery($cat_query);
		// if results exists
		if( $datas = $database->loadObjectList() ) {
			// parsing data
			foreach($datas as $item) {

				// array with prepared image
			 	$results[$item->id] = array(
					'id' => $item->id,
					'title' => $item->title
				);
			}
		}
		// return the results
		return $results;
	}
    
	// getData function
	function getData($id) {
		// import com_content route helper
		require_once (JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_content'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'route.php');
		jimport('joomla.filesystem.file');
		// prepare an array
		$results = array();
		// generate the query
		$database = JFactory::getDBO();
		// SQL query for slides
		$query = '
		SELECT 
			`c`.`id` AS `id`,
			`c`.`catid` AS `cid`,
			`c`.`hits` AS `hits`,
			`c`.`images` AS `images`,
			`c`.`state` AS `state`,
			`c`.`title` AS `title`,
			`c`.`created` AS `created`,
			`c`.`introtext` AS `introtext` 
		FROM 
			#__content AS `c` 
		WHERE 
			`c`.`id` IN ('.$id.')
		;';



		// running query
		$database->setQuery($query);
		// if results exists
		if( $datas = $database->loadObjectList() ) {
			// parsing data
			foreach($datas as $item) {

				//$item->image = json_decode($item->images, true)['image_intro'];
				$images  = json_decode($item->images);

				if (isset($images->image_fulltext)) {
					$images = htmlspecialchars($images->image_fulltext);
				} else {
					$images = '';
				}
				
				if ($item->state == 1) {
					$cat1 = bdthemes_shortcodesHelperItem::getCatTitle($item->cid);
					$cat = $cat1[$item->cid]['title'];
					// array with prepared image
				 	$results[$item->id] = array(
						'id'        => $item->id,
						'cid'       => $item->cid,
						'category'  => $cat,
						'hits'      => $item->hits,
						'image'     => $images,
						'title'     => $item->title,
						'introtext' => $item->introtext,
						'created'   => $item->created,
						'link'      => JRoute::_(ContentHelperRoute::getArticleRoute($item->id, $item->cid))
					);
				} else {
					return false;
				}
			}
		}
		// return the results
		return $results;
	}
    
	function getk2CatTitle($catid) {
    	//
    	jimport('joomla.filesystem.file');
    	require_once (JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_k2'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'route.php');
		// prepare an array
		$results = array();
		// generate the query
		$database = JFactory::getDBO();
		// SQL query for slides
		$query = '
		SELECT 
			`c`.`id` AS `id`,
			`c`.`name` AS `name`,
			`c`.`published` AS `published`
		FROM 
			#__k2_categories AS `c`
		WHERE 
			`c`.`id` IN ('.$catid.')
		;';

		// running query
		$database->setQuery($query);
		// if results exists
		if( $datas = $database->loadObjectList() ) {
			// parsing data
			foreach($datas as $item) {

				// array with prepared image
			 	$results[$item->id] = array(
					'id'        => $item->id,
					'title'     => $item->name,
					'published' => $item->published,
				);
			}
		}
		// return the results
		return $results;
	}//end getItems
    
	function getDataK2($id) {
    	//
    	jimport('joomla.filesystem.file');
    	require_once (JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_k2'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'route.php');
		// prepare an array
		$results = array();
		// generate the query
		$database = JFactory::getDBO();
		// SQL query for slides
		$query = '
		SELECT 
			`c`.`id` AS `id`,
			`c`.`catid` AS `cid`,
			`c`.`created_by` AS `created_by`,
			`c`.`title` AS `title`,
			`c`.`hits` AS `hits`,
			`c`.`published` AS `published`,
			`c`.`created` AS `created`,
			`c`.`introtext` AS `introtext`,
			`c`.`fulltext` AS `fulltext`,
			`c`.alias AS `alias`,
			`cats`.alias AS `cat_alias`
		FROM 
			#__k2_items AS `c` 
			LEFT JOIN 
					#__k2_categories AS `cats`
					ON cats.id = `c`.`id` 
		WHERE 
			`c`.`id` IN ('.$id.')
		;';



		// running query
		$database->setQuery($query);
		// if results exists
		if( $datas = $database->loadObjectList() ) {
			// parsing data
			foreach($datas as $item) {


				if (JFile::exists(JPATH_SITE.DIRECTORY_SEPARATOR.'media'.DIRECTORY_SEPARATOR.'k2'.DIRECTORY_SEPARATOR.'items'.DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR.md5("Image".$item->id).'_XL.jpg'))
				{
					$item->image_large = JURI::base().'media/k2/items/cache/'.md5("Image".$item->id).'_XL.jpg';
				} else {
					$item->image_large = '';
				}
				
				// array with prepared image
				if ($item->published == 1) {
					$cat1 = bdthemes_shortcodesHelperItem::getk2CatTitle($item->cid);
					$cat = $cat1[$item->cid]['title'];
				 	$results[$item->id] = array(
						'id'         => $item->id,
						'cid'        => $item->cid,
						'created_by' => $item->created_by,
						'category'   => $cat,
						'hits'       => $item->hits,
						'image'      => $item->image_large,
						'title'      => $item->title,
						'introtext'  => $item->introtext,
						'fulltext'   => $item->fulltext,
						'created'    => $item->created,
						'link'       => JRoute::_(K2HelperRoute::getItemRoute($item->id.':'.urlencode($item->alias), $item->cid.':'.urlencode($item->cat_alias)))
					);
				} else {
					return false;
				}
			}
		}
		// return the results
		return $results;
	}//end getItems

} // END

?>helpers/shortcode.php000064400000001160152325656540010724 0ustar00<?php

/**
 * BDThemes Shortcode Ultimate 
 *
 * @package     Shortcode Ultimate Joomla 3.0
 * @subpackage  BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 *
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die;

jimport('joomla.application.component.view');
jimport('joomla.application.component.controller');

class JMasterViewSU extends JViewLegacy {}
class JControllerSU extends JControllerLegacy {}


?>views/config/tmpl/ajax_config.php000064400000002236152325656540013123 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 * @package		Shortcode Ultimate Joomla 3.0
 * @subpackage	BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 */

defined('_JEXEC') or die;

require_once BDT_SU_CONFIG . '/inc/tools.php';
require_once BDT_SU_CONFIG . '/inc/wp_override.php';
require_once BDT_SU_CONFIG . '/data.php';
require_once BDT_SU_CONFIG . '/generator.php';
require_once BDT_SU_CONFIG . '/inc/generator-views.php';


$generator = new Su_Generator();
$action = $_REQUEST["action"];

switch ($action) {
	case 'su_generator_settings':
		$generator->settings();
		break;
	case 'su_generator_add_preset':
		$generator->ajax_add_preset();
	 exit;
		break;
	case 'su_generator_preview':
		$generator->preview();
		break;
	case 'su_generator_show_shortcode':
		$generator->show_shortcode();
		break;
	case 'su_generator_get_icons':
		$generator->ajax_get_icons();
		break;
	case 'su_generator_get_licons':
		$generator->ajax_get_licons();
		break;
	default :
		break;
}views/config/tmpl/default.php000064400000013046152325656540012300 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 * @package     Shortcode Ultimate Joomla 3.0
 * @subpackage  BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 */

defined('_JEXEC') or die;

$doc = JFactory::getDocument();
$doc->addStyleSheet(BDT_SU_URI . '/css/generator.css');
$doc->addStyleSheet(BDT_SU_URI . '/css/simpleslider.css');
$doc->addStyleSheet(BDT_SU_URI . '/css/farbtastic-rtl.min.css');
$doc->addStyleSheet(BDT_SU_URI . '/css/farbtastic.css');
$doc->addStyleSheet(BDT_SU_URI . '/css/linea.css');


JHtml::_('bootstrap.framework');
JHtml::_('jquery.ui', array('core', 'sortable'));
$doc->addScript(BDT_SU_URI . '/js/simpleslider.js');
$doc->addScript(BDT_SU_URI . '/js/farbtastic.js');
$doc->addScript(BDT_SU_URI . '/js/generator.js');
JHtml::_('behavior.modal');


$doc->addScriptDeclaration('
    function appendHtml(targetC, htmldata) {
        var theDiv = document.getElementById(targetC);
        theDiv.innerHTML = theDiv.innerHTML + htmldata;
    }

    function jInsertFieldValue(value,id) {
        if(id == "su-generator-attr-source") {
     
            var old_id = document.getElementById(id).value;
            if (old_id != "none") {
                document.getElementById(id).value = document.getElementById(id).value + ","  + value;
            } else {
                var theDiv = document.getElementById("su-generator-attr-image").innerHTML ="";
                document.getElementById(id).value = "media: "  + value;
            }
            value1 =  \'<span data-id="\' + value + \'" title="\' + this.title + \'"><img src="'.JUri::root().'\' + value + \'" alt="" /><i class="fa fa-times"></i></span>\';
            appendHtml( "su-generator-attr-image",value1);
            console.log(value1);
            jQuery("#"+id).trigger(\'keyup\');

        } else {
            var old_id = document.getElementById(id).value;
            if (old_id != id) {
                document.getElementById(id).value = value;
            }
            jQuery("#"+id).trigger(\'keyup\');
        }
    }
');

$doc->addScriptDeclaration('
    var ajaxurl      = "' . ('index.php?option=com_bdthemes_shortcodes&view=config&layout=ajax_config&e_name='.$_REQUEST['e_name']) . '"; 
    var ajaxurl_prev = "' . ('index.php?option=com_bdthemes_shortcodes&view=config&layout=ajax_config&layout=preview') . '"; 
');
?>

<div id="su-generator-wrap" style="display:block">
    <div id="su-generator">
        <div id="su-generator-header">
            <div class="su-search-wrapper">
                <a href="http://goo.gl/BCVIN6" target="_blank" title="<?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_NEED_HELP_DESC') ?>" class="su-help-link"><?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_NEED_HELP') ?></a>            
                <a href="<?php echo JUri::base().'index.php?option=com_bdthemes_shortcodes&view=config&layout=generate_html&tmpl=component' ?>" target="_blank" style="right: 85px" title="<?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CHEATSHEET_DESC') ?>" class="su-help-link"><?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CHEATSHEET') ?></a>
                <input type="text" name="su_generator_search" id="su-generator-search" value="" placeholder="<?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SEARCH_DESC') ?>" />
                <span class="su-search-hints"><?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SEARCH_HINTS'); ?></span>
            </div>
            <div id="su-generator-filter">
                <strong><?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FILTER_DESC') ?></strong>
                <?php
                foreach ((array) Su_Data::groups() as $group => $label)
                    echo '<a href="#" data-filter="' . $group . '">' . $label . '</a>';
                ?>
            </div>
            <div id="su-generator-choices" class="su-generator-clearfix">
                <?php
                // Choices loop
                foreach ((array) Su_Data::shortcodes() as $name => $shortcode) {
                    $icon = ( isset($shortcode['icon']) ) ? $shortcode['icon'] : 'puzzle-piece';
                    $badge = (isset($shortcode['badge'])) ? '<strong class="sug-badge badge-'.strtolower($shortcode['badge']).'">'.JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODE_'.$shortcode['badge']).'</strong>' : '';
                    $shortcode['name'] = ( isset($shortcode['name']) ) ? $shortcode['name'] : $name;
                    $visible = isset($shortcode['visible']) ? $shortcode['visible'] : true;
                    if ($visible==true) {
                        echo '<span data-name="' . $shortcode['name'] . '" data-shortcode="' . $name . '" title="' . ( $shortcode['desc'] ) . '" data-desc="' . ( $shortcode['desc'] ) . '" data-group="' . $shortcode['group'] . '">' . Su_Tools::icon($icon) . $shortcode['name'] .$badge . '</span>' . "\n";
                    }
                }
                ?>
            </div>
        </div>
        <input type="hidden" name="su-generator-selected" id="su-generator-selected" value="" />
        <input type="hidden" name="su-generator-url" id="su-generator-url" value="" />
        <input type="hidden" name="su-compatibility-mode-prefix" id="su-compatibility-mode-prefix" value="<?php echo su_compatibility_mode_prefix(); ?>" />
        <div id="su-generator-settings"></div>
        <div id="su-generator-result" style="display:none"></div>
    </div>
</div>views/config/tmpl/generate_html.php000064400000044326152325656540013477 0ustar00<?php

// Check to ensure this file is included in Joomla!
defined( '_JEXEC' ) or die( 'Restricted access' );

/**
 * BDThemes Shortcode Ultimate 
 *
 * @package     Shortcode Ultimate Joomla 3.0
 * @subpackage  BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 *
 */

JHtml::_('bootstrap.framework');

?>

<style type="text/css">
    body {
        font-family: sans-serif;
        margin: 0px;
        padding: 1em !important;
    }
    .content_wrappwer {
        margin-bottom: 1em;
    }
    #su-cheatsheet-print-head{
        margin-bottom: 15px;
        background: #f5f5f5;
        padding: 12px 20px;
        box-sizing: border-box;
        position: relative;
    }
    #su-cheatsheet-print-head h1{
        text-align: left;
        font-size: 20px;
        text-transform: uppercase;
    }
    #su-cheatsheet-print-head label {
        display: inline-block;
    }
    #su-cheatsheet-print-head .su-search {
        position: absolute;
        right: 20px;
        top: 20px;
    }
    #su-cheatsheet-print-head .su-search input {
        padding: 7px;
        border: 1px solid #ddd;
    }
    .shortcode_example{
        display: none;
    }
    #su-cheatsheet-screen ul{
        margin: 0;
    }
    #su-cheatsheet-screen li{
        margin-bottom: 0;
        border-bottom: 1px solid #E8E8E8;
        list-style: none;
    }
    #su-cheatsheet-screen .title{
        font-weight: bold;
        background: #F7F7F7;
        color: #4E4E4E;
        margin: 0;
        padding: 12px;
        font-size: 14px;
        cursor: pointer;
    }
    #su-cheatsheet-screen .title:hover {
        background:#f4f4f4;
        color: #000;
    }
    #su-cheatsheet-screen .title .su-shortcode-icon{
        margin-right: 10px;
        padding-right: 10px;
        border-right: 1px solid #e8e8e8;   
    }
    #su-cheatsheet-screen .title .su-shortcode-icon i{
        width: 1.28571429em;
        text-align: center;
    }
    #su-cheatsheet-screen table {
        width: 100%;
        margin: 0;
        border: solid 1px #ddd;
        background: #fff;
    }
    #su-cheatsheet-screen table thead {
        background: #f5f5f5;
    }
    #su-cheatsheet-screen table thead tr th,
    #su-cheatsheet-screen table thead tr td {
        padding: 0.8rem 1rem 0.8rem;
        color: #222;
        font-weight: bold;
    }
    #su-cheatsheet-screen table tfoot {
        background: #f5f5f5;
    }
    #su-cheatsheet-screen table tfoot tr th,
    #su-cheatsheet-screen table tfoot tr td {
        padding: 0.8rem 1rem 0.8rem;
        color: #222;
        font-weight: bold;
    }
    #su-cheatsheet-screen table tr th,
    #su-cheatsheet-screen table tr td {
        padding: 1em;
        color: #222;
        text-align: left;
    }
    #su-cheatsheet-screen table tr.even,
    #su-cheatsheet-screen table tr.alt,
    #su-cheatsheet-screen table tr:nth-of-type(even) {
        background: #f9f9f9;
    }
    #su-cheatsheet-screen table thead tr th,
    #su-cheatsheet-screen table tfoot tr th,
    #su-cheatsheet-screen table tfoot tr td,
    #su-cheatsheet-screen table tbody tr th,
    #su-cheatsheet-screen table tbody tr td,
    #su-cheatsheet-screen table tr td {
        display: table-cell;
        vertical-align: top;
    }

    #su-cheatsheet-screen table .su-shortcode-icon {
        display: inline-block;
        width: 24px;
        opacity: 0.5;
        filter: alpha(opacity=50);
    }
    #su-cheatsheet-screen table .su-shortcode-desc {
        font-size: 0.8em;
        color: #777;
        margin: 5px 0 0 0;
        font-style: normal;
    }

    #su-cheatsheet-screen table .su-shortcode-attribute {
        margin-top: 1.5em;
        color: #666;
    }
    #su-cheatsheet-screen table .su-shortcode-attribute:first-child { margin-top: 0; }
    #su-cheatsheet-screen table .su-shortcode-attribute p { 
        font-size: .9em; 
        line-height: 1.3em;
        background-color: #f5f5f5;
        padding: 5px 10px;
        margin: 0;
    }
    #su-cheatsheet-screen table .su-shortcode-attribute p:first-child { margin-top: 5px !important;}
    #su-cheatsheet-screen table .su-shortcode-attribute p:nth-child(odd) {
        background-color: #fff;
    }
    #su-cheatsheet-screen table .su-shortcode-attribute .su-atts-name {
        font-weight: bold;
        margin-bottom: 8px;
    }
    #su-cheatsheet-screen table .su-shortcode-attribute .su-atts-name,
    #su-cheatsheet-screen table .su-shortcode-attribute em {
        color: #000;
        font-style: normal;
    }
    #su-cheatsheet-screen table .su-shortcode-attribute .su-atts-name em {
        color: #666;
        font-weight: normal;
        font-style: normal;
    }
    #su-cheatsheet-screen table .code,#su-cheatsheet-screen table code {
        display: block;
        white-space: pre-wrap;
        font-family: monospace;
        max-width: 310px;
    }

    body.su-print-cheatsheet #su-cheatsheet-print { display: none; }


    .su-shortcode-attribute .su-atts-name pre {
        background: #FFECB2;
        padding: 0px 5px;
        font-size: 13px;
        font-weight: normal;
        margin: 0;
        display: inline-block;
    }

    code, kbd {
        padding: 10px;
        margin: 0 1px 10px;
        background: #eaeaea;
        background: rgba(0,0,0,.07);
        font-size: 13px;
    }
    .su-shortcode-note {
        background: rgba(52, 152, 219, 0.1);
        border: 2px solid rgba(52, 152, 219, 0.6);
        padding: 15px;
        margin: 10px 0;
        color: #000;
        font-size: 13px;
    }

</style>

<div class="content_wrappwer" id="result">
    <div id="su-cheatsheet-screen">
        <div>
            <div id="su-cheatsheet-print-head">
                <h1>Shortcodes Ultimate: Cheatsheet</h1>
                <div class="su-search">
                    <input id="search" value="" placeholder="Search Shortcode" size="30" autofocus />
                </div>
            </div>

        </div>
        <ul>
            <?php
            foreach ((array) Su_Data::shortcodes() as $name => $shortcode) {
                $visible = isset($shortcode['visible']) ? $shortcode['visible'] : true;
                if ($visible == FALSE) {
                    continue;
                }
                $ex_code = '[' . $name . ' ';

                $icon = ( isset($shortcode['icon']) ) ? $shortcode['icon'] : 'puzzle-piece';
                $shortcode['name'] = ( isset($shortcode['name']) ) ? $shortcode['name'] : $name;
                $attrs = @$shortcode["atts"];
                $content = @$shortcode["content"];
                ?>
                <li>
                    <p class="title"><span class="su-shortcode-icon"><?php echo Su_Tools::icon($icon) ?></span><?php echo $shortcode['name'] ?> 
                        <span style="display: none"><?php echo strtolower($shortcode['name']) ?></span></p>
                    <div class="shortcode_example">
                        <table>
                            <thead>
                                <tr>
                                    <th style="width: 18%">Shortcode</th>
                                    <th style="width: 49%">Attributes</th>
                                    <th style="width: 33%">Example code</th>
                                </tr>
                            </thead>
                            <tbody>                        
                                <tr>
                                    <td><span class="su-shortcode-icon"><?php echo Su_Tools::icon($icon) ?></span><?php echo $shortcode['name'] ?>
                                        <br><em class="su-shortcode-desc"><?php echo $shortcode['desc'] ?></em>
                                    </td>
                                    <td>
                                        <?php
                                        foreach ($attrs as $attr_key => $attr) {
                                            getAttr($attr, $attr_key, $ex_code);
                                            if (isset($attr["child"])) {
                                                foreach ($attr["child"] as $child_key => $child_attr) {
                                                    getAttr($child_attr, $child_key, $ex_code);
                                                }
                                            }
                                        }
                                        $ex_code = substr($ex_code, 0, -1);
                                        $ex_code .= ']';
                                        if (isset($shortcode["content"])):
                                            ?>
                                            <div class="su-shortcode-attribute">
                                                <div class="su-atts-name">Content - <pre>content</pre>
                                                </div>
                                                <p><em>Possible values:</em>Any Content Value!</p>
                                                <p><em>Default value:</em> <?php
                                                    $content = str_replace("__content_slide", "content_slide", $shortcode["content"]);
                                                    $ct = str_replace("%prefix_", "", $content);
                                                    echo $ct;
                                                    $ex_code.= $ct . '[/' . $name . ']';
                                                    ?> </p>
                                            </div>
                                        <?php endif;
                                        ?>
                                    </td>
                                    <td class="code"><code><?php echo $ex_code ?></code>
                                    </td>
                                </tr>

                            </tbody>
                        </table>
                    </div>
                </li>
                <?php
            }
            ?>
        </ul>
    </div>  
</div>

<?php

function getAttr($attr, $attr_key, &$ex_code) {
    ?>
    <div class="su-shortcode-attribute">
        <div class="su-atts-name"><?php echo $attr["name"] ?> - <pre><?php echo $attr_key ?></pre>
        </div>
        <p>                                
            <em>Possible values:</em>
            <?php
            switch (@$attr["type"]):
                case "select":
                    $df = null;
                    if (isset($attr["values"])):
                        foreach ($attr["values"] as $temp) {
                            $df = $temp;
                            echo $temp . ', ';
                        }

                    endif;
                    if (isset($attr["default"]) && trim($attr["default"]) != ""):
                        ?>
                    <p><em>Default value:</em>
                        <?php
                        if (isset($attr["values"][$attr["default"]])) {
                            echo $attr["values"][$attr["default"]];
                        } else {
                            echo $attr["default"];
                        }

                        $ex_code .= $attr_key . '="' . $attr["default"] . '" ';
                        ?>
                    </p>                                
                    <?php
                     else:
                        $ex_code .= $attr_key . '="'.$df.'" ';
                endif;
                break;
            case "number":
            case "slider":
                echo $attr["min"] . ' - ' . $attr['max'];
                if (isset($attr["default"])):
                    ?>
                    <p><em>Default value:</em>
                        <?php
                        echo $attr["default"];
                        $ex_code .= $attr_key . '="' . $attr["default"] . '" ';
                        ?>
                    </p>                                
                    <?php
                     else:                
                        $ex_code .= $attr_key . '="'.$attr["min"].'" ';                
                endif;

                break;
            case "bool":
                echo 'yes, no';

                if (isset($attr["default"])):
                    ?>
                    <p><em>Default value:</em>
                        <?php
                        echo $attr["default"];
                        $ex_code .= $attr_key . '="' . $attr["default"] . '" ';
                        ?>
                    </p>                                
                    <?php
                     else:                   
                        $ex_code .= $attr_key . '="yes" ';                
                endif;
                break;
            case "icon":
                echo 'icon: music, icon: envelope … full list';
                 if (isset($attr["default"]) && trim($attr["default"]) != ""):
                    ?>
                    <p><em>Default value:</em>
                        <?php
                        echo $attr["default"];
                        $ex_code .= $attr_key . '="' . $attr["default"] . '" ';
                        ?>
                    </p>                                
                    <?php
                     else:
                    $ex_code .= $attr_key . '="" '; 
                endif;
                               
                break;
            case "border":
                echo 'CSS supported border!';

                if (isset($attr["default"])):
                    ?>
                    <p><em>Default value:</em>
                        <?php
                        echo $attr["default"];
                        if (strpos($attr["default"], '0px') === 0) {
                            $default = str_replace('0', '1', $attr["default"]);
                        } else {
                            $default = str_replace('0', '1px', $attr["default"]);
                        }
                        $ex_code .= $attr_key . '="' . $default . '" ';
                        ?>
                    </p>                                
                    <?php
                endif;
                break;
            case "shadow":
                echo 'CSS supporte shadow!';
                if (isset($attr["default"])):
                    ?>
                    <p><em>Default value:</em>
                        <?php
                        echo $attr["default"];
                        $ex_code .= $attr_key . '="0px 1px 2px #eee" ';
                        ?>
                    </p>                                
                    <?php
                     else:
                
                        $ex_code .= $attr_key . '="2px 1px 2px #333" ';
                
                endif;
                break;
            case "color":
                echo '#RGB and rgba() colors';
                if (isset($attr["default"])):
                    ?>
                    <p><em>Default value:</em>
                        <?php
                        echo $attr["default"];
                        $ex_code .= $attr_key . '="' . $attr["default"] . '" ';
                        ?>
                    </p>                                
                    <?php
                     else:                
                    $ex_code .= $attr_key . '="#333333" ';
                
                endif;
                break;
            case "article_source":
                echo 'Images from media manager or article or K2 category item.';
                if (isset($attr["default"])):
                    ?>
                    <p><em>Default value:</em>
                        <?php
                        echo $attr["default"];
                        $ex_code .= $attr_key . '="" ';
                        ?>
                    </p>                                
                    <?php else:                
                    $ex_code .= $attr_key . '="category: 2" ';                
                endif;
                break;
            case "upload":
                echo 'Url From Meida!';
                if (isset($attr["default"])):
                    ?>
                    <p><em>Default value:</em>
                        <?php
                        echo $attr["default"];
                        $ex_code .= $attr_key . '="' . $attr["default"] . '" ';
                        ?>
                    </p>                                
                    <?php
                    else:                
                    $ex_code .= $attr_key . '="" ';
                
                endif;
                break;
            default:
                ?>
                Any Custom Value!

                <?php
                if (isset($attr["default"]) && trim($attr["default"]) != ""):
                    ?>
                    <p><em>Default value:</em>
                        <?php
                        echo $attr["default"];
                        $ex_code .= $attr_key . '="' . $attr["default"] . '" ';
                        ?>
                    </p>    
                    <?php
                else:
                    $ex_code .= $attr_key . '="" ';
                 
                endif;
                ?>
            <?php
        endswitch;
        ?>
    </p>

    </div>

    <?php
}

?>

<script>
    jQuery(document).ready(function () {
        jQuery('li .title').click(function (e) {
            e.preventDefault(); // disable text selection
            jQuery('.shortcode_example').slideUp(500);
            var container = jQuery(this).parent().find('.shortcode_example');
            if (container.hasClass('active')) {
                container.removeClass('active')
                return;
            }
            jQuery('.shortcode_example').removeClass('active');
            container.slideToggle(500).addClass('active');
            return false; // disable text selection
        });
        jQuery('#search').keyup(function (e) {
            var s = jQuery(this).val().trim();
            if (s === '') {
                jQuery('#result li').show();
                return true;
            }
            jQuery('#result ul .title:not(:contains(' + s.toLocaleLowerCase() + '))').parent().hide();
            jQuery('#result ul .title:contains(' + s.toLocaleLowerCase() + ')').parent().show();
            return true;
        });

    }); // end document ready
</script>views/config/tmpl/index.html000064400000000000152325656540012122 0ustar00views/config/tmpl/preview.php000064400000000642152325656540012333 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 * @package		Shortcode Ultimate Joomla 3.0
 * @subpackage	BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 */


defined('_JEXEC') or die;


echo do_shortcode($action = $_REQUEST["shortcode"]);

views/config/index.html000064400000000054152325656540011157 0ustar00<html><body bgcolor="#FFFFFF"></body></html>views/config/view.html.php000064400000001254152325656540011613 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 *
 * @package		Joomla
 * @subpackage	BDThemes Schortcodes Component
 * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @author BDThemes
 * @author url http://bdthemes.com
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class Bdthemes_shortcodesViewConfig extends JMasterViewSU {    
    /**
     * the main disply function
     */
    public function display($tpl = null) {
        parent::display($tpl);
    }
}

views/download/index.html000064400000000054152325656540011521 0ustar00<html><body bgcolor="#FFFFFF"></body></html>views/download/view.html.php000064400000002016152325656540012152 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 *
 * @package		Joomla
 * @subpackage	BDThemes Schortcodes Component
 * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @author BDThemes
 * @author url http://bdthemes.com
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class Bdthemes_shortcodesViewDownload extends JMasterViewSU {

    /**
     * the main disply function
     */
    public function display($tpl = null) {

        $jinput = JFactory::getApplication()->input;
        /*
         * download file
         */
        if ( ($jinput->get->get('id', -1) != -1) ||  ($jinput->post->get('download', -1) != -1)) {
            require_once( BDT_SU_ROOT . DIRECTORY_SEPARATOR . 'shortcodes' . DIRECTORY_SEPARATOR . 'file_download' . DIRECTORY_SEPARATOR . 'helper' . DIRECTORY_SEPARATOR . 'download.php');
        }
        exit;
    }

}
views/item/tmpl/default.php000064400000013174152325656540011773 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 * @package     Shortcode Ultimate Joomla 3.0
 * @subpackage  BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 */

defined('_JEXEC') or die;

require_once BDT_SU_CONFIG . '/inc/tools.php';

function load_item($atts = null) {

	$atts = su_shortcode_atts(array(
	    'source'                => (isset($_REQUEST["source"]))?$_REQUEST["source"]:null,
	    'layout'                => (isset($_REQUEST["layout"]))?$_REQUEST["layout"]:null,
	    'item_link'             => (isset($_REQUEST["item_link"]))?$_REQUEST["item_link"]:null,
	    'limit'                 => (isset($_REQUEST["show_more_item"]))? ($_REQUEST["show_more_item"] + 1 ):null,
	    'order'                 => (isset($_REQUEST["order"]))?$_REQUEST["order"]:null,
	    'order_by'              => (isset($_REQUEST["order_by"]))?$_REQUEST["order_by"]:null,
	    'thumb_resize'          => (isset($_REQUEST["thumb_resize"]))?$_REQUEST["thumb_resize"]:null,
	    'thumb_width'           => (isset($_REQUEST["thumb_width"]))?$_REQUEST["thumb_width"]:null,
	    'thumb_height'          => (isset($_REQUEST["thumb_height"]))?$_REQUEST["thumb_height"]:null,
	    'show_more_item'		=> (isset($_REQUEST["show_more_item"]))?$_REQUEST["show_more_item"]:null,
	    'include_article_image' => (isset($_REQUEST["include_article_image"]))?$_REQUEST["include_article_image"]:null,
		'popup_image'           => (isset($_REQUEST["popup_image"]))?$_REQUEST["popup_image"]:null,
		'popup_category' 		=> (isset($_REQUEST["popup_category"]))?$_REQUEST["popup_category"]:null,
		'popup_date' 		    => (isset($_REQUEST["popup_date"]))?$_REQUEST["popup_date"]:null,
		'popup_detail_button'   => (isset($_REQUEST["popup_detail_button"]))?$_REQUEST["popup_detail_button"]:null,
	    'offset'				=> (isset($_REQUEST["offset"]))?$_REQUEST["offset"]:null
	    ), $atts);
	
	$slides     = (array) Su_Tools::get_slides($atts);
	$return     = array();
	$item_block = $atts["offset"];
        /** 12/11 */
	$block  = (isset($_REQUEST["numberOfClicks"]))? $_REQUEST["numberOfClicks"] : 1;
        /** end 12/11 */
	if (preg_match('/k2-category/', $atts['source'])) {
	    $source = 'k2';
	} else {
	    $source = 'article';
	}

	if ($atts['item_link'] === 'inline') {
        $item_link_class = 'cbp-singlePageInline';
        $page = 'data-url="'.JRoute::_('index.php?option=com_bdthemes_shortcodes&amp;view=item&amp;layout=inline').'"';
    } elseif ($atts['item_link'] === 'single') {
        $item_link_class = 'cbp-singlePage';
        $page = 'data-url="'.JRoute::_('index.php?option=com_bdthemes_shortcodes&amp;view=item&amp;layout=single').'"';
    } elseif ($atts['item_link'] === 'link') {
        $item_link_class = 'cbp-linkPage';
        $page = '';
    } else {
        $item_link_class = 'cbp-linkNoPage';
        $page = '';
    }

	$thumb_resize_check = ($atts['thumb_resize'] === 'yes' and ($atts['layout'] != 'mosaic' or $atts['layout'] != 'masonry')) ? true : false;
	$return[]           = '<div class="cbp-loadMore-block'.$block.'">';
	$size               =    sizeof($slides);
	$limit              = $atts["limit"];

	foreach ((array) $slides as $slide) {
            if($limit-- == 1){
                break;
            }
            $size--;
	    $thumb_url = su_image_resize($slide['image'], $atts['thumb_width'], $atts['thumb_height'], $thumb_resize_check, 95);

	    // Title condition 
	    if($slide['title'])
	        $title = stripslashes($slide['title']);                

		$category  = su_title_class($slide['category']);
		$item_link = ($atts['item_link'] != 'no') ? JRoute::_($slide['link']) : 'javascript:void(0);';

//	    if($item_block%$atts['show_more_item']==0) {
//	    	$return[] = $item_block > 0 ? "</div>" : ""; // close div if it's not the first
//	    	$block++;
//	    }

	   $return[] = '<div class="cbp-item '.$category.'">
                        <a data-id="'.$slide['id'].'" data-source = "'.$source.'" data-include_article_image = "'.$atts['include_article_image'].'" data-popup_image = "'.$atts['popup_image'].'" data-popup_category = "'.$atts['popup_category'].'" data-popup_date = "'.$atts['popup_date'].'" href="'.$item_link.'" '.$page.'  class="cbp-caption '.$item_link_class.'" data-title="'.$title.' // '.$slide['category'].'">
                           <div class="cbp-caption-defaultWrap">';
                               if (isset($thumb_url['url'])) {
                                   $return[] = '<img src="'. image_media($thumb_url['url']) .'" alt="'. $title .'" width="'. $atts['thumb_width'] .'" height="'. $atts['thumb_height'] .'">';
                               } else {
                                   $return[] = '<img src="'. image_media(BDT_SU_IMG.'no-image.svg') .'" alt="'. $title .'">';
                               }
       			$return[] = '</div>
                           <div class="cbp-caption-activeWrap">
                               <div class="cbp-l-caption-alignLeft">
                                   <div class="cbp-l-caption-body">
                                       <div class="cbp-l-caption-title">'. $title .'</div>
                                       <div class="cbp-l-caption-desc">'.$slide['category'].'</div>
                                   </div>
                               </div>
                           </div>
                       </a>
                   </div>';

		$item_block++;
                
	}
    $return[] = '</div>';
    if($size > 0)
        $return[] = '<div class="cbp-loadMore-block'.($block+1).'"> </div>';

	return implode("\n", $return);
}

echo load_item();

die();

?>views/item/tmpl/index.html000064400000000037152325656540011625 0ustar00<!DOCTYPE html><title></title>
views/item/tmpl/inline.php000064400000007242152325656540011624 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 * @package     Shortcode Ultimate Joomla 3.0
 * @subpackage  BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 */

defined('_JEXEC') or die;

require_once BDT_SU_CONFIG . '/inc/tools.php';

function item_inline($atts = null) {

	$atts = su_shortcode_atts(array(
		'source'                => (isset($_REQUEST["source"]))?$_REQUEST["source"]:null,
		'id'                    => (isset($_REQUEST["id"]))?$_REQUEST["id"]:null,
		'include_article_image' => (isset($_REQUEST["include_article_image"]))?$_REQUEST["include_article_image"]:null,
		'popup_category' 		=> (isset($_REQUEST["popup_category"]))?$_REQUEST["popup_category"]:null,
		'popup_date' 			=> (isset($_REQUEST["popup_date"]))?$_REQUEST["popup_date"]:null,
		'popup_detail_button'   => (isset($_REQUEST["popup_detail_button"]))?$_REQUEST["popup_detail_button"]:null,
		'popup_image'           => (isset($_REQUEST["popup_image"]))?$_REQUEST["popup_image"]:null
	    ), $atts);
	
	$data = new bdthemes_shortcodesHelperItem();

	if ($atts['source'] === 'k2') {
		$slides = $data->getDataK2($_REQUEST["id"]);   
	} elseif( $atts['source'] === 'article') {
		$slides = $data->getData($_REQUEST["id"]);
	} else {
		$slides ='';
	}

	$return = array();

	foreach ((array) $slides as $slide) {
		$category   = ($atts['popup_category'] === 'yes') ? '<div class="cpb-category">' . $slide['category'] . '</div>' : '';
		$date       = ($atts['popup_date'] === 'yes') ? '<div class="cpb-date">' . JHTML::_('date', $slide['created'], JText::_('DATE_FORMAT_LC3')) . '</div>' : '';
		$textImg    = ($atts['include_article_image'] === 'yes') ? su_all_images(@$slide['fulltext']) : null;
		$alignClass = ($atts['popup_image'] === 'yes') ? 'cbp-l-inline-right' : '';
	    $return[] = '
	        <div>
	            <div class="cbp-l-inline">';

		            if ($atts['popup_image'] === 'yes') {
		                $return[] = '<div class="cbp-l-inline-left">';
			                if ($textImg != null) {
			                    $return[] ='
			                        <div class="cbp-slider">
			                            <ul class="cbp-slider-wrap">
			                                <li class="cbp-slider-item"><img src="'.image_media($slide['image']).'" alt="'.$slide['title'].'"></li>';
			                                foreach ($textImg as $img) {
			                                    $return[] = '<li class="cbp-slider-item"><img src="'.image_media($img).'" alt="'.$slide['title'].'"></li>';
			                                }
			                        $return[] ='</ul>
			                    </div>';
			                } 
			                else {
			                    $return[] ='<img src="'.image_media($slide['image']).'" alt="'.$slide['title'].'">';
			                }
	                	$return[] = '</div>';
		            }
		            $return[] = '
	                <div class="'.$alignClass.'">
	                    <div class="cbp-l-inline-title">'. $slide['title'] .'</div>
	                    <div class="cbp-l-inline-subtitle">' .$category.$date.'</div>
	                    <div class="cbp-l-inline-desc">'.su_do_shortcode($slide['introtext']).'</div>';
	                    if ($atts['popup_detail_button'] === 'yes') {
	                		$return[] ='<a href="'.$slide['link'].'" class="cbp-l-inline-view">'.JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SHOWCASE_VIEWDETAILS').'</a>';
	                	}
	                $return[] ='
	                </div>
	            </div>
	        </div>';
	}

	return implode('', $return);
}

echo item_inline();


die();

?>

views/item/tmpl/single.php000064400000011454152325656540011627 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 * @package     Shortcode Ultimate Joomla 3.0
 * @subpackage  BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 */

defined('_JEXEC') or die;

require_once BDT_SU_CONFIG . '/inc/tools.php';

function item_single($atts = null) {

	$atts = su_shortcode_atts(array(
		'source'                => (isset($_REQUEST["source"]))?$_REQUEST["source"]:null,
		'id'                    => (isset($_REQUEST["id"]))?$_REQUEST["id"]:null,
		'include_article_image' => (isset($_REQUEST["include_article_image"]))?$_REQUEST["include_article_image"]:null,
		'popup_category' 		=> (isset($_REQUEST["popup_category"]))?$_REQUEST["popup_category"]:null,
		'popup_date' 			=> (isset($_REQUEST["popup_date"]))?$_REQUEST["popup_date"]:null,
		'popup_image'           => (isset($_REQUEST["popup_image"]))?$_REQUEST["popup_image"]:null,
		'popup_detail_button'   => (isset($_REQUEST["popup_detail_button"]))?$_REQUEST["popup_detail_button"]:null
	    ), $atts);
	
	$data = new bdthemes_shortcodesHelperItem();

	if ($atts['source'] === 'k2') {
		$slides = $data->getDataK2($_REQUEST["id"]);   
	} elseif( $atts['source'] === 'article') {
		$slides = $data->getData($_REQUEST["id"]);
	} else {
		$slides ='';
	}

	$return = array();

	foreach ((array) $slides as $slide) {
		$category   = ($atts['popup_category'] === 'yes') ? '<div class="cpb-category">' . $slide['category'] . '</div>' : '';
		$date       = ($atts['popup_date'] === 'yes') ? '<div class="cpb-date">' . JHTML::_('date', $slide['created'], JText::_('DATE_FORMAT_LC3')) . '</div>' : '';
		$textImg    = ($atts['include_article_image'] === 'yes') ? su_all_images(@$slide['fulltext']) : null;
		$alignClass = ($atts['popup_image'] === 'yes') ? 'cbp-l-inline-right' : '';
		
	    $return[] = '
	        <div class="su-sc-single-item">
				<div class="cbp-l-project-title">'.$slide['title'].'</div>
				<div class="cbp-l-project-subtitle">'.$category.$date.'</div>';


					if ($atts['popup_image'] === 'yes') {
		                if ($textImg != null) {
		                    $return[] ='
		                        <div class="cbp-slider">
		                            <ul class="cbp-slider-wrap">
		                                <li class="cbp-slider-item"><img src="'.image_media($slide['image']).'" alt="'.$slide['title'].'"></li>';
		                                foreach ($textImg as $img) {
		                                    $return[] = '<li class="cbp-slider-item"><img src="'.image_media($img).'" alt="'.$slide['title'].'"></li>';
		                                }
		                        $return[] ='</ul>
		                    </div>';
		                } 
		                else {
		                    $return[] ='<img src="'.image_media($slide['image']).'" alt="'.$slide['title'].'">';
		                }
		            }


				 $return[] ='<div class="cbp-l-project-container">
							     <div class="cbp-project-desc">
							         <div class="cbp-l-project-desc-title"><span>'.JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SHOWCASE_PD').'</span></div>
							         <div class="cbp-l-project-desc-text">
											'.su_do_shortcode($slide['introtext']).'
							         </div>';


				$return[] ='	         <br>
							         <div class="cbp-l-project-social-wrapper">
							             <iframe src="http://www.facebook.com/plugins/like.php?href='.JUri::root().$slide['link'].'&amp;layout=button_count&amp;show_faces=false&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" height="25"></iframe>
							         </div>
							         
							         <div class="cbp-l-project-social-wrapper">
							             <iframe src="https://platform.twitter.com/widgets/tweet_button.html?url='.JUri::root().$slide['link'].'&text=Check%20out%20this%20site" height="25" title="Twitter Tweet Button" style="border: 0; overflow: hidden;"></iframe>
							         </div>
							         
							         <div class="cbp-l-project-social-wrapper" style="width: 71px">
							             <iframe src="https://plusone.google.com/_/+1/fastbutton?bsv&amp;size=medium&amp;hl=en-US&amp;url='.JUri::root().$slide['link'].'" allowtransparency="true" frameborder="0" scrolling="no" title="+1" height="25" style="border: 0; overflow: hidden;"></iframe>
							         </div>';
				if ($atts['popup_detail_button'] === 'yes') {
					$return[] ='	<a href="'.$slide['link'].'" class="cbp-l-project-details-visit">'.JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SHOWCASE_VIEWDETAILS').'</a>';
				}
							         

		$return[] ='		<hr class="su-horizontal-line"><br><br><br>         
					    </div>
					</div>';

	    $return[] = '</div>';
	}

	return implode('', $return);

}

echo item_single();


die();

?>

views/item/index.html000064400000000037152325656540010651 0ustar00<!DOCTYPE html><title></title>
views/item/view.html.php000064400000001215152325656540011301 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 *
 * @package		Joomla
 * @subpackage	BDThemes Schortcodes Component
 * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @author BDThemes
 * @author url http://bdthemes.com
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class Bdthemes_shortcodesViewItem extends JMasterViewSU {    
    /**
     * the main disply function
     */
    public function display($tpl = null) {
        parent::display($tpl);
    }
}views/like/index.html000064400000000054152325656540010636 0ustar00<html><body bgcolor="#FFFFFF"></body></html>views/like/view.html.php000064400000001771152325656540011276 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 *
 * @package		Joomla
 * @subpackage	BDThemes Schortcodes Component
 * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @author BDThemes
 * @author url http://bdthemes.com
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class Bdthemes_shortcodesViewLike extends JMasterViewSU {

    /**
     * the main disply function
     */
    public function display($tpl = null) {

        $jinput = JFactory::getApplication()->input;
         
        /*
         * like file
         */
        if ($jinput->post->get('id',-1) != -1) {
            require_once( BDT_SU_ROOT . DIRECTORY_SEPARATOR . 'shortcodes' . DIRECTORY_SEPARATOR . 'file_download' . DIRECTORY_SEPARATOR . 'helper' . DIRECTORY_SEPARATOR . 'like.php');
        }
        exit;
        parent::display($tpl);
    }

}
views/portfolio/tmpl/default.php000064400000015661152325656540013055 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 * @package     Shortcode Ultimate Joomla 3.0
 * @subpackage  BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 */

defined('_JEXEC') or die;

require_once BDT_SU_CONFIG . '/inc/tools.php';

function portfolio_item($atts = null) {

    $atts = su_shortcode_atts(array(
        'source'                => (isset($_REQUEST["source"]))?$_REQUEST["source"]:null,
        'style'                 => (isset($_REQUEST["style"]))?$_REQUEST["style"]:null,
        'layout'                => (isset($_REQUEST["layout"]))?$_REQUEST["layout"]:null,
        'limit'                 => (isset($_REQUEST["show_more_item"]))? ($_REQUEST["show_more_item"] + 1 ):null,
        'order'                 => (isset($_REQUEST["order"]))?$_REQUEST["order"]:null,
        'order_by'              => (isset($_REQUEST["order_by"]))?$_REQUEST["order_by"]:null,
        'thumb_resize'          => (isset($_REQUEST["thumb_resize"]))?$_REQUEST["thumb_resize"]:null,
        'thumb_width'           => (isset($_REQUEST["thumb_width"]))?$_REQUEST["thumb_width"]:null,
        'thumb_height'          => (isset($_REQUEST["thumb_height"]))?$_REQUEST["thumb_height"]:null,
        'show_more_item'        => (isset($_REQUEST["show_more_item"]))?$_REQUEST["show_more_item"]:null,
        'show_zoom'             => (isset($_REQUEST["show_zoom"]))?$_REQUEST["show_zoom"]:null,
        'show_link'             => (isset($_REQUEST["show_link"]))?$_REQUEST["show_link"]:null,
        'include_article_image' => (isset($_REQUEST["include_article_image"]))?$_REQUEST["include_article_image"]:null,
        'offset'                => (isset($_REQUEST["offset"]))?$_REQUEST["offset"]:null
        ), $atts);
    
    $slides             = (array) Su_Tools::get_slides($atts);
    $return             = array();
    $item_block         = $atts["offset"];
    $block              = (isset($_REQUEST["numberOfClicks"]))? $_REQUEST["numberOfClicks"] : 1;
    $zoom_link_icon     = '';
    
    $thumb_resize_check = ($atts['thumb_resize'] === 'yes' and ($atts['layout'] != 'mosaic' or $atts['layout'] != 'masonry')) ? true : false;
    $size               =    sizeof($slides);
    $limit              = $atts["limit"];
        
        $return[] = '<div class="cbp-loadMore-block'.$block.'">';
    foreach ((array) $slides as $slide) {
            if($limit-- == 1){
                break;
            }
            $size--;
        // Title condition 
        if($slide['title'])
            $title = stripslashes($slide['title']);                

        $category = su_title_class($slide['category']);
        $item_link = JRoute::_($slide['link']);

        if ($atts['show_zoom']==='yes' or $atts['show_link']==='yes') {
            $zoom_link_icon = '<div class="sup-link-wrap">';
            if ($atts['show_zoom']==='yes') {
                $zoom_link_icon .= '<a href="'.image_media($slide['image']).'" class="su-lightbox-item sup-zoom" title="'. $title .'"></a>';
            }
            if ($atts['show_link']==='yes') {
                $zoom_link_icon .= '<a href="'.$item_link.'" class="sup-link" title="'. $title .'"></a>';
            }
            $zoom_link_icon .= '</div>';
        }

        if ($atts['style'] === '3') {
            $return[] = '<div class="cbp-item '.$category.'">
                <div class="cbp-caption">
                    <div class="sup-img-wrap">';
                        $return[] = su_portfolio_image($atts, $slide);
                $return[] = '</div>
                <div class="cbp-caption-activeWrap">
                    <div class="sup-desc-wrap">
                        <div class="sup-desc-inner">
                            <div class="sup-meta-wrap">
                                <a href="'.$item_link.'" class="sup-title"><h4>'. $title .'</h4></a>
                                <div class="sup-meta">'.$slide['category'].'</div>
                            </div>';
                            $return[] = $zoom_link_icon;
                        $return[] = '</div>
                    </div>
                </div>
                </div>
            </div>';
        }
        elseif ($atts['style'] === '9' || $atts['style'] === '10') {                  
            $return[] = '<div class="cbp-item '.$category.'">
                    <div class="sup-img-wrap">';
                        $return[] = su_portfolio_image($atts, $slide);
                        $return[] = $zoom_link_icon;
                $return[] = '</div>
                <div class="sup-desc-wrap">
                    <a href="'.$item_link.'" class="sup-title" rel="nofollow"><h4>'. $title .'</h4></a>
                    <div class="sup-meta">'.$slide['category'].'</div>
                </div>
            </div>';
        }
        elseif ($atts['style'] === '4' || $atts['style'] === '5' || $atts['style'] === '7') {
            $return[] = '<div class="cbp-item '.$category.'">
                <div class="cbp-caption">
                    <div class="sup-img-wrap">';
                        $return[] = su_portfolio_image($atts, $slide);
                $return[] = '</div>
                <div class="cbp-caption-activeWrap">
                    <div class="sup-desc-wrap">
                        <div class="sup-desc-inner">';
                            $return[] = $zoom_link_icon;
    
                            $return[] = '<div class="sup-meta-wrap">
                                <a href="'.$item_link.'" class="sup-title"><h4>'. $title .'</h4></a>
                                <div class="sup-meta">'.$slide['category'].'</div>
                            </div>
                        </div>
                    </div>
                </div>
                </div>
            </div>';
        }
        else {                  
            $return[] = '<div class="cbp-item '.$category.'">
                <div class="cbp-caption">
                    <div class="sup-img-wrap">';
                        $return[] = su_portfolio_image($atts, $slide);
                $return[] = '</div>

                    <div class="cbp-caption-activeWrap">
                        <div class="cbp-l-caption-alignCenter">
                            <div class="cbp-l-caption-body">';
                                $return[] = $zoom_link_icon;
                            $return[] = ' </div>
                        </div>
                    </div>
                </div>
                <div class="sup-meta-wrap">
                    <a href="'.$item_link.'" class="sup-title"><h4>'. $title .'</h4></a>
                    <div class="sup-meta">'.$slide['category'].'</div>
                </div>
            </div>';
        }

        $item_block++;
    }
        $return[] = '</div>';
        if($size > 0)
            $return[] = '<div class="cbp-loadMore-block'.($block+1).'"> </div>';

    return implode("\n", $return);
}

echo portfolio_item();

die();

?>

views/portfolio/tmpl/index.html000064400000000037152325656540012704 0ustar00<!DOCTYPE html><title></title>
views/portfolio/index.html000064400000000037152325656540011730 0ustar00<!DOCTYPE html><title></title>
views/portfolio/view.html.php000064400000001222152325656540012356 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 *
 * @package		Joomla
 * @subpackage	BDThemes Schortcodes Component
 * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @author BDThemes
 * @author url http://bdthemes.com
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class Bdthemes_shortcodesViewPortfolio extends JMasterViewSU {    
    /**
     * the main disply function
     */
    public function display($tpl = null) {
        parent::display($tpl);
    }
}views/post/tmpl/default.php000064400000011714152325656540012020 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 * @package     Shortcode Ultimate Joomla 3.0
 * @subpackage  BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 */

defined('_JEXEC') or die;

require_once BDT_SU_CONFIG . '/inc/tools.php';

function load_post($atts = null) {

	$atts = su_shortcode_atts(array(
        'source'           => (isset($_REQUEST["source"]))?$_REQUEST["source"]:null,
        'limit'            => (isset($_REQUEST["show_more_item"]))? ($_REQUEST["show_more_item"] + 1 ):null,
        'layout'           => (isset($_REQUEST["layout"]))?$_REQUEST["layout"]:null,
        'order'            => (isset($_REQUEST["order"]))?$_REQUEST["order"]:null,
        'date'             => (isset($_REQUEST["date"]))?$_REQUEST["date"]:null,
        'category'         => (isset($_REQUEST["category"]))?$_REQUEST["category"]:null,
        'order_by'         => (isset($_REQUEST["order_by"]))?$_REQUEST["order_by"]:null,
        'thumb_resize'     => (isset($_REQUEST["thumb_resize"]))?$_REQUEST["thumb_resize"]:null,
        'thumb_width'      => (isset($_REQUEST["thumb_width"]))?$_REQUEST["thumb_width"]:null,
        'thumb_height'     => (isset($_REQUEST["thumb_height"]))?$_REQUEST["thumb_height"]:null,
        'show_thumb'       => (isset($_REQUEST["show_thumb"]))?$_REQUEST["show_thumb"]:null,
        'show_more_item'   => (isset($_REQUEST["show_more_item"]))?$_REQUEST["show_more_item"]:null,
        'intro_text_limit' => (isset($_REQUEST["intro_text_limit"]))?$_REQUEST["intro_text_limit"]:null,
        'offset'           => (isset($_REQUEST["offset"]))?$_REQUEST["offset"]:null
	    ), $atts);
	
    $slides     = (array) Su_Tools::get_slides($atts);
    $return     = array();
    $item_block = $atts["offset"];
    $block      = (isset($_REQUEST["numberOfClicks"]))? $_REQUEST["numberOfClicks"] : 1;

	if (preg_match('/k2-category/', $atts['source'])) {
	    $source = 'k2';
	} else {
	    $source = 'article';
	}

	$thumb_resize_check = ($atts['thumb_resize'] === 'yes' and ($atts['layout'] != 'mosaic' or $atts['layout'] != 'masonry')) ? true : false;
    $return[]           = '<div class="cbp-loadMore-block'.$block.'">';
    $size               =    sizeof($slides);
    $limit              = $atts["limit"];

	foreach ((array) $slides as $slide) {

        if($limit-- == 1){
            break;
        }
        $size--;

		$thumb_url = su_image_resize($slide['image'], $atts['thumb_width'], $atts['thumb_height'], $thumb_resize_check, 95);

	    // Title condition 
        if($slide['title'])
            $title = stripslashes($slide['title']);                

        $category = su_title_class($slide['category']);
        $date = ($atts['date'] == 'yes') ? '<span class="cbp-l-grid-blog-date">' . JHTML::_('date', $slide['created'], JText::_('DATE_FORMAT_LC3')) . '</span>' : '';
        $show_category = ($atts['category'] == 'yes') ? '<span class="cpb-category">' . $slide['category'] . '</span>' : '';

        if (isset($slide['introtext'])) {
            if ($atts['intro_text_limit'] != 0) {
                $intro_text = '<div class="cbp-l-grid-blog-desc">'.su_char_limit($slide['introtext'], $atts['intro_text_limit']).'</div>';
            }
        }

	    $return[] = '
            <div class="cbp-item '.$category.'">';
                if (isset($thumb_url['url']) and $atts['show_thumb'] === 'yes') {
                    $return[] = '<a data-id="'.$slide['id'].'" href="'.$slide['link'].'" class="cbp-caption su-blog-img">
                                    <div class="cbp-caption-defaultWrap">';
                                        $return[] = '<img src="'. image_media($thumb_url['url']) .'" alt="'. $title .'">';
                                    $return[] = '</div>';
                                            $return[] = '<div class="cbp-caption-activeWrap">
                                                <div class="cbp-l-caption-alignCenter">
                                                    <div class="cbp-l-caption-body">
                                                        <div class="cbp-l-caption-text">'.JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_POST_GRID_VIEW_POST').'</div>
                                                    </div>
                                                </div>
                                            </div>';
                                    $return[] = '</a>';
                }
                $return[] = '<a href="'.$slide['link'].'" class="cbp-l-grid-blog-title">'.$title.'</a>
                <div class="su-pgrid-meta">
                    '.$date.'
                    '.$show_category.'
                </div>
                '.$intro_text.'

            </div>';

		$item_block++;
	}

	$return[] = '</div>';
        if($size > 0)
            $return[] = '<div class="cbp-loadMore-block'.($block+1).'"> </div>';

    return implode("\n", $return);

}

echo load_post();

die();

?>views/post/tmpl/index.html000064400000000037152325656540011654 0ustar00<!DOCTYPE html><title></title>
views/post/index.html000064400000000037152325656540010700 0ustar00<!DOCTYPE html><title></title>
views/post/view.html.php000064400000001215152325656540011330 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 *
 * @package		Joomla
 * @subpackage	BDThemes Schortcodes Component
 * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @author BDThemes
 * @author url http://bdthemes.com
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class Bdthemes_shortcodesViewPost extends JMasterViewSU {    
    /**
     * the main disply function
     */
    public function display($tpl = null) {
        parent::display($tpl);
    }
}views/index.html000064400000000054152325656540007712 0ustar00<html><body bgcolor="#FFFFFF"></body></html>bdthemes_shortcodes.php000064400000001604152325656540011323 0ustar00<?php
/**
 * BDThemes Shortcodes Component
 *
 * @package		Shortcode Ultimate Joomla 3.0
 * @subpackage	BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

require_once JPATH_COMPONENT.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'shortcode.php';
require_once JPATH_COMPONENT.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'item.php';


// Include dependancies
jimport('joomla.application.component.controller');

$controller	= JControllerLegacy::getInstance('Bdthemes_shortcodes');

// Perform the Request task
$task = JFactory::getApplication()->input->get('task');
	
$controller->execute($task);
$controller->redirect();

?>controller.php000064400000001231152325656540007452 0ustar00<?php

/**
 * BDThemes Shortcodes Component
 *
 * @package		Shortcode Ultimate Joomla 3.0
 * @subpackage	BDThemes Schortcodes
 * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @author BDThemes
 * @author url http://bdthemes.com
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die;

class Bdthemes_shortcodesController extends JControllerSU {


    /**
     *
     * display some view
     */
    public function display($cachable = false, $urlparams = false) {
        parent::display();

        return $this;
    }

}index.html000064400000000054152325656540006555 0ustar00<html><body bgcolor="#FFFFFF"></body></html>