Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_ct_event
Commits
752073b7
Commit
752073b7
authored
Oct 12, 2018
by
Eric Bremner
Browse files
ISTWCMS-2740: removing date views page template from events
parent
d2aa5616
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
102 deletions
+0
-102
templates/date-views-pager.tpl.php
templates/date-views-pager.tpl.php
+0
-102
No files found.
templates/date-views-pager.tpl.php
deleted
100644 → 0
View file @
d2aa5616
<?php
/**
* @file
* Template file for the example display.
*
* Variables available:
* - $plugin: The pager plugin object. This contains the view as well as a lot.
*
* $nav_title
* The formatted title for this view. In the case of block
* views, it will be a link to the full view, otherwise it will
* be the formatted name of the year, month, day, or week.
*
* $prev_url
* $next_url
* Urls for the previous and next calendar pages. The links are
* composed in the template to make it easier to change the text,
* add images, etc.
*
* $prev_options
* $next_options
* Query strings and other options for the links that need to
* be used in the l() function, including rel=nofollow.
*
* $block:
* Whether or not this view is in a block.
*
* $view
* The view object for this navigation.
*
* $pager_prefix
* Additional information that might be added by overriding
* template_process_date_views_pager().
*
* $extra_classes
* Extra classes for the wrapper, if any.
*/
// Ensure there is always a visible header.
if
((
string
)
$nav_title
===
''
)
{
$nav_title
=
'Current month'
;
}
?>
<?php
print
!
empty
(
$pager_prefix
)
?
$pager_prefix
:
''
;
?>
<div
class=
"date-nav-wrapper clearfix
<?php
print
!
empty
(
$extra_classes
)
?
$extra_classes
:
''
;
?>
"
>
<div
class=
"date-nav"
>
<div
class=
"date-prev"
>
<?php
if
(
!
empty
(
$prev_url
))
:
?>
<?php
$pos
=
strpos
(
$prev_url
,
'?mini='
);
$pos2
=
strpos
(
$prev_url
,
'&mini='
);
if
(
$pos
!==
FALSE
&&
!
$mini
)
{
$prev_url_array
=
explode
(
"?"
,
$prev_url
);
$prev_url
=
$prev_url_array
[
0
];
}
if
(
$pos2
!==
FALSE
&&
!
$mini
)
{
$prev_date
=
explode
(
"?"
,
$prev_url
);
$prev_date_array
=
explode
(
"/"
,
$prev_date
[
0
]);
$prev_url_array
=
explode
(
"mini="
,
$prev_url
);
$prev_url
=
$prev_url_array
[
0
]
.
'mini='
.
end
(
$prev_date_array
);
}
?>
<?php
print
l
(
'«'
.
(
$mini
?
''
:
t
(
'Previous'
,
array
(),
array
(
'context'
=>
'date_nav'
))),
$prev_url
,
$prev_options
);
?>
<?php
endif
;
?>
</div>
<div
class=
"date-heading"
>
<?php
if
(
$mini
)
{
?>
<h3>
<?php
print
$nav_title
;
?>
</h3>
<?php
}
else
{
?>
<h2>
<?php
print
$nav_title
;
?>
</h2>
<?php
}
?>
<?php
if
(
variable_get
(
'uw_calendar_navigate'
))
{
?>
<?php
$navigate_form
=
variable_get
(
'uw_calendar_navigate'
);
print
render
(
$navigate_form
);
?>
<?php
}
?>
</div>
<div
class=
"date-next"
>
<?php
if
(
!
empty
(
$next_url
))
:
?>
<?php
$pos
=
strpos
(
$next_url
,
'?mini='
);
$pos2
=
strpos
(
$prev_url
,
'&mini='
);
if
(
$pos
!==
FALSE
&&
!
$mini
)
{
$next_url_array
=
explode
(
"?"
,
$next_url
);
$next_url
=
$next_url_array
[
0
];
}
if
(
$pos2
!==
FALSE
&&
!
$mini
)
{
$next_date
=
explode
(
"?"
,
$next_url
);
$next_date_array
=
explode
(
"/"
,
$next_date
[
0
]);
$next_url_array
=
explode
(
"mini="
,
$next_url
);
$next_url
=
$next_url_array
[
0
]
.
'mini='
.
end
(
$next_date_array
);
}
?>
<?php
print
l
((
$mini
?
''
:
t
(
'Next'
,
array
(),
array
(
'context'
=>
'date_nav'
)))
.
' »'
,
$next_url
,
$next_options
);
?>
<?php
endif
;
?>
</div>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment