Skip to content

Instantly share code, notes, and snippets.

@bernierocks
bernierocks / functions.php
Created October 31, 2013 09:14
Bernie Additional Functions <3 <3 <3 <3 <3
<?php
// Bernie Additional Functions <3 <3 <3 <3 <3
// menu css
function custom_admin_css() {
echo '<style type="text/css">
#wphead{background:#592222}
#footer{background:#592222}
function my_admin_theme_style() { wp_enqueue_style('my-admin-style', get_template_directory_uri() . '/path/to/admin/style.css'); } add_action('admin_enqueue_scripts', 'my_admin_theme_style');
<?php if ( is_user_logged_in() ) { } else { ?>
<a href="http://writers-site.com/whmcs-2/?ccce=register">Sign Up</a>
<?php }; ?>
<div id="player"></div>
<script src="http://luwes.co/vimeowrap.js/vimeowrap.js"></script>
<script>
vimeowrap('player').setup({
urls: [
'https://vimeo.com/20768621',
'https://vimeo.com/21953913',
'https://vimeo.com/24581859'
],
repeat: 'list',
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.housebuyersusa\.com
RewriteRule (.*) http://www.housebuyersusa.com/$1 [R=301,L]
#ErrorDocument 404 http://www.housebuyersusa.com/error/error
AddType text/css .css
RewriteRule !\.(css|rtf|RTF|pdf|PDF|log|xml|js|ico|gif|htc|jpg|png|htm|swf|flv|mp3|zip|rar|doc)$ index.php
--------------------------------------------------------------------------------------
rewriteengine on
@bernierocks
bernierocks / functions.php
Created October 16, 2013 16:14
Wordpress Functions / CSS register and enque
//Bernie's Custom CSS
function bernie_scripts_styles() {
wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/css/main.css' ); //our stylesheet
}
add_action( 'wp_enqueue_scripts', 'bernie_scripts_styles' );
@bernierocks
bernierocks / 0_reuse_code.js
Created October 16, 2013 16:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console