I think this is much more involved than that (which is explained in the question). Listed below are the changes I should have applied to (relatively simple project). The amount of effort made me think twice before updating my other larger projects. However, I thought the following might be useful for other people who might consider updating their websites.
1.//////////////JS: On the File System, replace the js scripts referenced at the bottom of the html / php scripts with the new versions available in \ bower_components \ foundation-sites \ dist. For example, copy \ bower_components \ foundation-sites \ dist \ abc.js to your /js/abc.js project.
2.//////////////SCSS VARIABLES: In files (_settings.scss), (_custom_styles.scss), etc.:
3.//////////// PANELS AND BOXES: In php / html: REPLACE classes (panel) and (warning) with class removal. For me, the following lines that I used in the Replace Editor dialog box ( using regular expressions ). Depending on your design and coding style, you will probably need different lines.
REPLACE: <div data-alert class='alert-box **success** round'> WITH: <div class='**success** callout' data-closable='slide-out-right'>
REPLACE: <div data-alert class='alert-box **alert** round'> WITH: <div class='**alert** callout' data-closable='slide-out-right'>
REPLACE: <a href='#' class='close'>×</a> WITH: <button class='close-button' aria-label='Dismiss alert' type='button' data-close> <span aria-hidden='true'>×</span> </button>
DELETE line: <script src="./js/foundation.alert.js"></script>
ADD <p> added to the text inside each warning window around the text message: <p>...</p>
4.//////////// // MENU: I believe that the best way to handle menus is to rewrite them from scratch.
5.////////////// TABLES: REPLACE: class='table' WITH: class='hover'
6.////////////// MAKE TABLES Responsive (optional):
7.//////////////ABIDE:
REPLACE: </label>(.*)\r\n(.*)<small class=['|"]error['|"]>(.*)</small> WITH: <span class="form-error">$3</span>\r\n$2</label>
REPLACE: <form (.*) data-abide(.*)> WITH: <form $1 data-abide novalidate $2>
- Custom templates: - use the following 2 lines instead of the commented lines:
// Foundation 6 Style: Foundation.Abide.defaults.patterns['dd_mm_yyyy'] = /((0[1-9]|[12][0-9]|3[01])[- \/.]0[1-9]|1[012])[- \/.]\d\d/; Foundation.Abide.defaults.patterns['short_time'] = /(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9])/; // Foundation 5 Style: // $(document).foundation({ // abide : { // patterns : { // short_time: /(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9])/, // dd_mm_yyyy: /((0[1-9]|[12][0-9]|3[01])[- \/.]0[1-9]|1[012])[- \/.]\d\d/ // }, // } // });
** In no case is a complete list of all necessary changes. If so, the Foundation team would publish this a long time ago. However, this is a starting point that can give you an idea of ββwhat is happening.
Luck.... **
Bilal abdeen
source share