-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9090d40
commit 303646d
Showing
7 changed files
with
130 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
yarn-error.log | ||
.php_cs.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
<?php | ||
namespace RamseySolutions\RamseyBatch\Views; | ||
|
||
abstract class AdminPage { | ||
|
||
protected $controller; | ||
protected $slug; | ||
protected $title; | ||
|
||
abstract public function display(); | ||
|
||
public function __construct(object $controller, string $slug, string $title) { | ||
$this->controller = $controller; | ||
$this->slug = $slug; | ||
$this->title = $title; | ||
} | ||
|
||
protected function open() { | ||
return '<div id="' . $this->slug . '" class="wrap"><div id="icon-options-general" class="icon32"><br></div><h1 class="wp-heading-inline">' . $this->title . '</h1>'; | ||
} | ||
|
||
protected function close() { | ||
return '</div>';//.wrap | ||
} | ||
|
||
public function debug() { | ||
dump(__CLASS__); | ||
dump(dirname(__FILE__)); | ||
dump(get_current_screen()); | ||
dump($this->controller); | ||
dump(RB_PLUGIN_ROOT); | ||
dump(RB_PLUGIN_URL); | ||
} | ||
|
||
} | ||
abstract class AdminPage | ||
{ | ||
protected $controller; | ||
protected $slug; | ||
protected $title; | ||
|
||
abstract public function display(); | ||
|
||
public function __construct(object $controller, string $slug, string $title) | ||
{ | ||
$this->controller = $controller; | ||
$this->slug = $slug; | ||
$this->title = $title; | ||
} | ||
|
||
protected function open() | ||
{ | ||
return '<div id="' . $this->slug . '" class="wrap"><div id="icon-options-general" class="icon32"><br></div><h1 class="wp-heading-inline">' . $this->title . '</h1>'; | ||
} | ||
|
||
protected function close() | ||
{ | ||
return '</div>';//.wrap | ||
} | ||
|
||
public function debug() | ||
{ | ||
dump(__CLASS__); | ||
dump(dirname(__FILE__)); | ||
dump(get_current_screen()); | ||
dump($this->controller); | ||
dump(RB_PLUGIN_ROOT); | ||
dump(RB_PLUGIN_URL); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.