Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Changes to make it compatible to the adhocracy.adhocracy_theme "no_wordp... #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adhocracy/wordpressbasic_theme/rules_header.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<replace theme="/html/head/title" content="/html/head/title" if="not(contains($path, '/_pages'))" />
<replace theme="/html/head/title" if-path="/_pages">
<xsl:variable name="url_path" select="substring-after($path, '/_pages/')"/>
<xsl:variable name="url_page" select="concat('http://', $wordpress_backend, '/', $url_path)"/>
<xsl:variable name="url_page" select="concat($backend, '/', $url_path)"/>
<xsl:copy-of select="document($url_page)/html/head/title"/>
</replace>

Expand Down
8 changes: 4 additions & 4 deletions adhocracy/wordpressbasic_theme/rules_pages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
<!--Merge wordpress content section-->
<replace css:content-children="#col1_content" >
<xsl:variable name="url_path" select="substring-after($path, '/_pages/')"/>
<xsl:variable name="url_page" select="concat('http://', $wordpress_backend, '/', $url_path)"/>
<xsl:variable name="url_page" select="concat( $backend, '/', $url_path)"/>
<xsl:copy-of select="document($url_page)//*[contains(@class, 'entry-content')]/*"/>
</replace>
<replace css:content="#col3_content">
<xsl:variable name="url_path" select="substring-after($path, '/_pages/')"/>
<xsl:variable name="url_page" select="concat('http://', $wordpress_backend, '/', $url_path)"/>
<xsl:variable name="url_page" select="concat( $backend, '/', $url_path)"/>
<xsl:copy-of select="document($url_page)//*[@id='secondary']"/>
</replace>

<!--Merge in wordpress javascript to generate tabs-->
<replace css:content-children="#external_scripts">
<xsl:variable name="url_startpage" select="concat('http://', $wordpress_backend_startseite)"/>
<xsl:variable name="url_startpage" select="concat( $backend, '/startseite/')"/>
<xsl:copy-of select="document($url_startpage)/html/body/script[position() &gt; 1]"/>
</replace>
<before theme="/html/head/link[last()]">
<xsl:variable name="url_startpage" select="concat('http://', $wordpress_backend_startseite)"/>
<xsl:variable name="url_startpage" select="concat( $backend, '/startseite/')"/>
<xsl:copy-of select="document($url_startpage)/html/head/link[contains(@href, '.ui.')]"/>
</before>

Expand Down
4 changes: 2 additions & 2 deletions adhocracy/wordpressbasic_theme/rules_startpage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<!--WARNING: throws error if the wordpress backend is not available-->
<!--Merge wordpress content section-->
<replace css:content-children="div#content-startpage" if="not($wordpress_backend = '')" >
<xsl:variable name="url_startpage" select="concat('http://', $wordpress_backend_startseite)"/>
<replace css:content-children="div#content-startpage" if="not($backend = '')" >
<xsl:variable name="url_startpage" select="concat( $backend, '/startseite/' )"/>
<xsl:copy-of select="document($url_startpage)//*[contains(@class, 'entry-content')]/*"/>
<p><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text></p>
</replace>
Expand Down