WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Theme: Unspoken] Widgets title not displayed (8 posts)

  1. suhasa010
    Member
    Posted 1 year ago #

    I am using a premium theme called 'unspoken' from wpshower.com .
    It doesnt show titles of some widgets like recent posts plus, tag cloud, jetpack subscription, popular posts.
    Any html/css/php code to show its title?
    Any help would be appreciated. :)
    my site: http://suhasa010.twomini.com

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Have you tried contacting your theme's vendors?

  3. citywizz
    Member
    Posted 1 year ago #

    Same to me

    Invalid argument supplied for foreach() in mywebsite/wp-content/themes/unspoken/core/widgets/tabs.php on line 30

    It seems that the publisher don't update it seems

  4. citywizz
    Member
    Posted 1 year ago #

  5. citywizz
    Member
    Posted 1 year ago #

    class wpshower_tabs extends WP_Widget {
    
        function wpshower_tabs() {
            $widget_args = array('classname' => 'unspoken-tabs', 'description' => __('Tabs', 'unspoken') );
            parent::WP_Widget(false, __('WPSHOWER Tabs', 'unspoken'), $widget_args);
        }
    
        function form() {}
    
        function update() {}
    
        function widget($args) {
            global $wp_registered_widgets;
            extract( $args );
            echo $before_widget;
            $widget_ids = wp_get_sidebars_widgets();
            if ( !empty($widget_ids['tabs-widget-area']) ) {
                echo '<div class="tabs-section">';
    
                $output = '<ul class="tabs-list">';
                $i = 0;
                foreach ( $widget_ids['tabs-widget-area'] as $widget ) {
    		// <-- DURANDAL --
                    //$widget_object = $wp_registered_widgets[$widget]['callback'][0];
    		$widget_object = $wp_registered_widgets[$widget]['callback_wl_redirect'][0];
    		// -- DURANDAL -->
                    $widget_id = $wp_registered_widgets[$widget]['params'][0]['number'];
                    $widget_data = get_option($widget_object->option_name);
                    foreach ( $widget_data as $id=>$widget ) {
                        if ( $id == $widget_id ) {
                            $i++;
                            if ( $i == 1 ) {
                                $output .= '<li class="tabs-current">'.$widget['title'].'</li>';
                            } else {
                                $output .= '<li>'.$widget['title'].'</li>';
                            }
                        }
                    }
                }
                echo $output .= '</ul>';
    
                if ( !dynamic_sidebar('tabs-widget-area') );
    
                echo '</div>';
            }
            echo $after_widget;
        }
    }
    add_action('widgets_init', create_function('', 'return register_widget("wpshower_tabs");'));

    working by updating tabs.php
    http://code.google.com/p/nm-themes/source/browse/trunk/unspoken/core/widgets/tabs.php?r=44

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    WordPress forums provide support for the core application, themes and plugins that are distributed on wordpress.org.

    Commercial themes and plugins are not supported.
    Contact your vendors.

  7. In your case the vendor support link is this one.

    http://wpshower.com/forums/forumdisplay.php?f=12

  8. suhasa010
    Member
    Posted 1 year ago #

    Thanks for all your support. I shall contact the vendors

Topic Closed

This topic has been closed to new replies.

About this Topic