guys I am doing some stuff which is related to rssfeed. I built a page for rss feed all the things are going well but when I try to test the feed or use the feed I can't, Here is my code. Actually I am building rss feed for my blogger so I want to be it like that, any ways just tell me where am I wrong
<?php
require_once('simple_html_dom.php');
$html = new simple_html_dom();
$xml=simplexml_load_file("ad.xml");
header('Content-Type: application/atom+xml');
$b="<?xml version='1.0' encoding='UTF-8'?>
<feed>";
echo $b;
foreach($xml->url as $s){
$s=$s->loc;
$html = file_get_html($s);
$element= $html->find('div[class=post-content clear-block]');
// Find all links
$vez=$html->find('div[class=post-date]');
$p = '|<a [^>]*href="http://onlinegamesocean.com[^"]*"[^>]*>.*</a>|iU';
$h = $html->find('h1[class=title]');
if(empty($vez)){
foreach($h as $ha){
echo "<entry><title type='text'>".htmlentities($ha->plaintext)."</title>";
}
foreach($element as $a) {
if ($a === end($element))
echo "<content type='html'>".htmlentities(preg_replace($p, '', $a))."</content></entry>";
}
}
}
echo "</feed>";
?>
Output:
<?xml version='1.0' encoding='UTF-8'?>
<feed><entry><title type='text'>Offworld Trading Company Free Download</title><content type='html'><div class="post-content clear-block"> <p style="text-align: center;"></p> <h5>ABOUT THE GAME</h5> <p>Mars has been colonized and has invited you to lend a hand to make sure the new colony has a shot at success. But you’re not the only one that’s been invited, other business rivals are here as well and they have no qualms about playing dirty to gain the choicest territories on the Martian surface and driving their competitors out of business.</p> <p>Title: Offworld Trading Company<br /> Genre: Indie, Simulation, Strategy<br /> Developer: Mohawk Games<br /> Publisher: Stardock Entertainment<br /> Release Date: 28 Apr, 2016</p> <p><img class="lazy lazy-hidden" src="data:image/gif;base64,R0lGODdhAQABAPAAAP///wAAACwAAAAAAQABAEACAkQBADs=" data-cke-saved-src="data:image/gif;base64,R0lGODdhAQABAPAAAP///wAAACwAAAAAAQABAEACAkQBADs=" data-lazy-type="image" data-lazy-src="http://i57.tinypic.com/5oi24i.jpg" /><strong>Offworld.Trading.Company.DLC-BAT </strong>{ <a href="http://www13.zippyshare.com/v/5n5nCVek/file.html" target="_blank" data-cke-saved-href="http://www13.zippyshare.com/v/5n5nCVek/file.html">Download </a>| <a href="https://www.sendspace.com/file/5jvzun" target="_blank" data-cke-saved-href="https://www.sendspace.com/file/5jvzun">Download </a>| <a href="https://openload.co/f/tiwRzi0Uf9c/b-oftrcodlc.rar" target="_blank" data-cke-saved-href="https://openload.co/f/tiwRzi0Uf9c/b-oftrcodlc.rar">Download </a>| <a href="http://hugefiles.net/4ku46juf0xty" target="_blank" data-cke-saved-href="http://hugefiles.net/4ku46juf0xty">Download </a>| <a href="https://1fichier.com/?duu3oi6j1g" target="_blank" data-cke-saved-href="https://1fichier.com/?duu3oi6j1g">Download </a>| <a href="https://userscloud.com/9aowye1vsf04" target="_blank" data-cke-saved-href="https://userscloud.com/9aowye1vsf04">Download </a>| <a href="http://up07.net/4yz42d55gvi4" target="_blank" data-cke-saved-href="http://up07.net/4yz42d55gvi4">Download </a>| <a href="http://jheberg.net/captcha/b-oftrcodlc/" target="_blank" data-cke-saved-href="http://jheberg.net/captcha/b-oftrcodlc/">Download </a>| <a href="http://www.multiup.org/download/329c0ab802c97f5a48a728ea27000235/b-oftrcodlc.rar" target="_blank" data-cke-saved-href="http://www.multiup.org/download/329c0ab802c97f5a48a728ea27000235/b-oftrcodlc.rar">Download </a>}</p> <p>DLC’s:<br /> • Offworld Trading Company – Real Mars Map Pack DLC<br /> • Offworld Trading Company – Almanac DLC</p> <p>Note:<br /> • Game prompts an early access notice on first run, but it is out of EA state as also evident on the version number v1.0.12745<br /> • Also the DLC’s only became available after EA state changed</p> <p>Offworld Trading Company Free Download<br /> Size: 656 MB<br /> ——————————-</p> <p><strong>ONE FTP LINK</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"></div> </div> <p><strong>DIRECT LINK</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://kumpulbagi.id/anas45/anas45-363423/hi-oftrco,2697520.iso" target="_blank" data-cke-saved-href="http://kumpulbagi.id/anas45/anas45-363423/hi-oftrco,2697520.iso">Offworld.Trading.Company-HI2U.iso</a></div> </div> <p><strong>OPENLOAD</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="https://openload.co/f/1b-KUEcxT8g/hi-oftrco.iso" target="_blank" data-cke-saved-href="https://openload.co/f/1b-KUEcxT8g/hi-oftrco.iso">Offworld.Trading.Company-HI2U.iso</a></div> </div> <p><strong>UP07</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://up07.net/uyr0e7zq4mxt" target="_blank" data-cke-saved-href="http://up07.net/uyr0e7zq4mxt">Offworld.Trading.Company-HI2U.iso</a></div> </div> <p><strong>1FICHIER</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="https://1fichier.com/?c8p9sz5gci" target="_blank" data-cke-saved-href="https://1fichier.com/?c8p9sz5gci">Offworld.Trading.Company-HI2U.iso</a></div> </div> <p><strong>UPTOBOX</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://uptobox.com/5ovs6xtrdamz" target="_blank" data-cke-saved-href="http://uptobox.com/5ovs6xtrdamz">Offworld.Trading.Company-HI2U.iso</a></div> </div> <p><strong>HUGEFILES</strong></p> <!-- Quick Adsense WordPress Plugin: http://quicksense.net/ --> <div style="float:none;margin:10px 0 10px 0;text-align:center;"> <center><script language='Javascript'> <!-- document.write(unescape('%3C%64%69%76%20%73%74%79%6C%65%3D%22%68%65%69%67%68%74%3A%32%38%32%70%78%3B%77%69%64%74%68%3A%33%33%36%70%78%3B%6F%76%65%72%66%6C%6F%77%3A%68%69%64%64%65%6E%3B%62%61%63%6B%67%72%6F%75%6E%64%3A%23%63%63%63%3B%22%20%69%64%3D%22%61%64%64%69%76%22%3E%0A%3C%69%66%72%61%6D%65%20%73%74%79%6C%65%3D%22%68%65%69%67%68%74%3A%37%35%30%70%78%3B%77%69%64%74%68%3A%33%33%36%70%78%22%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%6F%63%63%65%61%6E%67%61%6D%65%73%72%65%76%69%65%77%73%2E%62%6C%6F%67%73%70%6F%74%2E%63%6F%6D%2F%70%2F%32%35%30%2E%68%74%6D%6C%3F%69%64%3D%78%32%6B%67%30%33%6A%22%20%73%63%72%6F%6C%6C%69%6E%67%3D%22%6E%6F%22%20%69%64%3D%22%61%64%66%72%61%6D%65%22%3E%3C%2F%69%66%72%61%6D%65%3E%3C%2F%64%69%76%3E%0A%3C%21%2D%2D%61%64%64%20%6A%71%75%65%72%79%20%69%66%20%6E%6F%74%20%61%64%64%65%64%2D%2D%3E%0A%3C%73%63%72%69%70%74%20%73%72%63%3D%22%68%74%74%70%73%3A%2F%2F%61%6A%61%78%2E%67%6F%6F%67%6C%65%61%70%69%73%2E%63%6F%6D%2F%61%6A%61%78%2F%6C%69%62%73%2F%6A%71%75%65%72%79%2F%31%2E%31%31%2E%33%2F%6A%71%75%65%72%79%2E%6D%69%6E%2E%6A%73%22%3E%3C%2F%73%63%72%69%70%74%3E%0A%3C%21%2D%2D%61%64%64%20%6A%71%75%65%72%79%20%69%66%20%6E%6F%74%20%61%64%64%65%64%2F%2D%2D%3E%0A%3C%73%63%72%69%70%74%3E%6A%51%75%65%72%79%28%77%69%6E%64%6F%77%29%2E%6C%6F%61%64%28%20%66%75%6E%63%74%69%6F%6E%28%29%20%7B%0A%6A%51%75%65%72%79%28%22%23%61%64%66%72%61%6D%65%22%29%2E%6C%6F%61%64%28%20%66%75%6E%63%74%69%6F%6E%28%29%20%7B%6A%51%75%65%72%79%28%27%23%61%64%66%72%61%6D%65%27%29%2E%63%73%73%28%27%68%65%69%67%68%74%27%2C%27%39%30%27%29%0A%73%65%74%54%69%6D%65%6F%75%74%28%20%66%75%6E%63%74%69%6F%6E%28%29%7B%20%6A%51%75%65%72%79%28%27%23%61%64%64%69%76%27%29%2E%63%73%73%28%27%62%61%63%6B%67%72%6F%75%6E%64%27%2C%27%74%72%61%6E%73%70%61%72%65%6E%74%27%29%7D%2C%20%31%30%30%30%20%29%3B%7D%29%3B%0A%24%28%27%23%61%64%66%72%61%6D%65%27%29%2E%6C%6F%61%64%28%20%66%75%6E%63%74%69%6F%6E%28%29%20%7B%24%28%27%23%61%64%66%72%61%6D%65%27%29%2E%63%6F%6E%74%65%6E%74%73%28%29%2E%66%69%6E%64%28%22%62%6F%64%79%22%29%2E%61%64%64%43%6C%61%73%73%28%27%69%66%72%61%6D%65%64%27%29%3B%7D%29%3B%0A%7D%29%3B%3C%2F%73%63%72%69%70%74%3E')); //--> </script></center> </div> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://hugefiles.net/q0iqt3v4cy21" target="_blank" data-cke-saved-href="http://hugefiles.net/q0iqt3v4cy21">Offworld.Trading.Company-HI2U.iso</a></div> </div> <p><strong>MEDIAFREE</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://mediafree.co/l2y54l6fqew1/hi-oftrco.iso.html" target="_blank" data-cke-saved-href="http://mediafree.co/l2y54l6fqew1/hi-oftrco.iso.html">Offworld.Trading.Company-HI2U.iso</a></div> </div> <p><strong>USERSCLOUD</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="https://userscloud.com/krigot141ekc" target="_blank" data-cke-saved-href="https://userscloud.com/krigot141ekc">Offworld.Trading.Company-HI2U.iso</a></div> </div> <p><strong>JHEBERG</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://jheberg.net/captcha/hi-oftrco/" target="_blank" data-cke-saved-href="http://jheberg.net/captcha/hi-oftrco/">Offworld.Trading.Company-HI2U.iso</a></div> </div> <p><strong>GO4UP</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://go4up.com/dl/9bffa4cfb5f8/hi-oftrco.iso" target="_blank" data-cke-saved-href="http://go4up.com/dl/9bffa4cfb5f8/hi-oftrco.iso">Offworld.Trading.Company-HI2U.iso</a></div> </div> <p><strong>MULTI LINKS</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://www.multiup.org/download/8a76e30e7547e475ff0709052b81235a/hi-oftrco.iso" target="_blank" data-cke-saved-href="http://www.multiup.org/download/8a76e30e7547e475ff0709052b81235a/hi-oftrco.iso">Offworld.Trading.Company-HI2U.iso</a></div> </div> <p><strong>TORRENT</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"></div> </div> <div> <blockquote><p>Enjoy</p></blockquote> </div> <div id="tabs-21031-0-1"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"><strong>MINIMUM:</strong></p> <ul> <li> <ul class="bb_ul"> <li><strong>OS:</strong> Windows 10 / 8.1 / 7 64-bit</li> <li><strong>Processor:</strong> 1.8 GHz Intel Core 2 Duo / 2.0 GHz AMD Athlon X2 64</li> <li><strong>Memory:</strong> 2 GB RAM</li> <li><strong>Graphics:</strong> Nvidia GeForce 8800 GT / ATI Radeon HD 3870 / Intel HD Graphics 4600</li> <li><strong>DirectX:</strong> Version 11</li> <li><strong>Network:</strong> Broadband Internet connection</li> <li><strong>Storage:</strong> 2 GB available space</li> <li><strong>Sound Card:</strong></li> </ul> </li> </ul> </div> <div class="game_area_sys_req_rightCol"><strong>RECOMMENDED:</strong></p> <ul> <li> <ul class="bb_ul"> <li><strong>Processor:</strong> 3 GHz Intel Quad-Core Processor / 3.2 GHz AMD Six-Core Processor</li> <li><strong>Memory:</strong> 4 GB RAM</li> <li><strong>Graphics:</strong> Nvidia GeForce GTX 460 / AMD Radeon HD 7850</li> <li><strong>DirectX:</strong> Version 11</li> <li><strong>Network:</strong> Broadband Internet connection</li> <li><strong>Storage:</strong> 2 GB available space</li> <li><strong>Sound Card:</strong></li> </ul> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div id="tabs-21031-0-3"><center><br /> <iframe src="https://www.youtube.com/embed/wHWb_IsM1HU" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></center></div> <div id="tabs-21031-0-4"> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><strong>Offworld Trading Company Free Download</strong><br /> – Extract<br /> – Burn or mount the .iso<br /> – Run setup.exe and install<br /> – Copy Crack<br /> – Play</div> </div> </div> <div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div> <div class="wp_rp_wrap wp_rp_vertical_m" id="wp_rp_first"><div class="wp_rp_content"><h3 class="related_post_title">You May Also Like:</h3><ul class="related_post wp_rp"><li data-position="0" data-poid="in-22373" data-post-type="none" ></li><li data-position="1" data-poid="in-22225" data-post-type="none" ></li><li data-position="2" data-poid="in-23294" data-post-type="none" ></li><li data-position="3" data-poid="in-21988" data-post-type="none" ></li><li data-position="4" data-poid="in-22659" data-post-type="none" ></li><li data-position="5" data-poid="in-22357" data-post-type="none" ></li></ul></div></div> </div></content></entry><entry><title type='text'>Left Alone Free Download</title><content type='html'><div class="post-content clear-block"> <p style="text-align: center;"></p> <h5>ABOUT THE GAME</h5> <p>Left alone is a psychological horror game set in multiple believable interior and exterior environments. The game has a unique, high octane atmosphere which means you’ll feel like you’re truly beginning an adventure you’ll never quite forget.</p> <p>Title: Left Alone<br /> Genre: Action, Adventure, Indie<br /> Developer: Volumetric Games<br /> Publisher: Volumetric Games<br /> Release Date: 28 Apr, 2016</p> <p>Left Alone Free Download<br /> Size: 680 MB<br /> ——————————-</p> <p><strong>ONE FTP LINK</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"></div> </div> <p><strong>DIRECT LINK</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://kumpulbagi.id/anas45/anas45-363423/plaza-left-alone,2696467.iso" target="_blank" data-cke-saved-href="http://kumpulbagi.id/anas45/anas45-363423/plaza-left-alone,2696467.iso">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>OPENLOAD</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="https://openload.co/f/ZYE1o2I-3Vc/plaza-left.alone.iso" target="_blank" data-cke-saved-href="https://openload.co/f/ZYE1o2I-3Vc/plaza-left.alone.iso">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>UP07</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://up07.net/5xicihuwfppk" target="_blank" data-cke-saved-href="http://up07.net/5xicihuwfppk">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>1FICHIER</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="https://1fichier.com/?9sy0zkmtaf" target="_blank" data-cke-saved-href="https://1fichier.com/?9sy0zkmtaf">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>UPTOBOX</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://uptobox.com/cn3svruftm6y" target="_blank" data-cke-saved-href="http://uptobox.com/cn3svruftm6y">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>DOWNACE</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="https://downace.com/1jjM" target="_blank" data-cke-saved-href="https://downace.com/1jjM">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>HUGEFILES</strong></p> <!-- Quick Adsense WordPress Plugin: http://quicksense.net/ --> <div style="float:none;margin:10px 0 10px 0;text-align:center;"> <center><script language='Javascript'> <!-- document.write(unescape('%3C%64%69%76%20%73%74%79%6C%65%3D%22%68%65%69%67%68%74%3A%32%38%32%70%78%3B%77%69%64%74%68%3A%33%33%36%70%78%3B%6F%76%65%72%66%6C%6F%77%3A%68%69%64%64%65%6E%3B%62%61%63%6B%67%72%6F%75%6E%64%3A%23%63%63%63%3B%22%20%69%64%3D%22%61%64%64%69%76%22%3E%0A%3C%69%66%72%61%6D%65%20%73%74%79%6C%65%3D%22%68%65%69%67%68%74%3A%37%35%30%70%78%3B%77%69%64%74%68%3A%33%33%36%70%78%22%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%6F%63%63%65%61%6E%67%61%6D%65%73%72%65%76%69%65%77%73%2E%62%6C%6F%67%73%70%6F%74%2E%63%6F%6D%2F%70%2F%32%35%30%2E%68%74%6D%6C%3F%69%64%3D%78%32%6B%67%30%33%6A%22%20%73%63%72%6F%6C%6C%69%6E%67%3D%22%6E%6F%22%20%69%64%3D%22%61%64%66%72%61%6D%65%22%3E%3C%2F%69%66%72%61%6D%65%3E%3C%2F%64%69%76%3E%0A%3C%21%2D%2D%61%64%64%20%6A%71%75%65%72%79%20%69%66%20%6E%6F%74%20%61%64%64%65%64%2D%2D%3E%0A%3C%73%63%72%69%70%74%20%73%72%63%3D%22%68%74%74%70%73%3A%2F%2F%61%6A%61%78%2E%67%6F%6F%67%6C%65%61%70%69%73%2E%63%6F%6D%2F%61%6A%61%78%2F%6C%69%62%73%2F%6A%71%75%65%72%79%2F%31%2E%31%31%2E%33%2F%6A%71%75%65%72%79%2E%6D%69%6E%2E%6A%73%22%3E%3C%2F%73%63%72%69%70%74%3E%0A%3C%21%2D%2D%61%64%64%20%6A%71%75%65%72%79%20%69%66%20%6E%6F%74%20%61%64%64%65%64%2F%2D%2D%3E%0A%3C%73%63%72%69%70%74%3E%6A%51%75%65%72%79%28%77%69%6E%64%6F%77%29%2E%6C%6F%61%64%28%20%66%75%6E%63%74%69%6F%6E%28%29%20%7B%0A%6A%51%75%65%72%79%28%22%23%61%64%66%72%61%6D%65%22%29%2E%6C%6F%61%64%28%20%66%75%6E%63%74%69%6F%6E%28%29%20%7B%6A%51%75%65%72%79%28%27%23%61%64%66%72%61%6D%65%27%29%2E%63%73%73%28%27%68%65%69%67%68%74%27%2C%27%39%30%27%29%0A%73%65%74%54%69%6D%65%6F%75%74%28%20%66%75%6E%63%74%69%6F%6E%28%29%7B%20%6A%51%75%65%72%79%28%27%23%61%64%64%69%76%27%29%2E%63%73%73%28%27%62%61%63%6B%67%72%6F%75%6E%64%27%2C%27%74%72%61%6E%73%70%61%72%65%6E%74%27%29%7D%2C%20%31%30%30%30%20%29%3B%7D%29%3B%0A%24%28%27%23%61%64%66%72%61%6D%65%27%29%2E%6C%6F%61%64%28%20%66%75%6E%63%74%69%6F%6E%28%29%20%7B%24%28%27%23%61%64%66%72%61%6D%65%27%29%2E%63%6F%6E%74%65%6E%74%73%28%29%2E%66%69%6E%64%28%22%62%6F%64%79%22%29%2E%61%64%64%43%6C%61%73%73%28%27%69%66%72%61%6D%65%64%27%29%3B%7D%29%3B%0A%7D%29%3B%3C%2F%73%63%72%69%70%74%3E')); //--> </script></center> </div> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://hugefiles.net/eotqcncouwxj" target="_blank" data-cke-saved-href="http://hugefiles.net/eotqcncouwxj">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>MEDIAFREE</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://mediafree.co/7fwl6l1mrhpy/plaza-left.alone.iso.html" target="_blank" data-cke-saved-href="http://mediafree.co/7fwl6l1mrhpy/plaza-left.alone.iso.html">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>USERSCLOUD</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="https://userscloud.com/gk64s7p2nxu9" target="_blank" data-cke-saved-href="https://userscloud.com/gk64s7p2nxu9">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>JHEBERG</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://jheberg.net/captcha/plaza-leftalone/" target="_blank" data-cke-saved-href="http://jheberg.net/captcha/plaza-leftalone/">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>GO4UP</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://go4up.com/dl/12a9e74f7690/plaza-left.alone1.iso" target="_blank" data-cke-saved-href="http://go4up.com/dl/12a9e74f7690/plaza-left.alone1.iso">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>MULTI LINKS</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><a href="http://www.multiup.org/download/e3e833e74d99bb97f9047796ad546da3/plaza-left.alone.iso" target="_blank" data-cke-saved-href="http://www.multiup.org/download/e3e833e74d99bb97f9047796ad546da3/plaza-left.alone.iso">Left.Alone-PLAZA.iso</a></div> </div> <p><strong>TORRENT</strong></p> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"></div> </div> <div> <blockquote><p>Enjoy</p></blockquote> </div> <div id="tabs-21024-0-1"> <div class="game_area_sys_req_leftCol"> <div class="game_area_sys_req_leftCol"> <p><strong>MINIMUM:</strong></p> <ul> <li> <ul class="bb_ul"> <li><strong>OS:</strong> Windows 7 64-bit</li> <li><strong>Processor:</strong> Quad-core CPU ~ 2.5Ghz</li> <li><strong>Memory:</strong> 2 GB RAM</li> <li><strong>Graphics:</strong> GTX 560m / HD6870 1GB or equivalent</li> <li><strong>DirectX:</strong> Version 10</li> <li><strong>Storage:</strong> 1 GB available space</li> </ul> </li> </ul> </div> </div> </div> <div id="tabs-21024-0-3"><center><br /> <iframe src="https://www.youtube.com/embed/EPe5_1wp44Y" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></center></div> <div id="tabs-21024-0-4"> <div class="codecolorer-container text twitlight"> <div class="text codecolorer"><strong>Left Alone Free Download</strong><br /> 1. Extract release<br /> 2. Mount ISO<br /> 3. Install the game<br /> 4. Copy crack from the PLAZA folder<br /> 5. Play!</div> </div> </div> <div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div> <div class="wp_rp_wrap wp_rp_vertical_m" id="wp_rp_first"><div class="wp_rp_content"><h3 class="related_post_title">You May Also Like:</h3><ul class="related_post wp_rp"><li data-position="0" data-poid="in-22746" data-post-type="none" ></li><li data-position="1" data-poid="in-22789" data-post-type="none" ></li><li data-position="2" data-poid="in-22385" data-post-type="none" ></li><li data-position="3" data-poid="in-1216" data-post-type="none" ></li><li data-position="4" data-poid="in-23032" data-post-type="none" ></li><li data-position="5" data-poid="in-23056" data-post-type="none" ></li></ul></div></div> </div></content></entry></feed>
I get the error, When I use to get data from it using xmls function in php. I get correct result and when I try my blogger rss feed or some other website's feeds I get correct results,So my codes which use to get data from xml is correct but the above code may be wrong or I am doing some thing else.
Your approach will be highly appreciable for me. Please help me
instead of htmlentities() function you can use the format of rss 2.0, I call it second way. Any ways, You can use.
<![CDATA[".$VARIABLE."]]>
Hope it works for you.
Related
I'm trying to fetch local product description file,
In products page while cone clicks on Read more option for full product description, it shows error404 page not found.
The local product file path is resources/views/html/products/chili.blade.php, here product is chili.
<div class="col-md-4 services-grid">
<div class="history-grid-image">
<img src="images/Chilli Farm.jpg" class="img-responsive" alt="">
</div>
<div class="services-info">
<h4>Chili</h4>
<p>The Chili pepper is the fruit of plants from the genus capsicum which are members of nightshade family Solanaceae.
<!-- Chili is extremely popular in India as it brings heat to the food. -->
<!-- India having a rich history of spices and mostly chili finds a place in every dish of Indian food.<br> -->
<!-- Medicinal properties: Capsaicin is the chemical used in plain reliever ointment.
Capsaicin also used in pepper spray and tear gas as chemical irritants to control the crowd in an emergency situation. -->
<!-- Rich in : vitamin B6, vitamin A, iron, copper, potassium and a small amount of protein and carbohydrates.<br> -->
<!-- Helps in digestion, Weight loss, No Cholesterol Content. -->
<!-- Good for Diabetic people. -->
<!-- Fact : Chili was first introduced to India by the Portuguese towards the end of the century.</p> -->
<a class="more" href="{{ url('products-chili') }}"> Read More</a>
</div>
</div>
Here's product description file
#extends("layouts.html")
#section("title", "Chili|GreenGoodsExports")
#section("chili")
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!--banner-->
<div class="banner-1">
</div>
<!--//banner-->
<!--single-page-->
<div class="single">
<div class="container">
<h2 class="tittle-one">Chili</h2>
<div class="single-page-artical">
<div class="artical-content">
<h4>Chili</h4>
<img class="img-responsive" src="images/Chilli Farm.jpg" alt=" " style="visibility: visible; animation-delay: 0.5s; animation-name: zoomIn;">
<p>The Chili pepper is the fruit of plants from the genus capsicum which are members of nightshade family Solanaceae.
Chili is extremely popular in India as it brings heat to the food.
India having a rich history of spices and mostly chili finds a place in every dish of Indian food.<br>
Medicinal properties: Capsaicin is the chemical used in plain reliever ointment.
Capsaicin also used in pepper spray and tear gas as chemical irritants to control the crowd in an emergency situation.
Rich in : vitamin B6, vitamin A, iron, copper, potassium and a small amount of protein and carbohydrates.<br>
Helps in digestion, Weight loss, No Cholesterol Content.
Good for Diabetic people.
Fact : Chili was first introduced to India by the Portuguese towards the end of the century.</p>
</div>
<div class="artical-links">
<ul>
<li><i class="glyphicon glyphicon-calendar" aria-hidden="true"></i><span>March 10, 2016</span></li>
<li><i class="glyphicon glyphicon-user" aria-hidden="true"></i><span>admin</span></li>
<li><i class="glyphicon glyphicon-envelope" aria-hidden="true"></i><span>No comments</span></li>
<li><i class="glyphicon glyphicon-share" aria-hidden="true"></i><span>View posts</span></li>
</ul>
</div>
<div class="comment-grid-top">
<h3>Responses</h3>
<div class="comments-top-top">
<div class="top-comment-left">
<img class="img-responsive" src="images/co.png" alt="">
</div>
<div class="top-comment-right">
<ul>
<li><span class="left-at">Admin</span></li>
<li><span class="right-at">March 10, 2016 at 10.30am</span></li>
<li><a class="reply" href="#">Reply</a></li>
</ul>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.The point of using Lorem Ipsum is that it has a more-or-less </p>
</div>
<div class="clearfix"> </div>
</div>
<div class="comments-top-top top-grid-comment">
<div class="top-comment-left">
<img class="img-responsive" src="images/co.png" alt="">
</div>
<div class="top-comment-right">
<ul>
<li><span class="left-at">Admin</span></li>
<li><span class="right-at">March 18, 2016 at 10.30am</span></li>
<li><a class="reply" href="#">Reply</a></li>
</ul>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.The point of using Lorem Ipsum is that it has a more-or-less </p>
</div>
<div class="clearfix"> </div>
</div>
</div>
<div class="artical-commentbox">
<h3>leave a comment</h3>
<div class="table-form">
<form>
<input placeholder="Name" type="text" required="">
<input placeholder="Email" type="email" required="">
<input placeholder="Phone" type="text" required="">
<textarea placeholder="Message"></textarea>
<input type="submit" value="Send">
</form>
</div>
</div>
</div>
</div>
</div>
<!--single-page-->
</body>
</html>
#endsection
Here's web.php code
Route::get("/products/chili", "ProductsController#chili")->name('products-chili');
Here's ProductsController.php code
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ProductsController extends Controller
{
public function chili() {
return view("html.products1.chili");
}
Please help me out, thanks...
In you return view is it not suppose to be
return view("html.products.chili");
instead of
return view("html.products1.chili");
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ProductsController extends Controller
{
public function chili() {
return view("html.products.chili");
}
}
For the #extends('layouts.html') to be effective there must be a #yield('chili') in your html.blade.php which will yield the content of the 'chili' section from your chili.blade.php
NB: html.blade.php contains all the required CSS and JS files
see below:
For your html.blade.php
<!DOCTYPE html>
<html>
<head>
<!--include-all-your-head-contents-including-meta-tags-css-links-and-js-->
#yield('title')
</head>
<body>
#yield('chili')
<!--include-all-your-scripts-required-->
</body>
</html>
For your chili.blade.php
#extends('layouts.html')
#section("title", "Chili|GreenGoodsExports")
#section("chili")
<!--banner-->
<div class="banner-1">
</div>
<!--//banner-->
<!--single-page-->
<div class="single">
<div class="container">
<h2 class="tittle-one">Chili</h2>
<div class="single-page-artical">
<div class="artical-content">
<h4>Chili</h4>
<img class="img-responsive" src="images/Chilli Farm.jpg" alt=" " style="visibility: visible; animation-delay: 0.5s; animation-name: zoomIn;">
<p>The Chili pepper is the fruit of plants from the genus capsicum which are members of nightshade family Solanaceae.
Chili is extremely popular in India as it brings heat to the food.
India having a rich history of spices and mostly chili finds a place in every dish of Indian food.<br>
Medicinal properties: Capsaicin is the chemical used in plain reliever ointment.
Capsaicin also used in pepper spray and tear gas as chemical irritants to control the crowd in an emergency situation.
Rich in : vitamin B6, vitamin A, iron, copper, potassium and a small amount of protein and carbohydrates.<br>
Helps in digestion, Weight loss, No Cholesterol Content.
Good for Diabetic people.
Fact : Chili was first introduced to India by the Portuguese towards the end of the century.</p>
</div>
<div class="artical-links">
<ul>
<li><i class="glyphicon glyphicon-calendar" aria-hidden="true"></i><span>March 10, 2016</span></li>
<li><i class="glyphicon glyphicon-user" aria-hidden="true"></i><span>admin</span></li>
<li><i class="glyphicon glyphicon-envelope" aria-hidden="true"></i><span>No comments</span></li>
<li><i class="glyphicon glyphicon-share" aria-hidden="true"></i><span>View posts</span></li>
</ul>
</div>
<div class="comment-grid-top">
<h3>Responses</h3>
<div class="comments-top-top">
<div class="top-comment-left">
<img class="img-responsive" src="images/co.png" alt="">
</div>
<div class="top-comment-right">
<ul>
<li><span class="left-at">Admin</span></li>
<li><span class="right-at">March 10, 2016 at 10.30am</span></li>
<li><a class="reply" href="#">Reply</a></li>
</ul>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.The point of using Lorem Ipsum is that it has a more-or-less </p>
</div>
<div class="clearfix"> </div>
</div>
<div class="comments-top-top top-grid-comment">
<div class="top-comment-left">
<img class="img-responsive" src="images/co.png" alt="">
</div>
<div class="top-comment-right">
<ul>
<li><span class="left-at">Admin</span></li>
<li><span class="right-at">March 18, 2016 at 10.30am</span></li>
<li><a class="reply" href="#">Reply</a></li>
</ul>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.The point of using Lorem Ipsum is that it has a more-or-less </p>
</div>
<div class="clearfix"> </div>
</div>
</div>
<div class="artical-commentbox">
<h3>leave a comment</h3>
<div class="table-form">
<form>
<input placeholder="Name" type="text" required="">
<input placeholder="Email" type="email" required="">
<input placeholder="Phone" type="text" required="">
<textarea placeholder="Message"></textarea>
<input type="submit" value="Send">
</form>
</div>
</div>
</div>
</div>
</div>
<!--single-page-->
#endsection
You can see more here: https://laravel.com/docs/7.x/blade
I using php to display result to my page and I did a bit of styling using bootstrap
<div class="alert alert-success" role="alert">
<?php
if(isset($_POST['submit'])){ //check if form was submitted
include "assets/backend/newsletter.php";
}
?>
</div>
Even the php code is not executed I can see the blank panel.
How can I get rid of that?
[Image for reference.][1]I think on ur case this makes way much more sens then what are u doing up there:
<?php
if(isset($_POST['submit'])){ ?>
<div class="alert alert-success" role="alert">
<?php include "assets/backend/newsletter.php"; ?>
</div>
<?php}?>
This way if the form was submitted the panel will appear if not submitted the panel will not be visible.
footer.php
<div class="container">
<div class="row">
<?php
if(isset($_POST['submit'])){
echo '<div class="alert alert-success" role="alert"> ';
include 'assets/backend/newsletter.php';
echo '</div>';
}
?>
</div>
<div class="container-fluid" style="background-color:#222222">
<div class="row">
<div class="container" style="margin-top:15px;
margin-bottom:15px">
<div class="col-lg-4" style="color:#f3f6f9">
<img src="images/pc%20logo.png" width="80px" height="80px">
<h4 >
PLACEMENT
<cell style="font-weight:bold">CELL</cell>
</h4>
<p>Nehru Nagar, Ring Road <br>New Delhi <br>
Ph :(+91) 964 328 0581<br>
Email : placements.pgdav#gmail.com
</p>
<a href="https://www.facebook.com/pgdavplacements"> <img src="images/f.png" height="30px" width="30px" >
</a>
<img src="images/i.png" height="30px" width="30px">
<img src="images/linkedin.png" height="30px" width="30px">
</div>
<div class="col-lg-4" style="color:#f3f6f9;
padding-top:30px">
<h4>Subscribe to Our Newsletter</h4>
<form action=" " method="post">
<div class="form-group">
<input class="form-control" type="text"
id="inputemail" name="email_newsletter" placeholder="Your Email ID">
</div>
<input type="submit" name="submit" class="btn btn-default" value="subscribe">
</form>
</div>
<div class="col-lg-4" style="color:#f3f6f9;
padding-top:29px">
<h4>Links</h4>
<ol class="breadcrumb">
<li>Home</li>
<li>About Cell</li>
<li>Registration</li>
<li>Contact Us</li>
</ol>
</div>
</div>
<div class="container-fluid" style="background-color:#f3f6f9">
<div class="row">
<div class="container" style="padding-top:7px">
<div class="col-lg-6 col-sm-12 col-xs-12">© All the Rights Reserved with Placement Cell</div>
<div class="col-lg-6 col-sm-12 col-xs-12" style="text-align:right">Developed By Bhanu Singh</div>
</div>
</div>
</div>
</div>
</div></div>
or this:
<div class="container">
<div class="row">
<?php
if(isset($_POST['submit'])){ ?>
<div class="alert alert-success" role="alert">
<?php
include 'assets/backend/newsletter.php';
?>
</div>
<?php
}
?>
</div>
<div class="container-fluid" style="background-color:#222222">
<div class="row">
<div class="container" style="margin-top:15px;
margin-bottom:15px">
<div class="col-lg-4" style="color:#f3f6f9">
<img src="images/pc%20logo.png" width="80px" height="80px">
<h4 >
PLACEMENT
<cell style="font-weight:bold">CELL</cell>
</h4>
<p>Nehru Nagar, Ring Road <br>New Delhi <br>
Ph :(+91) 964 328 0581<br>
Email : placements.pgdav#gmail.com
</p>
<a href="https://www.facebook.com/pgdavplacements"> <img src="images/f.png" height="30px" width="30px" >
</a>
<img src="images/i.png" height="30px" width="30px">
<img src="images/linkedin.png" height="30px" width="30px">
</div>
<div class="col-lg-4" style="color:#f3f6f9;
padding-top:30px">
<h4>Subscribe to Our Newsletter</h4>
<form action=" " method="post">
<div class="form-group">
<input class="form-control" type="text"
id="inputemail" name="email_newsletter" placeholder="Your Email ID">
</div>
<input type="submit" name="submit" class="btn btn-default" value="subscribe">
</form>
</div>
<div class="col-lg-4" style="color:#f3f6f9;
padding-top:29px">
<h4>Links</h4>
<ol class="breadcrumb">
<li>Home</li>
<li>About Cell</li>
<li>Registration</li>
<li>Contact Us</li>
</ol>
</div>
</div>
<div class="container-fluid" style="background-color:#f3f6f9">
<div class="row">
<div class="container" style="padding-top:7px">
<div class="col-lg-6 col-sm-12 col-xs-12">© All the Rights Reserved with Placement Cell</div>
<div class="col-lg-6 col-sm-12 col-xs-12" style="text-align:right">Developed By Bhanu Singh</div>
</div>
</div>
</div>
</div>
</div></div>
tested both options are workin;
I have used DOMPDF in PHP to generate PDF file. The layout seems perfect. But only when there is a page change. The layout breaks a little shifting content on right div to left side.
I guess The dompdf reads content line by line and it gets an empty space in new page on left side thus shifting right part to left. Have help to fix this ?
Here is my DOMPDF CODE
$blockHTML = "";
$blockHTML .=
'<div style="color:rgb(23, 23, 78);font-family:proximanova;letter-spacing:1px;font-size:12px;">
<div style="padding-bottom:10px;border-bottom:'.$border.'"><!--header-->
<img src="'.$logoImg.'" width="65">
</div>
<div style="margin-top:10px;">
<div style="text-align:center;padding:10px;border-bottom:'.
$border.'font-weight:bold;font-size:1.4em;">
<span>"Favorite Italian Restaurants in Los Angeles"</span>
</div>
</div>
<div style="margin-top:5px;">
<div style="text-align:center;padding:10px;">
<span style="color:rgb(179,179,179);">Collection Created By: </span>
<span> Vivek Tankaria</span>
</div>
</div>
<div style="margin-top:5px;">
<div style="text-align:center;display:inline-block;width:200px;margin:0 auto;">
<img src="'.$poiMarker.'" width="12" />
<span style="padding:0px 10px;height:15px;line-height:15px;">
48 Locations Bookmarked
</span>
</div>
</div>';
for($i=0;$i<20;$i++){
$blockHTML .= '<div style="margin-top:10px;border-top:'.$border.'">
<div style="width:100%;padding:10px 2.5%;">
<div style="display:inline-block;width:25%;">
<div>
<img src="'.$data.'" style="width:100%;height:auto;" />
</div>
</div>
<div style="display:inline-block;width:46%;padding:0 2%;">
<div style="width:100%;">
<span style="padding:2px 0;border-bottom:'.
$border.';font-weight:bold;width:70%;display:inline-block;">
Venue Name Comes Here
</span>
<span>
<img style="padding:2px;" src="'.$star.'" width="12" />
<img style="padding:2px;" src="'.$star.'" width="12" />
<img style="padding:2px;" src="'.$star.'" width="12" />
<img style="padding:2px;" src="'.$star.'" width="12" />
<img style="padding:2px;" src="'.$star.'" width="12" />
</span>
</div>
<div style="width:100%;">
<span style="padding:5px 0;width:70%;display:inline-block;">
<i>"Venue Caption Comes Here"</i>
</span>
<span style="padding:5px 0;display:inline-block;text-align:right;font-size:1.2em;width:28%;">
$$$
</span>
</div>
<div style="width:100%;">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and scrambled it to make a type
</div>
</div>
<div style="display:inline-block;width:25%;">
<div>
<img src="'.$data.'" style="width:100%;height:auto;" />
</div>
</div>
</div>
<div style="width:100%;padding:10px 2.5%;">
<div style="display:inline-block;width:22%;">
<span style="display:inline-block;width:10%;padding:0 2%;"><img src="'.$call.'" width="15" /></span>
<span style="display:inline-block;width:90%;">(123) 456-7890</span>
</div>
<div style="width:1%;height:20px;display:inline-block;border-right:'.$border.'"></div>
<div style="display:inline-block;width:18%;padding:0 4% 0 2%;">
<span style="display:inline-block;width:10%;padding:2px 6%;"><img src="'.$website.'" width="18" /></span>
<span style="display:inline-block;width:90%;">www.uvwxyz.com</span>
</div>
<div style="width:1%;height:20px;display:inline-block;border-right:'.$border.'"></div>
<div style="display:inline-block;width:18%;padding:0 2%;">
<span style="display:inline-block;width:10%;padding:2px 6%;"><img src="'.$email.'" width="18" /></span>
<span style="padding:0 2%;display:inline-block;">useremail #uvwxyz.com</span>
</div>
<div style="width:1%;height:20px;display:inline-block;border-right:'.$border.'"></div>
<div style="display:inline-block;width:22%;padding:0 2%;">
<span style="display:inline-block;width:10%;padding:0 2%;"><img src="'.$address.'" width="12" /></span>
<span style="display:inline-block;width:90%;">123, Street One, Road Rd, Location (w), City - 123456</span>
</div>
</div>
</div>';
}
$blockHTML .= '</div>';
$this->load->library('dompdf_gen');
// Convert to PDF
$this->dompdf->set_paper("A4");
$this->dompdf->load_html($blockHTML);
$this->dompdf->render();
$this->dompdf->stream("welcome.pdf",array("Attachment"=>0));
Attaching Image for reference
When moving to a new page dompdf essentially starts from scratch when determining the layout. Since that's a relatively small amount of content you might try styling it with page-break-inside: avoid; to prevent breaking those elements independently.
In an example category, the result products are listed using an unknown template. I have pagayo electronics theme as default.It uses a class called item-review and item-bottom for listing. they aren't in html code.
code is like this:
<ul class="products-grid">
<li class="item first">
<img src="http://magicfly.ir/media/catalog/product/cache/1/small_image/135x/9df78eab33525d08d6e5fb8d27136e95/1/3/13steps2.jpg" width="135" height="135" alt="13 Steps to Mentalism" />
<h2 class="product-name">13 Steps to Mentalism</h2>
<div class="ratings">
<span class="amount">1 نظر</span>
</div>
<div class="price-box">
<span class="regular-price" id="product-price-10">
<span class="price">30٬000 تومان</span> </span>
</div>
<div class="actions">
<p><button type="button" title="افزودن به سبد" class="button btn-cart" onclick="setLocationAjax('http://magicfly.ir/checkout/cart/add/uenc/aHR0cDovL21hZ2ljZmx5LmlyL21lbnRhbGlzbS5odG1s/product/10/form_key/Ql6smZ0IvKikUDgX/','10')"><span><span>افزودن به سبد</span></span></button></p>
<ul class="add-to-links">
<li>افزودن به لیست دلخواه</li>
<li><span class="separator">|</span> افزودن به مقایسه</li>
</ul>
while it should be like this (wrap with item-review and item-bottom classes):
<ul class="products-grid first odd">
<li class="item first">
<img src="http://demo.pagayo.com/media/catalog/product/cache/1/small_image/210x/9df78eab33525d08d6e5fb8d27136e95/a/p/apple-tv-1.jpg" alt="Apple TV" height="210" width="210">
<div class="item-review">
</div>
<div class="item-bottom">
<h2 class="product-name">Apple TV</h2>
<div class="price-box">
<span class="regular-price" id="product-price-9">
<span class="price">$99.00</span> </span>
</div>
<div class="actions">
<button type="button" title="Add to Cart" class="button btn-cart" onclick="setLocation('http://demo.pagayo.com/pagayotheme001/checkout/cart/add/uenc/aHR0cDovL2RlbW8ucGFnYXlvLmNvbS9wYWdheW90aGVtZTAwMS9hY2Nlc3Nvcmllcy5odG1s/product/9/')"><span><span>Add to Cart</span></span></button>
</div>
</div>
</li>
<li class="item">
<img src="http://demo.pagayo.com/media/catalog/product/cache/1/small_image/210x/9df78eab33525d08d6e5fb8d27136e95/4/_/4.jpg" alt="Bose SoundDock Portable Digital Music System" height="210" width="210">
<div class="item-review">
<div class="ratings">
<div class="rating-box">
<div class="rating" style="width:97%"></div>
</div>
<span class="amount">2 Review(s)</span>
</div>
</div>
<div class="item-bottom">
<h2 class="product-name">Bose SoundDock Portable Digital Music System</h2>
<div class="price-box">
<span class="regular-price" id="product-price-22">
<span class="price">$399.95</span> </span>
</div>
<div class="actions">
<button type="button" title="Add to Cart" class="button btn-cart" onclick="setLocation('http://demo.pagayo.com/pagayotheme001/checkout/cart/add/uenc/aHR0cDovL2RlbW8ucGFnYXlvLmNvbS9wYWdheW90aGVtZTAwMS9hY2Nlc3Nvcmllcy5odG1s/product/22/')"><span><span>Add to Cart</span></span></button>
</div>
</div>
</li>
<li class="item last">
<img src="http://demo.pagayo.com/media/catalog/product/cache/1/small_image/210x/9df78eab33525d08d6e5fb8d27136e95/1/_/1.jpg" alt="Bose SoundLink Bluetooth Mobile speaker II" height="210" width="210">
<div class="item-review">
</div>
<div class="item-bottom">
<h2 class="product-name">Bose SoundLink Bluetooth Mobile speaker II</h2>
<div class="price-box">
<span class="regular-price" id="product-price-21">
<span class="price">$349.95</span> </span>
</div>
<div class="actions">
<button type="button" title="Add to Cart" class="button btn-cart" onclick="setLocation('http://demo.pagayo.com/pagayotheme001/checkout/cart/add/uenc/aHR0cDovL2RlbW8ucGFnYXlvLmNvbS9wYWdheW90aGVtZTAwMS9hY2Nlc3Nvcmllcy5odG1s/product/21/')"><span><span>Add to Cart</span></span></button>
</div>
</div>
</li>
</ul>
in
/app/design/frontend/default/pagayo-theme-001/template/catalog/product/list.phtml
it is correctly wrapped but it seems it uses another theme that doesn't wrap it.
I didn't specify custom template for category or any product.
The amazing thing here is I checked list.phtml of base template and copied pagayo list.phtml to base. Just nothing happened.
I want it to use the default theme I specified in configuration Or at least find the phtml file of this piece of code to edit and make it correct.
without seeing its had to infer solution. possibilities are:
1) There can be an issue of improperly selected Magento Package.
system->configuration->Design->Package
2) If you want to see which template using on Template Path hints
system->configuration-> Developer -> Debug -> Template Path Hints select to on
clear cache and refresh the page.
How can i parse all names from html with regular expression. So, I tried so much, but couldnt.
I want only collect name, surnames and code from this html.
Like this;
Edward Michael 1000,
John Kramer 2000,
David Duncan 3000 ..etc
<div class="rightside">
<div style="display: block">
<div class="frame preBack">
<div class="framelist">
<ul>
<li uid ="1" code="1000" class="framerow frm0">
<div class="frm name" >
Edward
</div>
<div class="frm surname">
Michael
</div>
</li>
<li uid ="2" code="2000" class="framerow frm1">
<div class="frm name" >
John
</div>
<div class="frm surname">
Kramer
</div>
</li>
</ul>
</div>
</div>
<div class="frame preBack">
<div class="framelist">
<ul>
<li uid ="3" code="3000" class="framerow frm3">
<div class="frm name" >
David
</div>
<div class="frm surname">
Duncan
</div>
</li>
<li uid ="4" code="4000" class="framerow frm4">
<div class="frm name" >
Alice
</div>
<div class="frm surname">
Pole
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
Gracias.
Here is the required output : using Jquery
http://jsfiddle.net/afsar_zan/VaDVE/1/
console.log($.each('.frm name','.frm surname').text());