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
jQuery(function($) { | |
$.data(document.body, 'ajaxUrl', '<?php echo admin_url('admin-ajax.php'); ?>'); | |
FB.init({ | |
appId : '1419904448233697', | |
status : true, // check login status | |
cookie : true, // enable cookies to allow the server to access the session | |
xfbml : true // parse XFBML | |
}); | |
FB.Event.subscribe('comment.create', | |
function(response) { |
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
// Avisar quando houver comentários facebook no post | |
add_action( 'wp_ajax_facebook_comment_post', 'avisar_facebook_comment_post' ); | |
add_action( 'wp_ajax_nopriv_facebook_comment_post', 'avisar_facebook_comment_post' ); | |
function avisar_facebook_comment_post(){ | |
$url = $_GET['post_url']; | |
$nome = "Kiwi!"; | |
$email = "alo@kiwicomcasca.com.br"; | |
$para = "jleonardosmatos@gmail.com"; | |
$assunto = "Novo comentário no Kiwi com Casca"; | |
$conteudo = "Alguém comentou o post <a href='" . $url . "'>" . $url . "</a>"; |
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
function remove_menus () { | |
global $menu; | |
$restricted = array( | |
__('Dashboard'), | |
__('Posts'), | |
__('Media'), | |
__('Links'), | |
__('Pages'), | |
__('Appearance'), | |
__('Tools'), |
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
/** | |
* Altera o sistema de arquivos (file system) | |
* isso só deve ser alterado se o usuário estiver com problemas para atualizar | |
* o wordpress ou algum plugin automaticamente, depois da atualização é recomendado | |
* remover esse código. | |
* Valores aceitos: | |
* direct - força o uso de solicitações I/O de dentro de PHP | |
* ssh2 - força o uso de ssh se estiver habilitado | |
* ftpext - força o uso da extensão FTP para acesso via FTP | |
* ftpsockets - utiliza a classe Sockets do PHP para acesso FTP |
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
//-------------DISABLE MOUSE WHEEL SCROLL------------// | |
//--- for IE | |
document.attachEvent('onmousewheel', function(e){ | |
if (!e) var e = window.event; | |
e.returnValue = false; | |
e.cancelBubble = true; | |
return false; | |
}, false); | |
//--- for Safari |
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
DB | |
DOCS | |
LAYOUT | |
PSD | |
JPG | |
FONTS | |
wp-content | |
uploads | |
project-plugins | |
uploads |
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 | |
ignore_user_abort(1); | |
set_time_limit(0); | |
@ini_set('max_execution_time', 0); | |
include(ABSPATH . "wp-blog-header.php"); | |
$fotos = $wpdb->get_results("SELECT * FROM videos ORDER BY id DESC"); | |
foreach( $fotos as $foto ){ |
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
function remove_menus () { | |
if (current_user_can( 'edit_themes' )) { | |
global $menu; | |
$restricted = array( | |
//Remova ou comente as linhas a seguir para exibir os itens. | |
__('Dashboard'), | |
__('Posts'), | |
__('Media'), | |
__('Links'), | |
__('Pages'), |
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
function amethyst_gallery_atts( $out, $pairs, $atts ) { | |
$atts = shortcode_atts( array( | |
'columns' => '2', | |
'size' => 'medium', | |
), $atts ); | |
$out['columns'] = $atts['columns']; | |
$out['size'] = $atts['size']; | |
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
$args = array( 'big_number' => 999999999, | |
'base' => str_replace( 999999999, '%#%', get_pagenum_link( 999999999 ) ), | |
'format' => '?paged=%#%', | |
'current' => max( 1, get_query_var( 'paged' ) ), | |
'total' => $wp_query->max_num_pages, | |
'prev_next' => true, | |
'end_size' => 1, | |
'mid_size' => 4, | |
'type' => 'list' | |
); |
OlderNewer