views/noticias/wp-content/themes/supermag/acmethemes/hooks/siteorigin-panels.php
/**

 * Adds SuperMag Theme Widgets in SiteOrigin Pagebuilder Tabs

 *

 * @since SuperMag 1.5.0

 *

 * @param null

 * @return null

 *

 */
Adds SuperMag Theme Widgets in SiteOrigin Pagebuilder Tabs



@param null
@return null
Adds SuperMag Theme Widgets in SiteOrigin Pagebuilder Tabs @param null @return null
function supermag_widgets($widgets) {
    $theme_widgets = array(
        'supermag_ad_widget',
        'supermag_posts_col'
    );
    foreach($theme_widgets as $theme_widget) {
        if( isset( $widgets[$theme_widget] ) ) {
            $widgets[$theme_widget]['groups'] = array('supermag');
            $widgets[$theme_widget]['icon']   = 'dashicons dashicons-screenoptions';
        }
    }
    return $widgets;
}
function supermag_widgets ( $ widgets ) { $ theme_widgets = array ( 'supermag_ad_widget' , 'supermag_posts_col' ) ; foreach ( $ theme_widgets as $ theme_widget ) { if ( isset ( $ widgets [ $ theme_widget ] ) ) { $ widgets [ $ theme_widget ] [ 'groups' ] = array ( 'supermag' ) ; $ widgets [ $ theme_widget ] [ 'icon' ] = 'dashicons dashicons-screenoptions' ; } } return $ widgets ; }
Adds SuperMag Theme Widgets in SiteOrigin Pagebuilder Tabs
Adds SuperMag Theme Widgets in SiteOrigin Pagebuilder Tabs