function move_fgms_html_title_meta()
{
    global $post, $wp_meta_boxes;
    do_meta_boxes(get_current_screen(), 'advanced', $post);
    # Remove the initial "advanced" meta boxes:
    unset($wp_meta_boxes['post']['advanced']);
}
Ejemplo n.º 2
0
/**
 * nggallery_admin_overview()
 *
 * Add the admin overview in wp2.7 style 
 * @return mixed content
 */
function nggallery_admin_overview()
{
    ?>
<div class="wrap ngg-wrap">
	<h2><?php 
    _e('NextGEN Gallery Overview', 'nggallery');
    ?>
</h2>
	<div id="dashboard-widgets-wrap" class="ngg-overview">
	    <div id="dashboard-widgets" class="metabox-holder">
	    	<div id="side-info-column" class="inner-sidebar">
				<?php 
    do_meta_boxes('ngg_overview', 'right', '');
    ?>
			</div>
			<div id="post-body" class="has-sidebar">
				<div id="dashboard-widgets-main-content" class="has-sidebar-content">
				<?php 
    do_meta_boxes('ngg_overview', 'left', '');
    ?>
				</div>
			</div>
	    </div>
	</div>
</div>
<?php 
}
Ejemplo n.º 3
0
    /**
     * Page content.
     */
    public function page($page)
    {
        global $wp_meta_boxes;
        if (!($boxes = beans_get($page, $wp_meta_boxes))) {
            return;
        }
        // Only add column class if there is more than 1 metaboxes.
        $column_class = beans_get('column', $boxes, array()) ? ' column' : false;
        // Set page data which will be used by the postbox.
        echo '<form action="" method="post" class="bs-options" data-page="' . beans_get('page') . '">';
        wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
        wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false);
        echo '<input type="hidden" name="beans_options_nonce" value="' . esc_attr(wp_create_nonce('beans_options_nonce')) . '" />';
        echo '<div class="metabox-holder' . $column_class . '">';
        do_meta_boxes($page, 'normal', null);
        if ($column_class) {
            do_meta_boxes($page, 'column', null);
        }
        echo '</div>';
        echo '<p class="bs-options-form-actions">
				<input type="submit" name="beans_save_options" value="Save" class="button-primary">
				<input type="submit" name="beans_reset_options" value="Reset" class="button-secondary">
			</p>';
        echo '</form>';
    }
Ejemplo n.º 4
0
    /**
     * Render option page type.
     */
    public function render()
    {
        ?>
		<div class="wrap">
			<h2><?php 
        echo esc_html($this->name);
        ?>
</h2>
			<form id="post" method="post" name="post">
				<div id="papi-hidden-editor" class="hide-if-js">
					<?php 
        wp_nonce_field('papi_save_data', 'papi_meta_nonce');
        ?>
					<?php 
        wp_editor('', 'papiHiddenEditor');
        ?>
				</div>
				<div id="poststuff">
					<div id="post-body">
						<?php 
        do_meta_boxes($this->post_type[0], 'normal', null);
        ?>
						<?php 
        submit_button();
        ?>
					</div>
				</div>
			</form>
		</div>
		<?php 
    }
Ejemplo n.º 5
0
 function pageAddProduct()
 {
     add_meta_box('add_product', __('New Product'), array(&$this, 'renderNewProduct'), 'add_product', 'normal');
     echo '<div id="poststuff">';
     do_meta_boxes('add_product', 'normal', null);
     echo '</div>';
 }
 public function do_metabox($post)
 {
     if (!$this->is_add_gallery() && !$this->is_edit_gallery()) {
         return;
     }
     do_meta_boxes(null, 'mediapress', $post);
 }
Ejemplo n.º 7
0
function dentix_move_metabox()
{
    global $post, $wp_meta_boxes;
    if ('patient' === get_current_screen()->id) {
        do_meta_boxes(get_current_screen(), 'advanced', $post);
        unset($wp_meta_boxes['patient']['advanced']);
    }
}
Ejemplo n.º 8
0
 function add_meta_box()
 {
     if (!current_user_can('publish_pages')) {
         return;
     }
     add_meta_box('datepickerthemediv', __('Datepicker Theme'), array(__CLASS__, 'theme_metabox'), 'cfseven', 'datepicker-theme', 'core');
     do_meta_boxes('cfseven', 'datepicker-theme', array());
 }
 public function page_content()
 {
     $title = $this->admin_heading('Footer Trademarks', FOOTER_PUTTER_ICON);
     $this->print_admin_form_with_sidebar_start($title);
     do_meta_boxes($this->get_screen_id(), 'side', null);
     $this->print_admin_form_with_sidebar_middle();
     do_meta_boxes($this->get_screen_id(), 'normal', null);
     $this->print_admin_form_end(__CLASS__);
 }
