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 | |
# hex2rgba | |
# converts hex value from ColorPicker TV to rgba value | |
# NOTE that the ColorPicker TV must use the default output option | |
# based on function from http://mekshq.com/how-to-convert-hexadecimal-color-code-to-rgb-or-rgba-using-php/ | |
if (!function_exists('hex2rgba')) { | |
function hex2rgba($color, $opacity = false) { | |
$default = 'rgb(0,0,0)'; | |
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 | |
// Facebook App id & secret | |
$fb_app_id = isset($fb_app_id) ? $fb_app_id : NULL; | |
$fb_app_secret = isset($fb_app_secret) ? $fb_app_secret : NULL; | |
$access_token = $fb_app_id . '|' . $fb_app_secret; | |
// Other options | |
$page_id = isset($page_id) ? $page_id : NULL ; | |
$chunk = isset($chunk) ? $chunk : 'getPageFeedTpl' ; |