Guest User

Untitled

a guest
Jun 14th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 15.05.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. require_once 'rtltheme_license.php';
  15. WP_RtlTheme_02::get_instance();
  16. $check_class = WP_RtlTheme_02::get_instance();
  17. $rtloauthcheck = $check_class->rtloauthcheck();
  18.  
  19. if ($rtloauthcheck !== true) {
  20. WP_RtlTheme_01::get_instance();
  21. }
  22. else {
  23. function wpp_post_count_by_date($date = NULL, $post_type = 'post', $post_status = 'publish')
  24. {
  25. global $wpdb;
  26.  
  27. if ($date != NULL) {
  28. $current_date = $date;
  29. }
  30. else {
  31. date_default_timezone_set(get_option('timezone_string'));
  32. $current_date = date('Y-m-d', time());
  33. }
  34.  
  35. $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\'';
  36. $today_post_count = $wpdb->get_var($sql);
  37. return $today_post_count;
  38. }
  39.  
  40. function custom_admin_style()
  41. {
  42. wp_register_style('webim_admin_css', get_bloginfo('template_url') . '/css/options.css', false, '1.0.0');
  43. wp_enqueue_style('webim_admin_css');
  44. }
  45.  
  46. require_once 'myfunctions.php';
  47. add_action('admin_enqueue_scripts', 'custom_admin_style');
  48.  
  49. if (!class_exists('ReduxFramework')) {
  50. require_once dirname(__FILE__) . '/ReduxCore/framework.php';
  51. }
  52.  
  53. if (!isset($redux_demo)) {
  54. require_once dirname(__FILE__) . '/ReduxCore/admin-config.php';
  55. }
  56.  
  57. function limit_title($title, $n)
  58. {
  59. if ($n < strlen($title)) {
  60. echo mb_substr(the_title($before = '', $after = '', false), 0, $n) . '...';
  61. }
  62. else {
  63. the_title();
  64. }
  65. }
  66.  
  67. function get_excerpt($count)
  68. {
  69. $permalink = get_permalink($post->ID);
  70. $excerpt = get_the_content();
  71. $excerpt = strip_tags($excerpt);
  72. $excerpt = substr($excerpt, 0, $count);
  73. $excerpt = substr($excerpt, 0, strripos($excerpt, ' '));
  74. $excerpt = $excerpt . '<a href="' . $permalink . '"> ... </a>';
  75. return $excerpt;
  76. }
  77.  
  78. function wptuts_resize_text()
  79. {
  80. wp_enqueue_script('resize', get_template_directory_uri() . '/js/resize.js', ['jquery']);
  81. }
  82.  
  83. function direct_email($text = 'ایمیل به دوستان')
  84. {
  85. global $post;
  86. $title = htmlspecialchars($post->post_title);
  87. $subject = 'Sur ' . htmlspecialchars(get_bloginfo('name')) . ' : ' . $title;
  88. $body = 'I recommend this page : ' . $title . '. You can read it on : ' . get_permalink($post->ID);
  89. $link = '<a rel="nofollow" href="mailto:?subject=' . rawurlencode($subject) . '&amp;body=' . rawurlencode($body) . '" title="' . $text . ' : ' . $title . '">' . $text . '</a>';
  90. return $link;
  91. }
  92.  
  93. function split_content()
  94. {
  95. global $more;
  96. $more = true;
  97. .......................................................
  98. ..................................
  99. ................
Add Comment
Please, Sign In to add comment