2. 23. 5. 10. 오후 2:16 view-source:https://rheine-hilft-rheine.de/forums/forum/hilfsanfragen/
view-source:https://rheine-hilft-rheine.de/forums/forum/hilfsanfragen/ 2/18
104
105 //hook_name => hook identifier that associated functions and hooks / execution places (it can be string or array of strings)
106 // * when it is an array it will use each hook to associate the very same function with the hook
107 //f_key => unique function name or made up key. Helps with anonimous functions so they are not set multiple times
108 //f_unction => anonimous function to execute
109 //priority => what priority should the function fire at (@ADD - not yet added)
110 set: function(hook_name, f_key, f_unction, priority) {
111
112
113 if(typeof(hook_name) == 'object') {
114 for(i = 0, c = hook_name.length; i < c; i++) {
115 this.set(hook_name[i], f_key, f_unction, priority);
116 }
117
118 return true;
119 }
120
121 //have we already set this one?
122 if( typeof(ZiggeoWP.hooks._hooks[hook_name]) != 'undefined') {
123 for(i2 = 0, c2 = ZiggeoWP.hooks._hooks[hook_name].length; i2 < c2; i2++) {
124 if(ZiggeoWP.hooks._hooks[hook_name][i2].key === f_key) {
125 return false;
126 }
127 }
128 }
129
130 /*if(typeof(priority) === 'undefined') {
131 priority = 0; //0 equals last, other numbers indicate its position
132 }*/
133
134 //if(priority == 0) {
135 if(typeof(ZiggeoWP.hooks._hooks[hook_name]) == 'undefined') {
136 ZiggeoWP.hooks._hooks[hook_name] = [];
137 }
138
139 //if(typeof(ZiggeoWP.hooks._hooks[hook_name][f_unction]) == 'undefined') {
140 ZiggeoWP.hooks._hooks[hook_name].push( {key: f_key, func: f_unction} );
141 //all set and good, so lets return true
142 return true;
143 //}
144
145 //if it comes to here, hook was already set, so lets not add it one more time..
146 //we indicate this by returning false.
147 //return false;
148 //}
149 //else {
150 //@ADD in next revision, we do not need priority for now
151 //}
152 },
153
154 //will check all of the hooks and fire them one after another
155 fire: function(hook_name, data) {
156 if( typeof(ZiggeoWP.hooks._hooks[hook_name]) != 'undefined') {
157 for(i = 0, c = ZiggeoWP.hooks._hooks[hook_name].length; i < c; i++) {
158 //final sanity if the function is still available..
159 if( typeof(ZiggeoWP.hooks._hooks[hook_name][i]) != 'undefined') {
160 ZiggeoWP.hooks._hooks[hook_name][i].func(data);
161 }
162 }
163 }
164 },
165
166 //remove the specific hook and function
167 remove: function(hook_name, function_name) {
168
169 }
170 }
171 };
172
173
174 //function to get app options
175 function ziggeoGetApplicationOptions() {
176
177 return {
178 token: "",
179 webrtc_on_mobile: true,
180 webrtc_streaming_if_necessary: true }
181 }
182
183 //Set the V2 application
184 var ziggeo_app = new ZiggeoApi.V2.Application( ziggeoGetApplicationOptions() );
185 ZiggeoApi.V2.Locale.setLocale("de");
186 var ziggeo_dev = false;
187 </script>
188 <!-- Ziggeo API code - END -->
189 <link rel="pingback" href="https://rheine-hilft-rheine.de/xmlrpc.php">
190 </head>
191
192 <body class="forum bbpress forum-template-default single single-forum postid-61 wp-embed-responsive has-header-image has-sidebar colors-light">
193 <div id="page" class="site">
194 <a class="skip-link screen-reader-text" href="#content">Zum Inhalt springen</a>
195
196 <header id="masthead" class="site-header" role="banner">
197
198 <div class="custom-header">
199
200 <div class="custom-header-media">
201 <div id="wp-custom-header" class="wp-custom-header"><img src="https://www.rheine-hilft-rheine.de/wp-content/uploads/2020/03/helfende-haen
202
203 <div class="site-branding">
204 <div class="wrap">
205
206
207 <div class="site-branding-text">
208 <p class="site-title"><a href="https://rheine-hilft-rheine.de/" rel="home">Rheine hilft Rheine</a></p>
209