Version 5.0.6

This commit is contained in:
Neo committed 2025-12-19 18:55:49 -08:00
1 parent a3a4a9ccbd
commit b89858b2ff
1214 files changed
+92828 -14859

No files matched your search

@@ -312,8 +312,20 @@ class advertisements extends Controller
$form = new Form;
$form->add( new Select( 'ads_circulation', Settings::i()->ads_circulation, TRUE, array( 'options' => array( 'random' => 'ad_circ_random', 'newest' => 'ad_circ_newest', 'oldest' => 'ad_circ_oldest', 'least' => 'ad_circ_leasti' ) ) ) );
$form->add( new YesNo( 'ads_force_sidebar', Settings::i()->ads_force_sidebar, TRUE ) );
$form->add( new YesNo( 'ads_txt_enabled', Settings::i()->ads_txt_enabled, FALSE, array( 'togglesOn' => array( 'ads_txt' ) ) ) );
$form->add( new TextArea( 'ads_txt', Settings::i()->ads_txt, FALSE, array( 'rows' => 8 ), NULL, NULL, NULL, 'ads_txt' ) );
$adsTxtOptions = [
0 => 'no',
1 => 'yes',
2 => 'ads_txt_option_redirect',
];
$adsTxtToggles = [
1 => ['ads_txt'],
2 => ['ads_txt_redirect_url'],
];
$form->add( new Select( 'ads_txt_enabled', Settings::i()->ads_txt_enabled, FALSE, [
'options' => $adsTxtOptions,
'toggles' => $adsTxtToggles ] ) );
$form->add( new TextArea( 'ads_txt', Settings::i()->ads_txt, FALSE, [ 'rows' => 8 ], id: 'ads_txt' ) );
$form->add( new FormUrl( 'ads_txt_redirect_url', Settings::i()->ads_txt_redirect_url, FALSE, id: 'ads_txt_redirect_url' ) );
$form->add( new YesNo( 'ajax_pagination', Settings::i()->ajax_pagination, FALSE ) );
if ( $values = $form->values() )