HEX
Server: LiteSpeed
System: Linux onyx.7ho.st 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: atiscoir (1242)
PHP: 8.1.34
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/atiscoir/public_html/wp-content/themes/servin/inc/elements/single/start-loop.php
<?php
namespace Elementor;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class TMT_Start_Loop extends Widget_Base {

    public function get_name() {
        return 'tmt-start-loop';
    }

    public function get_title() {
        return __( 'Start Loop', text_domain );
    }

    public function get_icon() {
        return 'eicon-editor-code';
    }

    public function get_categories() {
        return [ 'single_servin' ];
    }

    public function get_keywords() {
        return [ 'start', 'loop' ];
    }

    protected function register_controls() {}

    protected function render() {
        $editor = Plugin::$instance->editor->is_edit_mode();
        if($editor) {
            echo '<div class="text-center" style="color: white;background-color: darkgray;padding: 10px 0;border-radius: 4px;">' . __('Start Loop', text_domain) . ' ' . __('(Do not delete this element)', text_domain) . '</div>';
        } else {
            if ( have_posts() ) {
                the_post();
            }
        }
    }
}

Plugin::instance()->widgets_manager->register( new TMT_Start_Loop );