1: <?php
2:
3:
4: function bright_message($message) {
5: return __($message, 'bright-plugin');
6: }
7:
8:
9: function bright_echo_message($message) {
10: echo(bright_message($message));
11: }
12:
13:
14: function bright_extract_embed_code($embedCode) {
15: return substr($embedCode,7,strlen($embedCode) - 8);
16: }
17:
18: function bright_return_as_javascript($code) {
19: return " <script type='text/javascript'>\n " . $code . "\n </script>";
20: }
21:
22: function bright_render_as_javascript($code) {
23: echo(bright_return_as_javascript($code));
24: }
25:
26: