Skip to content

Commit

Permalink
perubahan pada blog system, peryempurnaan shared blog #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Ramadhan committed Jul 23, 2011
1 parent d22e72c commit eebc0c2
Show file tree
Hide file tree
Showing 20 changed files with 160 additions and 44 deletions.
25 changes: 15 additions & 10 deletions application/blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ function index() {
if (! is_get ( 'id' )) {

# GET LATEST POST DATA WHERE STATUS 1
$data ['post'] = $this->model->blog->getLastPost ('1');
$data ['post'] = $this->model->blog->getLastPost ('2');

if ($data['post']['status'] == 1) {
$data ['highlight'] = $this->model->blog->getHighlight('2');
# 2 = Published Official Blog maka tunjukan 3 = Published Official Blog Highlight
if ($data['post']['status'] == 2) {
$data ['highlight'] = $this->model->blog->getHighlight('3');
}

if ($data['post']['status'] == 3) {
$data ['highlight'] = $this->model->blog->getHighlight('4');
# jika 4 = Netcoid HQ maka tunjukan 5 = Netcoid HQ highlight
if ($data['post']['status'] == 4) {
$data ['highlight'] = $this->model->blog->getHighlight('5');
}


#var_dump($data );var_dump($data ['highlight']);
if (config('middleware/wmd')) {
$data ['post'] ['content'] = $data ['post'] ['content_html'];
}
Expand Down Expand Up @@ -92,12 +95,14 @@ function index() {

$data ['post'] = $this->model->blog->getPost ( $_GET ['id'] );

if ($data['post']['status'] == 1) {
$data ['highlight'] = $this->model->blog->getHighlight('2');
# 2 = Published Official Blog maka tunjukan 3 = Published Official Blog Highlight
if ($data['post']['status'] == 2) {
$data ['highlight'] = $this->model->blog->getHighlight('3');
}

if ($data['post']['status'] == 3) {
$data ['highlight'] = $this->model->blog->getHighlight('4');
# jika 4 = Netcoid HQ maka tunjukan 5 = Netcoid HQ highlight
if ($data['post']['status'] == 4) {
$data ['highlight'] = $this->model->blog->getHighlight('5');
}

# IF STATUS 0 OR NOT PUBLISHED
Expand Down
11 changes: 8 additions & 3 deletions application/models/blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ class ModelBlog extends Models {
public $database = 'application';

function getPosts($limit = 30) {
$data = $this->fetchAll ( 'SELECT blog.title, blog.content, blog.tag, users.name, users.uid, blog.timecreate, blog.nid, blog.status
$data = $this->fetchAll ( 'SELECT blog.title, blog.content, blog.content_html, blog.tag, users.name, users.uid, blog.timecreate, blog.nid, blog.status
FROM blog, users WHERE users.uid = blog.uid ORDER BY nid DESC LIMIT ' . $limit );
return $data;
}

function getPostsbyUID($uid, $status = 1, $limit = 30) {
$data = $this->fetchAll ( 'SELECT blog.nid, blog.timecreate, blog.status, blog.title, blog.tag FROM blog, users WHERE users.uid = blog.uid AND users.uid = '.$uid.' AND status = '.$status.' ORDER BY nid DESC LIMIT ' . $limit );
return $data;
}

function getPost($id) {
$data = $this->fetch ( 'SELECT blog.title, blog.content, blog.content_html, users.name, users.username, blog.tag, blog.timecreate, blog.nid, blog.status
Expand All @@ -29,14 +34,14 @@ function listUnapprovedByUID($uid){
FROM blog, users
WHERE users.uid = blog.uid
AND blog.uid = :uid
AND blog.status = 0
AND blog.status = 5
ORDER BY nid DESC LIMIT 1', array ('uid' => $uid ) );
return $data;
}

function listNewsTitle() {
$data = $this->fetchAll ( 'SELECT blog.nid, blog.title, blog.timecreate, blog.status
FROM blog, users WHERE users.uid = blog.uid AND (status = 1 OR status = 3) ORDER BY nid DESC LIMIT 10' );
FROM blog, users WHERE users.uid = blog.uid AND (status = 2 OR status = 4) ORDER BY nid DESC LIMIT 10' );
return $data;
}

Expand Down
12 changes: 11 additions & 1 deletion application/profiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,17 @@ function index($username) {
$this->helper ( 'active' );
$this->model ( 'products' );
$this->model ( 'social' );


# ADDED BLOG POSTS
$this->model ( 'blog' );
# 1 = User Content ( approved )
$data['blog']['approved'] = $this->model->blog->getPostsbyUID($data ['user']['uid'],1);
# 2 = Published Official Blog
$data['blog']['official'] = $this->model->blog->getPostsbyUID($data ['user']['uid'],2);
# 4 = Netcoid HQ for admins
$data['blog']['bloghq'] = $this->model->blog->getPostsbyUID($data ['user']['uid'],4);
# END BLOG POSTS

$data ['thisprofile'] = $username;

$this->middleware ( 'googlemaps', 'googlemaps' );
Expand Down
9 changes: 6 additions & 3 deletions application/views/admin/blogview.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
<hr style="border-color: rgb(255, 0, 101); border-style: dashed;">
<p>Status</p>
<p>
0 = Not Published<br/>
1 = Published<br/>
2 = Highlight<br/>
0 = User Content ( not approved )<br/>
1 = User Content ( approved )<br/>
2 = Published Official Blog</br>
3 = Published Official Blog Highlight </br>
4 = Netcoid HQ<br/>
5 = Netcoid HQ highlight<br/>
</p>
<?php
echo $post['tag'];
Expand Down
2 changes: 2 additions & 0 deletions application/views/admin/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
<li><?php $views->href('/admin/blog','List Post'); ?></li>
<li><?php $views->href('/admin/newpost','Tambah Post'); ?></li>
</ul>
<?php if ($this->user['role'] == 5): ?>
<li><h4>Groups</h4></li>
<ul>
<li><?php $views->href('/admin/groups','Groups'); ?></li>
</ul>
<?php endif ?>
</ul>
</div>
8 changes: 4 additions & 4 deletions application/views/blog/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<div class="clearfix" id="red-content">
<div id="red-blog-left">
<?php if (!empty($highlight)): ?>
<div class="c type-<?php echo $highlight['status'] ?>" id="highlight">
<h4><?php echo $highlight['title']; ?></h4>
<?php echo $highlight['content_html']; ?>
</div>
<div class="c type-<?php echo $highlight['status'] ?>" id="highlight">
<h4><?php echo $highlight['title']; ?></h4>
<?php echo $highlight['content_html']; ?>
</div>
<?php endif ?>
<?php
echo '<div class="blog-post" id="post-'.$post['nid'].'">';
Expand Down
67 changes: 64 additions & 3 deletions application/views/profile/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,46 @@
<?php $views->js('jquery'); ?>

<script type='text/javascript'>
jQuery(document).ready(function(){$("#red-products, #red-information").hide();$("#red-"+(window.location.hash.replace("#","")||"information")).show();$("#content-info").click(function(event){$("#red-products").hide();$("#red-information").show();});$("#content-product").click(function(event){$("#red-products img").hide();$("#red-information").hide();$("#red-products").show();$("#red-products img").fadeIn();});var referrer=document.referrer.toLowerCase();function ISODateString(d){function pad(n){return n<10?'0'+n:n}return d.getFullYear()+'-'+pad(d.getMonth()+1)+'-'+pad(d.getDate())+' '+pad(d.getHours())+':'+pad(d.getMinutes())+':'+pad(d.getSeconds())}var d=new Date();var datetime=ISODateString(d);var analytics={guest_UID:'<?php echo $this->sessions->get('uid'); ?>',host_UID:'<?php echo $user['uid']; ?>',IP:'<?php echo $_SERVER['REMOTE_ADDR']; ?>',referrer:referrer,timecreate:datetime,};$.ajax({type:"POST",url:"/ajax/analytics/push",data:analytics});var points={uid:'<?php echo $user['uid']; ?>',facebook:'<?php echo $user['facebook']; ?>',twitter:'<?php echo $user['twitter']; ?>',yahoo:'<?php echo $user['yahoo']; ?>',};$.ajax({type:"POST",url:"/ajax/social/pull/points",data:points,beforeSend:function(){$('#ajax-socialpoint').html('<img src="/www-static/assets/images/ajax-loader.gif" style="position: relative; top: 4px;">');},success:function(data){$('#ajax-socialpoint').hide().fadeIn(3000).html(data);},error:function(){$('#ajax-socialpoint').html('0');}});<?php if(!empty($user['twitter'])):?>var twitter={uid:'<?php echo $user['uid']; ?>',twitter:'<?php echo $user['twitter']; ?>'};$.ajax({type:"POST",url:"/ajax/social/pull/twitter",data:twitter,beforeSend:function(){$('#ajax-pull-twitter').html('<a rel="nofollow" target="_blank" href="#"><img style="position: relative; top: 4px; left: 50%;" src="/www-static/assets/images/ajax-loader.gif"></a>');},success:function(data){$('#ajax-pull-twitter').hide().fadeIn(3000).html(data);}});<?php endif?><?php if(!empty($user['yahoo'])):?>var yahoo={uid:'<?php echo $user['uid']; ?>',yahoo:'<?php echo $user['yahoo']; ?>'};$.ajax({type:"POST",url:"/ajax/social/pull/yahoo",data:yahoo,beforeSend:function(){$('#ajax-pull-yahoo').html('<a rel="nofollow" target="_blank" href="#"><img style="position: relative; top: 4px; left: 50%;" src="/www-static/assets/images/ajax-loader.gif"></a>');},success:function(data){$('#ajax-pull-yahoo').hide().fadeIn(3000).html(data);}});<?php endif?><?php if(!empty($user['facebook'])):?>var facebook={uid:'<?php echo $user['uid']; ?>',facebook:'<?php echo $user['facebook']; ?>'};$.ajax({type:"POST",url:"/ajax/social/pull/facebook",data:facebook,beforeSend:function(){$('#ajax-pull-facebook').html('<a rel="nofollow" target="_blank" href="#"><img style="position: relative; top: 4px; left: 50%;" src="/www-static/assets/images/ajax-loader.gif"></a>');},success:function(data){$('#ajax-pull-facebook').hide().fadeIn(3000).html(data);}});<?php endif?>});
jQuery(document).ready(function(){
$("#red-products, #red-information, #red-blog").hide();

<?php if (!empty($user['information'])): ?>
$("#red-" + (window.location.hash.replace("#", "") || "information")).show();
<?php endif ?>

<?php if (!empty($products) && empty($user['information'])): ?>
$("#red-" + (window.location.hash.replace("#", "") || "products")).show();
<?php endif ?>

<?php if (!empty($blog) && empty($products) && empty($user['information'])): ?>
$("#red-" + (window.location.hash.replace("#", "") || "blog")).show();
<?php endif ?>

$("#content-info").click(function(event){
$("#red-products").hide();
$("#red-blog").hide();
$("#red-information").show();
});



$("#content-product").click(function(event){
$("#red-blog").hide();
$("#red-information").hide();

$("#red-products img").hide();
$("#red-products").show();
$("#red-products img").fadeIn();
});

$("#content-blog").click(function(event){
$("#red-products").hide();
$("#red-information").hide();
$("#red-blog").show();
});


var referrer=document.referrer.toLowerCase();function ISODateString(d){function pad(n){return n<10?'0'+n:n}return d.getFullYear()+'-'+pad(d.getMonth()+1)+'-'+pad(d.getDate())+' '+pad(d.getHours())+':'+pad(d.getMinutes())+':'+pad(d.getSeconds())}var d=new Date();var datetime=ISODateString(d);var analytics={guest_UID:'<?php echo $this->sessions->get('uid'); ?>',host_UID:'<?php echo $user['uid']; ?>',IP:'<?php echo $_SERVER['REMOTE_ADDR']; ?>',referrer:referrer,timecreate:datetime,};$.ajax({type:"POST",url:"/ajax/analytics/push",data:analytics});var points={uid:'<?php echo $user['uid']; ?>',facebook:'<?php echo $user['facebook']; ?>',twitter:'<?php echo $user['twitter']; ?>',yahoo:'<?php echo $user['yahoo']; ?>',};$.ajax({type:"POST",url:"/ajax/social/pull/points",data:points,beforeSend:function(){$('#ajax-socialpoint').html('<img src="/www-static/assets/images/ajax-loader.gif" style="position: relative; top: 4px;">');},success:function(data){$('#ajax-socialpoint').hide().fadeIn(3000).html(data);},error:function(){$('#ajax-socialpoint').html('0');}});<?php if(!empty($user['twitter'])):?>var twitter={uid:'<?php echo $user['uid']; ?>',twitter:'<?php echo $user['twitter']; ?>'};$.ajax({type:"POST",url:"/ajax/social/pull/twitter",data:twitter,beforeSend:function(){$('#ajax-pull-twitter').html('<a rel="nofollow" target="_blank" href="#"><img style="position: relative; top: 4px; left: 50%;" src="/www-static/assets/images/ajax-loader.gif"></a>');},success:function(data){$('#ajax-pull-twitter').hide().fadeIn(3000).html(data);}});<?php endif?><?php if(!empty($user['yahoo'])):?>var yahoo={uid:'<?php echo $user['uid']; ?>',yahoo:'<?php echo $user['yahoo']; ?>'};$.ajax({type:"POST",url:"/ajax/social/pull/yahoo",data:yahoo,beforeSend:function(){$('#ajax-pull-yahoo').html('<a rel="nofollow" target="_blank" href="#"><img style="position: relative; top: 4px; left: 50%;" src="/www-static/assets/images/ajax-loader.gif"></a>');},success:function(data){$('#ajax-pull-yahoo').hide().fadeIn(3000).html(data);}});<?php endif?><?php if(!empty($user['facebook'])):?>var facebook={uid:'<?php echo $user['uid']; ?>',facebook:'<?php echo $user['facebook']; ?>'};$.ajax({type:"POST",url:"/ajax/social/pull/facebook",data:facebook,beforeSend:function(){$('#ajax-pull-facebook').html('<a rel="nofollow" target="_blank" href="#"><img style="position: relative; top: 4px; left: 50%;" src="/www-static/assets/images/ajax-loader.gif"></a>');},success:function(data){$('#ajax-pull-facebook').hide().fadeIn(3000).html(data);}});<?php endif?>});
</script>


Expand Down Expand Up @@ -38,9 +77,18 @@
?></li>
<!-- SEND MESSAGE END -->

<li><a id="content-info" href="#information"><?php echo l('information'); ?></a></li>
<li><a id="content-product" href="#products"><?php echo l('products'); ?></a></li>
<?php if (!empty($user['information'])): ?>
<li><a id="content-info" href="#information"><?php echo l('information'); ?></a></li>
<?php endif ?>

<?php if (!empty($products)): ?>
<li><a id="content-product" href="#products"><?php echo l('products'); ?></a></li>
<?php endif ?>

<?php if (!empty($blog)): ?>
<li><a id="content-blog" href="#blog"><?php echo l('blog'); ?><sup>β</sup></a></li>
<?php endif ?>

<!-- VERIFIED OR NOT START -->
<li><?php
if ($user['role'] == 1) {
Expand Down Expand Up @@ -134,6 +182,19 @@
?>
</div>
<!-- END PRODUCT -->

<!-- START BLOG -->
<div id="red-blog">
<ul>
<?php foreach ($blog as $posts): ?>
<?php foreach ($posts as $post): ?>
<li class="type-<?php echo $post['status']; ?>">#<?php echo $post['tag']; ?> <a target="_blank" class="judul" href="blog?id=<?php echo $post['nid']; ?>"><?php echo $post['title']; ?></a>,
<sub><?php echo $post['timecreate']; ?></sub></li>
<?php endforeach ?>
<?php endforeach ?>
</ul>
</div>
<!-- END BLOG -->
</div>
</div>
<!-- CONTENT END -->
3 changes: 2 additions & 1 deletion application/views/site/menu.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<div id="red-header">
<div class="clearfix" id="red-menu">
<ul id="red-menu-left">
<li id="logo"><a href="/"><?php $views->getIMG('logo2.png','width="75px" height="20px"'); ?></a></li>
<!-- <li id="logo"><a href="/"><?php #$views->getIMG('logo2.png','width="75px" height="20px"'); ?></a></li> -->
<li id="logo"><a href="/"><?php $views->getIMG('logo2.png'); ?></a></li>
<li><?php $views->href('/blog','Blog'); ?></li>
<li id="search-highlight"><?php $views->href('/products','Pencarian'); ?></li>
</ul>
Expand Down
18 changes: 12 additions & 6 deletions application/views/site/signup.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
.blog-post{padding:0;}
#moreabout{ font-family: verdana;
font-size: 15px;}
.showonhover{display:none;}
#helpus-1:hover .showonhover{display: block;width:215px;position: relative;background:#fff;}
#helpus-2:hover .showonhover{display: block;width:215px;position: relative;background:#fff;}
#helpus-3:hover .showonhover{display: block;width:215px;position: relative;background:#fff;}
.wbt{color: #D32E2E;position:absolute;display: block;}
</style>

<!-- CONTENT START -->
Expand All @@ -71,18 +76,19 @@
<div id="red-content-left">
<h1 class="whatnetcoid">jejaring bisnis <span id="moreabout">Situs jejaring untuk Bisnis</span></h1>
<p class="hownetcoid">Menghubungkan pelaku bisnis dengan teknologi dan social media</p>
<div class="blog-post clearfix" style="margin-top: 20px;">
<div style="margin-top: 20px;" class="blog-post clearfix">
<div id="helpus-1">
<h3>Business</h3>
<p>Partisipasi dalam jejaring bisnis indonesia, dimana Anda bisa <strong>membeli, menjual, mencari dan dicari</strong> Pelaku bisnis lainnya.</p>
<h3>Promote</h3>
<p>Partisipasi dalam jejaring bisnis indonesia, dimana Anda bisa <strong>membeli, menjual, mencari dan dicari</strong> Pelaku bisnis lainnya. <span class="wbt"><i class="showonhover">Promosikan jasa atau produk anda!</i></span></p>
</div>
<div id="helpus-2">
<h3>Social</h3><p>Telusuri & Ikuti Pelaku bisnis lainnya dengan satu klik <i>"ikuti"</i>. <strong>promosi, blog, jasa dan produk terbaru</strong> pelaku bisnis yang Anda ikuti teringkas dalam satu halaman.
<h3>Stay Updated</h3><p>Telusuri & Ikuti Update Pelaku bisnis lainnya dengan satu klik <i>"ikuti"</i>. <strong>promosi, blog, jasa dan produk terbaru</strong> pelaku bisnis yang Anda ikuti.
<span class="wbt"><i class="showonhover">Teringkas dalam satu halaman</i></span>
</p>
</div>
<div id="helpus-3">
<h3>Insights</h3>
<p>Pelajari penunjung anda, lakukan optimasi, <strong>tingkatkan penjualan anda</strong>. ( Real-time )
<h3>Learn</h3>
<p>Pelajari penunjung anda, lakukan optimasi, <strong>tingkatkan penjualan anda</strong>. ( Real-time ) <span class="wbt"><i class="showonhover">Jumlah Pengunjung, Produk mana yang paling diminati, Asal Penunjung, Butuh lebih?</span></i>
</p>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion application/views/users/menu-active-with-helper.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<div id="red-header">
<div class="clearfix" id="red-menu">
<ul id="red-menu-left">
<li id="logo"><a href="/blog"><?php $views->getIMG('logo2.png','width="75px" height="20px"'); ?></a></li>
<!-- <li id="logo"><a href="/blog"><?php #$views->getIMG('logo2.png','width="75px" height="20px"'); ?></a></li> -->
<li id="logo"><a href="/blog"><?php $views->getIMG('logo2.png'); ?></a></li>
<li><?php $views->href('/',l('home')); ?></li>
<li><?php $views->href('/messages',l('messagecenter')); ?>
<?php if ($message['countmessage'] != 0): ?>
Expand Down
2 changes: 1 addition & 1 deletion libraries/language/indonesia.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
$l['recaptcha_error'] = 'Karakter yang anda masukan tidak sesuai dengan verifikasi reCAPTCHA';

// BLOG
$l['blog_title_error'] = 'Judul Blog tidak boleh kosong & harus berformat 4 - 20 Kata, Angka # atau Spasi';
$l['blog_title_error'] = 'Judul Blog tidak boleh kosong & harus berformat 4 - 70 Kata, Angka, ?, Koma, # atau Spasi';
$l['blog_content_empty'] = 'Konten Blog tidak boleh kosong';
$l['blog_tag_empty'] = 'Tag Blog tidak boleh kosong & Harus Berformat text ( Text tampa spasi ) 3-15 Kata';

Expand Down
9 changes: 5 additions & 4 deletions www-static/assets/css/blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,13 @@ riset
}
#highlight a{color:#CC3E3E;}

#red-blog-right .type-3{ background: none repeat scroll 0 0 #62BCDA;}
#red-blog-right .type-3 #post-list-title a { color: #444444;}
#red-blog-right .type-3 #post-list-meta{ color: #3878AB;}
#red-blog-right .type-4{ background: none repeat scroll 0 0 #62BCDA;
border-bottom: 1px solid #3F95B1;}
#red-blog-right .type-4 #post-list-title a { color: #444444;}
#red-blog-right .type-4 #post-list-meta{ color: #3878AB;}


#highlight.type-4 {
#highlight.type-5 {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #eee;
margin: 10px 0;
Expand Down
9 changes: 6 additions & 3 deletions www-static/assets/css/netcoid.v1.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ a.u{
color: #5E96E3;
}
#comment{font-size:11px;}
#logo{
width: 75px;}

#logo {
bottom: 3px;
position: relative;
width: 85px;
}
#red-header #logo:hover{background:none;}

body {
color: #444444;
Expand Down
11 changes: 10 additions & 1 deletion www-static/assets/css/profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,13 @@ PRODUCTLIST
#ajax-pull-twitter,#ajax-pull-yahoo ,#ajax-pull-twitter{
display:block; margin-bottom: 10px;
}
#ajax-pull-facebook #facebook a{ background:none repeat scroll 0 0 #E7E1FF;}
#ajax-pull-facebook #facebook a{ background:none repeat scroll 0 0 #E7E1FF;}





/*blog*/
#red-blog .judul{color:#CC3E3E;text-decoration:underline;}
#red-blog .judul:hover{background:none repeat scroll 0 0 #FFFBC5;}
#red-blog li{ margin-bottom: 5px;}
Binary file modified www-static/assets/images/logo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www-static/assets/images/logo3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www-static/assets/images/logo4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www-static/assets/images/text_text.psd
Binary file not shown.
13 changes: 11 additions & 2 deletions www-static/assets/js/profile.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
jQuery(document).ready(function(){
$("#red-products, #red-information").hide();
$("#red-products, #red-information, #red-blog").hide();
$("#red-" + (window.location.hash.replace("#", "") || "information")).show();

$("#content-info").click(function(event){
$("#red-products").hide();
$("#red-blog").hide();
$("#red-information").show();
});

$("#content-product").click(function(event){
$("#red-blog").hide();
$("#red-information").hide();

$("#red-products img").hide();
$("#red-information").hide();
$("#red-products").show();
$("#red-products img").fadeIn();
});

$("#content-blog").click(function(event){
$("#red-products").hide();
$("#red-information").hide();
$("#red-blog").show();
});
});
Loading

0 comments on commit eebc0c2

Please sign in to comment.