Permalink
Browse files

��/27��/������ �̹���: �߾����, ����� ���ι�ġ �� ���ο��鼳�, include���� i…

…f�� ó��, ����Ʈ�� ����Ʈ ���ܼ��, ���и�
  • Loading branch information...
unknown
unknown committed Dec 27, 2012
1 parent 2e162b6 commit 4caa157585703071058117a5aa3a7bdfc33d88b2
Showing with 78 additions and 46 deletions.
  1. +1 −1 index.php
  2. +40 −13 post.php
  3. +0 −10 post_graphic.php
  4. +9 −7 post_special.php
  5. +0 −10 post_special_graphic.php
  6. +28 −5 style/style.css
View
@@ -254,7 +254,7 @@
<?php
// 페이지당 출력수 결정, 페이지넘버 산출
$num_posts_display = 3; //디피수
$num_posts_display = 5; //디피수
if(!$_GET['page']){$_GET['page'] = 1;} //페이지 파라미터가 없을경우 1로 세팅!!!
$num_pages_pre = $_GET['page'] -1; //앞선페이지수는 현제페이지 -1
$num_posts_offset = $num_posts_display * $num_pages_pre; //오프셋수는 디피수x앞선페이지수
View
@@ -8,22 +8,49 @@
</div>
<!------------ grapic (널일수있음) ------------>
<div class="graphic">
<?php
if($row['image_url']){
include ('./post_graphic.php');
<?php
if($row['image']){
echo "<div class=\"graphic\">";
$images = explode("@",$row['image']); //Array (이미지파일명, 이미지파일명)
$i=0;
while ($i < count($images)){
echo "<img src=\"../sugaruinet_portfolio/"; //경로
echo $images[$i];
echo "\">";
$i++;
}
?>
</div>
echo "</div>";
}
?>
<!------------ grapic_효과 없어야 할 경우 (널일수있음) ------------>
<?php
if($row['image_noeffect']){
echo "<div class=\"graphic_noeffect\">";
$images = explode("@",$row['image_noeffect']); //Array (이미지파일명, 이미지파일명)
$i=0;
while ($i < count($images)){
echo "<img src=\"../sugaruinet_portfolio/"; //경로
echo $images[$i];
echo "\">";
$i++;
}
echo "</div>";
}
?>
<!------------ text ------------>
<div class="text">
<!--<p>-->
<?php
echo $row['text']; // 링크를 걸어야 하니까 스페설챠는 뺄게
?>
<!--</p>-->
</div>
<?php
if($row['text']){ // 링크를 걸어야 하니까 스페설챠는 뺄게
echo "
<div class=\"text\">
{$row['text']}
</div>
";
}
?>
<!------------ post_inner (널일수있음)------------>
<div class="post_inner">
View

This file was deleted.

Oops, something went wrong.
View
@@ -5,13 +5,15 @@
</div>
<!------------ grapic (널일수있음) ------------>
<div class="graphic">
<?php
if ($row_special['image_url']) {
include ('./post_special_graphic.php');
}
?>
</div>
<?php
if ($row_special['image']) {
echo "
<div class=\"graphic_left\">
<img src=\"../sugaruinet_portfolio/{$row_special['image']}\">
</div>
";
}
?>
<!------------ text ------------>
<div class="text">
View

This file was deleted.

Oops, something went wrong.
View
@@ -45,10 +45,13 @@
float:left;
margin-right:40px;
text-align: right;
/*position: fixed;*/
}
.nav_2{
float:right;
margin-left:40px;
/*position: fixed;
left: 880px; /* 160+40+680*/
}
.con{
margin-left:200px; /* 160 + 40 */
@@ -205,19 +208,38 @@
font-size:0.8em; /*13px; */
}
/*요소 여백-좌우공통 (전체폭 점선 때문에 마진을 .post에서 한꺼번에 못하므로 여기서 지정)*/
.title, .title_inner, .graphic, .text, .disqus_custom{
.title, .title_inner, .text, /*.graphic*/ .disqus_custom{
margin-left: 40px;
margin-right: 40px;
}
/*그래픽 여백및 정렬 예외 처리*/
.graphic, .graphic_noeffect{
margin-left: 30px; /*자식마진 10px(복수의 이미지간의 간격)을 합해서 40px*/
margin-right: 30px;
text-align: center;
}
.graphic_left{ /*프로필 용 예외처리*/
margin-left: 30px;
margin-right: 30px;
text-align: left;
}
/*요소 여백-상하공통*/
.graphic, .text {
.graphic, .graphic_noeffect, .graphic_left, .text {
margin-top:20px;
margin-bottom:20px;
}
/*이미지 복수시 간격*/
.graphic img{
margin-bottom: 10px;
/*이미지*/
.graphic img, .graphic_left img, .graphic_noeffect img{
margin-left: 10px;
margin-right: 10px;
margin-bottom: 10px;
text-align: center;
}
.graphic img, .graphic_left img{
border-radius:3px;
box-shadow: 1px 1px 4px #161719;
}
/*이너포스트, 하이퍼포스트*/
.post_inner{
margin-bottom:30px; /*다음 이너포스트 설명글과의 간격은 넓어야 하므로*/
@@ -238,6 +260,7 @@
border-top: 1px dashed #3e404b;
}
.post_hyper{
color: #eee;
border-bottom: dotted #aaa 1px;
}
/*테일*/

0 comments on commit 4caa157

Please sign in to comment.