diff --git a/classes/admin/class-dashboard-widget-score.php b/classes/admin/class-dashboard-widget-score.php index 863701db1..aecbc3753 100644 --- a/classes/admin/class-dashboard-widget-score.php +++ b/classes/admin/class-dashboard-widget-score.php @@ -54,7 +54,7 @@ public function render_widget() { (string) filemtime( PROGRESS_PLANNER_DIR . "/assets/css/dashboard-widgets/{$this->id}.css" ) ); - \progress_planner()->the_template( "dashboard-widgets/{$this->id}.php" ); + \progress_planner()->the_view( "dashboard-widgets/{$this->id}.php" ); } /** diff --git a/classes/admin/class-dashboard-widget-todo.php b/classes/admin/class-dashboard-widget-todo.php index 30af95d27..ce23fbcf5 100644 --- a/classes/admin/class-dashboard-widget-todo.php +++ b/classes/admin/class-dashboard-widget-todo.php @@ -46,6 +46,6 @@ public function render_widget() { (string) filemtime( PROGRESS_PLANNER_DIR . '/assets/css/page-widgets/todo.css' ) ); - \progress_planner()->the_template( "dashboard-widgets/{$this->id}.php" ); + \progress_planner()->the_view( "dashboard-widgets/{$this->id}.php" ); } } diff --git a/classes/admin/class-page.php b/classes/admin/class-page.php index fc759c606..1c42ef479 100644 --- a/classes/admin/class-page.php +++ b/classes/admin/class-page.php @@ -96,7 +96,7 @@ public function add_page() { * @return void */ public function render_page() { - \progress_planner()->the_template( 'admin-page.php' ); + \progress_planner()->the_view( 'admin-page.php' ); } /** diff --git a/classes/class-base.php b/classes/class-base.php index 109d0d441..8ae038c87 100644 --- a/classes/class-base.php +++ b/classes/class-base.php @@ -418,7 +418,7 @@ public function add_action_links( $actions ) { * @param array $args The arguments to pass to the template. * @return void */ - public function the_template( $template, $args = [] ) { + public function the_view( $template, $args = [] ) { $this->the_file( [ $template, "/views/{$template}" ], $args ); } diff --git a/classes/class-widget.php b/classes/class-widget.php index 5cbc7cab0..cf38c6509 100644 --- a/classes/class-widget.php +++ b/classes/class-widget.php @@ -103,6 +103,6 @@ protected function should_render() { * @return void */ public function the_content() { - \progress_planner()->the_template( "page-widgets/{$this->id}.php" ); + \progress_planner()->the_view( "page-widgets/{$this->id}.php" ); } } diff --git a/classes/widgets/class-activity-scores.php b/classes/widgets/class-activity-scores.php index 0823d5840..8c95371b6 100644 --- a/classes/widgets/class-activity-scores.php +++ b/classes/widgets/class-activity-scores.php @@ -63,7 +63,7 @@ public function get_color( $number, $date ) { * @return void */ public function print_score_gauge() { - \progress_planner()->the_template( 'page-widgets/parts/activity-scores-gauge.php' ); + \progress_planner()->the_view( 'page-widgets/parts/activity-scores-gauge.php' ); } /** diff --git a/views/admin-page-settings.php b/views/admin-page-settings.php index 0830b916d..77b65d65a 100644 --- a/views/admin-page-settings.php +++ b/views/admin-page-settings.php @@ -35,7 +35,7 @@ class="prpl-pages-item prpl-pages-item-" data-page-item="" > - the_template( "setting/{$prpl_setting['type']}.php" ); ?> + the_view( "setting/{$prpl_setting['type']}.php" ); ?> diff --git a/views/admin-page.php b/views/admin-page.php index 22e1ef217..00edc22dc 100644 --- a/views/admin-page.php +++ b/views/admin-page.php @@ -9,8 +9,8 @@

- the_template( 'admin-page-header.php' ); ?> - the_template( 'welcome.php' ); ?> + the_view( 'admin-page-header.php' ); ?> + the_view( 'welcome.php' ); ?> diff --git a/views/page-widgets/activity-scores.php b/views/page-widgets/activity-scores.php index 8d0123e7e..b71804d5b 100644 --- a/views/page-widgets/activity-scores.php +++ b/views/page-widgets/activity-scores.php @@ -29,7 +29,7 @@ class="prpl-info-icon"
- the_template( 'page-widgets/parts/activity-scores-gauge.php' ); ?> + the_view( 'page-widgets/parts/activity-scores-gauge.php' ); ?> diff --git a/views/page-widgets/suggested-tasks.php b/views/page-widgets/suggested-tasks.php index 4e6afa801..7561a3523 100644 --- a/views/page-widgets/suggested-tasks.php +++ b/views/page-widgets/suggested-tasks.php @@ -59,7 +59,7 @@ class="prpl-activities-gauge"