Skip to content

Commit

Permalink
Misc code stds
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmcd75 committed Dec 5, 2023
1 parent 54ffda3 commit afbc845
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function buildForm(array $form, FormStateInterface $form_state, SerialTit

$prev_text = [
'#type' => 'html_tag',
'#tag' => 'span',
'#tag' => 'span',
'#value' => $this->t('<span aria-hidden="true">« </span>Previous'),
'#attributes' => [
'aria-label' => ['Show previous page'],
Expand All @@ -51,10 +51,12 @@ public function buildForm(array $form, FormStateInterface $form_state, SerialTit

$current_page = $digital_serial_page->getActivePagerNo();
$total_pages = $digital_serial_issue->getPageCount();
$issue_missingp_note = $digital_serial_issue->getIssueMissingPages();

$viewer_active_page_text = "Image $current_page of $total_pages";
$viewer_active_pager_item = [
'#type' => 'html_tag',
'#tag' => 'span',
'#tag' => 'span',
"#value" => $viewer_active_page_text,
"#attributes" => [
'class' => [
Expand All @@ -68,7 +70,7 @@ public function buildForm(array $form, FormStateInterface $form_state, SerialTit

$next_text = [
'#type' => 'html_tag',
'#tag' => 'span',
'#tag' => 'span',
'#value' => $this->t('Next<span aria-hidden="true"> »</span>'),
'#attributes' => [
'aria-label' => ['Show next page'],
Expand All @@ -88,6 +90,7 @@ public function buildForm(array $form, FormStateInterface $form_state, SerialTit
$uri = "internal:/serials/browse/{$digital_serial_title->id()}";
$url = Url::fromUri($uri);
}

$link_options = [
'attributes' => [
'class' => [
Expand Down

0 comments on commit afbc845

Please sign in to comment.