| 1 |
<?php |
| 2 |
/** |
| 3 |
* Simple Ticker |
| 4 |
* |
| 5 |
* @package SimpleTicker |
| 6 |
* @subpackage SimpleTicker registered in the database |
| 7 |
Copyright (c) 2016- Katsushi Kawamori (email : dodesyoswift312@gmail.com) |
| 8 |
This program is free software; you can redistribute it and/or modify |
| 9 |
it under the terms of the GNU General Public License as published by |
| 10 |
the Free Software Foundation; version 2 of the License. |
| 11 |
|
| 12 |
This program is distributed in the hope that it will be useful, |
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
GNU General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU General Public License |
| 18 |
along with this program; if not, write to the Free Software |
| 19 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 |
*/ |
| 21 |
|
| 22 |
class SimpleTickerRegist { |
| 23 |
|
| 24 |
/* ================================================== |
| 25 |
* Settings register |
| 26 |
* @since 1.0 |
| 27 |
*/ |
| 28 |
function register_settings(){ |
| 29 |
|
| 30 |
if ( !get_option('simple_ticker') ) { |
| 31 |
$simple_ticker_tbl = array( |
| 32 |
'ticker1' => array( |
| 33 |
'text' => '', |
| 34 |
'color' => '#ff0000' |
| 35 |
), |
| 36 |
'ticker2' => array( |
| 37 |
'text' => '', |
| 38 |
'color' => '#ffff00' |
| 39 |
), |
| 40 |
'ticker3' => array( |
| 41 |
'text' => '', |
| 42 |
'color' => '#008000' |
| 43 |
), |
| 44 |
'sticky_posts' => array( |
| 45 |
'display' => TRUE, |
| 46 |
'title_color' => '#ff0000', |
| 47 |
'content_color' => '#000000' |
| 48 |
) |
| 49 |
); |
| 50 |
update_option( 'simple_ticker', $simple_ticker_tbl ); |
| 51 |
} |
| 52 |
|
| 53 |
} |
| 54 |
|
| 55 |
} |
| 56 |
|
| 57 |
?> |