plxdcma_rendericon_imagecard 1.0.1 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/js.js +12 -3
  2. package/package.json +1 -1
package/js.js CHANGED
@@ -41,9 +41,15 @@ function imagecard(data,isediting,section){
41
41
  }
42
42
  console.log(`image card data`)
43
43
  console.log(data)
44
+
44
45
  var tid=`img_c_${imagecardids}`
45
46
  imagecardids=imagecardids+1
46
47
  var url=""
48
+ var titulo=""
49
+ if(data.titulo != null){
50
+ titulo=data.titulo
51
+ }
52
+ var descripcion=data.descripcion
47
53
  var dmd=data.media ?? data.iconmedia;
48
54
  if(dmd != null){
49
55
  for(var each in MediaResources){
@@ -68,17 +74,20 @@ function imagecard(data,isediting,section){
68
74
  }
69
75
  }
70
76
  }
77
+
71
78
  console.log(`Mediare`)
72
79
  console.log(MediaResources)
73
80
  }
74
-
81
+ if(data.imageurl != null){
82
+ url=data.imageurl
83
+ }
75
84
 
76
85
  var tb=`<div id='${tid}' onclick='didTapedImageIcon(${section},"${tid}")' class="gallery-item" data-category="team">
77
86
  <img cxtza='img' class="nuclearimage" src="/images/${url}m.png" alt="Shohei Ohtani Pitching">
78
87
  <div class="gallery-overlay">
79
88
  <div class="gallery-info">
80
- <h3 class="datitle" cxtza='titulo' >Shohei Ohtani en Acción</h3>
81
- <p class="dasubtitle">Lanzamiento perfecto</p>
89
+ <h3 class="datitle" cxtza='titulo' >${titulo}</h3>
90
+ <p class="dasubtitle">${descripcion}</p>
82
91
  <span class="dadate" cxtza='fecha' class="gallery-date">7 Enero 2025</span>
83
92
  </div>
84
93
  <div class="gallery-actions">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plxdcma_rendericon_imagecard",
3
- "version": "1.0.1",
3
+ "version": "1.0.7",
4
4
  "main": "init.js",
5
5
  "license": "MIT"
6
6
  }