Server : Apache System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : palandch ( 1163) PHP Version : 7.1.33 Disable Function : NONE Directory : /home/palandch/www/core/cache_back/resource/web/resources/ |
<?php return array ( 'resourceClass' => 'modDocument', 'resource' => array ( 'id' => 58, 'type' => 'document', 'contentType' => 'text/html', 'pagetitle' => 'Professional Development', 'longtitle' => 'Professional Development', 'description' => '', 'alias' => 'professional-development', 'link_attributes' => '', 'published' => 1, 'pub_date' => 0, 'unpub_date' => 0, 'parent' => 0, 'isfolder' => 0, 'introtext' => '<strong>PA LAND CHOICES</strong> was developed by the Department of Conservation and Natural Resources in partnership with the Pennsylvania Land Trust Association for the purpose of teaching citizens about their role in decisions that affect the character of their community.', 'content' => '<h3>Professional Development Workshops and Citizen Academies</h3> <p>To learn how to effectively put the PA Land Choices curriculum into practice, educators and community leaders are encouraged to attend a training workshop. The training is intended to provide participants with the basic knowledge of the course objectives and resources as well as an opportunity to network and gain confidence in using the materials.</p> <p>Many State Park educators are certified facilitators for PA Land Choices and can provide regional training opportunities. Contact your local state park to inquire about scheduling a workshop for your group or contact the PA Land Choices Coordinator, Bureau of State Parks at 717-783-4356. If you are interested in becoming a certified facilitator for PA Land Choices, contact the PA Land Choices Coordinator, Bureau of State Parks at 717-783-4356.</p> <p>We request that anyone conducting workshops or utilizing the materials provide feedback to the PA Land Choices coordinator to assess the materials and solicit recommendations for improvement.</p> <p>Partnership for P.L.A.C.E. (Pennsylvania Land and Community Education)</p> <p>To advance citizen land education, planning and conservation, an education committee was developed called the Partnership for P.L.A.C.E. The partnership consists of representation from citizen groups, planners, municipal officials, land trusts, educators and government. The role of the partnership is for networking and advancing land education for citizens in Pennsylvania.</p> <p>Workshops may be marketed by using the title P.L.A.C.E. which is the acronym for "Pennsylvania Land and Community Education." P.L.A.C.E. is the umbrella that encompasses additional materials and resources.Workshops are conducted in partnership with local planners and municipal officials.</p> <p>PLACE workshops may include the following resources:</p> <ul> <li>Pennsylvania Land Choices</li> <li>Save Our Land, Save Our Towns, book and video by Thomas Hylton. Select copies have been donated for participants in education workshops.</li> <li>Exploring Environmental Issues: Places We Live, by Project Learning Tree through PA Department of Education Curriculum Advisor for Environment and Ecology.</li> <li>Project Citizen, Center for Civic Education, National Conference of State Legislatures</li> <li>Community of Choices, CD Narrated by Edward T. McMahon, The Dunn Foundation, The Conservation Fund</li> <li>In Their Own Words: Fifteen Stories of Conservation and Inspiration, Pennsylvania Land Trust Association, <a href="http://www.conserveland.org">www.conserveland.org</a></li> <li>Maps from PA Geologic Survey</li> <li>Better Models for Development in Pennsylvania, Edward T. McMahon and Shelley S. Mastran</li> <li>DCED Governor\'s Center for Local Government Services reports and resources</li> </ul> <p>For more information, please contact:</p> <p>PA Land Choices Coordinator<br />DCNR, Bureau of State Parks<br />E-mail: <a href="mailto:palandchoices@state.pa.us">palandchoices@state.pa.us</a><br />(717) 783-4356</p> <p> </p> <h3>Additional Resources</h3> <p>An ever-expanding list of <a href="resource-list">Supplemental Materials and Resources</a> is <a href="resource-list">Available Here >></a></p>', 'richtext' => 1, 'template' => 6, 'menuindex' => 3, 'searchable' => 1, 'cacheable' => 1, 'createdby' => 1, 'createdon' => 1351196209, 'editedby' => 1, 'editedon' => 1373986994, 'deleted' => 0, 'deletedon' => 0, 'deletedby' => 0, 'publishedon' => 1351196160, 'publishedby' => 1, 'menutitle' => 'Professional Development', 'donthit' => 0, 'privateweb' => 0, 'privatemgr' => 0, 'content_dispo' => 0, 'hidemenu' => 0, 'class_key' => 'modDocument', 'context_key' => 'web', 'content_type' => 1, 'uri' => 'professional-development.html', 'uri_override' => 0, 'hide_children_in_tree' => 0, 'show_in_tree' => 1, 'properties' => NULL, 'page-hero' => array ( 0 => 'page-hero', 1 => 'img/heros/prof-dev-hero.jpg', 2 => 'text', 3 => NULL, 4 => 'image', ), 'sidebar' => array ( 0 => 'sidebar', 1 => '<div id="calendar">[[$calendar]]</div>', 2 => 'default', 3 => NULL, 4 => 'richtext', ), '_content' => '<html> <head> <meta name="google-site-verification" content="NICgehx2flyT-RKkB9Aolo8eYlA6dxk8Q_KwJebnSjk" /> <title>Pennsylvania Land Choices - Professional Development</title> <link REL="SHORTCUT ICON" HREF="img/favicon.ico"> <link href=\'http://fonts.googleapis.com/css?family=Archivo+Black\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Archivo+Narrow\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Francois+One\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300\' rel=\'stylesheet\' type=\'text/css\'> <link href="css.css" rel="stylesheet" type="text/css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="js/jquery.cycle.all.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#header li.active img").each(function () { var src = $(this).attr(\'src\'); $(this).attr(\'src\', src.replace("-off", "-on")); $(this).parent().parent().removeClass(\'not-active\'); }); $("#header li.not-active img").hover( function(){this.src = this.src.replace("-off","-on");}, function(){this.src = this.src.replace("-on","-off"); }); $("#sub-interest li.active img").each(function () { var src = $(this).attr(\'src\'); $(this).attr(\'src\', src.replace("-off", "-on")); }); $("#interests li img").hover( function(){this.src = this.src.replace("-off","-on");}, function(){this.src = this.src.replace("-on","-off"); }); $("div.parent a").click(function () { $(this).parent().next(\'.child\').toggle(\'slow\'); $(this).parent().toggleClass(\'open\'); return false; }); }); function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } </script> </head> <body onLoad="MM_preloadImages(\'img/nav-1-on.png\',\'img/nav-2-on.png\',\'img/nav-3-on.png\',\'img/nav-4-on.png\')"> <div id="wrap"> <div id="header"> <a href="index.html" title="Pennsylvania Land Choices Home"><img src="img/logo.png" width="297" height="73" alt="Pennsylvania Land Choices Home" id="logo" ></a> <p>Join The Conversation: <a href="https://www.facebook.com/visitPAparks" title="Facebook" target="_blank"><img src="img/icon-facebook.png" width="20" height="20" alt="Facebook"></a> <a href="https://twitter.com/visitPAparks" title="Twitter" target="_blank"><img src="img/icon-twitter.png" width="20" height="20" alt="Twitter"></a></p> <ul> <li class="not-active [[!If? &subject=`58` &operator=`EQ` &operand=`59` &then=`active` &else=`` ]]"><a href="getting-started.html" title="Getting Started"><img src="img/nav-1-off.png" width="145" height="42" alt="Getting Started"></a></li> <li class="not-active [[!If? &subject=`58` &operator=`EQ` &operand=`2` &then=`active` &else=`` ]]"><a href="success-stories.html" title="Success Stories"><img src="img/nav-2-off.png" width="139" height="42" alt="Success Stories"></a></li> <li class="not-active [[!If? &subject=`58` &operator=`EQ` &operand=`58` &then=`active` &else=`` ]]"><a href="professional-development.html" title="Professional Development"><img src="img/nav-3-off.png" width="213" height="42" alt="Professional Development"></a></li> <li class="not-active [[!If? &subject=`58` &operator=`EQ` &operand=`57` &then=`active` &else=`` ]]"><a href="contact-us.html" title="Contact Us"><img src="img/nav-4-off.png" width="116" height="42" alt="Contact Us"></a></li> </ul> </div> <!-- end header --> <div id="content" class="white"> <div style="padding:10px 35px 35px 40px;"> <h1>Professional Development</h1> <div class="page-hero"> <h2><strong>PA LAND CHOICES</strong> was developed by the Department of Conservation and Natural Resources in partnership with the Pennsylvania Land Trust Association for the purpose of teaching citizens about their role in decisions that affect the character of their community.</h2> <img src="/~palandch/assets/components/phpthumbof/cache/prof-dev-hero.13f3dd08370887e34f2f97b7598e42fe58.jpg" alt="Story" /> </div><!-- end story hero --> </div> <div class="page-content"> <h3>Professional Development Workshops and Citizen Academies</h3> <p>To learn how to effectively put the PA Land Choices curriculum into practice, educators and community leaders are encouraged to attend a training workshop. The training is intended to provide participants with the basic knowledge of the course objectives and resources as well as an opportunity to network and gain confidence in using the materials.</p> <p>Many State Park educators are certified facilitators for PA Land Choices and can provide regional training opportunities. Contact your local state park to inquire about scheduling a workshop for your group or contact the PA Land Choices Coordinator, Bureau of State Parks at 717-783-4356. If you are interested in becoming a certified facilitator for PA Land Choices, contact the PA Land Choices Coordinator, Bureau of State Parks at 717-783-4356.</p> <p>We request that anyone conducting workshops or utilizing the materials provide feedback to the PA Land Choices coordinator to assess the materials and solicit recommendations for improvement.</p> <p>Partnership for P.L.A.C.E. (Pennsylvania Land and Community Education)</p> <p>To advance citizen land education, planning and conservation, an education committee was developed called the Partnership for P.L.A.C.E. The partnership consists of representation from citizen groups, planners, municipal officials, land trusts, educators and government. The role of the partnership is for networking and advancing land education for citizens in Pennsylvania.</p> <p>Workshops may be marketed by using the title P.L.A.C.E. which is the acronym for "Pennsylvania Land and Community Education." P.L.A.C.E. is the umbrella that encompasses additional materials and resources.Workshops are conducted in partnership with local planners and municipal officials.</p> <p>PLACE workshops may include the following resources:</p> <ul> <li>Pennsylvania Land Choices</li> <li>Save Our Land, Save Our Towns, book and video by Thomas Hylton. Select copies have been donated for participants in education workshops.</li> <li>Exploring Environmental Issues: Places We Live, by Project Learning Tree through PA Department of Education Curriculum Advisor for Environment and Ecology.</li> <li>Project Citizen, Center for Civic Education, National Conference of State Legislatures</li> <li>Community of Choices, CD Narrated by Edward T. McMahon, The Dunn Foundation, The Conservation Fund</li> <li>In Their Own Words: Fifteen Stories of Conservation and Inspiration, Pennsylvania Land Trust Association, <a href="http://www.conserveland.org">www.conserveland.org</a></li> <li>Maps from PA Geologic Survey</li> <li>Better Models for Development in Pennsylvania, Edward T. McMahon and Shelley S. Mastran</li> <li>DCED Governor\'s Center for Local Government Services reports and resources</li> </ul> <p>For more information, please contact:</p> <p>PA Land Choices Coordinator<br />DCNR, Bureau of State Parks<br />E-mail: <a href="mailto:palandchoices@state.pa.us">palandchoices@state.pa.us</a><br />(717) 783-4356</p> <p> </p> <h3>Additional Resources</h3> <p>An ever-expanding list of <a href="resource-list">Supplemental Materials and Resources</a> is <a href="resource-list">Available Here >></a></p> </div><!-- end page-content --> <div class="sidebar"> <div id="calendar"><h4>Calendar of events</h4> <iframe src="https://www.google.com/calendar/embed?showPrint=0&showTz=0&mode=AGENDA&height=800&wkst=1&bgcolor=%23FFFFFF&src=greentreks.tv_tuc7h5uio10h5gfibqmic0hlsc%40group.calendar.google.com&color=%235229A3&ctz=America%2FNew_York" style=" border-width:0 " width="250" height="800" frameborder="0" scrolling="no"></iframe> <h5><a href="https://www.google.com/calendar/embed?src=greentreks.tv_tuc7h5uio10h5gfibqmic0hlsc%40group.calendar.google.com&ctz=America/New_York" target="_blank">View Full Calendar</a></h5></div> </div> <div class="clear"></div> </div> <!-- end content --> <div id="footer"> <p>PA Land Choices has been developed to provide participants with a basic understanding of community government and the powerful role of citizens who work toward common goals. The engaging activities in the manual provide opportunities to work collectively in teams, gaining knowledge and skills that will be useful for a lifetime. Workshops involve professional planners and other experts to help participants create, sustain and protect the special character or their neighborhoods. It is a lesson on citizenship and the democratic process practiced at one of the most important levels...right in your home town.</p> <p><a href="contact-us.html" title="Contact Us">Contact Us</a> | <a href="terms-of-use.html" title="Terms Of Use">Terms of Use</a></p> <p class="copyright">Copyright © 2013 Pennsylvania DCNR. All Rights Reserved.</p> <a href="http://www.dcnr.state.pa.us/index.aspx" target="_blank"><img src="img/footer-img-1.png" width="113" height="80" alt="Pennsylvania Department of Conservation" id="foot-1"></a> <a href="http://www.conserveland.org" target="_blank"><img src="img/footer-img-2.png" width="87" height="63" alt="Pennsylvania Land Trust Association" id="foot-2"></a> </div><!-- end footer --> </div><!-- end wrap --> </body> </html>', '_isForward' => false, ), 'contentType' => array ( 'id' => 1, 'name' => 'HTML', 'description' => 'HTML content', 'mime_type' => 'text/html', 'file_extensions' => '.html', 'headers' => NULL, 'binary' => 0, ), 'policyCache' => array ( ), 'elementCache' => array ( '[[*pagetitle]]' => 'Professional Development', '[[$head]]' => '<meta name="google-site-verification" content="NICgehx2flyT-RKkB9Aolo8eYlA6dxk8Q_KwJebnSjk" /> <title>Pennsylvania Land Choices - Professional Development</title> <link REL="SHORTCUT ICON" HREF="img/favicon.ico"> <link href=\'http://fonts.googleapis.com/css?family=Archivo+Black\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Archivo+Narrow\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Francois+One\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300\' rel=\'stylesheet\' type=\'text/css\'> <link href="css.css" rel="stylesheet" type="text/css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="js/jquery.cycle.all.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#header li.active img").each(function () { var src = $(this).attr(\'src\'); $(this).attr(\'src\', src.replace("-off", "-on")); $(this).parent().parent().removeClass(\'not-active\'); }); $("#header li.not-active img").hover( function(){this.src = this.src.replace("-off","-on");}, function(){this.src = this.src.replace("-on","-off"); }); $("#sub-interest li.active img").each(function () { var src = $(this).attr(\'src\'); $(this).attr(\'src\', src.replace("-off", "-on")); }); $("#interests li img").hover( function(){this.src = this.src.replace("-off","-on");}, function(){this.src = this.src.replace("-on","-off"); }); $("div.parent a").click(function () { $(this).parent().next(\'.child\').toggle(\'slow\'); $(this).parent().toggleClass(\'open\'); return false; }); }); function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } </script>', '[[UltimateParent]]' => '58', '[[$header]]' => '<div id="header"> <a href="index.html" title="Pennsylvania Land Choices Home"><img src="img/logo.png" width="297" height="73" alt="Pennsylvania Land Choices Home" id="logo" ></a> <p>Join The Conversation: <a href="https://www.facebook.com/visitPAparks" title="Facebook" target="_blank"><img src="img/icon-facebook.png" width="20" height="20" alt="Facebook"></a> <a href="https://twitter.com/visitPAparks" title="Twitter" target="_blank"><img src="img/icon-twitter.png" width="20" height="20" alt="Twitter"></a></p> <ul> <li class="not-active [[!If? &subject=`58` &operator=`EQ` &operand=`59` &then=`active` &else=`` ]]"><a href="getting-started.html" title="Getting Started"><img src="img/nav-1-off.png" width="145" height="42" alt="Getting Started"></a></li> <li class="not-active [[!If? &subject=`58` &operator=`EQ` &operand=`2` &then=`active` &else=`` ]]"><a href="success-stories.html" title="Success Stories"><img src="img/nav-2-off.png" width="139" height="42" alt="Success Stories"></a></li> <li class="not-active [[!If? &subject=`58` &operator=`EQ` &operand=`58` &then=`active` &else=`` ]]"><a href="professional-development.html" title="Professional Development"><img src="img/nav-3-off.png" width="213" height="42" alt="Professional Development"></a></li> <li class="not-active [[!If? &subject=`58` &operator=`EQ` &operand=`57` &then=`active` &else=`` ]]"><a href="contact-us.html" title="Contact Us"><img src="img/nav-4-off.png" width="116" height="42" alt="Contact Us"></a></li> </ul> </div> <!-- end header -->', '[[*introtext]]' => '<strong>PA LAND CHOICES</strong> was developed by the Department of Conservation and Natural Resources in partnership with the Pennsylvania Land Trust Association for the purpose of teaching citizens about their role in decisions that affect the character of their community.', '[[*page-hero:phpthumbof=`w=376&h=276&zc=1`]]' => '/~palandch/assets/components/phpthumbof/cache/prof-dev-hero.13f3dd08370887e34f2f97b7598e42fe58.jpg', '[[$calendar]]' => '<h4>Calendar of events</h4> <iframe src="https://www.google.com/calendar/embed?showPrint=0&showTz=0&mode=AGENDA&height=800&wkst=1&bgcolor=%23FFFFFF&src=greentreks.tv_tuc7h5uio10h5gfibqmic0hlsc%40group.calendar.google.com&color=%235229A3&ctz=America%2FNew_York" style=" border-width:0 " width="250" height="800" frameborder="0" scrolling="no"></iframe> <h5><a href="https://www.google.com/calendar/embed?src=greentreks.tv_tuc7h5uio10h5gfibqmic0hlsc%40group.calendar.google.com&ctz=America/New_York" target="_blank">View Full Calendar</a></h5>', '[[*sidebar]]' => '<div id="calendar"><h4>Calendar of events</h4> <iframe src="https://www.google.com/calendar/embed?showPrint=0&showTz=0&mode=AGENDA&height=800&wkst=1&bgcolor=%23FFFFFF&src=greentreks.tv_tuc7h5uio10h5gfibqmic0hlsc%40group.calendar.google.com&color=%235229A3&ctz=America%2FNew_York" style=" border-width:0 " width="250" height="800" frameborder="0" scrolling="no"></iframe> <h5><a href="https://www.google.com/calendar/embed?src=greentreks.tv_tuc7h5uio10h5gfibqmic0hlsc%40group.calendar.google.com&ctz=America/New_York" target="_blank">View Full Calendar</a></h5></div>', '[[~57]]' => 'contact-us.html', '[[~67]]' => 'terms-of-use.html', '[[$footer]]' => '<p>PA Land Choices has been developed to provide participants with a basic understanding of community government and the powerful role of citizens who work toward common goals. The engaging activities in the manual provide opportunities to work collectively in teams, gaining knowledge and skills that will be useful for a lifetime. Workshops involve professional planners and other experts to help participants create, sustain and protect the special character or their neighborhoods. It is a lesson on citizenship and the democratic process practiced at one of the most important levels...right in your home town.</p> <p><a href="contact-us.html" title="Contact Us">Contact Us</a> | <a href="terms-of-use.html" title="Terms Of Use">Terms of Use</a></p> <p class="copyright">Copyright © 2013 Pennsylvania DCNR. All Rights Reserved.</p> <a href="http://www.dcnr.state.pa.us/index.aspx" target="_blank"><img src="img/footer-img-1.png" width="113" height="80" alt="Pennsylvania Department of Conservation" id="foot-1"></a> <a href="http://www.conserveland.org" target="_blank"><img src="img/footer-img-2.png" width="87" height="63" alt="Pennsylvania Land Trust Association" id="foot-2"></a>', ), 'sourceCache' => array ( 'modChunk' => array ( 'head' => array ( 'fields' => array ( 'id' => 8, 'source' => 1, 'property_preprocess' => false, 'name' => 'head', 'description' => 'The Home Page head content', 'editor_type' => 0, 'category' => 1, 'cache_type' => 0, 'snippet' => '<meta name="google-site-verification" content="NICgehx2flyT-RKkB9Aolo8eYlA6dxk8Q_KwJebnSjk" /> <title>[[++site_name]] - [[*pagetitle]]</title> <link REL="SHORTCUT ICON" HREF="img/favicon.ico"> <link href=\'http://fonts.googleapis.com/css?family=Archivo+Black\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Archivo+Narrow\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Francois+One\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300\' rel=\'stylesheet\' type=\'text/css\'> <link href="css.css" rel="stylesheet" type="text/css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="js/jquery.cycle.all.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#header li.active img").each(function () { var src = $(this).attr(\'src\'); $(this).attr(\'src\', src.replace("-off", "-on")); $(this).parent().parent().removeClass(\'not-active\'); }); $("#header li.not-active img").hover( function(){this.src = this.src.replace("-off","-on");}, function(){this.src = this.src.replace("-on","-off"); }); $("#sub-interest li.active img").each(function () { var src = $(this).attr(\'src\'); $(this).attr(\'src\', src.replace("-off", "-on")); }); $("#interests li img").hover( function(){this.src = this.src.replace("-off","-on");}, function(){this.src = this.src.replace("-on","-off"); }); $("div.parent a").click(function () { $(this).parent().next(\'.child\').toggle(\'slow\'); $(this).parent().toggleClass(\'open\'); return false; }); }); function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } </script>', 'locked' => false, 'properties' => array ( ), 'static' => false, 'static_file' => '', 'content' => '<meta name="google-site-verification" content="NICgehx2flyT-RKkB9Aolo8eYlA6dxk8Q_KwJebnSjk" /> <title>[[++site_name]] - [[*pagetitle]]</title> <link REL="SHORTCUT ICON" HREF="img/favicon.ico"> <link href=\'http://fonts.googleapis.com/css?family=Archivo+Black\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Archivo+Narrow\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Francois+One\' rel=\'stylesheet\' type=\'text/css\'> <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300\' rel=\'stylesheet\' type=\'text/css\'> <link href="css.css" rel="stylesheet" type="text/css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="js/jquery.cycle.all.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#header li.active img").each(function () { var src = $(this).attr(\'src\'); $(this).attr(\'src\', src.replace("-off", "-on")); $(this).parent().parent().removeClass(\'not-active\'); }); $("#header li.not-active img").hover( function(){this.src = this.src.replace("-off","-on");}, function(){this.src = this.src.replace("-on","-off"); }); $("#sub-interest li.active img").each(function () { var src = $(this).attr(\'src\'); $(this).attr(\'src\', src.replace("-off", "-on")); }); $("#interests li img").hover( function(){this.src = this.src.replace("-off","-on");}, function(){this.src = this.src.replace("-on","-off"); }); $("div.parent a").click(function () { $(this).parent().next(\'.child\').toggle(\'slow\'); $(this).parent().toggleClass(\'open\'); return false; }); }); function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } </script>', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( 'id' => 1, 'name' => 'Filesystem', 'description' => '', 'class_key' => 'sources.modFileMediaSource', 'properties' => array ( ), 'is_stream' => true, ), ), 'header' => array ( 'fields' => array ( 'id' => 1, 'source' => 1, 'property_preprocess' => false, 'name' => 'header', 'description' => 'Global Header', 'editor_type' => 0, 'category' => 1, 'cache_type' => 0, 'snippet' => '<div id="header"> <a href="index.html" title="Pennsylvania Land Choices Home"><img src="img/logo.png" width="297" height="73" alt="Pennsylvania Land Choices Home" id="logo" ></a> <p>Join The Conversation: <a href="https://www.facebook.com/visitPAparks" title="Facebook" target="_blank"><img src="img/icon-facebook.png" width="20" height="20" alt="Facebook"></a> <a href="https://twitter.com/visitPAparks" title="Twitter" target="_blank"><img src="img/icon-twitter.png" width="20" height="20" alt="Twitter"></a></p> <ul> <li class="not-active [[!If? &subject=`[[UltimateParent]]` &operator=`EQ` &operand=`59` &then=`active` &else=`` ]]"><a href="getting-started.html" title="Getting Started"><img src="img/nav-1-off.png" width="145" height="42" alt="Getting Started"></a></li> <li class="not-active [[!If? &subject=`[[UltimateParent]]` &operator=`EQ` &operand=`2` &then=`active` &else=`` ]]"><a href="success-stories.html" title="Success Stories"><img src="img/nav-2-off.png" width="139" height="42" alt="Success Stories"></a></li> <li class="not-active [[!If? &subject=`[[UltimateParent]]` &operator=`EQ` &operand=`58` &then=`active` &else=`` ]]"><a href="professional-development.html" title="Professional Development"><img src="img/nav-3-off.png" width="213" height="42" alt="Professional Development"></a></li> <li class="not-active [[!If? &subject=`[[UltimateParent]]` &operator=`EQ` &operand=`57` &then=`active` &else=`` ]]"><a href="contact-us.html" title="Contact Us"><img src="img/nav-4-off.png" width="116" height="42" alt="Contact Us"></a></li> </ul> </div> <!-- end header -->', 'locked' => false, 'properties' => array ( ), 'static' => false, 'static_file' => '', 'content' => '<div id="header"> <a href="index.html" title="Pennsylvania Land Choices Home"><img src="img/logo.png" width="297" height="73" alt="Pennsylvania Land Choices Home" id="logo" ></a> <p>Join The Conversation: <a href="https://www.facebook.com/visitPAparks" title="Facebook" target="_blank"><img src="img/icon-facebook.png" width="20" height="20" alt="Facebook"></a> <a href="https://twitter.com/visitPAparks" title="Twitter" target="_blank"><img src="img/icon-twitter.png" width="20" height="20" alt="Twitter"></a></p> <ul> <li class="not-active [[!If? &subject=`[[UltimateParent]]` &operator=`EQ` &operand=`59` &then=`active` &else=`` ]]"><a href="getting-started.html" title="Getting Started"><img src="img/nav-1-off.png" width="145" height="42" alt="Getting Started"></a></li> <li class="not-active [[!If? &subject=`[[UltimateParent]]` &operator=`EQ` &operand=`2` &then=`active` &else=`` ]]"><a href="success-stories.html" title="Success Stories"><img src="img/nav-2-off.png" width="139" height="42" alt="Success Stories"></a></li> <li class="not-active [[!If? &subject=`[[UltimateParent]]` &operator=`EQ` &operand=`58` &then=`active` &else=`` ]]"><a href="professional-development.html" title="Professional Development"><img src="img/nav-3-off.png" width="213" height="42" alt="Professional Development"></a></li> <li class="not-active [[!If? &subject=`[[UltimateParent]]` &operator=`EQ` &operand=`57` &then=`active` &else=`` ]]"><a href="contact-us.html" title="Contact Us"><img src="img/nav-4-off.png" width="116" height="42" alt="Contact Us"></a></li> </ul> </div> <!-- end header -->', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( 'id' => 1, 'name' => 'Filesystem', 'description' => '', 'class_key' => 'sources.modFileMediaSource', 'properties' => array ( ), 'is_stream' => true, ), ), 'calendar' => array ( 'fields' => array ( 'id' => 22, 'source' => 1, 'property_preprocess' => false, 'name' => 'calendar', 'description' => 'The calendar chunk', 'editor_type' => 0, 'category' => 11, 'cache_type' => 0, 'snippet' => '<h4>Calendar of events</h4> <iframe src="https://www.google.com/calendar/embed?showPrint=0&showTz=0&mode=AGENDA&height=800&wkst=1&bgcolor=%23FFFFFF&src=greentreks.tv_tuc7h5uio10h5gfibqmic0hlsc%40group.calendar.google.com&color=%235229A3&ctz=America%2FNew_York" style=" border-width:0 " width="250" height="800" frameborder="0" scrolling="no"></iframe> <h5><a href="https://www.google.com/calendar/embed?src=greentreks.tv_tuc7h5uio10h5gfibqmic0hlsc%40group.calendar.google.com&ctz=America/New_York" target="_blank">View Full Calendar</a></h5>', 'locked' => false, 'properties' => array ( ), 'static' => false, 'static_file' => '', 'content' => '<h4>Calendar of events</h4> <iframe src="https://www.google.com/calendar/embed?showPrint=0&showTz=0&mode=AGENDA&height=800&wkst=1&bgcolor=%23FFFFFF&src=greentreks.tv_tuc7h5uio10h5gfibqmic0hlsc%40group.calendar.google.com&color=%235229A3&ctz=America%2FNew_York" style=" border-width:0 " width="250" height="800" frameborder="0" scrolling="no"></iframe> <h5><a href="https://www.google.com/calendar/embed?src=greentreks.tv_tuc7h5uio10h5gfibqmic0hlsc%40group.calendar.google.com&ctz=America/New_York" target="_blank">View Full Calendar</a></h5>', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( 'id' => 1, 'name' => 'Filesystem', 'description' => '', 'class_key' => 'sources.modFileMediaSource', 'properties' => array ( ), 'is_stream' => true, ), ), 'footer' => array ( 'fields' => array ( 'id' => 6, 'source' => 1, 'property_preprocess' => false, 'name' => 'footer', 'description' => 'Global Footer', 'editor_type' => 0, 'category' => 1, 'cache_type' => 0, 'snippet' => '<p>PA Land Choices has been developed to provide participants with a basic understanding of community government and the powerful role of citizens who work toward common goals. The engaging activities in the manual provide opportunities to work collectively in teams, gaining knowledge and skills that will be useful for a lifetime. Workshops involve professional planners and other experts to help participants create, sustain and protect the special character or their neighborhoods. It is a lesson on citizenship and the democratic process practiced at one of the most important levels...right in your home town.</p> <p><a href="[[~57]]" title="Contact Us">Contact Us</a> | <a href="[[~67]]" title="Terms Of Use">Terms of Use</a></p> <p class="copyright">Copyright © 2013 Pennsylvania DCNR. All Rights Reserved.</p> <a href="http://www.dcnr.state.pa.us/index.aspx" target="_blank"><img src="img/footer-img-1.png" width="113" height="80" alt="Pennsylvania Department of Conservation" id="foot-1"></a> <a href="http://www.conserveland.org" target="_blank"><img src="img/footer-img-2.png" width="87" height="63" alt="Pennsylvania Land Trust Association" id="foot-2"></a>', 'locked' => false, 'properties' => array ( ), 'static' => false, 'static_file' => '', 'content' => '<p>PA Land Choices has been developed to provide participants with a basic understanding of community government and the powerful role of citizens who work toward common goals. The engaging activities in the manual provide opportunities to work collectively in teams, gaining knowledge and skills that will be useful for a lifetime. Workshops involve professional planners and other experts to help participants create, sustain and protect the special character or their neighborhoods. It is a lesson on citizenship and the democratic process practiced at one of the most important levels...right in your home town.</p> <p><a href="[[~57]]" title="Contact Us">Contact Us</a> | <a href="[[~67]]" title="Terms Of Use">Terms of Use</a></p> <p class="copyright">Copyright © 2013 Pennsylvania DCNR. All Rights Reserved.</p> <a href="http://www.dcnr.state.pa.us/index.aspx" target="_blank"><img src="img/footer-img-1.png" width="113" height="80" alt="Pennsylvania Department of Conservation" id="foot-1"></a> <a href="http://www.conserveland.org" target="_blank"><img src="img/footer-img-2.png" width="87" height="63" alt="Pennsylvania Land Trust Association" id="foot-2"></a>', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( 'id' => 1, 'name' => 'Filesystem', 'description' => '', 'class_key' => 'sources.modFileMediaSource', 'properties' => array ( ), 'is_stream' => true, ), ), ), 'modSnippet' => array ( 'UltimateParent' => array ( 'fields' => array ( 'id' => 12, 'source' => 0, 'property_preprocess' => false, 'name' => 'UltimateParent', 'description' => 'Return the "ultimate" parent of a resource.', 'editor_type' => 0, 'category' => 0, 'cache_type' => 0, 'snippet' => '/** * @name UltimateParent * @version 1.3 * @author Susan Ottwell <sottwell@sottwell.com> March 2006 * @author Al B <> May 18, 2007 * @author S. Hamblett <shamblett@cwazy.co.uk> * @author Shaun McCormick <shaun@modx.com> * @author Jason Coward <modx@modx.com> * * @param &id The id of the document whose parent you want to find. * @param &top The top node for the search. * @param &topLevel The top level node for the search (root = level 1) * * @license Public Domain, use as you like. * * @example [[UltimateParent? &id=`45` &top=`6`]] * Will find the ultimate parent of document 45 if it is a child of document 6; * otherwise it will return 45. * * @example [[UltimateParent? &topLevel=`2`]] * Will find the ultimate parent of the current document at a depth of 2 levels * in the document hierarchy, with the root level being level 1. * * This snippet travels up the document tree from a specified document and * returns the "ultimate" parent. Version 2.0 was rewritten to use the new * getParentIds function features available only in MODx 0.9.5 or later. * * Based on the original UltimateParent 1.x snippet by Susan Ottwell * <sottwell@sottwell.com>. The topLevel parameter was introduced by staed and * adopted here. */ if (!isset($modx)) return \'\'; $top = isset($top) && intval($top) ? $top : 0; $id= isset($id) && intval($id) ? intval($id) : $modx->resource->get(\'id\'); $topLevel= isset($topLevel) && intval($topLevel) ? intval($topLevel) : 0; if ($id && $id != $top) { $pid = $id; $pids = $modx->getParentIds($id); if (!$topLevel || count($pids) >= $topLevel) { while ($parentIds= $modx->getParentIds($id, 1)) { $pid = array_pop($parentIds); if ($pid == $top) { break; } $id = $pid; $parentIds = $modx->getParentIds($id); if ($topLevel && count($parentIds) < $topLevel) { break; } } } } return $id;', 'locked' => false, 'properties' => NULL, 'moduleguid' => '', 'static' => false, 'static_file' => '', 'content' => '/** * @name UltimateParent * @version 1.3 * @author Susan Ottwell <sottwell@sottwell.com> March 2006 * @author Al B <> May 18, 2007 * @author S. Hamblett <shamblett@cwazy.co.uk> * @author Shaun McCormick <shaun@modx.com> * @author Jason Coward <modx@modx.com> * * @param &id The id of the document whose parent you want to find. * @param &top The top node for the search. * @param &topLevel The top level node for the search (root = level 1) * * @license Public Domain, use as you like. * * @example [[UltimateParent? &id=`45` &top=`6`]] * Will find the ultimate parent of document 45 if it is a child of document 6; * otherwise it will return 45. * * @example [[UltimateParent? &topLevel=`2`]] * Will find the ultimate parent of the current document at a depth of 2 levels * in the document hierarchy, with the root level being level 1. * * This snippet travels up the document tree from a specified document and * returns the "ultimate" parent. Version 2.0 was rewritten to use the new * getParentIds function features available only in MODx 0.9.5 or later. * * Based on the original UltimateParent 1.x snippet by Susan Ottwell * <sottwell@sottwell.com>. The topLevel parameter was introduced by staed and * adopted here. */ if (!isset($modx)) return \'\'; $top = isset($top) && intval($top) ? $top : 0; $id= isset($id) && intval($id) ? intval($id) : $modx->resource->get(\'id\'); $topLevel= isset($topLevel) && intval($topLevel) ? intval($topLevel) : 0; if ($id && $id != $top) { $pid = $id; $pids = $modx->getParentIds($id); if (!$topLevel || count($pids) >= $topLevel) { while ($parentIds= $modx->getParentIds($id, 1)) { $pid = array_pop($parentIds); if ($pid == $top) { break; } $id = $pid; $parentIds = $modx->getParentIds($id); if ($topLevel && count($parentIds) < $topLevel) { break; } } } } return $id;', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( ), ), 'phpthumbof' => array ( 'fields' => array ( 'id' => 10, 'source' => 0, 'property_preprocess' => false, 'name' => 'phpthumbof', 'description' => 'A custom output filter that generates thumbnails securely with phpThumb.', 'editor_type' => 0, 'category' => 0, 'cache_type' => 0, 'snippet' => '/** * phpThumbOf * * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com> * * phpThumbOf is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) any * later version. * * phpThumbOf is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with * phpThumbOf; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA * * @package phpthumbof */ /** * A custom output filter for phpThumb * * @var modX $modx * @var array $scriptProperties * @var phpThumbOf $phpThumbOf * @var string $input * @var string|array $options * * @package phpthumbof */ if (empty($modx)) return \'\'; if (!$modx->loadClass(\'modPhpThumb\',$modx->getOption(\'core_path\').\'model/phpthumb/\',true,true)) { $modx->log(modX::LOG_LEVEL_ERROR,\'[phpThumbOf] Could not load modPhpThumb class.\'); return \'\'; } if (empty($input)) { $modx->log(modX::LOG_LEVEL_DEBUG,\'[phpThumbOf] Empty image path passed, aborting.\'); return \'\'; } $modelPath = $modx->getOption(\'phpthumbof.core_path\',null,$modx->getOption(\'core_path\').\'components/phpthumbof/\').\'model/\'; require_once $modelPath.\'phpthumbof/phpthumbof.class.php\'; $phpThumbOf = new phpThumbOf($modx,$scriptProperties); $phpThumbOf->getCacheDirectory(); $phpThumbOf->ensureCacheDirectoryIsWritable(); $thumbnail = $phpThumbOf->createThumbnailObject(); $thumbnail->setInput($input); $thumbnail->setOptions($options); $thumbnail->initializeService(); return $thumbnail->render();', 'locked' => false, 'properties' => NULL, 'moduleguid' => '', 'static' => false, 'static_file' => '', 'content' => '/** * phpThumbOf * * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com> * * phpThumbOf is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) any * later version. * * phpThumbOf is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with * phpThumbOf; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA * * @package phpthumbof */ /** * A custom output filter for phpThumb * * @var modX $modx * @var array $scriptProperties * @var phpThumbOf $phpThumbOf * @var string $input * @var string|array $options * * @package phpthumbof */ if (empty($modx)) return \'\'; if (!$modx->loadClass(\'modPhpThumb\',$modx->getOption(\'core_path\').\'model/phpthumb/\',true,true)) { $modx->log(modX::LOG_LEVEL_ERROR,\'[phpThumbOf] Could not load modPhpThumb class.\'); return \'\'; } if (empty($input)) { $modx->log(modX::LOG_LEVEL_DEBUG,\'[phpThumbOf] Empty image path passed, aborting.\'); return \'\'; } $modelPath = $modx->getOption(\'phpthumbof.core_path\',null,$modx->getOption(\'core_path\').\'components/phpthumbof/\').\'model/\'; require_once $modelPath.\'phpthumbof/phpthumbof.class.php\'; $phpThumbOf = new phpThumbOf($modx,$scriptProperties); $phpThumbOf->getCacheDirectory(); $phpThumbOf->ensureCacheDirectoryIsWritable(); $thumbnail = $phpThumbOf->createThumbnailObject(); $thumbnail->setInput($input); $thumbnail->setOptions($options); $thumbnail->initializeService(); return $thumbnail->render();', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( ), ), 'If' => array ( 'fields' => array ( 'id' => 15, 'source' => 0, 'property_preprocess' => false, 'name' => 'If', 'description' => 'Simple if (conditional) snippet', 'editor_type' => 0, 'category' => 0, 'cache_type' => 0, 'snippet' => '/** * If * * Copyright 2009-2010 by Jason Coward <jason@modx.com> and Shaun McCormick * <shaun@modx.com> * * If is free software; you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. * * If is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with * If; if not, write to the Free Software Foundation, Inc., 59 Temple Place, * Suite 330, Boston, MA 02111-1307 USA * * @package if */ /** * Simple if (conditional) snippet * * @package if */ if (!empty($debug)) { print_r($scriptProperties); if (!empty($die)) die(); } $modx->parser->processElementTags(\'\',$subject,true,true); $output = \'\'; $operator = !empty($operator) ? $operator : \'\'; $operand = !isset($operand) ? \'\' : $operand; if (isset($subject)) { if (!empty($operator)) { $operator = strtolower($operator); switch ($operator) { case \'!=\': case \'neq\': case \'not\': case \'isnot\': case \'isnt\': case \'unequal\': case \'notequal\': $output = (($subject != $operand) ? $then : (isset($else) ? $else : \'\')); break; case \'<\': case \'lt\': case \'less\': case \'lessthan\': $output = (($subject < $operand) ? $then : (isset($else) ? $else : \'\')); break; case \'>\': case \'gt\': case \'greater\': case \'greaterthan\': $output = (($subject > $operand) ? $then : (isset($else) ? $else : \'\')); break; case \'<=\': case \'lte\': case \'lessthanequals\': case \'lessthanorequalto\': $output = (($subject <= $operand) ? $then : (isset($else) ? $else : \'\')); break; case \'>=\': case \'gte\': case \'greaterthanequals\': case \'greaterthanequalto\': $output = (($subject >= $operand) ? $then : (isset($else) ? $else : \'\')); break; case \'isempty\': case \'empty\': $output = empty($subject) ? $then : (isset($else) ? $else : \'\'); break; case \'!empty\': case \'notempty\': case \'isnotempty\': $output = !empty($subject) && $subject != \'\' ? $then : (isset($else) ? $else : \'\'); break; case \'isnull\': case \'null\': $output = $subject == null || strtolower($subject) == \'null\' ? $then : (isset($else) ? $else : \'\'); break; case \'inarray\': case \'in_array\': case \'ia\': $operand = explode(\',\',$operand); $output = in_array($subject,$operand) ? $then : (isset($else) ? $else : \'\'); break; case \'==\': case \'=\': case \'eq\': case \'is\': case \'equal\': case \'equals\': case \'equalto\': default: $output = (($subject == $operand) ? $then : (isset($else) ? $else : \'\')); break; } } } if (!empty($debug)) { var_dump($output); } unset($subject); return $output;', 'locked' => false, 'properties' => array ( 'subject' => array ( 'name' => 'subject', 'desc' => 'The data being affected.', 'type' => 'textfield', 'options' => '', 'value' => '', 'lexicon' => NULL, 'area' => '', 'desc_trans' => 'The data being affected.', 'area_trans' => '', ), 'operator' => array ( 'name' => 'operator', 'desc' => 'The type of conditional.', 'type' => 'list', 'options' => array ( 0 => array ( 'value' => 'EQ', 'text' => 'EQ', 'name' => 'EQ', ), 1 => array ( 'value' => 'NEQ', 'text' => 'NEQ', 'name' => 'NEQ', ), 2 => array ( 'value' => 'LT', 'text' => 'LT', 'name' => 'LT', ), 3 => array ( 'value' => 'GT', 'text' => 'GT', 'name' => 'GT', ), 4 => array ( 'value' => 'LTE', 'text' => 'LTE', 'name' => 'LTE', ), 5 => array ( 'value' => 'GT', 'text' => 'GTE', 'name' => 'GTE', ), 6 => array ( 'value' => 'EMPTY', 'text' => 'EMPTY', 'name' => 'EMPTY', ), 7 => array ( 'value' => 'NOTEMPTY', 'text' => 'NOTEMPTY', 'name' => 'NOTEMPTY', ), 8 => array ( 'value' => 'ISNULL', 'text' => 'ISNULL', 'name' => 'ISNULL', ), 9 => array ( 'value' => 'inarray', 'text' => 'INARRAY', 'name' => 'INARRAY', ), ), 'value' => 'EQ', 'lexicon' => NULL, 'area' => '', 'desc_trans' => 'The type of conditional.', 'area_trans' => '', ), 'operand' => array ( 'name' => 'operand', 'desc' => 'When comparing to the subject, this is the data to compare to.', 'type' => 'textfield', 'options' => '', 'value' => '', 'lexicon' => NULL, 'area' => '', 'desc_trans' => 'When comparing to the subject, this is the data to compare to.', 'area_trans' => '', ), 'then' => array ( 'name' => 'then', 'desc' => 'If conditional was successful, output this.', 'type' => 'textfield', 'options' => '', 'value' => '', 'lexicon' => NULL, 'area' => '', 'desc_trans' => 'If conditional was successful, output this.', 'area_trans' => '', ), 'else' => array ( 'name' => 'else', 'desc' => 'If conditional was unsuccessful, output this.', 'type' => 'textfield', 'options' => '', 'value' => '', 'lexicon' => NULL, 'area' => '', 'desc_trans' => 'If conditional was unsuccessful, output this.', 'area_trans' => '', ), 'debug' => array ( 'name' => 'debug', 'desc' => 'Will output the parameters passed in, as well as the end output. Leave off when not testing.', 'type' => 'combo-boolean', 'options' => '', 'value' => false, 'lexicon' => NULL, 'area' => '', 'desc_trans' => 'Will output the parameters passed in, as well as the end output. Leave off when not testing.', 'area_trans' => '', ), ), 'moduleguid' => '', 'static' => false, 'static_file' => '', 'content' => '/** * If * * Copyright 2009-2010 by Jason Coward <jason@modx.com> and Shaun McCormick * <shaun@modx.com> * * If is free software; you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. * * If is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with * If; if not, write to the Free Software Foundation, Inc., 59 Temple Place, * Suite 330, Boston, MA 02111-1307 USA * * @package if */ /** * Simple if (conditional) snippet * * @package if */ if (!empty($debug)) { print_r($scriptProperties); if (!empty($die)) die(); } $modx->parser->processElementTags(\'\',$subject,true,true); $output = \'\'; $operator = !empty($operator) ? $operator : \'\'; $operand = !isset($operand) ? \'\' : $operand; if (isset($subject)) { if (!empty($operator)) { $operator = strtolower($operator); switch ($operator) { case \'!=\': case \'neq\': case \'not\': case \'isnot\': case \'isnt\': case \'unequal\': case \'notequal\': $output = (($subject != $operand) ? $then : (isset($else) ? $else : \'\')); break; case \'<\': case \'lt\': case \'less\': case \'lessthan\': $output = (($subject < $operand) ? $then : (isset($else) ? $else : \'\')); break; case \'>\': case \'gt\': case \'greater\': case \'greaterthan\': $output = (($subject > $operand) ? $then : (isset($else) ? $else : \'\')); break; case \'<=\': case \'lte\': case \'lessthanequals\': case \'lessthanorequalto\': $output = (($subject <= $operand) ? $then : (isset($else) ? $else : \'\')); break; case \'>=\': case \'gte\': case \'greaterthanequals\': case \'greaterthanequalto\': $output = (($subject >= $operand) ? $then : (isset($else) ? $else : \'\')); break; case \'isempty\': case \'empty\': $output = empty($subject) ? $then : (isset($else) ? $else : \'\'); break; case \'!empty\': case \'notempty\': case \'isnotempty\': $output = !empty($subject) && $subject != \'\' ? $then : (isset($else) ? $else : \'\'); break; case \'isnull\': case \'null\': $output = $subject == null || strtolower($subject) == \'null\' ? $then : (isset($else) ? $else : \'\'); break; case \'inarray\': case \'in_array\': case \'ia\': $operand = explode(\',\',$operand); $output = in_array($subject,$operand) ? $then : (isset($else) ? $else : \'\'); break; case \'==\': case \'=\': case \'eq\': case \'is\': case \'equal\': case \'equals\': case \'equalto\': default: $output = (($subject == $operand) ? $then : (isset($else) ? $else : \'\')); break; } } } if (!empty($debug)) { var_dump($output); } unset($subject); return $output;', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( ), ), ), 'modTemplateVar' => array ( 'page-hero' => array ( 'fields' => array ( 'id' => 6, 'source' => 1, 'property_preprocess' => false, 'type' => 'image', 'name' => 'page-hero', 'caption' => 'Enter the Page main image here', 'description' => '', 'editor_type' => 0, 'category' => 0, 'locked' => false, 'elements' => '', 'rank' => 0, 'display' => 'text', 'default_text' => '', 'properties' => array ( ), 'input_properties' => array ( ), 'output_properties' => array ( ), 'static' => false, 'static_file' => '', 'content' => '', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( 'id' => 1, 'name' => 'Filesystem', 'description' => '', 'class_key' => 'sources.modFileMediaSource', 'properties' => array ( ), 'is_stream' => true, ), ), 'sidebar' => array ( 'fields' => array ( 'id' => 7, 'source' => 1, 'property_preprocess' => false, 'type' => 'richtext', 'name' => 'sidebar', 'caption' => 'Enter the Sidebar HTML here', 'description' => '', 'editor_type' => 0, 'category' => 0, 'locked' => false, 'elements' => '', 'rank' => 0, 'display' => 'default', 'default_text' => '', 'properties' => array ( ), 'input_properties' => array ( ), 'output_properties' => array ( ), 'static' => false, 'static_file' => '', 'content' => '', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( 'id' => 1, 'name' => 'Filesystem', 'description' => '', 'class_key' => 'sources.modFileMediaSource', 'properties' => array ( ), 'is_stream' => true, ), ), ), ), );