Ejemplo n.º 10
0
/**
 * Custom metaboxes above th editor
 *
 * @global string $post_type
 */
function wp_event_calendar_editor_below()
{
    global $post_type, $post;
    // Description title
    if (!in_array($post_type, wp_event_calendar_allowed_post_types())) {
        return;
    }
    // Below editor
    do_meta_boxes($post_type, 'below_event_editor', $post);
}
Ejemplo n.º 11
0
function sugarform_box()
{
    add_meta_box('sugarform_box', __('Form Options', 'myplugin_textdomain'), 'sugarform_box_content', 'sugarform', 'advanced', 'high');
    add_meta_box('sugarmapping_box', __('SugarCRM Mapping', 'myplugin_textdomain'), 'sugarmapping_box_content', 'sugarform', 'normal', 'high');
    // Move all "advanced" metaboxes above the default editor
    add_action('edit_form_after_title', function () {
        global $post, $wp_meta_boxes;
        do_meta_boxes(get_current_screen(), 'advanced', $post);
        unset($wp_meta_boxes[get_post_type($post)]['advanced']);
    });
}
Ejemplo n.º 12
0
 public function show_metabox($user)
 {
     if (!current_user_can('edit_user', $user->ID)) {
         return;
     }
     if (isset($_GET['updated'])) {
         $this->flush_cache($user_id);
     }
     echo '<div id="poststuff">';
     do_meta_boxes('user', 'normal', $user);
     echo '</div>';
 }
Ejemplo n.º 13
0
function deseret_connect_configuration_page()
{
    global $deseret_connect;
    deseret_connect_configuration_settings();
    $plugin_data = get_plugin_data(DESERET_CONNECT_DIR . 'deseret_connect.php');
    ?>


	<div class="wrap">
		
        <?php 
    if (function_exists('screen_icon')) {
        screen_icon();
    }
    ?>
        <?php 
    if (isset($_GET['updated']) && 'true' == esc_attr($_GET['updated'])) {
        deseret_connect_update_message();
    }
    ?>
		<h2><?php 
    _e('General Settings', 'deseret_connect');
    ?>
</h2>
       
        <form id="settings" method="post">		
		<div id="poststuff">			               
          <?php 
    settings_fields('deseret_connect-settings-group');
    ?>
				<div class="metabox-holder">
	
					<div class="post-box-container column-1 cron"><?php 
    do_meta_boxes($deseret_connect->settings, 'pending', $plugin_data);
    ?>
</div>
							            
		       	</div>						
		</div><!-- #poststuff -->
     <br class="clear">
        <input class="button button-primary" type="submit" value="<?php 
    _e('Save');
    ?>
" name="settings" />
        </form>
       <!--<a href="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
&action=run-now">Run Now</a>-->
	</div><!-- .wrap -->  	
<?php 
}
 protected function _printMetaBox($sContext, $iContainerID)
 {
     $_sCurrentScreenID = $this->oUtil->getCurrentScreenID();
     if (!isset($GLOBALS['wp_meta_boxes'][$_sCurrentScreenID][$sContext])) {
         return;
     }
     if (count($GLOBALS['wp_meta_boxes'][$_sCurrentScreenID][$sContext]) <= 0) {
         return;
     }
     echo "<div id='postbox-container-{$iContainerID}' class='postbox-container'>";
     do_meta_boxes('', $sContext, null);
     echo "</div>";
 }
Ejemplo n.º 15
0
 private static function init_hooks()
 {
     // Add hook to plugin activation event
     register_activation_hook(__FILE__, array('Farmer', 'plugin_activation'));
     // Add hook to plugin deactivation event
     register_deactivation_hook(__FILE__, array('Farmer', 'plugin_deactivation'));
     add_action('save_post', array('Farmer', 'save_meta_data'));
     add_action('edit_form_after_title', function () {
         global $post, $wp_meta_boxes;
         do_meta_boxes(get_current_screen(), 'advanced', $post);
         unset($wp_meta_boxes[get_post_type($post)]['advanced']);
     });
     add_action('init', array($this, 'load_plugin_textdomain'));
 }
