Tabs
1 year ago
DSTemplate.php
1 year ago
DailyTimetablePrinter.php
1 year ago
DptApiDoc.php
2 years ago
HelpsAndTips.php
3 years ago
MonthlyTimetablePrinter.php
1 year ago
TimetablePrinter.php
1 year ago
dptWidgetForm.php
4 years ago
horizontal-div.php
1 year ago
widget-admin.php
1 year ago
DSTemplate.php
61 lines
| 1 | <?php /* Template Name: Digital Screen Prayer Time */ |
| 2 | |
| 3 | if (is_page_template( '../Views/DSTemplate.php' )) { |
| 4 | |
| 5 | function enqueue_dpt_scripts() { |
| 6 | wp_enqueue_script('dpt', plugin_dir_url(__FILE__) . 'js/dpt.js', array('jquery'), '1.0', true); |
| 7 | } |
| 8 | |
| 9 | add_action('wp_enqueue_scripts', 'enqueue_dpt_scripts'); |
| 10 | |
| 11 | wp_enqueue_script( 'dpt_bootstrap_js', plugins_url( '../Assets/js/bootstrap.bundle.min.js', __FILE__ ), array( 'jquery' ), DPT_PLUGIN_VERSION); |
| 12 | |
| 13 | wp_register_style( 'dpt_bootstrap', plugins_url('../Assets/css/bootstrap.min.css', __FILE__), array(), DPT_PLUGIN_VERSION ); |
| 14 | |
| 15 | wp_enqueue_style( 'dpt_bootstrap' ); |
| 16 | |
| 17 | } |
| 18 | |
| 19 | ?> |
| 20 | |
| 21 | <!DOCTYPE html> |
| 22 | <html <?php language_attributes(); ?>> |
| 23 | <head> |
| 24 | <meta charset="<?php bloginfo( 'charset' ); ?>"> |
| 25 | <?php if ( ! get_theme_support( 'title-tag' ) ): ?> |
| 26 | <title><?php wp_title(); ?></title> |
| 27 | <?php endif; ?> |
| 28 | |
| 29 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 30 | <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> |
| 31 | <meta http-equiv="Pragma" content="no-cache" /> |
| 32 | <meta http-equiv="Expires" content="0" /> |
| 33 | |
| 34 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
| 35 | |
| 36 | <?php //wp_head(); ?> |
| 37 | |
| 38 | <style> |
| 39 | <?php echo esc_html(get_option("ds-additional-css") )?> |
| 40 | </style> |
| 41 | |
| 42 | </head> |
| 43 | |
| 44 | <body class="google-font"> |
| 45 | <?php |
| 46 | |
| 47 | while ( have_posts() ) : the_post(); ?> |
| 48 | |
| 49 | <div class="entry-content"> |
| 50 | |
| 51 | <?php the_content(); ?> |
| 52 | |
| 53 | </div><!-- .entry-content --> |
| 54 | |
| 55 | <?php |
| 56 | endwhile; |
| 57 | ?> |
| 58 | <?php wp_footer(); ?> |
| 59 | </body> |
| 60 | </html> |
| 61 |