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
// pen by Micah Godbolt: https://codepen.io/micahgodbolt/pen/FgqLc | |
equalHeightCols = function(container){ | |
var currentTallest = 0, | |
currentRowStart = 0, | |
rowDivs = new Array(), | |
$el, | |
topPosition = 0; | |
$(container).each(function() { |
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 | |
$name = Trim(stripslashes($_POST['name'])); | |
$email = Trim(stripslashes($_POST['email'])); | |
$message = Trim(stripslashes($_POST['message'])); | |
// validation | |
$validationOK=true; | |
if (!$validationOK) { |
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
USE __DATABASE__; | |
SET @username = 'azizur'; | |
SET @password = MD5('password'); | |
SET @fullname = 'Azizur Rahman'; | |
SET @email = 'azizur@example.com'; | |
SET @url = 'http://azizur.com/'; | |
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_status`, `display_name`) VALUES (@username, @password, @fullname, @email, @url, NOW(), '0', @fullname); |
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 | |
class Clients_Module_Widget extends WP_Widget { | |
function __construct() { | |
parent::__construct( | |
'client_logos', // Base ID | |
__('Clients', 'text-domain'), // Name | |
array( 'description' => __( 'Our Clients - logo list', 'text-domain' ), ) // Args | |
); |
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 | |
class Image_Module_Widget extends WP_Widget { | |
function __construct() { | |
parent::__construct( | |
'image_module_widget', // Base ID | |
__( 'Image module', 'text-domain' ), // Name | |
array( 'description' => __( 'Image module - full width image', 'text-domain' ), ) // Args | |
); |
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 | |
class Callout_Widget extends WP_Widget { | |
function __construct() { | |
parent::__construct( | |
'callout_widget', // Base ID | |
__( 'Widget - Callout', 'text-domain' ), // Name | |
array( 'description' => __( 'A Simple Callout Widget', 'text-domain' ), ) // Args | |
); |
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
jQuery(document).ready(function($) { | |
var imageFrame; | |
$(document).on("click", ".upload_image_button", function() { | |
event.preventDefault(); | |
var options, attachment; |