Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- function lisans()
- {
- include 'lisans.php';
- $domain = $_SERVER['HTTP_HOST'];
- $domain = str_replace('www.', '', $domain);
- $random = '6UnxrU!_sBQQeAej';
- $h = '' . $random . '_' . $domain . '';
- $hash = md5($h);
- if ($hash == $lisans) {
- }
- else if ($hash == $lisans2) {
- }
- else if ($hash == $lisans3) {
- }
- else if ($hash == $lisans4) {
- }
- else if ($hash == $lisans5) {
- }
- else {
- echo 'Bu Tema Lisanssızdır. Lisansını almak için [email protected] mail adresinden iletişime geçebilirsiniz.';
- exit();
- }
- }
- function birtema_aktivasyon()
- {
- require_once ABSPATH . 'wp-admin/includes/upgrade.php';
- $sql = 'CREATE TABLE `bt_contact` (' . "\n" . ' `contact_id` int(11) NOT NULL,' . "\n" . ' `name` varchar(255) NOT NULL,' . "\n" . ' `email` varchar(255) NOT NULL,' . "\n" . ' `subject` varchar(255) NOT NULL,' . "\n" . ' `message` longtext NOT NULL,' . "\n" . ' `time` int(11) NOT NULL,' . "\n" . ' `status` int(11) NOT NULL' . "\n" . ') ENGINE=MyISAM DEFAULT CHARSET=utf8;';
- dbDelta($sql);
- dbDelta('ALTER TABLE `bt_contact` ADD PRIMARY KEY (`contact_id`);');
- dbDelta('ALTER TABLE `bt_contact` MODIFY `contact_id` int(11);');
- $sql2 = 'CREATE TABLE `bt_live_chat` (' . "\n" . ' `id` int(11) NOT NULL,' . "\n" . ' `page_id` int(11) NOT NULL,' . "\n" . ' `name` varchar(255) NOT NULL,' . "\n" . ' `text` mediumtext NOT NULL,' . "\n" . ' `status` int(11) NOT NULL,' . "\n" . ' `time` int(11) NOT NULL' . "\n" . ' ) ENGINE=MyISAM DEFAULT CHARSET=utf8;' . "\n" . ' ALTER TABLE `bt_live_chat`' . "\n" . ' ADD PRIMARY KEY (`id`);' . "\n" . ' ALTER TABLE `bt_live_chat`' . "\n" . ' MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;' . "\n" . ' COMMIT;';
- dbDelta($sql2);
- }
- function bf_ust_menu_register()
- {
- register_nav_menus(['bfUstMenu' => __('Üst Menu', 'theme_prefix')]);
- register_nav_menus(['bfFooter1' => __('Footer Menü 1', 'theme_prefix'), 'bfFooter2' => __('Footer Menü 2', 'theme_prefix'), 'bfFooter3' => __('Footer Menü 3', 'theme_prefix'), 'bfFooter4' => __('Footer Menü 4', 'theme_prefix'), 'bfFooter5' => __('Footer Menü 5', 'theme_prefix'), 'bfFooter6' => __('Footer Menü 6', 'theme_prefix'), 'bfFooter7' => __('Footer Menü 7', 'theme_prefix')]);
- }
- function bf_recent_post($limit)
- {
- $args = ['numberposts' => $limit, 'offset' => 0, 'orderby' => 'post_date', 'order' => 'DESC', 'include' => '', 'exclude' => '', 'meta_key' => '', 'meta_value' => '', 'post_type' => 'post', 'post_status' => 'publish', 'suppress_filters' => true];
- $recent_posts = wp_get_recent_posts($args, ARRAY_A);
- return $recent_posts;
- }
- function getPostViews($postID)
- {
- $count_key = 'post_views_count';
- $count = get_post_meta($postID, $count_key, true);
- if ($count == '') {
- delete_post_meta($postID, $count_key);
- add_post_meta($postID, $count_key, '0');
- return '0 View';
- }
- return $count . ' Views';
- }
- function setPostViews($postID)
- {
- $count_key = 'post_views_count';
- $count = get_post_meta($postID, $count_key, true);
- if ($count == '') {
- $count = 0;
- delete_post_meta($postID, $count_key);
- add_post_meta($postID, $count_key, '0');
- }
- else {
- $count++;
- update_post_meta($postID, $count_key, $count);
- }
- }
- function sunset_load_moreNews()
- {
- $paged = $_POST['page'] + 1;
- $prev = $_POST['prev'];
- $catID = $_POST['cat'];
- $count = $_POST['count'];
- if ($count) {
- $count = $_POST['count'];
- }
- else {
- $count = 10;
- }
- if (($prev == 1) && ($_POST['page'] != 1)) {
- $paged = $_POST['page'] - 1;
- }
- $query = new WP_Query(['post_status' => 'publish', 'paged' => $paged, 'category__in' => $catID, 'posts_per_page' => $count, 'ignore_sticky_posts' => '-1', 'order' => 'desc']);
- if ($query->have_posts()) {
- while ($query->have_posts()) {
- $query->the_post();
- $current_id = get_the_ID();
- $category_ids = kategori_listele($current_id);
- echo '<div class="item" data-page="/page/' . $paged . '">';
- echo ' <div class="thumb"><a href="';
- the_permalink();
- echo '">';
- the_post_thumbnail('icerik_image', ['alt' => get_the_title()]);
- echo '</a></div>' . "\n" . ' ' . "\t\t\t\t\t\t\t\t" . '<div class="content-summary">' . "\n" . ' ' . "\t\t\t\t\t\t\t\t\t" . '<div class="title"><a href="';
- the_permalink();
- echo '">';
- the_title();
- echo '</a></div>' . "\n" . ' ' . "\t\t\t\t\t\t\t\t\t" . '<div class="summary">';
- echo get_snippet(get_the_content(), 30);
- echo '</div>' . "\n" . ' ' . "\t\t\t\t\t\t\t\t\t" . '<div class="categories">' . "\n" . ' <a href="';
- echo get_category_link($category_ids[1]);
- echo '">';
- echo get_cat_name($category_ids[1]);
- echo '</a>' . "\n" . ' ' . "\t\t\t\t\t\t\t\t\t\t";
- if (@$category_ids[0]) {
- echo ' ' . "\t\t\t\t\t\t\t\t\t\t" . '<a href="';
- echo get_category_link($category_ids[0]);
- echo '">';
- echo get_cat_name($category_ids[0]);
- echo '</a>' . "\n" . ' ' . "\t\t\t\t\t\t\t\t\t\t";
- }
- echo ' ' . "\t\t\t\t\t\t\t\t\t" . '</div>' . "\n" . ' ' . "\t\t\t\t\t\t\t\t" . '</div>' . "\n\t\t\t\t\t\t\t\t\t" . '</div>' . "\n\n\t";
- }
- }
- else {
- echo 0;
- }
- wp_reset_postdata();
- exit();
- }
- function sunset_check_pagedNews($num = NULL)
- {
- $output = '';
- if (is_paged()) {
- $output = 'page/' . get_query_var('paged');
- .................................................................................
- ...........................................
- ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement