Read Carefully: =============== This file details the actions that must be taken to modify the functions.php file after the modification of the index.php file for the addition or removal of a 'case' for any bulletin or outlook. Due to the extensiveness of the functions.php file, no code will be given in this guide; however, examples will be included where possible. Note: =============== The term 'case' refers to the block of code bearing the structure: case 'keyword': ... break; The term 'switch' refers to the block of code encasing one or more cases and bearing the structure: switch( variable ): ... endswitch; *************************************************************************************************** * In some cases, there may be a need to build a regular expression for the proccess of locating a * * particular file that matches a naming convention. If havinf no prior knowledge or experience * * with these expressions, a suitable regex builder, with reference guide, may be found at * * https://regex101.com * *************************************************************************************************** If a case for a new buttetin is added to the index.php file, the following functions must be modified in accordance. Make sure to add corresponding cases to each switch found within each function. =============== FUNCTIONS: - bulletin_exists( $year, $month, $type ) - get_climate_bulletin_update( $type ) - get_latest_bulletin( $year, $month, $type, $image = true, $redirect ) - get_recent_bulletin( $year, $month, $type, $redirect ) WIDGETS: - Recent_Bulletins_Widget If a case for a new outlook is added to the index.php file, the following functions and widgets classes must be modified in accordance. Make sure to add corresponding cases to each switch found within each function. =============== FUNCTIONS: - exists_latest_outlook( $type ) - get_caricof_outlook_summary( $type ) - get_latest_caricof_outlook( $type ) - get_recent_caricof_outlook( $year, $month, $type, false ) - outlook_exists( $year, $month, $type ) WIDGETS - CariCOF_Outlooks_Widget Likewise, the following widget classes must also be modified. =============== - Related_Pages_Widget - Product_Sheets_Widget Remember: =============== The process of adding a new case is simply the action of duplicating an existing one.