Skip to content

Commit

Permalink
Versi 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dyazincahya committed Oct 14, 2015
0 parents commit 574c2da
Show file tree
Hide file tree
Showing 136 changed files with 25,254 additions and 0 deletions.
83 changes: 83 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?php get_header(); ?>
<div class="content">
<div class="content-heading">
<div class="container">
<div class="row">
<div class="col-lg-6 col-lg-push-3 col-sm-10 col-sm-push-1">
<h1 class="heading">
<?php
if( is_single() || is_page() ){
the_title();
} else if( is_category() ){
single_cat_title();
} else if( is_author() ){
echo get_the_author();
} else if( is_tag() ){
single_tag_title();
} else {
bloginfo("name");
}
?>
</h1>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<?php
if( have_posts() ){
?>
<div class="tile-wrap">
<div class="tile">
<div class="pull-left tile-side">
<div class="avatar avatar-sm">
<?php if(is_category()){ ?>
<i class="fa fa-folder-open-o"></i>
<?php } else if(is_author()){ ?>
<i class="fa fa-user"></i>
<?php } else if(is_tag()){ ?>
<i class="fa fa-tag fa-flip-horizontal"></i>
<?php } else { ?>
<i class="fa fa-support"></i>
<?php } ?>
</div>
</div>
<div class="tile-inner">
<?php
if(is_category()){
echo "<b>This is a category page : </b>"; single_cat_title();
} else if(is_author()){
echo "<b>This is a page author : </b>" . get_the_author();
} else if(is_tag()){
echo "<b>This is a page tag : </b>"; single_tag_title();
} else {
echo "<b>This is a page archive</b>";
}
?>
</div>
</div>
</div>

<?php
while( have_posts() ){ the_post();
get_template_part('content');
}
?>
<div class="row">
<div class="col-md-6">
<span class="pull-left"><?php previous_posts_link(); ?></span>
</div>
<div class="col-md-6">
<span class="pull-right"><?php next_posts_link(); ?></span>
</div>
</div>
<?php
} else {
echo "Tidak ada post";
}
?>
</div>
</div>
</div>
<?php get_footer(); ?>
54 changes: 54 additions & 0 deletions assets/js-project/project.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// project
// ui-form-adv.html
$('.datepicker-adv-doc-1').datepicker();

$('.datepicker-adv-doc-2').datepicker({
format: "dd-mmm-yyyy",
selectMonths: true,
selectYears: 30
});

// ui-modal.html
var toastText = 1;

$('#toast-1').on('click', function () {
$('body').toast({
content: 'Simple toast ' + toastText + ' with some text',
show: function () {
toastText++;
}
});
});

$('#toast-2').on('click', function () {
$('body').toast({
content: '<a data-dismiss="toast">Dismiss</a><div class="toast-text">Simple toast ' + toastText + ' with some text and a simple <a href="javascript:void(0)">link</a>.</div>',
show: function () {
toastText++;
}
});
});

// ui-progress.html
$('.finish-loading').on('click', function(e) {
e.stopPropagation();
$($(this).attr('data-target')).addClass('el-loading-done');
});

$('#el-loading-tile-wrap .tile-active-show').each(function (index) {
var $this = $(this),
timer;

$this.on('hide.bs.tile', function(e) {
clearTimeout(timer);
});

$this.on('show.bs.tile', function(e) {
if (!$('.el-loading', $this).hasClass('el-loading-done')) {
timer = setTimeout(function() {
$('.el-loading', $this).addClass('el-loading-done');
$this.prepend('<div class="tile-sub"><p>Additional information<br><small>Aliquam in pharetra leo. In congue, massa sed elementum dictum, justo quam efficitur risus, in posuere mi orci ultrices diam.</small></p></div>');
}, 6000);
};
});
});
3 changes: 3 additions & 0 deletions assets/js/_.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions assets/js/bootstrap.js

Large diffs are not rendered by default.

93 changes: 93 additions & 0 deletions assets/js/datepicker.js

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions assets/js/form-adv-label.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// floating label
(function ($) {
'use strict';

$.fn.floatingLabel = function (option) {
var parent = this.closest('.form-group-label');

if (parent.length) {
switch (option) {
case 'focusin':
parent.addClass('control-focus');
break;
case 'focusout':
parent.removeClass('control-focus');
break;
default:
if (this.val()) {
parent.addClass('control-highlight');
} else {
parent.removeClass('control-highlight');
};
};
};

return this;
};
}(jQuery));

$(function () {
'use strict';

$('.form-group-label .form-control').each(function() {
$(this).floatingLabel('change');
});

$(document).on('change', '.form-group-label .form-control', function() {
$(this).floatingLabel('change');
});

$(document).on('focusin', '.form-group-label .form-control', function() {
$(this).floatingLabel('focusin');
});

$(document).on('focusout', '.form-group-label .form-control', function() {
$(this).floatingLabel('focusout');
});
});
9 changes: 9 additions & 0 deletions assets/js/form-adv-textarea.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// textarea autosize v0.4.0
// Javier Julio: https://github.com/javierjulio/textarea-autosize
!function(t,e){function i(e){this.element=e,this.$element=t(e),this.init()}var n="textareaAutoSize",h="plugin_"+n,s=function(t){return t.replace(/\s/g,"").length>0};i.prototype={init:function(){var i=(this.$element.outerHeight(),parseInt(this.$element.css("paddingBottom"))+parseInt(this.$element.css("paddingTop")));s(this.element.value)&&this.$element.height(this.element.scrollHeight-i),this.$element.on("input keyup",function(){var n=t(e),h=n.scrollTop();t(this).height(0).height(this.scrollHeight-i),n.scrollTop(h)})}},t.fn[n]=function(e){return this.each(function(){t.data(this,h)||t.data(this,h,new i(this,e))}),this}}(jQuery,window,document);

$(function () {
'use strict';

$('.textarea-autosize').textareaAutoSize();
});
12 changes: 12 additions & 0 deletions assets/js/header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// header waterfall
$(function () {
'use strict';

$('.header-waterfall').each(function () {
$(this).affix({
offset: {
top: 1
}
});
});
});
Loading

0 comments on commit 574c2da

Please sign in to comment.