{"id":58,"date":"2012-02-06T14:16:12","date_gmt":"2012-02-06T21:16:12","guid":{"rendered":"http:\/\/mtcahn.org\/events\/"},"modified":"2015-03-26T02:02:02","modified_gmt":"2015-03-26T08:02:02","slug":"events","status":"publish","type":"page","link":"https:\/\/mtcahn.org\/?page_id=58","title":{"rendered":"Events"},"content":{"rendered":"<p>After it was all over, Sue sent us a letter to thank us for all the hard work and excellent event!<\/p>\n<p>SueH letter to CAHN<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;?php<br \/>\n\/*<br \/>\nPlugin Name: jQuery Image Carousel for WordPress<br \/>\nPlugin URI:<br \/>\nDescription: Use shortcodes in your posts to display multiple images in a carousel.<br \/>\nVersion: 1.0.0<br \/>\nAuthor: Ankur Taxali<br \/>\nAuthor URI: https:\/\/github.com\/oldmill1<br \/>\nLicense: GPL2<br \/>\n*\/<\/p>\n<p>wp_enqueue_script(&#8220;jquery&#8221;); \/\/ load jQuery for those who don&#8217;t have it<\/p>\n<p>wp_enqueue_script(<br \/>\n&#8216;jic&#8217;,<br \/>\nplugins_url( &#8216;js\/jic.js&#8217;, __FILE__ ),<br \/>\nNULL,<br \/>\nNULL,<br \/>\nTRUE<br \/>\n);<\/p>\n<p>wp_enqueue_script(<br \/>\n&#8216;jqueryui&#8217;,<br \/>\nplugins_url( &#8216;js\/jquery-ui.min.js&#8217;, __FILE__ ),<br \/>\nNULL,<br \/>\nNULL,<br \/>\nTRUE<br \/>\n);<\/p>\n<p>wp_enqueue_style(<br \/>\n&#8216;jic-styles&#8217;,<br \/>\nplugins_url( &#8216;css\/style.css&#8217;, __FILE__ )<br \/>\n);<\/p>\n<p>\/\/[carousel size=&#8221;medium&#8221;]<br \/>\nfunction carousel_func( $atts ){<br \/>\nextract( shortcode_atts( array(<br \/>\n&#8216;size&#8217; =&gt; &#8216;medium&#8217;,<br \/>\n&#8216;effect&#8217; =&gt; &#8216;none&#8217;<br \/>\n), $atts ) );<\/p>\n<p>$postID = get_the_id();<br \/>\n$num = -1;<\/p>\n<p>$sizes = array(&#8220;thumbnail&#8221;, &#8220;medium&#8221;, &#8220;large&#8221;, &#8220;full&#8221;);<br \/>\nif ( ! in_array( $size, $sizes ) ) {<br \/>\n$size = &#8220;medium&#8221;;<br \/>\n}<\/p>\n<p>$effects = array(&#8220;blind&#8221;, &#8220;bounce&#8221;, &#8220;clip&#8221;, &#8220;drop&#8221;, &#8220;explode&#8221;, &#8220;fold&#8221;, &#8220;highlight&#8221;, &#8220;puff&#8221;, &#8220;pulsate&#8221;, &#8220;scale&#8221;, &#8220;shake&#8221;, &#8220;size&#8221;, &#8220;slide&#8221;);<br \/>\nif ( ! in_array( $effect, $effects ) ) {<br \/>\n$effect = &#8220;none&#8221;;<br \/>\n}<\/p>\n<p>$images = get_children(<br \/>\narray(<br \/>\n&#8216;post_parent&#8217; =&gt; $postID,<br \/>\n&#8216;post_type&#8217; =&gt; &#8216;attachment&#8217;,<br \/>\n&#8216;numberposts&#8217; =&gt; $num,<br \/>\n&#8216;order&#8217; =&gt; &#8216;ASC&#8217;,<br \/>\n&#8216;orderby&#8217; =&gt; &#8216;ID&#8217;,<br \/>\n&#8216;post_mime_type&#8217; =&gt; &#8216;image&#8217;<br \/>\n)<br \/>\n);<\/p>\n<p>if ( !empty( $images ) ) {<br \/>\n\/\/ we&#8217;ve got some images !<br \/>\nforeach ( $images as $image ) {<br \/>\n$attachmenturl = wp_get_attachment_url($image-&gt;ID);<br \/>\n$attachmentthumbsrc = wp_get_attachment_image_src( $image-&gt;ID, $size );<br \/>\n$img_title = $image-&gt;post_title;<br \/>\n$imagelocs[] = array(<br \/>\n&#8220;full&#8221; =&gt; $attachmenturl,<br \/>\n&#8220;thumb&#8221; =&gt; $attachmentthumbsrc[0],<br \/>\n&#8220;title&#8221; =&gt; $img_title,<br \/>\n&#8220;width&#8221; =&gt; $attachmentthumbsrc[1],<br \/>\n&#8220;height&#8221; =&gt; $attachmentthumbsrc[2]<br \/>\n);<br \/>\n}<br \/>\n}<\/p>\n<p>$build = &#8220;&lt;div id=&#8217;jquery_image_carousel&#8217; &#8220;;<br \/>\nif ( $effect != &#8220;none&#8221; ) {<br \/>\n$build .= &#8221; class=&#8217;jic-effect-{$effect}'&#8221;;<br \/>\n}<br \/>\n$build .= &#8220;&gt;&#8221;;<br \/>\n$build .= &#8220;&lt;ul&gt;&#8221;;<br \/>\nforeach ( $imagelocs as $imageloc ) {<br \/>\n$build .= &#8220;&lt;li&gt;&lt;img src='{$imageloc[&#8216;full&#8217;]}&#8217; width='{$imageloc[&#8216;width&#8217;]}&#8217; height='{$imageloc[&#8216;height&#8217;]}&#8217; \/&gt;&lt;div class=&#8217;caption&#8217;&gt;&lt;h6&gt;{$imageloc[&#8216;title&#8217;]}&lt;\/h6&gt;&lt;\/div&gt;&lt;\/li&gt;&#8221;;<br \/>\n}<br \/>\n$build .= &#8220;&lt;\/ul&gt;&#8221;;<br \/>\n$build .= &#8220;&lt;a href=&#8217;#&#8217; class=&#8217;jic_nav jic_previous&#8217;&gt;Previous&lt;\/a&gt;&#8221;;<br \/>\n$build .= &#8220;&lt;a href=&#8217;#&#8217; class=&#8217;jic_nav jic_next&#8217;&gt;Next&lt;\/a&gt;&#8221;;<br \/>\n$build .= &#8220;&lt;\/div&gt;&#8221;;<\/p>\n<p>return $build;<br \/>\n}<\/p>\n<p>add_shortcode( &#8216;carousel&#8217;, &#8216;carousel_func&#8217; );<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After it was all over, Sue sent us a letter to thank us for all the hard work and excellent event! SueH letter to CAHN [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-58","page","type-page","status-publish","hentry","post"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Events - Montana Center to Advance Health through Nursing<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mtcahn.org\/?page_id=58\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Events - Montana Center to Advance Health through Nursing\" \/>\n<meta property=\"og:description\" content=\"After it was all over, Sue sent us a letter to thank us for all the hard work and excellent event! SueH letter to CAHN [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mtcahn.org\/?page_id=58\" \/>\n<meta property=\"og:site_name\" content=\"Montana Center to Advance Health through Nursing\" \/>\n<meta property=\"article:modified_time\" content=\"2015-03-26T08:02:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mtcahn.org\/?page_id=58\",\"url\":\"https:\/\/mtcahn.org\/?page_id=58\",\"name\":\"Events - Montana Center to Advance Health through Nursing\",\"isPartOf\":{\"@id\":\"https:\/\/mtcahn.org\/#website\"},\"datePublished\":\"2012-02-06T21:16:12+00:00\",\"dateModified\":\"2015-03-26T08:02:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/mtcahn.org\/?page_id=58#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mtcahn.org\/?page_id=58\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mtcahn.org\/?page_id=58#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mtcahn.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Events\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mtcahn.org\/#website\",\"url\":\"https:\/\/mtcahn.org\/\",\"name\":\"Montana Center to Advance Health through Nursing\",\"description\":\"Better Health. Best Practice. Exceptional Leaders.\",\"publisher\":{\"@id\":\"https:\/\/mtcahn.org\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mtcahn.org\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/mtcahn.org\/#organization\",\"name\":\"Montana Center to Advance Health through Nursing\",\"url\":\"https:\/\/mtcahn.org\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mtcahn.org\/#\/schema\/logo\/image\/\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Montana Center to Advance Health through Nursing\"},\"image\":{\"@id\":\"https:\/\/mtcahn.org\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Events - Montana Center to Advance Health through Nursing","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mtcahn.org\/?page_id=58","og_locale":"en_US","og_type":"article","og_title":"Events - Montana Center to Advance Health through Nursing","og_description":"After it was all over, Sue sent us a letter to thank us for all the hard work and excellent event! SueH letter to CAHN [&hellip;]","og_url":"https:\/\/mtcahn.org\/?page_id=58","og_site_name":"Montana Center to Advance Health through Nursing","article_modified_time":"2015-03-26T08:02:02+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mtcahn.org\/?page_id=58","url":"https:\/\/mtcahn.org\/?page_id=58","name":"Events - Montana Center to Advance Health through Nursing","isPartOf":{"@id":"https:\/\/mtcahn.org\/#website"},"datePublished":"2012-02-06T21:16:12+00:00","dateModified":"2015-03-26T08:02:02+00:00","breadcrumb":{"@id":"https:\/\/mtcahn.org\/?page_id=58#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mtcahn.org\/?page_id=58"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mtcahn.org\/?page_id=58#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mtcahn.org\/"},{"@type":"ListItem","position":2,"name":"Events"}]},{"@type":"WebSite","@id":"https:\/\/mtcahn.org\/#website","url":"https:\/\/mtcahn.org\/","name":"Montana Center to Advance Health through Nursing","description":"Better Health. Best Practice. Exceptional Leaders.","publisher":{"@id":"https:\/\/mtcahn.org\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mtcahn.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mtcahn.org\/#organization","name":"Montana Center to Advance Health through Nursing","url":"https:\/\/mtcahn.org\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mtcahn.org\/#\/schema\/logo\/image\/","url":"","contentUrl":"","caption":"Montana Center to Advance Health through Nursing"},"image":{"@id":"https:\/\/mtcahn.org\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/mtcahn.org\/index.php?rest_route=\/wp\/v2\/pages\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mtcahn.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mtcahn.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mtcahn.org\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/mtcahn.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58"}],"version-history":[{"count":0,"href":"https:\/\/mtcahn.org\/index.php?rest_route=\/wp\/v2\/pages\/58\/revisions"}],"wp:attachment":[{"href":"https:\/\/mtcahn.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}