Ejemplo n.º 1
0
function tbr_frontpage_setup()
{
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-home');
    beans_remove_markup('beans_main_grid');
    beans_remove_markup('beans_primary');
}
Ejemplo n.º 2
0
function tbr_contact_setup()
{
    beans_remove_action('beans_post_title');
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-contact');
    beans_remove_markup('beans_main_grid');
}
Ejemplo n.º 3
0
function tbr_blog_setup()
{
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-blog');
    beans_remove_action('beans_post_meta');
    beans_remove_action('beans_post_meta_tags');
    beans_remove_attribute('beans_post', 'class');
    beans_add_attribute('beans_post', 'class', 'uk-article');
    beans_modify_action('beans_post_meta_date', 'tm-item-inner_prepend_markup');
    beans_modify_action('beans_post_meta_categories', 'tm_item_inner_prepend_markup', null, 7);
    beans_remove_markup('beans_primary');
    beans_remove_markup('beans_post_body');
    beans_remove_markup('beans_post_header');
    beans_remove_markup('beans_post_content');
    beans_add_attribute('beans_main_grid', 'class', 'uk-grid-width-1-1 uk-grid-width-small-1-2 uk-grid-width-medium-1-3');
    beans_add_attribute('beans_main_grid', 'data-uk-grid', '{gutter: 20, controls: \'#js-blog-filters\'}');
    beans_remove_attribute('beans_main_grid', 'data-uk-grid-margin');
    beans_replace_attribute('beans_post', 'class', 'uk-article', 'tm-item');
    beans_modify_markup('beans_post', 'div');
    beans_wrap_inner_markup('beans_post', 'tm_item_inner', 'div', array('class' => 'uk-panel uk-panel-box uk-panel-box-secondary'));
    beans_add_attribute('beans_post_title', 'class', 'uk-margin-small-top');
    beans_add_attribute('beans_post_more_link', 'class', 'uk-button uk-button-secondary');
    beans_replace_attribute('beans_next_icon_more_link', 'class', 'uk-icon-angle-double-right', 'uk-icon-arrow-circle-o-right');
    beans_replace_attribute('beans_post_meta_categories', 'class', 'uk-text-small uk-text-muted uk-clearfix', 'tm-topic uk-button uk-button-tertiary uk-button-mini');
    beans_add_attribute('beans_widget_content_sidebar_primary_recent-posts', 'class', 'tm-list-style1');
    beans_add_attribute('beans_widget_content_categories', 'class', 'tm-list-style1');
}
Ejemplo n.º 4
0
function banks_setup_document()
{
    // Frontpage posts
    if (is_home()) {
        beans_remove_attribute('beans_post', 'class', 'uk-panel-box');
    }
    // Site Logo
    beans_remove_attribute('beans_site_title_tag', 'class', 'uk-text-muted');
    // Breadcrumb
    beans_remove_action('beans_breadcrumb');
    // Post meta
    beans_add_attribute('beans_post_meta_date', 'class', 'uk-text-muted');
    // Search form
    beans_replace_attribute('beans_search_form', 'class', 'uk-form-icon uk-form-icon-flip', 'uk-display-inline-block');
    beans_remove_markup('beans_search_form_input_icon');
    // Add grid min width for Banks slim content
    if (beans_get_layout() == 'banks_c') {
        beans_add_attribute('beans_content', 'class', 'tm-centered-content');
    }
    // Only applies to singular and not pages
    if (is_singular() && !is_page()) {
        // Post title
        beans_add_attribute('beans_post_title', 'class', 'uk-margin-small-bottom');
        // Post navigation
        beans_add_attribute('beans_post_navigation', 'class', 'uk-grid-margin uk-margin-bottom-remove');
        // Post comments
        beans_add_attribute('beans_comments', 'class', 'uk-margin-bottom-remove');
        beans_add_attribute('beans_comment_form_wrap', 'class', 'uk-contrast');
        beans_add_attribute('beans_comment_form_submit', 'class', 'uk-button-large');
        beans_add_attribute('beans_no_comment', 'class', 'tm-no-comments uk-text-center uk-text-large uk-block');
    }
    if (get_bloginfo('description')) {
        beans_add_attribute('beans_primary_menu', 'class', 'uk-margin-small-top');
    }
}
Ejemplo n.º 5
0
function kkthemes_post_view($featured_items = false)
{
    // Posts grid
    beans_add_attribute('beans_post', 'class', 'tm-post-grid uk-grid uk-grid-medium');
    beans_add_attribute('beans_post_image', 'class', 'uk-width-medium-1-2');
    beans_wrap_markup('beans_post_header', 'kkthemes_post_preview', 'div', array('class' => 'tm-post-preview uk-width-medium-1-2'));
    if (is_featured_item() || $featured_items) {
        //More button
        beans_add_attribute('beans_post_more_link', 'class', 'uk-button uk-button-large uk-margin-top');
    } else {
        // Post title
        beans_add_attribute('beans_post_title', 'class', 'uk-h2');
    }
    // Post content
    beans_remove_action('beans_post_content');
    beans_remove_markup('beans_post_body');
    add_action('kkthemes_post_preview_append_markup', 'the_content');
    // Auto generate summary of Post content and read more button
    beans_add_smart_action('the_content', 'kkthemes_post_content');
    // Post meta
    beans_remove_action('beans_post_meta_tags');
    beans_remove_action('beans_post_meta_categories');
    // Post image
    beans_modify_action('beans_post_image', 'beans_post_header_before_markup', 'beans_post_image');
}
Ejemplo n.º 6
0
function dfh_setup_theme() {

  beans_replace_attribute( 'beans_favicon', 'href', 'http://devignerforhire.com/favicon.ico' );
  beans_remove_action( 'beans_comments' );
  beans_remove_action( 'beans_replace_nojs_class' );
  beans_add_attribute( 'beans_site', 'class', 'uk-container uk-container-center' );
  beans_remove_markup( 'beans_fixed_wrap_header' );
  beans_remove_markup( 'beans_site_branding' );
  beans_remove_markup( 'beans_content' );
  beans_add_attribute( 'beans_primary', 'role', 'main' );
  beans_remove_markup( 'beans_fixed_wrap_main' );
  beans_replace_attribute( 'beans_header', 'class', 'uk-block', 'uk-overflow-container uk-margin-large-top' );
  beans_remove_attribute( 'beans_menu_navbar_primary', 'id' );
  beans_replace_attribute( 'beans_menu_navbar_primary', 'class', ' uk-navbar-nav', 'uk-navbar-nav' );
  beans_remove_action( 'beans_site_title_tag' );
  beans_add_attribute( 'beans_site_title_link', 'class', 'tm-logo uk-float-left' );
  beans_add_attribute( 'beans_site_title_tag', 'class', 'tm-tagline uk-float-left' );
  beans_remove_attribute( 'beans_main', 'class', 'uk-block' );
  beans_remove_attribute( 'beans_footer', 'class', 'uk-block' );
  beans_remove_action( 'beans_breadcrumb' );
  beans_modify_action_hook( 'beans_footer', 'beans_main_after_markup' );
  beans_remove_markup( 'beans_fixed_wrap_footer' );
  beans_remove_attribute( 'beans_post', 'id' );

}
Ejemplo n.º 7
0
function fast_monkey_index_setup_document()
{
    // Post meta
    beans_remove_action('beans_post_meta_tags');
    // Post more link
    beans_add_attribute('beans_post_more_link', 'class', 'uk-button uk-button-primary uk-button-small');
}
Ejemplo n.º 8
0
function bench_index_setup_document()
{
    //Layout
    if (beans_get_layout() == 'c') {
        beans_remove_attribute('beans_primary', 'class', 'uk-width-large-7-10');
    }
    // Posts grid
    beans_add_attribute('beans_content', 'class', 'tm-posts-grid uk-grid uk-grid-width-small-1-2 uk-grid-width-medium-1-3');
    beans_add_attribute('beans_content', 'data-uk-grid-margin', '');
    beans_add_attribute('beans_content', 'data-uk-grid-match', "{target:'.uk-panel'}");
    beans_wrap_inner_markup('beans_post', 'bench_post_panel', 'div', array('class' => 'uk-panel uk-panel-box'));
    // Post content
    beans_remove_attribute('beans_content', 'class', 'tm-centered-content');
    // Post article
    beans_remove_attribute('beans_post', 'class', 'uk-article');
    // Post meta
    beans_remove_action('beans_post_meta');
    beans_remove_action('beans_post_meta_tags');
    beans_modify_action('beans_post_meta_categories', 'beans_post_header', null, 7);
    beans_remove_output('beans_post_meta_categories_prefix');
    beans_add_attribute('beans_post_meta_categories', 'class', 'tm-post-category');
    // Post image
    beans_modify_action('beans_post_image', 'beans_post_header_before_markup', 'beans_post_image');
    // Post title
    beans_add_attribute('beans_post_title', 'class', 'uk-margin-small-top uk-h3');
    // Post more link
    //beans_add_attribute( 'beans_post_more_link', 'class', 'uk-button uk-button-small' );
    // Posts pagination
    beans_modify_action_hook('beans_posts_pagination', 'beans_content_after_markup');
}
Ejemplo n.º 9
0
function tbr_blog_setup()
{
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-blog tm-post');
    beans_remove_action('beans_post_meta');
    beans_remove_attribute('beans_post', 'class');
    beans_add_attribute('beans_post', 'class', 'uk-article uk-panel uk-panel-box uk-panel-box-secondary');
    beans_remove_attribute('beans_comments', 'class', ' uk-panel-box');
    beans_add_attribute('beans_widget_content_recent-posts', 'class', 'tm-list-style1');
    beans_add_attribute('beans_widget_content_categories', 'class', 'tm-list-style1');
    beans_replace_attribute('beans_post_meta_tags', 'class', 'uk-text-muted', 'tm-tags uk-margin-medium-top uk-display-block');
    beans_modify_action_hook('beans_post_meta_date', 'beans_post_header_prepend_markup');
    beans_modify_action_hook('beans_post_meta_categories', 'beans_post_header_prepend_markup');
    beans_replace_attribute('beans_post_meta_categories', 'class', 'uk-text-small uk-text-muted uk-clearfix', 'tm-topic uk-button uk-button-tertiary uk-button-mini');
    beans_add_attribute('beans_post_title', 'class', 'uk-margin-small-top');
    beans_remove_markup('beans_post_body');
    beans_add_attribute('beans_next_link_post_navigation', 'class', 'uk-text-right uk-h3');
    beans_add_attribute('beans_previous_link_post_navigation', 'class', 'uk-text-left uk-h3');
    beans_add_attribute('beans_embed_oembed', 'class', 'tm-cover-article');
    beans_modify_markup('beans_no_comment', 'h3');
    beans_add_attribute('beans_comment_form_legend', 'class', 'uk-hidden');
    beans_add_attribute('beans_comment_form_field_name', 'placeholder', 'Name');
    beans_add_attribute('beans_comment_form_field_email', 'placeholder', 'Email');
    beans_add_attribute('beans_comment_form_field_url', 'placeholder', 'Website');
    beans_add_attribute('beans_comment_form_wrap', 'class', 'uk-panel-box');
    beans_replace_attribute('beans_primary', 'class', 'uk-width-medium-3-4', 'uk-width-medium-2-3');
    beans_replace_attribute('beans_sidebar_primary', 'class', 'uk-width-medium-1-4', 'uk-width-medium-1-3');
}
Ejemplo n.º 10
0
function bench_404_setup_document()
{
    // Post
    beans_remove_attribute('beans_no_post_article_content', 'class', 'uk-alert uk-alert-warning');
    beans_modify_markup('beans_no_post_article_content', 'h2');
    beans_add_attribute('beans_no_post_article_content', 'class', 'uk-margin-large-bottom');
}
Ejemplo n.º 11
0
function dfh_contact_setup()
{
    beans_remove_action('beans_post_title');
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-contact');
    beans_add_attribute('beans_main_grid', 'class', 'uk-grid-collapse');
}
Ejemplo n.º 12
0
function jenkins_setup_document()
{
    // Header
    beans_add_attribute('beans_site_branding', 'class', 'uk-margin-small-top');
    // Breadcrumb
    beans_remove_action('beans_breadcrumb');
    // Navigation
    beans_add_attribute('beans_sub_menu_wrap', 'class', 'uk-dropdown-center');
    beans_remove_attribute('beans_menu_item_child_indicator', 'class', 'uk-margin-small-left');
    // Post content
    beans_add_attribute('beans_post_content', 'class', 'uk-text-large');
    // Post image
    beans_add_attribute('beans_post_image', 'class', 'tm-cover-article');
    // Post meta
    beans_remove_attribute('beans_post_meta', 'class', 'uk-subnav-line');
    beans_remove_action('beans_post_meta_tags');
    beans_remove_action('beans_post_meta_categories');
    beans_remove_output('beans_post_meta_categories_prefix');
    // Post embed
    beans_add_attribute('beans_embed_oembed', 'class', 'tm-cover-article');
    // Comment meta
    beans_modify_action_priority('beans_comment_metadata', 9);
    // Comment form
    beans_add_attribute('beans_comment_form_wrap', 'class', 'tm-cover-article');
    beans_add_attribute('beans_comment_fields_inner_wrap', 'class', 'uk-grid-small');
    beans_add_attribute('beans_comment_form_submit', 'class', 'uk-button-large');
    if (!is_user_logged_in()) {
        beans_replace_attribute('beans_comment_form_comment', 'class', 'uk-width-medium-1-1', 'uk-width-medium-6-10');
    }
    // Search
    if (is_search()) {
        beans_remove_action('beans_post_image');
    }
}
Ejemplo n.º 13
0
 /**
  * Constructor.
  */
 public function __construct($section, $args)
 {
     $defaults = array('title' => __('Undefined', 'tm-beans'), 'priority' => 30, 'description' => false);
     $this->section = $section;
     $this->args = array_merge($defaults, $args);
     add_action('customize_register', array($this, 'add'));
     beans_add_attribute('beans_field_label', 'class', 'customize-control-title');
 }
