/** * Function to update opening scene option options * @link : */ function wpifw_update_opening_scene() { if (isset($_POST['opening_scene'])) { update_option('opening_scene', $_POST['opening_scene']); //don't update if not admin if (wpifw_utils::wpifw_isAdmin()) { update_option('allow_fight', $_POST['allow_fight']); update_option('allow_classes', $_POST['allow_classes']); update_option('allow_luck', $_POST['allow_luck']); update_option('allow_passphrase', $_POST['allow_passphrase']); update_option('allow_preface', $_POST['allow_preface']); update_option('wpifw_preface', $_POST['wpifw_preface']); } update_option('icon_color', $_POST['icon_color']); update_option('cover_image_id', $_POST['cover_image_id']); update_option('cover_image_url', $_POST['cover_image_url']); update_option('cover_image_thumbnail_url', $_POST['cover_image_thumbnail_url']); update_option('cover_image_overlay_url', $_POST['cover_image_overlay_url']); update_option('cover_image_overlay_id', $_POST['cover_image_overlay_id']); update_option('cover_image_overlay_title', $_POST['cover_image_overlay_title']); update_option('opening_scene_updated', 1); } // end if }
$id = 'dashboardid'; $title = 'Dashboard'; $help = '<p>' . __('Dashboard help.') . '</p>'; $screen->add_help_tab(array('id' => $id, 'title' => $title, 'content' => $help)); $screen->set_help_sidebar(__('<h4>External Links</h4><a href="http://choosablepath.net/resources/support/dashboard/">The dashboard</a>')); } else { if ($screen->id == 'dashboard_page_wpifw_options') { $id = 'dashboardOptionsid'; $title = 'Options'; $help = '<p>' . __('<h4>Options</h4><p>This is the elp</p>') . '</p>'; $screen->add_help_tab(array('id' => $id, 'title' => $title, 'content' => $help)); $id = 'openingsceneid'; $title = 'Opening Scene'; $help = '<p>' . __('<h4>Setting the Opening Scene</h4>') . '</p>'; $screen->add_help_tab(array('id' => $id, 'title' => $title, 'content' => $help)); if (wpifw_utils::wpifw_isAdmin()) { $id = 'allowfightid'; $title = 'Allow Characters'; $help = '<p>' . __('<h4>Creating Characters</h4>') . '</p>'; $screen->add_help_tab(array('id' => $id, 'title' => $title, 'content' => $help)); $id = 'allowclassesid'; $title = 'Allow Classes'; $help = '<p>' . __('<h4>Creating Character Classes</h4>') . '</p>'; $screen->add_help_tab(array('id' => $id, 'title' => $title, 'content' => $help)); $id = 'allowluckid'; $title = 'Allow Luck'; $help = '<p>' . __('<h4>Incorporating Chance</h4>') . '</p>'; $screen->add_help_tab(array('id' => $id, 'title' => $title, 'content' => $help)); $id = 'allowpasssphraseid'; $title = 'Allow Passphrases'; $help = '<p>' . __('<h4>Using Passphrases</h4>') . '</p>';