getFeedData(); $hiddenPosts = $feedData['style']['settings']['hidden_posts']; $downloadAvailableTimestamp = $pluginManagerInstance->getDownloadAvailableTimestamp(); if (isset($_GET['toggle-hide'])) { check_admin_referer('ti-toggle-hide'); $id = sanitize_text_field(wp_unslash($_GET['toggle-hide'])); $key = array_search($id, $hiddenPosts); if (false !== $key) { unset($hiddenPosts[$key]); } else { $hiddenPosts[] = $id; } $feedData['style']['settings']['hidden_posts'] = $hiddenPosts; $pluginManagerInstance->saveFeedData($feedData, false); if (isset($_GET['page']) && isset($_GET['tab'])) { header('Location: admin.php?page=' . sanitize_text_field(wp_unslash($_GET['page'])) . '&tab=' . sanitize_text_field(wp_unslash($_GET['tab']))); } exit; } elseif (isset($_GET['download'])) { if ('posts' === $_GET['download']) { check_admin_referer('ti-download-posts'); $pluginManagerInstance->checkFeedDownload(); header('Location: admin.php?page=' . sanitize_text_field(wp_unslash($_GET['page'])) . '&tab=' . sanitize_text_field(wp_unslash($_GET['tab']))); } } wp_enqueue_script($pluginManagerInstance->getLoaderScriptKey(), 'https://cdn.trustindex.io/loader-feed.js', [], $pluginManagerInstance->getVersion(), ['in_footer' => true]); $posts = $feedData['posts']; $pluginManagerInstance->setNotificationParam('post-download-finished', 'active', false); $pluginManagerInstance->setNotificationParam('post-download-finished', 'do-check', true); ?>
| displayImg($imgUrl, array('class' => 'ti-post-preview'))); ?> [] | 120) { $text = substr($text,0,120) . '...'; } } ?> |