/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
- /*function convertClean(){;
+ function convertClean(){;
require_once 'Net/URL.php';
$data = $this->frame_body;
libxml_use_internal_errors (true);
foreach($xpath->query('//img') as $im){
$url = parse_url($im->getAttribute("src"));
$file = '/assets/'. $url["host"] . $url["path"];
- if($url->query){
- $file += "--" . md5($url->query);
+ if(array_key_exists("query",$url)){
+ $file .= "--" . md5($url["query"]);
}
+ echo $file . "\n";
$im->setAttribute("src",$file);
}
$this->frame_body_clean = $doc->saveHTML();
$this->update();
- }*/
+ }
function createAssets(){
require_once 'Net/URL.php';
echo $this->url;
if($ext){
$file .= "." . $ext;
- }
-
+ };
//echo "\n\nFile: " .$file . "\nSrc: " . $src . "\nExts:" . print_r($exts) . "\nMeta: " . print_r($info);
fclose($f);
mkdir($dir,0775,true);
}
file_put_contents($file,$img);
- $im->setAttribute("src",$file)
++ $im->setAttribute("src",$file);
break;
}
+ $this->frame_body_clean = $doc->saveHTML();
+ $this->update();
}
function convertHTML(){
//var_dump($url);
"name" : "Reddit.Index",
"parent" : "",
"title" : "",
- "path" : "/home/alan/gitlive/web.Reddit/Reddit/Reddit.Index.bjs",
+ "path" : "/home/julian/gitlive/web.Reddit/Reddit/Reddit.Index.bjs",
"permname" : "",
"modOrder" : "001",
"items" : [
"items" : [
{
"$ String brand_href" : "baseURL",
- "String cls" : "headroom animated",
"String position" : "fixed-top",
+ "String cls" : "headroom animated",
"xtype" : "NavHeaderbar",
"Boolean inverse" : true,
"String brand" : "Reddit Archive - Occupy Central Civil Disobedience Movement (Umbrella Revolution)",
"items" : [
{
"Number md" : 4,
- "xtype" : "Column",
"Number lg" : 3,
+ "xtype" : "Column",
"$ xns" : "Roo.bootstrap",
"items" : [
{
"items" : [
{
"xtype" : "Header",
- "Number level" : 4,
"$ xns" : "Roo.bootstrap",
+ "Number level" : 4,
"String html" : "Day selector"
},
{
"String tag" : "p",
"xtype" : "Element",
"$ xns" : "Roo.bootstrap",
++<<<<<<< HEAD
+ "String html" : "\n<!-- {feed:r} -->\n<style>\n.feed-body-html a { display:none }\n</style>\n\n<div flexy:foreach=\"feed,f\">\n\n<!-- <h3>10am</h3> -->\n<hr />\n\n<div class=\"feed-body-html\"> {f.body_html:h} </div>\n<div flexy:foreach=\"f.embeds_ar,e\">\n<iframe style=\"{e.frame_style}\" src=\"Embed/{e.id}\" height=\"{e.frame_height}\" width=\"{e.frame_width}\"></iframe>\n</div>\n<p> the image associated with it goes here </p>\n<p><a href=\"#\">{e.original url}</a> </p>\n\n\n<p> <small><B>{f.created_local_dt}</B></small> | <a href=\"#\">/reddit/{f.author}</a> | <a href=\"#\">Download as PDF</a> </p>\n</div>"
++=======
+ "String html" : "\n<!-- {feed:r} -->\n<style>\n.feed-body-html a { display:none }\n</style>\n\n\n\n<div flexy:foreach=\"feed,f\">\n\n <!-- <h3>10am</h3> -->\n <hr />\n\n\n\n <div class=\"feed-body-html\"> {f.body_html:h} </div>\n\n <div flexy:foreach=\"f.embeds,e\">\n\n </div>\n <p> the image associated with it goes here </p>\n <p><a href=\"#\">{e.original url}</a> </p>\n\n\n <p> <small><B>{f.created_local_dt}</B></small> | <a href=\"#\">/reddit/{f.author}</a> | <a href=\"#\">Download as PDF</a> </p>\n</div>"
++>>>>>>> 52d78a4d053c6c15471b2dcfe1d14cca9551951b
}
]
}
{
'|xns' : 'Roo.bootstrap',
brand_href : baseURL,
- cls : 'headroom animated',
position : 'fixed-top',
+ cls : 'headroom animated',
xtype : 'NavHeaderbar',
inverse : true,
brand : 'Reddit Archive - Occupy Central Civil Disobedience Movement (Umbrella Revolution)',
{
'|xns' : 'Roo.bootstrap',
md : 4,
- xtype : 'Column',
lg : 3,
+ xtype : 'Column',
xns : Roo.bootstrap,
items : [
{
{
'|xns' : 'Roo.bootstrap',
xtype : 'Header',
- level : 4,
xns : Roo.bootstrap,
+ level : 4,
html : 'Day selector'
},
{
tag : 'p',
xtype : 'Element',
xns : Roo.bootstrap,
++<<<<<<< HEAD
+ html : '\n<!-- {feed:r} -->\n<style>\n.feed-body-html a { display:none }\n</style>\n\n<div flexy:foreach=\"feed,f\">\n\n<!-- <h3>10am</h3> -->\n<hr />\n\n<div class=\"feed-body-html\"> {f.body_html:h} </div>\n<div flexy:foreach=\"f.embeds_ar,e\">\n<iframe style=\"{e.frame_style}\" src=\"Embed/{e.id}\" height=\"{e.frame_height}\" width=\"{e.frame_width}\"></iframe>\n</div>\n<p> the image associated with it goes here </p>\n<p><a href=\"#\">{e.original url}</a> </p>\n\n\n<p> <small><B>{f.created_local_dt}</B></small> | <a href=\"#\">/reddit/{f.author}</a> | <a href=\"#\">Download as PDF</a> </p>\n</div>'
++=======
+ html : '\n<!-- {feed:r} -->\n<style>\n.feed-body-html a { display:none }\n</style>\n\n\n\n<div flexy:foreach=\"feed,f\">\n\n <!-- <h3>10am</h3> -->\n <hr />\n\n\n\n <div class=\"feed-body-html\"> {f.body_html:h} </div>\n\n <div flexy:foreach=\"f.embeds,e\">\n\n </div>\n <p> the image associated with it goes here </p>\n <p><a href=\"#\">{e.original url}</a> </p>\n\n\n <p> <small><B>{f.created_local_dt}</B></small> | <a href=\"#\">/reddit/{f.author}</a> | <a href=\"#\">Download as PDF</a> </p>\n</div>'
++>>>>>>> 52d78a4d053c6c15471b2dcfe1d14cca9551951b
}
]
<DIV class="collapse navbar-collapse" xbuilderid="roo-gen6">
<UL class="nav navbar-nav navbar-right" xbuilderid="roo-gen7" style="margin-right: 20px;" xtype="Roo.bootstrap.NavGroup"></UL>
</DIV>
++<<<<<<< HEAD
+ <DIV class="x-dlg-mask" xbuilderid="roo-gen5" style="width: 503px; height: 138px; display: none;"></DIV>
++=======
+ <DIV class="x-dlg-mask" xbuilderid="roo-gen5" style="width: 564px; height: 138px; display: none;"></DIV>
++>>>>>>> 52d78a4d053c6c15471b2dcfe1d14cca9551951b
</HEADER>
<DIV class="container" xbuilderid="roo-gen8" style="margin-top: 100px;" xtype="Roo.bootstrap.Container">
<OL class=" breadcrumb" xbuilderid="roo-gen9" xtype="Roo.bootstrap.Container">
<HR></HR>
-
-
<DIV class="feed-body-html"> {f.body_html:h} </DIV>
+ <DIV flexy:foreach="f.embeds_ar,e">
- <DIV flexy:foreach="f.embeds,e">
+ <IFRAME style="{e.frame_style}" src="Embed/{e.id}" height="{e.frame_height}" width="{e.frame_width}"></IFRAME>
-</DIV>
+ </DIV>
<P> the image associated with it goes here </P>