-
Notifications
You must be signed in to change notification settings - Fork 0
/
meeting-parents.php
216 lines (171 loc) · 5.55 KB
/
meeting-parents.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?php
/**
* @package MeetingParents
*/
/*
Plugin Name: Meeting Parents
Plugin URI: https://isleyenzihinler.com.tr
Description: Görüşme programını düzenlemek için oluşturulmuştur.
Version: 1.0.7
Author: Fatih Kaya
Author URI: https://isleyenzihinler.com.tr
License: GNU
Text Domain: meeting-parents
*/
if ( ! defined('ABSPATH') ) { die; }
function foobar_func($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/helloTeacher.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
add_shortcode( 'foobar', 'foobar_func' );
function sensmsmshortcode_func($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/sendsms.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
add_shortcode( 'smssendmp', 'sensmsmshortcode_func' );
function see_all($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/helloadmin.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
add_shortcode( 'see', 'see_all' );
function see_process($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/hellostudent.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
// register shortcode
add_shortcode('yourprocess', 'see_process');
function whole_exams($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/wholeexam.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
// register shortcode
add_shortcode('mp-whole-exams', 'whole_exams');
function student_answers($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/studentAnswers.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
// register shortcode
add_shortcode('mp-student-answers', 'student_answers');
function programmes($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/program.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
// register shortcode
add_shortcode('mp-program', 'programmes');
function classRoom($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/classRoom.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
// register shortcode
add_shortcode('mp-classRoom', 'classRoom');
function teachers_page($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/teacherspage.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
// register shortcode
add_shortcode('mp-teachers-page', 'teachers_page');
function sms_page($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/sendsms.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
// register shortcode
add_shortcode('mp-sms-page', 'sms_page');
function exam_questions($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/examQuestions.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
// register shortcode
add_shortcode('mp-exam-questions', 'exam_questions');
function trello($params = array()) {
ob_start();
include (dirname(__FILE__, 1) . '/templates/trello.php');
$ob_str=ob_get_contents();
ob_end_clean();
return $ob_str;
}
// register shortcode
add_shortcode('mp-trello', 'trello');
function meet_parents_js(){
$jsway = site_url().'/wp-content/plugins/meeting-parents/assets/myscript.js';
$cssway = site_url().'/wp-content/plugins/meeting-parents/assets/mystyle.css';
$cssway = site_url().'/wp-content/plugins/meeting-parents/assets/ui.js';
?>
<style src="<?php echo $cssway;?>" type="text/css"></style>
<script src="<?php echo 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js';?>"></script>
<script src="<?php echo 'https://code.jquery.com/ui/1.12.1/jquery-ui.js';?>"></script>
<script src="<?php echo $jsway;?>"></script>
<?php
}
add_action( 'wp_footer', 'meet_parents_js');
add_action('admin_enqueue_scripts', 'meet_parents_js');
function control_everydays(){
$lrgeturl = site_url().'/wp-content/plugins/meeting-parents/lessonrecords/';
$content = '';
$content .= '<h4>Merhaba Dünya<h4/>';
$content .= '<input type="date" name="tarih" id="tarih" placeholder="YYYY-AA-GG">';
$content .= '<input type="text" name="teaid" id="teaid" placeholder="Öğretmen ID">';
$content .= '<input type="submit" name="cgetir" id="cgetir" onclick="getlessonrecord(\''.$lrgeturl.'\')" value="Getir">';
$content .= '<div id="lessonrecords_cont"></div>';
return $content;
}
add_shortcode('mp-control-everyday', 'control_everydays');
function see_all_timelines(){
$tlgeturl = site_url().'/wp-content/plugins/meeting-parents/timelines/';
$content = '';
$content .= '<h4>Merhaba Dünya<h4/>';
$content .= '<input type="text" name="stuid" id="stuid" placeholder="Öğrenci ID">';
$content .= '<input type="submit" name="cgetir" id="cgetir" onclick="gettimeline(\''.$tlgeturl.'\')" value="Getir">';
$content .= '<div id="timeline_cont"></div>';
return $content;
}
add_shortcode('mp-see-alltimelines', 'see_all_timelines');
class iz_panel_Activate
{
public function iz_activate(){
flush_rewrite_rules();
}
}
require_once plugin_dir_path( __FILE__ )."izinc/Izinit.php";
//include_once plugin_dir_path( __FILE__ )."izinc/Base/Activate.php";
require_once plugin_dir_path( __FILE__ )."izinc/Base/Deactivate.php";
//if(class_exists('iz_panel_Activate')){
$semih = new iz_panel_Activate();
//}
register_activation_hook( __FILE__ , array( $semih, 'iz_activate' ) );
register_deactivation_hook( __FILE__ , array( 'Deactivate', 'deactivate' ) );
//if ( class_exists('\inc\Init')){
Izinit::register_services();
//}