| 1 |
<?php |
| 2 |
/** |
| 3 |
* The shortcode Meta-box configurations. |
| 4 |
* |
| 5 |
* @package Smart_Post_Show |
| 6 |
* @subpackage Smart_Post_Show/admin |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
die; } // Cannot access pages directly. |
| 11 |
|
| 12 |
/** |
| 13 |
* The Shortcode display class. |
| 14 |
*/ |
| 15 |
class SPS_Shortcode { |
| 16 |
|
| 17 |
/** |
| 18 |
* Shortcode display metabox section. |
| 19 |
* |
| 20 |
* @param string $prefix The metabox key. |
| 21 |
* @return void |
| 22 |
*/ |
| 23 |
public static function section( $prefix ) { |
| 24 |
|
| 25 |
SP_PC::createSection( |
| 26 |
$prefix, |
| 27 |
array( |
| 28 |
'fields' => array( |
| 29 |
array( |
| 30 |
'type' => 'shortcode', |
| 31 |
'class' => 'pcp-admin-sidebar', |
| 32 |
), |
| 33 |
), |
| 34 |
) |
| 35 |
); |
| 36 |
|
| 37 |
} |
| 38 |
} |
| 39 |
|