File: /home/elrashedytravel/public_html/wp-content/plugins/ai-wp-writer/tpl/workspace.php
<?php
$limit = (int) @$this->info->limit + (int) @$this->info->sLimit;
?>
<div id="aiasist">
<div class="tokens-left <?php echo (int) @$limit < 1000 ? 'aiassist-warning-limits' : '' ?>">
<?php echo wp_kses_post( __('Credits left:', 'wp-ai-assistant') ) ?> <span id="tokens-left"><?php echo number_format( (int) @$limit, 0, ' ', ' ' ) ?></span>
</div>
<label id="aiassist-text-gen-model">
<div><?php echo wp_kses_post( __('Generation model', 'wp-ai-assistant') ) ?></div>
<div class="aiassist-select-wrap text-model-editor">
<?php
$label = 'Set model';
if( @$this->info->labels->text_model_4_on ){
$model = 'gpt_o3_mini';
$label = $this->info->labels->text_model_4;
}
if( @$this->info->labels->text_model_3_on ){
$model = 'gpt4_nano';
$label = $this->info->labels->text_model_3;
}
if( @$this->info->labels->text_model_2_on ){
$model = 'gpt4';
$label = $this->info->labels->text_model_2;
}
if( @$this->info->labels->text_model_1_on ){
$model = 'gpt3';
$label = $this->info->labels->text_model_1;
}
?>
<div class="aiassist-select-lable"><?php echo esc_html( $label )?></div>
<div class="aiassist-select">
<?php if( @$this->info->labels->text_model_1_on ){ ?>
<div class="aiassist-option" data-value="gpt3"><?php echo esc_html( $this->info->labels->text_model_1 )?></div>
<?php } ?>
<?php if( @$this->info->labels->text_model_2_on ){ ?>
<div class="aiassist-option <?php echo ! @$this->info->subscribe->expire ? 'aiassist-lock' : ''?>" data-value="gpt4"><?php echo esc_html( $this->info->labels->text_model_2 )?></div>
<?php } ?>
<?php if( @$this->info->labels->text_model_3_on ){ ?>
<div class="aiassist-option" data-value="gpt4_nano"><?php echo esc_html( $this->info->labels->text_model_3 )?></div>
<?php } ?>
<?php if( @$this->info->labels->text_model_4_on ){ ?>
<div class="aiassist-option <?php echo ! @$this->info->subscribe->expire ? 'aiassist-lock' : ''?>" data-value="gpt_o3_mini"><?php echo esc_html( $this->info->labels->text_model_4 )?></div>
<?php } ?>
<input type="hidden" name="aiassist-text-model" id="aiassist-change-text-model-editor" value="<?php echo $model ?>" />
</div>
</div>
<a href="<?php echo get_locale() == 'ru_RU' ? 'https://aiwpwriter.com/prices/' : 'https://aiwpw.com/prices/ ' ?>" target="_blank" class="aiassist-small"><?php echo wp_kses_post( __('Prices', 'wp-ai-assistant') ) ?></a>
</label>
<div class="aiassist-tabs">
<div class="aiassist-tab active" data-tab="standart"><?php echo wp_kses_post( __('Single request generation', 'wp-ai-assistant') ) ?></div>
<div class="aiassist-tab" data-tab="long"><?php echo wp_kses_post( __('Generating an article according to outline (large article)', 'wp-ai-assistant') ) ?></div>
</div>
<button type="button" class="aiassist-set-default-promts"><?php echo wp_kses_post( __('Restore default prompts', 'wp-ai-assistant') ) ?></button>
<div class="aiassist-tab-data active" data-tab="standart">
<div class="aiassist-item center">
<p><?php echo wp_kses_post( __('Enter the subject of the article, it will be automatically inserted into the prompt. This field must be filled in for meta tags and images to be generated.', 'wp-ai-assistant') ) ?></p>
<div class="aiassist-theme-standart">
<input id="aiassist-theme-standart" class="aiassist-prom" placeholder="<?php echo wp_kses_post( __('Enter a topic...', 'wp-ai-assistant') ) ?>" value="<?php echo esc_attr( isset( $this->steps['aiassist-theme-standart'] ) ? $this->steps['aiassist-theme-standart'] : '' )?>" />
</div>
<p><?php echo wp_kses_post( __('Enter key phrases for the article, separated by commas. The variable {keywords} will be automatically replaced by the key phrases.', 'wp-ai-assistant') ) ?></p>
<div class="aiassist-keywords-input">
<input id="aiassist-standart-keywords" class="aiassist-prom" placeholder="<?php echo wp_kses_post( __('Enter keywords...', 'wp-ai-assistant') ) ?>" value="<?php echo esc_attr( isset( $this->steps['aiassist-standart-keywords'] ) ? $this->steps['aiassist-standart-keywords'] : '' )?>" />
</div>
<p><?php echo wp_kses_post( __('You can change the prompt as you wish, it determines how the article will turn out. The {key} variable will be replaced by the article topic.', 'wp-ai-assistant') ) ?></p>
<?php if( @$this->info->promts->lang ){ $lang_id = $this->getDefaultLangId(); ?>
<div class="aiassist-lang-block">
<div class="aiassist-lang-promts-item">
<div><?php echo wp_kses_post( __('Prompts language: ', 'wp-ai-assistant') ) ?></div>
<select class="aiassist-lang-promts">
<?php foreach( $this->info->promts->lang as $k => $lang ){ ?>
<?php
if( @$this->steps['promts']['short_lang'] == $k )
$lang_id = (int) $k;
?>
<option value="<?php echo (int) $k ?>" <?php echo @$this->steps['promts']['short_lang'] == $k ? 'selected' : '' ?> ><?php echo esc_html( $lang ) ?></option>
<?php } ?>
</select>
</div>
</div>
<?php } ?>
<?php $promt = esc_textarea( @$this->steps['promts']['short'][ $lang_id ] ? trim( $this->steps['promts']['short'][ $lang_id ] ) : @$this->info->promts->short[ $lang_id ] ); ?>
<textarea id="aiassist-article-prom" class="aiassist-prom" data-check="{key}"><?php echo $promt ?></textarea>
<?php if( strpos( $promt, '{key}') === false ){ ?>
<div class="aiassist-check-key"><?php echo wp_kses_post( __('There is no variable {key} (or {header}) in your prompt. Add it in the place where the key word should be. If you generate an article without the variable, the text won’t be relevant to your topic.', 'wp-ai-assistant') ) ?></div>
<?php } ?>
<?php $promt = esc_textarea( @$this->steps['promts']['keywords'][ $lang_id ] ? trim( $this->steps['promts']['keywords'][ $lang_id ] ) : @$this->info->promts->keywords[ $lang_id ] ); ?>
<textarea id="aiassist-article-prom-keywords" class="aiassist-prom aiassist-keywords-area"><?php echo $promt ?></textarea>
</div>
<div class="next-step">
<button type="button" id="aiassist-standart-generate"><?php echo wp_kses_post( __('Generate article text', 'wp-ai-assistant') ) ?></button>
</div>
</div>
<div class="aiassist-tab-data" data-tab="long">
<div class="aiassist-item center">
<?php if( @$this->info->promts->lang ){ $lang_id = $this->getDefaultLangId(); ?>
<div class="aiassist-lang-block">
<div class="aiassist-lang-promts-item">
<div><?php echo wp_kses_post( __('Prompts language: ', 'wp-ai-assistant') ) ?></div>
<select class="aiassist-lang-promts">
<?php foreach( $this->info->promts->lang as $k => $lang ){ ?>
<?php
if( @$this->steps['promts']['long_lang'] == $k )
$lang_id = (int) $k;
?>
<option value="<?php echo (int) $k ?>" <?php echo @$this->steps['promts']['long_lang'] == $k ? 'selected' : '' ?> ><?php echo esc_html( $lang ) ?></option>
<?php } ?>
</select>
</div>
</div>
<?php } ?>
<?php echo wp_kses_post( __('Prompt for the headline:', 'wp-ai-assistant') ) ?> <input id="aiassist-theme-prom" class="aiassist-prom" value="<?php echo esc_attr( @$this->steps['promts']['long_header'][ $lang_id ] ? $this->steps['promts']['long_header'][ $lang_id ] : @$this->info->promts->long_header[ $lang_id ] )?>" />
<br /><br />
<div>
<input id="aiassist-theme" class="aiassist-prom" placeholder="<?php echo wp_kses_post( __('Enter a topic...', 'wp-ai-assistant') ) ?>" value="<?php echo esc_attr( isset( $this->steps['aiassist-theme'] ) ? $this->steps['aiassist-theme'] : '' )?>" />
</div>
<p><?php echo wp_kses_post( __('Enter key phrases for the article, separated by commas. The variable {keywords} will be automatically replaced by the key phrases.', 'wp-ai-assistant') ) ?></p>
<div class="aiassist-keywords-input">
<input id="aiassist-long-keywords" class="aiassist-prom" placeholder="<?php echo wp_kses_post( __('Enter keywords...', 'wp-ai-assistant') ) ?>" value="<?php echo esc_attr( isset( $this->steps['aiassist-long-keywords'] ) ? $this->steps['aiassist-long-keywords'] : '' )?>" />
</div>
<div class="next-step">
<button type="button" id="aiassist-theme-generate"><?php echo wp_kses_post( __('Generate article headline', 'wp-ai-assistant') ) ?></button>
</div>
</div>
<div class="aiassist-item center step <?php echo esc_attr( isset( $this->steps['header'] ) ? 'active' : '' )?>" id="step1">
<input name="aiassist_header" id="aiassist-header" value="<?php echo esc_attr( isset( $this->steps['header'] ) ? $this->steps['header'] : '' )?>" />
<div class="next-step">
<?php echo wp_kses_post( __('Prompt for an article outline. The {key} variable will be replaced by the topic of the article.', 'wp-ai-assistant') ) ?>
<?php $promt = esc_attr( @$this->steps['promts']['long_structure'][ $lang_id ] ? $this->steps['promts']['long_structure'][ $lang_id ] : @$this->info->promts->long_structure[ $lang_id ] ) ?>
<textarea id="aiassist-structure-prom" class="aiassist-prom" data-check="{key}"><?php echo $promt ?></textarea>
<?php if( strpos( $promt, '{key}') === false ){ ?>
<div class="aiassist-check-key"><?php echo wp_kses_post( __('There is no variable {key} (or {header}) in your prompt. Add it in the place where the key word should be. If you generate an article without the variable, the text won’t be relevant to your topic.', 'wp-ai-assistant') ) ?></div>
<?php } ?>
<div>
<?php $promt = esc_textarea( @$this->steps['promts']['long_keywords'][ $lang_id ] ? trim( $this->steps['promts']['long_keywords'][ $lang_id ] ) : @$this->info->promts->long_keywords[ $lang_id ] ); ?>
<textarea id="aiassist-article-prom-long-keywords" class="aiassist-prom aiassist-keywords-area"><?php echo $promt ?></textarea>
</div>
<button type="button" id="aiassist-structure-generate"><?php echo wp_kses_post( __('Create article structure', 'wp-ai-assistant') ) ?></button>
</div>
</div>
<div class="aiassist-item center step <?php echo esc_attr( isset( $this->steps['structure'] ) ? 'active' : '' )?>" id="step2">
<div>
<?php echo wp_kses_post( __('If the current article outline does not suit your needs, click "Create article structure" again to generate a new one. You can also manually delete items from the outline or add new ones. It is important that each item in the outline is marked with <h2> and <h3> tags.', 'wp-ai-assistant') ) ?>
</div>
<textarea id="aiassist-structure"><?php echo esc_textarea( isset( $this->steps['structure'] ) ? $this->steps['structure'] : '' )?></textarea>
<div class="next-step">
<?php $promt = esc_attr( @$this->steps['promts']['long'][ $lang_id ] ? $this->steps['promts']['long'][ $lang_id ] : @$this->info->promts->long[ $lang_id ] ); ?>
<?php echo wp_kses_post( __('Prompt for generating an article. The article topic is substituted for the {header} variable. <br/>Several additional prompts, which are hidden on the server, are also used to improve the quality of the article and make it less similar to text generated by a neural network. This improves search engine indexing and attracts more traffic.', 'wp-ai-assistant') ) ?> <textarea id="aiassist-content-prom" class="aiassist-prom" data-check="{header}"><?php echo $promt ?></textarea>
<?php if( strpos( $promt, '{header}') === false ){ ?>
<div class="aiassist-check-key"><?php echo wp_kses_post( __('There is no variable {key} (or {header}) in your prompt. Add it in the place where the key word should be. If you generate an article without the variable, the text won’t be relevant to your topic.', 'wp-ai-assistant') ) ?></div>
<?php } ?>
<button type="button" id="aiassist-content-generate"><?php echo wp_kses_post( __('Generate article text', 'wp-ai-assistant') ) ?></button>
</div>
</div>
</div>
<div class="aiassist-item center step <?php echo esc_attr( isset( $this->steps['content'] ) ? 'active' : '' )?>" id="step3">
<?php wp_editor( ( isset( $this->steps['content'] ) ? $this->steps['content'] : '' ), 'AIASSIST', [ 'textarea_name' => 'aiassist_content', 'media_buttons' => false, 'quicktags' => true, 'default_editor' => 'tinymce' ] ); ?>
<div class="next-step">
<div>
<?php $promt = esc_attr( @$this->steps['promts']['long_title'][ $lang_id ] ? $this->steps['promts']['long_title'][ $lang_id ] : @$this->info->promts->long_title[ $lang_id ] ) ?>
<?php echo wp_kses_post( __('Prompt for generating meta title:', 'wp-ai-assistant') ) ?> <input id="aiassist-title-prom" class="aiassist-prom" data-check="{key}" value="<?php echo $promt ?>" />
<?php if( strpos( $promt, '{key}') === false ){ ?>
<div class="aiassist-check-key"><?php echo wp_kses_post( __('There is no variable {key} (or {header}) in your prompt. Add it in the place where the key word should be. If you generate an article without the variable, the text won’t be relevant to your topic.', 'wp-ai-assistant') ) ?></div>
<?php } ?>
</div>
<div>
<?php $promt = esc_attr( @$this->steps['promts']['long_desc'][ $lang_id ] ? $this->steps['promts']['long_desc'][ $lang_id ] : @$this->info->promts->long_desc[ $lang_id ] ); ?>
<?php echo wp_kses_post( __('Prompt for generating meta description:', 'wp-ai-assistant') ) ?> <input id="aiassist-desc-prom" class="aiassist-prom" data-check="{key}" value="<?php echo $promt ?>" />
<?php if( strpos( $promt, '{key}') === false ){ ?>
<div class="aiassist-check-key"><?php echo wp_kses_post( __('There is no variable {key} (or {header}) in your prompt. Add it in the place where the key word should be. If you generate an article without the variable, the text won’t be relevant to your topic.', 'wp-ai-assistant') ) ?></div>
<?php } ?>
</div>
<button type="button" id="aiassist-meta-generate"><?php echo wp_kses_post( __('Generate meta tags', 'wp-ai-assistant') ) ?></button>
</div>
</div>
<div class="aiassist-item center step <?php echo esc_attr( isset( $this->steps['title'] ) ? 'active' : '' )?>" id="step4">
<input name="aiassist_title" id="aiassist-title" value="<?php echo esc_attr( isset( $this->steps['title'] ) ? $this->steps['title'] : '' )?>" />
<textarea name="aiassist_desc" id="aiassist-desc"><?php echo esc_textarea( isset( $this->steps['desc'] ) ? $this->steps['desc'] : '' )?></textarea>
</div>
<div class="aiassist-item step aiassist-images-generator <?php echo esc_attr( isset( $this->steps['content'] ) ? 'active' : '' )?>" id="step6">
<div class="aiassist-step-title center"><?php echo wp_kses_post( __('Generating images for an article. Select a model:', 'wp-ai-assistant') ) ?></div>
<div class="aiassist-select-wrap">
<?php
if( @$this->info->labels->img_model_6_on ){
$model = 'banana';
$label = $this->info->labels->img_model_6;
}
if( @$this->info->labels->img_model_5_on ){
$model = 'gptMini';
$label = $this->info->labels->img_model_5;
}
if( @$this->info->labels->img_model_3_on ){
$model = 'gptImage';
$label = $this->info->labels->img_model_3;
}
if( @$this->info->labels->img_model_2_on ){
$model = 'dalle';
$label = $this->info->labels->img_model_2;
}
if( @$this->info->labels->img_model_1_on ){
$model = 'midjourney';
$label = $this->info->labels->img_model_1;
}
if( @$this->info->labels->img_model_4_on ){
$model = 'flux';
$label = $this->info->labels->img_model_4;
}
?>
<div class="aiassist-select-lable"><?php echo esc_html( $label )?></div>
<div class="aiassist-select aiassist-image-model">
<?php if( @$this->info->labels->img_model_4_on ){ ?>
<div class="aiassist-option" data-value="flux"><?php echo esc_html( $this->info->labels->img_model_4 )?></div>
<?php } ?>
<?php if( @$this->info->labels->img_model_1_on ){ ?>
<div class="aiassist-option <?php echo ! @$this->info->subscribe->expire ? 'aiassist-lock' : ''?>" data-value="midjourney"><?php echo esc_html( $this->info->labels->img_model_1 )?></div>
<?php } ?>
<?php if( @$this->info->labels->img_model_2_on ){ ?>
<div class="aiassist-option <?php echo ! @$this->info->subscribe->expire ? 'aiassist-lock' : ''?>" data-value="dalle"><?php echo esc_html( $this->info->labels->img_model_2 )?></div>
<?php } ?>
<?php if( @$this->info->labels->img_model_3_on ){ ?>
<div class="aiassist-option <?php echo ! @$this->info->subscribe->expire ? 'aiassist-lock' : ''?>" data-value="gptImage"><?php echo esc_html( $this->info->labels->img_model_3 )?></div>
<?php } ?>
<?php if( @$this->info->labels->img_model_5_on ){ ?>
<div class="aiassist-option" data-value="gptMini"><?php echo esc_html( $this->info->labels->img_model_5 )?></div>
<?php } ?>
<?php if( @$this->info->labels->img_model_6_on ){ ?>
<div class="aiassist-option <?php echo ! @$this->info->subscribe->expire ? 'aiassist-lock' : ''?>" data-value="banana"><?php echo esc_html( $this->info->labels->img_model_6 )?></div>
<?php } ?>
<input type="hidden" name="aiassist-image-model" id="aiassist-change-image-model" value="<?php echo esc_attr( $model ) ?>" />
</div>
</div>
<a href="<?php echo get_locale() == 'ru_RU' ? 'https://aiwpwriter.com/prices/' : 'https://aiwpw.com/prices/ ' ?>" target="_blank" class="aiassist-small aiassist-after-change-image-model"><?php echo wp_kses_post( __('Prices', 'wp-ai-assistant') ) ?></a>
<div class="aiassist-step-desc"><?php echo wp_kses_post( __('For which headers to generate images:', 'wp-ai-assistant') ) ?></div>
<label>
<input type="checkbox" id="aiassist-images-generator-all-headers" /> <?php echo wp_kses_post( __('For all', 'wp-ai-assistant') ) ?>
</label>
<div class="aiassist-headers">
<?php
if( ! @$this->steps['header'] )
$this->steps['header'] = @$this->steps['aiassist-theme-standart'];
?>
<?php if( $this->steps['header'] ){ ?>
<div class="aiassist-header-item aiassist-main-header">
<div class="left"><?php echo wp_kses_post( __('Featured image', 'wp-ai-assistant') ) ?></div>
<label><input type="checkbox" value="<?php echo esc_attr( @$this->steps['header'] )?>" /><span><?php echo esc_html( @$this->steps['header'] )?></span></label>
<div class="aiassist-translate-promt-image">Prompt: <input id="aiassist-main" value="<?php echo esc_attr( @$this->steps['header'] )?>" data-en="<?php echo esc_attr( @$this->steps[ @$this->steps['header'] ] )?>" /> <div class="image-generate-item"><?php echo wp_kses_post( __('Generate', 'wp-ai-assistant') ) ?></div></div>
</div>
<?php } ?>
<?php if( @preg_match_all('/<h[2-6][^>]*>([^<]+)<\/h[2-6]>/is', @$this->steps['content'], $headers ) ){ ?>
<?php foreach( $headers[1] as $k => $header ){ ?>
<div class="aiassist-header-item">
<label><input type="checkbox" value="<?php echo esc_attr( $header )?>" /><span><?php echo esc_html( $header )?></span></label>
<div class="aiassist-translate-promt-image">Prompt: <input value="<?php echo esc_attr( @$this->steps['header'] .' '. $header )?>" data-en="<?php echo esc_attr( @$this->steps[ @$header ] )?>" /> <div class="image-generate-item"><?php echo wp_kses_post( __('Generate', 'wp-ai-assistant') ) ?></div></div>
</div>
<?php } ?>
<?php } ?>
</div>
<div class="next-step">
<button name="aiassist_generate_image" type="button" id="aiassist-images-generator-start"><?php echo wp_kses_post( __('Generate', 'wp-ai-assistant') ) ?></button>
</div>
</div>
<div class="next-step" id="step5">
<div><?php echo wp_kses_post( __('Spent on the article:', 'wp-ai-assistant') ) ?> <span id="aiassist-article-symbols"><?php echo esc_html( isset( $_COOKIE['spent'] ) ? (int) $_COOKIE['spent'] : 0 )?></span> <?php echo wp_kses_post( __('credits', 'wp-ai-assistant') ) ?></div>
<div><?php echo wp_kses_post( __('Spent on image generation:', 'wp-ai-assistant') ) ?> <span id="images-article-symbols"><?php echo esc_html( isset( $_COOKIE['imgSpent'] ) ? (int) $_COOKIE['imgSpent'] : 0 )?></span> <?php echo wp_kses_post( __('credits', 'wp-ai-assistant') ) ?></div>
<button type="button" id="aiassist-clear-content"><?php echo wp_kses_post( __('Clear', 'wp-ai-assistant') ) ?></button>
<button name="aiassist_save" type="button" id="aiassist-save-content"><?php echo wp_kses_post( __('Save', 'wp-ai-assistant') ) ?></button>
</div>
<div id="aiassist-regenerate-wrap">
<div id="aiassist-regenerate-close">✖</div>
<div class="aiassist-regenerate-info">
<?php echo wp_kses_post( __('<a href="https://aiwpw.com/docs/ai-assist/" target="_blank">How to use</a>', 'wp-ai-assistant') ) ?>
</div>
<button type="button" class="aiassist-set-default-promts-regenerate"><?php echo wp_kses_post( __('Restore default prompts', 'wp-ai-assistant') ) ?></button>
<?php if( @$this->info->promts->lang ){ $lang_id = $this->getDefaultLangId(); ?>
<select class="aiassist-lang-promts-regenerate">
<?php foreach( $this->info->promts->lang as $k => $lang ){ ?>
<?php
if( @$this->steps['promts']['regenerate_lang'] == $k )
$lang_id = (int) $k;
?>
<option value="<?php echo (int) $k ?>" <?php echo @$this->steps['promts']['regenerate_lang'] == $k ? 'selected' : '' ?> ><?php echo esc_html( $lang ) ?></option>
<?php } ?>
</select>
<?php } ?>
<div class="aiassist-promt-label"><?php echo wp_kses_post( __('Promt:', 'wp-ai-assistant') ) ?></div> <input id="aiassist-prom-regenerate" class="aiassist-prom" value="<?php echo esc_textarea( @$this->steps['promts']['regenerate'][ $lang_id ] ? trim( $this->steps['promts']['regenerate'][ $lang_id ] ) : @$this->info->promts->regenerate[ $lang_id ] )?>" />
<button type="button" id="aiassist-regenerate"><?php echo wp_kses_post( __('Generate', 'wp-ai-assistant') ) ?></button>
</div>
<div id="aiassist-generate-image">
<div id="aiassist-generate-image-close">✖</div>
<div class="aiassist-image-tiny">
<div class="aiassist-image-how-to-use"><?php echo wp_kses_post( __('<a href="https://aiwpw.com/docs/ai-image-creator/" target="_blank">How to use</a>', 'wp-ai-assistant') ) ?></div>
<div class="aiassist-image-tiny-wrap">
<div class="aiassist-select-wrap">
<?php
if( @$this->info->labels->img_model_6_on ){
$model = 'banana';
$label = $this->info->labels->img_model_6;
}
if( @$this->info->labels->img_model_5_on ){
$model = 'gptMini';
$label = $this->info->labels->img_model_5;
}
if( @$this->info->labels->img_model_3_on ){
$model = 'gptImage';
$label = $this->info->labels->img_model_3;
}
if( @$this->info->labels->img_model_2_on ){
$model = 'dalle';
$label = $this->info->labels->img_model_2;
}
if( @$this->info->labels->img_model_1_on ){
$model = 'midjourney';
$label = $this->info->labels->img_model_1;
}
if( @$this->info->labels->img_model_4_on ){
$model = 'flux';
$label = $this->info->labels->img_model_4;
}
?>
<div class="aiassist-select-lable"><?php echo esc_html( $label )?></div>
<div class="aiassist-select aiassist-image-model">
<?php if( @$this->info->labels->img_model_4_on ){ ?>
<div class="aiassist-option" data-value="flux"><?php echo esc_html( $this->info->labels->img_model_4 )?></div>
<?php } ?>
<?php if( @$this->info->labels->img_model_1_on ){ ?>
<div class="aiassist-option <?php echo ! @$this->info->subscribe->expire ? 'aiassist-lock' : ''?>" data-value="midjourney"><?php echo esc_html( $this->info->labels->img_model_1 )?></div>
<?php } ?>
<?php if( @$this->info->labels->img_model_2_on ){ ?>
<div class="aiassist-option <?php echo ! @$this->info->subscribe->expire ? 'aiassist-lock' : ''?>" data-value="dalle"><?php echo esc_html( $this->info->labels->img_model_2 )?></div>
<?php } ?>
<?php if( @$this->info->labels->img_model_3_on ){ ?>
<div class="aiassist-option <?php echo ! @$this->info->subscribe->expire ? 'aiassist-lock' : ''?>" data-value="gptImage"><?php echo esc_html( $this->info->labels->img_model_3 )?></div>
<?php } ?>
<?php if( @$this->info->labels->img_model_5_on ){ ?>
<div class="aiassist-option" data-value="gptMini"><?php echo esc_html( $this->info->labels->img_model_5 )?></div>
<?php } ?>
<?php if( @$this->info->labels->img_model_6_on ){ ?>
<div class="aiassist-option <?php echo ! @$this->info->subscribe->expire ? 'aiassist-lock' : ''?>" data-value="banana"><?php echo esc_html( $this->info->labels->img_model_6 )?></div>
<?php } ?>
<input type="hidden" name="aiassist-image-model" id="aiassist-tiny-image-model" value="<?php echo esc_attr( $model ) ?>" />
</div>
</div>
<input type="text" name="aiassist-image-promt" id="aiassist-tiny-image-promt" placeholder="Input promt" />
<button type="button" name="aiassist-generate" id="aiassist-tiny-image-generate">Generate</button>
<button type="button" name="aiassist-translate" id="aiassist-tiny-image-translate">Translate</button>
</div>
<a href="<?php echo get_locale() == 'ru_RU' ? 'https://aiwpwriter.com/prices/' : 'https://aiwpw.com/prices/ ' ?>" target="_blank" class="aiassist-small"><?php echo wp_kses_post( __('Prices', 'wp-ai-assistant') ) ?></a>
<div class="aiassist-image-tiny-item"></div>
<div class="aiassist-image-tiny-save-button-wrap">
<button type="button" name="aiassist-save" id="aiassist-tiny-image-save"><?php echo wp_kses_post( __('Save', 'wp-ai-assistant') ) ?></button>
</div>
</div>
</div>
</div>