Channel tab pull after speech tab #47
1 changed files with 49 additions and 2 deletions
|
@ -104,6 +104,7 @@ class LBRY_Admin
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
* Speech Admin Page settings
|
* Speech Admin Page settings
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -212,6 +213,13 @@ class LBRY_Admin
|
||||||
{
|
{
|
||||||
print 'This is where you can configure how LBRYPress will distribute your content:';
|
print 'This is where you can configure how LBRYPress will distribute your content:';
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Section info for the Speech Channel Section
|
||||||
|
*/
|
||||||
|
public function speech_section_callback()
|
||||||
|
{
|
||||||
|
print 'If you have a Spee.ch account, you can enter your account details here, if you don\'t already have a Spee.ch account, no need to enter anything here.';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Section info for the Available Channel(s) Section
|
* Section info for the Available Channel(s) Section
|
||||||
|
@ -231,7 +239,6 @@ class LBRY_Admin
|
||||||
<?php }
|
<?php }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Section info for the Speech Channel Section
|
* Section info for the Speech Channel Section
|
||||||
*/
|
*/
|
||||||
|
@ -256,7 +263,6 @@ class LBRY_Admin
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints License input
|
* Prints License input
|
||||||
*/
|
*/
|
||||||
|
@ -297,6 +303,47 @@ class LBRY_Admin
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prints Spee.ch input
|
||||||
|
*/
|
||||||
|
public function speech_callback()
|
||||||
|
{
|
||||||
|
$options = get_option( LBRY_SPEECH_SETTINGS );
|
||||||
|
printf(
|
||||||
|
'<input type="text" id="' . esc_attr('%1$s') . '" name="' . esc_attr('%2$s[%1$s]') . '" value="' . esc_attr('%3$s') . '" placeholder="https://your-speech-address.com">',
|
||||||
|
LBRY_SPEECH,
|
||||||
|
LBRY_SPEECH_SETTINGS,
|
||||||
|
isset( $options[LBRY_SPEECH] ) ? $options[LBRY_SPEECH] : '',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prints Spee.ch channel input
|
||||||
|
*/
|
||||||
|
public function speech_channel_callback()
|
||||||
|
{
|
||||||
|
$options = get_option( LBRY_SPEECH_SETTINGS );
|
||||||
|
printf(
|
||||||
|
'<input type="text" id="' . esc_attr('%1$s') . '" name="' . esc_attr('%2$s[%1$s]') . '" value="@' . esc_attr('%3$s') . '" placeholder="your-speech-channel">',
|
||||||
|
LBRY_SPEECH_CHANNEL,
|
||||||
|
LBRY_SPEECH_SETTINGS,
|
||||||
|
isset( $options[LBRY_SPEECH_CHANNEL] ) ? $options[LBRY_SPEECH_CHANNEL] : '',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prints Spee.ch password input
|
||||||
|
*/
|
||||||
|
public function speech_pw_callback()
|
||||||
|
{
|
||||||
|
printf(
|
||||||
|
'<input type="password" id="' . esc_attr('%1$s') . '" name="' . esc_attr('%2$s[%1$s]') . '" placeholder="Leave empty for same password">',
|
||||||
|
LBRY_SPEECH_PW,
|
||||||
|
LBRY_SPEECH_SETTINGS,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Channels Page
|
* Channels Page
|
||||||
* Channels page uses admin.php so we are able to use the admin-post action instead of options.php
|
* Channels page uses admin.php so we are able to use the admin-post action instead of options.php
|
||||||
|
|
Loading…
Reference in a new issue