This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://copy.com/install/linux/Copy.tgz | |
tar -xvzf Copy.tgz | |
# optional clean-up | |
rm Copy.tgz | |
# If your Ubuntu is Ubuntu 64bits: | |
cd copy/x86_64 | |
# If your Ubuntu is Ubuntu 32bits: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/******************** | |
Limit karakter untuk archive | |
*********************/ | |
function content($limit, $more='Read More') { | |
$content = explode(' ', get_the_content(), $limit); | |
if (count($content)>=$limit) { | |
array_pop($content); | |
$content = implode(" ",$content).' <a href="'.get_permalink().'">'.$more.'</a>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Flatten das boostrap */ | |
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
-moz-box-shadow: none !important; | |
-webkit-box-shadow: none !important; | |
box-shadow: none !important; | |
-webkit-border-radius: 0px !important; | |
-moz-border-radius: 0px !important; | |
border-radius: 0px !important; | |
border-collapse: collapse !important; | |
background-image: none !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*======================================================== | |
Custom Thankyou Page Woocommerce | |
Woocommerce snippest to redirect user after order sucessed | |
Place it to functions.php in theme directory | |
=========================================================*/ | |
add_action( 'woocommerce_thankyou', function(){ | |
global $woocommerce; | |
$order = new WC_Order(); |
NewerOlder