View main.js
This file contains 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
(function(){ | |
// Vertical Timeline - by CodyHouse.co | |
function VerticalTimeline( element ) { | |
this.element = element; | |
this.blocks = this.element.getElementsByClassName("cd-timeline__block"); | |
this.images = this.element.getElementsByClassName("cd-timeline__img"); | |
this.contents = this.element.getElementsByClassName("cd-timeline__content"); | |
this.offset = 0.8; | |
this.hideBlocks(); | |
}; |
View gulpfile.js
This file contains 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'); | |
var sass = require('gulp-sass'); | |
var livereload = require('gulp-livereload'); | |
var inlineCss = require('gulp-inline-css'); | |
var replace = require('gulp-replace'); | |
var fs = require('fs'); | |
sass.compiler = require('node-sass'); | |
gulp.task('sass', function () { |
View Loader.php
This file contains 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 Sample; | |
use \Illuminate\Database\Capsule\Manager as Capsule; | |
class Loader { | |
public function init() { | |
$this->initEloquent(); | |
$this->initActions(); | |
$this->initFilters(); |
View sample.php
This file contains 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 | |
/** | |
* Plugin Name: Sample Plugin | |
* Description: A sample plugin | |
* Version: 1.0 | |
*/ | |
require_once __DIR__ . '/vendor/autoload.php'; | |
$plugin = new \Sample\Loader(__DIR__, plugin_dir_url(__FILE__)); |
View composer.json
This file contains 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
{ | |
"autoload": { | |
"psr-4": { | |
"Sample\\": "src/" | |
} | |
}, | |
"minimum-stability": "dev", | |
"prefer-stable": true, | |
"require": { | |
"illuminate/database": "^7.14.1" |
View links.css
This file contains 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
animation: navigation-links 2s 1; | |
@keyframes navigation-links { | |
0% { | |
opacity: 0; | |
} | |
50% { | |
opacity: 0; | |
} | |
100% { |
View animation.css
This file contains 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
animation: navigation-base 1s 1; | |
@keyframes navigation-base { | |
0% { | |
width: 0px; | |
height: 0px; | |
box-shadow: 0px; | |
} | |
40% { | |
width: 100%; |
View callCategory.php
This file contains 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
protected function setupCategories() { | |
$categories = Category::where('taxonomy', 'category')->get(); | |
foreach($categories as $category) { | |
$data = $category->createObject(); | |
array_push($this->dataObject, $data); | |
} | |
} |
View category.php
This file contains 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
class Category extends \Corcel\Model\Taxonomy { | |
public function getIdAttribute() { | |
return $this->term_id; | |
} | |
public function getTitleAttribute() { | |
return $this->name; | |
} | |
public function createObject() { |
View createObject.php
This file contains 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
public function createObject() { | |
$object = [ | |
'_id' => $this->id, | |
'_type' => 'employee', | |
'name' => $this->name, | |
'slug' => $this->slug, | |
]; | |
return $object; | |
} |
NewerOlder