Explorar el Código

Festivals image shown in the home screen and in the La Blanca section.

Iñigo Valentin hace 9 años
padre
commit
8bb975ed98
Se han modificado 2 ficheros con 12 adiciones y 1 borrados
  1. 1 1
      app/HomeView.swift
  2. 11 0
      app/LablancaView.swift

+ 1 - 1
app/HomeView.swift

@@ -221,7 +221,7 @@ class HomeView: UIView {
 							self.lablancaImage.isHidden = true;
 						}
 						else{
-							let path = "img/blog/thumb/\(filename)"
+							let path = "img/fiestas/thumb/\(filename)"
 							self.lablancaImage.setImage(localPath: path, remotePath: "https://margolariak.com/\(path)")
 						}
 					}

+ 11 - 0
app/LablancaView.swift

@@ -108,6 +108,17 @@ class LablancaView: UIView {
 			
 				// Set description
 				self.fText.text = (r.value(forKey: "text_\(lang)") as! String?)?.decode().stripHtml()
+				
+				// Set image
+				let filename: String = r.value(forKey: "img") as! String
+				if (filename == ""){
+					// Hide the imageview
+					self.fImage.isHidden = true;
+				}
+				else{
+					let path = "img/fiestas/thumb/\(filename)"
+					self.fImage.setImage(localPath: path, remotePath: "https://margolariak.com/\(path)")
+				}
 			}
 
 		}