Commit 615c4ae5 authored by Rodrigo's avatar Rodrigo
Browse files

Remove error attribute and ident html.

parent 9eb458d1
......@@ -16,15 +16,6 @@
* @subpackage Gen_Registration_Tracker/includes
*/
class Gen_Dashboard_Viewer {
/**
* List of errors occurred.
*
* @since 1.0.0
* @access protected
* @var WP_Error $error_list List of errors occurred.
*/
protected $error_list;
/** Function that calls the mothods to display the dashboard information.
*
* @param array $dashboard Object of type Gen_Dashboard_Loader.
......@@ -64,14 +55,14 @@ class Gen_Dashboard_Viewer {
<th>Name</th>
<th>Organization</th>
</tr>
</thead>
<tbody>
<?php
foreach ( $dashboard->get_delegates_list() as $delegate ) {
echo '<tr><td><strong>' . esc_html( $delegate->get_name() ) . ' </strong></td><td class="gen-value">' . esc_html( $delegate->get_organization() ) . '</td></tr>';
}
?>
</tbody>
</thead>
<tbody>
<?php
foreach ( $dashboard->get_delegates_list() as $delegate ) {
echo '<tr><td><strong>' . esc_html( $delegate->get_name() ) . ' </strong></td><td class="gen-value">' . esc_html( $delegate->get_organization() ) . '</td></tr>';
}
?>
</tbody>
</table>
</div>
</div>
......@@ -94,11 +85,11 @@ class Gen_Dashboard_Viewer {
</header>
<div class="gen-container">
<hr>
<?php
foreach ( $dashboard->get_number_of_registrants_by_region_list() as $region => $sum ) {
echo '<strong>' . esc_html( $region ) . ' </strong><span class="gen-value">' . esc_html( $sum ) . '</span><hr>';
}
?>
<?php
foreach ( $dashboard->get_number_of_registrants_by_region_list() as $region => $sum ) {
echo '<strong>' . esc_html( $region ) . ' </strong><span class="gen-value">' . esc_html( $sum ) . '</span><hr>';
}
?>
</div>
</div>
<?php
......@@ -120,11 +111,11 @@ class Gen_Dashboard_Viewer {
</header>
<div class="gen-container">
<hr>
<?php
foreach ( $dashboard->get_number_of_registrants_by_country_list() as $country => $sum ) {
echo '<strong>' . esc_html( Gen_Utility::code_to_country( $country ) ) . ' </strong><span class="gen-value">' . esc_html( $sum ) . '</span><hr>';
}
?>
<?php
foreach ( $dashboard->get_number_of_registrants_by_country_list() as $country => $sum ) {
echo '<strong>' . esc_html( Gen_Utility::code_to_country( $country ) ) . ' </strong><span class="gen-value">' . esc_html( $sum ) . '</span><hr>';
}
?>
</div>
</div>
<?php
......@@ -147,11 +138,11 @@ class Gen_Dashboard_Viewer {
</header>
<div class="gen-container">
<hr>
<?php
foreach ( $dashboard->get_number_of_registrants_by_diet_type_list() as $type => $sum ) {
echo '<strong>' . esc_html( $type ) . ' </strong><span class="gen-value">' . esc_html( $sum ) . '</span><hr>';
}
?>
<?php
foreach ( $dashboard->get_number_of_registrants_by_diet_type_list() as $type => $sum ) {
echo '<strong>' . esc_html( $type ) . ' </strong><span class="gen-value">' . esc_html( $sum ) . '</span><hr>';
}
?>
</div>
</div>
<?php
......@@ -174,11 +165,11 @@ class Gen_Dashboard_Viewer {
</header>
<div class="gen-container">
<hr>
<?php
foreach ( $dashboard->get_number_of_registrants_by_day_list() as $date => $sum ) {
echo '<strong>' . esc_html( $date ) . ' </strong><span class="gen-value">' . esc_html( $sum ) . '</span><hr>';
}
?>
<?php
foreach ( $dashboard->get_number_of_registrants_by_day_list() as $date => $sum ) {
echo '<strong>' . esc_html( $date ) . ' </strong><span class="gen-value">' . esc_html( $sum ) . '</span><hr>';
}
?>
</div>
</div>
<?php
......@@ -247,11 +238,11 @@ class Gen_Dashboard_Viewer {
</header>
<div class="gen-container">
<hr>
<?php
foreach ( $dashboard->get_number_of_registrants_by_trasnportation_list() as $transportation => $sum ) {
echo '<strong>' . esc_html( $transportation ) . ' </strong><span class="gen-value">' . esc_html( $sum ) . '</span><hr>';
}
?>
<?php
foreach ( $dashboard->get_number_of_registrants_by_trasnportation_list() as $transportation => $sum ) {
echo '<strong>' . esc_html( $transportation ) . ' </strong><span class="gen-value">' . esc_html( $sum ) . '</span><hr>';
}
?>
</div>
</div>
<?php
......@@ -304,13 +295,4 @@ class Gen_Dashboard_Viewer {
</div>
<?php
}
/**
* List of errors occurred
*
* @return WP_Error List of errors occurred.
*/
public function get_error_list() {
return $this->error_list;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment