uawdijnntqw1x1x1
IP : 3.133.111.16
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
.trash
/
quran
/
..
/
jannah
/
.
/
framework
/
plugins
/
class-tielabs-fbinstant-articles.php
/
/
<?php /** * Instant Articles for WP * */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly if( ! class_exists( 'TIELABS_FBINSTANT_ARTICLES' )){ class TIELABS_FBINSTANT_ARTICLES{ /** * __construct * * Class constructor where we will call our filter and action hooks. */ function __construct(){ // Disable if the Instant Articles for WP plugin is not active if( ! TIELABS_FB_INSTANT_IS_ACTIVE ){ return false; } // Filters add_filter( 'instant_articles_transformer_custom_rules_loaded', array( $this, '_transformer_custom_rules' )); add_filter( 'instant_articles_subtitle', array( $this, '_articles_subtitle' ), 10, 2); } /** * _transformer_custom_rules */ function _transformer_custom_rules( $transformer ){ $rules = array( 'rules' => array( array( 'class' => 'TextNodeRule' ), array( 'class' => 'PassThroughRule', 'selector' => "div[class^='tie-padding']", ), array( 'class' => 'PassThroughRule', 'selector' => "div[class^='checklist']", ), array( 'class' => 'PassThroughRule', 'selector' => "div[class^='tie-full-width-img']", ), array( 'class' => 'IgnoreRule', 'selector' => 'div.index-title', ), array( 'class' => 'IgnoreRule', 'selector' => "div[class^='stream-item-in-post']", ), ) ); $transformer->loadRules( json_encode( $rules ) ); return $transformer; } /** * _articles_subtitle * */ function _articles_subtitle( $sub_title = '', $the_post ){ if( empty( $the_post ) ){ return $sub_title; } return tie_get_postdata( 'tie_post_sub_title', $sub_title, $the_post->get_the_id() ); } } // Instantiate the class new TIELABS_FBINSTANT_ARTICLES(); }
/home/sudancam/.trash/quran/../jannah/./framework/plugins/class-tielabs-fbinstant-articles.php