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 echo('hello')?> |
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 echo 'hello2';?> |
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
Teste |
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 | |
echo 'Vamos lá xD'; | |
function teste() { | |
return 'teste'; | |
} |
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 | |
/* | |
Plugin Name: Browser-Based Themes | |
Plugin URI: http://code.kuederle.com/browserbasedthemes | |
Description: This plugin will serve a different theme to specific browsers. | |
Author: Oliver Kuederle | |
Author URI: http://www.kuederle.com/ | |
Version: 1.0 | |
*/ |
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 rise_load_scripts() { | |
wp_register_script('main', url_fresh('js/main.js',false),array('jquery'),null); | |
wp_register_script('tooltip', url_fresh('js/vendor/wTooltip.1.7.min.js',false),array('jquery'),null); | |
wp_register_script('zoom', url_fresh('js/vendor/jquery.zoom-min.js',false),array('jquery'),null); | |
wp_register_script('tools', url_fresh('js/vendor/jquery.tools.min.js',false),array('jquery'),null); | |
wp_register_script('mailcheck', url_fresh('js/vendor/mailcheck.min.js',false),array('jquery'),null); | |
wp_register_script('masked', url_fresh('js/vendor/jquery.maskedinput-1.3.min.js',false),array('jquery'),null); | |
wp_register_script('moeda', url_fresh('js/vendor/accounting.min.js',false),array('jquery'),null); | |
wp_register_script('conversao', url_fresh('js/vendor/money.min.js',false),array('jquery'),null); |
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 url_fresh($url = '', $echo = true){ //http://css-tricks.com/snippets/wordpress/prevent-css-caching/ | |
if($echo){ | |
echo get_stylesheet_directory_uri().'/'.$url.'?r='.filemtime( get_stylesheet_directory().'/'.$url); | |
}else{ | |
return get_stylesheet_directory_uri().'/'.$url.'?r='.filemtime( get_stylesheet_directory().'/'.$url); | |
} | |
} | |
function carrega_scripts() { | |
wp_register_script('bootstrap', url_fresh('js/vendor/bootstrap.min.js',false),array('jquery'),false,false); |
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 | |
class Cliente { | |
function __construct(){ | |
add_filter('query_vars', array( $this, 'add_query_vars')); | |
add_filter('rewrite_rules_array', array( $this, 'add_rewrite_rules')); | |
add_action('template_redirect', array( $this, 'altera_status_cliente')); | |
} | |
function add_query_vars( $vars) { |