- Instale o Ruby > $ sudo apt-get install ruby-full
- Instale o SASS > $ sudo su -c "gem install sass"
- Instale o Compass -> $ sudo gem install compass
  
    
      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 | |
| // Habilita todas mensagens de erros que possa acontecer | |
| ini_set('display_errors', 1); | |
| error_reporting(E_ALL); | |
| // Declaração de variáveis | |
| $encontrouDiv = false; | |
| // Pega o conteúdo do site (retornado como string) e coloca dentro de uma variável | |
| $urlContent = file_get_contents('http://www.url.com.br/'); | 
  
    
      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
    
  
  
    
  | # Require any additional compass plugins here. | |
| # Set this to the root of your project when deployed: | |
| http_path = "/" | |
| css_dir = "css" | |
| sass_dir = "sass" | |
| images_dir = "images" | |
| javascripts_dir = "javascripts" | |
| # You can select your preferred output style here (can be overridden via the command line): | 
  
    
      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
    
  
  
    
  | <div class="cycle-slideshow" data-cycle-fx="scrollVert" data-cycle-slides=".slides" data-cycle-swipe="true" data-cycle-timeout="8000" data-cycle-pager=".navSlides"> | |
| <div class="slides"> | |
| <!-- Adicione div. images, textos e etc. --> | |
| </div> | |
| <!-- Navegação --> | |
| <div class="navSlides"></div> | |
| </div> | |
| <a href="http://jquery.malsup.com/cycle2/" target="_blank">Cycle2</a> | 
  
    
      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
    
  
  
    
  | # Primeiro crie um repositorio Local. | |
| $ git init | |
| Initialized empty Git repository in C:\Projetos\site\.git | |
| $ cat ' ' > index.html | |
| $ git add index.html | |
| $ git commit -q -m "Iniciando o repositório" | |
| # No Servidor | |
| # Crie Repositorio Vazio | |
| $ mkdir site.git && cd site.git | 
  
    
      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 | |
| // Popup Maker - https://wordpress.org/plugins/popup-maker/ | |
| function mycustom_popup_is_loadable( $is_loadable, $popup_id) { | |
| if( $popup_id == 80 ) { // ID do Post | |
| $start = strtotime( '2015-11-23 14:00:00' ); // Data de Início | |
| $end = strtotime( '2015-11-26 23:59:00' ); // Data do Término | |
| $now = strtotime( 'now' ); | |
| if( $now >= $start && $now <= $end ) { | 
  
    
      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
    
  
  
    
  | body input[type=text].wpcf7-not-valid, | |
| body input[type=email].wpcf7-not-valid, | |
| body input[type=tel].wpcf7-not-valid, | |
| body textarea.wpcf7-not-valid { | |
| border: 1px solid #ec3c06; | |
| } | |
| body span.wpcf7-not-valid-tip { | |
| background: none; | |
| border: none; | 
  
    
      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
    
  
  
    
  | .wpcf7-checkbox, .radio { | |
| display: block; | |
| margin: 10px 0 0; | |
| .wpcf7-list-item { | |
| display: block; | |
| input[type=checkbox], input[type=radio] { | |
| display: none; | 
  
    
      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 | |
| /** | |
| * Espeficicar por padrão. | |
| */ | |
| if( $post->post_parent !== 0 ) { | |
| get_template_part('page', 'child'); | |
| } else { | |
| get_template_part('page', 'default'); | |
| } | |
| ?> |