'', 1 => 'read', 2 => 'separator' . $position, 3 => '', 4 => 'wp-menu-separator' ); } add_action('init_custom_menu_separator', 'add_launchpad_admin_menu_separator'); // ADD MENU SEPARATOR ABOVE OPTIONS PAGE function set_launchpad_admin_menu_separator() { do_action('init_custom_menu_separator', 57); } add_action('init', 'set_launchpad_admin_menu_separator'); // LAUNCHPAD SETTINGS function register_launchpad_settings() { register_setting('launchpad-settings', 'launchpad'); } // GET DIRECTORY SIZE function get_foldersize($path) { $total_size = 0; $files = scandir($path); $cleanPath = rtrim($path, '/') . '/'; foreach($files as $t) { if ('.' != $t && '..' != $t) { $currentFile = $cleanPath . $t; if (is_dir($currentFile)) { $size = get_foldersize($currentFile); $total_size += $size; } else { $size = filesize($currentFile); $total_size += $size; } } } return $total_size; } // FORMAT DIRECTORY SIZE function wp_formatsize($size) { $units = explode(' ', 'B KB MB GB TB PB'); $mod = 1024; for ($i = 0; $size > $mod; $i++) $size /= $mod; $endIndex = strpos($size, ".") + 3; return substr($size, 0, $endIndex) . ' ' . $units[$i]; } /*----------------------------------------------------------------------------------- LAUNCHPAD OPTIONS PAGE -------------------------------------------------------------------------------------*/ function launchpad_admin_page() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } // FETCH SAVED OPTION VALUES $options = get_option('launchpad'); // FETCH DIRECTORY FOLDER SIZES $upload_dir = wp_upload_dir(); $theme_dir = get_theme_root(); $upload_space = get_foldersize($upload_dir['basedir']); $content_space = get_foldersize(WP_CONTENT_DIR); $theme_space = get_foldersize($theme_dir); $plugin_space = get_foldersize(WP_PLUGIN_DIR); $wp_space = get_foldersize(ABSPATH); $active_theme = get_template_directory(); $active_theme_space = get_foldersize($active_theme); // MATH FOR DIRECTORY FOLDER SIZE PERCENTAGES $total = $content_space; $uploads = $upload_space / $total * 100; $plugins = $plugin_space / $total * 100; $themes = $theme_space / $total * 100; $active = ($active_theme_space / 2048000) * 38.86; echo '
'; echo screen_icon().'

Launchpad

'; echo'
'; settings_fields('launchpad-settings'); do_settings_sections('launchpad-settings'); echo ''; echo ''; // THEME SIZE echo ''; echo ''; echo ''; echo ''; // OLYMPUS FORMAT echo ''; echo ''; echo ''; echo ''; // DETAILS FORMAT echo ''; echo ''; echo ''; echo ''; // OLYMPUS PAGE TITE echo ''; echo ''; echo ''; echo ''; // OLYMPUS COMPANY NAME echo ''; echo ''; echo ''; echo ''; // OLYMPUS OFFICE CODES echo ''; echo ''; echo ''; echo ''; // OLYMPUS AGENT CODES /* echo ''; echo ''; echo ''; echo ''; */ // OLYMPUS ASSOCIATION CODES echo ''; echo ''; echo ''; echo ''; // OLYMPUS CONTACT FORM 7 ID echo ''; echo ''; echo ''; echo ''; /* // FEATURES echo ''; echo ''; echo ''; echo ''; */ echo ''; echo '
Memory Usage:WP-Content: '.wp_formatsize($content_space); echo '
'; echo ''; echo ''; echo ''; echo '
'; echo '
    '; echo '
  • Plugins
  • '; echo '
  • Uploads
  • '; echo '
  • Themes
  • '; echo '
  • Misc
  • '; echo '
'; echo '
'; echo 'Theme Size: '.wp_formatsize($active_theme_space); echo '
'; echo ''; echo '
'; echo '
    '; echo '
  • Light
  • '; echo '
  • Average
  • '; echo '
  • Heavy
  • '; echo '
