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