Ejemplo n.º 14
0
function kkthemes_single_setup_document()
{
    beans_remove_action('beans_breadcrumb');
    //remove featured image
    beans_remove_action('beans_post_image');
    //Center page content and add a large bottom margin since we removed uk-block earlier from beans_main
    beans_add_attribute('beans_main', 'class', 'tm-maxwidth-content');
}
Ejemplo n.º 15
0
 /**
  * Constructor.
  */
 public function __construct($section, $args)
 {
     $defaults = array('title' => __('Undefined', 'tm-beans'), 'priority' => 30, 'description' => false);
     $this->section = $section;
     $this->args = array_merge($defaults, $args);
     // Add section, settings and controls.
     $this->add();
     beans_add_attribute('beans_field_label', 'class', 'customize-control-title');
 }
Ejemplo n.º 16
0
function flipster_setup_document()
{
    // Header and Primary Menu
    beans_remove_attribute('beans_site_branding', 'class', 'uk-float-left');
    beans_remove_attribute('beans_primary_menu', 'class', 'uk-float-right');
    // Layout
    if (beans_get_layout() != 'c') {
        beans_remove_attribute('beans_primary', 'class', 'uk-width-medium-7-10');
        beans_add_attribute('beans_primary', 'class', 'uk-width-large-7-10');
        beans_remove_attribute('beans_sidebar_primary', 'class', 'uk-width-medium-3-10');
        beans_add_attribute('beans_sidebar_primary', 'class', 'uk-width-large-3-10 uk-visible-large');
    }
    // Breadcrumb
    if (!is_archive()) {
        beans_remove_action('beans_breadcrumb');
    }
    // Navigation
    beans_add_attribute('beans_sub_menu_wrap', 'class', 'uk-dropdown-center');
    beans_remove_attribute('beans_menu_item_child_indicator', 'class', 'uk-margin-small-left');
    // Post content
    beans_add_attribute('beans_post_content', 'class', 'uk-text-large');
    // Post meta
    beans_remove_action('beans_post_meta_categories');
    beans_remove_output('beans_post_meta_categories_prefix');
    beans_remove_output('beans_post_meta_date_prefix');
    beans_add_attribute('beans_post_meta_date', 'class', 'uk-text-muted');
    // Post embed
    beans_add_attribute('beans_embed_oembed', 'class', 'tm-cover-article');
    // Comment form
    beans_add_attribute('beans_comment_form_wrap', 'class', 'tm-cover-article');
    beans_add_attribute('beans_comment_fields_inner_wrap', 'class', 'uk-grid-small');
    beans_add_attribute('beans_comment_form_submit', 'class', 'uk-button-large');
    if (!is_user_logged_in()) {
        beans_replace_attribute('beans_comment_form_comment', 'class', 'uk-width-medium-1-1', 'uk-width-medium-6-10');
    } else {
        //Add edit post link when user is logged in
        if (is_singular()) {
            beans_add_smart_action('beans_post_header_before_markup', 'flipster_edit_link');
        }
    }
    // Only applies to singular and not pages
    if (is_singular() && !is_page()) {
        //remove featured image
        beans_remove_action('beans_post_image');
        // Post title
        beans_add_attribute('beans_post_title', 'class', 'uk-margin-bottom');
        //Widget area after post content
        beans_add_smart_action('the_content', 'flipster_widget_after_post_content');
        // Post author profile
        add_action('beans_comments_before_markup', 'flipster_author_profile');
    }
    // Search
    if (is_search()) {
        beans_remove_action('beans_post_image');
    }
}
Ejemplo n.º 17
0
function dfh_page_setup()
{
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-resume');
    beans_remove_attribute('beans_post', 'class');
    beans_add_attribute('beans_post', 'class', 'uk-padding-remove');
    beans_remove_action('beans_post_title');
    beans_remove_markup('beans_main_grid');
    beans_remove_markup('beans_primary');
}
Ejemplo n.º 18
0
function tbr_order_setup()
{
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-order');
    beans_remove_markup('beans_main_grid');
    beans_remove_markup('beans_primary');
    beans_remove_markup('beans_post_body');
    beans_remove_attribute('beans_post', 'class');
    beans_add_attribute('beans_post', 'class', 'uk-article');
}
Ejemplo n.º 19
0
function dfh_page_setup()
{
    beans_add_attribute('beans_main_grid', 'class', 'uk-grid-collapse');
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-consulting');
    beans_remove_attribute('beans_primary', 'class');
    beans_remove_attribute('beans_sidebar_secondary', 'class');
    beans_add_attribute('beans_primary', 'class', 'tm-primary uk-width-medium-6-10 uk-width-large-7-10');
    beans_add_attribute('beans_sidebar_secondary', 'class', 'tm-tertiary uk-width-medium-4-10 uk-width-large-3-10');
}
Ejemplo n.º 20
0
function dfh_page_setup()
{
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-about');
    beans_add_attribute('beans_main_grid', 'class', 'uk-grid-collapse');
    beans_add_attribute('beans_widget_panel_sidebar_primary_text_text-2', 'class', 'uk-panel-box');
    beans_add_attribute('beans_widget_panel_sidebar_primary_text_text-7', 'class', 'uk-panel-box');
    beans_add_attribute('beans_widget_panel_sidebar_primary_text_text-8', 'class', 'uk-panel-box');
    beans_remove_markup('beans_widget_content_sidebar_primary_text_text-2');
    beans_remove_markup('beans_widget_panel_sidebar_primary_text_text-2');
}
Ejemplo n.º 21
0
function tbr_page_setup()
{
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-advertise');
    beans_remove_markup('beans_main_grid');
    beans_remove_markup('beans_primary');
    beans_remove_markup('beans_post_body');
    beans_remove_markup('beans_post_header');
    beans_remove_markup('beans_post_content');
    beans_remove_attribute('beans_post', 'class');
    beans_remove_action('beans_post_title');
}
Ejemplo n.º 22
0
function tbr_modify_theme_single_markup()
{
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-theme');
    beans_remove_markup('beans_primary');
    beans_remove_action('beans_post_image');
    beans_remove_action('beans_post_title');
    beans_remove_markup('beans_main_grid');
    beans_remove_markup('beans_post_header');
    beans_remove_markup('beans_post_body');
    beans_remove_markup('beans_post_content');
    beans_replace_attribute('beans_post', 'class', 'uk-panel-box', 'tm-theme-single uk-article');
}
Ejemplo n.º 23
0
function tbr_resources_archive_setup()
{
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-resources');
    beans_remove_markup('beans_primary');
    beans_remove_markup('beans_main_grid', 'class');
    beans_modify_action_hook('beans_post_image', 'beans_post_prepend_markup');
    beans_remove_markup('beans_post_header');
    beans_add_attribute('beans_post_title', 'class', 'uk-h3');
    beans_add_attribute('beans_post_image', 'class', 'uk-margin-remove');
    beans_remove_attribute('beans_post', 'class');
    beans_add_attribute('beans_post_body', 'class', 'uk-panel-box');
    beans_modify_action_hook('beans_post_title', 'beans_post_body_prepend_markup');
}
Ejemplo n.º 24
0
function dfh_page_setup()
{
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-speaking');
    beans_remove_attribute('beans_post', 'class');
    beans_add_attribute('beans_post', 'class', 'uk-padding-remove');
    beans_remove_action('beans_post_title');
    beans_remove_markup('beans_main_grid');
    beans_remove_markup('beans_primary');
    beans_remove_markup('beans_post_header');
    beans_remove_markup('beans_post_content');
    beans_remove_markup('beans_post_body');
    beans_remove_markup('beans_post');
}
Ejemplo n.º 25
0
function tbr_page_setup()
{
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-resources');
    beans_remove_markup('beans_post_body');
    beans_remove_markup('beans_post_content');
    beans_remove_markup('beans_main_grid');
    beans_remove_markup('beans_post');
    beans_remove_markup('beans_post_header');
    beans_remove_attribute('beans_primary', 'class', ' uk-width-medium-4-4');
    beans_remove_attribute('beans_post', 'class');
    beans_add_attribute('beans_post', 'class', 'uk-article');
    beans_remove_action('beans_post_title');
    beans_wrap_markup('tuxedo_post_image', 'themebutler_post_image', 'a', array('href' => get_permalink()));
}
Ejemplo n.º 26
0
 /**
  * Fields content.
  */
 public function fields($tag)
 {
     beans_remove_action('beans_field_label');
     beans_modify_action_hook('beans_field_description', 'beans_field_wrap_after_markup');
     beans_modify_markup('beans_field_description', 'p');
     beans_add_attribute('beans_field_description', 'class', 'description');
     foreach (beans_get_fields('term_meta', $this->section) as $field) {
         echo '<tr class="form-field">';
         echo '<th scope="row">';
         beans_field_label($field);
         echo '</th>';
         echo '<td>';
         beans_field($field);
         echo '</td>';
         echo '</tr>';
     }
 }
