protected function beforeGetContent() { parent::beforeGetContent(); $modify = $this->html->find(".art_content img", 0); if ($modify) { $src = $this->getFirstImage(); if (strpos($src, 'http') === false) { $modify->src = 'http://bongdaso.com' . $src; } } }
protected function beforeGetContent() { parent::beforeGetContent(); //$modify = $this->html->find("#main-content .post-inner .entry img",0); foreach ($this->html->find("#main-content .post-inner .entry img") as $e) { $src = 'data-src'; $e->src = $e->{$src}; } foreach ($this->html->find("#main-content .post-inner .entry .wp-caption") as $e) { $e->style = ''; } /* if($modify){ $src = $this->getFirstImage(); if(strpos($src, 'http')===false){ $modify->src = 'http://www.bongda.com.vn/'.$src; } } */ }
protected function beforeGetContent() { parent::beforeGetContent(); //$this->html->find(".art_content img",0)->src = 'http://bongdaso.com'.$this->getImageThumb(); }