Seditio Source
Root |
./othercms/PHPFusion 9.10.20/infusions/news/search/search_news_include_button.php
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHP Fusion Inc
| https://phpfusion.com/
+--------------------------------------------------------+
| Filename: search_news_include_button.php
| Author: Core Development Team
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
namespace PHPFusion\Search;

defined('IN_FUSION') || exit;

if (
defined('NEWS_EXISTS')) {
   
$form_elements = &$form_elements;
   
$radio_button = &$radio_button;
   
$form_elements += [
       
'news' => [
           
'enabled'   => [
               
'0' => 'datelimit', '1' => 'fields1', '2' => 'fields2', '3' => 'fields3', '4' => 'sort', '5' => 'order1', '6' => 'order2',
               
'7' => 'chars'
           
],
           
'disabled'  => [],
           
'display'   => [],
           
'nodisplay' => [],
        ]
    ];
   
$radio_button += [
       
'news' => form_checkbox('stype', fusion_get_locale('n400', INFUSIONS.'news/locale/'.LOCALESET.'search/news.php'), Search_Engine::get_param('stype'),
            [
               
'type'          => 'radio',
               
'value'         => 'news',
               
'reverse_label' => TRUE,
               
'onclick'       => 'display(this.value)',
               
'input_id'      => 'news',
               
'class'         => 'm-b-0'
           
]
        )
    ];
}