following changes for next update-round

(2 posts) (2 voices)

  1. HeliR
    Member

    Elliott, please forward this to the programmers of the framework for the next round of updates. Most of the stuff I have documented already 2-3 updates ago.

    ----------------------------------------------------------------------------

    Internationalization Bug
    hard-coded US date/time-format, please use the WP date format, (we in Europe put DAY-MONTH-YEAR or YEAR-M-D)
    themes/lib/shortcodes/_hidden.php
    line 292 --> post_date --> hard-coded date-format
    line 295 --> get_the_time --> again hard-coded with US-Format

    ----------------------------------------------------------------------------

    post-contex Extension to enable category/tag specific css-formating
    /themes/dejavu/lib/functions/contex.php
    line 31: add: $mysite->context[] = HeliListCatString($post->ID);
    line 255: if (is_singular()) {$classes[] = HeliListCatString($post->ID); }

    function HeliListCatString($PostID) {
    $post_categories = wp_get_post_categories( $PostID );
    foreach($post_categories as $c){
    	$cat = get_category( $c );
    	$r = $r . ' ' . $cat->slug;
        }
    return trim($r);
    }

    ----------------------------------------------------------------------------
    ----------------------------------------------------------------------------
    for following I suggest a checkbox in ADMIN-PANEL
    ----------------------------------------------------------------------------

    ----------------------------------------------------------------------------

    Adminpanel-Option to use TAGS instead of CATEGORIES in META
    patched framework line 614 if( !in_array( 'categories_meta', $_meta ) ) $meta_output = 'Tags: ' . get_the_tag_list(); // $meta_output .= '[post_terms taxonomy="category"] ';

    ----------------------------------------------------------------------------

    Option to add own style-sheets that are added right before closing header-tag
    for now I have put a patch in my own function.php that does this feature, better you extend that in admin-panel

    // here  HELIs own style-sheet and the extra style sheet for Mega-Menu is linked in
    if ( !is_admin() ) {
        $theme  = get_theme( get_current_theme() );
        wp_register_style( 'helistyle', get_template_directory_uri() . "/helistyle.css", false, false  );  wp_enqueue_style( 'helistyle' );
        wp_register_style( 'megamenu', "http://www.homeopathy.at/wp-content/plugins/wp-uber-menu/styles/heli-basic.css", false, false  );  wp_enqueue_style( 'megamenu' );
    }  

    ----------------------------------------------------------------------------
    Load Thumbs much faster without spinning wheel (Admin-Panel Checkbox)
    lib//functions/shortcodes/14-blog.php Line 355 exchange "preload" => true against "preload" => false

    ----------------------------------------------------------------------------

    make Shortcodes in TEASER possible
    themes/lib/funcctinos/theme.php line 1043: $out .= do_shortcode($teaser);

    ----------------------------------------------------------------------------

    make Pages Searchable (maybe use an Adminpanel-Option Checkbox to turn that on / off) -
    put into framework.php following code

    function mysite_custom_search($query)
    {
    	if ($query->is_search) { $query->set('post_type', 'any'); } return $query;
    }
    add_filter('pre_get_posts','mysite_custom_search');

    ----------------------------------------------------------------------------

    Posted 4 months ago #
  2. Webtreats
    Support

    Thanks for the list Heli Retzek.

    Posted 4 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme