This file contains 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
<!-- Page Features --> | |
<div id="my-product" class="row grid text-center"> | |
<div class="Collage effect-parent col-lg-12 inner-full-width"> <!-- START: FULL WIDTH --> | |
<?php | |
include "includes/conn.php"; | |
$batas = 8; | |
$pg = isset( $_GET['pg'] ) ? $_GET['pg'] : ""; | |
if ( empty( $pg ) ) { |
This file contains 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
RewriteEngine on | |
RewriteRule ^about/$ /pages/about.html [L] | |
RewriteRule ^features/$ /features.php [L] | |
RewriteRule ^buy/$ /buy.html [L] | |
RewriteRule ^contact/$ /pages/contact.htm [L] | |
Baris ke-2 : http://yoursite.com/pages/about.html -> http://yoursite.com/about | |
Baris ke- : http://yoursite.com/features.php-> http://yoursite.com/features | |
Baris ke- : http://yoursite.com/buy.html-> http://yoursite.com/buy | |
Baris ke- : http://yoursite.com/pages/contact.html-> http://yoursite.com/contact |
This file contains 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
<div class="item"> | |
<img src="images/1e1dd042704d8bc621f126d2beada5eb.jpg" alt="Owl Image"> | |
<div class="overlay-slider"> | |
<span class="table-overlay"> | |
<span class="tablecell-overlay"> | |
<h3>Feature Label</h3> | |
<a href="#" class="btn btn-primary">Buy Now!</a> <a href="#" class="btn btn-default">More Info</a> | |
</span> | |
</span> | |
</div> |
This file contains 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 | |
if (have_posts()) : | |
$counter = 1; | |
while (have_posts()) : | |
the_post(); |
This file contains 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
$('.add-to-cart').on('click', function () { | |
var cart = $('.shopping-cart'); | |
var imgtodrag = $(this).parent('.item').find("img").eq(0); | |
if (imgtodrag) { | |
var imgclone = imgtodrag.clone() | |
.offset({ | |
top: imgtodrag.offset().top, | |
left: imgtodrag.offset().left | |
}) | |
.css({ |
This file contains 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
<div id="preloader" style="position: fixed; width: 100%; height: 100%; z-index: 999; background-color: #fff; text-align: center;"> | |
<div class="table"> | |
<div class="table-cell"> | |
<i class="preloader-icon fa fa-spinner fa-pulse"></i> | |
</div> | |
</div> | |
</div> | |
<!-- jQuery --> | |
$(window).load(function() { |
This file contains 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
$args = array( | |
'post_type' => 'post', | |
'meta_query' => array( | |
array( | |
'key' => 'post_url', // custom post type | |
'value' => $the_url_topic // value yg diinputkan | |
) | |
), | |
'fields' => 'ids' // id from wp | |
); |
This file contains 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
$('a#suggest_title').bind( "click", function(event) { | |
event.preventDefault(); | |
// http://stackoverflow.com/questions/29997121/how-to-get-page-open-graph-metadata-via-jquery | |
var ogPostUrl = $('input#post_url').val(); | |
$.getJSON("//query.yahooapis.com/v1/public/yql?" | |
+ "q=SELECT%20*%20FROM%20html%20WHERE%20url=%27" | |
+ encodeURIComponent(ogPostUrl) | |
+ "%27%20AND%20xpath=%27descendant-or-self::meta%27" | |
+ "&format=json&callback=?" | |
, function(data) { |
This file contains 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 | |
if ( is_multisite() ) : | |
global $wpdb, $table_prefix; | |
$table_name = $table_prefix . 'postmeta'; // output wp_#_postmeta (multisite) # = id multisite (automatic) | |
$select_data = $wpdb->get_results( "SELECT meta_value FROM $table_name WHERE meta_value = '$warrior_url_topic'" ); | |
$check_url_exists = $wpdb->num_rows; | |
foreach ( $select_data as $obj ) { | |
$wp_data = $obj->meta_value; | |
} |