Files
roi-theme/wp-content/plugins/thrive-ab-page-testing/includes/views/backbone/test/item/view-optins.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

69 lines
2.7 KiB
PHP
Executable File

<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ab-page-testing
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-row">
<div class="tvd-col tvd-s3 tab-headline">
<span class="tab-truncate">
<a class="thrive-ab-editor-link"><#= item.get('title') #></a>
<# if( table_model.get('status') === 'completed' && parseInt(item.get('is_winner')) === 1 ) { #>
&nbsp;<span class="tab-winner-label">(<?php echo __( 'winner', 'thrive-ab-page-testing' ); ?>)</span>
<# } #>
</span>
<span class="tab-edit-controls">
<a href="<#= item.get('preview_link') #>" target="_blank">
<?php echo tcb_icon( 'external-link', true, 'sidebar', 'thrive-ab-dashboard-icons' ); ?>
</a>
<# if ( table_model.get('status') !== 'completed' && item.get('editor_link')) { #>
<a href="<#= item.get('editor_link') #>" class="top-edit-icon tvd-tooltipped" data-tooltip="<?php echo __( 'Edit variation with Architect', 'thrive-ab-page-testing' ); ?>" data-position="top"></a>
<# } #>
</span>
</div>
<div class="tvd-col tvd-s2">
<# if( table_model.get('status') === 'completed') { #>
<#= parseInt(item.get('traffic')) #>%
<# }else{ #>
<div class="thrive-ab-test-item-traffic tvd-row">
<div class="tvd-col tvd-s8 thrive-ab-variation-traffic-slider">
<input type="range" class="input change" min="0" max="100" data-fn="on_change" data-fn-input="on_input" value="<#= parseInt(item.get('traffic')) #>">
</div>
<div class="tvd-col tvd-s4 thrive-ab-variation-traffic-input">
<input class="thrive-ab-card-traffic-input input change" data-fn="on_change" data-fn-input="on_input" type="number" min="0" max="100"
value="<#= parseInt(item.get('traffic')) #>">
</div>
</div>
<# } #>
</div>
<div class="tvd-col tvd-s1">
<#= item.get('impressions') #>
</div>
<div class="tvd-col tvd-s1">
<#= item.get('unique_impressions') #>
</div>
<div class="tvd-col tvd-s1">
<#= item.get('conversions') #>
</div>
<div class="tvd-col tvd-s1">
<#= item.get('conversion_rate') #>%
</div>
<div class="tvd-col tvd-s1 <#= item.get('improvement') >= 0 ? 'thrive-ab-positive' : 'thrive-ab-negative' #>">
<#= item.get('improvement') #>%
</div>
<div class="tvd-col tvd-s1 <#= item.get('chance_to_beat_orig') >= 0 ? 'thrive-ab-positive' : 'thrive-ab-negative' #>">
<#= item.get('chance_to_beat_orig') #>%
<# if( table_model.get('status') === 'running' ) { #>
<a class="tvd-tooltipped tvd-right tvd-line-height click" data-fn="stop_variation" href="javascript:void(0);"
data-tooltip="<?php echo __( 'Stop this variation', 'thrive-ab-page-testing' ); ?>" data-position="top">
<i class="tvd-icon-stop tvd-text-red" style="font-size: 16px;"></i>
</a>
<# } #>
</div>
</div>