Skip to content

Instantly share code, notes, and snippets.

View crizise's full-sized avatar

Kolomiitsev Olexii crizise

  • Kharkiv, Ukraine
View GitHub Profile
@crizise
crizise / admin-testimonials.js
Created February 12, 2018 10:21 — forked from tomazzaman/admin-testimonials.js
How to create a testimonial widget with Backbone
var myWidgets = myWidgets || {};
// Model for a single testimonial
myWidgets.Testimonial = Backbone.Model.extend({
defaults: { 'quote': '', 'author': '' }
});
// Single view, responsible for rendering and manipulation of each single testimonial
myWidgets.TestimonialView = Backbone.View.extend( {
@crizise
crizise / gist:5a8d5745f6d913bfefb6a967d65f7cf8
Created November 30, 2017 08:59 — forked from ivandoric/gist:e4e46294c4d35eac0ec8
wordpress: create custom reset password page
<?php //Add all of this tu custom page template ?>
<?php
global $wpdb;
$error = '';
$success = '';
// check if we're in reset form
if( isset( $_POST['action'] ) && 'reset' == $_POST['action'] )
{