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.1.0.0
- * @ Author : DeZender
- * @ Release on : 15.05.2020
- * @ Official site : http://DeZender.Net
- *
- */
- require_once 'rtltheme_license.php';
- WP_RtlTheme_02::get_instance();
- $check_class = WP_RtlTheme_02::get_instance();
- $rtloauthcheck = $check_class->rtloauthcheck();
- if ($rtloauthcheck !== true) {
- WP_RtlTheme_01::get_instance();
- }
- else {
- function wpp_post_count_by_date($date = NULL, $post_type = 'post', $post_status = 'publish')
- {
- global $wpdb;
- if ($date != NULL) {
- $current_date = $date;
- }
- else {
- date_default_timezone_set(get_option('timezone_string'));
- $current_date = date('Y-m-d', time());
- }
- $sql = 'SELECT COUNT(*) FROM ' . $wpdb->posts . ' WHERE post_status = \'' . $post_status . '\' AND post_type = \'' . $post_type . '\' AND post_date BETWEEN \'' . $current_date . ' 00:00:00\' AND \'' . $current_date . ' 23:59:59\'';
- $today_post_count = $wpdb->get_var($sql);
- return $today_post_count;
- }
- function custom_admin_style()
- {
- wp_register_style('webim_admin_css', get_bloginfo('template_url') . '/css/options.css', false, '1.0.0');
- wp_enqueue_style('webim_admin_css');
- }
- require_once 'myfunctions.php';
- add_action('admin_enqueue_scripts', 'custom_admin_style');
- if (!class_exists('ReduxFramework')) {
- require_once dirname(__FILE__) . '/ReduxCore/framework.php';
- }
- if (!isset($redux_demo)) {
- require_once dirname(__FILE__) . '/ReduxCore/admin-config.php';
- }
- function limit_title($title, $n)
- {
- if ($n < strlen($title)) {
- echo mb_substr(the_title($before = '', $after = '', false), 0, $n) . '...';
- }
- else {
- the_title();
- }
- }
- function get_excerpt($count)
- {
- $permalink = get_permalink($post->ID);
- $excerpt = get_the_content();
- $excerpt = strip_tags($excerpt);
- $excerpt = substr($excerpt, 0, $count);
- $excerpt = substr($excerpt, 0, strripos($excerpt, ' '));
- $excerpt = $excerpt . '<a href="' . $permalink . '"> ... </a>';
- return $excerpt;
- }
- function wptuts_resize_text()
- {
- wp_enqueue_script('resize', get_template_directory_uri() . '/js/resize.js', ['jquery']);
- }
- function direct_email($text = 'ایمیل به دوستان')
- {
- global $post;
- $title = htmlspecialchars($post->post_title);
- $subject = 'Sur ' . htmlspecialchars(get_bloginfo('name')) . ' : ' . $title;
- $body = 'I recommend this page : ' . $title . '. You can read it on : ' . get_permalink($post->ID);
- $link = '<a rel="nofollow" href="mailto:?subject=' . rawurlencode($subject) . '&body=' . rawurlencode($body) . '" title="' . $text . ' : ' . $title . '">' . $text . '</a>';
- return $link;
- }
- function split_content()
- {
- global $more;
- $more = true;
- .......................................................
- ..................................
- ................
Add Comment
Please, Sign In to add comment