Related Articles
REMEMBER LOGIC IN LOGIN
On Login: if(isset($_POST[‘remember’])) { $month = time() + ( ( 3600 * 24 ) * 30 ); setcookie(‘remember_me’, $user_id, $month); } else { $past = time() – 100; setcookie(‘remember_me’, ”, $past); } On Logout: $past = time() – 100; setcookie(‘remember_me’, ”, $past); if( isset($_COOKIE[‘remember_me’]) AND trim($_COOKIE[‘remember_me’] ) != “” ) { //Store the sessions which […]
ADD A COOKIE CONSENT FEATURE
?php%20echo%20SITE_URL;%20?js/jquery.min.js?php%20echo%20SITE_URL;%20?js/jquery.cookieMessage.min.js $.cookieMessage({‘mainMessage’: ‘This website uses cookies. By using this website you consent to our use of these cookies. For more information visit our “>Privacy Policy. ‘,‘acceptButton’: ‘Got It!’,‘fontSize’: ’16px’,‘backgroundColor’: ‘#222’,});
TEMPLATE SETUP IN ANGULAR
1. Create an Angular App using angular CLIng new angular-templat 2. copy all the files and folder and paste it in the src > assets folder expect the HTML file. 3. Then include your all css files into the angular.json file like this ex.“styles”: [ “src/styles.css”, “src/assets/css/custom.css”, “src/assets/vendor/bootstrap/css/bootstrap.min.css”, “src/assets/vendor/font-awesome/css/font-awesome.min.css”, “src/assets/css/fontastic.css”, “src/assets/css/grasp_mobile_progress_circle-1.0.0.min.css”, “src/assets/vendor/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css”, “src/assets/css/style.default.css” ], 4. […]