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
return View.extend({ | |
initialize: function () { | |
this.el.attr("draggable", "true") | |
this.el.bind("dragstart", _.bind(this._dragStartEvent, this)) | |
}, | |
_dragStartEvent: function (e) { | |
var data | |
if (e.originalEvent) e = e.originalEvent | |
e.dataTransfer.effectAllowed = "copy" // default to copy |
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 gulp = require( 'gulp' ), | |
less = require( 'gulp-less' ), | |
autoprefixer = require( 'gulp-autoprefixer' ), | |
minifycss = require( 'gulp-minify-css' ), | |
jshint = require( 'gulp-jshint' ), | |
uglify = require( 'gulp-uglify' ), | |
imagemin = require( 'gulp-imagemin' ), | |
rename = require( 'gulp-rename' ), | |
clean = require( 'gulp-clean' ), | |
concat = require( 'gulp-concat' ), |
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
//se o frame já existe, abre-o novamente | |
if ( typeof( custom_uploader ) !== "undefined" ) { | |
custom_uploader.close(); | |
} | |
//Cria o frame da janela de mídia | |
var custom_uploader = wp.media.frames.customHeader = wp.media({ | |
title: "Select An Image", | |
library: { | |
type: 'image' |
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 bp_change_activation_mail_text( $message ) { | |
// Get some globals | |
global $bp, $wpdb; | |
// Get username from the signup form just posted | |
$username = $bp->signup->username; |
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 | |
// registering the taxonomy "class-formation" | |
function theme_register_taxonomy(){ | |
$labels = apply_filters( 'tax_class_formation_labels' ,array( | |
'name' => _x( 'Formações Acadêmicas', 'Taxonomy General Name', 'theme_slug' ), | |
'singular_name' => _x( 'Formação Acadêmica', 'Taxonomy Singular Name', 'theme_slug' ), | |
'menu_name' => __( 'Formações', 'theme_slug' ), | |
'all_items' => __( 'Todos as Formações', 'theme_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 | |
/** | |
* Plugin class. This class should ideally be used to work with the | |
* public-facing side of the WordPress site. | |
* | |
* If you're interested in introducing administrative or dashboard | |
* functionality, then refer to `class-plugin-name-admin.php` | |
* | |
* @package Tesla_CPTS |
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
// change page permalink structure | |
add_action( 'init', 'custom_page_rules' ); | |
function custom_page_rules() { | |
global $wp_rewrite; | |
$wp_rewrite->page_structure = $wp_rewrite->root . 'my-custom-string/%pagename%'; | |
} | |
add_filter( 'post_link', 'change_page_links', 1, 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
var gulp = require( 'gulp' ), | |
sass = require( 'gulp-sass' ), | |
autoprefixer = require( 'gulp-autoprefixer' ), | |
minifycss = require( 'gulp-minify-css' ), | |
imagemin = require( 'gulp-imagemin' ), | |
rename = require( 'gulp-rename' ), | |
concat = require( 'gulp-concat' ), | |
plumber = require( 'gulp-plumber' ), | |
notify = require( 'gulp-notify' ), | |
inlineCss = require('gulp-inline-css'), |
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 | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$roi_min = (get_query_var('roi_min')) ? intval( get_query_var('roi_min') ) : false; | |
$roi_max = (get_query_var('roi_max')) ? intval( get_query_var('roi_max') ) : false; | |
$args = array( | |
'post_type' => 'post', | |
'posts_per_page' => 10, | |
'paged' => $paged, |
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 get_header(); ?> | |
<div class="container"> | |
<div class="row"> | |
<?php | |
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; | |
$disciplinas = new WP_Query( array( | |
'post_type' => 'disciplinas', |
OlderNewer