PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/veezar.kerihosting.com/wp-content/themes/lms-old/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/veezar.kerihosting.com/wp-content/themes/lms-old/functions.php

<?php if( ! defined('IAMD_BASE_URL' ) ){  define( 'IAMD_BASE_URL',  get_template_directory_uri().'/'); }
define('IAMD_FW_URL', IAMD_BASE_URL . 'framework/' );
define('IAMD_FW',get_template_directory().'/framework/');
define('IAMD_TD',get_template_directory());
define('IAMD_THEME_SETTINGS', 'mytheme');
define('IAMD_THEME_URI', get_template_directory_uri());
define('IAMD_SAMPLE_FONT', esc_html__('The quick brown fox jumps over the lazy dog', 'lms') );

define('IAMD_CORE_PLUGIN', WP_PLUGIN_DIR.'/designthemes-core-features');
define('IAMD_CORE_PLUGIN_URI', WP_PLUGIN_URL.'/designthemes-core-features' );

$user_id = get_current_user_id();
if($user_id > 0) {
  
    global $current_user;
    $user_roles = $current_user->roles;
    $user_role = array_shift($user_roles);

  define('IAMD_USER_ROLE', $user_role);
    
} else {
  
  define('IAMD_USER_ROLE', '');
  
}

/* Define IAMD_THEME_NAME
 * Objective: 
 *    Used to show theme name where ever needed( eg: in widgets title ar the back-end).
 */
// get themedata version wp 3.4+
if(function_exists('wp_get_theme')):
  $theme_data = wp_get_theme();
  define('IAMD_THEME_NAME',$theme_data->get('Name'));
  define('IAMD_THEME_FOLDER_NAME',$theme_data->template);
  define('IAMD_THEME_VERSION',(float) $theme_data->get('Version'));
endif;

$options = get_option(IAMD_THEME_SETTINGS);
$GLOBALS['teachers-singular-label'] = (isset($options['general']['teachers-singular-label']) && !empty($options['general']['teachers-singular-label'])) ? $options['general']['teachers-singular-label'] : 'Teacher';
$GLOBALS['teachers-plural-label'] = (isset($options['general']['teachers-plural-label']) && !empty($options['general']['teachers-plural-label'])) ? $options['general']['teachers-plural-label'] : 'Teachers';

#ALL BACKEND DETAILS WILL BE IN include.php
require_once (get_template_directory () . '/framework/include.php');
if ( ! isset( $content_width ) ) $content_width = 1170;

$GLOBALS['force_enable'] = dttheme_option('general', 'force-enable-global-layout');
$GLOBALS['page_layout'] = dttheme_option('general', 'global-page-layout');

function get_current_template() {
    global $wp_query;
    $template_name = str_replace('.php','',get_post_meta($wp_query->post->ID,'_wp_page_template',true));
    if ( $template_name ) return $template_name;
    else return false;
}

// Register Gutenberg -----------------------------------------------------------
require_once( get_template_directory () . '/framework/register-gutenberg-editor.php' ); ?>