enqueuer = $enqueuer;
$this->request = $request;
}
public function renderPrint( $content )
{
$content = '' . $content;
$content = str_replace( 'hc-table-header-wpadmin', '', $content );
$content = str_replace( 'hc-table-header', '', $content );
$body = array();
$body[] = '
';
$slug = $this->request->getSlug();
$body[] = '';
$body[] = $content;
$body[] = '
';
$body[] = '';
$body = implode("\n", $body);
$head = array();
$head[] = '';
$head[] = '';
$head[] = '';
$styles = $this->enqueuer->getStyles();
foreach( $styles as $handle => $src ){
$head[] = '';
}
$head[] = '';
$head = join("\n", $head) . "\n";
$out = array();
$out[] = '';
$out[] = '';
$out[] = $head;
$out[] = $body;
if( ! (defined('HC3_DEV_INSTALL') && HC3_DEV_INSTALL) ){
$out[] = '';
}
$out[] = '';
$out = implode("\n", $out);
return $out;
}
public function render( $content )
{
$content = '' . $content;
$body = array();
// $body[] = '';
$body[] = '';
$slug = $this->request->getSlug();
$body[] = '
';
$body[] = $content;
$body[] = '
';
$body[] = '
';
// $body[] = '';
$body = implode("\n", $body);
$head = $this->head();
$out = array();
// $out[] = '';
// $out[] = '';
// $out[] = $head;
$out[] = $body;
// $out[] = '';
$out = implode("\n", $out);
return $out;
}
public function head()
{
$head = array();
// $head[] = '';
// $head[] = '';
// $head[] = '';
$scripts = $this->enqueuer->getScripts();
$styles = $this->enqueuer->getStyles();
// echo "MAKING HEAD";
foreach( $styles as $handle => $src ){
// wp_enqueue_style( $handle, $src );
}
foreach( $scripts as $handle => $src ){
// wp_enqueue_script( $handle, $src );
}
// $head[] = '';
// $head = join("\n", $head) . "\n";
return $head;
}
}