Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
<?php /* MODUL [Last Update] 17.02.2012 [cms2day] Autor: Matthias Müller <http://www.breakmedia.de> Copyright (c) 2012 --- VERFÜGBARE VARIABLEN: $kategorie['titel'] = Kategorie -> Name $kategorie['beschreibung'] = Kategorie -> Beschreibung $product['name'] = Produkt -> Name $product['beschreibung'] = Produkt -> Beschreibung (kurz) $product['details'] = Produkt -> Beschreibung (detail) $product['preis'] = Produkt -> Preis $product['artikelnummer'] = Produkt -> Artikelnummer $product['warenkorb'] = Produkt -> Warenkorb Add Link (href) $product['link'] = Produkt -> Link zu Produktdetails (href) $product['image'] = Wenn leer, kein Foto vorhanden $product['foto'] = Produkt -> Foto (wenn vorhanden) $product['foto_width'] = Produkt -> Breite des Foto (Einstellungen) $product['foto_height'] = Produkt -> Höhe des Foto (Einstellungen) $product['thumbnail'] = Produkt -> Thumbnail (wenn vorhanden) $product['thumbnail_width'] = Produkt -> Breite des Thumbnails (Einstellungen) $product['thumbnail_height'] = Produkt -> Höhe des Thumbnails (Einstellungen) $info['mwst'] = Info -> MwSt. $info['versandkosten'] = Info -> Versandkosten */ ?> <div class="produkt"> <table cellspacing="0" cellpadding="0" summary="text"> <tr> <td class="left"> <div class="image"> <a href="<?php print $product['link'] ?>"> <?php if (!empty($product['image'])) { ?> <img src="<?php print $product['thumbnail'] ?>" alt="" width="<?php print $product['thumbnail_width'] ?>" height="<?php print $product['thumbnail_height'] ?>" /> <?php } else { ?> <img src="<?php print $settings['page_dir'] ?>/includes/module/minishop/img/foto.gif" alt="" width="<?php print $product['thumbnail_width'] ?>" height="<?php print $product['thumbnail_height'] ?>" /> <?php } ?> </a> </div> </td> <td class="right"> <div class="titel"><a href="<?php print $product['link'] ?>"><?php print $product['name'] ?></a></div> <div class="info"><?php print $product['beschreibung'] ?></div> <div class="preis"><?php print $product['preis'] ?> <?php print SHOP_DETAIL_TEXT_2 ?></div> <?php if ($show['lieferstatus'] == 'true') { ?> <div class="lieferstatus"><?php print $product['lieferstatus'] ?></div> <div class="lieferzeit"><?php print $product['lieferzeit'] ?></div> <?php } ?> <?php if ($show['mwst'] == 'true') { ?> <div class="mwst"><?php print $info['mwst'] ?></div> <?php } ?> <?php if ($show['versandkosten'] == 'true') { ?> <div class="versand"><?php print $info['versandkosten'] ?></div> <?php } ?> <table> <tr> <td> <div class="button"><a href="<?php print $product['link'] ?>" class="button"><?php print SHOP_DETAIL_TEXT_8 ?></a></div> </td> <td> <?php if ($product['verfuegbar'] != '2') { ?> <div class="warenkorb"><a href="<?php print $product['warenkorb'] ?>"><?php print SHOP_DETAIL_TEXT_5 ?></a></div> <?php } else { ?> <div class="warenkorb"><a class="inaktiv"><?php print SHOP_DETAIL_TEXT_5 ?></a></div> <?php } ?> </td></tr></table> </td> </tr> </table> </div> |
PHP-Quelltext |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
<?php
/*
MODUL [Last Update] 20.02.2012 [cms2day]
Autor: Matthias Müller <http://www.breakmedia.de>
Copyright (c) 2012
---
VERFÜGBARE VARIABLEN:
$kategorie['titel'] = Kategorie -> Name
$kategorie['beschreibung'] = Kategorie -> Beschreibung
$product['name'] = Produkt -> Name
$product['beschreibung'] = Produkt -> Beschreibung (kurz)
$product['details'] = Produkt -> Beschreibung (detail)
$product['preis'] = Produkt -> Preis
$product['artikelnummer'] = Produkt -> Artikelnummer
$product['warenkorb'] = Produkt -> Warenkorb Add Link (href)
$product['link'] = Produkt -> Link zu Produktdetails (href)
$product['image'] = Wenn leer, kein Foto vorhanden
$product['foto'] = Produkt -> Foto (wenn vorhanden)
$product['foto_width'] = Produkt -> Breite des Foto (Einstellungen)
$product['foto_height'] = Produkt -> Höhe des Foto (Einstellungen)
$product['thumbnail'] = Produkt -> Thumbnail (wenn vorhanden)
$product['thumbnail_width'] = Produkt -> Breite des Thumbnails (Einstellungen)
$product['thumbnail_height'] = Produkt -> Höhe des Thumbnails (Einstellungen)
$info['mwst'] = Info -> MwSt.
$info['versandkosten'] = Info -> Versandkosten
*/
?>
<div class="produkt">
<table cellspacing="0" cellpadding="0" summary="text">
<tr>
<td class="left">
<div class="image">
<a href="<?php print $product['link'] ?>">
<?php if (!empty($product['image'])) { ?>
<img src="<?php print $product['thumbnail'] ?>" alt="" width="<?php print $product['thumbnail_width'] ?>" height="<?php print $product['thumbnail_height'] ?>" />
<?php } else { ?>
<img src="<?php print $settings['page_dir'] ?>/includes/module/minishop/img/foto.gif" alt="" width="<?php print $product['thumbnail_width'] ?>" height="<?php print $product['thumbnail_height'] ?>" />
<?php } ?>
</a>
</div>
</td>
<td class="right">
<div class="titel"><a href="<?php print $product['link'] ?>"><?php print $product['name'] ?></a></div>
<div class="info"><?php print $product['beschreibung'] ?></div>
<div class="preis"><?php print $product['preis'] ?> <?php print SHOP_DETAIL_TEXT_2 ?></div>
<?php if ($show['lieferstatus'] == 'true') { ?>
<div class="lieferstatus"><?php print $product['lieferstatus'] ?></div>
<div class="lieferzeit"><?php print $product['lieferzeit'] ?></div>
<?php } ?>
<?php if ($show['mwst'] == 'true') { ?>
<div class="mwst"><?php print $info['mwst'] ?></div>
<?php } ?>
<?php if ($show['versandkosten'] == 'true') { ?>
<div class="versand"><?php print $info['versandkosten'] ?></div>
<?php } ?>
<div class="button"><a href="<?php print $product['link'] ?>" class="button"><?php print SHOP_DETAIL_TEXT_8 ?></a></div>
<table>
<tr>
<td>
<?php if ($product['verfuegbar'] != '2') { ?>
<div class="warenkorb"><a href="<?php print $product['warenkorb'] ?>"><?php print SHOP_DETAIL_TEXT_5 ?></a></div>
<?php } else { ?>
<div class="warenkorb"><a class="inaktiv"><?php print SHOP_DETAIL_TEXT_5 ?></a></div>
<?php } ?>
</td></tr></table>
</td>
</tr>
</table>
</div>
|
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
div#modul div#modul_minishop div.produkt table tr td.right div.warenkorb { margin-top: 15px; } div#modul div#modul_minishop div.produkt table tr td.right div.warenkorb a { cursor: pointer; background: #f2f2f2 url('img/warenkorb.png') left no-repeat; border: 1px solid #d2d2d2; padding: 5px 10px 5px 32px; text-decoration: none; color: #626262; } div#modul div#modul_minishop div.produkt table tr td.right div.warenkorb a:hover { cursor: pointer; background: #f2f2f2 url('img/warenkorb.png') left no-repeat; border: 1px solid #d2d2d2; padding: 5px 10px 5px 32px; text-decoration: none; color: #626262; } div#modul div#modul_minishop div.produkt table tr td.right div.warenkorb a.inaktiv, div#modul div#modul_minishop div.produkt table tr td.right div.warenkorb a.inaktiv:hover { cursor: default; background: #f2f2f2 url('img/warenkorb.png') left no-repeat; border: 1px solid #d2d2d2; padding: 5px 10px 5px 32px; text-decoration: none; opacity: 0.25; color: #626262; } div#modul div#modul_minishop div.produkt table tr td.right div.button { margin: 15px 0px 0px 0px; } |
PHP-Quelltext |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
if ($produkt['verfuegbar'] == '0') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="verfuegbar">'.SHOP_DETAIL_TEXT_11.'</span></div>';
} else if ($produkt['verfuegbar'] == '1') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="kuerze">'.SHOP_DETAIL_TEXT_12.'</span></div>';
} else if ($produkt['verfuegbar'] == '2') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="ausverkauft">'.SHOP_DETAIL_TEXT_13.'</span></div>';
} else if ($produkt['verfuegbar'] == '3') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="anfrage">'.SHOP_DETAIL_TEXT_14.'</span></div>';
}
if ($product['verfuegbar'] == '0') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="verfuegbar">'.SHOP_DETAIL_TEXT_15.'</span></div>';
} else if ($product['verfuegbar'] == '1') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="kuerze">'.SHOP_DETAIL_TEXT_16.'</span></div>';
} else if ($product['verfuegbar'] == '2') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="ausverkauft">'.SHOP_DETAIL_TEXT_17.'</span></div>';
} else if ($product['verfuegbar'] == '3') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="anfrage">'.SHOP_DETAIL_TEXT_18.'</span></div>';
}
|
PHP-Quelltext |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
if ($product['verfuegbar'] == '0') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="verfuegbar">'.SHOP_DETAIL_TEXT_11.'</span></div>';
} else if ($product['verfuegbar'] == '1') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="kuerze">'.SHOP_DETAIL_TEXT_12.'</span></div>';
} else if ($product['verfuegbar'] == '2') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="ausverkauft">'.SHOP_DETAIL_TEXT_13.'</span></div>';
} else if ($product['verfuegbar'] == '3') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="anfrage">'.SHOP_DETAIL_TEXT_14.'</span></div>';
}
else if ($produkt['verfuegbar'] == '4') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="bald">'.SHOP_DETAIL_TEXT_15.'</span></div>';
}
if ($product['verfuegbar'] == '0') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="verfuegbar">'.SHOP_DETAIL_TEXT_16.'</span></div>';
} else if ($product['verfuegbar'] == '1') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="kuerze">'.SHOP_DETAIL_TEXT_17.'</span></div>';
} else if ($product['verfuegbar'] == '2') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="ausverkauft">'.SHOP_DETAIL_TEXT_18.'</span></div>';
} else if ($product['verfuegbar'] == '3') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="anfrage">'.SHOP_DETAIL_TEXT_19.'</span></div>';
}
else if ($produkt['verfuegbar'] == '4') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="bald">'.SHOP_DETAIL_TEXT_20.'</span></div>';
}
|
PHP-Quelltext |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
if ($product['verfuegbar'] == '0') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="verfuegbar">'.SHOP_DETAIL_TEXT_11.'</span></div>';
} else if ($product['verfuegbar'] == '1') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="kuerze">'.SHOP_DETAIL_TEXT_12.'</span></div>';
} else if ($product['verfuegbar'] == '2') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="ausverkauft">'.SHOP_DETAIL_TEXT_13.'</span></div>';
} else if ($product['verfuegbar'] == '3') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="anfrage">'.SHOP_DETAIL_TEXT_14.'</span></div>';
}
else if ($produkt['verfuegbar'] == '4') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="bald">'.SHOP_DETAIL_TEXT_15.'</span></div>';
}
if ($product['verfuegbar'] == '0') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="verfuegbar">'.SHOP_DETAIL_TEXT_11.'</span></div>';
} else if ($product['verfuegbar'] == '1') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="kuerze">'.SHOP_DETAIL_TEXT_12.'</span></div>';
} else if ($product['verfuegbar'] == '2') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="ausverkauft">'.SHOP_DETAIL_TEXT_13.'</span></div>';
} else if ($product['verfuegbar'] == '3') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="anfrage">'.SHOP_DETAIL_TEXT_14.'</span></div>';
}
else if ($produkt['verfuegbar'] == '4') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="bald">'.SHOP_DETAIL_TEXT_15.'</span></div>';
}
|
PHP-Quelltext |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
if ($product['verfuegbar'] == '0') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="verfuegbar">'.SHOP_DETAIL_TEXT_11.'</span></div>';
} else if ($product['verfuegbar'] == '1') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="kuerze">'.SHOP_DETAIL_TEXT_12.'</span></div>';
} else if ($product['verfuegbar'] == '2') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="ausverkauft">'.SHOP_DETAIL_TEXT_13.'</span></div>';
} else if ($product['verfuegbar'] == '3') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="anfrage">'.SHOP_DETAIL_TEXT_14.'</span></div>';
}
else if ($produkt['verfuegbar'] == '4') {
$product['lieferstatus'] = '<div class="lieferstatus"><span class="bald">'.SHOP_DETAIL_TEXT_15.'</span></div>';
}
if ($product['verfuegbar'] == '0') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="verfuegbar">'.SHOP_DETAIL_TEXT_16.'</span></div>';
} else if ($product['verfuegbar'] == '1') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="kuerze">'.SHOP_DETAIL_TEXT_17.'</span></div>';
} else if ($product['verfuegbar'] == '2') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="ausverkauft">'.SHOP_DETAIL_TEXT_18.'</span></div>';
} else if ($product['verfuegbar'] == '3') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="anfrage">'.SHOP_DETAIL_TEXT_19.'</span></div>';
}
else if ($produkt['verfuegbar'] == '4') {
$product['lieferzeit'] = '<div class="lieferstatus"><span class="bald">'.SHOP_DETAIL_TEXT_20.'</span></div>';
}
|