This file contains 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
//push footer to bottom | |
body{ | |
min-height: 100vh; | |
display: flex; | |
flex-direction: column; | |
} | |
body.admin-bar { | |
min-height: calc(100vh - 32px); | |
} | |
footer{ |
This file contains 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
%YAML 1.3 | |
--- | |
- Key: [Mouse Gesture Button, pressed] | |
- KeyPress: XF86_AudioPlay | |
... | |
--- | |
- Rule: | |
- Key: [Forward Button, pressed] | |
- KeyPress: XF86_AudioPrev | |
- Rule: |
This file contains 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 | |
// Comentários | |
add_action('comment_post', 'doceblog_envia_notificacao', 10, 2); | |
function doceblog_envia_notificacao($comment_id, $approved) { | |
if ($approved) { | |
$filho = get_comment($comment_id); | |
if ($filho->comment_parent) { | |
$pai = get_comment($filho->comment_parent); | |
$pai_autor = $pai->comment_author; |
This file contains 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 include('includes/header.php');?> | |
<?php include('includes/login/auth.php');?> | |
<?php | |
check_simplexml(); | |
if(get_app_info('is_sub_user')) | |
{ | |
echo '<script type="text/javascript">window.location="'.addslashes(get_app_info('path')).'/app?i='.get_app_info('restricted_to_app').'"</script>'; | |
exit; | |
} |
This file contains 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
//Add this to your functions.php then use the shortcode [assinantes] to show your list numbers | |
function assinantes_madmimi() { | |
$transient = get_transient( 'assinantes_madmimi' ); | |
if( ! empty( $transient ) ) { | |
return $transient; | |
} else { | |
$username = "your email at madmimi"; | |
$apikey = "your api key"; | |
$response = wp_remote_retrieve_body( wp_remote_get( "https://api.madmimi.com/audience_members.json?username=$username&api_key=$apikey" ) ); |
This file contains 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 | |
/** | |
* Send download to user's email | |
*/ | |
if ($_SERVER['REQUEST_METHOD'] == 'POST') { | |
/*$versions = $dlm_download->get_file_versions(); | |
reset($versions); | |
$version = key($versions); |
This file contains 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
//Add this to your functions.php then use the shortcode [mmsubscribers] to show your list numbers | |
function subscribers_madmimi() { | |
$transient = get_transient( 'subscribers_madmimi' ); | |
if( ! empty( $transient ) ) { | |
return $transient; | |
} else { | |
$username = "your email at madmimi"; | |
$apikey = "your api key"; | |
$response = wp_remote_retrieve_body( wp_remote_get( "https://api.madmimi.com/audience_members.json?username=$username&api_key=$apikey" ) ); |