Ejemplo n.º 16
0
    public function display()
    {
        ?>
			<div class='metabox-holder'>
				<?php 
        add_meta_box('wpmlm_marketing_settings', __('Marketing Section', 'wpmlm'), array($this, 'marketing_meta_box'), 'wpmlm');
        add_meta_box('wpmlm_rss_address', __('RSS Address', 'wpmlm'), array($this, 'rss_address_meta_box'), 'wpmlm');
        add_meta_box('wpmlm_google_merch_center', __('Google Merchant Centre / Google Product Search', 'wpmlm'), array($this, 'google_merch_center_meta_box'), 'wpmlm');
        do_meta_boxes('wpmlm', 'advanced', null);
        ?>

			</div>
		<?php 
    }
Ejemplo n.º 17
0
function fep_render_settings_page()
{
    ?>
<div class="wrap">
<div id="icon-options-general" class="icon32"></div>
<h2>Front-End Publishing Settings</h2>
	<?php 
    settings_errors();
    ?>
	<div class="clearfix paddingtop20">
		<div class="first ninecol">
			<form method="post" action="options.php">
				<?php 
    settings_fields('fep_settings');
    ?>
				<?php 
    do_meta_boxes('fep_metaboxes', 'advanced', null);
    ?>
				<?php 
    wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
    ?>
				<?php 
    wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false);
    ?>
			</form>
		</div>
		<div class="last threecol">
			<div class="side-block">
				Like the plugin? Don't forget to give it a good rating on WordPress.org.
			</div>
			<div class="side-block">
				<h3>Frontend Publishing Pro</h3>
				Supports:
				<ul>
					<li>- Custom fields</li>
					<li>- Custom post types</li>
					<li>- Custom taxonomies</li>
					<li>- Unlimited forms</li>
					<li>- Drag and drop form builder</li>
					<li>- Media restrictions</li>
				</ul>
				<div style="text-align:center;"><a class="button button-primary" href="http://wpfrontendpublishing.com/">Try It Now!</a></div>
			</div>
		</div>
	</div>
</div>
<?php 
}
Ejemplo n.º 18
0
 public function action_form_content_metaboxes_sharing($pagehook)
 {
     if (isset($this->website)) {
         foreach (range(1, ceil(count($this->website) / 2)) as $row) {
             echo '<div class="website-row">', "\n";
             foreach (range(1, 2) as $col) {
                 $pos_id = 'website-row-' . $row . '-col-' . $col;
                 echo '<div class="website-col-', $col, '" id="', $pos_id, '" >';
                 do_meta_boxes($pagehook, $pos_id, null);
                 echo '</div>', "\n";
             }
             echo '</div>', "\n";
         }
         echo '<div style="clear:both;"></div>';
     }
 }
Ejemplo n.º 19
0
/**
 * flag_admin_overview()
 *
 * Add the admin overview in wp2.7 style 
 * @return mixed content
 */
function flag_admin_overview()
{
    echo get_option('flag_plugin_error');
    ?>

<div class="wrap flag-wrap">
	<h2><?php 
    _e('Grand Flagallery Overview', 'flag');
    echo ' v' . FLAGVERSION;
    ?>
</h2>
	<div id="flag-overview" class="metabox-holder">
		<div id="post-body" class="has-sidebar">
			<div class="has-sidebar-content">
					<?php 
    do_meta_boxes('flag-overview', 'normal', null);
    ?>

			</div>
		</div>
		<div id="side-info-column" class="inner-sidebar" style="display:block; margin-left: -300px;">
				<?php 
    do_meta_boxes('flag-overview', 'side', null);
    ?>

		</div>
	</div>
</div>

<?php 
    wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
    wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false);
    ?>

<script type="text/javascript">
	//<![CDATA[
	jQuery(document).ready( function() {
		jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
	// postboxes
		postboxes.add_postbox_toggles('flag-overview');
		jQuery('#side-info-column #major-publishing-actions').appendTo('#dashboard_primary');
	});
	//]]>
</script>

<?php 
}
Ejemplo n.º 20
0
/**
 * options marketing is the main function for displaying the WP-Admin : Settings > Marketing page
 * @access public
 *
 * @since 3.8
 * @param null
 * @return null
 */
