PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/newexitinggames.kerihosting.com/wp-content/themes/triqui/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/newexitinggames.kerihosting.com/wp-content/themes/triqui/functions.php |
<?php if ( function_exists('register_sidebars') ) register_sidebars(1); /** * T H E M E A D M I N P A N E L */ $themename = "Triqui"; $options = array ( // Banner Options array( "name" => "Banner and Adsense Option", "type" => "heading", "desc" => "Manage banners and adsense ads.", ), array( "name" => "Header Banner", "desc" => "Put your code for 468x60 banner here", "id" => "triqui_headerad", "std" => "", "type" => "textarea" ), array( "name" => "Sidebar Banner", "desc" => "Put your code for 300x250 banner here.", "id" => "triqui_adsidebar1", "std" => "", "type" => "textarea" ), array( "name" => "Under Game Banner", "desc" => "Put your code for 728x90 banner here.", "id" => "triqui_adunder", "std" => "", "type" => "textarea" ), ); add_action('admin_menu', 'triqui_add_theme_admin'); function triqui_add_theme_admin() { global $themename, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { if ( isset( $_REQUEST[ $value['id'] ] ) ) { update_option($value['id'], $_REQUEST[$value['id']]); } else { delete_option( $value['id'] ); } } header("Location: themes.php?page=functions.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); update_option( $value['id'], $value['std'] ); } header("Location: themes.php?page=functions.php&reset=true"); die; } } add_theme_page($themename." Options", "$themename Options", 'edit_themes', basename(__FILE__), 'triqui_theme_admin'); } function triqui_theme_admin() { global $themename, $options; if ( isset($_REQUEST['saved']) && $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>'; if ( isset($_REQUEST['reset']) && $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>'; ?> <div class="wrap"> <h2><strong><?php echo $themename; ?> theme options</strong></h2> <form method="post"> <table class="optiontable"> <?php foreach ($options as $value) { if ($value['type'] == "text") { ?> <tr align="left"> <th scope="row"><?php echo $value['name']; ?>:</th> <td> <input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_option( $value['id'] ) != "") { echo get_option( $value['id'] ); } else { echo $value['std']; } ?>" size="40" /> </td> </tr> <tr><td colspan=2> <small><?php echo $value['desc']; ?> </small> <hr /></td></tr> <?php } elseif ($value['type'] == "textarea") { ?> <tr align="left"> <th scope="row"><?php echo $value['name']; ?>:</th> <td> <textarea name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" cols="50" rows="8"/> <?php if ( get_option( $value['id'] ) != "") { echo stripslashes (get_option( $value['id'] )); } else { echo $value['std']; } ?> </textarea> </td> </tr> <tr><td colspan=2> <small><?php echo $value['desc']; ?> </small> <hr /></td></tr> <?php } elseif ($value['type'] == "select") { ?> <tr align="left"> <th scope="top"><?php echo $value['name']; ?>:</th> <td> <select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>"> <?php foreach ($value['options'] as $option) { ?> <option<?php if ( get_option( $value['id'] ) == $option) { echo ' selected="selected"'; }?>><?php echo $option; ?></option> <?php } ?> </select> </td> </tr> <tr><td colspan=2> <small><?php echo $value['desc']; ?> </small> <hr /></td></tr> <?php } elseif ($value['type'] == "heading") { ?> <tr valign="top"> <td colspan="2" style="text-align: left;"><h2 style="color:green;"><?php echo $value['name']; ?></h2></td> </tr> <tr><td colspan=2> <small> <p style="color:red; margin:0 0;" > <?php echo $value['desc']; ?> </P> </small> <hr /></td></tr> <?php } ?> <?php } ?> </table> <p class="submit"> <input name="save" type="submit" value="Save changes" /> <input type="hidden" name="action" value="save" /> </p> </form> <form method="post"> <p class="submit"> <input name="reset" type="submit" value="Reset" /> <input type="hidden" name="action" value="reset" /> </p> </form> <p>Do you need support? Visit <a href="http://myarcadeplugin.com" title="WP Arcade Solution">MyArcadePlugin</a></p> </div> <?php // end wrap ?> <?php } ?>