function subscribers_text_counter_init() { register_sidebar_widget(__('Subscribers Text Counter'), 'widget_subscribers_text_counter'); register_widget_control('Subscribers Text Counter', 'control_subscribers_text_counter'); add_action('admin_menu', 'admin_actions_subscribers_text_counter'); add_filter('plugin_row_meta', 'plugin_links_subscribers_text_counter', 10, 2); add_shortcode('stcounter', 'shortcodes_stc'); counters_subscribers_text_counter(options_subscribers_text_counter()); }
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, see <http://www.gnu.org/licenses/>. */ ?> <div class="wrap"> <?php $reset = $_POST['stextcount_hidden'] == 'reset' ? 1 : 0; $options = options_subscribers_text_counter($reset); $refresh = $_POST['stextcount_hidden'] == 'cache' ? 1 : 0; $counters = counters_subscribers_text_counter($options, $refresh); if ($_POST['stextcount_hidden'] == 'settings') { $options['feedburner'] = $_POST['feedburner']; $options['twitter'] = $_POST['twitter']; $options['facebook'] = $_POST['facebook']; $options['facebookk'] = $_POST['facebookk']; $options['facebooks'] = $_POST['facebooks']; update_option('widget_subscribers_text_counter', $options); ?> <div class="updated"><p><strong>Options saved.</strong></p></div> <?php } ?> <h2>Subscribers Text Counter <?php echo STCVERSION;