-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and update TotalPoll plugin support (#261)
* Fix and update TotalPoll plugin support TotalPolls completely refactored their poll plugin, breaking some of the customisation work we had applied to the plugin. For example hiding paid-for features of the plugin we are not using, in the editor view. A warning was also thrown as the plugin had changed file names. This has been fixed. * Document theme poll component to explain it only is used for CSS
- Loading branch information
Showing
4 changed files
with
53 additions
and
31 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
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
<?php | ||
use MOJ\Intranet\Agency; | ||
$agency = get_intranet_code(); | ||
$polls = get_field( $agency . '_homepage_polls_shortcode', 'option' ); | ||
?> | ||
<!-- Note | ||
This component is currently not being used anywhere on the site, however, | ||
its CSS style file is being used to determine the style of the poll plugin widget when displayed, so that | ||
its styling is compatible with the site. | ||
--> | ||
<!-- c-polls starts here --> | ||
<section class="c-polls js-polls"> | ||
<?php | ||
echo do_shortcode( $polls ); | ||
?> | ||
<br/> | ||
</section> | ||
<section class="c-polls js-polls"></section> | ||
<!-- c-polls ends here --> |