public static function switcher_callback($post) { // Tilda_Admin::log(__CLASS__."::".__FUNCTION__, __FILE__, __LINE__); $data = get_post_meta($post->ID, '_tilda', true); if (!Tilda::verify_access()) { Tilda::$errors->add('empty_keys', __('The security keys is not set', 'tilda')); } self::view('switcher_status', array('data' => $data)); }
</small> <?php } else { ?> <input type="submit" id="tilda_toggle" class="button <?php echo esc_attr($toggle_class); ?> " value="<?php echo __("Activate Tilda for this page?", 'tilda'); ?> "> <?php if (!Tilda::verify_access()) { ?> <a href="options-general.php?page=tilda-config"> <?php echo __("Tilda accounts assign", 'tilda'); ?> </a> <?php } ?> <?php } ?> </p> </div>