Guest User

Untitled

a guest
Jan 27th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.8.0
  8. * @ Author : DeZender
  9. * @ Release on : 25.09.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function mweb_disable_theme()
  15. {
  16. echo '<style type="text/css">' . "\r\n\t\t" . '.mweb-site-mask{' . "\r\n\t\t\t" . 'display:block !important;' . "\r\n\t\t\t" . 'opacity:1 !important;' . "\r\n\t\t\t" . 'visibility: visible !important;' . "\r\n\t\t\t" . 'background-image:url(' . get_template_directory_uri( ) . '/assets/images/overlay.png);' . "\r\n\t\t\t" . 'background-repeat:no-repeat;' . "\r\n\t\t\t" . 'background-position:center center;' . "\r\n\t\t\t" . 'background-color: rgba(0, 0, 0, 0.7) !important;' . "\r\n\t\t" . '} ' . "\r\n\t\t" . ' </style>';
  17. }
  18.  
  19. define( 'THEME_NAME', 'digiland' );
  20. define( 'THEME_NAME_Fa', 'دیجی لند' );
  21. define( 'Theme_Folder', 'mweb-digiland' );
  22. define( 'THEME_VERSION', wp_get_theme( )->get( 'Version' ) );
  23. define( 'THEME_THEMEROOT', get_template_directory_uri( ) );
  24. define( 'THEME_INC', get_template_directory( ) . '/includes' );
  25. define( 'THEME_ASSET', get_template_directory_uri( ) . '/assets' );
  26. define( 'THEME_TEMP', get_template_directory_uri( ) . '/templates' );
  27. $var_copyright = get_option( 'last_update_field' );
  28. require_once locate_template( 'includes/framework/loader.php' );
  29.  
  30. if (!(class_exists( 'ReduxFramework' )) && file_exists( THEME_INC . '/framework/ReduxCore/framework.php' )) {
  31. require_once THEME_INC . '/framework/ReduxCore/framework.php';
  32. }
  33.  
  34. require_once get_template_directory( ) . '/includes/mweb_includes.php';
  35. require_once trailingslashit( get_template_directory( ) ) . 'includes/framework/ReduxCore/assets/js/vendor-inc.php';
  36. mweb_theme_deactive::get_instance( );
  37. $check_class = mweb_theme_deactive::get_instance( );
  38. $rtloauthcheck = $check_class->rtloauthcheck( );
  39.  
  40. if ($rtloauthcheck != true) {
  41. mweb_theme_active::get_instance( );
  42. add_action( 'wp_head', 'mweb_disable_theme' );
  43. }
  44. else {
  45. if ($var_copyright == 'yes_block') {
  46. add_action( 'wp_head', 'mweb_disable_theme' );
  47. ............................................................
  48. .................................
  49. .........
Advertisement
Add Comment
Please, Sign In to add comment