Open amercader opened 10 months ago
@amercader the Open Knowledge Foundation Panel plugin is currently not compatible with the new theme assets and needs to be updated, if not rewritten. This is something that Keitaro cannot do as part of these updates. Everything else is done and deployed to https://blog.okfn.org/.
Thanks @gocemitevski !
Regarding the collapsible panel, would it be possible to just add the necessary markup to the relevant theme layout template? It's just a matter to add these lines in the page template, we don't need all the WP config interface that the WP plugin included
<head>
<!-- ... -->
<link rel="stylesheet" href="https://a.okfn.org/html/oki/panel/assets/css/frontend.css"/>
<style>
#ok-panel {
border-color:#2D2D2D
}
#ok-panel-wrapper {
float:right
}
#ok-panel-wrapper:not([data-breakpoint*='px'])>.ok-ribbon {
margin-top:0;
background-color:#2D2D2D;
margin-bottom:1.5em;
background-color:transparent
}
</style>
<!-- ... -->
<head>
<body>
<div id="ok-panel" class="closed"><div class="container"><iframe src="https://a.okfn.org/html/oki/panel/panel.html" scrolling="no"></iframe></div></div>
<div id="ok-panel-wrapper"><a class="white ok-ribbon" href="https://okfn.org/"><img src="https://a.okfn.org/html/oki/panel/assets/images/oki-ribbon.png" alt="Open Knowledge"></a></div>
<!-- ... -->
<script src="https://a.okfn.org/html/oki/panel/assets/js/frontend.js" type="text/javascript"></script>
</body>
@amercader unfortunately not. I already tried to do that. This is basically the same code generated by the WordPress plugin, but with the newly updated assets based on the new version of the panel.
https://github.com/okfn/okf-panel/blob/master/inc/sunrise/assets.php https://github.com/okfn/okf-panel/blob/master/inc/plugin-actions.php
The problems are caused by small differences in the styling rules and JavaScript assets. Just adding the above code snippet in the header.php
template of wordpress-theme
will not work.
Cosmetic changes to match the design after the latest OKFN rebranding:
[x] Replace the logo in the header for https://drive.google.com/open?id=1Yao2GS38sR2laWH9VpmSv9j6zmyZcpOm&usp=drive_fs
[x] Replace the logo in the footer for https://drive.google.com/open?id=1h6yRR80ibQMCGuipe-TZs22c8ID9j6_Y&usp=drive_fs
[x] Change how Twitter text is displayed in the menu, for
Twitter/X
(this is managed through the Theme Options)[x] Add LinkedIn and Mastodon links to the menu (same as above: two new fields are required in the Theme Options)
[x] Remove this sentence from the footer: "Refer to our attributions page for attributions of other work on the site."
[x] Replace font-family with HK Grotesk (respecting the different weighs)
[ ] Add OKFN collapsible panel as a top header (The same updated version displayed on sites like opendefinition.org and opendatacommons.org) I see there's a plugin called
Open Knowledge Foundation Panel
, but it's deactivated.