1 | <?php |
||
7 | class Jetpack_WordAds_Shortcode { |
||
8 | |||
9 | private $scripts_and_style_included = false; |
||
|
|||
10 | |||
11 | function __construct() { |
||
14 | |||
15 | /** |
||
16 | * Register our shortcode and enqueue necessary files. |
||
17 | */ |
||
18 | function action_init() { |
||
26 | |||
27 | /** |
||
28 | * Our [wordad] shortcode. |
||
29 | * Prints a WordAds Ad. |
||
30 | * |
||
31 | * @param array $atts Array of shortcode attributes. |
||
32 | * @param string $content Post content. |
||
33 | * |
||
34 | * @return string HTML for WordAds shortcode. |
||
35 | */ |
||
36 | static function wordads_shortcode( $atts, $content = '' ) { |
||
44 | |||
45 | /** |
||
46 | * The shortcode output |
||
47 | * |
||
48 | * @param array $atts Array of shortcode attributes. |
||
49 | * @param string $content Post content. |
||
50 | * |
||
51 | * @return string HTML output |
||
52 | */ |
||
53 | static function wordads_shortcode_html( $atts, $content = '' ) { |
||
68 | } |
||
69 | |||
71 |
This check marks private properties in classes that are never used. Those properties can be removed.