Channel tab pull after speech tab #47

Merged
lemsmyth merged 11 commits from channel-tab-after-speech-tab into master 2022-02-12 19:04:52 +01:00
Showing only changes of commit e894c3b6fc - Show all commits

View file

@ -23,7 +23,7 @@ $channel_list = $LBRY->daemon->channel_list();
<a href="<?php echo esc_url( admin_url( 'options.php?page=lbrypress&tab=speech' ) ); ?>" class="nav-tab <?php echo $lbry_active_tab == 'speech' ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Spee.ch' ); ?></a> <a href="<?php echo esc_url( admin_url( 'options.php?page=lbrypress&tab=speech' ) ); ?>" class="nav-tab <?php echo $lbry_active_tab == 'speech' ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Spee.ch' ); ?></a>
</nav> </nav>
<?php if ( $lbry_active_tab == 'channels' ) { <?php if ( $lbry_active_tab == 'channels' ) {
include_once( 'partials/channel-page.php' ); // include_once( 'partials/channel-page.php' );
} else { } else {
?> ?>
<form class="form-table" action="<?php echo esc_url( admin_url( 'options.php' ) ); ?>" method="post"> <form class="form-table" action="<?php echo esc_url( admin_url( 'options.php' ) ); ?>" method="post">
@ -34,7 +34,7 @@ $channel_list = $LBRY->daemon->channel_list();
do_settings_sections( LBRY_ADMIN_PAGE ); do_settings_sections( LBRY_ADMIN_PAGE );
submit_button(); submit_button();
} elseif ( $lbry_active_tab == 'channels' ) { } elseif ( $lbry_active_tab == 'channels' ) {
include_once( 'partials/channel-page.php' ); // include_once( 'partials/channel-page.php' );
} elseif ( $lbry_active_tab == 'speech' ) { } elseif ( $lbry_active_tab == 'speech' ) {
settings_fields( LBRY_SPEECH_SETTINGS ); settings_fields( LBRY_SPEECH_SETTINGS );
do_settings_sections( 'lbrypress-speech' ); do_settings_sections( 'lbrypress-speech' );