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 | |
function archive_title() { | |
//Conditionals to Title Display in WordPress Archive Templates | |
if( is_archive() ) { | |
$queried_object = get_queried_object(); | |
if( is_tag() ) { | |
$slug = $queried_object ? $queried_object->slug : ' ' ; |
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 | |
/* Este é o conteúdo de uma template page a ser exibido por uma página com slug = 'portfolio', tal como o post_type | |
A criação do CPT está com o argumento 'has_archive' => false, e a template page funciona normalmente, exceto quando é necessário | |
exibir uma página que não seja a primeira: www.meusite.com.br/portfolio/page/2 etc. | |
*/ | |
//Pagination | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; |
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 App = { | |
cols: 3, | |
init: function() { | |
var siblings = []; | |
for(var i = 0; i < this.stage.rows; i++) { | |
siblings[i] = []; | |
} | |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<!-- | |
FileZilla Filter for Odin Framework | |
Insira o conteúdo das tags <Filters>...</Filters> dentro das mesmas tags no arquivo filters.xml do seu FileZilla, ou caso | |
não deseje utilizar os filtros padrão, substitua o arquivo. | |
Para saber onde os arquivos de configuração de seu FileZilla estão: https://wiki.filezilla-project.org/FAQ | |
**Obs: Também é possível alterar o diretório de configurações do seu FileZilla, veja: https://forum.filezilla-project.org/viewtopic.php?f=1&t=8433 |
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 | |
/** | |
* Return an associative array with name and code of the icon from the icon font given in $path argument | |
* | |
* @version 0.0.1 | |
* | |
* @return array Associative array, in the form [name] => [code] of the icon font | |
*/ | |
function icon_array( $path ) { |
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 () { | |
'use strict'; | |
/* | |
* ImageRect | |
*/ | |
function ImageRect() { | |
this.sx = 3584; //source x | |
this.sy = 0; //source y | |
this.sw = 512; //source width |
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 | |
/** | |
* Odin_Metabox class. | |
* | |
* Built Metaboxs. | |
* | |
* @package Odin | |
* @category Metabox | |
* @author WPBrasil | |
* @version 2.1.4 |
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 | |
public function create_post_type() { | |
$labels = array( | |
'name' => 'Archives', | |
'singular_name' => 'Archive', | |
'menu_name' => 'Archives', | |
'name_admin_bar' => 'Archives', | |
'add_new' => 'Add New', | |
'add_new_item' => 'Add New Archive', | |
'new_item' => 'New Archive', |
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 | |
add_action('wp_head', function() { | |
global $template; | |
echo $template; | |
}); | |
?> |
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 | |
global $wp_styles; | |
$num = count($wp_styles->queue); | |
for( $i = 0; $i < $num; $i++){ | |
if( $wp_styles->queue[$i] != 'admin-bar' ){ | |
unset($wp_styles->queue[$i]); | |
} | |
} |
OlderNewer