=" ) ) {
return true;
}
}
return false;
}
}
if( ! function_exists( 'br_wc_get_product_id' ) ){
function br_wc_get_product_id($product) {
if( method_exists($product, 'get_id') ) {
return $product->get_id();
} else {
return @ $product->id;
}
}
}
if( ! function_exists( 'br_wc_get_product_post' ) ){
function br_wc_get_product_post($product) {
$product_id = br_wc_get_product_id($product);
return get_post( $product_id );
}
}
if( ! function_exists( 'br_wc_get_product_attr' ) ){
function br_wc_get_product_attr($product, $attr, $data = '') {
switch($attr) {
case 'child':
if( function_exists('wc_get_product') ) {
$return = wc_get_product($data);
} else {
$return = $product->get_child($data);
}
break;
default:
if( method_exists($product, 'get_'.$attr) ) {
$return = $product->{'get_'.$attr}('edit');
} else {
$return = $product->{$attr};
}
break;
}
return $return;
}
}
if( ! function_exists( 'br_is_plugin_active' ) ) {
/**
* Public function to add to plugin settings buttons to upload or select icons
*
* @var $plugin_name - should be class name without BeRocket_ part
*
* @return boolean
*/
function br_is_plugin_active( $plugin_name, $version = '1.0.0.0', $version_end = '9.9.9.9' ) {
if ( defined( "BeRocket_" . $plugin_name . "_version" ) &&
constant( "BeRocket_" . $plugin_name . "_version" ) >= $version &&
constant( "BeRocket_" . $plugin_name . "_version" ) <= $version_end
) {
return true;
}
return false;
}
}
if( ! function_exists( 'berocket_insert_to_array' ) ) {
/**
* Public function to select color
*
* @param array $array - array with options
* @param string $key_in_array - key in array where additional options must be added
* @param array $array_to_insert - array with additional options
* @param boolean $before - insert additional options before option with key $key_in_array
*
* @return string html code with all needed blocks and buttons
*/
function berocket_insert_to_array($array, $key_in_array, $array_to_insert, $before = false) {
$position = array_search($key_in_array, array_keys($array), true);
if( $position !== FALSE ) {
if( ! $before ) {
$position++;
}
$array = array_merge(array_slice($array, 0, $position, true),
$array_to_insert,
array_slice($array, $position, NULL, true));
}
return $array;
}
}
if( ! function_exists( 'br_color_picker' ) ) {
/**
* Public function to select color
*
* @param string $name - input name
* @param string $value - current value color
* @param string $default - default value color
* @param array $additional - array with additional settings array:
* boolean default_button - display button to set color to default value
* string class - additional classes for input with color value
* string extra - need to add data-something="5"? use this field. It will add data as is
*
* @return string html code with all needed blocks and buttons
*/
function br_color_picker($name, $value, $default, $additional = array()) {
$default_button = ( isset($additional['default_button']) ? $additional['default_button'] : true );
$class = ( ( isset($additional['class']) && trim( $additional['class'] ) ) ? ' ' . trim( $additional['class'] ) : '' );
$extra = ( ( isset($additional['extra']) && trim( $additional['extra'] ) ) ? ' ' . trim( $additional['extra'] ) : '' );
$default = ( isset($default) && strlen($default) > 1 ? ( $default == -1 ? '' : ( $default[0] == '#' ? $default : '#' . $default ) ) : '#000000' );
$value = ( empty($value) ? $default : ( $value[0] == '#' ? $value : '#' . $value ) );
$return = '';
$return .= '
';
if( $default_button ) {
$return .= '
';
}
$return .= '
';
return $return;
}
}
if ( ! function_exists( 'br_upload_image' ) ) {
/**
* Public function to upload images or select it from media library
*
* @param string $name - input name
* @param string $value - current value link to image
* @param array $additional - array with additional settings array:
* boolean remove_button - display button to remove image
* string class - additional classes for input with image value link
* string extra - need to add data-something="5"? use this field. It will add data as is
*
* @return string html code with all needed blocks and buttons
*/
function br_upload_image( $name, $value, $additional = array() ) {
$remove_button = ( isset($additional['remove_button']) ? $additional['remove_button'] : true );
$class = ( ( isset($additional['class']) && trim( $additional['class'] ) ) ? ' ' . trim( $additional['class'] ) : '' );
$extra = ( ( isset($additional['extra']) && trim( $additional['extra'] ) ) ? ' ' . trim( $additional['extra'] ) : '' );
$result = '';
$result .= '
' . ( empty($value) ? '' : '' ) . '
';
if ( $remove_button ) {
$result .= ' ';
}
$result .= '
';
return $result;
}
}
if ( ! function_exists( 'berocket_fa_dark' ) ) {
function berocket_fa_dark () {
global $berocket_fa_dark;
$result = '';
if( empty($berocket_fa_dark) ) {
$fa_icons = fa_icons_list();
$result = '
';
$berocket_fa_dark = true;
}
return $result;
}
}
if ( ! function_exists( 'br_fontawesome_image' ) ) {
/**
* Public function to upload images or select it from media library
*
* @param string $name - input name
* @param string $value - current value link to image
* @param array $additional - array with additional settings array:
* boolean remove_button - display button to remove image
* string class - additional classes for input with image value link
* string extra - need to add data-something="5"? use this field. It will add data as is
*
* @return string html code with all needed blocks and buttons
*/
function br_fontawesome_image( $name, $value, $additional = array() ) {
$remove_button = ( isset($additional['remove_button']) ? $additional['remove_button'] : true );
$class = ( ( isset($additional['class']) && trim( $additional['class'] ) ) ? ' ' . trim( $additional['class'] ) : '' );
$extra = ( ( isset($additional['extra']) && trim( $additional['extra'] ) ) ? ' ' . trim( $additional['extra'] ) : '' );
$result = '';
$result .= berocket_fa_dark();
$result .= '
' . ( empty($value) ? '' : (substr($value, 0, 3) == 'fa-' ? ' ' : '' ) ) . '
';
if ( $remove_button ) {
$result .= ' ';
}
$result .= '
';
return $result;
}
}
if ( ! function_exists( 'br_select_fontawesome' ) ) {
/**
* Public function to upload images or select it from media library
*
* @param string $name - input name
* @param string $value - current value FA icon
* @param array $additional - array with additional settings array:
* boolean remove_button - display button to remove image
* string class - additional classes for input with image value link
* string extra - need to add data-something="5"? use this field. It will add data as is
*
* @return string html code with all needed blocks and buttons
*/
function br_select_fontawesome( $name, $value, $additional = array() ) {
$remove_button = ( isset($additional['remove_button']) ? $additional['remove_button'] : true );
$class = ( ( isset($additional['class']) && trim( $additional['class'] ) ) ? ' ' . trim( $additional['class'] ) : '' );
$extra = ( ( isset($additional['extra']) && trim( $additional['extra'] ) ) ? ' ' . trim( $additional['extra'] ) : '' );
$result = '';
$result .= berocket_fa_dark();
$result .= '
' . ( empty($value) ? '' : ' ' ) . '
';
if ( $remove_button ) {
$result .= ' ';
}
$result .= '
';
return $result;
}
}
if( ! function_exists( 'br_products_selector' ) ) {
function br_products_selector($name, $value, $additional = array()) {
$multiple = ( isset($additional['multiple']) ? $additional['multiple'] : true );
$class = ( ( isset($additional['class']) && trim( $additional['class'] ) ) ? ' ' . trim( $additional['class'] ) : '' );
$extra = ( ( isset($additional['extra']) && trim( $additional['extra'] ) ) ? ' ' . trim( $additional['extra'] ) : '' );
$action = ( isset($additional['action']) ? $additional['action'] : 'woocommerce_json_search_products_and_variations' );
if ( $class ) {
$class = " class='" . $class . "'";
}
if( $multiple ) {
$name = $name . '[]';
}
$value = ( ! empty($value) ? ( is_array($value) ? $value : array($value) ) : array() );
$html = '';
return $html;
}
}
if( ! function_exists( 'br_condition_builder' ) ) {
function br_condition_builder($name, $value, $additional = array()) {
ob_start();
include_once(plugin_dir_path( __DIR__ ) . "templates/conditions.php");
$html = ob_get_clean();
return $html;
}
function br_condition_check($conditions_data, $hook_name, $additional = array()) {
if( ! is_array($conditions_data) || count($conditions_data) == 0 ) {
$condition_status = true;
} else {
$condition_status = false;
foreach($conditions_data as $conditions) {
$condition_status = false;
foreach($conditions as $condition) {
$condition_status = apply_filters($hook_name . '_check_type_' . $condition['type'], false, $condition, $additional);
if( !$condition_status ) {
break;
}
}
if( $condition_status ) {
break;
}
}
}
return $condition_status;
}
function br_supcondition_equal($name, $options, $extension = array()) {
$equal = 'equal';
if( is_array($options) && isset($options['equal'] ) ) {
$equal = $options['equal'];
}
$equal_list = array(
'equal' => __('Equal', 'BeRocket_products_label_domain'),
'not_equal' => __('Not equal', 'BeRocket_products_label_domain'),
);
if( ! empty($extension['equal_less']) ) {
$equal_list['equal_less'] = __('Equal or less', 'BeRocket_products_label_domain');
}
if( ! empty($extension['equal_more']) ) {
$equal_list['equal_more'] = __('Equal or more', 'BeRocket_products_label_domain');
}
$html = '';
foreach($equal_list as $equal_slug => $equal_name) {
$html .= '' . $equal_name . ' ';
}
$html .= ' ';
return $html;
}
function br_supcondition_check($value1, $value2, $condition) {
$equal = 'equal';
if( is_array($condition) && isset($condition['equal'] ) ) {
$equal = $condition['equal'];
}
$check = true;
switch($equal) {
case 'equal':
$check = $value1 == $value2;
break;
case 'not_equal':
$check = $value1 != $value2;
break;
case 'equal_less':
$check = $value1 <= $value2;
break;
case 'equal_more':
$check = $value1 >= $value2;
break;
}
return $check;
}
}
if ( ! function_exists( 'berocket_array_filter_editable' ) ) {
function berocket_array_filter_editable( $product ) {
return $product && is_a( $product, 'WC_Product' ) && current_user_can( 'edit_product', $product->get_id() );
}
}
if ( ! function_exists( 'berocket_font_select_upload' ) ) {
/**
* Public function to add to plugin settings buttons to upload or select icons
*
* @param string $text - Text above buttons
* @param string $id - input ID
* @param string $name - input name
* @param string $value - current value link or font awesome icon class
* @param bolean $show_fa - show font awesome button and generate font awesome icon table
* @param bolean $show_upload - show upload button that allow upload custom icons
* @param bolean $show_remove - show remove button that allow clear input
* @param string $data_sc - add data-sc options with this value into input
*
* @return string html code with all needed blocks and buttons
*/
function berocket_font_select_upload( $text, $id, $name, $value, $show_fa = true, $show_upload = true, $show_remove = true, $data_sc = '' ) {
if ( $show_fa ) {
$font_awesome_list = fa_icons_list();
$font_awesome = "";
foreach ( $font_awesome_list as $font ) {
$font_awesome .= ' ';
}
}
$result = '';
return $result;
}
}
if( ! function_exists( 'br_get_value_from_array' ) ){
function br_get_value_from_array(&$arr, $index, $default = '') {
if( ! isset($arr) || ! is_array($arr) ) {
return $default;
}
$array = $arr;
if( ! is_array($index) ) {
$index = array($index);
}
foreach($index as $i) {
if( ! isset($array[$i]) ) {
return $default;
} else {
$array = $array[$i];
}
}
return $array;
}
}
if( ! function_exists( 'berocket_isset' ) ){
function berocket_isset(&$var, $property_name = false, $default = null) {
if( $property_name === false ) {
return ( isset($var) ? $var : $default );
} else {
return ( isset($var) ? ( property_exists($var, $property_name) ? $var->$property_name : $default ) : $default );
}
}
}
if( ! function_exists( 'berocket_sanitize_array' ) ){
function berocket_sanitize_array($array) {
if( is_array($array) ) {
$array = array_map('berocket_sanitize_array', $array);
} else {
$filtered = wp_check_invalid_utf8( $array );
// Remove any attribute starting with "on" or xmlns
$filtered = preg_replace('#(<[^>]+?[\x00-\x20"\'])(?:on|xmlns)[^>]*+>#iu', '$1>', $filtered);
// Remove javascript: and vbscript: protocols
$filtered = preg_replace('#([a-z]*)[\x00-\x20]*=[\x00-\x20]*([`\'"]*)[\x00-\x20]*j[\x00-\x20]*a[\x00-\x20]*v[\x00-\x20]*a[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:#iu', '$1=$2nojavascript...', $filtered);
$filtered = preg_replace('#([a-z]*)[\x00-\x20]*=([\'"]*)[\x00-\x20]*v[\x00-\x20]*b[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:#iu', '$1=$2novbscript...', $filtered);
$filtered = preg_replace('#([a-z]*)[\x00-\x20]*=([\'"]*)[\x00-\x20]*-moz-binding[\x00-\x20]*:#u', '$1=$2nomozbinding...', $filtered);
// Only works in IE:
$filtered = preg_replace('#(<[^>]+?)style[\x00-\x20]*=[\x00-\x20]*[`\'"]*.*?expression[\x00-\x20]*\([^>]*+>#i', '$1>', $filtered);
$filtered = preg_replace('#(<[^>]+?)style[\x00-\x20]*=[\x00-\x20]*[`\'"]*.*?behaviour[\x00-\x20]*\([^>]*+>#i', '$1>', $filtered);
$filtered = preg_replace('#(<[^>]+?)style[\x00-\x20]*=[\x00-\x20]*[`\'"]*.*?s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:*[^>]*+>#iu', '$1>', $filtered);
// Remove namespaced elements (we do not need them)
$data = preg_replace('#*\w+:\w[^>]*+>#i', '', $filtered);
do
{
// Remove really unwanted tags
$old_data = $filtered;
$filtered = preg_replace('#*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|i(?:frame|layer)|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|title|xml)[^>]*+>#i', '', $filtered);
}
while ($old_data !== $filtered);
$found = false;
while ( preg_match('/%[a-f0-9]{2}/i', $filtered, $match) ) {
$filtered = str_replace($match[0], '', $filtered);
$found = true;
}
if ( $found ) {
// Strip out the whitespace that may now exist after removing the octets.
$filtered = preg_replace('/ +/', ' ', $filtered);
}
$array = $filtered;
}
return $array;
}
}
if( ! function_exists( 'berocket_get_memory_limit' ) ){
function berocket_get_memory_limit($memory_limit = '') {
if( ! empty($memory_limit) ) {
$val = $memory_limit;
} elseif( function_exists('ini_get') ) {
$val = ini_get('memory_limit');
} else {
$val = '128M';
}
$val = trim($val);
if( preg_match('#([0-9]+)[\s]*([a-z]+)#i', $val, $matches) != 1 ) {
preg_match('#([0-9]+)[\s]*([a-z]+)#i', '128M', $matches);
}
$last = '';
if(isset($matches[2])){
$last = $matches[2];
}
if(isset($matches[1])){
$val = (int) $matches[1];
}
switch (strtolower($last))
{
case 'g':
case 'gb':
$val *= 1024;
case 'm':
case 'mb':
$val *= 1024;
case 'k':
case 'kb':
$val *= 1024;
}
return (int) $val;
}
}
if( ! function_exists( 'berocket_get_memory_data' ) ){
function berocket_get_memory_data($check_value = 0, $memory_limit = 0) {
$memory_limit = berocket_get_memory_limit($memory_limit);
$memory_usage = memory_get_usage();
$memory_left = $memory_limit - $memory_usage;
$memory_check = $memory_left - $check_value;
return array('memory_limit' => $memory_limit, 'memory_usage' => $memory_usage, 'memory_left' => $memory_left, 'memory_check' => $memory_check);
}
}
if ( ! function_exists( 'fa_icons_list' ) ) {
function fa_icons_list() {
return array(
"fa-glass",
"fa-music",
"fa-search",
"fa-envelope-o",
"fa-heart",
"fa-star",
"fa-star-o",
"fa-user",
"fa-film",
"fa-th-large",
"fa-th",
"fa-th-list",
"fa-check",
"fa-times",
"fa-search-plus",
"fa-search-minus",
"fa-power-off",
"fa-signal",
"fa-cog",
"fa-trash-o",
"fa-home",
"fa-file-o",
"fa-clock-o",
"fa-road",
"fa-download",
"fa-arrow-circle-o-down",
"fa-arrow-circle-o-up",
"fa-inbox",
"fa-play-circle-o",
"fa-repeat",
"fa-refresh",
"fa-list-alt",
"fa-lock",
"fa-flag",
"fa-headphones",
"fa-volume-off",
"fa-volume-down",
"fa-volume-up",
"fa-qrcode",
"fa-barcode",
"fa-tag",
"fa-tags",
"fa-book",
"fa-bookmark",
"fa-print",
"fa-camera",
"fa-font",
"fa-bold",
"fa-italic",
"fa-text-height",
"fa-text-width",
"fa-align-left",
"fa-align-center",
"fa-align-right",
"fa-align-justify",
"fa-list",
"fa-outdent",
"fa-indent",
"fa-video-camera",
"fa-picture-o",
"fa-pencil",
"fa-map-marker",
"fa-adjust",
"fa-tint",
"fa-pencil-square-o",
"fa-share-square-o",
"fa-check-square-o",
"fa-arrows",
"fa-step-backward",
"fa-fast-backward",
"fa-backward",
"fa-play",
"fa-pause",
"fa-stop",
"fa-forward",
"fa-fast-forward",
"fa-step-forward",
"fa-eject",
"fa-chevron-left",
"fa-chevron-right",
"fa-plus-circle",
"fa-minus-circle",
"fa-times-circle",
"fa-check-circle",
"fa-question-circle",
"fa-info-circle",
"fa-crosshairs",
"fa-times-circle-o",
"fa-check-circle-o",
"fa-ban",
"fa-arrow-left",
"fa-arrow-right",
"fa-arrow-up",
"fa-arrow-down",
"fa-share",
"fa-expand",
"fa-compress",
"fa-plus",
"fa-minus",
"fa-asterisk",
"fa-exclamation-circle",
"fa-gift",
"fa-leaf",
"fa-fire",
"fa-eye",
"fa-eye-slash",
"fa-exclamation-triangle",
"fa-plane",
"fa-calendar",
"fa-random",
"fa-comment",
"fa-magnet",
"fa-chevron-up",
"fa-chevron-down",
"fa-retweet",
"fa-shopping-cart",
"fa-folder",
"fa-folder-open",
"fa-arrows-v",
"fa-arrows-h",
"fa-bar-chart",
"fa-twitter-square",
"fa-facebook-square",
"fa-camera-retro",
"fa-key",
"fa-cogs",
"fa-comments",
"fa-thumbs-o-up",
"fa-thumbs-o-down",
"fa-star-half",
"fa-heart-o",
"fa-sign-out",
"fa-linkedin-square",
"fa-thumb-tack",
"fa-external-link",
"fa-sign-in",
"fa-trophy",
"fa-github-square",
"fa-upload",
"fa-lemon-o",
"fa-phone",
"fa-square-o",
"fa-bookmark-o",
"fa-phone-square",
"fa-twitter",
"fa-facebook",
"fa-github",
"fa-unlock",
"fa-credit-card",
"fa-rss",
"fa-hdd-o",
"fa-bullhorn",
"fa-bell",
"fa-certificate",
"fa-hand-o-right",
"fa-hand-o-left",
"fa-hand-o-up",
"fa-hand-o-down",
"fa-arrow-circle-left",
"fa-arrow-circle-right",
"fa-arrow-circle-up",
"fa-arrow-circle-down",
"fa-globe",
"fa-wrench",
"fa-tasks",
"fa-filter",
"fa-briefcase",
"fa-arrows-alt",
"fa-users",
"fa-link",
"fa-cloud",
"fa-flask",
"fa-scissors",
"fa-files-o",
"fa-paperclip",
"fa-floppy-o",
"fa-square",
"fa-bars",
"fa-list-ul",
"fa-list-ol",
"fa-strikethrough",
"fa-underline",
"fa-table",
"fa-magic",
"fa-truck",
"fa-pinterest",
"fa-pinterest-square",
"fa-google-plus-square",
"fa-google-plus",
"fa-money",
"fa-caret-down",
"fa-caret-up",
"fa-caret-left",
"fa-caret-right",
"fa-columns",
"fa-sort",
"fa-sort-desc",
"fa-sort-asc",
"fa-envelope",
"fa-linkedin",
"fa-undo",
"fa-gavel",
"fa-tachometer",
"fa-comment-o",
"fa-comments-o",
"fa-bolt",
"fa-sitemap",
"fa-umbrella",
"fa-clipboard",
"fa-lightbulb-o",
"fa-exchange",
"fa-cloud-download",
"fa-cloud-upload",
"fa-user-md",
"fa-stethoscope",
"fa-suitcase",
"fa-bell-o",
"fa-coffee",
"fa-cutlery",
"fa-file-text-o",
"fa-building-o",
"fa-hospital-o",
"fa-ambulance",
"fa-medkit",
"fa-fighter-jet",
"fa-beer",
"fa-h-square",
"fa-plus-square",
"fa-angle-double-left",
"fa-angle-double-right",
"fa-angle-double-up",
"fa-angle-double-down",
"fa-angle-left",
"fa-angle-right",
"fa-angle-up",
"fa-angle-down",
"fa-desktop",
"fa-laptop",
"fa-tablet",
"fa-mobile",
"fa-circle-o",
"fa-quote-left",
"fa-quote-right",
"fa-spinner",
"fa-circle",
"fa-reply",
"fa-github-alt",
"fa-folder-o",
"fa-folder-open-o",
"fa-smile-o",
"fa-frown-o",
"fa-meh-o",
"fa-gamepad",
"fa-keyboard-o",
"fa-flag-o",
"fa-flag-checkered",
"fa-terminal",
"fa-code",
"fa-reply-all",
"fa-star-half-o",
"fa-location-arrow",
"fa-crop",
"fa-code-fork",
"fa-chain-broken",
"fa-question",
"fa-info",
"fa-exclamation",
"fa-superscript",
"fa-subscript",
"fa-eraser",
"fa-puzzle-piece",
"fa-microphone",
"fa-microphone-slash",
"fa-shield",
"fa-calendar-o",
"fa-fire-extinguisher",
"fa-rocket",
"fa-maxcdn",
"fa-chevron-circle-left",
"fa-chevron-circle-right",
"fa-chevron-circle-up",
"fa-chevron-circle-down",
"fa-html5",
"fa-css3",
"fa-anchor",
"fa-unlock-alt",
"fa-bullseye",
"fa-ellipsis-h",
"fa-ellipsis-v",
"fa-rss-square",
"fa-play-circle",
"fa-ticket",
"fa-minus-square",
"fa-minus-square-o",
"fa-level-up",
"fa-level-down",
"fa-check-square",
"fa-pencil-square",
"fa-external-link-square",
"fa-share-square",
"fa-compass",
"fa-caret-square-o-down",
"fa-caret-square-o-up",
"fa-caret-square-o-right",
"fa-eur",
"fa-gbp",
"fa-usd",
"fa-inr",
"fa-jpy",
"fa-rub",
"fa-krw",
"fa-btc",
"fa-file",
"fa-file-text",
"fa-sort-alpha-asc",
"fa-sort-alpha-desc",
"fa-sort-amount-asc",
"fa-sort-amount-desc",
"fa-sort-numeric-asc",
"fa-sort-numeric-desc",
"fa-thumbs-up",
"fa-thumbs-down",
"fa-youtube-square",
"fa-youtube",
"fa-xing",
"fa-xing-square",
"fa-youtube-play",
"fa-dropbox",
"fa-stack-overflow",
"fa-instagram",
"fa-flickr",
"fa-adn",
"fa-bitbucket",
"fa-bitbucket-square",
"fa-tumblr",
"fa-tumblr-square",
"fa-long-arrow-down",
"fa-long-arrow-up",
"fa-long-arrow-left",
"fa-long-arrow-right",
"fa-apple",
"fa-windows",
"fa-android",
"fa-linux",
"fa-dribbble",
"fa-skype",
"fa-foursquare",
"fa-trello",
"fa-female",
"fa-male",
"fa-gittip",
"fa-sun-o",
"fa-moon-o",
"fa-archive",
"fa-bug",
"fa-vk",
"fa-weibo",
"fa-renren",
"fa-pagelines",
"fa-stack-exchange",
"fa-arrow-circle-o-right",
"fa-arrow-circle-o-left",
"fa-caret-square-o-left",
"fa-dot-circle-o",
"fa-wheelchair",
"fa-vimeo-square",
"fa-try",
"fa-plus-square-o",
"fa-space-shuttle",
"fa-slack",
"fa-envelope-square",
"fa-wordpress",
"fa-openid",
"fa-university",
"fa-graduation-cap",
"fa-yahoo",
"fa-google",
"fa-reddit",
"fa-reddit-square",
"fa-stumbleupon-circle",
"fa-stumbleupon",
"fa-delicious",
"fa-digg",
"fa-pied-piper",
"fa-pied-piper-alt",
"fa-drupal",
"fa-joomla",
"fa-language",
"fa-fax",
"fa-building",
"fa-child",
"fa-paw",
"fa-spoon",
"fa-cube",
"fa-cubes",
"fa-behance",
"fa-behance-square",
"fa-steam",
"fa-steam-square",
"fa-recycle",
"fa-car",
"fa-taxi",
"fa-tree",
"fa-spotify",
"fa-deviantart",
"fa-soundcloud",
"fa-database",
"fa-file-pdf-o",
"fa-file-word-o",
"fa-file-excel-o",
"fa-file-powerpoint-o",
"fa-file-image-o",
"fa-file-archive-o",
"fa-file-audio-o",
"fa-file-video-o",
"fa-file-code-o",
"fa-vine",
"fa-codepen",
"fa-jsfiddle",
"fa-life-ring",
"fa-circle-o-notch",
"fa-rebel",
"fa-empire",
"fa-git-square",
"fa-git",
"fa-hacker-news",
"fa-tencent-weibo",
"fa-qq",
"fa-weixin",
"fa-paper-plane",
"fa-paper-plane-o",
"fa-history",
"fa-circle-thin",
"fa-header",
"fa-paragraph",
"fa-sliders",
"fa-share-alt",
"fa-share-alt-square",
"fa-bomb",
"fa-futbol-o",
"fa-tty",
"fa-binoculars",
"fa-plug",
"fa-slideshare",
"fa-twitch",
"fa-yelp",
"fa-newspaper-o",
"fa-wifi",
"fa-calculator",
"fa-paypal",
"fa-google-wallet",
"fa-cc-visa",
"fa-cc-mastercard",
"fa-cc-discover",
"fa-cc-amex",
"fa-cc-paypal",
"fa-cc-stripe",
"fa-bell-slash",
"fa-bell-slash-o",
"fa-trash",
"fa-copyright",
"fa-at",
"fa-eyedropper",
"fa-paint-brush",
"fa-birthday-cake",
"fa-area-chart",
"fa-pie-chart",
"fa-line-chart",
"fa-lastfm",
"fa-lastfm-square",
"fa-toggle-off",
"fa-toggle-on",
"fa-bicycle",
"fa-bus",
"fa-ioxhost",
"fa-angellist",
"fa-cc",
"fa-ils",
"fa-meanpath",
);
}
}
/**
* BeRocket Debug function
*/
if ( ! function_exists( "bd" ) ) {
function bd( $var = '', $tag = 'pre', $die = false ) {
if ( $tag === true or $tag === 1 ) {
$tag = 'pre';
$die = true;
}
echo "<{$tag}>";
print_r( $var );
echo "{$tag}>";
if ( $die ) {
die();
}
}
}