PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/jairosvt/public_html/afmedios.com/plugins/content/
Server: Linux server2.noticiasdecolima.com 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Tue Nov 26 02:30:26 EST 2024 x86_64
IP: 107.161.180.42
Choose File :

Url:
Dir : /home/jairosvt/public_html/afmedios.com/plugins/content/scrollbacktotop.php

<?php
/**
 * SBTT - Simple Scroll Back To Top Joomla! content button
 *
 * @version			$Id: scrollbacktotop.php 1 2010-11-29 14:30:00 programmer $
 * @author			$Author: programmer $
 * @copyright       Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
 * @license         GNU General Public License (GNU GPL) GPLv3, 
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 *    See the GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * @link			http://www.union-d.ru/dev/
 * @package			plg_scrollbacktotop
 * @revision		$Revision: 1 $
 * @lastmodified	$Date: 2010-11-29 14:30:00 +0300 $
*/

/*** No direct access ***/
defined('_JEXEC') or die;

//jimport( 'joomla.plugin.plugin' );

$mainframe->registerEvent( 'onBeforeDisplayContent', 'plgContentSbtt' );

function sbttPermalink()
{
	$out = '<a href="#top" class="backtotop"><img src="/plugins/content/top.png" alt="scroll back to top" border="0" /></a>';

	return $out;
}

function sbttFixedPermalink()
{
	$out = '<a href="#top" class="backtotop" style="position: fixed; bottom:0px; right:0px;"><img src="/plugins/content/top.png" alt="scroll back to top" border="0" /></a>';

	return $out;
}

function getjQuery($speed = 'slow')
{
	return "<!-- Include jQuery -->
<script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js\" type=\"text/javascript\" charset=\"utf-8\"></script>

<script type=\"text/javascript\" charset=\"utf-8\">
       
    //Click event handler for any anchor that has an href that ends in top
      $('a.backtotop').click(function() {
       
        //Animates scroll to the top of the page...and take 1 second to do it.
          $('html, body').animate({ scrollTop:0 }, '{$speed}');
   
        //return false to prevent the default action of the anchor tag when clicked.
          return false;
 
      });
</script>";
}

function plgContentSbtt( &$row, &$params, $page=0 )
{
	$plugin =& JPluginHelper::getPlugin('content', 'scrollbacktotop');
	$pluginParams = new JParameter( $plugin->params );
	
	$type       = $pluginParams->get('sbtt_typ');
	
	$havejQuery = $pluginParams->get('sbtt_hav');
	
	$usejQuery  = $pluginParams->get('sbtt_use');
	
	$useMain  = $pluginParams->get('sbtt_main', '0');
	
	$speed = $pluginParams->get('sbtt_speed', 'slow');
	
	$pref = '';
	
	if (!$havejQuery && $usejQuery) $pref = getjQuery($speed);
	
	if ($useMain == '0' && $_SERVER['REQUEST_URI'] == '/') {  return; }

	if ( $type == '0' ) 
	{
		$row->text = sbttPermalink().$row->text.$pref;
	} else
	if ( $type == '1' ) 
	{
		$row->text = $row->text.sbttPermalink().$pref;
	} else
	{
		$row->text = $row->text.sbttFixedPermalink().$pref;
	}
}

?>