Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
/* The Grid ---------------------- */ | |
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; } | |
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
.lt-ie9 .row.large-collapse .column, | |
.lt-ie9 .row.large-collapse .columns { padding: 0; } | |
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
.lt-ie9 .row .row.large-collapse { margin: 0; } | |
.lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; } | |
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; } |
<?php | |
/** | |
* Template Name: ajax | |
*/ | |
?> | |
<?php | |
$post = get_post($_GET['id']); | |
?> | |
<?php if ($post) : ?> | |
<?php setup_postdata($post); ?> |
$wpdb->show_errors(); | |
global $wpdb; | |
// Grab any post values you sent with your submit function | |
$DownloadReportFrom = $_POST['ReportDateFrom']; | |
$DownloadReportTo = $_POST['ReportDateTo']; | |
// Build your query |
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
uglify = require('gulp-uglify'), | |
header = require('gulp-header'), | |
filter = require('gulp-filter'), | |
concat = require('gulp-concat'), | |
browserSync = require('browser-sync'), | |
sass = require('gulp-sass'), | |
bodyParser = require('body-parser'), | |
express = require('express'), |
/** | |
* Manage google fonts of load_google_font() | |
* set GOOGLE_FONTS constant in config.php | |
* for roots.io, Sage wp theme, place this code in lib/extras.php | |
*/ | |
function load_google_fonts() { | |
if( ! defined( 'GOOGLE_FONTS' ) ) return; | |
echo '<link href="//fonts.googleapis.com/css?family=' . GOOGLE_FONTS . '" rel="stylesheet" type="text/css" />'."\n"; |
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"plugins": ["react"], | |
"ecmaFeatures": { |
// Source: https://gist.github.com/luetkemj/2023628 | |
// Xem hướng dẫn WP_Query toàn tập: http://goo.gl/kRpzTz | |
<?php | |
$args = array( | |
//////Author Parameters - Tham số lấy bài viết theo tác giả | |
//http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters | |
'author' => '1,2,3,', //(int) - Các ID tác giả cần lấy bài viết (thêm dấu - vào để loại trừ tác giả, ví dụ: -14, -20) | |
'author_name' => 'luetkemj', //(string) - Lấy bài viết dựa theo tên nick name của tác giả | |
'author__in' => array( 2, 6 ), //(array) - Lấy bài dựa theo ID của tác giả |
<?php | |
/** | |
* Custom Events Template | |
* This file is the basic wrapper template for all the views if 'Default Events Template' | |
* is selected in Events -> Settings -> Template -> Events Template. | |
* | |
* Override this template in your own theme by placing this file at [your-theme]/tribe-events/default-template.php | |
* | |
* @package TribeEventsCalendar | |
* |