function wpsc_options_marketing()
{
    /* wpsc_setting_page_update_notification displays the wordpress styled notifications */
    wpsc_settings_page_update_notification();
    ?>

	<div class='metabox-holder'>
		<?php 
    add_meta_box('wpsc_marketing_settings', __('Marketing Section', 'wpsc'), 'wpsc_marketing_meta_box', 'wpsc');
    add_meta_box('wpsc_rss_address', __('RSS Address', 'wpsc'), 'wpsc_rss_address_meta_box', 'wpsc');
    add_meta_box('wpsc_google_merch_center', __('Google Merchant Centre / Google Product Search', 'wpsc'), 'wpsc_google_merch_center_meta_box', 'wpsc');
    do_meta_boxes('wpsc', 'advanced', null);
    ?>

	</div>

<?php 
}
Ejemplo n.º 21
0
/**
 * ckeditor_admin_overview()
 *
 * Add the admin overview the dashboard style
 * @return mixed content
 */
function ckeditor_admin_overview()
{
    ?>

	<div class="wrap ckeditor-wrap">
	<div id="icon-wp-ckeditor" class="icon32"><br /></div>
	<h2><?php 
    _e('CKEditor For WordPress', 'ckeditor_wordpress');
    ?>
 <?php 
    /*echo $this->version*/
    ?>
&nbsp;</h2>
		<div id="dashboard-widgets-wrap" class="ckeditor-overview">
			<div id="dashboard-widgets" class="metabox-holder">
				<div id="post-body">
					<div id="dashboard-widgets-main-content">
						<div class="postbox-container" style="width:49%;">
							<?php 
    do_meta_boxes('ckeditor_overview', 'left', '');
    ?>

						</div>
					<div class="postbox-container" style="width:49%;">
							<?php 
    do_meta_boxes('ckeditor_overview', 'right', '');
    ?>

						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		//<![CDATA[
		jQuery(document).ready( function($) {
			// postboxes setup
			postboxes.add_postbox_toggles('ckeditor-overview');
		});
		//]]>
	</script>
	<?php 
}
Ejemplo n.º 22
0
/**
 * Callback for StartBox Style Options Page layout
 *
 * @since Unkown
 */
function sb_style()
{
    wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
    wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false);
    ?>

<?php 
    if ($_GET['updated']) {
        echo '<div id="message" class="updated fade"><p>' . THEME_NAME . ' Style Options Saved.</p></div>';
    }
    ?>

<div class="wrap">
    <div id="icon-options-general" class="icon32"><br/></div>

    <h2><?php 
    echo THEME_NAME;
    ?>
 Style Options</h2>
	
    <div class="metabox-holder">
    	<form method="post" enctype="multipart/form-data" action="options.php" id="sb_options">
   	    <?php 
    settings_fields('sb_style');
    ?>

        <div id="primary-options" class="postbox-container primary-options-column column">
            <?php 
    do_meta_boxes('sb_style', 'primary', null);
    ?>
        </div>  <!-- postbox-container -->
        
        <div id="secondary-options" class="postbox-container secondary-options-column column">
        	<?php 
    do_meta_boxes('sb_style', 'secondary', null);
    ?>
        </div>  <!-- postbox-container -->

        </form>
    </div>  <!-- metabox-holder -->
</div> <!-- wrap -->

