Index: openacs-4/packages/fa-icons/www/sitewide-admin/sample.tcl~ =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/fa-icons/www/sitewide-admin/Attic/sample.tcl~,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/fa-icons/www/sitewide-admin/sample.tcl~ 17 Apr 2022 10:41:37 -0000 1.1.2.1 @@ -0,0 +1,73 @@ +ad_page_contract { + @author Gustaf Neumann + + @creation-date Jan 1, 2020 +} { +} + +set resource_info [::fa_icons::resource_info] + +set title "Sample Icons" +set context [list [list "." "Boostrap Icons"] $title] + +# local URL +set URL /resources/fa-icons/fa-icons-$::fa_icons::version/ +#set CSS_URL $URL/fa-icons.css + +# +# The CSS file will handle the .woff files as well, like e.g. +# www/resources/fa-icons-1.8.1/fonts/fa-icons.woff +# + +# CDN URL for style sheet as recommended by +# https://icons.getbootstrap.com/#icon-font +# +# set CSS_URL https://cdn.jsdelivr.net/npm/fa-icons@1.8.1/font/fa-icons.css + +# +# Direct Cloudflare +# +# set CSS_URL https://cdnjs.cloudflare.com/ajax/libs/fa-icons/$::fa_icons::version/font/fa-icons.min.css + +# +# Generic URL for CSS (based on URN) +# +set CSS_URL urn:ad:css:fa-icons + +template::head::add_css -href $CSS_URL + +set content [subst { +

Using an Bootstrap Icons as SVG image

+

Bootstrap Bootstrap + +

Using Bootstrap Icons as fonts (sample)

+ +
+ GitHub
+ archive
+ arrow-up-circle
+ arrow-right-circle
+ arrow-up-right-square
+ arrow-up-square
+ box-arrow-up-right
+ check
+ clock-history
+ cloud
+ envelope
+ eye
+ eyeglasses
+ file-earmark
+ files
+ folder
+ folder-symlink
+ info-square
+ pencil-square
+ trash
+ upload
+
+ +

Resource info for Bootstrap Icons

+ +

[join [lmap {k v} $resource_info {string cat }]]
$k ": " $v
+}] +