Changeset 3354836
- Timestamp:
- 09/02/2025 03:49:03 PM (7 months ago)
- Location:
- cs-integration
- Files:
-
- 24 added
- 6 edited
-
admin (added)
-
tags/1.0.5 (added)
-
tags/1.0.5/LICENSE.txt (added)
-
tags/1.0.5/README.md (added)
-
tags/1.0.5/README.txt (added)
-
tags/1.0.5/admin (added)
-
tags/1.0.5/assets (added)
-
tags/1.0.5/cs-integration.php (added)
-
tags/1.0.5/fonts (added)
-
tags/1.0.5/includes (added)
-
tags/1.0.5/index.php (added)
-
tags/1.0.5/languages (added)
-
tags/1.0.5/public (added)
-
tags/1.0.5/uninstall.php (added)
-
trunk/README.md (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/assets (added)
-
trunk/assets/arrow-back.svg (added)
-
trunk/assets/arrow-forward.svg (added)
-
trunk/assets/calendar.svg (added)
-
trunk/assets/caret-down-filled.svg (added)
-
trunk/assets/clock.svg (added)
-
trunk/assets/close.svg (added)
-
trunk/assets/icon-256x256.png (added)
-
trunk/assets/location.svg (added)
-
trunk/cs-integration.php (modified) (1 diff)
-
trunk/fonts/glyphs (added)
-
trunk/public/class-cs-integration-public.php (modified) (12 diffs)
-
trunk/public/css/cs-integration-public.css (modified) (5 diffs)
-
trunk/public/shortcodes/class-cs-calendar-event-view.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cs-integration/trunk/README.md
r3350354 r3354836 4 4 * Requires at least: 6.4 5 5 * Tested up to: 6.8 6 * Stable tag: 1.0. 46 * Stable tag: 1.0.5 7 7 * License: GPLv2 or later 8 8 … … 202 202 ## Changelog 203 203 204 ### 1.0.5 205 206 **2025-09-02** 207 * Remove FontAwesome and replace with a subset of FontAwesome to reduce the 208 size of the plugin. Modify the CSS to reflect this. Correct missing css 209 elements to do with cancelled events. 210 204 211 ### 1.0.4 205 212 -
cs-integration/trunk/README.txt
r3350354 r3354836 4 4 * Requires at least: 6.4 5 5 * Tested up to: 6.8 6 * Stable tag: 1.0. 46 * Stable tag: 1.0.5 7 7 * License: GPLv2 or later 8 8 … … 202 202 == Changelog == 203 203 204 = 1.0.5 = 205 206 **2025-09-02** 207 * Remove FontAwesome and replace with a subset of FontAwesome to reduce the 208 size of the plugin. Modify the CSS to reflect this. Correct missing css 209 elements to do with cancelled events. 210 204 211 = 1.0.4 = 205 212 -
cs-integration/trunk/cs-integration.php
r3350246 r3354836 20 20 * Plugin URI: https://github.com/AlwynBarry/cs-integration 21 21 * Description: CS Integration provides shortcodes to request and display JSON data from the public JSON ChurchSuite feeds. 22 * Version: 1.0. 422 * Version: 1.0.5 23 23 * Author: Alwyn Barry 24 24 * Author URI: https://github.com/AlwynBarry/ -
cs-integration/trunk/public/class-cs-integration-public.php
r3257115 r3354836 3 3 namespace amb_dev\CSI; 4 4 5 6 /**7 * The public-facing functionality of the plugin.8 *9 * @link https://https://github.com/AlwynBarry10 * @since 1.0.011 *12 * @package Cs_Integration13 * @subpackage Cs_Integration/public14 */15 5 16 6 /** … … 20 10 * and enqueues the public-facing stylesheet. 21 11 * 12 * @link https://https://github.com/AlwynBarry 13 * @since 1.0.0 14 * 22 15 * @package Cs_Integration 23 16 * @subpackage Cs_Integration/public … … 35 28 private $plugin_name; 36 29 30 37 31 /** 38 32 * The version of this plugin. … … 44 38 private $version; 45 39 46 /** 47 * The Class Names and file names of the classes for communication to the ChurchSuite JSON API, 48 * - the model classes for the data returned in the JSON responses, 49 * - the view classes for display of the data, 50 * - the classes which give the behaviour of the shortcodes, 40 41 /** 42 * The Class Names and file names of the classes for communication 43 * to the ChurchSuite JSON API, 51 44 * 52 45 * @since 1.0.0 … … 57 50 'ChurchSuite' => 'class-churchsuite.php', 58 51 'Cs_JSON_API' => 'class-cs-json-api.php', 52 ); 53 54 55 /** 56 * The Class Names and file names of the classes for the shortcodes 57 * - the model classes for the churchsuite event and group data, 58 * - the view classes for display of the data, 59 * - the classes which give the behaviour of the shortcodes, 60 * 61 * @since 1.0.4 62 * @access private 63 * @const array of string $CS_CLASS_NAMES The class names of the dependencies needed. 64 */ 65 private const SHORTCODE_CLASS_NAMES = array( 59 66 'Cs_Item' => 'class-cs-item.php', 60 67 'Cs_Event' => 'class-cs-event.php', … … 71 78 ); 72 79 80 73 81 /* 74 82 * The shortcode names and their corresponding static functions that … … 86 94 ); 87 95 96 88 97 /** 89 98 * Initialize the class and set its properties. … … 119 128 120 129 /** 121 * Dependencies: the classes that hold and process the JSON API , it's data response and to form the views on the data130 * Dependencies: the classes that hold and process the JSON API 122 131 */ 123 132 foreach ( Cs_Integration_Public::CS_CLASS_NAMES as $class_name => $file_name) { 124 133 require_once plugin_dir_path( dirname(__FILE__) ) . 'public/shortcodes/' . $file_name; 125 134 } 135 136 /** 137 * Dependencies: the classes that provide the shortcodes by creating 138 * a data model from the JSON response and to form the views on the data 139 */ 140 foreach ( Cs_Integration_Public::SHORTCODE_CLASS_NAMES as $class_name => $file_name) { 141 require_once plugin_dir_path( dirname(__FILE__) ) . 'public/shortcodes/' . $file_name; 142 } 126 143 127 144 } … … 143 160 } 144 161 162 145 163 /** 146 164 * Register the stylesheets for the public-facing side of the site. … … 151 169 public function enqueue_styles() { 152 170 171 /* 172 * Enqueue the fontawesome free font for the glyphs we use 173 */ 174 wp_enqueue_style( 'cs-glyphs-css', plugin_dir_url( __FILE__ ) . '../fonts/glyphs/css/glyphs.css', array(), $this->version, 'all' ); 175 176 /* 177 * Enqueue the style sheet for the public display of the shortcodes 178 */ 153 179 wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/cs-integration-public.css', array(), $this->version, 'all' ); 154 180 … … 169 195 */ 170 196 wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/cs-integration-public.js', array(), $this->version, false ); 171 172 } 173 197 198 } 199 200 174 201 /** 175 202 * Register a filter to add a 'cs-date' parameter in queries for the shortcodes to use … … 181 208 return $vars; 182 209 } 183 210 211 184 212 } -
cs-integration/trunk/public/css/cs-integration-public.css
r3350347 r3354836 1 /** 2 * All of the CSS for the public-facing functionality of this plugin 3 */ 4 1 5 :root { 2 6 --cs-background-color: #ffffff; … … 12 16 --cs-light-grey-background-color: #f3f3f3; 13 17 --cs-today-background-color: #ffffef; 18 --csjs-category-1-color: #3a76ca; 19 --csjs-category-2-color: #3aca76; 20 } 21 22 .cancelled { 23 color: var(--csjs-text-lightest-color); 24 } 25 26 .cancelled div.cs-event-name { 27 text-decoration: line-through; 14 28 } 15 29 … … 87 101 88 102 span.cs-date-gliph::before { 89 content: "\f133"; 90 font-family: "FontAwesome"; 103 content: "\e800"; 104 font-family: "glyphs"; 105 font-size: 0.9rem; 91 106 padding-right: 0.5rem; 92 107 color: var(--cs-gliph-color); … … 96 111 97 112 span.cs-time-gliph::before { 98 content: "\f017"; 99 font-family: "FontAwesome"; 113 content: "\e802"; 114 font-family: "glyphs"; 115 font-size: 0.9rem; 100 116 padding-right: 0.5rem; 101 117 color: var(--cs-gliph-color); … … 105 121 106 122 span.cs-location-gliph::before { 107 content: "\f041"; 108 font-family: "FontAwesome"; 123 content: "\e801"; 124 font-family: "glyphs"; 125 font-size: 0.9rem; 109 126 padding-right: 0.7rem; 110 127 color: var(--cs-gliph-color); -
cs-integration/trunk/public/shortcodes/class-cs-calendar-event-view.php
r3350221 r3354836 70 70 // Display the caret link to reveal the hidden event details 71 71 $output .= '<button class="cs-clickable-caret" aria-label="Open Modal" onclick="cs_revealEventDetails(this)">' . "\n" 72 . ' <svg width="16" height="16" viewBox="0 0 16 16">' . "\n"73 . ' <path d="m 4,6 4,5 4,-5 z"/>' . "\n"72 . ' <svg fill="none" viewBox="0 0 16 16" height="16" width="16" stroke="currentColor">' . "\n" 73 . ' <path fill-rule="evenodd" clip-rule="evenodd" d="M3.4 4.5a1 1 0 0 0-.8.6 1 1 0 0 0 .2 1.2l4.5 5c.4.4 1 .4 1.4 0l4.5-5c.3-.3.4-.7.2-1a1 1 0 0 0-.8-.7z" fill="#000" style="stroke-width: 1;"/>' . "\n" 74 74 . ' </svg>' . "\n" 75 75 . '</button>' . "\n";
Note: See TracChangeset
for help on using the changeset viewer.