plxdcma_rendericon_imagecard 1.0.6 → 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.
- package/js.js +8 -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){
|
|
@@ -80,8 +86,8 @@ function imagecard(data,isediting,section){
|
|
|
80
86
|
<img cxtza='img' class="nuclearimage" src="/images/${url}m.png" alt="Shohei Ohtani Pitching">
|
|
81
87
|
<div class="gallery-overlay">
|
|
82
88
|
<div class="gallery-info">
|
|
83
|
-
<h3 class="datitle" cxtza='titulo'
|
|
84
|
-
<p class="dasubtitle"
|
|
89
|
+
<h3 class="datitle" cxtza='titulo' >${titulo}</h3>
|
|
90
|
+
<p class="dasubtitle">${descripcion}</p>
|
|
85
91
|
<span class="dadate" cxtza='fecha' class="gallery-date">7 Enero 2025</span>
|
|
86
92
|
</div>
|
|
87
93
|
<div class="gallery-actions">
|