'; echo '
Results Page Format:'; echo ''; echo '
Details Page Format:'; echo ''; echo '
Olympus Page Title:
Olympus Company Name:
Olympus Office Codes:
Olympus Agent Codes:
Olympus Association Codes:
Olympus Contact Form 7 ID:
Features'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo'
'; submit_button(); echo '
'; echo '
'; } /*----------------------------------------------------------------------------------- FUNCTIONS FOR FEATURES -------------------------------------------------------------------------------------*/ /* // FETCH SAVED OPTION VALUES $options = get_option('launchpad'); */ /***************************************** * AGENTS POST TYPE *****************************************/ /* if($options["checkbox_agents"] == 1) { function post_type_agents() { $labels = array( 'name' => 'Agents', 'singular_name' => 'Agent', 'add_new' => 'Add New', 'add_new_item' => 'Add New Agent', 'edit_item' => 'Edit Agent', 'new_item' => 'New Agent', 'all_items' => 'All Agents', 'view_item' => 'View Agents', 'search_items' => 'Search Agents', 'not_found' => 'No Agents found', 'not_found_in_trash' => 'No Agents found in Trash', 'parent_item_colon' => '', 'menu_name' => 'Agents' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array('slug' => 'agent'), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => true, 'menu_position' => null, 'menu_icon' => 'dashicons-businessman', 'taxonomies' => array(''), 'supports' => array('title', 'editor', 'thumbnail') ); register_post_type('agent' , $args); } add_action('init', 'post_type_agents'); } */ /***************************************** * OFFICES POST TYPE *****************************************/ /* if($options["checkbox_offices"] == 1) { function post_type_offices() { $labels = array( 'name' => 'Offices', 'singular_name' => 'Office', 'add_new' => 'Add New', 'add_new_item' => 'Add New Office', 'edit_item' => 'Edit Office', 'new_item' => 'New Office', 'all_items' => 'All Offices', 'view_item' => 'View Offices', 'search_items' => 'Search Offices', 'not_found' => 'No Offices found', 'not_found_in_trash' => 'No Offices found in Trash', 'parent_item_colon' => '', 'menu_name' => 'Offices' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array('slug' => 'office'), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => true, 'menu_position' => null, 'menu_icon' => 'dashicons-admin-multisite', 'taxonomies' => array(''), 'supports' => array('title', 'editor', 'thumbnail') ); register_post_type('office' , $args); } add_action('init', 'post_type_offices'); } */ /***************************************** * FAVORITES POST TYPE *****************************************/ /* if($options["checkbox_favorites"] == 1) { function post_type_favorites() { $labels = array( 'name' => 'Favorites', 'singular_name' => 'Favorite', 'add_new' => 'Add New', 'add_new_item' => 'Add New Favorites', 'edit_item' => 'Edit Favorite', 'new_item' => 'New Favorite', 'all_items' => 'All Favorites', 'view_item' => 'View Favorites', 'search_items' => 'Search Favorites', 'not_found' => 'No Favorites found', 'not_found_in_trash' => 'No Favorites found in Trash', 'parent_item_colon' => '', 'menu_name' => 'Favorites' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array('slug' => 'favorite'), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => true, 'menu_position' => null, 'menu_icon' => 'dashicons-heart', 'taxonomies' => array(''), 'supports' => array('title', 'editor', 'thumbnail') ); register_post_type('favorite' , $args); } add_action('init', 'post_type_favorites'); } */ ?> {"id":8560,"date":"2017-10-20T12:31:48","date_gmt":"2017-10-20T17:31:48","guid":{"rendered":"https:\/\/www.sugsands.com\/?p=8560"},"modified":"2019-06-13T18:23:31","modified_gmt":"2019-06-13T18:23:31","slug":"off-season-is-in-full-swing","status":"publish","type":"post","link":"https:\/\/www.sugsands.com\/2017\/10\/20\/off-season-is-in-full-swing\/","title":{"rendered":"Off Season is in Full Swing"},"content":{"rendered":"

\"\"<\/a>
\nFall is one of our favorite times to be at the beach! During our off season you can enjoy summer time temps during the day and crisp fall temps during the evening. Our off season also brings a refreshing break from the hustle and bustle of summer with zero wait times, open beaches and fall festivals!
\nOctober 28th<\/strong> you can take part in
The Original German Sausage Festival<\/a> where you will be able to\u00a0enjoy Elberta’s famous German sausage and sauerkraut with the whole family. On your way back into town, from 2-8 pm join in on the Fall Block Party<\/a> at Meyer Park for carnival games and children activities. Then for some adult entertainment, Big Beach Brewery is hosting a Big Beach Brewery Halloween Party.\u00a0<\/a>
\nOctober 29th<\/strong>\u00a0– November 5th\u00a0<\/strong>help cheer on ten ladies teams as they compete for the
SEC Woman’s Championship<\/a> title at the Orange Beach Sportsplex.
\nNovember 3rd and 4th<\/strong>\u00a0
The Hangout Oyster Cook-Off & Craft Beer Weekend<\/a>\u00a0showcases the talents and tastes of the best chefs from the Southeast. You wont want to miss this!<\/p>\n

With all these exciting events going on,\u00a0you are going to need a place to relax beach side.\u00a0Don’t\u00a0miss out on our Free Night Specials<\/a>! When you stay at least 3 nights, you get one night FREE.<\/strong>
\nGive us a call at 1-800-824-6462 to book your stay with
Sugar Sands Realty!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Fall is one of our favorite times to be at the beach! During our off season you can enjoy summer time temps during the day and crisp fall temps during the evening. Our off season also brings a refreshing break from the hustle and bustle of summer with zero wait times, open beaches and fall […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,7],"tags":[48,49,50,51,52,37,53,54,55,56,57],"class_list":["post-8560","post","type-post","status-publish","format-standard","hentry","category-events","category-news","tag-beach","tag-condo-rentals","tag-events","tag-fall","tag-fall-fun","tag-festival","tag-free-nights","tag-gulf-shores","tag-halloween","tag-orange-beach","tag-relax"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.sugsands.com\/wp-json\/wp\/v2\/posts\/8560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sugsands.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sugsands.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sugsands.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sugsands.com\/wp-json\/wp\/v2\/comments?post=8560"}],"version-history":[{"count":0,"href":"https:\/\/www.sugsands.com\/wp-json\/wp\/v2\/posts\/8560\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sugsands.com\/wp-json\/wp\/v2\/media?parent=8560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sugsands.com\/wp-json\/wp\/v2\/categories?post=8560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sugsands.com\/wp-json\/wp\/v2\/tags?post=8560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}