Parcourir la source

Merge branch 'LaBlanca' into BaseProject

Iñigo Valentin il y a 9 ans
Parent
commit
b09c163b52
2 fichiers modifiés avec 12 ajouts et 1 suppressions
  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)")
+				}
 			}
 
 		}