WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcanorthshore/public_html/wp-content/plugins/unbounce/UBPageTable.php
<?php

class UBPageTable extends UBWPListTable
{

    private $item_scroll_threshold = 10;

    public function __construct($page_urls)
    {
        parent::__construct();

        $this->items = array_map(function ($url) {
            return array('url' => $url);
        }, $page_urls);

        $this->_column_headers = array(array('url' => 'Url'), array(), array());
    }

    protected function column_default($item, $column_name)
    {
        switch ($column_name) {
            case 'url':
                return "<a href=\"//${item[$column_name]}\" target=\"_blank\">${item[$column_name]}</a>";
            break;
            default:
                return $item[$column_name];
        }
    }

    protected function display_tablenav($which)
    {
    }

    protected function get_table_classes()
    {
        $super = parent::get_table_classes();

        if (count($this->items) > $this->item_scroll_threshold) {
            $super[] = 'ub-table-scroll';
        }

        return $super;
    }

    public function no_items()
    {
        _e('None of your Unbounce pages have been published to WordPress.');
    }
}