mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2024-11-23 22:59:12 +01:00
public function __construct
This commit is contained in:
parent
5906a2b1ca
commit
5fdb879879
6 changed files with 6 additions and 6 deletions
|
@ -3,7 +3,7 @@ defined('is_running') or die('Not an entry point...');
|
|||
|
||||
|
||||
class Example_Map{
|
||||
function __construct(){
|
||||
public function __construct(){
|
||||
global $page, $addonRelativeCode;
|
||||
|
||||
//add css and js to <head>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
defined('is_running') or die('Not an entry point...');
|
||||
|
||||
class Example_Ajax{
|
||||
function __construct(){
|
||||
public function __construct(){
|
||||
global $page, $addonRelativeCode;
|
||||
|
||||
//prepare the page
|
||||
|
|
|
@ -7,7 +7,7 @@ defined('is_running') or die('Not an entry point...');
|
|||
|
||||
class Admin{
|
||||
|
||||
function __construct(){
|
||||
public function __construct(){
|
||||
echo '<h2>This is an Admin Only Script</h2>';
|
||||
|
||||
echo '<p>This is an example of a Typesetter Addon in the form of a Admin page.</p>';
|
||||
|
|
|
@ -6,7 +6,7 @@ defined('is_running') or die('Not an entry point...');
|
|||
|
||||
class Gadget{
|
||||
|
||||
function __construct(){
|
||||
public function __construct(){
|
||||
echo '<h2>Gadget Example</h2>';
|
||||
echo '<div>';
|
||||
echo 'This is content that can be included in your theme.';
|
||||
|
|
|
@ -7,7 +7,7 @@ defined('is_running') or die('Not an entry point...');
|
|||
|
||||
class Special extends \Addon\Example\LoadAutomatically{
|
||||
|
||||
function __construct(){
|
||||
public function __construct(){
|
||||
echo '<h2>This is a Special Script</h2>';
|
||||
|
||||
echo '<p>This is an example of a Typesetter Addon in the form of a Special page.</p>';
|
||||
|
|
|
@ -7,7 +7,7 @@ defined('is_running') or die('Not an entry point...');
|
|||
|
||||
class Special_Admin extends \Addon\Example\Special{
|
||||
|
||||
function __construct(){
|
||||
public function __construct(){
|
||||
echo '<h2>This is the Admin version of a Special Script</h2>';
|
||||
|
||||
echo '<p>This is an example of a Typesetter Addon in the form of a Special page.</p>';
|
||||
|
|
Loading…
Reference in a new issue