Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * @ Pirate-Sky Crew :: PHP Decoder v2
- * @ Author: pLa$71k
- * @ Web: http://pirate-sky.com
- * @ Pirate-Sky Crew © 2008 - 2013
- */
- function kt_limit($string, $word_limit)
- {
- $words = explode(" ", $string, $word_limit + 1);
- if ($word_limit < count($words)) {
- array_pop($words);
- }
- return implode(" ", $words);
- }
- function kt_sayfa($pages = "", $range = 2)
- {
- $showitems = $range * 2 + 1;
- global $paged;
- if (empty($paged)) {
- $paged = 1;
- }
- if ($pages == "") {
- global $wp_query;
- $pages = $wp_query->max_num_pages;
- if (!$pages) {
- $pages = 1;
- }
- }
- if (1 != $pages) {
- echo "<b>Sayfa</b>";
- if (2 < $paged && $range + 1 < $paged && $showitems < $pages) {
- echo "<a href='" . get_pagenum_link(1) . "'>«</a>";
- }
- if (1 < $paged && $showitems < $pages) {
- echo "<a href='" . get_pagenum_link($paged - 1) . "'>‹</a>";
- }
- $i = 1;
- while ($i <= $pages) {
- echo "<a href='" . get_pagenum_link($i) . "' class='inactive' >" . $i . "</a>";
- ++$i;
- }
- if ($paged < $pages && $showitems < $pages) {
- echo "<a href='" . get_pagenum_link($paged + 1) . "'>›</a>";
- }
- if ($paged < $pages - 1 && $paged + $range - 1 < $pages && $showitems < $pages) {
- echo "<a href='" . get_pagenum_link($pages) . "'>»</a>";
- }
- }
- }
- require_once(TEMPLATEPATH . "/controlpanel.php");
- include_once(TEMPLATEPATH . "/tabs.php");
- include_once(TEMPLATEPATH . "/functions-ozel.php");
- if (function_exists("register_sidebar")) {
- register_sidebar(array(
- "name" => "Yan Menü",
- "before_title" => "<h2>",
- "after_title" => "</h2>",
- "before_widget" => "<div class=\"kutu\">",
- "after_widget" => "</div>"
- ));
- }
- if (function_exists("register_sidebar")) {
- register_sidebar(array(
- "name" => "Footer Menü",
- "before_title" => "<h2>",
- "after_title" => "</h2>",
- "before_widget" => "<div class=\"at\">",
- "after_widget" => "</div>"
- ));
- }
- register_nav_menus(array(
- "menu" => __("Üst Menü", "wptlog"),
- "altmenu" => __("Alt Menü", "wptlog")
- ));
- add_theme_support("post-thumbnails");
- if (!function_exists("wptema_editor")) {
- add_action("admin_print_footer_scripts", "wptema_editor");
- }
- if (!function_exists("wptemalari")) {
- add_action("wp_footer", "wptemalari");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement