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 echo edd_get_cart_quantity(); ?> // Sepetekki ürün sayısı | |
<?php echo edd_get_cart_total(); ?> // Sepetteki toplam fiyat | |
<?php echo edd_get_checkout_uri(); ?> // Sepete yönlendiren kod | |
<?php edd_price($post->ID); ?> // Ürünün fiyatı | |
Functions.php'ye eklenecek kodlar | |
// Download uzantısını kendi uzantınız ile değiştirmek | |
define('EDD_SLUG', 'uzantiadi'); |
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
wp_embed_register_handler( 'gist', '/https?:\/\/gist\.github\.com\/([a-z0-9]+)(\?file=.*)?/i', 'fshn_gist_embed' ); | |
function fshn_gist_embed( $matches, $attr, $url, $rawattr ) { | |
$embed = sprintf( | |
'<script src="https://gist.github.com/%1$s.js%2$s"></script>', | |
esc_attr($matches[1]), | |
esc_attr($matches[2]) | |
); |
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
// index.php'ye eklenecek kod | |
<div id="infinite-scroll-wrap"> | |
<?php next_posts_link('Sonraki sayfa'); ?> | |
</div> | |
// JS'ye eklenecek fonksiyon | |
jQuery(document).ready(function() { | |
jQuery('#icerik .sagalan').infinitescroll({ // yazıların bulunduğu class ya da id | |
navSelector : "#infinite-scroll-wrap", // Seçicinin bulunduğu id |
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
/* | |
Navicat MySQL Data Transfer | |
Source Server : localhost_3306 | |
Source Server Version : 50505 | |
Source Host : localhost:3306 | |
Source Database : test | |
Target Server Type : MYSQL | |
Target Server Version : 50505 |
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
<!-- Custom Login/Register/Password Code @ http://digwp.com/2010/12/login-register-password-code/ --> | |
<!-- Theme Template Code --> | |
<div id="login-register-password"> | |
<?php global $user_ID, $user_identity; get_currentuserinfo(); if (!$user_ID) { ?> | |
<ul class="tabs_login"> | |
<li class="active_login"><a href="#tab1_login">Login</a></li> | |
<li><a href="#tab2_login">Register</a></li> |
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
<!-- Custom Login/Register/Password Code @ http://digwp.com/2010/12/login-register-password-code/ --> | |
<!-- Theme Template Code --> | |
<div id="login-register-password"> | |
<?php global $user_ID, $user_identity; get_currentuserinfo(); if (!$user_ID) { ?> | |
<ul class="tabs_login"> | |
<li class="active_login"><a href="#tab1_login">Login</a></li> | |
<li><a href="#tab2_login">Register</a></li> |
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 | |
/* | |
** Template Name: Registo | |
** Este template foi criado pela miukimiu.com | |
** É um formulário de regsto costumizado para um site wordpress. | |
*/ | |
get_header(); ?> | |
<div class="block-9 no-mar content-with-sidebar"> |
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
jQuery(document).ready(function($) { | |
/** | |
* When user clicks on button... | |
* | |
*/ | |
$('#btn-new-user').on("click",function() { | |
/** | |
* Prevent default action, so when user clicks button he doesn't navigate away from page |
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
function top_comment_authors($amount = 5){ | |
global $wpdb; | |
$results = $wpdb->get_results(' | |
SELECT | |
COUNT(comment_author_email) AS comments_count, comment_author_email, comment_author, comment_author_url | |
FROM | |
'.$wpdb->comments.' | |
WHERE |
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
/* Arama Filtresi (4Piksel) */ | |
function dpx_aramafiltre($query) { | |
if ($query->is_search) { | |
$query->set('post_type', 'post'); /* Buraya arama sonuçlarında çıkmasını istediğiniz yazı türünü yazabilirsiniz. Örnek: page ya da kendi yazı türünüz. */ | |
} | |
return $query; | |
} | |
add_filter('pre_get_posts','dpx_aramafiltre'); |
OlderNewer