WordPress development environment on Mac with Brew, Nginx, PHP 7, PHP-FPM, MariaDB, phpMyAdmin and more
Brew
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
<?php | |
function tidaweb_image_url_to_base64( $attach_id ) | |
{ | |
// get image src -> $image_info[0] | |
$image_info = wp_get_attachment_image_src( $attach_id, 'full' ); | |
$image_file = file_get_contents( $image_info[0] ); | |
// get filename from url | |
$filename = basename( get_attached_file( $attach_id ) ); | |
$image_file_type = wp_check_filetype( $filename ); |
;(function($) { | |
var JA_Custom_Validation = { | |
/** | |
* Start the engine. | |
* | |
* @since 1.0.0 | |
*/ | |
init: function() { |
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
<?php | |
/* | |
Template Name: Sales Page | |
*/ | |
//* Add custom body class to the head | |
add_filter( 'body_class', 'dm_add_body_class' ); | |
function dm_add_body_class( $classes ) { | |
$classes[] = 'dm-sales'; |
.jetpack_subscription_widget .widget-wrap { | |
background: url("images/enews.png") no-repeat 260px 15px; | |
} | |
#subscribe-email #subscribe-field { | |
width: 175px; | |
padding: 5px; | |
font-size: 13px; | |
margin: 10px -2px 0 0; | |
} |
When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.
Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008
…………………………
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
#Removes access to the system folder by users. | |
#Additionally this will allow you to create a System.php controller, | |
#previously this would not have been possible. | |
#'system' can be replaced if you have renamed your system folder. | |
RewriteCond %{REQUEST_URI} ^system.* | |
RewriteRule ^(.*)$ /index.php?/$1 [L] |
<?php | |
/** | |
* Written by Amri Shodiq. | |
* Do not hesitate to copy and paste this code. | |
* It's not embarassing. | |
*/ | |
if (!defined('BASEPATH')) | |
exit ('No direct script access allowed'); |