Exemplo n.º 1
0
/**
 * Registers layouts.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function vaidusworld_register_layouts()
{
    hybrid_register_layout('1c', array('label' => esc_html__('1 Column', 'vaidusworld'), 'image' => '%s/images/layouts/1c.png'));
    hybrid_register_layout('1c-narrow', array('label' => __('1 Column Narrow', 'vaidusworld'), 'image' => '%s/images/layouts/1c-narrow.png'));
    hybrid_register_layout('2c-l', array('label' => esc_html__('2 Columns: Content / Sidebar', 'vaidusworld'), 'image' => '%s/images/layouts/2c-l.png'));
    hybrid_register_layout('2c-r', array('label' => esc_html__('2 Columns: Sidebar / Content', 'vaidusworld'), 'image' => '%s/images/layouts/2c-r.png'));
}
Exemplo n.º 2
0
function taylor_register_layouts()
{
    $image_dir = trailingslashit(get_template_directory_uri()) . 'assets/images/';
    hybrid_register_layout('1c', array('label' => _x('1 Column Wide', 'theme layout', 'taylor'), 'is_global_layout' => true, 'is_post_layout' => true, 'image' => $image_dir . 'layout-width-full.svg'));
    hybrid_register_layout('1c-narrow', array('label' => _x('1 Column Narrow', 'theme layout', 'taylor'), 'is_global_layout' => true, 'is_post_layout' => true, 'image' => $image_dir . 'layout-width-default.svg'));
    hybrid_register_layout('2c-l', array('label' => _x('2 Columns: Content / Sidebar', 'theme layout', 'taylor'), 'is_global_layout' => true, 'is_post_layout' => true, 'image' => $image_dir . 'layout-sidebar-right.svg'));
    hybrid_register_layout('2c-r', array('label' => _x('2 Columns: Sidebar / Content', 'theme layout', 'taylor'), 'is_global_layout' => true, 'is_post_layout' => true, 'image' => $image_dir . 'layout-sidebar-left.svg'));
}
Exemplo n.º 3
0
/**
 * Registers layouts.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function hybrid_base_register_layouts()
{
    hybrid_register_layout('1c', array('label' => esc_html__('1 Column', 'hybrid-base'), 'image' => '%s/images/layouts/1c.png'));
    hybrid_register_layout('2c-l', array('label' => esc_html__('2 Columns: Content / Sidebar', 'hybrid-base'), 'image' => '%s/images/layouts/2c-l.png'));
    hybrid_register_layout('2c-r', array('label' => esc_html__('2 Columns: Sidebar / Content', 'hybrid-base'), 'image' => '%s/images/layouts/2c-r.png'));
}
Exemplo n.º 4
0
/**
 * Registers the default theme layouts.
 *
 * @since  3.0.0
 * @access public
 * @return void
 */
function hybrid_register_layouts()
{
    hybrid_register_layout('default', array('label' => esc_html_x('Default', 'theme layout', 'hybrid-core'), 'is_global_layout' => false, '_builtin' => true, '_internal' => true));
    // Hook for registering theme layouts. Theme should always register on this hook.
    do_action('hybrid_register_layouts');
}
Exemplo n.º 5
0
/**
 * Registers custom theme layouts
 *
 */
function marsh_register_layouts()
{
    hybrid_register_layout('1c', array('label' => _x('1 Column', 'theme layout', 'marsh'), 'is_global_layout' => true, 'is_post_layout' => true, 'image' => '%s/img/layouts/1c.svg'));
    hybrid_register_layout('2c-l', array('label' => _x('2 Columns: Sidebar / Content', 'theme layout', 'marsh'), 'is_global_layout' => true, 'is_post_layout' => true, 'image' => '%s/img/layouts/2c-l.svg'));
}
Exemplo n.º 6
0
/**
 * Registers layouts.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function ubuntugnome_register_layouts()
{
    hybrid_register_layout('1c', array('label' => esc_html__('1 Column', 'ubuntugnome'), 'image' => '%s/images/layouts/1c.png'));
}
Exemplo n.º 7
0
/**
 * Registers custom layouts.
 *
 * @since  2.0.0
 * @access public
 * @return void
 */
function stargazer_register_layouts()
{
    hybrid_register_layout('1c', array('label' => __('1 Column Wide', 'stargazer'), 'image' => '%s/images/layouts/1c.png'));
    hybrid_register_layout('1c-narrow', array('label' => __('1 Column Narrow', 'stargazer'), 'image' => '%s/images/layouts/1c-narrow.png'));
    hybrid_register_layout('2c-l', array('label' => __('2 Columns: Content / Sidebar', 'stargazer'), 'image' => '%s/images/layouts/2c-l.png'));
    hybrid_register_layout('2c-r', array('label' => __('2 Columns: Sidebar / Content', 'stargazer'), 'image' => '%s/images/layouts/2c-r.png'));
}
Exemplo n.º 8
0
/**
 * Registers layouts.
 */
function croft_register_layouts()
{
    hybrid_register_layout('1c', array('label' => esc_html__('1 Column', 'croft'), 'image' => '%s/assets/img/layouts/1c.svg'));
    hybrid_register_layout('2c-l', array('label' => esc_html__('Content / Sidebar', 'croft'), 'image' => '%s/assets/img/layouts/2c-l.svg'));
    hybrid_register_layout('2c-r', array('label' => esc_html__('Sidebar / Content', 'croft'), 'image' => '%s/assets/img/layouts/2c-r.svg'));
}