This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// removing attribute href and width from divs | |
// for html code go here for testing : http://pastebin.com/ZBwEJsQ8 | |
$dom = new DOMDocument; | |
$dom->loadHTML($content); | |
$divs = $dom->getElementsByTagName('div'); | |
foreach ($divs as $div) { | |
$div->removeAttribute('href'); | |
$div->removeAttribute('width'); | |
} | |
$content = $dom->saveHTML(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang='en'> | |
<head> | |
<meta charset="utf-8"> | |
<title>Disqus for AMP</title> | |
<meta name="viewport" content="width=device-width,minimum-scale=1"> | |
<style> | |
html, body { | |
margin: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: AMP Home Page Modify | |
Version: 0.0.1 | |
Author: Mohammed Khaled | |
Author URI: https://ampforwp.com/ | |
Donate link: https://www.paypal.me/Kaludi/5 | |
License: GPL2 | |
*/ | |
// Exit if accessed directly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: AMP Home Page Modify | |
Version: 0.0.1 | |
Author: Mohammed Khaled | |
Author URI: https://ampforwp.com/ | |
Donate link: https://www.paypal.me/Kaludi/5 | |
License: GPL2 | |
*/ | |
// Exit if accessed directly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: AMP Nav Links | |
Version: 0.0.1 | |
Author: Mohammed Khaled | |
Author URI: https://ampforwp.com/ | |
Donate link: https://www.paypal.me/Kaludi/5 | |
License: GPL2 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: AMP nav links modify | |
Version: 0.0.1 | |
Author: Mohammed Khaled | |
Author URI: https://ampforwp.com/ | |
Donate link: https://www.paypal.me/Kaludi/5 | |
License: GPL2 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/ld+json">{ | |
"@context":"http:\/\/schema.org", | |
"@type":"BlogPosting", | |
"mainEntityOfPage":"http:\/\/localhost\/wordpress\/2015\/11\/25\/chrome-9-goes-stable-with-webgl-and-chrome-instant\/", | |
"publisher":{ | |
"@type":"Organization", | |
"name":"final tests", | |
"logo":{ | |
"@type":"ImageObject", | |
"url":"", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe | |
width="600" | |
height="450" | |
frameborder="0" style="border:0" | |
src="https://www.google.com/maps/embed/v1/place?key=YOUR_API_KEY | |
&q=Space+Needle,Seattle+WA" allowfullscreen> | |
</iframe> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MoviesAdapter extends BaseAdapter { | |
private Context mContext; | |
private MoviesModel mArray[]; | |
String posterPathReturnedByQuery = null; | |
String finalImageURL = null; | |
final public String BaseImageURL = "http://image.tmdb.org/t/p/"; | |
final public String StandardSIzeOfImages = "w185"; |