Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Missing page title added dashboard pages #650

Merged
merged 3 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions templates/dashboard/purchase_history.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
$start_date = Input::get( 'start_date', '' );
$end_date = Input::get( 'end_date', '' );

$paged = Input::get( 'current_page', 1, Input::TYPE_INT );

Check failure on line 23 in templates/dashboard/purchase_history.php

View workflow job for this annotation

GitHub Actions / WPCS

Overriding WordPress globals is prohibited. Found assignment to $paged
$per_page = tutor_utils()->get_option( 'pagination_per_page', 10 );

Check failure on line 24 in templates/dashboard/purchase_history.php

View workflow job for this annotation

GitHub Actions / WPCS

Overriding WordPress globals is prohibited. Found assignment to $per_page
$offset = ( $per_page * $paged ) - $per_page;
if ( '' !== $start_date ) {
$start_date = tutor_get_formated_date( 'Y-m-d', $start_date );
Expand Down Expand Up @@ -69,6 +69,12 @@
'filter_calendar' => true,
);

?>
<div class="tutor-fs-5 tutor-fw-medium tutor-color-black tutor-mb-24">
<?php esc_html_e( 'Order History', 'tutor' ); ?>
</div>
<?php

$filter_period_calendar_template = tutor()->path . 'views/elements/purchase-history-filter.php';
tutor_load_template_from_custom_path( $filter_period_calendar_template, $filter_period_calendar );

Expand Down Expand Up @@ -103,13 +109,13 @@
</thead>

<tbody>
<?php foreach ( $orders as $order ) : ?>

Check failure on line 112 in templates/dashboard/purchase_history.php

View workflow job for this annotation

GitHub Actions / WPCS

Overriding WordPress globals is prohibited. Found assignment to $order
<?php
if ( 'wc' === $monetize_by ) {
$wc_order = wc_get_order( $order->ID );
$price = tutor_utils()->tutor_price( $wc_order->get_total() );
$raw_price = $wc_order->get_total();
$status = $order->post_status;

Check failure on line 118 in templates/dashboard/purchase_history.php

View workflow job for this annotation

GitHub Actions / WPCS

Overriding WordPress globals is prohibited. Found assignment to $status
$badge_class = 'primary';
$order_status_text = '';

Expand Down Expand Up @@ -143,7 +149,7 @@
$edd_order = edd_get_payment( $order->ID );
$price = edd_currency_filter( edd_format_amount( $edd_order->total ), edd_get_payment_currency_code( $order->ID ) );
$raw_price = $edd_order->total;
$status = $edd_order->status_nicename;

Check failure on line 152 in templates/dashboard/purchase_history.php

View workflow job for this annotation

GitHub Actions / WPCS

Overriding WordPress globals is prohibited. Found assignment to $status
$badge_class = 'primary';
$order_status_text = $status;
}
Expand Down
2 changes: 2 additions & 0 deletions templates/dashboard/settings/reset-password.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

?>

<div class="tutor-fs-5 tutor-fw-medium tutor-mb-24"><?php esc_html_e( 'Settings', 'tutor' ); ?></div>

<div class="tutor-dashboard-content-inner">
<div class="tutor-mb-32">
<?php
Expand Down
2 changes: 1 addition & 1 deletion templates/dashboard/settings/social-profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$user = wp_get_current_user();
?>

<h3><?php esc_html_e( 'Settings', 'tutor' ); ?></h3>
<div class="tutor-fs-5 tutor-fw-medium tutor-mb-24"><?php esc_html_e( 'Settings', 'tutor' ); ?></div>

<div class="tutor-dashboard-setting-social tutor-dashboard-content-inner">

Expand Down
3 changes: 3 additions & 0 deletions templates/dashboard/settings/withdraw-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
3 => 'tutor-col-12 tutor-col-lg-4',
);
?>

<div class="tutor-fs-5 tutor-fw-medium tutor-mb-24"><?php esc_html_e( 'Settings', 'tutor' ); ?></div>

<div class="tutor-dashboard-setting-withdraw tutor-dashboard-content-inner">
<div class="tutor-mb-32">
<?php
Expand Down Expand Up @@ -152,7 +155,7 @@
?>
<div class="tutor-row tutor-mb-32">
<p>
<?php echo __( 'There\'s no Withdrawal method selected yet! To select a Withdraw method, please contact the Site Admin.', 'tutor' ); ?>

Check failure on line 158 in templates/dashboard/settings/withdraw-settings.php

View workflow job for this annotation

GitHub Actions / WPCS

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.
</p>
</div>
<?php
Expand Down
2 changes: 1 addition & 1 deletion templates/dashboard/withdraw.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
?>

<div class="tutor-dashboard-content-inner tutor-frontend-dashboard-withdrawal tutor-color-black">
<div class="tutor-fs-5 tutor-fw-medium tutor-color-black tutor-mb-24"><?php esc_html_e( 'Withdrawal', 'tutor' ); ?></div>
<div class="tutor-fs-5 tutor-fw-medium tutor-color-black tutor-mb-24"><?php esc_html_e( 'Withdrawals', 'tutor' ); ?></div>

<div class="tutor-card tutor-p-24">
<div class="tutor-row tutor-align-lg-center">
Expand Down
Loading