Add "footnote" to the "plugins" setting. You can optionally define the button's position in the toolbar with the "footnoteAddAfter" setting.
"plugins": ["footnote"],
"footnoteAddAfter": "lists",| <?php | |
| namespace Craft; | |
| class BusinessLogicPlugin extends BasePlugin | |
| { | |
| public function getName() | |
| { | |
| return 'Business Logic'; | |
| } |
| {% set bread = craft.entries({ section: 'bread' }).limit(null) %} | |
| {# | |
| # Users with bread on 3 days | |
| #} | |
| {% set users3Days = craft.users({ | |
| group: 'customers', | |
| relatedTo: [ | |
| 'and', | |
| { targetElement: bread, field: 'breadForMonday' }, |
| <?php | |
| /** | |
| * Does a product order. | |
| * | |
| * @param string $name | |
| * @param int $quantity | |
| * @return bool | |
| */ | |
| public function doProductOrder($name, $quantity) |