{"id":1426,"date":"2018-02-07T17:20:14","date_gmt":"2018-02-07T17:20:14","guid":{"rendered":"http:\/\/wordpress.library.illinois.edu\/wp-training\/?page_id=1426"},"modified":"2022-10-10T16:34:03","modified_gmt":"2022-10-10T16:34:03","slug":"unit-info-shortcode","status":"publish","type":"page","link":"https:\/\/wordpress.library.illinois.edu\/wp-training\/shortcodes\/unit-info-shortcode\/","title":{"rendered":"Unit Info Shortcode"},"content":{"rendered":"<h2>Use Case<\/h2>\n<p>The unit info shortcode can be used to display a unit&#8217;s hours, location, and contact information.<\/p>\n<h2>How to Use<\/h2>\n<h3>Default behavior<\/h3>\n<p>Choose a unit id from the list at the bottom of the page and pass it as the &#8220;unit&#8221; attribute of the shortcode. For example, ACES (Funk) Library &#8212;&gt; 9.<\/p>\n<div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-neutral-200 !sh-text-black \"><div><div class=\"\">\n<h4>Code<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><br \/>\n[unit-info unit=\"9\"]<br \/>\n<\/div><\/div><\/div><\/p>\n<h4>Result<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><br \/>\n\n  <div id='unitinfo785525160'><\/div>\n  <script> \n    setTimeout(function(){\n        fetchUnitInfo( 9, \n            function(data) { \n                showUnitInfo(data[0], 'unitinfo785525160', 'false', 'false', '<br>', '', 'true', '', '', 'false', 'true'); \n            } \n        );\n    }, 500);\n\n   <\/script><br \/>\n<\/div><\/div><\/div><br \/>\n<\/div><\/div><\/div><\/p>\n<h3>Adding attributes<\/h3>\n<div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-neutral-200 !sh-text-black \"><div><div class=\"\">\n<h4>Code<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><br \/>\n<code>[unit-info unit=\"9\" address=\"false\" title=\"Funk Library Hours:\"]<\/code><br \/>\n<\/div><\/div><\/div><\/p>\n<h4>Result<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><br \/>\n\n  <div id='unitinfo936115611'><\/div>\n  <script> \n    setTimeout(function(){\n        fetchUnitInfo( 9, \n            function(data) { \n                showUnitInfo(data[0], 'unitinfo936115611', 'false', 'false', '<br>', 'Funk Library Hours:', 'false', '', '', 'false', 'true'); \n            } \n        );\n    }, 500);\n\n   <\/script><br \/>\n<\/div><\/div><\/div><br \/>\n<\/div><\/div><\/div><\/p>\n<h3 id=\"attributes\">Required Attribute<\/h3>\n<ul>\n<li>unit: empty<\/li>\n<\/ul>\n<h3>Default Attributes<\/h3>\n<ul>\n<li>delimiter: &#8216;&lt;br&gt;&#8217;<\/li>\n<li>address: true<\/li>\n<li>hours: true<\/li>\n<li>label: true<\/li>\n<\/ul>\n<h3>Additional Attributes<\/h3>\n<ul>\n<li>bold_label: &#8216;false&#8217;<\/li>\n<li>bold_value: &#8216;false&#8217;<\/li>\n<li>bold: &#8216;false&#8217;<\/li>\n<li>title: &#8221;<\/li>\n<li>phone: &#8221;<\/li>\n<li>email: &#8221;<\/li>\n<\/ul>\n<h3>Unit List<\/h3>\n<p>The list contains all unit identifier numbers and is displayed as follows:<strong> Unit name <\/strong>&#8212;&gt;<strong> Unit ID<\/strong><\/p>\n<ul>\n<li><strong>Grainger Engineering Library Information Center<\/strong> &#8212;&gt; 1<\/li>\n<li><strong>Mathematics Library<\/strong> &#8212;&gt; 3<\/li>\n<li><strong>Communications Library<\/strong> &#8212;&gt; 5<\/li>\n<li><strong>International and Area Studies Library<\/strong> &#8212;&gt; 6<\/li>\n<li><strong>ACES (Funk) Library<\/strong> &#8212;&gt; 9<\/li>\n<li><strong>Social Sciences, Health, and Education Library (SSHEL)<\/strong> &#8212;&gt; 11<\/li>\n<li><strong>Architecture and Art (Ricker) Library<\/strong> &#8212;&gt; 12<\/li>\n<li><strong>University Archives<\/strong> &#8212;&gt; 13<\/li>\n<li><strong>Map Library<\/strong> &#8212;&gt; 16<\/li>\n<li><strong>Rare Book and Manuscript Library<\/strong> &#8212;&gt; 22<\/li>\n<li><strong>Literatures and Languages Library<\/strong> &#8212;&gt; 23<\/li>\n<li><strong>Music and Performing Arts Library (MPAL)<\/strong> &#8212;&gt; 27<\/li>\n<li><strong>Law Library<\/strong> &#8212;&gt; 29<\/li>\n<li><strong>Illinois History and Lincoln Collections<\/strong> &#8212;&gt; 31<\/li>\n<li><strong>University High School Library<\/strong> &#8212;&gt; 34<\/li>\n<li><strong>Center for Children&#8217;s Books<\/strong> &#8212;&gt; 37<\/li>\n<li><strong>Central Access Services<\/strong> &#8212;&gt; 38<\/li>\n<li><strong>Illinois Fire Service Institute Library<\/strong> &#8212;&gt; 44<\/li>\n<li><strong>Interlibrary Loan and Document Delivery<\/strong> &#8212;&gt; 50<\/li>\n<li><strong>Residence Hall Libraries &#8211; Urbana<\/strong> &#8212;&gt; 56<\/li>\n<li><strong>Scholarly Commons<\/strong> &#8212;&gt; 57<\/li>\n<li><strong>Sousa Archives &amp; Center For American Music<\/strong> &#8212;&gt; 59<\/li>\n<li><strong>Veterinary Medicine Library<\/strong> &#8212;&gt; 73<\/li>\n<li><strong>History, Philosophy, and Newspaper Library<\/strong> &#8212;&gt; 75<\/li>\n<li><strong>Chemistry Library<\/strong> &#8212;&gt; 76<\/li>\n<li><strong>Ask a Librarian<\/strong> &#8212;&gt; 78<\/li>\n<li><strong>Main Library<\/strong> &#8212;&gt; 80<\/li>\n<li><strong>Student Life and Culture Archives \/ Archives Research Center<\/strong> &#8212;&gt; 81<\/li>\n<li><strong>Residence Hall Libraries &#8211; Ikenberry<\/strong> &#8212;&gt; 82<\/li>\n<li><strong>Oak Street Library<\/strong> &#8212;&gt; 83<\/li>\n<li><strong>American Library Association Archives<\/strong> &#8212;&gt; 156<\/li>\n<li><strong>Teaching, Learning, and Academic Support<\/strong> &#8212;&gt; 157<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Use Case The unit info shortcode can be used to display a unit&#8217;s hours, location, and contact information. How to Use Default behavior Choose a unit id from the list at the bottom of the page and pass it as the &#8220;unit&#8221; attribute of the shortcode. For example, ACES (Funk) Library &#8212;&gt; 9. Code Result [&hellip;]<\/p>\n","protected":false},"author":71,"featured_media":0,"parent":24,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-1426","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/pages\/1426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/comments?post=1426"}],"version-history":[{"count":10,"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/pages\/1426\/revisions"}],"predecessor-version":[{"id":3175,"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/pages\/1426\/revisions\/3175"}],"up":[{"embeddable":true,"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/pages\/24"}],"wp:attachment":[{"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/media?parent=1426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}