Hello World package is a simply package to explain how a very simple package can be created.

Hello World Package is define the following:

  • Block: Display a text that is taken as Block Shortcode Parameter.
  • Template: Style the displayed text.
  • readme
  • license

Template Code

h1.hello-world-text {font-size: 24px; color: red}

Block Code

<h1 class="hello-world-text">
// Display text as passed for the Text input parameter.
echo $cb->params()->get('text');

definition.xml File

<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://css-javascript-toolbox/xml/namespaces/cjt/6/package">
<description>CJT Hello World package example</description>
<license locate="file" />
<readme locate="file" />
<object type="template">
<description>Hello World Stylesheet file</description>
<code locate="file">template/style.css</code>
<object type="block">
<code locate="file">block/hello-world.php</code>
<name>Hello World</name>
<group name="General">
<link name="hello-world-style-sheet" />

The package is also available for hello-world