????
| Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/framework/ |
| Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/framework/arrays.php |
<?php
/**
* Useful functions that return arrays
*
* @package Wanderfuls WordPress Theme
* @subpackage Framework
* @since 2.1.3
*/
/**
* Returns array of Social Options for the Top Bar
*
* @since 1.6.0
*/
function tb_topbar_social_options() {
return apply_filters ( 'tb_topbar_social_options', array(
'twitter' => array(
'label' => 'Twitter',
'icon_class' => 'fa fa-twitter',
),
'facebook' => array(
'label' => 'Facebook',
'icon_class' => 'fa fa-facebook',
),
'googleplus' => array(
'label' => 'Google Plus',
'icon_class' => 'fa fa-google-plus',
),
'pinterest' => array(
'label' => 'Pinterest',
'icon_class' => 'fa fa-pinterest',
),
'dribbble' => array(
'label' => 'Dribbble',
'icon_class' => 'fa fa-dribbble',
),
'vk' => array(
'label' => 'Vk',
'icon_class' => 'fa fa-vk',
),
'instagram' => array(
'label' => 'Instagram',
'icon_class' => 'fa fa-instagram',
),
'linkedin' => array(
'label' => 'LinkedIn',
'icon_class' => 'fa fa-linkedin',
),
'tumblr' => array(
'label' => 'Tumblr',
'icon_class' => 'fa fa-tumblr',
),
'github' => array(
'label' => 'Github',
'icon_class' => 'fa fa-github-alt',
),
'flickr' => array(
'label' => 'Flickr',
'icon_class' => 'fa fa-flickr',
),
'skype' => array(
'label' => 'Skype',
'icon_class' => 'fa fa-skype',
),
'youtube' => array(
'label' => 'Youtube',
'icon_class' => 'fa fa-youtube',
),
'vimeo' => array(
'label' => 'Vimeo',
'icon_class' => 'fa fa-vimeo-square',
),
'vine' => array(
'label' => 'Vine',
'icon_class' => 'fa fa-vine',
),
'xing' => array(
'label' => 'Xing',
'icon_class' => 'fa fa-xing',
),
'yelp' => array(
'label' => 'Yelp',
'icon_class' => 'fa fa-yelp',
),
'tripadvisor' => array(
'label' => 'Tripadvisor',
'icon_class' => 'fa fa-tripadvisor',
),
'rss' => array(
'label' => __( 'RSS', 'tb' ),
'icon_class' => 'fa fa-rss',
),
'email' => array(
'label' => __( 'Email', 'tb' ),
'icon_class' => 'fa fa-envelope',
),
) );
}
/**
* Array of social profiles for staff members
*
* @since 1.5.4
*/
function tb_staff_social_array() {
return apply_filters( 'tb_staff_social_array', array(
'twitter' => array (
'key' => 'twitter',
'meta' => 'tb_staff_twitter',
'icon_class' => 'fa fa-twitter',
'label' => 'Twitter',
),
'facebook' => array (
'key' => 'facebook',
'meta' => 'tb_staff_facebook',
'icon_class' => 'fa fa-facebook',
'label' => 'Facebook',
),
'instagram' => array (
'key' => 'instagram',
'meta' => 'tb_staff_instagram',
'icon_class' => 'fa fa-instagram',
'label' => 'Instagram',
),
'google-plus' => array (
'key' => 'google-plus',
'meta' => 'tb_staff_google-plus',
'icon_class' => 'fa fa-google-plus',
'label' => 'Google Plus',
),
'linkedin' => array (
'key' => 'linkedin',
'meta' => 'tb_staff_linkedin',
'icon_class' => 'fa fa-linkedin',
'label' => 'Linkedin',
),
'dribbble' => array (
'key' => 'dribbble',
'meta' => 'tb_staff_dribbble',
'icon_class' => 'fa fa-dribbble',
'label' => 'Dribbble',
),
'vk' => array (
'key' => 'vk',
'meta' => 'tb_staff_vk',
'icon_class' => 'fa fa-vk',
'label' => 'VK',
),
'skype' => array (
'key' => 'skype',
'meta' => 'tb_staff_skype',
'icon_class' => 'fa fa-skype',
'label' => 'Skype',
),
'phone_number' => array (
'key' => 'phone_number',
'meta' => 'tb_staff_phone_number',
'icon_class' => 'fa fa-phone',
'label' => __( 'Phone Number', 'tb' ),
),
'email' => array (
'key' => 'email',
'meta' => 'tb_staff_email',
'icon_class' => 'fa fa-envelope',
'label' => __( 'Email', 'tb' ),
),
'website' => array (
'key' => 'website',
'meta' => 'tb_staff_website',
'icon_class' => 'fa fa-external-link-square',
'label' => __( 'Website', 'tb' ),
),
) );
}
/**
* Creates an array for adding the staff social options to the metaboxes
*
* @since 1.5.4
*/
function tb_staff_social_meta_array() {
$profiles = tb_staff_social_array();
$array = array();
foreach ( $profiles as $profile ) {
$array[] = array(
'title' => '<span class="'. $profile['icon_class'] .'"></span>' . $profile['label'],
'id' => $profile['meta'],
'type' => 'text',
'std' => '',
);
}
return $array;
}
/**
* Grid Columns
*
* @since 2.0.0
*/
function tb_grid_columns() {
return apply_filters( 'tb_grid_columns', array(
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'6' => '6',
'7' => '7',
) );
}
/**
* Grid Column Gaps
*
* @since 2.0.0
*/
function tb_column_gaps() {
return apply_filters( 'tb_column_gaps', array(
'' => __( 'Default', 'tb' ),
'none' => '0px',
'5' => '5px',
'10' => '10px',
'15' => '15px',
'20' => '20px',
'25' => '25px',
'30' => '30px',
'35' => '35px',
'40' => '40px',
'50' => '50px',
'60' => '60px',
) );
}
/**
* Typography Styles
*
* @since 2.0.0
*/
function tb_typography_styles() {
return apply_filters( 'tb_typography_styles', array(
'' => __( 'Default', 'tb' ),
'light' => __( 'Light', 'tb' ),
'white' => __( 'White', 'tb' ),
'black' => __( 'Black', 'tb' ),
'none' => __( 'None', 'tb' ),
) );
}
/**
* Button styles
*
* @since 1.6.2
*/
function tb_button_styles() {
return apply_filters( 'tb_button_styles', array(
'' => __( 'Default', 'tb' ),
'flat' => _x( 'Flat', 'Theme Button Style', 'tb' ),
'graphical' => _x( 'Graphical', 'Theme Button Style', 'tb' ),
'clean' => _x( 'Clean', 'Theme Button Style', 'tb' ),
'three-d' => _x( '3D', 'Theme Button Style', 'tb' ),
'outline' => _x( 'Outline', 'Theme Button Style', 'tb' ),
'minimal-border' => _x( 'Minimal Border', 'Theme Button Style', 'tb' ),
) );
}
/**
* Button colors
*
* @since 1.6.2
*/
function tb_button_colors() {
return apply_filters( 'tb_button_colors', array(
'' => __( 'Default', 'tb' ),
'black' => __( 'Black', 'tb' ),
'blue' => __( 'Blue', 'tb' ),
'brown' => __( 'Brown', 'tb' ),
'grey' => __( 'Grey', 'tb' ),
'green' => __( 'Green', 'tb' ),
'gold' => __( 'Gold', 'tb' ),
'orange' => __( 'Orange', 'tb' ),
'pink' => __( 'Pink', 'tb' ),
'purple' => __( 'Purple', 'tb' ),
'red' => __( 'Red', 'tb' ),
'rosy' => __( 'Rosy', 'tb' ),
'teal' => __( 'Teal', 'tb' ),
'white' => __( 'White', 'tb' ),
) );
}
/**
* Array of image crop locations
*
* @link 2.0.0
*/
function tb_image_crop_locations() {
return array(
'' => __( 'Default', 'tb' ),
'left-top' => __( 'Top Left', 'tb' ),
'right-top' => __( 'Top Right', 'tb' ),
'center-top' => __( 'Top Center', 'tb' ),
'left-center' => __( 'Center Left', 'tb' ),
'right-center' => __( 'Center Right', 'tb' ),
'center-center' => __( 'Center Center', 'tb' ),
'left-bottom' => __( 'Bottom Left', 'tb' ),
'right-bottom' => __( 'Bottom Right', 'tb' ),
'center-bottom' => __( 'Bottom Center', 'tb' ),
);
}
/**
* Image Hovers
*
* @since 1.6.2
*/
function tb_image_hovers() {
return apply_filters( 'tb_image_hovers', array(
'' => __( 'Default', 'tb' ),
'opacity' => _x( 'Opacity', 'Image Hover', 'tb' ),
'grow' => _x( 'Grow', 'Image Hover', 'tb' ),
'shrink' => _x( 'Shrink', 'Image Hover', 'tb' ),
'side-pan' => _x( 'Side Pan', 'Image Hover', 'tb' ),
'vertical-pan' => _x( 'Vertical Pan', 'Image Hover', 'tb' ),
'tilt' => _x( 'Tilt', 'Image Hover', 'tb' ),
'blurr' => _x( 'Normal - Blurr', 'Image Hover', 'tb' ),
'blurr-invert' => _x( 'Blurr - Normal', 'Image Hover', 'tb' ),
'sepia' => _x( 'Sepia', 'Image Hover', 'tb' ),
'fade-out' => _x( 'Fade Out', 'Image Hover', 'tb' ),
'fade-in' => _x( 'Fade In', 'Image Hover', 'tb' ),
) );
}
/**
* Font Weights
*
* @since Wanderfuls 1.6.2
*/
function tb_font_weights() {
return apply_filters( 'tb_font_weights', array(
'' => __( 'Default', 'tb' ),
'normal' => _x( 'Normal', 'Font Weight', 'tb' ),
'semibold' => _x( 'Semibold', 'Font Weight', 'tb' ),
'bold' => _x( 'Bold', 'Font Weight', 'tb' ),
'bolder' => _x( 'Bolder', 'Font Weight', 'tb' ),
'100' => '100',
'200' => '200',
'300' => '300',
'400' => '400',
'500' => '500',
'600' => '600',
'700' => '700',
'800' => '800',
'900' => '900',
) );
}
/**
* Text Transform
*
* @since 1.6.2
*/
function tb_text_transforms() {
return array(
'' => __( 'Default', 'tb' ),
'none' => __( 'None', 'tb' ) ,
'capitalize' => __( 'Capitalize', 'tb' ),
'uppercase' => __( 'Uppercase', 'tb' ),
'lowercase' => __( 'Lowercase', 'tb' ),
);
}
/**
* Border Styles
*
* @since 1.6.0
*/
function tb_border_styles() {
return array(
'' => __( 'Default', 'tb' ),
'solid' => __( 'Solid', 'tb' ),
'dotted' => __( 'Dotted', 'tb' ),
'dashed' => __( 'Dashed', 'tb' ),
);
}
/**
* Alignments
*
* @since 1.6.0
*/
function tb_alignments() {
return array(
'' => __( 'Default', 'tb' ),
'left' => __( 'Left', 'tb' ),
'right' => __( 'Right', 'tb' ),
'center' => __( 'Center', 'tb' ),
);
}
/**
* Visibility
*
* @since 1.6.0
*/
function tb_visibility() {
return apply_filters( 'tb_visibility', array(
'' => __( 'Always Visible', 'tb' ),
'hidden-phone' => __( 'Hidden on Phones', 'tb' ),
'hidden-tablet' => __( 'Hidden on Tablets', 'tb' ),
'hidden-tablet-landscape' => __( 'Hidden on Tablets: Landscape', 'tb' ),
'hidden-tablet-portrait' => __( 'Hidden on Tablets: Portrait', 'tb' ),
'hidden-desktop' => __( 'Hidden on Desktop', 'tb' ),
'visible-desktop' => __( 'Visible on Desktop Only', 'tb' ),
'visible-phone' => __( 'Visible on Phones Only', 'tb' ),
'visible-tablet' => __( 'Visible on Tablets Only', 'tb' ),
'visible-tablet-landscape' => __( 'Visible on Tablets: Landscape Only', 'tb' ),
'visible-tablet-portrait' => __( 'Visible on Tablets: Portrait Only', 'tb' ),
) );
}
/**
* CSS Animations
*
* @since 1.6.0
*/
function tb_css_animations() {
return apply_filters( 'tb_css_animations', array(
'' => __( 'None', 'tb') ,
'top-to-bottom' => __( 'Top to bottom', 'tb' ),
'bottom-to-top' => __( 'Bottom to top', 'tb' ),
'left-to-right' => __( 'Left to right', 'tb' ),
'right-to-left' => __( 'Right to left', 'tb' ),
'appear' => __( 'Appear from center', 'tb' ),
) );
}
/**
* Array of Hover CSS animations
*
* @since 2.0.0
*/
function tb_hover_css_animations() {
return apply_filters( 'tb_hover_css_animations', array(
'' => __( 'Default', 'tb' ),
'shadow' => _x( 'Shadow', 'Hover Effect', 'tb' ),
'grow-shadow' => _x( 'Grow Shadow', 'Hover Effect', 'tb' ),
'float-shadow' => _x( 'Float Shadow', 'Hover Effect', 'tb' ),
'grow' => _x( 'Grow', 'Hover Effect', 'tb' ),
'shrink' => _x( 'Shrink', 'Hover Effect', 'tb' ),
'pulse' => _x( 'Pulse', 'Hover Effect', 'tb' ),
'pulse-grow' => _x( 'Pulse Grow', 'Hover Effect', 'tb' ),
'pulse-shrink' => _x( 'Pulse Shrink', 'Hover Effect', 'tb' ),
'push' => _x( 'Push', 'Hover Effect', 'tb' ),
'pop' => _x( 'Pop', 'Hover Effect', 'tb' ),
'bounce-in' => _x( 'Bounce In', 'Hover Effect', 'tb' ),
'bounce-out' => _x( 'Bounce Out', 'Hover Effect', 'tb' ),
'rotate' => _x( 'Rotate', 'Hover Effect', 'tb' ),
'grow-rotate' => _x( 'Grow Rotate', 'Hover Effect', 'tb' ),
'float' => _x( 'Float', 'Hover Effect', 'tb' ),
'sink' => _x( 'Sink', 'Hover Effect', 'tb' ),
'bob' => _x( 'Bob', 'Hover Effect', 'tb' ),
'hang' => _x( 'Hang', 'Hover Effect', 'tb' ),
'skew' => _x( 'Skew', 'Hover Effect', 'tb' ),
'skew-backward' => _x( 'Skew Backward', 'Hover Effect', 'tb' ),
'wobble-horizontal' => _x( 'Wobble Horizontal', 'Hover Effect', 'tb' ),
'wobble-vertical' => _x( 'Wobble Vertical', 'Hover Effect', 'tb' ),
'wobble-to-bottom-right' => _x( 'Wobble To Bottom Right', 'Hover Effect', 'tb' ),
'wobble-to-top-right' => _x( 'Wobble To Top Right', 'Hover Effect', 'tb' ),
'wobble-top' => _x( 'Wobble Top', 'Hover Effect', 'tb' ),
'wobble-bottom' => _x( 'Wobble Bottom', 'Hover Effect', 'tb' ),
'wobble-skew' => _x( 'Wobble Skew', 'Hover Effect', 'tb' ),
'buzz' => _x( 'Buzz', 'Hover Effect', 'tb' ),
'buzz-out' => _x( 'Buzz Out', 'Hover Effect', 'tb' ),
'glow' => _x( 'Glow', 'Hover Effect', 'tb' ),
'shadow-radial' => _x( 'Shadow Radial', 'Hover Effect', 'tb' ),
'box-shadow-outset' => _x( 'Box Shadow Outset', 'Hover Effect', 'tb' ),
'box-shadow-inset' => _x( 'Box Shadow Inset', 'Hover Effect', 'tb' ),
) );
}
/**
* Image filter styles
*
* @since 1.4.0
*/
function tb_image_filters() {
return apply_filters( 'tb_image_filters', array (
'' => __( 'None', 'tb' ),
'grayscale' => __( 'Grayscale', 'tb' ),
) );
}
/**
* Social Link styles
*
* @since 3.0.0
*/
function tb_social_button_styles() {
return apply_filters( 'tb_social_button_styles', array (
'' => __( 'Skin Default', 'tb' ),
'none' => __( 'None', 'tb' ),
'minimal' => _x( 'Minimal', 'Social Button Style', 'tb' ),
'minimal-rounded' => _x( 'Minimal Rounded', 'Social Button Style', 'tb' ),
'minimal-round' => _x( 'Minimal Round', 'Social Button Style', 'tb' ),
'flat' => _x( 'Flat', 'Social Button Style', 'tb' ),
'flat-rounded' => _x( 'Flat Rounded', 'Social Button Style', 'tb' ),
'flat-round' => _x( 'Flat Round', 'Social Button Style', 'tb' ),
'flat-color' => _x( 'Flat Color', 'Social Button Style', 'tb' ),
'flat-color-rounded' => _x( 'Flat Color Rounded', 'Social Button Style', 'tb' ),
'flat-color-round' => _x( 'Flat Color Round', 'Social Button Style', 'tb' ),
'3d' => _x( '3D', 'Social Button Style', 'tb' ),
'3d-color' => _x( '3D Color', 'Social Button Style', 'tb' ),
'black' => _x( 'Black', 'Social Button Style', 'tb' ),
'black-rounded' => _x( 'Black Rounded', 'Social Button Style', 'tb' ),
'black-round' => _x( 'Black Round', 'Social Button Style', 'tb' ),
'black-ch' => _x( 'Black & Color Hover', 'Social Button Style', 'tb' ),
'black-ch-rounded' => _x( 'Black & Color Hover Rounded', 'Social Button Style', 'tb' ),
'black-ch-round' => _x( 'Black & Color Hover Round', 'Social Button Style', 'tb' ),
'graphical' => _x( 'Graphical', 'Social Button Style', 'tb' ),
'graphical-rounded' => _x( 'Graphical Rounded', 'Social Button Style', 'tb' ),
'graphical-round' => _x( 'Graphical Round', 'Social Button Style', 'tb' ),
) );
}