1 | <?php |
||
18 | class bbcodes_config |
||
19 | { |
||
20 | /** |
||
21 | * Configure s9e Pipes table plugin |
||
22 | * |
||
23 | * @param Configurator $configurator |
||
24 | * @access public |
||
25 | */ |
||
26 | 1 | public function pipes(Configurator $configurator) |
|
27 | { |
||
28 | 1 | if (!isset($configurator->BBCodes['pipes'])) |
|
29 | 1 | { |
|
30 | return; |
||
31 | } |
||
32 | |||
33 | 1 | $configurator->plugins->load('PipeTables'); |
|
34 | |||
35 | // Add class "pipe-table" to allow us to style the table with our CSS |
||
36 | 1 | $dom = $configurator->tags['TABLE']->template->asDOM(); |
|
37 | 1 | foreach ($dom->getElementsByTagName('table') as $table) |
|
38 | { |
||
39 | 1 | $table->setAttribute('class', 'pipe-table'); |
|
40 | 1 | } |
|
41 | 1 | $dom->saveChanges(); |
|
42 | 1 | } |
|
43 | |||
44 | /** |
||
45 | * Configure BBVideo to use the MEDIA tag with the Media Embed plugin |
||
46 | * |
||
47 | * @param Configurator $configurator |
||
48 | * @access public |
||
49 | */ |
||
50 | 1 | public function bbvideo(Configurator $configurator) |
|
73 | |||
74 | /** |
||
75 | * Configure Hidden BBCode |
||
76 | * |
||
77 | * @param Configurator $configurator |
||
78 | * @access public |
||
79 | */ |
||
80 | 1 | public function hidden(Configurator $configurator) |
|
101 | } |
||
102 |