-
Notifications
You must be signed in to change notification settings - Fork 0
/
lernorte-fuer-morgen.php
80 lines (64 loc) · 2.29 KB
/
lernorte-fuer-morgen.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* Lernorte für MorGEN Plugin
*
* @package Lernorte_fuer_MorGEN
* @license AGPL-3.0+
*
* @wordpress-plugin
* Plugin Name: Lernorte für MorGEN
* Plugin URI: https://github.com/gen-germany/lernorte-fuer-morgen-plugin
* Description: Specific additions for the Lernorte für MorGEN website
* Version: 0.3.7
* Author: Felix Wolfsteller
* Author URI: https://econya.de
* Text Domain: lernorte-fuer-morgen
* License: AGPL-3.0+
* License URI: http://www.gnu.org/licenses/agpl-3.0.txt
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/gen-germany/lernorte-fuer-morgen-plugin
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// plugin folder url
if(!defined('LFM_PLUGIN_URL')) {
define('LFM_PLUGIN_URL', plugin_dir_url( __FILE__ ));
}
// plugin folder dir
if(!defined('LFM_PLUGIN_DIR')) {
define('LFM_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
}
/** Make nested shortcodes (e.g. for maps) work with Pods. */
define('PODS_SHORTCODE_ALLOW_SUB_SHORTCODES',true);
/**
* Allow Pods Templates to use shortcodes
* NOTE: Will only work if the constant PODS_SHORTCODE_ALLOW_SUB_SHORTCODES is true.
*/
add_filter( 'pods_shortcode', function( $tags ) {
$tags[ 'shortcodes' ] = true;
return $tags;
});
include( LFM_PLUGIN_DIR . '/dashboard/dashboard.php' );
include( LFM_PLUGIN_DIR . '/admin/admin_style.php' );
include( LFM_PLUGIN_DIR . '/frontend/frontend_style.php' );
include( LFM_PLUGIN_DIR . '/frontend/image_sizes.php' );
include( LFM_PLUGIN_DIR . '/restrict-media/restrict-media.php' );
include( LFM_PLUGIN_DIR . '/shortcodes/shortcodes.php' );
include( LFM_PLUGIN_DIR . '/editor_ui/editor_ui.php' );
include( LFM_PLUGIN_DIR . '/pods/referentn_save.php' );
include( LFM_PLUGIN_DIR . '/pods/lernorte_save.php' );
include( LFM_PLUGIN_DIR . '/admin/profile_page.php' );
include( LFM_PLUGIN_DIR . '/admin/remove_help.php' );
include( LFM_PLUGIN_DIR . '/admin/excerpt_labels.php' );
include( LFM_PLUGIN_DIR . '/divi/divi.php' );
include( LFM_PLUGIN_DIR . '/nav/auto_menu.php' );
include( LFM_PLUGIN_DIR . '/search/calendar.php' );
include( LFM_PLUGIN_DIR . '/search/filter_view.php' );
function lfm_event_date_format( $date_string ) {
$timestamp = strtotime( $date_string );
$format = "d.m.Y";
return date( $format, $timestamp );
}
?>