views/noticias/wp-content/themes/supermag/acmethemes/at-theme-info/class-at-theme-info.php
/**

         * Render the info content screen.

         */
Render the info content screen.
Render the info content screen .
public function at_theme_info_screen() {
            if ( ! empty( $this->config['info_title'] ) ) {
                $welcome_title = $this->config['info_title'];
            }
            if ( ! empty( $this->config['info_content'] ) ) {
                $welcome_content = $this->config['info_content'];
            }
            if ( ! empty( $this->config['quick_links'] ) ) {
                $quick_links = $this->config['quick_links'];
            }
            if (
                ! empty( $welcome_title ) ||
                ! empty( $welcome_content ) ||
                ! empty( $quick_links ) ||
                ! empty( $this->tabs )
            ) {
                echo '<div class="wrap about-wrap info-wrap epsilon-wrap">';
                if ( ! empty( $welcome_title ) ) {
                    echo '<h1>';
                    echo esc_html( $welcome_title );
                    if ( ! empty( $this->theme_version ) ) {
                        echo esc_html( $this->theme_version ) . ' </sup>';
                    }
                    echo '</h1>';
                }
                if ( ! empty( $welcome_content ) ) {
                    echo '<div class="about-text">' . wp_kses_post( $welcome_content ) . '</div>';
                }
                $notice_nag = get_option( 'supermag_admin_notice_welcome' );
                if ( ! $notice_nag ) {
                    echo '<div class="at-gsm-notice">
                        <small class="plugin-install-notice">'.esc_html__('Clicking the button below will install and activate the Advanced Import plugin.','supermag').'</small>
                        <a class="at-gsm-btn button button-primary button-hero" href="#" data-name="" data-slug="" aria-label="'.esc_html__('Get started with SuperMag','supermag').'">
                         '.esc_html__('Get started with SuperMag','supermag').'                   
                         </a>
                    </div>';
                }
                echo '<a href="https://www.acmethemes.com/" target="_blank" class="wp-badge epsilon-info-logo"></a>';
                if( !empty( $quick_links ) && is_array( $quick_links ) ){
                    echo '<p class="quick-links">';
                    foreach ( $quick_links as $quick_key => $quick_link ) {
                        $button = 'button-secondary';
                        if( 'pro_url' == $quick_key ){
                            $button = 'button-primary';
                        }
                        echo '<a href="'.esc_url( $quick_link['url'] ).'" class="button '.esc_attr( $button ).'" target="_blank">'.$quick_link['text'].'</a>';
                    }
                    echo "</p>";
                }
                if ( ! empty( $this->tabs ) ) {
                    $current_tab = isset( $_GET['tab'] ) ? wp_unslash( $_GET['tab'] ) : 'getting_started';
                    echo '<h2 class="nav-tab-wrapper wp-clearfix">';
                    $count = $this->count_recommended_actions();
                    foreach ( $this->tabs as $tab_key => $tab_name ) {
                        echo '<a href="' . esc_url( admin_url( 'themes.php?page=' . $this->theme_slug . '-info' ) ) . '&tab=' . $tab_key . '" class="nav-tab ' . ( $current_tab == $tab_key ? 'nav-tab-active' : '' ) . '" role="tab" data-toggle="tab">';
                        echo esc_html( $tab_name );
                        if ( $tab_key == 'recommended_actions' ) {
                            if ( $count > 0 ) {
                                echo '<span class="badge-action-count">' . esc_html( $count ) . '</span>';
                            }
                        }
                        echo '</a>';
                    }
                    echo '</h2>';
                    if ( method_exists( $this, $current_tab ) ) {
                        echo "<div class='changelog point-releases'>";
                        $this->$current_tab();
                        echo "</div>";
                    }
                }
                echo '</div><!--/.wrap.about-wrap-->';
            }
        }
public function at_theme_info_screen ( ) { if ( ! empty ( $ this -> config [ 'info_title' ] ) ) { $ welcome_title = $ this -> config [ 'info_title' ] ; } if ( ! empty ( $ this -> config [ 'info_content' ] ) ) { $ welcome_content = $ this -> config [ 'info_content' ] ; } if ( ! empty ( $ this -> config [ 'quick_links' ] ) ) { $ quick_links = $ this -> config [ 'quick_links' ] ; } if ( ! empty ( $ welcome_title ) || ! empty ( $ welcome_content ) || ! empty ( $ quick_links ) || ! empty ( $ this -> tabs ) ) { echo '<div class="wrap about-wrap info-wrap epsilon-wrap">' ; if ( ! empty ( $ welcome_title ) ) { echo '<h1>' ; echo esc_html ( $ welcome_title ) ; if ( ! empty ( $ this -> theme_version ) ) { echo esc_html ( $ this -> theme_version ) . ' </sup>' ; } echo '</h1>' ; } if ( ! empty ( $ welcome_content ) ) { echo '<div class="about-text">' . wp_kses_post ( $ welcome_content ) . '</div>' ; } $ notice_nag = get_option ( 'supermag_admin_notice_welcome' ) ; if ( ! $ notice_nag ) { echo '<div class="at-gsm-notice">

                        <small class="plugin-install-notice">' . esc_html__ ( 'Clicking the button below will install and activate the Advanced Import plugin.' , 'supermag' ) . '</small>

                        <a class="at-gsm-btn button button-primary button-hero" href="#" data-name="" data-slug="" aria-label="' . esc_html__ ( 'Get started with SuperMag' , 'supermag' ) . '">

                         ' . esc_html__ ( 'Get started with SuperMag' , 'supermag' ) . '                   

                         </a>

                    </div>' ; } echo '<a href="https://www.acmethemes.com/" target="_blank" class="wp-badge epsilon-info-logo"></a>' ; if ( ! empty ( $ quick_links ) && is_array ( $ quick_links ) ) { echo '<p class="quick-links">' ; foreach ( $ quick_links as $ quick_key => $ quick_link ) { $ button = 'button-secondary' ; if ( 'pro_url' == $ quick_key ) { $ button = 'button-primary' ; } echo '<a href="' . esc_url ( $ quick_link [ 'url' ] ) . '" class="button ' . esc_attr ( $ button ) . '" target="_blank">' . $ quick_link [ 'text' ] . '</a>' ; } echo " </p> " ; } if ( ! empty ( $ this -> tabs ) ) { $ current_tab = isset ( $ _GET [ 'tab' ] ) ? wp_unslash ( $ _GET [ 'tab' ] ) : 'getting_started' ; echo '<h2 class="nav-tab-wrapper wp-clearfix">' ; $ count = $ this -> count_recommended_actions ( ) ; foreach ( $ this -> tabs as $ tab_key => $ tab_name ) { echo '<a href="' . esc_url ( admin_url ( 'themes.php?page=' . $ this -> theme_slug . '-info' ) ) . '&tab=' . $ tab_key . '" class="nav-tab ' . ( $ current_tab == $ tab_key ? 'nav-tab-active' : '' ) . '" role="tab" data-toggle="tab">' ; echo esc_html ( $ tab_name ) ; if ( $ tab_key == 'recommended_actions' ) { if ( $ count > 0 ) { echo '<span class="badge-action-count">' . esc_html ( $ count ) . '</span>' ; } } echo '</a>' ; } echo '</h2>' ; if ( method_exists ( $ this , $ current_tab ) ) { echo " <div class='changelog point-releases'> " ; $ this -> $ current_tab ( ) ; echo " </div> " ; } } echo '</div><!--/.wrap.about-wrap-->' ; } }
Render the info content screen.
Render the info content screen .
/*quick links*/ /* Display tabs */ /* Display content for current tab, dynamic method according to key provided*/