true,
'flex-height' => true,
'height' => 850,
'width' => 1980,
'default-image' => get_template_directory_uri() . '/images/cropped-header-atlast.jpg',
) );
add_theme_support( 'custom-logo', array(
'height' => 50,
'width' => 360,
'flex-height' => true,
'flex-width' => true
) );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'post-thumbnails' );
add_image_size( 'layout-1-image', 850, 480, true );
add_image_size( 'fullwidth-boxed-image', 1280, 580, true );
add_image_size( 'front-about', 680, 460, true );
add_image_size( 'single-team', 308, 420, true );
add_image_size( 'front-team', 200, 200, true );
add_image_size( 'front-projects', 310, 220, true );
add_image_size( 'front-blog', 310, 275, true );
add_theme_support( 'woocommerce' );
global $content_width;
if ( ! isset( $content_width ) ) {
$content_width = 850;
}
$atlast_business_bg_defaults = array(
'default-color' => 'ffffff',
'default-image' => '',
'wp-head-callback' => 'atlast_business_background_callback',
);
add_theme_support( 'custom-background', $atlast_business_bg_defaults );
register_nav_menus(
array(
'main-menu' => __( 'Main Menu', 'atlast-business' ),
'top-menu' => __( 'Top Menu', 'atlast-business' ),
'footer-menu' => __( 'Footer Menu', 'atlast-business' ),
'copyright-menu' => __( 'Copyright Menu', 'atlast-business' )
)
);
}
if ( ! function_exists( 'atlast_business_background_callback' ) ):
function atlast_business_background_callback() {
$background = set_url_scheme( get_background_image() );
$color = get_theme_mod( 'background_color', get_theme_support( 'custom-background', 'default-color' ) );
if ( ! $background && ! $color ) {
return;
}
$style = $color ? "background-color: #$color;" : '';
if ( $background ) {
$image = " background-image: url('$background');";
$repeat = get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'default-repeat' ) );
if ( ! in_array( $repeat, array( 'no-repeat', 'repeat-x', 'repeat-y', 'repeat' ) ) ) {
$repeat = 'repeat';
}
$repeat = " background-repeat: $repeat;";
$position = get_theme_mod( 'background_position_x', get_theme_support( 'custom-background', 'default-position-x' ) );
if ( ! in_array( $position, array( 'center', 'right', 'left' ) ) ) {
$position = 'left';
}
$position = " background-position: top $position;";
$attachment = get_theme_mod( 'background_attachment', get_theme_support( 'custom-background', 'default-attachment' ) );
if ( ! in_array( $attachment, array( 'fixed', 'scroll' ) ) ) {
$attachment = 'scroll';
}
$attachment = " background-attachment: $attachment;";
$style .= $image . $repeat . $position . $attachment;
}
?>
__( 'Main sidebar', 'atlast-business' ),
'description' => __( ' The main sidebar.', 'atlast-business' ),
'id' => 'primary-sidebar',
'before_widget' => '",
'before_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Top Bar Sidebar', 'atlast-business' ),
'description' => __( 'Sidebar at the top bar', 'atlast-business' ),
'id' => 'topbar-sidebar',
'before_widget' => '",
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Team Member sidebar', 'atlast-business' ),
'description' => __( 'This sidebar appears only in the single team member page.', 'atlast-business' ),
'id' => 'team-member-sidebar',
'before_widget' => '",
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer sidebar', 'atlast-business' ),
'description' => __( ' This sidebar appears in the footer. You can use the customizer to select the layout this sidebar', 'atlast-business' ),
'id' => 'footer-sidebar',
'before_widget' => '",
'before_title' => '',
) );
}
if ( ! function_exists( 'atlast_business_comment' ) ):
function atlast_business_comment( $comment, $args, $depth ) {
extract( $args, EXTR_SKIP );
if ( 'article' == $args['style'] ) {
$tag = 'article';
$add_below = 'comment';
} else {
$tag = 'article';
$add_below = 'comment';
}
?>
';
}
endif;
add_action( 'tgmpa_register', 'atlast_business_register_required_plugins' );
function atlast_business_register_required_plugins() {
$plugins = array(
array(
'name' => 'Contact Form 7',
'slug' => 'contact-form-7',
'required' => false,
),
array(
'name' => 'Adaptive Images',
'slug' => 'adaptive-images',
'required' => false,
),
array(
'name' => 'FooGallery – Image Gallery WordPress Plugin',
'slug' => 'foogallery',
'required' => false,
) ,
array(
'name' => 'FooBox Image Lightbox WordPress Plugin',
'slug' => 'foobox-image-lightbox',
'required' => false,
)
);
$config = array(
'id' => 'atlast-business',
// Unique ID for hashing notices for multiple instances of TGMPA.
'default_path' => '',
// Default absolute path to bundled plugins.
'menu' => 'tgmpa-install-plugins',
// Menu slug.
'has_notices' => true,
// Show admin notices or not.
'dismissable' => true,
// If false, a user cannot dismiss the nag message.
'dismiss_msg' => '',
// If 'dismissable' is false, this message will be output at top of nag.
'is_automatic' => false,
// Automatically activate plugins after installation or not.
'message' => '',
// Message to output right before the plugins table.
'strings' => array(
'page_title' => __( 'Install Required Plugins', 'atlast-business' ),
'menu_title' => __( 'Install Plugins', 'atlast-business' ),
'installing' => __( 'Installing Plugin: %s', 'atlast-business' ),
'updating' => __( 'Updating Plugin: %s', 'atlast-business' ),
'oops' => __( 'Something went wrong with the plugin API.', 'atlast-business' ),
'notice_can_install_required' => _n_noop(
'This theme requires the following plugin: %1$s.',
'This theme requires the following plugins: %1$s.',
'atlast-business'
),
'notice_can_install_recommended' => _n_noop(
'This theme recommends the following plugin: %1$s.',
'This theme recommends the following plugins: %1$s.',
'atlast-business'
),
'notice_ask_to_update' => _n_noop(
'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.',
'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.',
'atlast-business'
),
'notice_ask_to_update_maybe' => _n_noop(
'There is an update available for: %1$s.',
'There are updates available for the following plugins: %1$s.',
'atlast-business'
),
'notice_can_activate_required' => _n_noop(
'The following required plugin is currently inactive: %1$s.',
'The following required plugins are currently inactive: %1$s.',
'atlast-business'
),
'notice_can_activate_recommended' => _n_noop(
'The following recommended plugin is currently inactive: %1$s.',
'The following recommended plugins are currently inactive: %1$s.',
'atlast-business'
),
'install_link' => _n_noop(
'Begin installing plugin',
'Begin installing plugins',
'atlast-business'
),
'update_link' => _n_noop(
'Begin updating plugin',
'Begin updating plugins',
'atlast-business'
),
'activate_link' => _n_noop(
'Begin activating plugin',
'Begin activating plugins',
'atlast-business'
),
'return' => __( 'Return to Required Plugins Installer', 'atlast-business' ),
'plugin_activated' => __( 'Plugin activated successfully.', 'atlast-business' ),
'activated_successfully' => __( 'The following plugin was activated successfully:', 'atlast-business' ),
'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'atlast-business' ),
'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'atlast-business' ),
'complete' => __( 'All plugins installed and activated successfully. %1$s', 'atlast-business' ),
'dismiss' => __( 'Dismiss this notice', 'atlast-business' ),
'notice_cannot_install_activate' => __( 'There are one or more required or recommended plugins to install, update or activate.', 'atlast-business' ),
'contact_admin' => __( 'Please contact the administrator of this site for help.', 'atlast-business' ),
'nag_type' => '',
// Determines admin notice type - can only be one of the typical WP notice classes, such as 'updated', 'update-nag', 'notice-warning', 'notice-info' or 'error'. Some of which may not work as expected in older WP versions.
)
);
tgmpa( $plugins, $config );
}
comment_approved == '0' ) : ?>Your comment is awaiting moderation.