Ejemplo n.º 27
0
function dfh_modify_portfolio_markup()
{
    beans_remove_markup('beans_main_grid');
    beans_remove_markup('beans_primary');
    beans_remove_attribute('beans_post', 'id');
    beans_remove_attribute('beans_post', 'class');
    beans_remove_attribute('beans_body', 'class');
    beans_add_attribute('beans_body', 'class', 'tm-portfolio');
    beans_add_attribute('beans_post_header', 'class', 'uk-clearfix');
    beans_add_attribute('beans_post_title', 'class', 'uk-float-left uk-margin-remove');
    beans_add_attribute('beans_post', 'class', 'tm-portfolio-single uk-padding-remove');
    beans_wrap_inner_markup('beans_post', 'tm_portfolio_content', 'div', array('class' => 'tm-portfolio-content uk-width-1-1 uk-width-medium-6-10 uk-width-large-7-10'));
    beans_add_attribute('tm_portfolio_content', 'role', 'main');
    beans_add_attribute('beans_post', 'class', 'uk-grid uk-grid-collapse');
    beans_add_attribute('beans_main', 'class', 'uk-padding-remove');
    beans_modify_action_hook('beans_post_image', 'beans_post_before_markup');
    beans_add_attribute('beans_post_image', 'class', 'uk-margin-bottom-remove uk-cover');
}
Ejemplo n.º 28
0
function fast_monkey_search_setup_document()
{
    // Post
    beans_add_attribute('beans_search_title', 'class', 'uk-margin-bottom-remove');
    beans_add_attribute('beans_content', 'class', 'uk-article');
    beans_remove_attribute('beans_post', 'class', 'uk-article');
    beans_modify_markup('beans_post_title', 'h2');
    beans_add_attribute('beans_post_title', 'class', 'uk-h2');
    beans_add_attribute('beans_post', 'class', 'uk-grid-margin');
    // Post image
    beans_remove_action('beans_post_image');
    // Post meta
    beans_remove_action('beans_post_meta');
    beans_remove_action('beans_post_meta_tags');
    beans_remove_action('beans_post_meta_categories');
    // Remove article search
    beans_remove_output('beans_no_post_search_form');
}
Ejemplo n.º 29
0
function totem_setup_document()
{
    // Header
    beans_remove_attribute('beans_header', 'class', ' uk-block');
    beans_wrap_inner_markup('beans_fixed_wrap_header', 'totem_overlay_navigation', 'div', array('class' => 'tm-overlay-navigation uk-clearfix'));
    // Breadcrumb
    beans_remove_action('beans_breadcrumb');
    // Navigation
    beans_add_attribute('beans_sub_menu_wrap', 'class', 'uk-dropdown-center');
    beans_remove_attribute('beans_menu_item_child_indicator', 'class', 'uk-margin-small-left');
    // Offcanvas
    beans_add_attribute('beans_widget_area_offcanvas_bar', 'class', 'uk-offcanvas-bar-flip');
    beans_add_attribute('beans_primary_menu_offcanvas_button', 'class', 'uk-button-primary');
    // Post content
    beans_remove_attribute('beans_post', 'class', ' uk-panel-box');
    beans_add_attribute('beans_post_content', 'class', 'uk-text-large');
    beans_add_attribute('beans_post_more_link', 'class', 'uk-button uk-button-small');
    // Post image
    beans_modify_action_hook('beans_post_image', 'beans_post_title_before_markup');
    // Post meta
    beans_remove_action('beans_post_meta');
    beans_remove_action('beans_post_meta_tags');
    beans_remove_action('beans_post_meta_categories');
    // Post read more
    beans_replace_attribute('beans_next_icon_more_link', 'class', 'angle-double-right', 'long-arrow-right');
    // Posts pagination
    beans_remove_markup('beans_previous_icon_posts_pagination');
    beans_remove_markup('beans_next_icon_posts_pagination');
    // Comment badge
    beans_add_attribute('beans_moderator_badge', 'class', 'uk-border-rounded uk-align-right');
    beans_add_attribute('beans_moderation_badge', 'class', 'uk-border-rounded uk-align-right');
    // Comment meta
    beans_modify_action_priority('beans_comment_metadata', 9);
    // Comment form
    beans_add_attribute('beans_comment_form_submit', 'class', 'uk-button-large');
    if (!is_user_logged_in()) {
        beans_replace_attribute('beans_comment_form_comment', 'class', 'uk-width-medium-1-1', 'uk-width-medium-6-10');
    }
    // Search
    beans_add_attribute('beans_search_title', 'class', 'uk-margin-large-bottom');
    if (is_search()) {
        beans_remove_action('beans_post_image');
    }
}
Ejemplo n.º 30
0
function tbr_search_setup()
{
    beans_remove_markup('beans_grid');
    beans_remove_markup('beans_main_grid');
    beans_remove_markup('beans_post_header');
    beans_remove_markup('beans_post_content');
    beans_remove_markup('beans_post_body');
    beans_remove_action('beans_post_navigation');
    beans_remove_action('beans_post_image');
    beans_modify_action_hook('beans_posts_pagination', 'beans_primary_after_markup');
    beans_replace_attribute('beans_primary', 'class', 'tm-primary uk-width-medium-4-4', 'tm-search uk-list uk-list-striped');
    beans_modify_markup('beans_primary', 'ol');
    beans_modify_markup('beans_post', 'li');
    beans_remove_attribute('beans_post', 'id');
    beans_remove_attribute('beans_post', 'class');
    beans_remove_attribute('beans_post_title', 'class');
    beans_add_attribute('beans_search_form_input', 'class', 'uk-form-large');
    beans_modify_action_hook('beans_post_search_title', 'beans_primary_before_markup');
    beans_remove_attribute('beans_search_title', 'class', 'uk-article-title');
}