PluginProbe
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts / 2.3.1
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts v2.3.1
2.7.7 2.7.6 2.7.5 2.7.4 trunk 1.3 2.0.4 2.0.6 2.1.91 2.2.4 2.2.7 2.2.9 2.3.1 2.3.10 2.4.10 2.4.2 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.6.0 2.6.1 2.7.0 All 28 releases
insert-php / admin / metaboxes / info.php

info.php in Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts 2.3.1, at admin/metaboxes/info.php

78 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }