'Normal', 'grayscale' => 'Grayscale', 'topographic' => 'Topographic' ); /** * @since 1.0 * @var mapPostions to manage the map positions * @access private */ private static $mapPostions = array( 'before' => 'Before Content', 'after' => 'After Content', 'none' => 'Custom' ); /** * @since 1.0 * @var mapSizeType to manage the map size type * @access private */ private static $mapSizeType = array( 'px' => 'px', 'per' => '%' ); /** * @since 1.0 * @var mapMarker to manage the default map pin * @access private */ private static $mapMarker = WP_MAPIT_URL . 'images/map-pin.png'; /** * Add hooks and filters for admin menu * * @since 1.0 * @static * @access public */ public static function init() { /* Add admin menu */ add_action( 'admin_menu', __CLASS__ . '::admin_menu' ); /* Add init hook */ add_action( 'admin_init', __CLASS__ . '::admin_init' ); } /** * Hook to manage WP MapIt admin menu * * @since 1.0 * @static * @access public */ public static function admin_menu() { add_menu_page( __('WP MapIt', WP_MAPIT_TEXTDOMAIN), __('WP MapIt', WP_MAPIT_TEXTDOMAIN), 'manage_options', 'wp_mapit', __CLASS__ . '::wp_mapit_settings', 'dashicons-location-alt' ); } /** * Hook to display WP MapIt Settings page * * @since 1.0 * @static * @access public */ public static function wp_mapit_settings() { ?>