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 | |
$sehiri = get_queried_object(); | |
if($sehiri->parent != 0 ) { | |
$ilce_selected = get_queried_object()->slug; | |
$yazi = get_queried_object()->name ." İlanlar"; | |
} else { | |
$sehir_selected = get_queried_object()->slug; | |
$yazi = get_queried_object()->name ." İlanlar"; | |
$child = get_queried_object()->term_id; | |
} |
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
$i = 0; | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
query_posts(array( | |
'post_type' => 'post', | |
'paged' => $paged, | |
'posts_per_page' => 6 | |
)); | |
while (have_posts()) : the_post(); $i++; ?> | |
... |
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 | |
$type = 'yacht'; | |
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; | |
if(isset($_GET)) { | |
if($liman != 0) { | |
$limanq = " | |
array( | |
'key' => 'yat_limanı', | |
'value' => ".$liman.", |
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
function wpse_131562_redirect() { | |
if ( ! is_user_logged_in() && is_checkout() ) ) { | |
// feel free to customize the following line to suit your needs | |
wp_redirect(home_url('/uye-girisi')); | |
exit; | |
} | |
} | |
add_action('template_redirect', 'wpse_131562_redirect'); |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_URI} !/wp-admin | |
RewriteCond %{REQUEST_URI} !/wp-includes | |
RewriteCond %{REQUEST_URI} !/wp-login\.php$ | |
RewriteCond %{REQUEST_URI} !/wp-content | |
RewriteCond %{REQUEST_URI} !/feed |
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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get autoclean | |
sudo apt-get autoremove | |
adduser sakarya | |
usermod -aG sudo sakarya | |
ufw app list | |
ufw allow OpenSSH |
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 | |
/** | |
* Template Name: Contact Form | |
* | |
* The contact form page template displays the a | |
* simple contact form in your website's content area. | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ |
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
add_action( 'wp_enqueue_scripts', 'pt_like_it_scripts' ); | |
function pt_like_it_scripts() { | |
if( is_single() ) { | |
wp_enqueue_style( 'like-it', trailingslashit( plugin_dir_url( __FILE__ ) ).'css/like-it.css' ); | |
if (!wp_script_is( 'jquery', 'enqueued' )) { | |
wp_enqueue_script( 'jquery' );// Comment this line if you theme has already loaded jQuery | |
} | |
wp_enqueue_script( 'like-it', trailingslashit( plugin_dir_url( __FILE__ ) ).'js/like-it.js', array('jquery'), '1.0', true ); |