View class, refactoring
This commit is contained in:
		
							
								
								
									
										20
									
								
								app/views/layouts/default.phtml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								app/views/layouts/default.phtml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
<head>
 | 
			
		||||
	<meta charset="UTF-8">
 | 
			
		||||
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
	<title><?php echo $this->title ?></title>
 | 
			
		||||
	<link rel="stylesheet" href="css/main.css">
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
	<header>
 | 
			
		||||
		{HEADER}
 | 
			
		||||
	</header>
 | 
			
		||||
 | 
			
		||||
	<?php echo $this->content(); ?>
 | 
			
		||||
 | 
			
		||||
	<footer>
 | 
			
		||||
		{FOOTER}
 | 
			
		||||
	</footer>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										1
									
								
								app/views/templates/example.phtml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								app/views/templates/example.phtml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
Example template
 | 
			
		||||
@@ -1,20 +0,0 @@
 | 
			
		||||
.loader {
 | 
			
		||||
  border: 16px solid #f3f3f3;
 | 
			
		||||
  border-radius: 50%;
 | 
			
		||||
  border-top: 16px solid #3498db;
 | 
			
		||||
  width: 120px;
 | 
			
		||||
  height: 120px;
 | 
			
		||||
  -webkit-animation: spin 2s linear infinite; /* Safari */
 | 
			
		||||
  animation: spin 2s linear infinite;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Safari */
 | 
			
		||||
@-webkit-keyframes spin {
 | 
			
		||||
  0% { -webkit-transform: rotate(0deg); }
 | 
			
		||||
  100% { -webkit-transform: rotate(360deg); }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@keyframes spin {
 | 
			
		||||
  0% { transform: rotate(0deg); }
 | 
			
		||||
  100% { transform: rotate(360deg); }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user