Floating Back to Top

//Call like this:

<?php ter_back_to_top(900,600) ?>

//The Function

/* Back to Top */
function ter_back_to_top($offset = 220, $duration = 500){?>
<a href="#" class="back-to-top rounded-5"><img src="<?php echo TER_CHILD_GRAPHICS ?>top.png" alt="back to top"></a>
<script type="text/javascript">
jQuery(document).ready(function(){
var offset = <?php echo $offset ?>;
var duration = <?php echo $duration ?>;
jQuery(window).scroll(function(){
if(jQuery(this).scrollTop() > offset) jQuery('.back-to-top').fadeIn(duration);
else jQuery('.back-to-top').fadeOut(duration);
});
jQuery('.back-to-top').click(function(event){
event.preventDefault();
jQuery('html,body').animate({scrollTop: 0},duration);
return false;
})
});
</script>
<?php
}

Rotator, quote or whatever

<div id="hypfb-quote-item-1" class="hypfb-quote-item none">Quote Here</div>
<div id="hypfb-quote-item-2" class="hypfb-quote-item none">Quote 2 Here</div>
<img src="" onmouseover="hypfb_rotate_quote(1);" alt="">
<img src="" onmouseover="hypfb_rotate_quote(2);" alt="">

<script type="text/javascript">
function hypfb_rotate_quote(id){
if(currentQuote == '#hypfb-quote-item-' + id) return;
jQuery(currentQuote).stop(true).fadeOut(function(){
currentQuote = '#hypfb-quote-item-' + id;
jQuery(currentQuote).fadeIn();
});
}
</script>

Get post id and enqueue scripts

//Enqueue
function hypxml_enqueue_files(){
global $post;
$page_array = array(195);
if(in_array($post->ID,$page_array)){
add_action('wp_print_scripts', 'hypxml_enqueue_js');
add_action('wp_print_styles','hypxml_add_stylesheet');
}
}
add_action('wp','hypxml_enqueue_files',5,0);

function hypxml_enqueue_js(){
wp_enqueue_script('hypxml_js', HYPXML_PLUGIN . 'scripts.js',array('jquery'));
wp_enqueue_script('hypxml_sort_js', HYPXML_PLUGIN . 'jquery.tablesorter.min.js',array('jquery'));
}
function hypxml_add_stylesheet(){ wp_enqueue_style('hypxml_styles', HYPXML_PLUGIN . 'style.css'); }

Redirect site to subfolder

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteCond %{REQUEST_URI} !^/subfolder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /subfolder/$1
RewriteCond %{HTTP_HOST} ^(www.)?hyptx.com$
RewriteRule ^(/)?$ subfolder/Home.html [L]