kolaz |
Advanced user |
|
|
Joined: May 06, 2015 |
Posts: 53 |
|
|
|
|
|
|
|
Here it is the first lines...
Code: |
<?php
add_action("init", function()
{
ob_start();
}
);
if( isset($_GET["s"]) && $_GET["s"] == "sıfırla" )
{
flush_rewrite_rules();
exit( header("location: " . home_url()) );
}
$themeurl = get_template_directory_uri() . "/";
$themedir = get_template_directory() . "/";
show_admin_bar(false);
include(dirname(__FILE__) . "/functions_user.php");
add_action("wp_loaded", "license_control");
add_theme_support("post-thumbnails");
add_action("admin_menu", function()
{
add_menu_page("TemaFabrika", "TemaFabrika", "manage_options", "tema_ayarlari", function()
{
include(get_template_directory() . "/includes/admin/tema_ayarlari.php");
}
, get_template_directory_uri() . "/images/fabrika.png", 100);
add_menu_page("Slider", "Slider", "manage_options", "slider_ayar", function()
{
include(get_template_directory() . "/includes/admin/slider.php");
}
, get_template_directory_uri() . "/images/slider.png", 95);
add_submenu_page("users.php", "Ödeme Bildirimleri", "Ödeme Bildirimleri", "manage_options", "bildirimler", function()
{
include(get_template_directory() . "/includes/admin/vip.php");
}
);
}
);
add_action("wp_enqueue_scripts", function()
{
wp_enqueue_style("reset", get_stylesheet_directory_uri() . "/css/reset.css");
wp_enqueue_style("css", get_stylesheet_uri());
wp_enqueue_style("fontawesome", get_stylesheet_directory_uri() . "/css/font-awesome.min.css");
wp_enqueue_style("jquery-ui", get_stylesheet_directory_uri() . "/css/jquery-ui.min.css");
wp_enqueue_style("jquery-scrollbar", get_stylesheet_directory_uri() . "/css/jquery.scrollbar.css");
wp_enqueue_style("alegreya-sans", "https://fonts.googleapis.com/css?family=Alegreya+Sans:100,400,300,500,700,800&subset=latin,latin-ext");
wp_enqueue_style("permanent-marker", "https://fonts.googleapis.com/css?family=Permanent+Marker");
wp_enqueue_style("roboto", "https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900&subset=latin,latin-ext");
wp_enqueue_script("jquery183", get_template_directory_uri() . "/js/jquery-1.8.3.min.js");
wp_enqueue_script("all", get_template_directory_uri() . "/js/all.js", array( ), "1.0.0", true);
wp_enqueue_script("general-scripts", get_template_directory_uri() . "/js/scripts.js#asyncload", array( ), "1.0.0", true);
}
);
add_action("admin_enqueue_scripts", function()
{
wp_enqueue_style("fontawesome", get_stylesheet_directory_uri() . "/css/font-awesome.min.css");
wp_enqueue_style("admincss", get_stylesheet_directory_uri() . "/css/admin.css");
wp_enqueue_style("jqueryuicss", get_stylesheet_directory_uri() . "/css/jquery-ui.min.css");
wp_enqueue_script("adminjs", get_template_directory_uri() . "/js/admin.js");
wp_enqueue_script("jqueryui", get_template_directory_uri() . "/js/jquery-ui.min.js");
}
);
add_filter("clean_url", "add_async_forscript", 11, 1);
add_action("after_switch_theme", "tema_aktiflestir");
add_action("admin_menu", "revcon_change_post_label");
add_action("init", "revco
xxxxxxxxxxxxxxxxxxxxxx
|
|
|