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 | |
/** | |
* Created by PhpStorm. | |
* User: Rodrigo Brandão | |
* Date: 21/03/2016 | |
* Time: 11:07 | |
*/ | |
class Extenso | |
{ | |
public static function removerFormatacaoNumero( $strNumero ) |
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
var numero = 2199999999; | |
var formatNumber; | |
formatNumber = numero.length === 11 ? numero.match(/(\d{2})(\d{5})(\d{4})/) : numero.match(/(\d{2})(\d{4})(\d{4})/); | |
var finalNumber = '('+ formatNumber[1]+') '+formatNumber[2]+' - '+formatNumber[3]; |
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
<div class="navbar navbar-default navbar-fixed-top"> | |
<div class="container"> | |
<div class="collapse navbar-collapse col-lg-6 col-md-6"> | |
<ul class="nav navbar-nav nav-logo navbar-left"> | |
<li><a href="#"><img src="<?= bloginfo( 'template_url' ) ?>/images/favicon.png"></a></li> | |
</ul> | |
</div> | |
<div class="collapse navbar-collapse navbar-right col-lg-6 col-md-6"> |
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 | |
/** | |
* WordPress Theme Autoload | |
* Place on Root Theme | |
* Create a folder as classes | |
* This peace of code adds a autoloader into any wordpress theme you have | |
* to use this only follow the simple steps bellow | |
* create all your class files inside the folder named class | |
* and then just include this autoloader.php file in your theme functions.php | |
* require_once TEMPLATEPATH . '/autoloader.php'; |
NewerOlder