Plugin Directory

Changeset 1226836


Ignore:
Timestamp:
08/21/2015 05:49:28 AM (11 years ago)
Author:
trex005
Message:

fixed multiple bugs

Location:
theme-catalog/branches/0.02
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • theme-catalog/branches/0.02/readme.txt

    r1226635 r1226836  
    1313== Description ==
    1414Attractive 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/)
    1517
    1618= Usage =
     
    5254
    5355== Installation ==
     56= The Easy Way =
     571. Install and Activate from `Plugins->Add New` in Wordpress
     581. Go to Step 4 in "Manually" section
     59= Manually =
    54601. Upload `theme-catalog.zip` to the `/wp-content/plugins/` directory
    55611. Unzip `theme-catalog.zip`
     
    7480
    7581== 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.
    7685= 0.01 =
    7786Initial release
    7887
    7988== Upgrade Notice ==
     89= 0.02 =
     90Critical bug fixes
    8091= 0.01 =
    8192Initial release
  • theme-catalog/branches/0.02/theme-catalog.php

    r1226631 r1226836  
    1 <?
     1<?php
    22/*
    33Plugin Name: Theme Catalog
    44Plugin URI: http://tapy.com
    55Description: Attractive front-end theme switcher/preview allowing demo of all themes, with menu and widget handling.
    6 Version: 0.01
     6Version: 0.1
    77Author: tapy.com
    88Author URI: http://tapy.com
     
    5757    }
    5858    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'));
    6060    }
    6161    public function admin_page(){
    62         ?>
    63         <div class="wrap">
     62        echo '<div class="wrap">
    6463            <h2>Theme Catalog Settings</h2>
    65             <form method="post" action="options.php">
    66             <?php
     64            <form method="post" action="options.php">';
    6765                // This prints out all hidden setting fields
    6866                settings_fields($this->static_prefix . "_options");
    6967                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>';
    7571    }
    7672    public function admin_page_sections(){
Note: See TracChangeset for help on using the changeset viewer.