PluginProbe
Simple Ticker / 1.01
Simple Ticker v1.01
trunk 1.0 1.01 1.02 1.03 1.04 1.05 1.06 1.07 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.07 2.08 2.09 2.10 2.11 3.00 3.01 3.02 3.03 All 33 releases
simple-ticker / req / SimpleTickerRegist.php

SimpleTickerRegist.php in Simple Ticker 1.01, at req/SimpleTickerRegist.php

57 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 ?>