This file contains hidden or 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
/* | |
* | |
* Code générique qui permet d'utiliser le gestionnaire de media de WordPress | |
* | |
* Pour que ce code marche il faut ajouter le scripts de WordPress ( wp_enqueue_media() ) | |
* et respecter quelques régles pour le HTML ( voir les fichier exemple.php et functions.php ) | |
* | |
*/ | |
var custom_uploader, name, input, size, preview; |
This file contains hidden or 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
import template from './home.html'; | |
import controller from './home.controller'; | |
import './home.scss'; | |
let homeComponent = { | |
restrict: 'E', | |
template: template, | |
controller: ['$router', controller], | |
controllerAs: 'vm', |
This file contains hidden or 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
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
cssnano = require('gulp-cssnano'), | |
rename = require('gulp-rename'), | |
uglify = require('gulp-uglify'), | |
concat = require('gulp-concat'), | |
plumber = require('gulp-plumber'); | |
var browserSync = require('browser-sync').create(); |
This file contains hidden or 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 | |
/** | |
* goliath functions and definitions. | |
* | |
* @link https://developer.wordpress.org/themes/basics/theme-functions/ | |
* | |
* @package goliath-skeleton-classic-menu | |
* @author Studio Goliath <[email protected]> | |
*/ |
This file contains hidden or 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 | |
namespace SE\AppBundle\Service; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\Cookie; | |
class OAuthService |
This file contains hidden or 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
import {Injectable} from "@angular/core"; | |
import {Platform} from "ionic-angular"; | |
const DB_NAME: string = '__mydbname'; | |
const win: any = window; | |
@Injectable() | |
export class Sql { | |
private _dbPromise: Promise<any>; |
This file contains hidden or 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
# Project language | |
language: php | |
# Allows use container-based infrastructure | |
sudo: false | |
# Start mysql service | |
services: | |
- mysql |
This file contains hidden or 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
import { Injectable } from '@angular/core'; | |
import { Headers, Http } from '@angular/http'; | |
import { environment } from '../../environments/environment'; | |
import { OAuthService } from './oauth.service'; | |
@Injectable() | |
export class ApiService { |
This file contains hidden or 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
wp_get_imgix_image( $attachment_id, $options = '' ) { | |
$url = ''; | |
$image = wp_get_attachment_image_src( $attachment_id ); | |
$imgix_bucket = get_option( 'imgix_bucket' ); | |
if($image && imgix_bucket) { | |
$url = $imgix_bucket.$image['url'].$options; |
This file contains hidden or 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 /* | |
Template Name: Gallery | |
Gallery template based on Advanced Custom Fields gallery field | |
with pagination and categories. | |
ACF Fields for this page are: | |
- gallery (Gallery field) -> contain all images | |
- categories (Repeater field) -> images divided into categories | |
-- name | |
-- nice_name (for the url) | |
-- gallery |
OlderNewer