Example #1
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');
}
Example #2
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');
}
Example #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');
}
Example #4
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>';
     }
 }
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');
}
Example #6
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');
}