<?php 
}
Ejemplo n.º 23
0
 /**
  * Edit an existing or new gallery
  *
  * This will render the edit form, in place of the gallery list, unless
  * the user does not have the privileges to edit any theme options.
  *
  * @see onGalleriesMenu()
  */
 public static function showEditScreen(Main $owner, $per_page)
 {
     // Get the main meta box output (for Twig)
     ob_start();
     do_meta_boxes(Main::PT_GALLERY, 'normal', $owner->gallery);
     do_meta_boxes(Main::PT_GALLERY, 'advanced', $owner->gallery);
     $meta_boxes_main = ob_get_clean();
     // Get the side meta box output (for Twig)
     ob_start();
     do_meta_boxes(Main::PT_GALLERY, 'side', $owner->gallery);
     $meta_boxes_side = ob_get_clean();
     // Check if we start by displaying the right-side column;
     $screen = get_current_screen();
     $columns = (int) get_user_option('screen_layout_' . $screen->id);
     if ($columns == 0) {
         $columns = 2;
     }
     // Image upload button iframe src (href)
     $image_media_library = add_query_arg(array('post_id' => $owner->gallery ? $owner->gallery->ID : '', 'type' => 'image'), admin_url('media-upload.php'));
     $image_media_library = apply_filters('image_upload_iframe_src', $image_media_library);
     // As used by WordPress
     // Add an "Add Image" media button
     $media_buttons['image']['id'] = 'add_image';
     $media_buttons['image']['url'] = add_query_arg('filter', \Myatu\WordPress\BackgroundManager\Filter\MediaLibrary::FILTER, $image_media_library);
     // Add filter
     $media_buttons['image']['icon'] = admin_url('images/media-button-image.gif');
     $media_buttons['image']['title'] = __('Add an Image', $owner->getName());
     // Allow additional media buttons to be specified
     $media_buttons = apply_filters(Main::BASE_PUB_PREFIX . 'media_buttons', $media_buttons);
     // Ensure that media buttons have a `TB_iframe` as the last query arg
     foreach ($media_buttons as $media_button_key => $media_button_value) {
         if (isset($media_button_value['url'])) {
             $media_buttons[$media_button_key]['url'] = add_query_arg('TB_iframe', true, remove_query_arg('TB_iframe', $media_buttons[$media_button_key]['url']));
         }
     }
     // Iframe source for listing the images - @see onIframeImages()
     $images_iframe_src = add_query_arg(array('iframe' => 'images', 'edit' => $owner->gallery->ID, 'orderby' => false, 'order' => false, 'pp' => $per_page, 'paged' => false));
     // Iframe source for editing a single image - @see onIframeEditImage()
     $image_edit_src = add_query_arg(array('iframe' => 'edit_image', 'edit' => false, 'orderby' => false, 'order' => false, 'post_id' => $owner->gallery->ID, 'filter' => \Myatu\WordPress\BackgroundManager\Filter\MediaLibrary::FILTER));
     $vars = array('is_wp34' => Helpers::checkWPVersion('3.4', '>='), 'has_right_sidebar' => $columns == 2 ? 'columns-2' . (Helpers::checkWPVersion('3.4', '>=') ? '' : ' has-right-sidebar') : '', 'nonce' => wp_nonce_field(Main::NONCE_EDIT_GALLERY . $owner->gallery->ID, '_nonce', true, false), 'nonce_meta_order' => wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false, false), 'nonce_meta_clsd' => wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false, false), 'images_iframe_src' => $images_iframe_src, 'image_edit_src' => $image_edit_src, 'gallery' => $owner->gallery, 'post_type' => Main::PT_GALLERY, 'meta_boxes_main' => $meta_boxes_main, 'meta_boxes_side' => $meta_boxes_side, 'media_buttons' => $media_buttons, 'is_new' => $owner->gallery->post_status != 'auto-draft', 'edit' => $owner->gallery->ID, 'images_per_page' => $per_page, 'images_count' => $owner->images->getCount($owner->gallery->ID), 'images_hash' => $owner->images->getHash($owner->gallery->ID), 'img_large_loader' => $owner->getPluginUrl() . Main::DIR_IMAGES . 'large_loader.gif', 'image_del_is_perm' => !EMPTY_TRASH_DAYS || !MEDIA_TRASH ? true : false);
     $owner->template->display('edit_gallery.html.twig', $vars);
 }
Ejemplo n.º 24
0
/**
* This function generates the help page.
*
* @return void
* @since 4.4.0
*/
function mlw_generate_help_page()
{
    if (!current_user_can('moderate_comments')) {
        return;
    }
    wp_enqueue_style('qmn_admin_style', plugins_url('../css/qmn_admin.css', __FILE__));
    ///Creates the widgets
    add_meta_box("wpss_mrts", __('Need Help?', 'quiz-master-next'), "qmn_documentation_meta_box_content", "meta_box_help");
    add_meta_box("wpss_mrts", __('Support', 'quiz-master-next'), "qmn_support_meta_box_content", "meta_box_support");
    add_meta_box("wpss_mrts", __('System Info', 'quiz-master-next'), "qmn_system_meta_box_content", "meta_box_sys_info");
    ?>
	<div class="wrap">
	<h2><?php 
    _e('Help Page', 'quiz-master-next');
    ?>
</h2>
	<?php 
    echo mlw_qmn_show_adverts();
    ?>

	<!--Display Widget Boxes-->
	<div style="float:left; width:50%;" class="inner-sidebar1">
		<?php 
    do_meta_boxes('meta_box_help', 'advanced', '');
    ?>
	</div>

	<div style="float:left; width:50%;" class="inner-sidebar1">
		<?php 
    do_meta_boxes('meta_box_support', 'advanced', '');
    ?>
	</div>

	<div style="float:left; width:100%;" class="inner-sidebar1">
		<?php 
    do_meta_boxes('meta_box_sys_info', 'advanced', '');
    ?>
	</div>

	</div>
<?php 
}
Ejemplo n.º 25
0
/**
 * nggallery_admin_overview()
 *
 * Add the admin overview the dashboard style 
 * @return mixed content
 */
