public function __construct

This commit is contained in:
Buchholz 2021-10-24 19:18:48 +02:00
parent 5906a2b1ca
commit 5fdb879879
6 changed files with 6 additions and 6 deletions

View File

@ -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>

View File

@ -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

View File

@ -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>';

View File

@ -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.';

View File

@ -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>';

View File

@ -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>';