load scripts at the bottom of the page
This commit is contained in:
		
							parent
							
								
									1614248c35
								
							
						
					
					
						commit
						9cc79e3ea8
					
				| @ -15,8 +15,14 @@ class Layout { | |||||||
| 		$version = "Shimmie-".VERSION; | 		$version = "Shimmie-".VERSION; | ||||||
| 
 | 
 | ||||||
| 		$header_html = ""; | 		$header_html = ""; | ||||||
|  | 		$footer_html = ""; | ||||||
| 		foreach($page->headers as $line) { | 		foreach($page->headers as $line) { | ||||||
| 			$header_html .= "\t\t$line\n"; | 			if(strpos($line, "script src=") > 0) { | ||||||
|  | 				$footer_html .= "\t\t$line\n"; | ||||||
|  | 			} | ||||||
|  | 			else { | ||||||
|  | 				$header_html .= "\t\t$line\n"; | ||||||
|  | 			} | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		$left_block_html = ""; | 		$left_block_html = ""; | ||||||
| @ -70,6 +76,7 @@ $header_html | |||||||
| 			based on the Danbooru concept. | 			based on the Danbooru concept. | ||||||
| 			$debug | 			$debug | ||||||
| 			$contact | 			$contact | ||||||
|  | 			$footer_html | ||||||
| 		</div> | 		</div> | ||||||
| 	</body> | 	</body> | ||||||
| </html> | </html> | ||||||
|  | |||||||
| @ -15,8 +15,14 @@ class Layout { | |||||||
| 		$version = "Shimmie-".VERSION; | 		$version = "Shimmie-".VERSION; | ||||||
| 
 | 
 | ||||||
| 		$header_html = ""; | 		$header_html = ""; | ||||||
|  | 		$footer_html = ""; | ||||||
| 		foreach($page->headers as $line) { | 		foreach($page->headers as $line) { | ||||||
| 			$header_html .= "\t\t$line\n"; | 			if(strpos($line, "script src=") > 0) { | ||||||
|  | 				$footer_html .= "\t\t$line\n"; | ||||||
|  | 			} | ||||||
|  | 			else { | ||||||
|  | 				$header_html .= "\t\t$line\n"; | ||||||
|  | 			} | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		$left_block_html = ""; | 		$left_block_html = ""; | ||||||
| @ -83,6 +89,7 @@ $header_html | |||||||
| 			based on the Danbooru concept. | 			based on the Danbooru concept. | ||||||
| 			$debug | 			$debug | ||||||
| 			$contact | 			$contact | ||||||
|  | 			$footer_html | ||||||
| 		</div> | 		</div> | ||||||
| 	</body> | 	</body> | ||||||
| </html> | </html> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user