예제 #1
0
					<script type="text/javascript">
						jQuery(document).ready(function () {
							jQuery('#slider').easySlider({
								auto: true,
								continuous: true,
								speed: 800,
								pause: 6000
								//nextId: "slider1next",
								//nextText: "",
								//prevText: "",
								//prevId: "slider1prev"
							});
						});
					</script>
				</div>
			<?php 
    } else {
        foreach ($twitters as $k => $v) {
            echo '<div class="twitter_content_row">';
            echo '<img src="' . $v['profile_image_url'] . '">';
            echo '<a href="' . $v['link'] . '" title="' . $v['description'] . '">' . JHtml::_('string.truncate', $v['title'], $params->get('title_length')) . '</a>';
            echo '<div>' . modRedTwitterHelper::ago($v['pdate']) . '</div>';
            //echo '<div>' . date($date_format, strtotime($v['pdate'])) . '</div>';
            echo '</div>';
        }
    }
    ?>
		</div>
	</div>
<?php 
}
예제 #2
0
<?php

/**
 * @version    Id: mod_redtwitter.php
 * @package    Com_Redtwitter
 * @author     Ronni K. G. Christiansen<*****@*****.**> - http://www.redcomponent.com
 * @copyright  Copyright (C) 2010 redCOMPONENT.com. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 *             Developed by email@recomponent.com - redCOMPONENT.com
 */
defined('_JEXEC') or die('Restricted access');
// Include the syndicate functions only once
require_once dirname(__FILE__) . '/helper.php';
$document = JFactory::getDocument();
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
if ($params->get('twitter_id')) {
    $orderType = $params->get('order_type');
    $maxItemDisplayed = $params->get('item_max_display');
    $twitters = modRedTwitterHelper::getTwitterList($params->get('twitter_id'), $orderType, $maxItemDisplayed, $params);
}
require JModuleHelper::getLayoutPath('mod_redtwitter', $params->get('layout', 'default'));