public function description($post_ID = false) { if ($post_ID) { if (!empty($this->opts['twitterCardDesc'])) { $desc = get_post_meta($post_ID, $this->opts['twitterCardDesc'], true); $cardDescription = !empty($desc) ? htmlspecialchars(stripcslashes($desc)) : JM_TC_Utilities::get_excerpt_by_id($post_ID); } elseif (empty($this->opts['twitterCardDesc']) && (class_exists('WPSEO_Frontend') || class_exists('All_in_One_SEO_Pack'))) { $cardDescription = self::get_seo_plugin_datas($post_ID, 'desc'); } else { $cardDescription = JM_TC_Utilities::get_excerpt_by_id($post_ID); } } else { $cardDescription = $this->opts['twitterPostPageDesc']; } $cardDescription = JM_TC_Utilities::remove_lb($cardDescription); return array('description' => apply_filters('jm_tc_get_excerpt', $cardDescription)); }
<?php if (!defined('JM_TC_VERSION')) { header('Status: 403 Forbidden'); header('HTTP/1.1 403 Forbidden'); exit; } ?> <div class="wrap"> <h2>JM Twitter Cards : <?php echo esc_html(get_admin_page_title()); ?> </h2> <?php echo JM_TC_Tabs::admin_tabs(); ?> <?php $data = array(__('Start', JM_TC_TEXTDOMAIN) => '8l4k3zrD4Z0', __('Troubleshooting', JM_TC_TEXTDOMAIN) => 'sNihgEu65L0', __('Multi-author', JM_TC_TEXTDOMAIN) => 'LpQuIzaHqtk', __('Preview', JM_TC_TEXTDOMAIN) => 'WniGVE09-IQ'); $tutorials = JM_TC_Utilities::display_footage($data); echo $tutorials; ?> </div>