This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function vol_price_css() { | |
$theme_dir = get_bloginfo('template_directory'); | |
?> | |
<style type="text/css"> | |
.shopp h2.voc_title {padding: 12px 15px 25px 0;} | |
.icon32 {background: url(<?php echo $theme_dir;?>/lib/img/shopp32.png) no-repeat scroll 0 0 transparent;} | |
.vcc_price_update_btn { position:absolute; top:47px; left:400px;} | |
table.price-editor tr.headers th{font-weight:bold;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Aweber widget | |
*/ | |
class aweber_Widget extends WP_Widget { | |
function aweber_Widget() { | |
$widget_ops = array( 'classname' => 'aweber', 'description' => 'Displays the aweber opt-in form' ); | |
$this->WP_Widget( 'aweber', 'Aweber Form', $widget_ops ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# custom login link | |
RewriteRule ^login$ http://localhost/whitelabel/wp-login.php [NC,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "utf-8"; | |
/* CSS Document */ | |
html, body { | |
height: 100%; | |
} | |
html { | |
background-color: #fff; | |
} | |
body.login { | |
background:#1D2736; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// favorite tweets | |
class rkv_fav_tweets extends WP_Widget { | |
function rkv_fav_tweets() { | |
$widget_ops = array( 'classname' => 'fav_tweets', 'description' => 'Displays tweets favorited by a user' ); | |
$this->WP_Widget( 'fav_tweets', 'Favorite Tweets', $widget_ops ); | |
} | |
function widget( $args, $instance ) { | |
extract( $args, EXTR_SKIP ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rkv_no_curly_display () { | |
// call the global | |
global $post; | |
// get the post content | |
$content = $post->post_content; | |
// clean it up | |
$original = array('“', '”', '’'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rkv_referr_source() { ?> | |
<script type="text/javascript"> | |
// build function for cookie process | |
function rkv_grab_cookie() { | |
// check document referrer | |
if (document.referrer !== '') | |
var rkv_val = document.referrer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make two admin-only fields (as text fields) | |
// and post to the custom fields from Gravity Forms | |
// instead of the "real" date picker. | |
// NOTE: change the input IDs to match the ones on your form | |
function rkv_datesubmit_fix ($form){ | |
//event start date field id is 3 | |
//event end date field ID is 4 | |
$raw_srt = $_POST['input_3']; | |
$raw_end = $_POST['input_4']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function preprint($s, $return = false) { | |
$code = '<pre>'; | |
$code .= print_r($s, 1); | |
$code .= '</pre>'; | |
if ($return) | |
return $code; | |
else | |
print $code; | |
} |
OlderNewer