| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package Polylang |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* Settings class for media language and translation management |
| 8 |
* |
| 9 |
* @since 1.8 |
| 10 |
*/ |
| 11 |
class PLL_Settings_Media extends PLL_Settings_Module { |
| 12 |
/** |
| 13 |
* Stores the display order priority. |
| 14 |
* |
| 15 |
* @var int |
| 16 |
*/ |
| 17 |
public $priority = 30; |
| 18 |
|
| 19 |
/** |
| 20 |
* Constructor |
| 21 |
* |
| 22 |
* @since 1.8 |
| 23 |
* |
| 24 |
* @param object $polylang polylang object |
| 25 |
*/ |
| 26 |
public function __construct( &$polylang ) { |
| 27 |
parent::__construct( |
| 28 |
$polylang, |
| 29 |
array( |
| 30 |
'module' => 'media', |
| 31 |
'title' => __( 'Media', 'polylang' ), |
| 32 |
'description' => __( 'Activate languages and translations for media', 'polylang' ), |
| 33 |
'active_option' => 'media_support', |
| 34 |
) |
| 35 |
); |
| 36 |
} |
| 37 |
} |
| 38 |
|