HEX
Server: Apache
System: Linux gains.arrowcloudlinux.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64
User: mbkashyap (2642)
PHP: 8.1.33
Disabled: allow_url_include, show_source, symlink, system, passthru, exec, popen, pclose, proc_open, proc_terminate,proc_get_status, proc_close, proc_nice, allow_url_fopen, shell-exec, shell_exec, fpassthru, base64_encodem, escapeshellcmd, escapeshellarg, crack_check,crack_closedict, crack_getlastmessage, crack_opendict, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, dl, escap, phpinfo
Upload Files
File: /home/mbkashyap/domains/mbkashyap.com/public_html/wp-content/themes/bizmaster/inc/theme-excerpt.php
<?php
/**
 * Theme Excerpt
 * @package bizmaster
 * @since 1.0.0
 */

if (!defined('ABSPATH')){
    exit(); //exit if access it directly
}

if (!class_exists('Bizmaster_Excerpt')):
class Bizmaster_Excerpt {

    public static $length = 55;
	public static $more = '...';
	public static $types = array(
      'short' => 35,
      'regular' => 55,
      'long' => 100,
      'promo' => 15
    );

    /**
    * Sets the length for the excerpt,
    * then it adds the WP filter
    * And automatically calls the_excerpt();
    *
    * @param string $new_length
    * @return void
    * @author Baylor Rae'
    */
    public static function length($new_length = 55, $more = '...') {
        Bizmaster_Excerpt::$length = $new_length;
        Bizmaster_Excerpt::$more = $more;

        add_filter( 'excerpt_more', 'Bizmaster_Excerpt::auto_excerpt_more' );
		add_filter( 'excerpt_length', 'Bizmaster_Excerpt::new_length' );
		Bizmaster_Excerpt::output();
	}

    public static function new_length() {
        if( isset(Bizmaster_Excerpt::$types[Bizmaster_Excerpt::$length]) )
            return Bizmaster_Excerpt::$types[Bizmaster_Excerpt::$length];
        else
            return Bizmaster_Excerpt::$length;
    }

    public static function output() {
        the_excerpt();
    }

    public static function auto_excerpt_more() {
		return Bizmaster_Excerpt::$more;
	}

} //end class
endif;

if (!function_exists('Bizmaster_Excerpt')){
	function Bizmaster_Excerpt($length = 55, $more = '...') {
		Bizmaster_Excerpt::length($length, $more);
	}
}
?>