v1.0.0
This commit is contained in:
commit
1ef08bd731
27 changed files with 4854 additions and 0 deletions
33
templates/source-footer.php
Normal file
33
templates/source-footer.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
/**
|
||||
* Source footer: last updated + mandatory attribution.
|
||||
*
|
||||
* @package Fontdelbosc_Transit
|
||||
*
|
||||
* @var array<string, mixed> $fontdelbosc_meta Source metadata.
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$fontdelbosc_meta = $fontdelbosc_data['meta'] ?? array();
|
||||
?>
|
||||
<footer class="fdbt-footer">
|
||||
<?php
|
||||
$fontdelbosc_updated = isset( $fontdelbosc_meta['publication_time'] )
|
||||
? Fontdelbosc_Transit_Maps::last_updated( (string) $fontdelbosc_meta['publication_time'] )
|
||||
: '';
|
||||
|
||||
if ( '' !== $fontdelbosc_updated ) :
|
||||
?>
|
||||
<p class="fdbt-footer__updated"><?php echo esc_html( $fontdelbosc_updated ); ?></p>
|
||||
<?php endif; ?>
|
||||
<p class="fdbt-footer__source">
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: source name. */
|
||||
esc_html__( 'Source: %s', 'fontdelbosc-transit' ),
|
||||
'<a href="https://cit.transit.gencat.cat" target="_blank" rel="nofollow noopener">' . esc_html__( 'Servei Català de Trànsit (SCT) / DGT', 'fontdelbosc-transit' ) . '</a>'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</footer>
|
||||
Loading…
Reference in a new issue