* @copyright Copyright(c) 2016, Mauricio Villegas * @license GPLv2 or later */ /* Copyright (C) 2016 Mauricio Villegas This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ defined( 'ABSPATH' ) || exit; /// Enqueue the stylesheet /// wp_enqueue_style( 'announce-on-publish', plugin_dir_url( __FILE__ ) . 'announce-on-publish.css' ); /// Get possible announcement post types /// $post_types = get_post_types( array( 'public' => true, 'show_ui' => true ), 'objects' ); global $AnnounceOnPublish; $announce = $AnnounceOnPublish->announce; $mandatory = $AnnounceOnPublish->mandatory; ?>

name; if ( $pt == 'post' ) continue; $a_checkbox = 'name="aop_announce[]"' . ( isset($announce[$pt]) ? ' checked' : '' ); $m_checkbox = 'name="aop_mandatory[]"' . ( isset($mandatory[$pt]) ? ' checked' : '' ); echo ''; echo ' '; echo ' '; echo ' '; echo ''; } ?>
'.$p->label.'