Skip to content

Instantly share code, notes, and snippets.

@serkanalgur
Last active May 7, 2020 12:34
Show Gist options
  • Save serkanalgur/2ddab2114b48d4bce7a05f4abd829a5a to your computer and use it in GitHub Desktop.
Save serkanalgur/2ddab2114b48d4bce7a05f4abd829a5a to your computer and use it in GitHub Desktop.
<?php
if (function_exists('register_sidebar')) {
register_sidebar([
'name' => 'Sol bilesen',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
]);
}
if (function_exists('register_sidebar')) {
register_sidebar([
'name' => 'Sag bilesen',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
]);
}
<?php
if (function_exists('register_sidebar')) {
register_sidebar([
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
]);
}
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Sol bilesen") ) : ?>
<?php endif; ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Sag bilesen") ) : ?>
<?php endif; ?>
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment