| 1 | <?php |
||
| 17 | class GoogleAdSenseWidgetHandler extends TemplatingWidgetHandler |
||
| 18 | { |
||
| 19 | protected static $expectedParameters = [ |
||
| 20 | 'style' => [ |
||
| 21 | 'type' => 'string', |
||
| 22 | 'default' => 'display:block', |
||
| 23 | ], |
||
| 24 | 'ad_client' => [ |
||
| 25 | 'type' => 'string', |
||
| 26 | ], |
||
| 27 | 'ad_test' => [ |
||
| 28 | 'type' => 'string', |
||
| 29 | 'default' => 'off', |
||
| 30 | ], |
||
| 31 | 'ad_slot' => [ |
||
| 32 | 'type' => 'int', |
||
| 33 | ], |
||
| 34 | 'ad_format' => [ |
||
| 35 | 'type' => 'string', |
||
| 36 | 'default' => 'auto', |
||
| 37 | ], |
||
| 38 | ]; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Render widget content. |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function render() |
||
| 49 | } |
||
| 50 |