Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

<?php
add_filter('avada_metabox_tabs', 'avada_child_metabox_tabs', 10, 2);
function avada_child_metabox_tabs( $tabs, $post_type ){
$screen = get_current_screen();
if( 'avada_portfolio' == $screen->post_type ) {
$tab_key = 'avada_child_portfolio';
<?php
public function render_option_tabs( $requested_tabs, $post_type = 'default' ) {
$screen = get_current_screen();
$tabs_names = array(
'sliders' => esc_html__( 'Sliders', 'Avada' ),
'page' => esc_html__( 'Page', 'Avada' ),
'post' => ( 'avada_faq' === $screen->post_type ) ? esc_html__( 'FAQ', 'Avada' ) : esc_html__( 'Post', 'Avada' ),
'header' => esc_html__( 'Header', 'Avada' ),
{"last_tab":"","layout":"Wide","site_width":"1100px","margin_offset":{"top":"0px","bottom":"0px"},"boxed_modal_shadow":"None","main_padding":{"top":"55px","bottom":"40px"},"hundredp_padding":"30px","sidebar_width":"23%","sidebar_2_1_width":"19%","sidebar_2_2_width":"19%","nav_height":"84","menu_highlight_style":"bar","menu_highlight_background":"#a0ce4e","menu_arrow_size":{"width":"23px","height":"12px"},"nav_highlight_border":"3","nav_padding":"40","megamenu_shadow":"1","dropdown_menu_width":"215","mainmenu_dropdown_vertical_padding":"9","mainmenu_dropdown_display_divider":"1","menu_display_dropdown_indicator":"0","main_nav_search_icon":"1","main_nav_icon_circle":"0","menu_sub_bg_color":"#edecec","menu_bg_hover_color":"#f5f5f5","menu_sub_sep_color":"#e3e2e3","menu_h45_bg_color":"#ffffff","nav_typography":{"font-family":"Roboto Slab","font-options":"","google":"1","font-backup":"","font-weight":"300","font-style":"","subsets":"","letter-spacing":"0px"},"nav_font_size":"13px","nav_dropdown_font_size":"13px","s
[fusion_builder_container hundred_percent="no" equal_height_columns="no" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" video_preview_image="" border_size="" border_color="" border_style="solid" margin_top="" margin_bottom="" padding_top="" padding_right="" padding_bottom="" padding_left=""][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" spacing="" center_content="no" hover_type="none" link="" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_position="left top" background_repeat="no-repeat" border_size="0" border_color="" border_style="solid" border_p
@ilicfilip
ilicfilip / portfolio-thumbnail-column.php
Last active March 3, 2017 13:49
Portfolio thumbnail column
/* BEGIN: Add custom columns to admin screen */
add_filter('manage_avada_portfolio_posts_columns', 'avada_portfolio_columns_head', 10);
function avada_portfolio_columns_head($existing_columns) {
$columns = array(
'cb' => $existing_columns['cb'],
'thumbnail' => '<span class="dashicons dashicons-format-image"></span>'
);
return array_merge( $columns, $existing_columns );
[fusion_builder_container admin_label="Slider" hundred_percent="yes" equal_height_columns="no" hide_on_mobile="small-visibility,medium-visibility,large-visibility" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" border_style="solid" margin_top="0px" margin_bottom="0px" padding_top="0px" padding_right="0px" padding_bottom="0px" padding_left="0px"][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" spacing="" center_content="no" hover_type="none" link="" min_height="" hide_on_mobile="medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_position="left top" undefined="" background_repeat="no-repeat" border_size="0" border_color="" border_style="solid" border_position="all" padding="0px 0px 0px 0px" margin_top="" margin_bottom="" animation_type="" animation_direction="left" animation_speed="0.3" ani
[fusion_builder_container admin_label="Why You Need Supplier Assessment" hundred_percent="no" equal_height_columns="no" menu_anchor="theneed" hide_on_mobile="no" class="" id="" background_color="#f9f9f9" background_image="" background_position="left top" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" video_preview_image="" border_size="0" border_color="#333333" border_style="solid" margin_top="" margin_bottom="" padding_top="35px" padding_right="" padding_bottom="15px" padding_left="" admin_toggled="yes"][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" background_position="left top" background_color="" border_size="" border_color="" border_style="solid" spacing="yes" background_image="" background_repeat="no-repeat" padding="" margin_top="0px" margin_bottom="0px" class="" id="" animation_type="" animation_speed="0.3" anim
// we're on new / edit post screen
if( ( !empty($_GET['post_type']) && 'idx_page' != $_GET['post_type'] )
|| (!empty($_GET['post']) && 'idx_page' != get_post_type($_GET['post']) )
){
return;
}
[fusion_builder_container hundred_percent="yes" overflow="visible" admin_toggled="no"][fusion_builder_row][fusion_builder_column type="1_3" layout="1_3" last="no" spacing="yes" center_content="no" hide_on_mobile="no" background_color="" background_image="" background_repeat="no-repeat" background_position="left top" border_position="all" border_size="0px" border_color="" border_style="" padding="" margin_top="" margin_bottom="" animation_type="" animation_direction="" animation_speed="0.1" class="" id="" min_height="" hover_type="none" link=""][fusion_text]
<h1>My Zone</h1>
<h2>build it your way</h2>
A versatile system that incorporates a unique balance of style and functionality promoting worker engagement, satisfaction, and performance[/fusion_text][fusion_text]
<div class="table-1">[fusion_builder_row_inner][fusion_builder_column_inner type="2_3" spacing="yes" last="no" center_content="no" hide_on_mobile="no" background_color="" background_image="" background_repeat="no-repeat" background_position="left to
[fusion_builder_container hundred_percent="yes" overflow="visible"][fusion_builder_row][fusion_builder_column type="1_3" layout="1_3" last="no" spacing="yes" center_content="no" hide_on_mobile="no" background_color="" background_image="" background_repeat="no-repeat" background_position="left top" border_position="all" border_size="0px" border_color="" border_style="" padding="" margin_top="" margin_bottom="" animation_type="" animation_direction="" animation_speed="0.1" class="" id="" min_height="" hover_type="none" link=""][fusion_text]
<h1>Click &amp; Share <span style="font-size: 14px;">(My Zone)</span></h1>
<h2>seamless collaboration</h2>
My Zone’s innovative media sharing solution allows up to six users to plug in and share a single screen in seconds. With the ability to connect tablets, laptops, and other media sharing devices to any display you choose, it’s the perfect way to quickly share team information and get ideas flowing.
My Zone supports seamless collaboration, making teams more productive an