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 | |
const HOST = 'HOST.voog.com'; | |
const TOKEN = 'MY_TOKEN'; | |
// Get first 250 articles | |
$articles = curlRequest('articles?per_page=250'); | |
foreach ($articles as $article) | |
{ | |
$newData = array( |
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 | |
/** | |
* Custom Joomla! form field to generate extensions dropdown list | |
* | |
* @author Rene Korss <[email protected]> | |
* @copyright 2016 All rights reserved. | |
* @license MIT | |
* | |
* Usage examples: | |
* |
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 | |
/** | |
* Custom Joomla! form field to generate minicolors input with optional opacity slider | |
* | |
* NOTE: replace PATH_TO_CUSTOM_MINICOLORS with path to minicolors files. See below. | |
* | |
* @author Rene Korss <[email protected]> | |
* @copyright 2016 All rights reserved. | |
* @license MIT | |
* |
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 | |
/** | |
* Wordpress order by multiple meta key values | |
* | |
* @author Rene Korss <[email protected]> | |
*/ | |
// Override orderby | |
function orderby_multiple_meta_keys( $orderby ){ |
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 | |
function glob_recursive($pattern, $flags = 0) { | |
$files = glob($pattern, $flags); | |
foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir) { | |
$files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags)); | |
} | |
return $files; | |
} | |
$root = $_GET['root']; |