쇼핑몰: #271 메인 애니메이션 스킨 마크업 및 스타일 샘플 작업

This commit is contained in:
whitedot
2013-08-08 14:50:42 +09:00
parent 00c88178f2
commit e458d0949f
2 changed files with 25 additions and 23 deletions

View File

@ -14,11 +14,12 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
for ($i=1; $row=sql_fetch_array($result); $i++) {
if ($i == 1) {
if ($this->css) {
echo "<ul id=\"smt_{$this->type}\" class=\"{$this->css}\">\n";
echo "<div id=\"smt_{$this->type}\" class=\"{$this->css}\">\n";
} else {
echo "<ul id=\"smt_{$this->type}\" class=\"sct smt_30\">\n";
echo "<div id=\"smt_{$this->type}\" class=\"smt_30\">\n";
}
echo "<li class=\"sct_li sct_li_first\">\n";
echo "<ul class=\"sct_ul sct_ul_first\">\n";
echo "<li class=\"sct_li\">\n";
}
if ($i > 1 && $i%$this->list_mod == 1) {
@ -26,8 +27,6 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
echo "<li class=\"sct_li\">\n";
}
echo "<div class=\"sct_div\">";
if ($this->href) {
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
}
@ -56,6 +55,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
}
if ($this->href) {
echo "</a>\n";
}
if ($this->view_sns) {
echo "<div class=\"sct_sns\">";
echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_fb.png');
@ -63,17 +66,12 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_goo.png');
echo "</div>\n";
}
if ($this->href) {
echo "</a>\n";
}
echo "</div>\n";
}
if ($i > 1) {
echo "</li>\n";
echo "</ul>\n";
echo "</div>\n";
}
if($i == 1) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";