Hijri
3 years ago
Processors
1 month ago
QuranADay
2 months ago
StartTime
1 year ago
design
1 month ago
AdminMenu.php
2 years ago
AssetsLoader.php
1 year ago
CustomPluginSettings.php
4 years ago
DPTAjaxHandler.php
4 years ago
DPTHelper.php
1 month ago
DSTemplateLoader.php
2 years ago
DailyShortCode.php
2 months ago
DigitalScreen.php
1 month ago
HijriDate.php
3 years ago
Init.php
4 years ago
MonthlyShortCode.php
2 years ago
MonthlyTimeTable.php
3 years ago
Shortcodes.php
2 months ago
Translator.php
4 years ago
UpdateStyles.php
1 month ago
Validator.php
3 years ago
db.php
2 months ago
dptWidget.php
4 years ago
CustomPluginSettings.php
44 lines
| 1 | <?php |
| 2 | class CustomPluginSettings |
| 3 | { |
| 4 | public function __construct() |
| 5 | { |
| 6 | add_filter( 'plugin_action_links_' . DPT_PLUGIN_FILE , array(&$this, 'dpt_plugin_action_links') ); |
| 7 | add_filter( 'plugin_row_meta', array( &$this, 'dpt_plugin_meta_links'), 10, 2 ); |
| 8 | |
| 9 | } |
| 10 | |
| 11 | /** |
| 12 | * Add plugin_action_links |
| 13 | */ |
| 14 | function dpt_plugin_action_links( $links ) |
| 15 | { |
| 16 | $settings = array( |
| 17 | '<a href="' . admin_url( 'options-general.php?page=dpt' ) . '" title="' . __( 'Daily Prayer Time Settings', 'dpt-support' ) . '">' . __( 'Settings', 'dpt-support') . '</a>' |
| 18 | ); |
| 19 | return array_merge($links, $settings); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Add plugin_row_meta links |
| 24 | */ |
| 25 | function dpt_plugin_meta_links( $links, $file ) { |
| 26 | |
| 27 | $plugin_file = 'svg-support/svg-support.php'; |
| 28 | |
| 29 | if ( $file == DPT_PLUGIN_FILE) { |
| 30 | return array_merge( |
| 31 | $links, |
| 32 | array( |
| 33 | '<a target="_blank" href="https://wordpress.org/support/plugin/daily-prayer-time-for-mosques/">' . __( 'Get Support', 'dpt-support') . '</a>', |
| 34 | '<a target="_blank" href="https://wordpress.org/support/plugin/daily-prayer-time-for-mosques/reviews/#new-post/">' . __( 'Leave a Review', 'dpt-support' ) . '</a>', |
| 35 | '<a target="_blank" href="https://donate.uwt.org/Account/Index.aspx">' . __( 'Support the Ummah', 'dpt-support') . '</a>' |
| 36 | ) |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | return $links; |
| 41 | |
| 42 | } |
| 43 | |
| 44 | } |