| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
class WINP_InfoMetaBox extends WINP_MetaBox { |
| 9 |
|
| 10 |
/** |
| 11 |
* A visible title of the metabox. |
| 12 |
* |
| 13 |
* Inherited from the class FactoryMetabox. |
| 14 |
* |
| 15 |
* @link http://codex.wordpress.org/Function_Reference/add_meta_box |
| 16 |
* |
| 17 |
* @since 1.0.0 |
| 18 |
* @var string |
| 19 |
*/ |
| 20 |
public $title; |
| 21 |
|
| 22 |
/** |
| 23 |
* The part of the page where the edit screen |
| 24 |
* section should be shown ('normal', 'advanced', or 'side'). |
| 25 |
* |
| 26 |
* @since 1.0.0 |
| 27 |
* @var string |
| 28 |
*/ |
| 29 |
public $context = 'side'; |
| 30 |
|
| 31 |
/** |
| 32 |
* The priority within the context where the boxes should show ('high', 'core', 'default' or 'low'). |
| 33 |
* |
| 34 |
* @link http://codex.wordpress.org/Function_Reference/add_meta_box |
| 35 |
* Inherited from the class FactoryMetabox. |
| 36 |
* |
| 37 |
* @since 1.0.0 |
| 38 |
* @var string |
| 39 |
*/ |
| 40 |
public $priority = 'core'; |
| 41 |
|
| 42 |
public $css_class = 'factory-bootstrap-423 factory-fontawesome-000'; |
| 43 |
|
| 44 |
protected $errors = []; |
| 45 |
protected $source_channel; |
| 46 |
protected $facebook_group_id; |
| 47 |
protected $paginate_url; |
| 48 |
|
| 49 |
public function __construct( $plugin ) { |
| 50 |
parent::__construct( $plugin ); |
| 51 |
|
| 52 |
$this->title = __( 'Robin image optimizer: notice', 'insert-php' ); |
| 53 |
} |
| 54 |
|
| 55 |
|
| 56 |
/** |
| 57 |
* Configures a metabox. |
| 58 |
* |
| 59 |
* @since 1.0.0 |
| 60 |
* |
| 61 |
* @param Wbcr_Factory422_ScriptList $scripts A set of scripts to include. |
| 62 |
* @param Wbcr_Factory422_StyleList $styles A set of style to include. |
| 63 |
* |
| 64 |
* @return void |
| 65 |
*/ |
| 66 |
public function configure( $scripts, $styles ) { |
| 67 |
} |
| 68 |
|
| 69 |
public function html() { |
| 70 |
?> |
| 71 |
<div class="wbcr-inp-metabox-banner"> |
| 72 |
<div class="wbcr-inp-image"> |
| 73 |
<?php WINP_Plugin::app()->get_adverts_manager()->render_placement( 'right_sidebar' ) ?> |
| 74 |
</div> |
| 75 |
</div> |
| 76 |
<?php |
| 77 |
} |
| 78 |
} |