Alternative Navigation Style using CSS3 animations and transitions.
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
/* Set Default Mail From Name */ | |
function custom_wp_mail_from_name( $original_email_from ){ | |
return 'Danny Wilson'; | |
} | |
add_filter( 'wp_mail_from_name', 'custom_wp_mail_from_name' ); | |
/* Set Default Mail From email */ | |
function custom_wp_mail_from( $original_email_address ){ | |
return '[email protected]'; | |
} |
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 is_logged_in($atts, $content){ | |
if(is_user_logged_in()){ | |
return do_shortcode($content); | |
} | |
else { | |
// this is used incase you want to attach an icon/message to show more information is available on login | |
return "<span class='secured'></span>"; | |
} | |
} |
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
// In options.php | |
$options[] = array( | |
'name' => __('Example Hide', 'options_framework_theme'), | |
'desc' => __('Example Hide Multiple Fields', 'options_framework_theme'), | |
'id' => 'example_showhidden', | |
'type' => 'checkbox'); | |
$options[] = array( | |
'name' => __('Example Hidden 1', 'options_framework_theme'), |
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 lipsum_shortcode($atts) { | |
extract(shortcode_atts(array('amount' => 1, 'type' => 'paras'), $atts)); | |
$lipsum = simplexml_load_file("http://www.lipsum.com/feed/xml?amount=$amount&what=$type")->lipsum; | |
return $lipsum; | |
} | |
add_shortcode('lipsum', 'lipsum_shortcode'); |
NewerOlder