function nggallery_admin_overview()
{
    ?>
	<div class="wrap ngg-wrap">
		<h2><?php 
    _e('NextGEN Gallery Overview', 'nggallery');
    ?>
</h2>
        <?php 
    if (version_compare(PHP_VERSION, '5.0.0', '<')) {
        ngg_check_for_PHP5();
    }
    ?>
		<div id="dashboard-widgets-wrap" class="ngg-overview">
		    <div id="dashboard-widgets" class="metabox-holder">
				<div id="post-body">
					<div id="dashboard-widgets-main-content">
						<div class="postbox-container" style="width:49%;">
							<?php 
    do_meta_boxes('ngg_overview', 'left', '');
    ?>
						</div>
			    		<div class="postbox-container" style="width:49%;">
							<?php 
    do_meta_boxes('ngg_overview', 'right', '');
    ?>
						</div>						
					</div>
				</div>
		    </div>
		</div>
	</div>
	<script type="text/javascript">
		//<![CDATA[
		jQuery(document).ready( function($) {
			// postboxes setup
			postboxes.add_postbox_toggles('ngg-overview');
		});
		//]]>
	</script>
	<?php 
}
function switch_panel_view_enquiries()
{
    $id = $_REQUEST['id'];
    add_meta_box('switch_panel_cost_estimator_meta_box', 'View Enquiry Details', 'view_enquiries_meta_box_handler', 'view-enquiry', 'normal', 'default');
    ?>
        <div class="wrap">
            <div class="icon32" id="icon-users"><br></div>
            <h2><?php 
    _e('View Enquiry', 'switch_panel_cost_estimator');
    ?>
 
                <a class="add-new-h2" href="<?php 
    echo get_admin_url(get_current_blog_id(), 'admin.php?page=all-enquiries');
    ?>
"><?php 
    _e('Back to list', 'switch_panel_cost_estimator');
    ?>
</a>
            </h2>
            <form id="form" method="POST" enctype="multipart/form-data">
                <input type="hidden" name="nonce" value="<?php 
    echo wp_create_nonce(basename(__FILE__));
    ?>
"/>
                <input type="hidden" name="id_form_field" value="<?php 
    echo $item['id_form_field'];
    ?>
"/>

                <div class="metabox-holder" id="poststuff">
                    <div id="post-body">
                        <div id="post-body-content">
                             <?php 
    do_meta_boxes('view-enquiry', 'normal', $id);
    ?>
                        </div>
                    </div>
                </div>
            </form>
        </div>
<?php 
}
 public static function init_hooks()
 {
     if (!self::$ts_start_plugin) {
         self::$ts_start_plugin = time();
     }
     // Tilda_Admin::log(__CLASS__."::".__FUNCTION__, __FILE__, __LINE__);
     self::$initiated = true;
     add_action('admin_init', array('Tilda_Admin', 'admin_init'));
     add_action('admin_menu', array('Tilda_Admin', 'admin_menu'), 5);
     add_action('add_meta_boxes', array('Tilda_Admin', 'add_meta_box'), 5);
     add_action('admin_enqueue_scripts', array('Tilda_Admin', 'admin_enqueue_scripts'));
     add_action('save_post', array('Tilda_Admin', 'save_tilda_data'), 10);
     add_action('edit_form_after_title', function () {
         global $post, $wp_meta_boxes;
         do_meta_boxes(get_current_screen(), 'advanced', $post);
         unset($wp_meta_boxes[get_post_type($post)]['advanced']);
     });
     add_action("wp_ajax_tilda_admin_sync", array("Tilda_Admin", "ajax_sync"));
     add_action("wp_ajax_tilda_admin_export_file", array("Tilda_Admin", "ajax_export_file"));
     add_action("wp_ajax_tilda_admin_switcher_status", array("Tilda_Admin", "ajax_switcher_status"));
 }
