Note: the $data
object in ApiView
is Registry
not Data
object, we must use set()
to set data.
Component is com_flower
, view is sakuras
.
// components/com_flower/view/sakuras/json.php
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { | |
// no easing, no acceleration | |
linear: function (t) { return t }, | |
// accelerating from zero velocity | |
easeInQuad: function (t) { return t*t }, | |
// decelerating to zero velocity |
/** | |
* http://applemusic.tumblr.com/ | |
* https://jsfiddle.net/xq56dmrh/ | |
*/ | |
/** Ultra Light */ | |
@font-face { | |
font-family: "San Francisco"; | |
font-weight: 100; | |
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff"); |
<?php | |
define('OAUTH2_CLIENT_ID', ''); | |
define('OAUTH2_CLIENT_SECRET', ''); | |
$authorizeURL = 'https://github.com/login/oauth/authorize'; | |
$tokenURL = 'https://github.com/login/oauth/access_token'; | |
$apiURLBase = 'https://api.github.com/'; | |
session_start(); |
ffmpeg -i /path/to/video.mp4 -ss 00:00:5 -vframes 1 -y /path/to/preview.png |
<?php | |
/** | |
* Part of Ezset project. | |
* | |
* @copyright Copyright (C) 2015 {ORGANIZATION}. All rights reserved. | |
* @license GNU General Public License version 2 or later; | |
*/ | |
namespace MyEzset\Listener\ModuleRedirect; |
<modification> | |
<id>Add composer</id> | |
<version>1.0</version> | |
<vqmver>1.0.8</vqmver> | |
<author>Simon Asika</author> | |
<file name="system/startup.php"> | |
<operation> | |
<search position="after"><![CDATA[ | |
require_once(DIR_SYSTEM . 'helper/utf8.php'); | |
]]></search> |
<?php | |
class BlogRouter extends JComponentRouterBase | |
{ | |
public function build(&$queries) | |
{ | |
$segments = array(); | |
$params = array( | |
'view', |
<?php | |
// Get Base URI | |
$baseUri = str_replace($_SERVER['DOCUMENT_ROOT'], '', dirname($_SERVER['SCRIPT_FILENAME'])); | |
$http = str_replace(array('/', '\\'), '/', $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . $baseUri . '/'); | |
$catalog = explode('/', $http); | |
array_pop($catalog); | |
array_pop($catalog); | |
$catalog = implode('/', $catalog) . '/'; |