-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from oncletom/feature/wiki-styles
- Loading branch information
Showing
43 changed files
with
101,259 additions
and
617 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
on: [push] | ||
|
||
jobs: | ||
package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Test and package the extension | ||
id: package | ||
uses: oncletom/yeswiki-build-repo@feature/action | ||
|
||
- name: Assess md5 and archive name | ||
run: | | ||
echo "${{ steps.package.outputs.archive-name }}md5sum is ${{ steps.package.outputs.md5sum }}" | ||
- name: Create a release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
|
||
- name: Upload zip file | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./dist/${{ steps.package.output.archive-name }} | ||
asset_name: ${{ steps.package.output.archive-name }} | ||
asset_content_type: application/zip | ||
|
||
- name: Upload md5 file | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./dist/${{ steps.package.output.archive-name }}.md5 | ||
asset_name: ${{ steps.package.output.archive-name }}.md5 | ||
asset_content_type: text/plain |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/vendor/ | ||
infos.json |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
if (!defined("WIKINI_VERSION")) { | ||
die("accès direct interdit"); | ||
} | ||
|
||
global $wiki; | ||
|
||
include_once 'includes/squelettephp.class.php'; | ||
|
||
$wiki->addCssFile('tools/publication/presentation/styles/publication.css'); | ||
$wiki->addJavascriptFile('tools/publication/presentation/actions/bazar2publication.js'); | ||
|
||
$options = array( | ||
'title' => $wiki->getParameter('title', _t('PUBLICATION_CREATE_FROM_BAZAR_RESULTS')), | ||
'icon' => $wiki->getParameter('icon', 'fa-book'), | ||
'class' => $wiki->getParameter('class'), | ||
'templatepage' => $wiki->getParameter('templatepage'), | ||
); | ||
|
||
$publicationTemplate = $wiki->getParameter('templatepage') ? $wiki->loadPage($wiki->getParameter('templatepage')) : null; | ||
|
||
$template = new SquelettePhp('bazar2publication.tpl.html', 'publication'); | ||
|
||
echo $template->render(array( | ||
'options' => $options, | ||
'templatePage' => $publicationTemplate, | ||
)); |
Oops, something went wrong.