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
/*! | |
* 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'), |
// 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 |
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
#!/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. |
--- | |
Name: app | |
After: framework/routes#coreroutes | |
--- | |
Director: | |
rules: | |
'dev': 'DevelopmentAdmin' | |
'sitemap.xml': 'GoogleSitemap' | |
'$Action' : 'BaseController' |
<?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')); |
// 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); |