| Server IP : 199.250.200.62 / Your IP : 216.73.217.89 Web Server : Apache System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : jasonp18 ( 1000) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/jasonp18/www/wp-content/plugins/formidable-views/classes/views/calendars/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( 'You are not allowed to call this page directly.' );
}
?>
<div class="frmcal" id="frmcal-<?php echo esc_attr( $view->ID ); ?>">
<div class="frmcal-header"><a href="
<?php
echo esc_url(
add_query_arg(
array(
'frmcal-month' => $prev_month,
'frmcal-year' => $prev_year,
)
)
);
?>#frmcal-<?php echo esc_attr( $view->ID ); ?>" class="frmcal-prev" title="<?php echo esc_attr( $month_names[ $prev_month ] ); ?>">← <?php echo esc_html( $month_names[ $prev_month ] ); ?></a><select class="frmcal-dropdown" onchange="window.location='<?php echo esc_url( remove_query_arg( 'frmcal-month', add_query_arg( array( 'frmcal-year' => $year ) ) ) ); ?>&frmcal-month='+this.value+'#frmcal-<?php echo esc_attr( $view->ID ); ?>';">
<?php
foreach ( $month_names as $mkey => $mname ) {
echo '<option value="' . esc_attr( $mkey ) . '" ' . selected( $mkey, $month, false ) . '>' . esc_html( $mname ) . '</option>';
unset( $mkey, $mname );
}
?></select><select class="frmcal-dropdown" onchange="window.location='<?php echo esc_url( remove_query_arg( 'frmcal-year', add_query_arg( array( 'frmcal-month' => $month ) ) ) ); ?>&frmcal-year='+this.value+'#frmcal-<?php echo esc_attr( $view->ID ); ?>';">
<?php
for ( $i = ( $year - 5 ); $i <= ( $year + 5 ); $i++ ) {
echo '<option value="' . esc_attr( $i ) . '" ' . selected( $i, $year, false ) . '>' . esc_html( $i ) . '</option>';
}
unset( $i );
?></select> <a href="
<?php
echo esc_url(
add_query_arg(
array(
'frmcal-month' => $next_month,
'frmcal-year' => $next_year,
)
)
);
?>#frmcal-<?php echo esc_attr( $view->ID ); ?>" class="frmcal-next" title="<?php echo esc_attr( $month_names[ $next_month ] ); ?>"><?php echo esc_html( $month_names[ $next_month ] ); ?> →</a><div class="frmcal-title"><span class="frmcal-month"><?php echo esc_html( $month_names[ $month ] ); ?></span> <span class="frmcal-year"><?php echo esc_html( $year ); ?></span></div>
</div>
<table class="frmcal-calendar"><tbody>