First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Withing the terminal, Fire this command:
which php
// articles per page | |
var limit = 10; | |
// pagination middleware function sets some | |
// local view variables that any view can use | |
function pagination(req, res, next) { | |
var page = parseInt(req.params.page) || 1, | |
num = page * limit; | |
db.articles.count(function(err, total) { | |
res.local("total", total); |
<?php | |
class GridFieldConfig_HasManyRelationEditor extends GridFieldConfig { | |
/** | |
* | |
* @param int $itemsPerPage - How many items per page should show up | |
*/ | |
public function __construct($itemsPerPage=null) { | |
$this->addComponent(new GridFieldButtonRow('before')); | |
$this->addComponent(new GridFieldAddNewButton('buttons-before-left')); |
--- | |
Name: app | |
After: framework/routes#coreroutes | |
--- | |
Director: | |
rules: | |
'dev': 'DevelopmentAdmin' | |
'sitemap.xml': 'GoogleSitemap' | |
'$Action' : 'BaseController' |
#!/bin/bash | |
# | |
# ss-upgrader.sh | |
# | |
# INTRODUCTION | |
# | |
# There are some threads on the SS forums that describe the techdocs for upgrading a 2.4 site to 3.x as being too technical. Mainly from content authors who | |
# also happen to be site maintainers - they are not coders. | |
# The aim of this script is to therefore to automate - in as much as this is possible in a user-configured, open-source software project - to help those new to | |
# SS3 upgrade from 2.x as smoothly as possible. |
First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Withing the terminal, Fire this command:
which php
// Requires modular-scale | |
=heading-sizes($max-size: 30px, $min-size: 16px, $max-heading: 1, $min-heading: 6, $ratio: 1, $debug: false) | |
$number-of-headings: $min-heading - $max-heading + 1 | |
$scaled-size-of-max-heading: modular-scale($number-of-headings - 1, $min-size, $ratio) | |
$coefficient: 0 | |
@if $ratio != 1 | |
@if modular-scale(1, 1, octave()) != 2 |
/*! | |
* gulp | |
* $ npm install gulp-ruby-sass gulp-autoprefixer gulp-cssnano gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del --save-dev | |
*/ | |
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
cssnano = require('gulp-cssnano'), |
//Remove prettyPhoto lightbox | |
add_action( 'wp_enqueue_scripts', 'fc_remove_woo_lightbox', 99 ); | |
function fc_remove_woo_lightbox() { | |
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); | |
wp_dequeue_style( 'woocommerce_prettyPhoto_css' ); | |
wp_dequeue_script( 'prettyPhoto' ); | |
wp_dequeue_script( 'prettyPhoto-init' ); | |
} | |
//Add fancyBox lightbox - if thats what you want. |
<?php | |
/* | |
Plugin Name: ACF Customizer Patch | |
Plugin URI: https://gist.github.com/fabrizim/9c0f36365f20705f7f73 | |
Description: A class to allow acf widget fields to be stored with normal widget settings and allow for use in customizer. | |
Author: Mark Fabrizio | |
Version: 1.0 | |
Author URI: http://owlwatch.com/ | |
*/ | |
class acf_customizer_patch |
afghanistan : Afghanistan | |
albania : Albania | |
algeria : Algeria | |
american_samoa : American Samoa | |
andorra : Andorra | |
angola : Angola | |
anguilla : Anguilla | |
antigua_and_barbuda : Antigua and Barbuda | |
argentina : Argentina | |
armenia : Armenia |