function get_icon() { $map = $this->map(); return Mappress_Icons::get_icon($this->iconid, $map->options->defaultIcon); }
<div> <a id="mapp_e_visual"><?php _e('Visual', 'mappress'); ?> </a> | <a id="mapp_e_html"><?php _e('HTML', 'mappress'); ?> </a> <textarea id='mapp_e_poi_body' class='mapp-e-poi-body' rows='10'></textarea> </div> <div> <input id='mapp_e_save_poi' class='button-primary' type='button' value='<?php esc_attr_e('Save', 'mappress'); ?> ' /> <input id='mapp_e_cancel_poi' class='button' type='button' value='<?php esc_attr_e('Cancel', 'mappress'); ?> ' /> </div> </div> <div id='mapp_e_poi_icon_picker'></div> </div> <?php if (class_exists('Mappress_Pro')) { echo Mappress_Icons::get_icon_picker(); }
/** * There are several WP bugs that prevent correct activation in multisitie: * http://core.trac.wordpress.org/ticket/14170 * http://core.trac.wordpress.org/ticket/14718) * These bugs have been open for months. A workaround is to just 'activate' the plugin whenever it runs * (the tables are only created if they don't exist already) * */ function init() { // Load text domain load_plugin_textdomain('mappress', false, dirname(self::$basename) . '/languages'); // Register hooks and create database tables Mappress_Map::register(); // Register static classes if (class_exists('Mappress_Pro')) { Mappress_Icons::register(); Mappress_Query::register(); } // Check if upgrade is needed $current_version = get_option('mappress_version'); if ($current_version < '2.38.2') { self::$options->metaKeys = array(self::$options->metaKey); self::$options->save(); } update_option('mappress_version', self::VERSION); }
function get_icon() { $map = $this->map(); return Mappress_Icons::get($this->iconid); }