Ejemplo n.º 28
0
    public static function meta_box_print()
    {
        global $nav_menu_selected_id, $hook_suffix;
        if ($hook_suffix !== 'nav-menus.php' || !$nav_menu_selected_id) {
            return;
        }
        foreach (self::$sections as $section) {
            add_meta_box("kc-nav-menus-metabox-{$section['id']}", $section['title'], array(__CLASS__, 'meta_box_fill'), 'nav-menus', 'kcmenunavmeta', 'default', $section);
        }
        ?>
<div id="kc-menu_navmeta" class="metabox-holder">
	<h2><?php 
        _e('Menu metadata', 'kc-settings');
        ?>
</h2>
	<?php 
        do_meta_boxes('nav-menus', 'kcmenunavmeta', $nav_menu_selected_id);
        ?>
</div>
	<?php 
    }
Ejemplo n.º 29
0
function mrt_opt_mng_pg()
{
    mrt_wpss_menu_head('WP-Security Admin tools by WebsiteDefender');
    add_meta_box("wpss_mrt_1", 'Initial Scan', "wpss_mrt_meta_box", "wpss");
    add_meta_box("wpss_mrt_2", 'System Information Scan', "wpss_mrt_meta_box2", "wpss2");
    add_meta_box("wpss_mrt_3", 'About Website Defender', "wsd_render_main", "wpss_wsd");
    echo '	
			<div class="metabox-holder">
				<div style="float:left; width:48%;" class="inner-sidebar1">';
    do_meta_boxes('wpss', 'advanced', '');
    do_meta_boxes('wpss2', 'advanced', '');
    echo '		
				</div>
				<div style="float:right;width:48%;" class="inner-sidebar1">';
    do_meta_boxes('wpss_wsd', 'advanced', '');
    echo '	
				</div>
						
				<div style="clear:both"></div>
			</div>';
    mrt_wpss_menu_footer();
}
Ejemplo n.º 30
0
 public function show()
 {
     global $screen_layout_columns;
     if (empty($screen_layout_columns)) {
         $screen_layout_columns = 2;
     }
     if (self::$settings->getGlobalOption('disable_timelimit')) {
         set_time_limit(0);
     }
     echo '<div id="wp-piwik-stats-general" class="wrap">';
     echo '<h2>' . (self::$settings->getGlobalOption('plugin_display_name') == 'WP-Piwik' ? 'Piwik ' . __('Statistics', 'wp-piwik') : self::$settings->getGlobalOption('plugin_display_name')) . '</h2>';
     if (self::$settings->checkNetworkActivation() && function_exists('is_super_admin') && is_super_admin()) {
         if (isset($_GET['wpmu_show_stats'])) {
             switch_to_blog((int) $_GET['wpmu_show_stats']);
         } else {
             new \WP_Piwik\Admin\Sitebrowser(self::$wpPiwik);
             return;
         }
         echo '<p>' . __('Currently shown stats:') . ' <a href="' . get_bloginfo('url') . '">' . (int) $_GET['wpmu_show_stats'] . ' - ' . get_bloginfo('name') . '</a>.' . ' <a href="?page=wp-piwik_stats">Show site overview</a>.</p>';
         echo '</form>' . "\n";
     }
     echo '<form action="admin-post.php" method="post"><input type="hidden" name="action" value="save_wp-piwik_stats_general" /><div id="dashboard-widgets" class="metabox-holder columns-' . $screen_layout_columns . (2 <= $screen_layout_columns ? ' has-right-sidebar' : '') . '">';
     wp_nonce_field('wp-piwik_stats-general');
     wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
     wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false);
     $columns = array('normal', 'side', 'column3');
     for ($i = 0; $i < 3; $i++) {
         echo '<div id="postbox-container-' . ($i + 1) . '" class="postbox-container">';
         do_meta_boxes(self::$wpPiwik->statsPageId, $columns[$i], null);
         echo '</div>';
     }
     echo '</div></form></div>';
     echo '<script type="text/javascript">//<![CDATA[' . "\n";
     echo 'jQuery(document).ready(function($) {$(".if-js-closed").removeClass("if-js-closed").addClass("closed"); postboxes.add_postbox_toggles("' . self::$wpPiwik->statsPageId . '");});' . "\n";
     echo '//]]></script>' . "\n";
     if (self::$settings->checkNetworkActivation() && function_exists('is_super_admin') && is_super_admin()) {
         restore_current_blog();
     }
 }