diff --git a/admin/partials/civicrm-ux-guide.html b/admin/partials/civicrm-ux-guide.html deleted file mode 100644 index 183609b..0000000 --- a/admin/partials/civicrm-ux-guide.html +++ /dev/null @@ -1,137 +0,0 @@ -CiviCRM UX.md -

CiviCRM UX

-

CiviCRM UX plugin provides shortcodes for integrating CiviCRM with your website.

-

General usages

-

Shortcodes

-

Campaign

-

The Campaign shortcodes accept a CiviCRM Campaign ID as a parameter and display the fundraising goals by querying the CiviCRM Campaign and associated Contributions.

-
    -
  1. -

    [campaign-info-with-thermometer id=3]
    - The id of shortcode is the Campaign ID which you could find in CiviCRM Dashboard >> Campaigns >> Campaign Dashboard.
    - This shortcode consists of:

    - -
  2. -
  3. -

    [campaign-honour-listing id=3 display-amount=false]
    - The id of shortcode is the Campaign ID which you could find in CiviCRM Dashboard >> Campaigns >> Campaign Dashboard.
    - This shortcode is to display the honor roll information for CiviCRM Contributions related to the CiviCRM Campaign.
    - The all the Contributions related to the Campaign will be displayed, sorted in descending order.
    - The most recent contributor will be on the top of the list as well.
    - Display-amount can be set as true or false. The default is false.
    - This shortcode has been formatted in html with styling.

    -
  4. -
  5. -

    [campaign-thermometer id=1]
    - The id of shortcode is the Campaign ID which you could find in CiviCRM Dashboard >> Campaigns >> Campaign Dashboard.
    - This shortcode without styling is to display the thermometer style graph of funds and goal amount.

    -
  6. -
  7. -

    [campaign-funds-raised id=3]
    - The id of shortcode is the Campaign ID which you could find in CiviCRM Dashboard >> Campaigns >> Campaign Dashboard.
    - This shortcode without styling is to display funds raised to date. For example, $ 525.00.

    -
  8. -
  9. -

    [campaign-goal-amount id=3]
    - The id of shortcode is the Campaign ID which you could find in CiviCRM Dashboard >> Campaigns >> Campaign Dashboard.
    - This shortcode without styling is to display the goal amount of Campaign. For example, $ 2,000.00.

    -
  10. -
  11. -

    [campaign-end-date id=3]
    - The id of shortcode is the Campaign ID which you could find in CiviCRM Dashboard >> Campaigns >> Campaign Dashboard.
    - This shortcode without styling is to display the end date of Campaign. For example, 31 June 2019.

    -
  12. -
  13. -

    [campaign-days-remaining id=3 end-text='on-going']
    - The id of shortcode is the Campaign ID which you could find in CiviCRM Dashboard >> Campaigns >> Campaign Dashboard.
    - This shortcode without styling is to display days remaining of Campaign. For example, 3 days remaining.
    - If the end date expires, it returns the text in ‘end-text’. The text in ‘end-text’ can be changed to any text as well.

    -
  14. -
  15. -

    [campaign-total-contribution-number id=3]
    - The id of shortcode is the Campaign ID which you could find in CiviCRM Dashboard >> Campaigns >> Campaign Dashboard.
    - This shortcode without styling is to display the total number of donations received. For example, 7.

    -
  16. -
-

Note:
- Id for the campaign id is required.
- Shortcodes return the raw string value except first 2 shortcodes.

-

Event

-

Event shortcodes accepts a CiviCRM Event type as a parameter and displays the event listings.

-
    -
  1. -

    [ical-feed type="Meeting,Exhibition"]display text[/ical-feed]
    - This shortcode allows downloading the calendar of CiviCRM events.
    - The type of shortcode is the Event Type which you could find in CiviCRM Dashboard >> CiviEvent >> Event Types.
    - The type is optional. If the type is not specified, the calendar will include all types of events.
    - The ‘display text’ can be changed to any text as well.

    -
  2. -
  3. -

    [civicrm-event-listing type="Training"]
    - This shortcode is to display the event listing of the CiviCRM event type.
    - The type of shortcode is the Event Type which you could find in CiviCRM Dashboard >> CiviEvent >> Event Types.
    - The event listing displays the start date, the end date, the event name, the registration link, the brief description of event and the link for more information.
    - The type is optional. If the type is not specified, there will be an event listing of all types of events.
    - This shortcode has been formatted in html with styling.

    -
  4. -
  5. -

    [civicrm-upcoming-events count=5 type="Meeting"]
    - This shortcode is to display the upcoming event listing of the CiviCRM event type.
    - The type of shortcode is the Event Type which you could find in CiviCRM Dashboard >> CiviEvent >> Event Types.
    - The type is optional. If the type is not specified, there will be an event listing of all types of events.
    - The value of ‘count’ decides how many events will be displayed in upcoming event listings.
    - This shortcode has been formatted in html with styling.

    -
  6. -
-

Activity

-

[civicrm-activities-listing]
- Parameters:

- -

For example:
- [civicrm-activities-listing type='Test' relationship-id=5 field='status,source_contact_name,activity_date_time']

-

REST API

-

iCal feed

- -
Parameters
-

type: filter for event type
- For example, https://example.com/wp-json/ICalFeed/manage?hash=some&type=Meeting,Exhibition

-
Note
- -

Development

-

How to add shortcode

-
    -
  1. Create a php file in shortcodes directory.
  2. -
  3. Within the file, create a class which implements iCivicrm_Ux_Shortcode.
  4. -
  5. Implement all functions defined in the interface. It is recommended to use PhpStorm.
  6. -
-

How to add REST API route

-
    -
  1. Create a php file in rest directory.
  2. -
  3. Within the file, create a class which implement iCivicrm_Ux_REST.
  4. -
  5. Implement all functions defined in the interface. It is recommended to use PhpStorm.
  6. -
-

CSS and JavaScript

-

All css files should be in public/css or admin/css. If the new css files are created, please make sure to enqueue them.
- All javascript files should be in public/js or admin/js.

- - \ No newline at end of file