Changeset 1226836
- Timestamp:
- 08/21/2015 05:49:28 AM (11 years ago)
- Location:
- theme-catalog/branches/0.02
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
theme-catalog.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
theme-catalog/branches/0.02/readme.txt
r1226635 r1226836 13 13 == Description == 14 14 Attractive front-end theme switcher/preview allowing demo of all themes, with menu and widget handling. 15 16 [Demo Site](http://themes.tapyweb.com/theme-catalog/) 15 17 16 18 = Usage = … … 52 54 53 55 == Installation == 56 = The Easy Way = 57 1. Install and Activate from `Plugins->Add New` in Wordpress 58 1. Go to Step 4 in "Manually" section 59 = Manually = 54 60 1. Upload `theme-catalog.zip` to the `/wp-content/plugins/` directory 55 61 1. Unzip `theme-catalog.zip` … … 74 80 75 81 == Changelog == 82 = 0.02 = 83 * Fixed settings menu not showing up for non multisite admins 84 * Use proper PHP open tag for compatability on more servers. 76 85 = 0.01 = 77 86 Initial release 78 87 79 88 == Upgrade Notice == 89 = 0.02 = 90 Critical bug fixes 80 91 = 0.01 = 81 92 Initial release -
theme-catalog/branches/0.02/theme-catalog.php
r1226631 r1226836 1 <? 1 <?php 2 2 /* 3 3 Plugin Name: Theme Catalog 4 4 Plugin URI: http://tapy.com 5 5 Description: Attractive front-end theme switcher/preview allowing demo of all themes, with menu and widget handling. 6 Version: 0. 016 Version: 0.1 7 7 Author: tapy.com 8 8 Author URI: http://tapy.com … … 57 57 } 58 58 public function admin_setup(){ 59 add_options_page('Theme Catalog','Theme Catalog', null,$this->static_prefix . "_options",array($this,'admin_page'));59 add_options_page('Theme Catalog','Theme Catalog','administrator',$this->static_prefix . "_options",array($this,'admin_page')); 60 60 } 61 61 public function admin_page(){ 62 ?> 63 <div class="wrap"> 62 echo '<div class="wrap"> 64 63 <h2>Theme Catalog Settings</h2> 65 <form method="post" action="options.php"> 66 <?php 64 <form method="post" action="options.php">'; 67 65 // This prints out all hidden setting fields 68 66 settings_fields($this->static_prefix . "_options"); 69 67 do_settings_sections($this->static_prefix . "_options"); 70 submit_button(); 71 ?> 72 </form> 73 </div> 74 <?php 68 submit_button(); 69 echo '</form> 70 </div>'; 75 71 } 76 72 public function admin_page_sections(){
Note: See TracChangeset
for help on using the changeset viewer.