-- Table structure for modx_site_plugin_events
-- ----------------------------
CREATE TABLE `modx_site_plugin_events` (
  `pluginid` int(10) NOT NULL DEFAULT '0',
  `event` varchar(255) NOT NULL DEFAULT '',
  `priority` int(10) NOT NULL DEFAULT '0',
  `propertyset` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`pluginid`,`event`),
  KEY `priority` (`priority`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of modx_site_plugin_events
-- ----------------------------
INSERT INTO `modx_site_plugin_events` VALUES ('1', 'OnChunkFormPrerender', '0', '0');
INSERT INTO `modx_site_plugin_events` VALUES ('1', 'OnPluginFormPrerender', '0', '0');
INSERT INTO `modx_site_plugin_events` VALUES ('1', 'OnSnipFormPrerender', '0', '0');
INSERT INTO `modx_site_plugin_events` VALUES ('1', 'OnTempFormPrerender', '0', '0');
INSERT INTO `modx_site_plugin_events` VALUES ('1', 'OnFileEditFormPrerender', '0', '0');
INSERT INTO `modx_site_plugin_events` VALUES ('1', 'OnRichTextEditorRegister', '0', '0');
INSERT INTO `modx_site_plugin_events` VALUES ('2', 'OnRichTextBrowserInit', '0', '0');
INSERT INTO `modx_site_plugin_events` VALUES ('2', 'OnRichTextEditorRegister', '0', '0');
INSERT INTO `modx_site_plugin_events` VALUES ('2', 'OnRichTextEditorInit', '0', '0');
INSERT INTO `modx_site_plugin_events` VALUES ('1', 'OnDocFormPrerender', '0', '0');

-- ----------------------------
-- Table structure for modx_site_snippets
-- ----------------------------
CREATE TABLE `modx_site_snippets` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `source` int(10) unsigned NOT NULL DEFAULT '0',
  `property_preprocess` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `name` varchar(50) NOT NULL DEFAULT '',
  `description` varchar(255) NOT NULL DEFAULT '',
  `editor_type` int(11) NOT NULL DEFAULT '0',
  `category` int(11) NOT NULL DEFAULT '0',
  `cache_type` tinyint(1) NOT NULL DEFAULT '0',
  `snippet` mediumtext,
  `locked` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `properties` text,
  `moduleguid` varchar(32) NOT NULL DEFAULT '',
  `static` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `static_file` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`) USING BTREE,
  KEY `category` (`category`) USING BTREE,
  KEY `locked` (`locked`) USING BTREE,
  KEY `moduleguid` (`moduleguid`) USING BTREE,
  KEY `static` (`static`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=48 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of modx_site_snippets
-- ----------------------------
INSERT INTO `modx_site_snippets` VALUES ('1', '0', '0', 'Wayfinder', 'Wayfinder for MODx Revolution 2.0.0-beta-5 and later.', '0', '0', '0', '/**\n * Wayfinder Snippet to build site navigation menus\n *\n * Totally refactored from original DropMenu nav builder to make it easier to\n * create custom navigation by using chunks as output templates. By using\n * templates, many of the paramaters are no longer needed for flexible output\n * including tables, unordered- or ordered-lists (ULs or OLs), definition lists\n * (DLs) or in any other format you desire.\n *\n * @version 2.1.1-beta5\n * @author Garry Nutting (collabpad.com)\n * @author Kyle Jaebker (muddydogpaws.com)\n * @author Ryan Thrash (modx.com)\n * @author Shaun McCormick (modx.com)\n * @author Jason Coward (modx.com)\n *\n * @example [[Wayfinder? &startId=`0`]]\n *\n * @var modX $modx\n * @var array $scriptProperties\n * \n * @package wayfinder\n */\n$wayfinder_base = $modx->getOption(\'wayfinder.core_path\',$scriptProperties,$modx->getOption(\'core_path\').\'components/wayfinder/\');\n\n/* include a custom config file if specified */\nif (isset($scriptProperties[\'config\'])) {\n    $scriptProperties[\'config\'] = str_replace(\'../\',\'\',$scriptProperties[\'config\']);\n    $scriptProperties[\'config\'] = $wayfinder_base.\'configs/\'.$scriptProperties[\'config\'].\'.config.php\';\n} else {\n    $scriptProperties[\'config\'] = $wayfinder_base.\'configs/default.config.php\';\n}\nif (file_exists($scriptProperties[\'config\'])) {\n    include $scriptProperties[\'config\'];\n}\n\n/* include wayfinder class */\ninclude_once $wayfinder_base.\'wayfinder.class.php\';\nif (!$modx->loadClass(\'Wayfinder\',$wayfinder_base,true,true)) {\n    return \'error: Wayfinder class not found\';\n}\n$wf = new Wayfinder($modx,$scriptProperties);\n\n/* get user class definitions\n * TODO: eventually move these into config parameters */\n$wf->_css = array(\n    \'first\' => isset($firstClass) ? $firstClass : \'\',\n    \'last\' => isset($lastClass) ? $lastClass : \'last\',\n    \'here\' => isset($hereClass) ? $hereClass : \'active\',\n    \'parent\' => isset($parentClass) ? $parentClass : \'\',\n    \'row\' => isset($rowClass) ? $rowClass : \'\',\n    \'outer\' => isset($outerClass) ? $outerClass : \'\',\n    \'inner\' => isset($innerClass) ? $innerClass : \'\',\n    \'level\' => isset($levelClass) ? $levelClass: \'\',\n    \'self\' => isset($selfClass) ? $selfClass : \'\',\n    \'weblink\' => isset($webLinkClass) ? $webLinkClass : \'\'\n);\n\n/* get user templates\n * TODO: eventually move these into config parameters */\n$wf->_templates = array(\n    \'outerTpl\' => isset($outerTpl) ? $outerTpl : \'\',\n    \'rowTpl\' => isset($rowTpl) ? $rowTpl : \'\',\n    \'parentRowTpl\' => isset($parentRowTpl) ? $parentRowTpl : \'\',\n    \'parentRowHereTpl\' => isset($parentRowHereTpl) ? $parentRowHereTpl : \'\',\n    \'hereTpl\' => isset($hereTpl) ? $hereTpl : \'\',\n    \'innerTpl\' => isset($innerTpl) ? $innerTpl : \'\',\n    \'innerRowTpl\' => isset($innerRowTpl) ? $innerRowTpl : \'\',\n    \'innerHereTpl\' => isset($innerHereTpl) ? $innerHereTpl : \'\',\n    \'activeParentRowTpl\' => isset($activeParentRowTpl) ? $activeParentRowTpl : \'\',\n    \'categoryFoldersTpl\' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : \'\',\n    \'startItemTpl\' => isset($startItemTpl) ? $startItemTpl : \'\'\n);\n\n/* process Wayfinder */\n$output = $wf->run();\nif ($wf->_config[\'debug\']) {\n    $output .= $wf->renderDebugOutput();\n}\n\n/* output results */\nif ($wf->_config[\'ph\']) {\n    $modx->setPlaceholder($wf->_config[\'ph\'],$output);\n} else {\n    return $output;\n}', '0', 'a:48:{s:5:\"level\";a:6:{s:4:\"name\";s:5:\"level\";s:4:\"desc\";s:25:\"prop_wayfinder.level_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:1:\"0\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:11:\"includeDocs\";a:6:{s:4:\"name\";s:11:\"includeDocs\";s:4:\"desc\";s:31:\"prop_wayfinder.includeDocs_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:1:\"0\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:11:\"excludeDocs\";a:6:{s:4:\"name\";s:11:\"excludeDocs\";s:4:\"desc\";s:31:\"prop_wayfinder.excludeDocs_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:1:\"0\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:8:\"contexts\";a:6:{s:4:\"name\";s:8:\"contexts\";s:4:\"desc\";s:28:\"prop_wayfinder.contexts_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:12:\"cacheResults\";a:6:{s:4:\"name\";s:12:\"cacheResults\";s:4:\"desc\";s:32:\"prop_wayfinder.cacheResults_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:9:\"cacheTime\";a:6:{s:4:\"name\";s:9:\"cacheTime\";s:4:\"desc\";s:29:\"prop_wayfinder.cacheTime_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:3600;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:2:\"ph\";a:6:{s:4:\"name\";s:2:\"ph\";s:4:\"desc\";s:22:\"prop_wayfinder.ph_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:5:\"debug\";a:6:{s:4:\"name\";s:5:\"debug\";s:4:\"desc\";s:25:\"prop_wayfinder.debug_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:12:\"ignoreHidden\";a:6:{s:4:\"name\";s:12:\"ignoreHidden\";s:4:\"desc\";s:32:\"prop_wayfinder.ignoreHidden_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:12:\"hideSubMenus\";a:6:{s:4:\"name\";s:12:\"hideSubMenus\";s:4:\"desc\";s:32:\"prop_wayfinder.hideSubMenus_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:13:\"useWeblinkUrl\";a:6:{s:4:\"name\";s:13:\"useWeblinkUrl\";s:4:\"desc\";s:33:\"prop_wayfinder.useWeblinkUrl_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:8:\"fullLink\";a:6:{s:4:\"name\";s:8:\"fullLink\";s:4:\"desc\";s:28:\"prop_wayfinder.fullLink_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:6:\"scheme\";a:6:{s:4:\"name\";s:6:\"scheme\";s:4:\"desc\";s:26:\"prop_wayfinder.scheme_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:3:{i:0;a:2:{s:4:\"text\";s:23:\"prop_wayfinder.relative\";s:5:\"value\";s:0:\"\";}i:1;a:2:{s:4:\"text\";s:23:\"prop_wayfinder.absolute\";s:5:\"value\";s:3:\"abs\";}i:2;a:2:{s:4:\"text\";s:19:\"prop_wayfinder.full\";s:5:\"value\";s:4:\"full\";}}s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:9:\"sortOrder\";a:6:{s:4:\"name\";s:9:\"sortOrder\";s:4:\"desc\";s:29:\"prop_wayfinder.sortOrder_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:2:{i:0;a:2:{s:4:\"text\";s:24:\"prop_wayfinder.ascending\";s:5:\"value\";s:3:\"ASC\";}i:1;a:2:{s:4:\"text\";s:25:\"prop_wayfinder.descending\";s:5:\"value\";s:4:\"DESC\";}}s:5:\"value\";s:3:\"ASC\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:6:\"sortBy\";a:6:{s:4:\"name\";s:6:\"sortBy\";s:4:\"desc\";s:26:\"prop_wayfinder.sortBy_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:9:\"menuindex\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:5:\"limit\";a:6:{s:4:\"name\";s:5:\"limit\";s:4:\"desc\";s:25:\"prop_wayfinder.limit_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:1:\"0\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:6:\"cssTpl\";a:6:{s:4:\"name\";s:6:\"cssTpl\";s:4:\"desc\";s:26:\"prop_wayfinder.cssTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:5:\"jsTpl\";a:6:{s:4:\"name\";s:5:\"jsTpl\";s:4:\"desc\";s:25:\"prop_wayfinder.jsTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:11:\"rowIdPrefix\";a:6:{s:4:\"name\";s:11:\"rowIdPrefix\";s:4:\"desc\";s:31:\"prop_wayfinder.rowIdPrefix_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:11:\"textOfLinks\";a:6:{s:4:\"name\";s:11:\"textOfLinks\";s:4:\"desc\";s:31:\"prop_wayfinder.textOfLinks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:9:\"menutitle\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:12:\"titleOfLinks\";a:6:{s:4:\"name\";s:12:\"titleOfLinks\";s:4:\"desc\";s:32:\"prop_wayfinder.titleOfLinks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:9:\"pagetitle\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:12:\"displayStart\";a:6:{s:4:\"name\";s:12:\"displayStart\";s:4:\"desc\";s:32:\"prop_wayfinder.displayStart_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:10:\"firstClass\";a:6:{s:4:\"name\";s:10:\"firstClass\";s:4:\"desc\";s:30:\"prop_wayfinder.firstClass_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:5:\"first\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:9:\"lastClass\";a:6:{s:4:\"name\";s:9:\"lastClass\";s:4:\"desc\";s:29:\"prop_wayfinder.lastClass_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:4:\"last\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:9:\"hereClass\";a:6:{s:4:\"name\";s:9:\"hereClass\";s:4:\"desc\";s:29:\"prop_wayfinder.hereClass_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:6:\"active\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:11:\"parentClass\";a:6:{s:4:\"name\";s:11:\"parentClass\";s:4:\"desc\";s:31:\"prop_wayfinder.parentClass_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:8:\"rowClass\";a:6:{s:4:\"name\";s:8:\"rowClass\";s:4:\"desc\";s:28:\"prop_wayfinder.rowClass_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:10:\"outerClass\";a:6:{s:4:\"name\";s:10:\"outerClass\";s:4:\"desc\";s:30:\"prop_wayfinder.outerClass_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:10:\"innerClass\";a:6:{s:4:\"name\";s:10:\"innerClass\";s:4:\"desc\";s:30:\"prop_wayfinder.innerClass_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:10:\"levelClass\";a:6:{s:4:\"name\";s:10:\"levelClass\";s:4:\"desc\";s:30:\"prop_wayfinder.levelClass_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:9:\"selfClass\";a:6:{s:4:\"name\";s:9:\"selfClass\";s:4:\"desc\";s:29:\"prop_wayfinder.selfClass_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:12:\"webLinkClass\";a:6:{s:4:\"name\";s:12:\"webLinkClass\";s:4:\"desc\";s:32:\"prop_wayfinder.webLinkClass_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:8:\"outerTpl\";a:6:{s:4:\"name\";s:8:\"outerTpl\";s:4:\"desc\";s:28:\"prop_wayfinder.outerTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:6:\"rowTpl\";a:6:{s:4:\"name\";s:6:\"rowTpl\";s:4:\"desc\";s:26:\"prop_wayfinder.rowTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:12:\"parentRowTpl\";a:6:{s:4:\"name\";s:12:\"parentRowTpl\";s:4:\"desc\";s:32:\"prop_wayfinder.parentRowTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:16:\"parentRowHereTpl\";a:6:{s:4:\"name\";s:16:\"parentRowHereTpl\";s:4:\"desc\";s:36:\"prop_wayfinder.parentRowHereTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:7:\"hereTpl\";a:6:{s:4:\"name\";s:7:\"hereTpl\";s:4:\"desc\";s:27:\"prop_wayfinder.hereTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:8:\"innerTpl\";a:6:{s:4:\"name\";s:8:\"innerTpl\";s:4:\"desc\";s:28:\"prop_wayfinder.innerTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:11:\"innerRowTpl\";a:6:{s:4:\"name\";s:11:\"innerRowTpl\";s:4:\"desc\";s:31:\"prop_wayfinder.innerRowTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:12:\"innerHereTpl\";a:6:{s:4:\"name\";s:12:\"innerHereTpl\";s:4:\"desc\";s:32:\"prop_wayfinder.innerHereTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:18:\"activeParentRowTpl\";a:6:{s:4:\"name\";s:18:\"activeParentRowTpl\";s:4:\"desc\";s:38:\"prop_wayfinder.activeParentRowTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:18:\"categoryFoldersTpl\";a:6:{s:4:\"name\";s:18:\"categoryFoldersTpl\";s:4:\"desc\";s:38:\"prop_wayfinder.categoryFoldersTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:12:\"startItemTpl\";a:6:{s:4:\"name\";s:12:\"startItemTpl\";s:4:\"desc\";s:32:\"prop_wayfinder.startItemTpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:11:\"permissions\";a:6:{s:4:\"name\";s:11:\"permissions\";s:4:\"desc\";s:31:\"prop_wayfinder.permissions_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:4:\"list\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:6:\"hereId\";a:6:{s:4:\"name\";s:6:\"hereId\";s:4:\"desc\";s:26:\"prop_wayfinder.hereId_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:5:\"where\";a:6:{s:4:\"name\";s:5:\"where\";s:4:\"desc\";s:25:\"prop_wayfinder.where_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:9:\"templates\";a:6:{s:4:\"name\";s:9:\"templates\";s:4:\"desc\";s:29:\"prop_wayfinder.templates_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}s:18:\"previewUnpublished\";a:6:{s:4:\"name\";s:18:\"previewUnpublished\";s:4:\"desc\";s:38:\"prop_wayfinder.previewunpublished_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:20:\"wayfinder:properties\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('2', '0', '0', 'Login', 'Displays a login and logout form.', '0', '1', '0', '/**\n * Login\n *\n * Copyright 2010 by Jason Coward <jason@modx.com> and Shaun McCormick\n * <shaun@modx.com>\n *\n * Login is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the Free\n * Software Foundation; either version 2 of the License, or (at your option) any\n * later version.\n *\n * Login is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * Login; if not, write to the Free Software Foundation, Inc., 59 Temple\n * Place, Suite 330, Boston, MA 02111-1307 USA\n *\n * @package login\n */\n/**\n * MODx Login Snippet\n *\n * This snippet handles login POSTs, sending the user back to where they came from or to a specific\n * location if specified in the POST.\n *\n * @package login\n *\n * @property textfield actionKey The REQUEST variable containing the action to take.\n * @property textfield loginKey The actionKey for login.\n * @property textfield logoutKey The actionKey for logout.\n * @property list tplType The type of template to expect for the views:\n *  modChunk - name of chunk to use\n *  file - full path to file to use as tpl\n *  embedded - the tpl is embedded in the page content\n *  inline - the tpl is inline content provided directly\n * @property textfield loginTpl The template for the login view (content based on tplType)\n * @property textfield logoutTpl The template for the logout view (content based on tplType)\n * @property textfield errTpl The template for any errors that occur when processing an view\n * @property list errTplType The type of template to expect for the error messages:\n *  modChunk - name of chunk to use\n *  file - full path to file to use as tpl\n *  inline - the tpl is inline content provided directly\n * @property integer logoutResourceId An explicit resource id to redirect users to on logout\n * @property string loginMsg The string to use for the login action. Defaults to\n * the lexicon string \"login\".\n * @property string logoutMsg The string to use for the logout action. Defaults\n * to the lexicon string \"login.logout\"\n */\nrequire_once $modx->getOption(\'login.core_path\',null,$modx->getOption(\'core_path\').\'components/login/\').\'model/login/login.class.php\';\n$login = new Login($modx,$scriptProperties);\nif (!is_object($login) || !($login instanceof Login)) return \'\';\n\n$controller = $login->loadController(\'Login\');\n$output = $controller->run($scriptProperties);\nreturn $output;', '0', 'a:22:{s:9:\"actionKey\";a:7:{s:4:\"name\";s:9:\"actionKey\";s:4:\"desc\";s:25:\"prop_login.actionkey_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:7:\"service\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:8:\"loginKey\";a:7:{s:4:\"name\";s:8:\"loginKey\";s:4:\"desc\";s:24:\"prop_login.loginkey_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:5:\"login\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:9:\"logoutKey\";a:7:{s:4:\"name\";s:9:\"logoutKey\";s:4:\"desc\";s:25:\"prop_login.logoutkey_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:6:\"logout\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:7:\"tplType\";a:7:{s:4:\"name\";s:7:\"tplType\";s:4:\"desc\";s:23:\"prop_login.tpltype_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:5:\"value\";s:8:\"modChunk\";s:4:\"text\";s:18:\"opt_register.chunk\";}i:1;a:2:{s:5:\"value\";s:4:\"file\";s:4:\"text\";s:17:\"opt_register.file\";}i:2;a:2:{s:5:\"value\";s:6:\"inline\";s:4:\"text\";s:19:\"opt_register.inline\";}i:3;a:2:{s:5:\"value\";s:8:\"embedded\";s:4:\"text\";s:21:\"opt_register.embedded\";}}s:5:\"value\";s:8:\"modChunk\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:8:\"loginTpl\";a:7:{s:4:\"name\";s:8:\"loginTpl\";s:4:\"desc\";s:24:\"prop_login.logintpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:11:\"lgnLoginTpl\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:9:\"logoutTpl\";a:7:{s:4:\"name\";s:9:\"logoutTpl\";s:4:\"desc\";s:25:\"prop_login.logouttpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:12:\"lgnLogoutTpl\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:8:\"preHooks\";a:7:{s:4:\"name\";s:8:\"preHooks\";s:4:\"desc\";s:24:\"prop_login.prehooks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:9:\"postHooks\";a:7:{s:4:\"name\";s:9:\"postHooks\";s:4:\"desc\";s:25:\"prop_login.posthooks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:6:\"errTpl\";a:7:{s:4:\"name\";s:6:\"errTpl\";s:4:\"desc\";s:22:\"prop_login.errtpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:9:\"lgnErrTpl\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:10:\"errTplType\";a:7:{s:4:\"name\";s:10:\"errTplType\";s:4:\"desc\";s:26:\"prop_login.errtpltype_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:5:\"value\";s:8:\"modChunk\";s:4:\"text\";s:18:\"opt_register.chunk\";}i:1;a:2:{s:5:\"value\";s:4:\"file\";s:4:\"text\";s:17:\"opt_register.file\";}i:2;a:2:{s:5:\"value\";s:6:\"inline\";s:4:\"text\";s:19:\"opt_register.inline\";}i:3;a:2:{s:5:\"value\";s:8:\"embedded\";s:4:\"text\";s:21:\"opt_register.embedded\";}}s:5:\"value\";s:8:\"modChunk\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"loginResourceId\";a:7:{s:4:\"name\";s:15:\"loginResourceId\";s:4:\"desc\";s:31:\"prop_login.loginresourceid_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:0;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:19:\"loginResourceParams\";a:7:{s:4:\"name\";s:19:\"loginResourceParams\";s:4:\"desc\";s:35:\"prop_login.loginresourceparams_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:16:\"logoutResourceId\";a:7:{s:4:\"name\";s:16:\"logoutResourceId\";s:4:\"desc\";s:32:\"prop_login.logoutresourceid_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:0;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:20:\"logoutResourceParams\";a:7:{s:4:\"name\";s:20:\"logoutResourceParams\";s:4:\"desc\";s:36:\"prop_login.logoutresourceparams_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:8:\"loginMsg\";a:7:{s:4:\"name\";s:8:\"loginMsg\";s:4:\"desc\";s:24:\"prop_login.loginmsg_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:9:\"logoutMsg\";a:7:{s:4:\"name\";s:9:\"logoutMsg\";s:4:\"desc\";s:25:\"prop_login.logoutmsg_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"redirectToPrior\";a:7:{s:4:\"name\";s:15:\"redirectToPrior\";s:4:\"desc\";s:31:\"prop_login.redirecttoprior_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:22:\"redirectToOnFailedAuth\";a:7:{s:4:\"name\";s:22:\"redirectToOnFailedAuth\";s:4:\"desc\";s:38:\"prop_login.redirecttoonfailedauth_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:13:\"rememberMeKey\";a:7:{s:4:\"name\";s:13:\"rememberMeKey\";s:4:\"desc\";s:29:\"prop_login.remembermekey_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:10:\"rememberme\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:8:\"contexts\";a:7:{s:4:\"name\";s:8:\"contexts\";s:4:\"desc\";s:24:\"prop_login.contexts_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:13:\"toPlaceholder\";a:7:{s:4:\"name\";s:13:\"toPlaceholder\";s:4:\"desc\";s:29:\"prop_login.toplaceholder_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:14:\"recaptchaTheme\";a:7:{s:4:\"name\";s:14:\"recaptchaTheme\";s:4:\"desc\";s:33:\"prop_register.recaptchatheme_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:4:\"text\";s:16:\"opt_register.red\";s:5:\"value\";s:3:\"red\";}i:1;a:2:{s:4:\"text\";s:18:\"opt_register.white\";s:5:\"value\";s:5:\"white\";}i:2;a:2:{s:4:\"text\";s:18:\"opt_register.clean\";s:5:\"value\";s:5:\"clean\";}i:3;a:2:{s:4:\"text\";s:23:\"opt_register.blackglass\";s:5:\"value\";s:10:\"blackglass\";}}s:5:\"value\";s:5:\"clean\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('3', '0', '0', 'ForgotPassword', 'Displays a forgot password form.', '0', '1', '0', '/**\n * ForgotPassword\n *\n * Copyright 2010 by Jason Coward <jason@modx.com> and Shaun McCormick\n * <shaun@modx.com>\n *\n * ForgotPassword is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the Free\n * Software Foundation; either version 2 of the License, or (at your option) any\n * later version.\n *\n * ForgotPassword is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * ForgotPassword; if not, write to the Free Software Foundation, Inc., 59 Temple\n * Place, Suite 330, Boston, MA 02111-1307 USA\n *\n * @package login\n */\n/**\n * MODx ForgotPassword Snippet. Displays a form for users who have forgotten\n * their password and gives them the ability to retrieve it.\n *\n * @package login\n */\nrequire_once $modx->getOption(\'login.core_path\',null,$modx->getOption(\'core_path\').\'components/login/\').\'model/login/login.class.php\';\n$login = new Login($modx,$scriptProperties);\n\n$controller = $login->loadController(\'ForgotPassword\');\n$output = $controller->run($scriptProperties);\nreturn $output;', '0', 'a:13:{s:8:\"emailTpl\";a:7:{s:4:\"name\";s:8:\"emailTpl\";s:4:\"desc\";s:33:\"prop_forgotpassword.emailtpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:18:\"lgnForgotPassEmail\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:11:\"emailTplAlt\";a:7:{s:4:\"name\";s:11:\"emailTplAlt\";s:4:\"desc\";s:36:\"prop_forgotpassword.emailtplalt_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:12:\"emailTplType\";a:7:{s:4:\"name\";s:12:\"emailTplType\";s:4:\"desc\";s:37:\"prop_forgotpassword.emailtpltype_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:5:\"value\";s:8:\"modChunk\";s:4:\"text\";s:18:\"opt_register.chunk\";}i:1;a:2:{s:5:\"value\";s:4:\"file\";s:4:\"text\";s:17:\"opt_register.file\";}i:2;a:2:{s:5:\"value\";s:6:\"inline\";s:4:\"text\";s:19:\"opt_register.inline\";}i:3;a:2:{s:5:\"value\";s:8:\"embedded\";s:4:\"text\";s:21:\"opt_register.embedded\";}}s:5:\"value\";s:8:\"modChunk\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:7:\"sentTpl\";a:7:{s:4:\"name\";s:7:\"sentTpl\";s:4:\"desc\";s:32:\"prop_forgotpassword.senttpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:20:\"lgnForgotPassSentTpl\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:11:\"sentTplType\";a:7:{s:4:\"name\";s:11:\"sentTplType\";s:4:\"desc\";s:36:\"prop_forgotpassword.senttpltype_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:5:\"value\";s:8:\"modChunk\";s:4:\"text\";s:18:\"opt_register.chunk\";}i:1;a:2:{s:5:\"value\";s:4:\"file\";s:4:\"text\";s:17:\"opt_register.file\";}i:2;a:2:{s:5:\"value\";s:6:\"inline\";s:4:\"text\";s:19:\"opt_register.inline\";}i:3;a:2:{s:5:\"value\";s:8:\"embedded\";s:4:\"text\";s:21:\"opt_register.embedded\";}}s:5:\"value\";s:8:\"modChunk\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:3:\"tpl\";a:7:{s:4:\"name\";s:3:\"tpl\";s:4:\"desc\";s:28:\"prop_forgotpassword.tpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:16:\"lgnForgotPassTpl\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:7:\"tplType\";a:7:{s:4:\"name\";s:7:\"tplType\";s:4:\"desc\";s:32:\"prop_forgotpassword.tpltype_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:5:\"value\";s:8:\"modChunk\";s:4:\"text\";s:18:\"opt_register.chunk\";}i:1;a:2:{s:5:\"value\";s:4:\"file\";s:4:\"text\";s:17:\"opt_register.file\";}i:2;a:2:{s:5:\"value\";s:6:\"inline\";s:4:\"text\";s:19:\"opt_register.inline\";}i:3;a:2:{s:5:\"value\";s:8:\"embedded\";s:4:\"text\";s:21:\"opt_register.embedded\";}}s:5:\"value\";s:8:\"modChunk\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:6:\"errTpl\";a:7:{s:4:\"name\";s:6:\"errTpl\";s:4:\"desc\";s:31:\"prop_forgotpassword.errtpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:9:\"lgnErrTpl\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:10:\"errTplType\";a:7:{s:4:\"name\";s:10:\"errTplType\";s:4:\"desc\";s:35:\"prop_forgotpassword.errtpltype_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:5:\"value\";s:8:\"modChunk\";s:4:\"text\";s:18:\"opt_register.chunk\";}i:1;a:2:{s:5:\"value\";s:4:\"file\";s:4:\"text\";s:17:\"opt_register.file\";}i:2;a:2:{s:5:\"value\";s:6:\"inline\";s:4:\"text\";s:19:\"opt_register.inline\";}i:3;a:2:{s:5:\"value\";s:8:\"embedded\";s:4:\"text\";s:21:\"opt_register.embedded\";}}s:5:\"value\";s:8:\"modChunk\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:12:\"emailSubject\";a:7:{s:4:\"name\";s:12:\"emailSubject\";s:4:\"desc\";s:37:\"prop_forgotpassword.emailsubject_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"resetResourceId\";a:7:{s:4:\"name\";s:15:\"resetResourceId\";s:4:\"desc\";s:40:\"prop_forgotpassword.resetresourceid_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:10:\"redirectTo\";a:7:{s:4:\"name\";s:10:\"redirectTo\";s:4:\"desc\";s:35:\"prop_forgotpassword.redirectto_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:14:\"redirectParams\";a:7:{s:4:\"name\";s:14:\"redirectParams\";s:4:\"desc\";s:39:\"prop_forgotpassword.redirectparams_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('4', '0', '0', 'ResetPassword', 'Resets a password from a confirmation email.', '0', '1', '0', '/**\n * ResetPassword\n *\n * Copyright 2010 by Shaun McCormick <shaun@modx.com>\n *\n * ResetPassword is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the Free\n * Software Foundation; either version 2 of the License, or (at your option) any\n * later version.\n *\n * ResetPassword is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * ResetPassword; if not, write to the Free Software Foundation, Inc., 59 Temple\n * Place, Suite 330, Boston, MA 02111-1307 USA\n *\n * @package login\n */\n/**\n * MODx ResetPassword Snippet. Snippet to place on an activation\n * page that the user using the ForgotPassword snippet would be sent to via the\n * reset email.\n *\n * @package login\n */\nif (empty($_REQUEST[\'lp\']) || empty($_REQUEST[\'lu\'])) {\n    return \'\';\n}\nrequire_once $modx->getOption(\'login.core_path\',null,$modx->getOption(\'core_path\').\'components/login/\').\'model/login/login.class.php\';\n$login = new Login($modx,$scriptProperties);\n\n$controller = $login->loadController(\'ResetPassword\');\n$output = $controller->run($scriptProperties);\nreturn $output;', '0', 'a:3:{s:3:\"tpl\";a:7:{s:4:\"name\";s:3:\"tpl\";s:4:\"desc\";s:27:\"prop_resetpassword.tpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:15:\"lgnResetPassTpl\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:7:\"tplType\";a:7:{s:4:\"name\";s:7:\"tplType\";s:4:\"desc\";s:31:\"prop_resetpassword.tpltype_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:5:\"value\";s:8:\"modChunk\";s:4:\"text\";s:18:\"opt_register.chunk\";}i:1;a:2:{s:5:\"value\";s:4:\"file\";s:4:\"text\";s:17:\"opt_register.file\";}i:2;a:2:{s:5:\"value\";s:6:\"inline\";s:4:\"text\";s:19:\"opt_register.inline\";}i:3;a:2:{s:5:\"value\";s:8:\"embedded\";s:4:\"text\";s:21:\"opt_register.embedded\";}}s:5:\"value\";s:8:\"modChunk\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"loginResourceId\";a:7:{s:4:\"name\";s:15:\"loginResourceId\";s:4:\"desc\";s:39:\"prop_resetpassword.loginresourceid_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('5', '0', '0', 'Register', 'Handles forms for registering users on the front-end.', '0', '1', '0', '/**\n * Register\n *\n * Copyright 2010 by Shaun McCormick <shaun@modx.com>\n *\n * Register is free software; you can redistribute it and/or modify it under the\n * terms of the GNU General Public License as published by the Free Software\n * Foundation; either version 2 of the License, or (at your option) any later\n * version.\n *\n * Register is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * Register; if not, write to the Free Software Foundation, Inc., 59 Temple\n * Place, Suite 330, Boston, MA 02111-1307 USA\n *\n * @package login\n */\n/**\n * MODx Register Snippet. Handles User registrations.\n * \n * @package login\n */\nrequire_once $modx->getOption(\'login.core_path\',null,$modx->getOption(\'core_path\').\'components/login/\').\'model/login/login.class.php\';\n$login = new Login($modx,$scriptProperties);\n\n$controller = $login->loadController(\'Register\');\n$output = $controller->run($scriptProperties);\nreturn $output;', '0', 'a:40:{s:9:\"submitVar\";a:7:{s:4:\"name\";s:9:\"submitVar\";s:4:\"desc\";s:28:\"prop_register.submitvar_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:10:\"usergroups\";a:7:{s:4:\"name\";s:10:\"usergroups\";s:4:\"desc\";s:29:\"prop_register.usergroups_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"usergroupsField\";a:7:{s:4:\"name\";s:15:\"usergroupsField\";s:4:\"desc\";s:34:\"prop_register.usergroupsfield_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:19:\"submittedResourceId\";a:7:{s:4:\"name\";s:19:\"submittedResourceId\";s:4:\"desc\";s:38:\"prop_register.submittedresourceid_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:13:\"usernameField\";a:7:{s:4:\"name\";s:13:\"usernameField\";s:4:\"desc\";s:32:\"prop_register.usernamefield_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:8:\"username\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:13:\"passwordField\";a:7:{s:4:\"name\";s:13:\"passwordField\";s:4:\"desc\";s:32:\"prop_register.passwordfield_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:8:\"password\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:16:\"validatePassword\";a:7:{s:4:\"name\";s:16:\"validatePassword\";s:4:\"desc\";s:35:\"prop_register.validatepassword_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:16:\"generatePassword\";a:7:{s:4:\"name\";s:16:\"generatePassword\";s:4:\"desc\";s:35:\"prop_register.generatepassword_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:12:\"trimPassword\";a:7:{s:4:\"name\";s:12:\"trimPassword\";s:4:\"desc\";s:31:\"prop_register.trimpassword_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:22:\"ensurePasswordStrength\";a:7:{s:4:\"name\";s:22:\"ensurePasswordStrength\";s:4:\"desc\";s:41:\"prop_register.ensurePasswordStrength_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:21:\"passwordWordSeparator\";a:7:{s:4:\"name\";s:21:\"passwordWordSeparator\";s:4:\"desc\";s:40:\"prop_register.passwordWordSeparator_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:1:\" \";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:30:\"minimumStrongPasswordWordCount\";a:7:{s:4:\"name\";s:30:\"minimumStrongPasswordWordCount\";s:4:\"desc\";s:49:\"prop_register.minimumStrongPasswordWordCount_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:3;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:32:\"maximumPossibleStrongerPasswords\";a:7:{s:4:\"name\";s:32:\"maximumPossibleStrongerPasswords\";s:4:\"desc\";s:51:\"prop_register.maximumPossibleStrongerPasswords_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:25;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:33:\"ensurePasswordStrengthSuggestions\";a:7:{s:4:\"name\";s:33:\"ensurePasswordStrengthSuggestions\";s:4:\"desc\";s:52:\"prop_register.ensurePasswordStrengthSuggestions_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:13:\"allowedFields\";a:7:{s:4:\"name\";s:13:\"allowedFields\";s:4:\"desc\";s:32:\"prop_register.allowedfields_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:10:\"emailField\";a:7:{s:4:\"name\";s:10:\"emailField\";s:4:\"desc\";s:29:\"prop_register.emailfield_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:5:\"email\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:10:\"successMsg\";a:7:{s:4:\"name\";s:10:\"successMsg\";s:4:\"desc\";s:29:\"prop_register.successmsg_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:13:\"persistParams\";a:7:{s:4:\"name\";s:13:\"persistParams\";s:4:\"desc\";s:32:\"prop_register.persistparams_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:8:\"preHooks\";a:7:{s:4:\"name\";s:8:\"preHooks\";s:4:\"desc\";s:27:\"prop_register.prehooks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:9:\"postHooks\";a:7:{s:4:\"name\";s:9:\"postHooks\";s:4:\"desc\";s:28:\"prop_register.posthooks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:11:\"useExtended\";a:7:{s:4:\"name\";s:11:\"useExtended\";s:4:\"desc\";s:30:\"prop_register.useextended_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"excludeExtended\";a:7:{s:4:\"name\";s:15:\"excludeExtended\";s:4:\"desc\";s:34:\"prop_register.excludeextended_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:10:\"activation\";a:7:{s:4:\"name\";s:10:\"activation\";s:4:\"desc\";s:29:\"prop_register.activation_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:13:\"activationttl\";a:7:{s:4:\"name\";s:13:\"activationttl\";s:4:\"desc\";s:32:\"prop_register.activationttl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:3:\"180\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:20:\"activationResourceId\";a:7:{s:4:\"name\";s:20:\"activationResourceId\";s:4:\"desc\";s:39:\"prop_register.activationresourceid_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"activationEmail\";a:7:{s:4:\"name\";s:15:\"activationEmail\";s:4:\"desc\";s:34:\"prop_register.activationemail_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:22:\"activationEmailSubject\";a:7:{s:4:\"name\";s:22:\"activationEmailSubject\";s:4:\"desc\";s:41:\"prop_register.activationemailsubject_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:22:\"activationEmailTplType\";a:7:{s:4:\"name\";s:22:\"activationEmailTplType\";s:4:\"desc\";s:41:\"prop_register.activationemailtpltype_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:5:\"value\";s:8:\"modChunk\";s:4:\"text\";s:18:\"opt_register.chunk\";}i:1;a:2:{s:5:\"value\";s:4:\"file\";s:4:\"text\";s:17:\"opt_register.file\";}i:2;a:2:{s:5:\"value\";s:6:\"inline\";s:4:\"text\";s:19:\"opt_register.inline\";}i:3;a:2:{s:5:\"value\";s:8:\"embedded\";s:4:\"text\";s:21:\"opt_register.embedded\";}}s:5:\"value\";s:8:\"modChunk\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:18:\"activationEmailTpl\";a:7:{s:4:\"name\";s:18:\"activationEmailTpl\";s:4:\"desc\";s:37:\"prop_register.activationemailtpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:19:\"lgnActivateEmailTpl\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:21:\"activationEmailTplAlt\";a:7:{s:4:\"name\";s:21:\"activationEmailTplAlt\";s:4:\"desc\";s:40:\"prop_register.activationemailtplalt_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:19:\"moderatedResourceId\";a:7:{s:4:\"name\";s:19:\"moderatedResourceId\";s:4:\"desc\";s:38:\"prop_register.moderatedresourceid_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:26:\"removeExpiredRegistrations\";a:7:{s:4:\"name\";s:26:\"removeExpiredRegistrations\";s:4:\"desc\";s:45:\"prop_register.removeexpiredregistrations_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:17:\"placeholderPrefix\";a:7:{s:4:\"name\";s:17:\"placeholderPrefix\";s:4:\"desc\";s:36:\"prop_register.placeholderprefix_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:14:\"recaptchaTheme\";a:7:{s:4:\"name\";s:14:\"recaptchaTheme\";s:4:\"desc\";s:33:\"prop_register.recaptchatheme_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:4:\"text\";s:16:\"opt_register.red\";s:5:\"value\";s:3:\"red\";}i:1;a:2:{s:4:\"text\";s:18:\"opt_register.white\";s:5:\"value\";s:5:\"white\";}i:2;a:2:{s:4:\"text\";s:18:\"opt_register.clean\";s:5:\"value\";s:5:\"clean\";}i:3;a:2:{s:4:\"text\";s:23:\"opt_register.blackglass\";s:5:\"value\";s:10:\"blackglass\";}}s:5:\"value\";s:5:\"clean\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:12:\"mathMinRange\";a:7:{s:4:\"name\";s:12:\"mathMinRange\";s:4:\"desc\";s:31:\"prop_register.mathminrange_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:10;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:12:\"mathMaxRange\";a:7:{s:4:\"name\";s:12:\"mathMaxRange\";s:4:\"desc\";s:31:\"prop_register.mathmaxrange_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:100;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:9:\"mathField\";a:7:{s:4:\"name\";s:9:\"mathField\";s:4:\"desc\";s:28:\"prop_register.mathfield_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:4:\"math\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:12:\"mathOp1Field\";a:7:{s:4:\"name\";s:12:\"mathOp1Field\";s:4:\"desc\";s:31:\"prop_register.mathop1field_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:3:\"op1\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:12:\"mathOp2Field\";a:7:{s:4:\"name\";s:12:\"mathOp2Field\";s:4:\"desc\";s:31:\"prop_register.mathop2field_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:3:\"op2\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:17:\"mathOperatorField\";a:7:{s:4:\"name\";s:17:\"mathOperatorField\";s:4:\"desc\";s:36:\"prop_register.mathoperatorfield_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:8:\"operator\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('6', '0', '0', 'ConfirmRegister', 'Handles activation of registered user.', '0', '1', '0', '/**\n * Register\n *\n * Copyright 2010 by Shaun McCormick <shaun@modx.com>\n *\n * Register is free software; you can redistribute it and/or modify it under the\n * terms of the GNU General Public License as published by the Free Software\n * Foundation; either version 2 of the License, or (at your option) any later\n * version.\n *\n * Register is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * Register; if not, write to the Free Software Foundation, Inc., 59 Temple\n * Place, Suite 330, Boston, MA 02111-1307 USA\n *\n * @package login\n */\n/**\n * MODx Confirm Register Activation Snippet. Snippet to place on an activation\n * page that the user using the Register snippet would be sent to via the\n * activation email.\n *\n * @var modX $modx\n * @var Login $login\n * @var array $scriptProperties\n *\n * @package login\n */\nrequire_once $modx->getOption(\'login.core_path\',null,$modx->getOption(\'core_path\').\'components/login/\').\'model/login/login.class.php\';\n$login = new Login($modx,$scriptProperties);\n\n$controller = $login->loadController(\'ConfirmRegister\');\n$output = $controller->run($scriptProperties);\nreturn $output;', '0', 'a:5:{s:10:\"redirectTo\";a:7:{s:4:\"name\";s:10:\"redirectTo\";s:4:\"desc\";s:36:\"prop_confirmregister.redirectto_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:14:\"redirectParams\";a:7:{s:4:\"name\";s:14:\"redirectParams\";s:4:\"desc\";s:40:\"prop_confirmregister.redirectparams_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:12:\"authenticate\";a:7:{s:4:\"name\";s:12:\"authenticate\";s:4:\"desc\";s:38:\"prop_confirmregister.authenticate_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:20:\"authenticateContexts\";a:7:{s:4:\"name\";s:20:\"authenticateContexts\";s:4:\"desc\";s:46:\"prop_confirmregister.authenticatecontexts_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:9:\"errorPage\";a:7:{s:4:\"name\";s:9:\"errorPage\";s:4:\"desc\";s:35:\"prop_confirmregister.errorpage_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('7', '0', '0', 'UpdateProfile', 'Allows front-end updating of a users own profile.', '0', '1', '0', '/**\n * Login\n *\n * Copyright 2010-2012 by Shaun McCormick <shaun+login@modx.com>\n *\n * Login is free software; you can redistribute it and/or modify it under the\n * terms of the GNU General Public License as published by the Free Software\n * Foundation; either version 2 of the License, or (at your option) any later\n * version.\n *\n * Login is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * Login; if not, write to the Free Software Foundation, Inc., 59 Temple\n * Place, Suite 330, Boston, MA 02111-1307 USA\n *\n * @package login\n */\n/**\n * MODx UpdateProfile Snippet. Handles updating of User Profiles.\n *\n * @var modX $modx\n * @var Login $login\n * @var array $scriptProperties\n * \n * @package login\n */\nrequire_once $modx->getOption(\'login.core_path\',null,$modx->getOption(\'core_path\').\'components/login/\').\'model/login/login.class.php\';\n$login = new Login($modx,$scriptProperties);\n\n$controller = $login->loadController(\'UpdateProfile\');\nreturn $controller->run($scriptProperties);', '0', 'a:13:{s:9:\"submitVar\";a:7:{s:4:\"name\";s:9:\"submitVar\";s:4:\"desc\";s:33:\"prop_updateprofile.submitvar_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:4:\"user\";a:7:{s:4:\"name\";s:4:\"user\";s:4:\"desc\";s:28:\"prop_updateprofile.user_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"redirectToLogin\";a:7:{s:4:\"name\";s:15:\"redirectToLogin\";s:4:\"desc\";s:39:\"prop_updateprofile.redirecttologin_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"reloadOnSuccess\";a:7:{s:4:\"name\";s:15:\"reloadOnSuccess\";s:4:\"desc\";s:39:\"prop_updateprofile.reloadonsuccess_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:12:\"syncUsername\";a:7:{s:4:\"name\";s:12:\"syncUsername\";s:4:\"desc\";s:36:\"prop_updateprofile.syncusername_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:10:\"emailField\";a:7:{s:4:\"name\";s:10:\"emailField\";s:4:\"desc\";s:34:\"prop_updateprofile.emailfield_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:5:\"email\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:11:\"useExtended\";a:7:{s:4:\"name\";s:11:\"useExtended\";s:4:\"desc\";s:35:\"prop_updateprofile.useextended_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"excludeExtended\";a:7:{s:4:\"name\";s:15:\"excludeExtended\";s:4:\"desc\";s:39:\"prop_updateprofile.excludeextended_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:13:\"allowedFields\";a:7:{s:4:\"name\";s:13:\"allowedFields\";s:4:\"desc\";s:37:\"prop_updateprofile.allowedfields_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:21:\"allowedExtendedFields\";a:7:{s:4:\"name\";s:21:\"allowedExtendedFields\";s:4:\"desc\";s:45:\"prop_updateprofile.allowedextendedfields_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:8:\"preHooks\";a:7:{s:4:\"name\";s:8:\"preHooks\";s:4:\"desc\";s:32:\"prop_updateprofile.prehooks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:9:\"postHooks\";a:7:{s:4:\"name\";s:9:\"postHooks\";s:4:\"desc\";s:33:\"prop_updateprofile.posthooks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:17:\"placeholderPrefix\";a:7:{s:4:\"name\";s:17:\"placeholderPrefix\";s:4:\"desc\";s:41:\"prop_updateprofile.placeholderprefix_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('8', '0', '0', 'Profile', 'Displays Profile data for a User.', '0', '1', '0', '/**\n * Profile\n *\n * Copyright 2010 by Shaun McCormick <shaun@modx.com>\n *\n * Register is free software; you can redistribute it and/or modify it under the\n * terms of the GNU General Public License as published by the Free Software\n * Foundation; either version 2 of the License, or (at your option) any later\n * version.\n *\n * Register is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * Register; if not, write to the Free Software Foundation, Inc., 59 Temple\n * Place, Suite 330, Boston, MA 02111-1307 USA\n *\n * @package login\n */\n/**\n * MODx Profile Snippet. Sets Profile data for a user to placeholders\n *\n * @package login\n */\nrequire_once $modx->getOption(\'login.core_path\',null,$modx->getOption(\'core_path\').\'components/login/\').\'model/login/login.class.php\';\n$login = new Login($modx,$scriptProperties);\n\n$controller = $login->loadController(\'Profile\');\nreturn $controller->run($scriptProperties);', '0', 'a:3:{s:6:\"prefix\";a:7:{s:4:\"name\";s:6:\"prefix\";s:4:\"desc\";s:24:\"prop_profile.prefix_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:4:\"user\";a:7:{s:4:\"name\";s:4:\"user\";s:4:\"desc\";s:22:\"prop_profile.user_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:11:\"useExtended\";a:7:{s:4:\"name\";s:11:\"useExtended\";s:4:\"desc\";s:29:\"prop_profile.useextended_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('9', '0', '0', 'ChangePassword', 'Processes a form for changing the password for a User.', '0', '1', '0', '/**\n * Login\n *\n * Copyright 2010 by Shaun McCormick <shaun+login@modx.com>\n *\n * Login is free software; you can redistribute it and/or modify it under the\n * terms of the GNU General Public License as published by the Free Software\n * Foundation; either version 2 of the License, or (at your option) any later\n * version.\n *\n * Login is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * Login; if not, write to the Free Software Foundation, Inc., 59 Temple\n * Place, Suite 330, Boston, MA 02111-1307 USA\n *\n * @package login\n */\n/**\n * ChangePassword snippet\n *\n * @var modX $modx\n * @var Login $login\n * @var array $scriptProperties\n * \n * @package login\n **/\nrequire_once $modx->getOption(\'login.core_path\',null,$modx->getOption(\'core_path\').\'components/login/\').\'model/login/login.class.php\';\n$login = new Login($modx,$scriptProperties);\n\n$controller = $login->loadController(\'ChangePassword\');\n$output = $controller->run($scriptProperties);\nreturn $output;', '0', 'a:10:{s:9:\"submitVar\";a:7:{s:4:\"name\";s:9:\"submitVar\";s:4:\"desc\";s:34:\"prop_changepassword.submitvar_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:12:\"logcp-submit\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:16:\"fieldOldPassword\";a:7:{s:4:\"name\";s:16:\"fieldOldPassword\";s:4:\"desc\";s:41:\"prop_changepassword.fieldoldpassword_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:12:\"password_old\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:16:\"fieldNewPassword\";a:7:{s:4:\"name\";s:16:\"fieldNewPassword\";s:4:\"desc\";s:41:\"prop_changepassword.fieldnewpassword_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:12:\"password_new\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:23:\"fieldConfirmNewPassword\";a:7:{s:4:\"name\";s:23:\"fieldConfirmNewPassword\";s:4:\"desc\";s:48:\"prop_changepassword.fieldconfirmnewpassword_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:20:\"password_new_confirm\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:8:\"preHooks\";a:7:{s:4:\"name\";s:8:\"preHooks\";s:4:\"desc\";s:33:\"prop_changepassword.prehooks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:9:\"postHooks\";a:7:{s:4:\"name\";s:9:\"postHooks\";s:4:\"desc\";s:34:\"prop_changepassword.posthooks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"redirectToLogin\";a:7:{s:4:\"name\";s:15:\"redirectToLogin\";s:4:\"desc\";s:40:\"prop_changepassword.redirecttologin_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:15:\"reloadOnSuccess\";a:7:{s:4:\"name\";s:15:\"reloadOnSuccess\";s:4:\"desc\";s:40:\"prop_changepassword.reloadonsuccess_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:14:\"successMessage\";a:7:{s:4:\"name\";s:14:\"successMessage\";s:4:\"desc\";s:39:\"prop_changepassword.successmessage_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:17:\"placeholderPrefix\";a:7:{s:4:\"name\";s:17:\"placeholderPrefix\";s:4:\"desc\";s:42:\"prop_changepassword.placeholderprefix_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:6:\"logcp.\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('10', '0', '0', 'isLoggedIn', 'Checks to see if the user is logged in. If not, redirects to Unauthorized Page.', '0', '1', '0', '/**\n * isLoggedIn\n *\n * Copyright 2009-2011 by Shaun McCormick <shaun@modx.com>\n *\n * isLoggedIn is free software; you can redistribute it and/or modify it under the\n * terms of the GNU General Public License as published by the Free Software\n * Foundation; either version 2 of the License, or (at your option) any later\n * version.\n *\n * isLoggedIn is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * isLoggedIn; if not, write to the Free Software Foundation, Inc., 59 Temple\n * Place, Suite 330, Boston, MA 02111-1307 USA\n *\n * @package login\n */\n/**\n * MODx isLoggedIn Snippet. Will check to see if user is logged into the current\n * or specific context. If not, redirects to unauthorized page.\n *\n * @package login\n */\n/* setup default properties */\n$ctxs = !empty($ctxs) ? $ctxs : $modx->context->get(\'key\');\nif (!is_array($ctxs)) $ctxs = explode(\',\',$ctxs);\n\nif (!$modx->user->hasSessionContext($ctxs)) {\n    if (!empty($redirectTo)) {\n        $redirectParams = !empty($redirectParams) ? $modx->fromJSON($redirectParams) : \'\';\n        $url = $modx->makeUrl($redirectTo,\'\',$redirectParams,\'full\');\n        $modx->sendRedirect($url);\n    } else {\n        $modx->sendUnauthorizedPage();\n    }\n}\nreturn \'\';', '0', 'a:3:{s:8:\"contexts\";a:7:{s:4:\"name\";s:8:\"contexts\";s:4:\"desc\";s:29:\"prop_isloggedin.contexts_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:10:\"redirectto\";a:7:{s:4:\"name\";s:10:\"redirectto\";s:4:\"desc\";s:31:\"prop_isloggedin.redirectto_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:14:\"redirectparams\";a:7:{s:4:\"name\";s:14:\"redirectparams\";s:4:\"desc\";s:35:\"prop_isloggedin.redirectparams_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('11', '0', '0', 'ActiveUsers', 'Shows a list of active, logged-in users.', '0', '1', '0', '/**\n * Login\n *\n * Copyright 2010 by Shaun McCormick <shaun+login@modx.com>\n *\n * Login is free software; you can redistribute it and/or modify it under the\n * terms of the GNU General Public License as published by the Free Software\n * Foundation; either version 2 of the License, or (at your option) any later\n * version.\n *\n * Login is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * Login; if not, write to the Free Software Foundation, Inc., 59 Temple\n * Place, Suite 330, Boston, MA 02111-1307 USA\n *\n * @package login\n */\n/**\n * Shows a list of active, signed-on users\n *\n * @var modX $modx\n * @var Login $login\n * @var array $scriptProperties\n *\n * @package login\n **/\nrequire_once $modx->getOption(\'login.core_path\',null,$modx->getOption(\'core_path\').\'components/login/\').\'model/login/login.class.php\';\n$login = new Login($modx,$scriptProperties);\n\n$controller = $login->loadController(\'ActiveUsers\');\n$output = $controller->run($scriptProperties);\nreturn $output;', '0', 'a:9:{s:3:\"tpl\";a:7:{s:4:\"name\";s:3:\"tpl\";s:4:\"desc\";s:25:\"prop_activeusers.tpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:13:\"lgnActiveUser\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:7:\"tplType\";a:7:{s:4:\"name\";s:7:\"tplType\";s:4:\"desc\";s:29:\"prop_activeusers.tpltype_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:5:\"value\";s:8:\"modChunk\";s:4:\"text\";s:18:\"opt_register.chunk\";}i:1;a:2:{s:5:\"value\";s:4:\"file\";s:4:\"text\";s:17:\"opt_register.file\";}i:2;a:2:{s:5:\"value\";s:6:\"inline\";s:4:\"text\";s:19:\"opt_register.inline\";}i:3;a:2:{s:5:\"value\";s:8:\"embedded\";s:4:\"text\";s:21:\"opt_register.embedded\";}}s:5:\"value\";s:8:\"modChunk\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:6:\"sortBy\";a:7:{s:4:\"name\";s:6:\"sortBy\";s:4:\"desc\";s:28:\"prop_activeusers.sortby_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:8:\"username\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:7:\"sortDir\";a:7:{s:4:\"name\";s:7:\"sortDir\";s:4:\"desc\";s:29:\"prop_activeusers.sortdir_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";a:2:{i:0;a:2:{s:5:\"value\";s:3:\"ASC\";s:4:\"text\";s:16:\"opt_register.asc\";}i:1;a:2:{s:5:\"value\";s:4:\"DESC\";s:4:\"text\";s:17:\"opt_register.desc\";}}s:5:\"value\";s:4:\"DESC\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:5:\"limit\";a:7:{s:4:\"name\";s:5:\"limit\";s:4:\"desc\";s:27:\"prop_activeusers.limit_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:10;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:6:\"offset\";a:7:{s:4:\"name\";s:6:\"offset\";s:4:\"desc\";s:28:\"prop_activeusers.offset_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:0;s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:8:\"classKey\";a:7:{s:4:\"name\";s:8:\"classKey\";s:4:\"desc\";s:30:\"prop_activeusers.classkey_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:7:\"modUser\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:17:\"placeholderPrefix\";a:7:{s:4:\"name\";s:17:\"placeholderPrefix\";s:4:\"desc\";s:39:\"prop_activeusers.placeholderprefix_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:3:\"au.\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}s:13:\"toPlaceholder\";a:7:{s:4:\"name\";s:13:\"toPlaceholder\";s:4:\"desc\";s:35:\"prop_activeusers.toplaceholder_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:16:\"login:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('12', '0', '0', 'getResources', '<strong>1.6.1-pl</strong> A general purpose Resource listing and summarization snippet for MODX Revolution', '0', '0', '0', '/**\n * getResources\n *\n * A general purpose Resource listing and summarization snippet for MODX 2.x.\n *\n * @author Jason Coward\n * @copyright Copyright 2010-2013, Jason Coward\n *\n * TEMPLATES\n *\n * tpl - Name of a chunk serving as a resource template\n * [NOTE: if not provided, properties are dumped to output for each resource]\n *\n * tplOdd - (Opt) Name of a chunk serving as resource template for resources with an odd idx value\n * (see idx property)\n * tplFirst - (Opt) Name of a chunk serving as resource template for the first resource (see first\n * property)\n * tplLast - (Opt) Name of a chunk serving as resource template for the last resource (see last\n * property)\n * tpl_{n} - (Opt) Name of a chunk serving as resource template for the nth resource\n *\n * tplCondition - (Opt) Defines a field of the resource to evaluate against keys defined in the\n * conditionalTpls property. Must be a resource field; does not work with Template Variables.\n * conditionalTpls - (Opt) A JSON object defining a map of field values and the associated tpl to\n * use when the field defined by tplCondition matches the value. [NOTE: tplOdd, tplFirst, tplLast,\n * and tpl_{n} will take precedence over any defined conditionalTpls]\n *\n * tplWrapper - (Opt) Name of a chunk serving as a wrapper template for the output\n * [NOTE: Does not work with toSeparatePlaceholders]\n *\n * SELECTION\n *\n * parents - Comma-delimited list of ids serving as parents\n *\n * context - (Opt) Comma-delimited list of context keys to limit results by; if empty, contexts for all specified\n * parents will be used (all contexts if 0 is specified) [default=]\n *\n * depth - (Opt) Integer value indicating depth to search for resources from each parent [default=10]\n *\n * tvFilters - (Opt) Delimited-list of TemplateVar values to filter resources by. Supports two\n * delimiters and two value search formats. The first delimiter || represents a logical OR and the\n * primary grouping mechanism.  Within each group you can provide a comma-delimited list of values.\n * These values can be either tied to a specific TemplateVar by name, e.g. myTV==value, or just the\n * value, indicating you are searching for the value in any TemplateVar tied to the Resource. An\n * example would be &tvFilters=`filter2==one,filter1==bar%||filter1==foo`\n * [NOTE: filtering by values uses a LIKE query and % is considered a wildcard.]\n * [NOTE: this only looks at the raw value set for specific Resource, i. e. there must be a value\n * specifically set for the Resource and it is not evaluated.]\n *\n * tvFiltersAndDelimiter - (Opt) Custom delimiter for logical AND, default \',\', in case you want to\n * match a literal comma in the tvFilters. E.g. &tvFiltersAndDelimiter=`&&`\n * &tvFilters=`filter1==foo,bar&&filter2==baz` [default=,]\n *\n * tvFiltersOrDelimiter - (Opt) Custom delimiter for logical OR, default \'||\', in case you want to\n * match a literal \'||\' in the tvFilters. E.g. &tvFiltersOrDelimiter=`|OR|`\n * &tvFilters=`filter1==foo||bar|OR|filter2==baz` [default=||]\n *\n * where - (Opt) A JSON expression of criteria to build any additional where clauses from. An example would be\n * &where=`{{\"alias:LIKE\":\"foo%\", \"OR:alias:LIKE\":\"%bar\"},{\"OR:pagetitle:=\":\"foobar\", \"AND:description:=\":\"raboof\"}}`\n *\n * sortby - (Opt) Field to sort by or a JSON array, e.g. {\"publishedon\":\"ASC\",\"createdon\":\"DESC\"} [default=publishedon]\n * sortbyTV - (opt) A Template Variable name to sort by (if supplied, this precedes the sortby value) [default=]\n * sortbyTVType - (Opt) A data type to CAST a TV Value to in order to sort on it properly [default=string]\n * sortbyAlias - (Opt) Query alias for sortby field [default=]\n * sortbyEscaped - (Opt) Escapes the field name(s) specified in sortby [default=0]\n * sortdir - (Opt) Order which to sort by [default=DESC]\n * sortdirTV - (Opt) Order which to sort by a TV [default=DESC]\n * limit - (Opt) Limits the number of resources returned [default=5]\n * offset - (Opt) An offset of resources returned by the criteria to skip [default=0]\n * dbCacheFlag - (Opt) Controls caching of db queries; 0|false = do not cache result set; 1 = cache result set\n * according to cache settings, any other integer value = number of seconds to cache result set [default=0]\n *\n * OPTIONS\n *\n * includeContent - (Opt) Indicates if the content of each resource should be returned in the\n * results [default=0]\n * includeTVs - (Opt) Indicates if TemplateVar values should be included in the properties available\n * to each resource template [default=0]\n * includeTVList - (Opt) Limits the TemplateVars that are included if includeTVs is true to those specified\n * by name in a comma-delimited list [default=]\n * prepareTVs - (Opt) Prepares media-source dependent TemplateVar values [default=1]\n * prepareTVList - (Opt) Limits the TVs that are prepared to those specified by name in a comma-delimited\n * list [default=]\n * processTVs - (Opt) Indicates if TemplateVar values should be rendered as they would on the\n * resource being summarized [default=0]\n * processTVList - (opt) Limits the TemplateVars that are processed if included to those specified\n * by name in a comma-delimited list [default=]\n * tvPrefix - (Opt) The prefix for TemplateVar properties [default=tv.]\n * idx - (Opt) You can define the starting idx of the resources, which is an property that is\n * incremented as each resource is rendered [default=1]\n * first - (Opt) Define the idx which represents the first resource (see tplFirst) [default=1]\n * last - (Opt) Define the idx which represents the last resource (see tplLast) [default=# of\n * resources being summarized + first - 1]\n * outputSeparator - (Opt) An optional string to separate each tpl instance [default=\"\\n\"]\n * wrapIfEmpty - (Opt) Indicates if the tplWrapper should be applied if the output is empty [default=0]\n *\n */\n$output = array();\n$outputSeparator = isset($outputSeparator) ? $outputSeparator : \"\\n\";\n\n/* set default properties */\n$tpl = !empty($tpl) ? $tpl : \'\';\n$includeContent = !empty($includeContent) ? true : false;\n$includeTVs = !empty($includeTVs) ? true : false;\n$includeTVList = !empty($includeTVList) ? explode(\',\', $includeTVList) : array();\n$processTVs = !empty($processTVs) ? true : false;\n$processTVList = !empty($processTVList) ? explode(\',\', $processTVList) : array();\n$prepareTVs = !empty($prepareTVs) ? true : false;\n$prepareTVList = !empty($prepareTVList) ? explode(\',\', $prepareTVList) : array();\n$tvPrefix = isset($tvPrefix) ? $tvPrefix : \'tv.\';\n$parents = (!empty($parents) || $parents === \'0\') ? explode(\',\', $parents) : array($modx->resource->get(\'id\'));\narray_walk($parents, \'trim\');\n$parents = array_unique($parents);\n$depth = isset($depth) ? (integer) $depth : 10;\n\n$tvFiltersOrDelimiter = isset($tvFiltersOrDelimiter) ? $tvFiltersOrDelimiter : \'||\';\n$tvFiltersAndDelimiter = isset($tvFiltersAndDelimiter) ? $tvFiltersAndDelimiter : \',\';\n$tvFilters = !empty($tvFilters) ? explode($tvFiltersOrDelimiter, $tvFilters) : array();\n\n$where = !empty($where) ? $modx->fromJSON($where) : array();\n$showUnpublished = !empty($showUnpublished) ? true : false;\n$showDeleted = !empty($showDeleted) ? true : false;\n\n$sortby = isset($sortby) ? $sortby : \'publishedon\';\n$sortbyTV = isset($sortbyTV) ? $sortbyTV : \'\';\n$sortbyAlias = isset($sortbyAlias) ? $sortbyAlias : \'modResource\';\n$sortbyEscaped = !empty($sortbyEscaped) ? true : false;\n$sortdir = isset($sortdir) ? $sortdir : \'DESC\';\n$sortdirTV = isset($sortdirTV) ? $sortdirTV : \'DESC\';\n$limit = isset($limit) ? (integer) $limit : 5;\n$offset = isset($offset) ? (integer) $offset : 0;\n$totalVar = !empty($totalVar) ? $totalVar : \'total\';\n\n$dbCacheFlag = !isset($dbCacheFlag) ? false : $dbCacheFlag;\nif (is_string($dbCacheFlag) || is_numeric($dbCacheFlag)) {\n    if ($dbCacheFlag == \'0\') {\n        $dbCacheFlag = false;\n    } elseif ($dbCacheFlag == \'1\') {\n        $dbCacheFlag = true;\n    } else {\n        $dbCacheFlag = (integer) $dbCacheFlag;\n    }\n}\n\n/* multiple context support */\n$contextArray = array();\n$contextSpecified = false;\nif (!empty($context)) {\n    $contextArray = explode(\',\',$context);\n    array_walk($contextArray, \'trim\');\n    $contexts = array();\n    foreach ($contextArray as $ctx) {\n        $contexts[] = $modx->quote($ctx);\n    }\n    $context = implode(\',\',$contexts);\n    $contextSpecified = true;\n    unset($contexts,$ctx);\n} else {\n    $context = $modx->quote($modx->context->get(\'key\'));\n}\n\n$pcMap = array();\n$pcQuery = $modx->newQuery(\'modResource\', array(\'id:IN\' => $parents), $dbCacheFlag);\n$pcQuery->select(array(\'id\', \'context_key\'));\nif ($pcQuery->prepare() && $pcQuery->stmt->execute()) {\n    foreach ($pcQuery->stmt->fetchAll(PDO::FETCH_ASSOC) as $pcRow) {\n        $pcMap[(integer) $pcRow[\'id\']] = $pcRow[\'context_key\'];\n    }\n}\n\n$children = array();\n$parentArray = array();\nforeach ($parents as $parent) {\n    $parent = (integer) $parent;\n    if ($parent === 0) {\n        $pchildren = array();\n        if ($contextSpecified) {\n            foreach ($contextArray as $pCtx) {\n                if (!in_array($pCtx, $contextArray)) {\n                    continue;\n                }\n                $options = $pCtx !== $modx->context->get(\'key\') ? array(\'context\' => $pCtx) : array();\n                $pcchildren = $modx->getChildIds($parent, $depth, $options);\n                if (!empty($pcchildren)) $pchildren = array_merge($pchildren, $pcchildren);\n            }\n        } else {\n            $cQuery = $modx->newQuery(\'modContext\', array(\'key:!=\' => \'mgr\'));\n            $cQuery->select(array(\'key\'));\n            if ($cQuery->prepare() && $cQuery->stmt->execute()) {\n                foreach ($cQuery->stmt->fetchAll(PDO::FETCH_COLUMN) as $pCtx) {\n                    $options = $pCtx !== $modx->context->get(\'key\') ? array(\'context\' => $pCtx) : array();\n                    $pcchildren = $modx->getChildIds($parent, $depth, $options);\n                    if (!empty($pcchildren)) $pchildren = array_merge($pchildren, $pcchildren);\n                }\n            }\n        }\n        $parentArray[] = $parent;\n    } else {\n        $pContext = array_key_exists($parent, $pcMap) ? $pcMap[$parent] : false;\n        if ($debug) $modx->log(modX::LOG_LEVEL_ERROR, \"context for {$parent} is {$pContext}\");\n        if ($pContext && $contextSpecified && !in_array($pContext, $contextArray, true)) {\n            $parent = next($parents);\n            continue;\n        }\n        $parentArray[] = $parent;\n        $options = !empty($pContext) && $pContext !== $modx->context->get(\'key\') ? array(\'context\' => $pContext) : array();\n        $pchildren = $modx->getChildIds($parent, $depth, $options);\n    }\n    if (!empty($pchildren)) $children = array_merge($children, $pchildren);\n    $parent = next($parents);\n}\n$parents = array_merge($parentArray, $children);\n\n/* build query */\n$criteria = array(\"modResource.parent IN (\" . implode(\',\', $parents) . \")\");\nif ($contextSpecified) {\n    $contextResourceTbl = $modx->getTableName(\'modContextResource\');\n    $criteria[] = \"(modResource.context_key IN ({$context}) OR EXISTS(SELECT 1 FROM {$contextResourceTbl} ctx WHERE ctx.resource = modResource.id AND ctx.context_key IN ({$context})))\";\n}\nif (empty($showDeleted)) {\n    $criteria[\'deleted\'] = \'0\';\n}\nif (empty($showUnpublished)) {\n    $criteria[\'published\'] = \'1\';\n}\nif (empty($showHidden)) {\n    $criteria[\'hidemenu\'] = \'0\';\n}\nif (!empty($hideContainers)) {\n    $criteria[\'isfolder\'] = \'0\';\n}\n$criteria = $modx->newQuery(\'modResource\', $criteria);\nif (!empty($tvFilters)) {\n    $tmplVarTbl = $modx->getTableName(\'modTemplateVar\');\n    $tmplVarResourceTbl = $modx->getTableName(\'modTemplateVarResource\');\n    $conditions = array();\n    $operators = array(\n        \'<=>\' => \'<=>\',\n        \'===\' => \'=\',\n        \'!==\' => \'!=\',\n        \'<>\' => \'<>\',\n        \'==\' => \'LIKE\',\n        \'!=\' => \'NOT LIKE\',\n        \'<<\' => \'<\',\n        \'<=\' => \'<=\',\n        \'=<\' => \'=<\',\n        \'>>\' => \'>\',\n        \'>=\' => \'>=\',\n        \'=>\' => \'=>\'\n    );\n    foreach ($tvFilters as $fGroup => $tvFilter) {\n        $filterGroup = array();\n        $filters = explode($tvFiltersAndDelimiter, $tvFilter);\n        $multiple = count($filters) > 0;\n        foreach ($filters as $filter) {\n            $operator = \'==\';\n            $sqlOperator = \'LIKE\';\n            foreach ($operators as $op => $opSymbol) {\n                if (strpos($filter, $op, 1) !== false) {\n                    $operator = $op;\n                    $sqlOperator = $opSymbol;\n                    break;\n                }\n            }\n            $tvValueField = \'tvr.value\';\n            $tvDefaultField = \'tv.default_text\';\n            $f = explode($operator, $filter);\n            if (count($f) >= 2) {\n                if (count($f) > 2) {\n                    $k = array_shift($f);\n                    $b = join($operator, $f);\n                    $f = array($k, $b);\n                }\n                $tvName = $modx->quote($f[0]);\n                if (is_numeric($f[1]) && !in_array($sqlOperator, array(\'LIKE\', \'NOT LIKE\'))) {\n                    $tvValue = $f[1];\n                    if ($f[1] == (integer)$f[1]) {\n                        $tvValueField = \"CAST({$tvValueField} AS SIGNED INTEGER)\";\n                        $tvDefaultField = \"CAST({$tvDefaultField} AS SIGNED INTEGER)\";\n                    } else {\n                        $tvValueField = \"CAST({$tvValueField} AS DECIMAL)\";\n                        $tvDefaultField = \"CAST({$tvDefaultField} AS DECIMAL)\";\n                    }\n                } else {\n                    $tvValue = $modx->quote($f[1]);\n                }\n                if ($multiple) {\n                    $filterGroup[] =\n                        \"(EXISTS (SELECT 1 FROM {$tmplVarResourceTbl} tvr JOIN {$tmplVarTbl} tv ON {$tvValueField} {$sqlOperator} {$tvValue} AND tv.name = {$tvName} AND tv.id = tvr.tmplvarid WHERE tvr.contentid = modResource.id) \" .\n                        \"OR EXISTS (SELECT 1 FROM {$tmplVarTbl} tv WHERE tv.name = {$tvName} AND {$tvDefaultField} {$sqlOperator} {$tvValue} AND tv.id NOT IN (SELECT tmplvarid FROM {$tmplVarResourceTbl} WHERE contentid = modResource.id)) \" .\n                        \")\";\n                } else {\n                    $filterGroup =\n                        \"(EXISTS (SELECT 1 FROM {$tmplVarResourceTbl} tvr JOIN {$tmplVarTbl} tv ON {$tvValueField} {$sqlOperator} {$tvValue} AND tv.name = {$tvName} AND tv.id = tvr.tmplvarid WHERE tvr.contentid = modResource.id) \" .\n                        \"OR EXISTS (SELECT 1 FROM {$tmplVarTbl} tv WHERE tv.name = {$tvName} AND {$tvDefaultField} {$sqlOperator} {$tvValue} AND tv.id NOT IN (SELECT tmplvarid FROM {$tmplVarResourceTbl} WHERE contentid = modResource.id)) \" .\n                        \")\";\n                }\n            } elseif (count($f) == 1) {\n                $tvValue = $modx->quote($f[0]);\n                if ($multiple) {\n                    $filterGroup[] = \"EXISTS (SELECT 1 FROM {$tmplVarResourceTbl} tvr JOIN {$tmplVarTbl} tv ON {$tvValueField} {$sqlOperator} {$tvValue} AND tv.id = tvr.tmplvarid WHERE tvr.contentid = modResource.id)\";\n                } else {\n                    $filterGroup = \"EXISTS (SELECT 1 FROM {$tmplVarResourceTbl} tvr JOIN {$tmplVarTbl} tv ON {$tvValueField} {$sqlOperator} {$tvValue} AND tv.id = tvr.tmplvarid WHERE tvr.contentid = modResource.id)\";\n                }\n            }\n        }\n        $conditions[] = $filterGroup;\n    }\n    if (!empty($conditions)) {\n        $firstGroup = true;\n        foreach ($conditions as $cGroup => $c) {\n            if (is_array($c)) {\n                $first = true;\n                foreach ($c as $cond) {\n                    if ($first && !$firstGroup) {\n                        $criteria->condition($criteria->query[\'where\'][0][1], $cond, xPDOQuery::SQL_OR, null, $cGroup);\n                    } else {\n                        $criteria->condition($criteria->query[\'where\'][0][1], $cond, xPDOQuery::SQL_AND, null, $cGroup);\n                    }\n                    $first = false;\n                }\n            } else {\n                $criteria->condition($criteria->query[\'where\'][0][1], $c, $firstGroup ? xPDOQuery::SQL_AND : xPDOQuery::SQL_OR, null, $cGroup);\n            }\n            $firstGroup = false;\n        }\n    }\n}\n/* include/exclude resources, via &resources=`123,-456` prop */\nif (!empty($resources)) {\n    $resourceConditions = array();\n    $resources = explode(\',\',$resources);\n    $include = array();\n    $exclude = array();\n    foreach ($resources as $resource) {\n        $resource = (int)$resource;\n        if ($resource == 0) continue;\n        if ($resource < 0) {\n            $exclude[] = abs($resource);\n        } else {\n            $include[] = $resource;\n        }\n    }\n    if (!empty($include)) {\n        $criteria->where(array(\'OR:modResource.id:IN\' => $include), xPDOQuery::SQL_OR);\n    }\n    if (!empty($exclude)) {\n        $criteria->where(array(\'modResource.id:NOT IN\' => $exclude), xPDOQuery::SQL_AND, null, 1);\n    }\n}\nif (!empty($where)) {\n    $criteria->where($where);\n}\n\n$total = $modx->getCount(\'modResource\', $criteria);\n$modx->setPlaceholder($totalVar, $total);\n\n$fields = array_keys($modx->getFields(\'modResource\'));\nif (empty($includeContent)) {\n    $fields = array_diff($fields, array(\'content\'));\n}\n$columns = $includeContent ? $modx->getSelectColumns(\'modResource\', \'modResource\') : $modx->getSelectColumns(\'modResource\', \'modResource\', \'\', array(\'content\'), true);\n$criteria->select($columns);\nif (!empty($sortbyTV)) {\n    $criteria->leftJoin(\'modTemplateVar\', \'tvDefault\', array(\n        \"tvDefault.name\" => $sortbyTV\n    ));\n    $criteria->leftJoin(\'modTemplateVarResource\', \'tvSort\', array(\n        \"tvSort.contentid = modResource.id\",\n        \"tvSort.tmplvarid = tvDefault.id\"\n    ));\n    if (empty($sortbyTVType)) $sortbyTVType = \'string\';\n    if ($modx->getOption(\'dbtype\') === \'mysql\') {\n        switch ($sortbyTVType) {\n            case \'integer\':\n                $criteria->select(\"CAST(IFNULL(tvSort.value, tvDefault.default_text) AS SIGNED INTEGER) AS sortTV\");\n                break;\n            case \'decimal\':\n                $criteria->select(\"CAST(IFNULL(tvSort.value, tvDefault.default_text) AS DECIMAL) AS sortTV\");\n                break;\n            case \'datetime\':\n                $criteria->select(\"CAST(IFNULL(tvSort.value, tvDefault.default_text) AS DATETIME) AS sortTV\");\n                break;\n            case \'string\':\n            default:\n                $criteria->select(\"IFNULL(tvSort.value, tvDefault.default_text) AS sortTV\");\n                break;\n        }\n    } elseif ($modx->getOption(\'dbtype\') === \'sqlsrv\') {\n        switch ($sortbyTVType) {\n            case \'integer\':\n                $criteria->select(\"CAST(ISNULL(tvSort.value, tvDefault.default_text) AS BIGINT) AS sortTV\");\n                break;\n            case \'decimal\':\n                $criteria->select(\"CAST(ISNULL(tvSort.value, tvDefault.default_text) AS DECIMAL) AS sortTV\");\n                break;\n            case \'datetime\':\n                $criteria->select(\"CAST(ISNULL(tvSort.value, tvDefault.default_text) AS DATETIME) AS sortTV\");\n                break;\n            case \'string\':\n            default:\n                $criteria->select(\"ISNULL(tvSort.value, tvDefault.default_text) AS sortTV\");\n                break;\n        }\n    }\n    $criteria->sortby(\"sortTV\", $sortdirTV);\n}\nif (!empty($sortby)) {\n    if (strpos($sortby, \'{\') === 0) {\n        $sorts = $modx->fromJSON($sortby);\n    } else {\n        $sorts = array($sortby => $sortdir);\n    }\n    if (is_array($sorts)) {\n        while (list($sort, $dir) = each($sorts)) {\n            if ($sortbyEscaped) $sort = $modx->escape($sort);\n            if (!empty($sortbyAlias)) $sort = $modx->escape($sortbyAlias) . \".{$sort}\";\n            $criteria->sortby($sort, $dir);\n        }\n    }\n}\nif (!empty($limit)) $criteria->limit($limit, $offset);\n\nif (!empty($debug)) {\n    $criteria->prepare();\n    $modx->log(modX::LOG_LEVEL_ERROR, $criteria->toSQL());\n}\n$collection = $modx->getCollection(\'modResource\', $criteria, $dbCacheFlag);\n\n$idx = !empty($idx) || $idx === \'0\' ? (integer) $idx : 1;\n$first = empty($first) && $first !== \'0\' ? 1 : (integer) $first;\n$last = empty($last) ? (count($collection) + $idx - 1) : (integer) $last;\n\n/* include parseTpl */\ninclude_once $modx->getOption(\'getresources.core_path\',null,$modx->getOption(\'core_path\').\'components/getresources/\').\'include.parsetpl.php\';\n\n$templateVars = array();\nif (!empty($includeTVs) && !empty($includeTVList)) {\n    $templateVars = $modx->getCollection(\'modTemplateVar\', array(\'name:IN\' => $includeTVList));\n}\n/** @var modResource $resource */\nforeach ($collection as $resourceId => $resource) {\n    $tvs = array();\n    if (!empty($includeTVs)) {\n        if (empty($includeTVList)) {\n            $templateVars = $resource->getMany(\'TemplateVars\');\n        }\n        /** @var modTemplateVar $templateVar */\n        foreach ($templateVars as $tvId => $templateVar) {\n            if (!empty($includeTVList) && !in_array($templateVar->get(\'name\'), $includeTVList)) continue;\n            if ($processTVs && (empty($processTVList) || in_array($templateVar->get(\'name\'), $processTVList))) {\n                $tvs[$tvPrefix . $templateVar->get(\'name\')] = $templateVar->renderOutput($resource->get(\'id\'));\n            } else {\n                $value = $templateVar->getValue($resource->get(\'id\'));\n                if ($prepareTVs && method_exists($templateVar, \'prepareOutput\') && (empty($prepareTVList) || in_array($templateVar->get(\'name\'), $prepareTVList))) {\n                    $value = $templateVar->prepareOutput($value);\n                }\n                $tvs[$tvPrefix . $templateVar->get(\'name\')] = $value;\n            }\n        }\n    }\n    $odd = ($idx & 1);\n    $properties = array_merge(\n        $scriptProperties\n        ,array(\n            \'idx\' => $idx\n            ,\'first\' => $first\n            ,\'last\' => $last\n            ,\'odd\' => $odd\n        )\n        ,$includeContent ? $resource->toArray() : $resource->get($fields)\n        ,$tvs\n    );\n    $resourceTpl = false;\n    if ($idx == $first && !empty($tplFirst)) {\n        $resourceTpl = parseTpl($tplFirst, $properties);\n    }\n    if ($idx == $last && empty($resourceTpl) && !empty($tplLast)) {\n        $resourceTpl = parseTpl($tplLast, $properties);\n    }\n    $tplidx = \'tpl_\' . $idx;\n    if (empty($resourceTpl) && !empty($$tplidx)) {\n        $resourceTpl = parseTpl($$tplidx, $properties);\n    }\n    if ($idx > 1 && empty($resourceTpl)) {\n        $divisors = getDivisors($idx);\n        if (!empty($divisors)) {\n            foreach ($divisors as $divisor) {\n                $tplnth = \'tpl_n\' . $divisor;\n                if (!empty($$tplnth)) {\n                    $resourceTpl = parseTpl($$tplnth, $properties);\n                    if (!empty($resourceTpl)) {\n                        break;\n                    }\n                }\n            }\n        }\n    }\n    if ($odd && empty($resourceTpl) && !empty($tplOdd)) {\n        $resourceTpl = parseTpl($tplOdd, $properties);\n    }\n    if (!empty($tplCondition) && !empty($conditionalTpls) && empty($resourceTpl)) {\n        $conTpls = $modx->fromJSON($conditionalTpls);\n        $subject = $properties[$tplCondition];\n        $tplOperator = !empty($tplOperator) ? $tplOperator : \'=\';\n        $tplOperator = strtolower($tplOperator);\n        $tplCon = \'\';\n        foreach ($conTpls as $operand => $conditionalTpl) {\n            switch ($tplOperator) {\n                case \'!=\':\n                case \'neq\':\n                case \'not\':\n                case \'isnot\':\n                case \'isnt\':\n                case \'unequal\':\n                case \'notequal\':\n                    $tplCon = (($subject != $operand) ? $conditionalTpl : $tplCon);\n                    break;\n                case \'<\':\n                case \'lt\':\n                case \'less\':\n                case \'lessthan\':\n                    $tplCon = (($subject < $operand) ? $conditionalTpl : $tplCon);\n                    break;\n                case \'>\':\n                case \'gt\':\n                case \'greater\':\n                case \'greaterthan\':\n                    $tplCon = (($subject > $operand) ? $conditionalTpl : $tplCon);\n                    break;\n                case \'<=\':\n                case \'lte\':\n                case \'lessthanequals\':\n                case \'lessthanorequalto\':\n                    $tplCon = (($subject <= $operand) ? $conditionalTpl : $tplCon);\n                    break;\n                case \'>=\':\n                case \'gte\':\n                case \'greaterthanequals\':\n                case \'greaterthanequalto\':\n                    $tplCon = (($subject >= $operand) ? $conditionalTpl : $tplCon);\n                    break;\n                case \'isempty\':\n                case \'empty\':\n                    $tplCon = empty($subject) ? $conditionalTpl : $tplCon;\n                    break;\n                case \'!empty\':\n                case \'notempty\':\n                case \'isnotempty\':\n                    $tplCon = !empty($subject) && $subject != \'\' ? $conditionalTpl : $tplCon;\n                    break;\n                case \'isnull\':\n                case \'null\':\n                    $tplCon = $subject == null || strtolower($subject) == \'null\' ? $conditionalTpl : $tplCon;\n                    break;\n                case \'inarray\':\n                case \'in_array\':\n                case \'ia\':\n                    $operand = explode(\',\', $operand);\n                    $tplCon = in_array($subject, $operand) ? $conditionalTpl : $tplCon;\n                    break;\n                case \'between\':\n                case \'range\':\n                case \'>=<\':\n                case \'><\':\n                    $operand = explode(\',\', $operand);\n                    $tplCon = ($subject >= min($operand) && $subject <= max($operand)) ? $conditionalTpl : $tplCon;\n                    break;\n                case \'==\':\n                case \'=\':\n                case \'eq\':\n                case \'is\':\n                case \'equal\':\n                case \'equals\':\n                case \'equalto\':\n                default:\n                    $tplCon = (($subject == $operand) ? $conditionalTpl : $tplCon);\n                    break;\n            }\n        }\n        if (!empty($tplCon)) {\n            $resourceTpl = parseTpl($tplCon, $properties);\n        }\n    }\n    if (!empty($tpl) && empty($resourceTpl)) {\n        $resourceTpl = parseTpl($tpl, $properties);\n    }\n    if ($resourceTpl === false && !empty($debug)) {\n        $chunk = $modx->newObject(\'modChunk\');\n        $chunk->setCacheable(false);\n        $output[]= $chunk->process(array(), \'<pre>\' . print_r($properties, true) .\'</pre>\');\n    } else {\n        $output[]= $resourceTpl;\n    }\n    $idx++;\n}\n\n/* output */\n$toSeparatePlaceholders = $modx->getOption(\'toSeparatePlaceholders\', $scriptProperties, false);\nif (!empty($toSeparatePlaceholders)) {\n    $modx->setPlaceholders($output, $toSeparatePlaceholders);\n    return \'\';\n}\n\n$output = implode($outputSeparator, $output);\n\n$tplWrapper = $modx->getOption(\'tplWrapper\', $scriptProperties, false);\n$wrapIfEmpty = $modx->getOption(\'wrapIfEmpty\', $scriptProperties, false);\nif (!empty($tplWrapper) && ($wrapIfEmpty || !empty($output))) {\n    $output = parseTpl($tplWrapper, array_merge($scriptProperties, array(\'output\' => $output)));\n}\n\n$toPlaceholder = $modx->getOption(\'toPlaceholder\', $scriptProperties, false);\nif (!empty($toPlaceholder)) {\n    $modx->setPlaceholder($toPlaceholder, $output);\n    return \'\';\n}\nreturn $output;', '0', 'a:44:{s:3:\"tpl\";a:7:{s:4:\"name\";s:3:\"tpl\";s:4:\"desc\";s:121:\"Name of a chunk serving as a resource template. NOTE: if not provided, properties are dumped to output for each resource.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:6:\"tplOdd\";a:7:{s:4:\"name\";s:6:\"tplOdd\";s:4:\"desc\";s:100:\"Name of a chunk serving as resource template for resources with an odd idx value (see idx property).\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:8:\"tplFirst\";a:7:{s:4:\"name\";s:8:\"tplFirst\";s:4:\"desc\";s:89:\"Name of a chunk serving as resource template for the first resource (see first property).\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:7:\"tplLast\";a:7:{s:4:\"name\";s:7:\"tplLast\";s:4:\"desc\";s:87:\"Name of a chunk serving as resource template for the last resource (see last property).\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:10:\"tplWrapper\";a:7:{s:4:\"name\";s:10:\"tplWrapper\";s:4:\"desc\";s:115:\"Name of a chunk serving as wrapper template for the Snippet output. This does not work with toSeparatePlaceholders.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:11:\"wrapIfEmpty\";a:7:{s:4:\"name\";s:11:\"wrapIfEmpty\";s:4:\"desc\";s:95:\"Indicates if empty output should be wrapped by the tplWrapper, if specified. Defaults to false.\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:6:\"sortby\";a:7:{s:4:\"name\";s:6:\"sortby\";s:4:\"desc\";s:153:\"A field name to sort by or JSON object of field names and sortdir for each field, e.g. {\"publishedon\":\"ASC\",\"createdon\":\"DESC\"}. Defaults to publishedon.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:11:\"publishedon\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:8:\"sortbyTV\";a:7:{s:4:\"name\";s:8:\"sortbyTV\";s:4:\"desc\";s:65:\"Name of a Template Variable to sort by. Defaults to empty string.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:12:\"sortbyTVType\";a:7:{s:4:\"name\";s:12:\"sortbyTVType\";s:4:\"desc\";s:72:\"An optional type to indicate how to sort on the Template Variable value.\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:4:\"text\";s:6:\"string\";s:5:\"value\";s:6:\"string\";}i:1;a:2:{s:4:\"text\";s:7:\"integer\";s:5:\"value\";s:7:\"integer\";}i:2;a:2:{s:4:\"text\";s:7:\"decimal\";s:5:\"value\";s:7:\"decimal\";}i:3;a:2:{s:4:\"text\";s:8:\"datetime\";s:5:\"value\";s:8:\"datetime\";}}s:5:\"value\";s:6:\"string\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:11:\"sortbyAlias\";a:7:{s:4:\"name\";s:11:\"sortbyAlias\";s:4:\"desc\";s:58:\"Query alias for sortby field. Defaults to an empty string.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:13:\"sortbyEscaped\";a:7:{s:4:\"name\";s:13:\"sortbyEscaped\";s:4:\"desc\";s:82:\"Determines if the field name specified in sortby should be escaped. Defaults to 0.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:1:\"0\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:7:\"sortdir\";a:7:{s:4:\"name\";s:7:\"sortdir\";s:4:\"desc\";s:41:\"Order which to sort by. Defaults to DESC.\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:2:{i:0;a:2:{s:4:\"text\";s:3:\"ASC\";s:5:\"value\";s:3:\"ASC\";}i:1;a:2:{s:4:\"text\";s:4:\"DESC\";s:5:\"value\";s:4:\"DESC\";}}s:5:\"value\";s:4:\"DESC\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:9:\"sortdirTV\";a:7:{s:4:\"name\";s:9:\"sortdirTV\";s:4:\"desc\";s:61:\"Order which to sort a Template Variable by. Defaults to DESC.\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:2:{i:0;a:2:{s:4:\"text\";s:3:\"ASC\";s:5:\"value\";s:3:\"ASC\";}i:1;a:2:{s:4:\"text\";s:4:\"DESC\";s:5:\"value\";s:4:\"DESC\";}}s:5:\"value\";s:4:\"DESC\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:5:\"limit\";a:7:{s:4:\"name\";s:5:\"limit\";s:4:\"desc\";s:55:\"Limits the number of resources returned. Defaults to 5.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:1:\"5\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:6:\"offset\";a:7:{s:4:\"name\";s:6:\"offset\";s:4:\"desc\";s:56:\"An offset of resources returned by the criteria to skip.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:1:\"0\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:9:\"tvFilters\";a:7:{s:4:\"name\";s:9:\"tvFilters\";s:4:\"desc\";s:778:\"Delimited-list of TemplateVar values to filter resources by. Supports two delimiters and two value search formats. THe first delimiter || represents a logical OR and the primary grouping mechanism.  Within each group you can provide a comma-delimited list of values. These values can be either tied to a specific TemplateVar by name, e.g. myTV==value, or just the value, indicating you are searching for the value in any TemplateVar tied to the Resource. An example would be &tvFilters=`filter2==one,filter1==bar%||filter1==foo`. <br />NOTE: filtering by values uses a LIKE query and % is considered a wildcard. <br />ANOTHER NOTE: This only looks at the raw value set for specific Resource, i. e. there must be a value specifically set for the Resource and it is not evaluated.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:21:\"tvFiltersAndDelimiter\";a:7:{s:4:\"name\";s:21:\"tvFiltersAndDelimiter\";s:4:\"desc\";s:83:\"The delimiter to use to separate logical AND expressions in tvFilters. Default is ,\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:1:\",\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:20:\"tvFiltersOrDelimiter\";a:7:{s:4:\"name\";s:20:\"tvFiltersOrDelimiter\";s:4:\"desc\";s:83:\"The delimiter to use to separate logical OR expressions in tvFilters. Default is ||\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:2:\"||\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:5:\"depth\";a:7:{s:4:\"name\";s:5:\"depth\";s:4:\"desc\";s:88:\"Integer value indicating depth to search for resources from each parent. Defaults to 10.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:2:\"10\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:7:\"parents\";a:7:{s:4:\"name\";s:7:\"parents\";s:4:\"desc\";s:57:\"Optional. Comma-delimited list of ids serving as parents.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:14:\"includeContent\";a:7:{s:4:\"name\";s:14:\"includeContent\";s:4:\"desc\";s:95:\"Indicates if the content of each resource should be returned in the results. Defaults to false.\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:10:\"includeTVs\";a:7:{s:4:\"name\";s:10:\"includeTVs\";s:4:\"desc\";s:124:\"Indicates if TemplateVar values should be included in the properties available to each resource template. Defaults to false.\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:13:\"includeTVList\";a:7:{s:4:\"name\";s:13:\"includeTVList\";s:4:\"desc\";s:96:\"Limits included TVs to those specified as a comma-delimited list of TV names. Defaults to empty.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:10:\"showHidden\";a:7:{s:4:\"name\";s:10:\"showHidden\";s:4:\"desc\";s:85:\"Indicates if Resources that are hidden from menus should be shown. Defaults to false.\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:15:\"showUnpublished\";a:7:{s:4:\"name\";s:15:\"showUnpublished\";s:4:\"desc\";s:79:\"Indicates if Resources that are unpublished should be shown. Defaults to false.\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:11:\"showDeleted\";a:7:{s:4:\"name\";s:11:\"showDeleted\";s:4:\"desc\";s:75:\"Indicates if Resources that are deleted should be shown. Defaults to false.\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:9:\"resources\";a:7:{s:4:\"name\";s:9:\"resources\";s:4:\"desc\";s:177:\"A comma-separated list of resource IDs to exclude or include. IDs with a - in front mean to exclude. Ex: 123,-456 means to include Resource 123, but always exclude Resource 456.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:10:\"processTVs\";a:7:{s:4:\"name\";s:10:\"processTVs\";s:4:\"desc\";s:117:\"Indicates if TemplateVar values should be rendered as they would on the resource being summarized. Defaults to false.\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:13:\"processTVList\";a:7:{s:4:\"name\";s:13:\"processTVList\";s:4:\"desc\";s:166:\"Limits processed TVs to those specified as a comma-delimited list of TV names; note only includedTVs will be available for processing if specified. Defaults to empty.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:10:\"prepareTVs\";a:7:{s:4:\"name\";s:10:\"prepareTVs\";s:4:\"desc\";s:120:\"Indicates if TemplateVar values that are not processed fully should be prepared before being returned. Defaults to true.\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:13:\"prepareTVList\";a:7:{s:4:\"name\";s:13:\"prepareTVList\";s:4:\"desc\";s:164:\"Limits prepared TVs to those specified as a comma-delimited list of TV names; note only includedTVs will be available for preparing if specified. Defaults to empty.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:8:\"tvPrefix\";a:7:{s:4:\"name\";s:8:\"tvPrefix\";s:4:\"desc\";s:55:\"The prefix for TemplateVar properties. Defaults to: tv.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:3:\"tv.\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:3:\"idx\";a:7:{s:4:\"name\";s:3:\"idx\";s:4:\"desc\";s:120:\"You can define the starting idx of the resources, which is an property that is incremented as each resource is rendered.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:5:\"first\";a:7:{s:4:\"name\";s:5:\"first\";s:4:\"desc\";s:81:\"Define the idx which represents the first resource (see tplFirst). Defaults to 1.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:4:\"last\";a:7:{s:4:\"name\";s:4:\"last\";s:4:\"desc\";s:129:\"Define the idx which represents the last resource (see tplLast). Defaults to the number of resources being summarized + first - 1\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:13:\"toPlaceholder\";a:7:{s:4:\"name\";s:13:\"toPlaceholder\";s:4:\"desc\";s:85:\"If set, will assign the result to this placeholder instead of outputting it directly.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:22:\"toSeparatePlaceholders\";a:7:{s:4:\"name\";s:22:\"toSeparatePlaceholders\";s:4:\"desc\";s:130:\"If set, will assign EACH result to a separate placeholder named by this param suffixed with a sequential number (starting from 0).\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:5:\"debug\";a:7:{s:4:\"name\";s:5:\"debug\";s:4:\"desc\";s:68:\"If true, will send the SQL query to the MODX log. Defaults to false.\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:5:\"where\";a:7:{s:4:\"name\";s:5:\"where\";s:4:\"desc\";s:193:\"A JSON expression of criteria to build any additional where clauses from, e.g. &where=`{{\"alias:LIKE\":\"foo%\", \"OR:alias:LIKE\":\"%bar\"},{\"OR:pagetitle:=\":\"foobar\", \"AND:description:=\":\"raboof\"}}`\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:11:\"dbCacheFlag\";a:7:{s:4:\"name\";s:11:\"dbCacheFlag\";s:4:\"desc\";s:218:\"Determines how result sets are cached if cache_db is enabled in MODX. 0|false = do not cache result set; 1 = cache result set according to cache settings, any other integer value = number of seconds to cache result set\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:1:\"0\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:7:\"context\";a:7:{s:4:\"name\";s:7:\"context\";s:4:\"desc\";s:116:\"A comma-delimited list of context keys for limiting results. Default is empty, i.e. do not limit results by context.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:12:\"tplCondition\";a:7:{s:4:\"name\";s:12:\"tplCondition\";s:4:\"desc\";s:129:\"A condition to compare against the conditionalTpls property to map Resources to different tpls based on custom conditional logic.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:11:\"tplOperator\";a:7:{s:4:\"name\";s:11:\"tplOperator\";s:4:\"desc\";s:125:\"An optional operator to use for the tplCondition when comparing against the conditionalTpls operands. Default is == (equals).\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:10:{i:0;a:2:{s:4:\"text\";s:11:\"is equal to\";s:5:\"value\";s:2:\"==\";}i:1;a:2:{s:4:\"text\";s:15:\"is not equal to\";s:5:\"value\";s:2:\"!=\";}i:2;a:2:{s:4:\"text\";s:9:\"less than\";s:5:\"value\";s:1:\"<\";}i:3;a:2:{s:4:\"text\";s:21:\"less than or equal to\";s:5:\"value\";s:2:\"<=\";}i:4;a:2:{s:4:\"text\";s:24:\"greater than or equal to\";s:5:\"value\";s:2:\">=\";}i:5;a:2:{s:4:\"text\";s:8:\"is empty\";s:5:\"value\";s:5:\"empty\";}i:6;a:2:{s:4:\"text\";s:12:\"is not empty\";s:5:\"value\";s:6:\"!empty\";}i:7;a:2:{s:4:\"text\";s:7:\"is null\";s:5:\"value\";s:4:\"null\";}i:8;a:2:{s:4:\"text\";s:11:\"is in array\";s:5:\"value\";s:7:\"inarray\";}i:9;a:2:{s:4:\"text\";s:10:\"is between\";s:5:\"value\";s:7:\"between\";}}s:5:\"value\";s:2:\"==\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:15:\"conditionalTpls\";a:7:{s:4:\"name\";s:15:\"conditionalTpls\";s:4:\"desc\";s:121:\"A JSON map of conditional operands and tpls to compare against the tplCondition property using the specified tplOperator.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('13', '0', '0', 'If', 'Simple if (conditional) snippet', '0', '0', '0', '/**\n * If\n *\n * Copyright 2009-2010 by Jason Coward <jason@modx.com> and Shaun McCormick\n * <shaun@modx.com>\n *\n * If is free software; you can redistribute it and/or modify it under the terms\n * of the GNU General Public License as published by the Free Software\n * Foundation; either version 2 of the License, or (at your option) any later\n * version.\n *\n * If is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * If; if not, write to the Free Software Foundation, Inc., 59 Temple Place,\n * Suite 330, Boston, MA 02111-1307 USA\n *\n * @package if\n */\n/**\n * Simple if (conditional) snippet\n *\n * @package if\n */\nif (!empty($debug)) {\n    print_r($scriptProperties);\n    if (!empty($die)) die();\n}\n$modx->parser->processElementTags(\'\',$subject,true,true);\n\n$output = \'\';\n$operator = !empty($operator) ? $operator : \'\';\n$operand = !isset($operand) ? \'\' : $operand;\nif (isset($subject)) {\n    if (!empty($operator)) {\n        $operator = strtolower($operator);\n        switch ($operator) {\n            case \'!=\':\n            case \'neq\':\n            case \'not\':\n            case \'isnot\':\n            case \'isnt\':\n            case \'unequal\':\n            case \'notequal\':\n                $output = (($subject != $operand) ? $then : (isset($else) ? $else : \'\'));\n                break;\n            case \'<\':\n            case \'lt\':\n            case \'less\':\n            case \'lessthan\':\n                $output = (($subject < $operand) ? $then : (isset($else) ? $else : \'\'));\n                break;\n            case \'>\':\n            case \'gt\':\n            case \'greater\':\n            case \'greaterthan\':\n                $output = (($subject > $operand) ? $then : (isset($else) ? $else : \'\'));\n                break;\n            case \'<=\':\n            case \'lte\':\n            case \'lessthanequals\':\n            case \'lessthanorequalto\':\n                $output = (($subject <= $operand) ? $then : (isset($else) ? $else : \'\'));\n                break;\n            case \'>=\':\n            case \'gte\':\n            case \'greaterthanequals\':\n            case \'greaterthanequalto\':\n                $output = (($subject >= $operand) ? $then : (isset($else) ? $else : \'\'));\n                break;\n            case \'isempty\':\n            case \'empty\':\n                $output = empty($subject) ? $then : (isset($else) ? $else : \'\');\n                break;\n            case \'!empty\':\n            case \'notempty\':\n            case \'isnotempty\':\n                $output = !empty($subject) && $subject != \'\' ? $then : (isset($else) ? $else : \'\');\n                break;\n            case \'isnull\':\n            case \'null\':\n                $output = $subject == null || strtolower($subject) == \'null\' ? $then : (isset($else) ? $else : \'\');\n                break;\n            case \'inarray\':\n            case \'in_array\':\n            case \'ia\':\n                $operand = explode(\',\',$operand);\n                $output = in_array($subject,$operand) ? $then : (isset($else) ? $else : \'\');\n                break;\n            case \'==\':\n            case \'=\':\n            case \'eq\':\n            case \'is\':\n            case \'equal\':\n            case \'equals\':\n            case \'equalto\':\n            default:\n                $output = (($subject == $operand) ? $then : (isset($else) ? $else : \'\'));\n                break;\n        }\n    }\n}\nif (!empty($debug)) { var_dump($output); }\nunset($subject);\nreturn $output;', '0', 'a:6:{s:7:\"subject\";a:7:{s:4:\"name\";s:7:\"subject\";s:4:\"desc\";s:24:\"The data being affected.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:8:\"operator\";a:7:{s:4:\"name\";s:8:\"operator\";s:4:\"desc\";s:24:\"The type of conditional.\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:10:{i:0;a:2:{s:5:\"value\";s:2:\"EQ\";s:4:\"text\";s:2:\"EQ\";}i:1;a:2:{s:5:\"value\";s:3:\"NEQ\";s:4:\"text\";s:3:\"NEQ\";}i:2;a:2:{s:5:\"value\";s:2:\"LT\";s:4:\"text\";s:2:\"LT\";}i:3;a:2:{s:5:\"value\";s:2:\"GT\";s:4:\"text\";s:2:\"GT\";}i:4;a:2:{s:5:\"value\";s:3:\"LTE\";s:4:\"text\";s:3:\"LTE\";}i:5;a:2:{s:5:\"value\";s:2:\"GT\";s:4:\"text\";s:3:\"GTE\";}i:6;a:2:{s:5:\"value\";s:5:\"EMPTY\";s:4:\"text\";s:5:\"EMPTY\";}i:7;a:2:{s:5:\"value\";s:8:\"NOTEMPTY\";s:4:\"text\";s:8:\"NOTEMPTY\";}i:8;a:2:{s:5:\"value\";s:6:\"ISNULL\";s:4:\"text\";s:6:\"ISNULL\";}i:9;a:2:{s:5:\"value\";s:7:\"inarray\";s:4:\"text\";s:7:\"INARRAY\";}}s:5:\"value\";s:2:\"EQ\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:7:\"operand\";a:7:{s:4:\"name\";s:7:\"operand\";s:4:\"desc\";s:62:\"When comparing to the subject, this is the data to compare to.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:4:\"then\";a:7:{s:4:\"name\";s:4:\"then\";s:4:\"desc\";s:43:\"If conditional was successful, output this.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:4:\"else\";a:7:{s:4:\"name\";s:4:\"else\";s:4:\"desc\";s:45:\"If conditional was unsuccessful, output this.\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}s:5:\"debug\";a:7:{s:4:\"name\";s:5:\"debug\";s:4:\"desc\";s:92:\"Will output the parameters passed in, as well as the end output. Leave off when not testing.\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";N;s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('14', '0', '0', 'getResourceField', 'Grab a value from a resource field or a TV', '0', '3', '0', '/**\n *\n * getResourceField\n *\n * A snippet to grab a value from a resource field or a TV\n *\n * @ author Paul Merchant\n * @ author Shaun McCormick\n * @ copyright 2011 Paul Merchant\n * @ version 1.0.3 - August 8, 2011\n * @ MIT License\n *\n * OPTIONS\n * id - The resource ID\n * field - (Opt) The field or template variable name, defaults to pagetitle\n * isTV - (Opt) Set as true to return a raw template variable\n * processTV - (Opt) Set as true to return a rendered template variable\n * default - (Opt) The value returned if no field is found\n *\n * Exmaple1: [[getResourceField? &id=`123`]]\n * Example2: [[getResourceField? &id=`[[UltimateParent?]]` &field=`myTV` &isTV=`1`]]\n * Example3: [[getResourceField? &id=`[[*parent]]` &field=`myTV` &processTV=`1`]]\n *\n**/\n\n// set defaults\n$id = $modx->getOption(\'id\',$scriptProperties,$modx->resource->get(\'id\'));\n$field = $modx->getOption(\'field\',$scriptProperties,\'pagetitle\');\n$isTV = $modx->getOption(\'isTV\',$scriptProperties,false);\n$processTV = $modx->getOption(\'processTV\',$scriptProperties,false);\n$output = $modx->getOption(\'default\',$scriptProperties,\'\');\n\nif ($isTV || $processTV) {\n    // get the tv object\n    $tv = $modx->getObject(\'modTemplateVar\',array(\'name\'=>$field));\n    if (empty($tv)) return $output;\n    if ($processTV) {\n        // get rendered tv value\n        $tvValue = $tv->renderOutput($id);\n    } else {\n        // get raw tv value\n        $tvValue = $tv->getValue($id);\n    }\n    if ($tvValue !== null) {\n        $output = $tvValue;\n    }\n} else {\n    if ($id == $modx->resource->get(\'id\')) {\n        // use the current resource\n        $resource =& $modx->resource;\n        // current resource can infinite loop if pulling content field into itself\n        if ($field == \'content\') {\n            return $output;\n        }\n    } else {\n        // grab only the columns we need\n        $criteria = $modx->newQuery(\'modResource\');\n        $criteria->select($modx->getSelectColumns(\'modResource\',\'modResource\',\'\',array(\'id\',$field)));\n        $criteria->where(array(\'id\'=>$id,));\n        $resource = $modx->getObject(\'modResource\',$criteria);\n        if (empty($resource)) return $output;\n    }\n    $fieldValue = $resource->get($field);\n    if ($fieldValue !== null) {\n        $output = $fieldValue;\n    }\n}\n\nreturn $output;', '0', 'a:0:{}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('15', '0', '0', 'FormIt', 'A dynamic form processing snippet.', '0', '7', '0', '/**\n * FormIt\n *\n * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>\n *\n * FormIt is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the Free\n * Software Foundation; either version 2 of the License, or (at your option) any\n * later version.\n *\n * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,\n * Suite 330, Boston, MA 02111-1307 USA\n *\n * @package formit\n */\n/**\n * FormIt\n *\n * A dynamic form processing Snippet for MODx Revolution.\n *\n * @package formit\n */\nrequire_once $modx->getOption(\'formit.core_path\',null,$modx->getOption(\'core_path\',null,MODX_CORE_PATH).\'components/formit/\').\'model/formit/formit.class.php\';\n$fi = new FormIt($modx,$scriptProperties);\n$fi->initialize($modx->context->get(\'key\'));\n$fi->loadRequest();\n\n$fields = $fi->request->prepare();\nreturn $fi->request->handle($fields);', '0', 'a:57:{s:5:\"hooks\";a:7:{s:4:\"name\";s:5:\"hooks\";s:4:\"desc\";s:22:\"prop_formit.hooks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:8:\"preHooks\";a:7:{s:4:\"name\";s:8:\"preHooks\";s:4:\"desc\";s:25:\"prop_formit.prehooks_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:9:\"submitVar\";a:7:{s:4:\"name\";s:9:\"submitVar\";s:4:\"desc\";s:26:\"prop_formit.submitvar_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:8:\"validate\";a:7:{s:4:\"name\";s:8:\"validate\";s:4:\"desc\";s:25:\"prop_formit.validate_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:6:\"errTpl\";a:7:{s:4:\"name\";s:6:\"errTpl\";s:4:\"desc\";s:23:\"prop_formit.errtpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:37:\"<span class=\"error\">[[+error]]</span>\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:22:\"validationErrorMessage\";a:7:{s:4:\"name\";s:22:\"validationErrorMessage\";s:4:\"desc\";s:39:\"prop_formit.validationerrormessage_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:96:\"<p class=\"error\">A form validation error occurred. Please check the values you have entered.</p>\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:22:\"validationErrorBulkTpl\";a:7:{s:4:\"name\";s:22:\"validationErrorBulkTpl\";s:4:\"desc\";s:39:\"prop_formit.validationerrorbulktpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:19:\"<li>[[+error]]</li>\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:26:\"trimValuesBeforeValidation\";a:7:{s:4:\"name\";s:26:\"trimValuesBeforeValidation\";s:4:\"desc\";s:43:\"prop_formit.trimvaluesdeforevalidation_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:16:\"customValidators\";a:7:{s:4:\"name\";s:16:\"customValidators\";s:4:\"desc\";s:33:\"prop_formit.customvalidators_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:20:\"clearFieldsOnSuccess\";a:7:{s:4:\"name\";s:20:\"clearFieldsOnSuccess\";s:4:\"desc\";s:37:\"prop_formit.clearfieldsonsuccess_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:14:\"successMessage\";a:7:{s:4:\"name\";s:14:\"successMessage\";s:4:\"desc\";s:31:\"prop_formit.successmessage_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:25:\"successMessagePlaceholder\";a:7:{s:4:\"name\";s:25:\"successMessagePlaceholder\";s:4:\"desc\";s:42:\"prop_formit.successmessageplaceholder_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:17:\"fi.successMessage\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:5:\"store\";a:7:{s:4:\"name\";s:5:\"store\";s:4:\"desc\";s:22:\"prop_formit.store_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:17:\"placeholderPrefix\";a:7:{s:4:\"name\";s:17:\"placeholderPrefix\";s:4:\"desc\";s:34:\"prop_formit.placeholderprefix_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:3:\"fi.\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:9:\"storeTime\";a:7:{s:4:\"name\";s:9:\"storeTime\";s:4:\"desc\";s:26:\"prop_formit.storetime_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:300;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:10:\"allowFiles\";a:7:{s:4:\"name\";s:10:\"allowFiles\";s:4:\"desc\";s:27:\"prop_formit.allowfiles_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:15:\"spamEmailFields\";a:7:{s:4:\"name\";s:15:\"spamEmailFields\";s:4:\"desc\";s:32:\"prop_formit.spamemailfields_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:5:\"email\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:11:\"spamCheckIp\";a:7:{s:4:\"name\";s:11:\"spamCheckIp\";s:4:\"desc\";s:28:\"prop_formit.spamcheckip_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:11:\"recaptchaJs\";a:7:{s:4:\"name\";s:11:\"recaptchaJs\";s:4:\"desc\";s:28:\"prop_formit.recaptchajs_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:2:\"{}\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:14:\"recaptchaTheme\";a:7:{s:4:\"name\";s:14:\"recaptchaTheme\";s:4:\"desc\";s:31:\"prop_formit.recaptchatheme_desc\";s:4:\"type\";s:4:\"list\";s:7:\"options\";a:4:{i:0;a:2:{s:4:\"text\";s:14:\"formit.opt_red\";s:5:\"value\";s:3:\"red\";}i:1;a:2:{s:4:\"text\";s:16:\"formit.opt_white\";s:5:\"value\";s:5:\"white\";}i:2;a:2:{s:4:\"text\";s:16:\"formit.opt_clean\";s:5:\"value\";s:5:\"clean\";}i:3;a:2:{s:4:\"text\";s:21:\"formit.opt_blackglass\";s:5:\"value\";s:10:\"blackglass\";}}s:5:\"value\";s:5:\"clean\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:10:\"redirectTo\";a:7:{s:4:\"name\";s:10:\"redirectTo\";s:4:\"desc\";s:27:\"prop_formit.redirectto_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:14:\"redirectParams\";a:7:{s:4:\"name\";s:14:\"redirectParams\";s:4:\"desc\";s:31:\"prop_formit.redirectparams_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:7:\"emailTo\";a:7:{s:4:\"name\";s:7:\"emailTo\";s:4:\"desc\";s:24:\"prop_formit.emailto_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:11:\"emailToName\";a:7:{s:4:\"name\";s:11:\"emailToName\";s:4:\"desc\";s:28:\"prop_formit.emailtoname_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:9:\"emailFrom\";a:7:{s:4:\"name\";s:9:\"emailFrom\";s:4:\"desc\";s:26:\"prop_formit.emailfrom_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:13:\"emailFromName\";a:7:{s:4:\"name\";s:13:\"emailFromName\";s:4:\"desc\";s:30:\"prop_formit.emailfromname_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:12:\"emailReplyTo\";a:7:{s:4:\"name\";s:12:\"emailReplyTo\";s:4:\"desc\";s:29:\"prop_formit.emailreplyto_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:16:\"emailReplyToName\";a:7:{s:4:\"name\";s:16:\"emailReplyToName\";s:4:\"desc\";s:33:\"prop_formit.emailreplytoname_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:7:\"emailCC\";a:7:{s:4:\"name\";s:7:\"emailCC\";s:4:\"desc\";s:24:\"prop_formit.emailcc_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:11:\"emailCCName\";a:7:{s:4:\"name\";s:11:\"emailCCName\";s:4:\"desc\";s:28:\"prop_formit.emailccname_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:8:\"emailBCC\";a:7:{s:4:\"name\";s:8:\"emailBCC\";s:4:\"desc\";s:25:\"prop_formit.emailbcc_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:12:\"emailBCCName\";a:7:{s:4:\"name\";s:12:\"emailBCCName\";s:4:\"desc\";s:29:\"prop_formit.emailbccname_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:15:\"emailReturnPath\";a:7:{s:4:\"name\";s:15:\"emailReturnPath\";s:4:\"desc\";s:32:\"prop_formit.emailreturnpath_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:12:\"emailSubject\";a:7:{s:4:\"name\";s:12:\"emailSubject\";s:4:\"desc\";s:29:\"prop_formit.emailsubject_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:23:\"emailUseFieldForSubject\";a:7:{s:4:\"name\";s:23:\"emailUseFieldForSubject\";s:4:\"desc\";s:40:\"prop_formit.emailusefieldforsubject_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:9:\"emailHtml\";a:7:{s:4:\"name\";s:9:\"emailHtml\";s:4:\"desc\";s:26:\"prop_formit.emailhtml_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:20:\"emailConvertNewlines\";a:7:{s:4:\"name\";s:20:\"emailConvertNewlines\";s:4:\"desc\";s:37:\"prop_formit.emailconvertnewlines_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:17:\"emailMultiWrapper\";a:7:{s:4:\"name\";s:17:\"emailMultiWrapper\";s:4:\"desc\";s:34:\"prop_formit.emailmultiwrapper_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:10:\"[[+value]]\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:19:\"emailMultiSeparator\";a:7:{s:4:\"name\";s:19:\"emailMultiSeparator\";s:4:\"desc\";s:36:\"prop_formit.emailmultiseparator_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:7:\"fiarTpl\";a:7:{s:4:\"name\";s:7:\"fiarTpl\";s:4:\"desc\";s:22:\"prop_fiar.fiartpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:11:\"fiarToField\";a:7:{s:4:\"name\";s:11:\"fiarToField\";s:4:\"desc\";s:26:\"prop_fiar.fiartofield_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:5:\"email\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:11:\"fiarSubject\";a:7:{s:4:\"name\";s:11:\"fiarSubject\";s:4:\"desc\";s:26:\"prop_fiar.fiarsubject_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:30:\"[[++site_name]] Auto-Responder\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:8:\"fiarFrom\";a:7:{s:4:\"name\";s:8:\"fiarFrom\";s:4:\"desc\";s:23:\"prop_fiar.fiarfrom_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:12:\"fiarFromName\";a:7:{s:4:\"name\";s:12:\"fiarFromName\";s:4:\"desc\";s:27:\"prop_fiar.fiarfromname_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:11:\"fiarReplyTo\";a:7:{s:4:\"name\";s:11:\"fiarReplyTo\";s:4:\"desc\";s:26:\"prop_fiar.fiarreplyto_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:15:\"fiarReplyToName\";a:7:{s:4:\"name\";s:15:\"fiarReplyToName\";s:4:\"desc\";s:30:\"prop_fiar.fiarreplytoname_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:6:\"fiarCC\";a:7:{s:4:\"name\";s:6:\"fiarCC\";s:4:\"desc\";s:21:\"prop_fiar.fiarcc_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:10:\"fiarCCName\";a:7:{s:4:\"name\";s:10:\"fiarCCName\";s:4:\"desc\";s:25:\"prop_fiar.fiarccname_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:7:\"fiarBCC\";a:7:{s:4:\"name\";s:7:\"fiarBCC\";s:4:\"desc\";s:22:\"prop_fiar.fiarbcc_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:11:\"fiarBCCName\";a:7:{s:4:\"name\";s:11:\"fiarBCCName\";s:4:\"desc\";s:26:\"prop_fiar.fiarbccname_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:8:\"fiarHtml\";a:7:{s:4:\"name\";s:8:\"fiarHtml\";s:4:\"desc\";s:23:\"prop_fiar.fiarhtml_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:12:\"mathMinRange\";a:7:{s:4:\"name\";s:12:\"mathMinRange\";s:4:\"desc\";s:27:\"prop_math.mathminrange_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:10;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:12:\"mathMaxRange\";a:7:{s:4:\"name\";s:12:\"mathMaxRange\";s:4:\"desc\";s:27:\"prop_math.mathmaxrange_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";i:100;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:9:\"mathField\";a:7:{s:4:\"name\";s:9:\"mathField\";s:4:\"desc\";s:24:\"prop_math.mathfield_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:4:\"math\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:12:\"mathOp1Field\";a:7:{s:4:\"name\";s:12:\"mathOp1Field\";s:4:\"desc\";s:27:\"prop_math.mathop1field_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:3:\"op1\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:12:\"mathOp2Field\";a:7:{s:4:\"name\";s:12:\"mathOp2Field\";s:4:\"desc\";s:27:\"prop_math.mathop2field_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:3:\"op2\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:17:\"mathOperatorField\";a:7:{s:4:\"name\";s:17:\"mathOperatorField\";s:4:\"desc\";s:32:\"prop_math.mathoperatorfield_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:8:\"operator\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('16', '0', '0', 'FormItAutoResponder', 'Custom hook for FormIt to handle Auto-Response emails.', '0', '7', '0', '/**\n * FormIt\n *\n * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>\n *\n * FormIt is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the Free\n * Software Foundation; either version 2 of the License, or (at your option) any\n * later version.\n *\n * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,\n * Suite 330, Boston, MA 02111-1307 USA\n *\n * @package formit\n */\n/**\n * A custom FormIt hook for auto-responders.\n *\n * @var modX $modx\n * @var array $scriptProperties\n * @var FormIt $formit\n * @var fiHooks $hook\n * \n * @package formit\n */\n/* setup default properties */\n$tpl = $modx->getOption(\'fiarTpl\',$scriptProperties,\'fiarTpl\');\n$mailFrom = $modx->getOption(\'fiarFrom\',$scriptProperties,$modx->getOption(\'emailsender\'));\n$mailFromName = $modx->getOption(\'fiarFromName\',$scriptProperties,$modx->getOption(\'site_name\'));\n$mailSender = $modx->getOption(\'fiarSender\',$scriptProperties,$modx->getOption(\'emailsender\'));\n$mailSubject = $modx->getOption(\'fiarSubject\',$scriptProperties,\'[[++site_name]] Auto-Responder\');\n$mailSubject = str_replace(array(\'[[++site_name]]\',\'[[++emailsender]]\'),array($modx->getOption(\'site_name\'),$modx->getOption(\'emailsender\')),$mailSubject);\n$fiarFiles = $modx->getOption(\'fiarFiles\',$scriptProperties,false);\n$isHtml = $modx->getOption(\'fiarHtml\',$scriptProperties,true);\n$toField = $modx->getOption(\'fiarToField\',$scriptProperties,\'email\');\n$multiSeparator = $modx->getOption(\'fiarMultiSeparator\',$formit->config,\"\\n\");\n$multiWrapper = $modx->getOption(\'fiarMultiWrapper\',$formit->config,\"[[+value]]\");\nif (empty($fields[$toField])) {\n    $modx->log(modX::LOG_LEVEL_ERROR,\'[FormIt] Auto-responder could not find field `\'.$toField.\'` in form submission.\');\n    return false;\n}\n\n/* handle checkbox and array fields */\nforeach ($fields as $k => &$v) {\n    if (is_array($v) && !empty($v[\'name\']) && isset($v[\'error\']) && $v[\'error\'] == UPLOAD_ERR_OK) {\n        $fields[$k] = $v[\'name\'];\n    } else if (is_array($v)) {\n        $vOpts = array();\n        foreach ($v as $vKey => $vValue) {\n            if (is_string($vKey) && !empty($vKey)) {\n                $vKey = $k.\'.\'.$vKey;\n                $fields[$vKey] = $vValue;\n            } else {\n                $vOpts[] = str_replace(\'[[+value]]\',$vValue,$multiWrapper);\n            }\n        }\n        $newValue = implode($multiSeparator,$vOpts);\n        if (!empty($vOpts)) {\n            $fields[$k] = $newValue;\n        }\n    }\n}\n\n/* setup placeholders */\n$placeholders = $fields;\n$mailTo= $fields[$toField];\n\n$message = $formit->getChunk($tpl,$placeholders);\n$modx->parser->processElementTags(\'\',$message,true,false);\n\n$modx->getService(\'mail\', \'mail.modPHPMailer\');\n$modx->mail->reset();\n$modx->mail->set(modMail::MAIL_BODY,$message);\n$modx->mail->set(modMail::MAIL_FROM,$hook->_process($mailFrom,$placeholders));\n$modx->mail->set(modMail::MAIL_FROM_NAME,$hook->_process($mailFromName,$placeholders));\n$modx->mail->set(modMail::MAIL_SENDER,$hook->_process($mailSender,$placeholders));\n$modx->mail->set(modMail::MAIL_SUBJECT,$hook->_process($mailSubject,$placeholders));\n$modx->mail->address(\'to\',$mailTo);\n$modx->mail->setHTML($isHtml);\n\n/* add attachments */\nif($fiarFiles){\n    $fiarFiles = explode(\',\', $fiarFiles);\n    foreach($fiarFiles AS $file){\n        $modx->mail->mailer->AddAttachment($file);\n    }\n}\n\n/* reply to */\n$emailReplyTo = $modx->getOption(\'fiarReplyTo\',$scriptProperties,$mailFrom);\n$emailReplyTo = $hook->_process($emailReplyTo,$fields);\n$emailReplyToName = $modx->getOption(\'fiarReplyToName\',$scriptProperties,$mailFromName);\n$emailReplyToName = $hook->_process($emailReplyToName,$fields);\nif (!empty($emailReplyTo)) {\n    $modx->mail->address(\'reply-to\',$emailReplyTo,$emailReplyToName);\n}\n\n/* cc */\n$emailCC = $modx->getOption(\'fiarCC\',$scriptProperties,\'\');\nif (!empty($emailCC)) {\n    $emailCCName = $modx->getOption(\'fiarCCName\',$scriptProperties,\'\');\n    $emailCC = explode(\',\',$emailCC);\n    $emailCCName = explode(\',\',$emailCCName);\n    $numAddresses = count($emailCC);\n    for ($i=0;$i<$numAddresses;$i++) {\n        $etn = !empty($emailCCName[$i]) ? $emailCCName[$i] : \'\';\n        if (!empty($etn)) $etn = $hook->_process($etn,$fields);\n        $emailCC[$i] = $hook->_process($emailCC[$i],$fields);\n        if (!empty($emailCC[$i])) {\n            $modx->mail->address(\'cc\',$emailCC[$i],$etn);\n        }\n    }\n}\n\n/* bcc */\n$emailBCC = $modx->getOption(\'fiarBCC\',$scriptProperties,\'\');\nif (!empty($emailBCC)) {\n    $emailBCCName = $modx->getOption(\'fiarBCCName\',$scriptProperties,\'\');\n    $emailBCC = explode(\',\',$emailBCC);\n    $emailBCCName = explode(\',\',$emailBCCName);\n    $numAddresses = count($emailBCC);\n    for ($i=0;$i<$numAddresses;$i++) {\n        $etn = !empty($emailBCCName[$i]) ? $emailBCCName[$i] : \'\';\n        if (!empty($etn)) $etn = $hook->_process($etn,$fields);\n        $emailBCC[$i] = $hook->_process($emailBCC[$i],$fields);\n        if (!empty($emailBCC[$i])) {\n            $modx->mail->address(\'bcc\',$emailBCC[$i],$etn);\n        }\n    }\n}\n\nif (!$formit->inTestMode) {\n    if (!$modx->mail->send()) {\n        $modx->log(modX::LOG_LEVEL_ERROR,\'[FormIt] An error occurred while trying to send the auto-responder email: \'.$modx->mail->mailer->ErrorInfo);\n        return false;\n    }\n}\n$modx->mail->reset();\nreturn true;', '0', null, '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('17', '0', '0', 'FormItRetriever', 'Fetches a form submission for a user for displaying on a thank you page.', '0', '7', '0', '/**\n * FormIt\n *\n * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>\n *\n * FormIt is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the Free\n * Software Foundation; either version 2 of the License, or (at your option) any\n * later version.\n *\n * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,\n * Suite 330, Boston, MA 02111-1307 USA\n *\n * @package formit\n */\n/**\n * Retrieves a prior form submission that was stored with the &store property\n * in a FormIt call.\n *\n * @var modX $modx\n * @var array $scriptProperties\n * \n * @package formit\n */\nrequire_once $modx->getOption(\'formit.core_path\',null,$modx->getOption(\'core_path\').\'components/formit/\').\'model/formit/formit.class.php\';\n$fi = new FormIt($modx,$scriptProperties);\n\n/* setup properties */\n$placeholderPrefix = $modx->getOption(\'placeholderPrefix\',$scriptProperties,\'fi.\');\n$eraseOnLoad = $modx->getOption(\'eraseOnLoad\',$scriptProperties,false);\n$redirectToOnNotFound = $modx->getOption(\'redirectToOnNotFound\',$scriptProperties,false);\n\n/* fetch data from cache and set to placeholders */\n$fi->loadRequest();\n$fi->request->loadDictionary();\n$data = $fi->request->dictionary->retrieve();\nif (!empty($data)) {\n    /* set data to placeholders */\n    foreach ($data as $k=>$v) {\n        /*checkboxes & other multi-values are stored as arrays, must be imploded*/\n        if (is_array($v)) {\n            $data[$k] = implode(\',\',$v);\n        }\n    }\n    $modx->toPlaceholders($data,$placeholderPrefix,\'\');\n    \n    /* if set, erase the data on load, otherwise depend on cache expiry time */\n    if ($eraseOnLoad) {\n        $fi->request->dictionary->erase();\n    }\n/* if the data\'s not found, and we want to redirect somewhere if so, do here */\n} else if (!empty($redirectToOnNotFound)) {\n    $url = $modx->makeUrl($redirectToOnNotFound);\n    $modx->sendRedirect($url);\n}\nreturn \'\';', '0', 'a:3:{s:17:\"placeholderPrefix\";a:7:{s:4:\"name\";s:17:\"placeholderPrefix\";s:4:\"desc\";s:31:\"prop_fir.placeholderprefix_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:3:\"fi.\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:20:\"redirectToOnNotFound\";a:7:{s:4:\"name\";s:20:\"redirectToOnNotFound\";s:4:\"desc\";s:34:\"prop_fir.redirecttoonnotfound_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:11:\"eraseOnLoad\";a:7:{s:4:\"name\";s:11:\"eraseOnLoad\";s:4:\"desc\";s:25:\"prop_fir.eraseonload_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:0;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('18', '0', '0', 'FormItIsChecked', 'A custom output filter used with checkboxes/radios for checking checked status.', '0', '7', '0', '/**\n * FormIt\n *\n * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>\n *\n * FormIt is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the Free\n * Software Foundation; either version 2 of the License, or (at your option) any\n * later version.\n *\n * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,\n * Suite 330, Boston, MA 02111-1307 USA\n *\n * @package formit\n */\n/**\n * Custom output filter that returns checked=\"checked\" if the value is set\n *\n * @var string $input\n * @var string $options\n * @package formit\n */\n$output = \' \';\nif ($input == $options) {\n    $output = \' checked=\"checked\"\';\n}\n$input = $modx->fromJSON($input);\nif (!empty($input) && is_array($input) && in_array($options,$input)) {\n  $output = \' checked=\"checked\"\';\n}\nreturn $output;', '0', null, '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('19', '0', '0', 'FormItIsSelected', 'A custom output filter used with dropdowns for checking selected status.', '0', '7', '0', '/**\n * FormIt\n *\n * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>\n *\n * FormIt is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the Free\n * Software Foundation; either version 2 of the License, or (at your option) any\n * later version.\n *\n * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,\n * Suite 330, Boston, MA 02111-1307 USA\n *\n * @package formit\n */\n/**\n * Custom output filter that returns checked=\"checked\" if the value is set\n *\n * @var string $input\n * @var string $options\n * @package formit\n */\n$output = \' \';\nif ($input == $options) {\n    $output = \' selected=\"selected\"\';\n}\n$input = $modx->fromJSON($input);\nif(is_array($input)){\n    if (!empty($input) && is_array($input) && in_array($options,$input)) {\n      $output = \' selected=\"selected\"\';\n    }\n}\nreturn $output;', '0', null, '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('20', '0', '0', 'FormItCountryOptions', 'A utility snippet for generating a dropdown list of countries.', '0', '7', '0', '/**\n * FormIt\n *\n * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>\n *\n * FormIt is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the Free\n * Software Foundation; either version 2 of the License, or (at your option) any\n * later version.\n *\n * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,\n * Suite 330, Boston, MA 02111-1307 USA\n *\n * @package formit\n */\n/**\n * Automatically generates and outputs a country list for usage in forms\n *\n * @var modX $modx\n * @var array $scriptProperties\n * @package formit\n */\nrequire_once $modx->getOption(\'formit.core_path\',null,$modx->getOption(\'core_path\').\'components/formit/\').\'model/formit/formit.class.php\';\n$fi = new FormIt($modx,$scriptProperties);\n\n/** @var fiCountryOptions $co */\n$co = $fi->loadModule(\'fiCountryOptions\',\'countryOptions\',$scriptProperties);\n$co->initialize();\n$co->getData();\n$co->loadPrioritized();\n$co->iterate();\nreturn $co->output();', '0', 'a:10:{s:8:\"selected\";a:7:{s:4:\"name\";s:8:\"selected\";s:4:\"desc\";s:23:\"prop_fico.selected_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:3:\"tpl\";a:7:{s:4:\"name\";s:3:\"tpl\";s:4:\"desc\";s:18:\"prop_fico.tpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:6:\"option\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:10:\"useIsoCode\";a:7:{s:4:\"name\";s:10:\"useIsoCode\";s:4:\"desc\";s:25:\"prop_fico.useisocode_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:11:\"prioritized\";a:7:{s:4:\"name\";s:11:\"prioritized\";s:4:\"desc\";s:26:\"prop_fico.prioritized_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:11:\"optGroupTpl\";a:7:{s:4:\"name\";s:11:\"optGroupTpl\";s:4:\"desc\";s:26:\"prop_fico.optgrouptpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:8:\"optgroup\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:20:\"prioritizedGroupText\";a:7:{s:4:\"name\";s:20:\"prioritizedGroupText\";s:4:\"desc\";s:35:\"prop_fico.prioritizedgrouptext_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:12:\"allGroupText\";a:7:{s:4:\"name\";s:12:\"allGroupText\";s:4:\"desc\";s:27:\"prop_fico.allgrouptext_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:17:\"selectedAttribute\";a:7:{s:4:\"name\";s:17:\"selectedAttribute\";s:4:\"desc\";s:32:\"prop_fico.selectedattribute_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:20:\" selected=\"selected\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:13:\"toPlaceholder\";a:7:{s:4:\"name\";s:13:\"toPlaceholder\";s:4:\"desc\";s:28:\"prop_fico.toplaceholder_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:7:\"country\";a:7:{s:4:\"name\";s:7:\"country\";s:4:\"desc\";s:22:\"prop_fico.country_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:16:\"[[++cultureKey]]\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('21', '0', '0', 'FormItStateOptions', 'A utility snippet for generating a dropdown list of U.S. states.', '0', '7', '0', '/**\n * FormIt\n *\n * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>\n *\n * FormIt is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the Free\n * Software Foundation; either version 2 of the License, or (at your option) any\n * later version.\n *\n * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,\n * Suite 330, Boston, MA 02111-1307 USA\n *\n * @package formit\n */\n/**\n * Automatically generates and outputs a U.S. state list for usage in forms\n * \n * @package formit\n */\nrequire_once $modx->getOption(\'formit.core_path\',null,$modx->getOption(\'core_path\').\'components/formit/\').\'model/formit/formit.class.php\';\n$fi = new FormIt($modx,$scriptProperties);\n\n/** @var fiStateOptions $so */\n$so = $fi->loadModule(\'fiStateOptions\',\'stateOptions\',$scriptProperties);\n$so->initialize();\n$so->getData();\n$so->iterate();\nreturn $so->output();', '0', 'a:6:{s:8:\"selected\";a:7:{s:4:\"name\";s:8:\"selected\";s:4:\"desc\";s:23:\"prop_fiso.selected_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:3:\"tpl\";a:7:{s:4:\"name\";s:3:\"tpl\";s:4:\"desc\";s:18:\"prop_fiso.tpl_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:6:\"option\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:7:\"useAbbr\";a:7:{s:4:\"name\";s:7:\"useAbbr\";s:4:\"desc\";s:22:\"prop_fiso.useabbr_desc\";s:4:\"type\";s:13:\"combo-boolean\";s:7:\"options\";s:0:\"\";s:5:\"value\";b:1;s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:17:\"selectedAttribute\";a:7:{s:4:\"name\";s:17:\"selectedAttribute\";s:4:\"desc\";s:32:\"prop_fiso.selectedattribute_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:20:\" selected=\"selected\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:7:\"country\";a:7:{s:4:\"name\";s:7:\"country\";s:4:\"desc\";s:22:\"prop_fiso.country_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:16:\"[[++cultureKey]]\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}s:13:\"toPlaceholder\";a:7:{s:4:\"name\";s:13:\"toPlaceholder\";s:4:\"desc\";s:28:\"prop_fiso.toplaceholder_desc\";s:4:\"type\";s:9:\"textfield\";s:7:\"options\";s:0:\"\";s:5:\"value\";s:0:\"\";s:7:\"lexicon\";s:17:\"formit:properties\";s:4:\"area\";s:0:\"\";}}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('27', '0', '0', 'rezimgcrop', '', '0', '10', '0', '/**\n * RezImgCrop\n * Copyright 2011 by Artdevue.com  <info@artdevue.com>\n * Arguings at a forum http://community.modx-cms.ru/\n * @package rezimgcrop\n */\n/**\n * RezImgCrop\n * A dynamic form processing Snippet for MODx Revolution 2.0.\n *\n * @package rezimgcrop\n */\n\n$output = trim($input);\n$serve = $modx->getOption(\'base_path\');\n$opt = explode(\',\',$options);\nif (count($opt) >= 1) {\n  $trans = array(\"-\"=>\"\", \"x\"=>\"\", \",\"=>\"\");\n  $m_name = strip_tags(strtr($options, $trans));\n  $images_name = basename($output);\n  $images_dir = dirname($output);\n  $imagprev = $images_dir{0} == \'/\' ? \'\' : \'/\';\n  $images_dir = $imagprev.$images_dir;\n  $dir_new = $images_dir.\'/rezcrop/\'; \n  if (!file_exists($serve.$dir_new.$m_name.\'_\'.$images_name)) {    \n    if(!file_exists($serve.$dir_new)) mkdir($serve.$dir_new, 0777);\n    $newimg = $dir_new.$m_name.\'_\'.$images_name;\n    if (!copy($serve.$imagprev.$output, $serve.$newimg)) {\n      return $output;\n}\n    $col = count($opt)-1;\n    for ($x=0; $x<=$col;){\n      $frc = explode(\'-\',$opt[$x]);\n      $par = explode(\'x\',$frc[1]);\n      if($frc[0] == \'r\') {\n        if(!$par[1]){\n            list($w, $h) = getimagesize($serve.$newimg);\n            if ($w < $h) {\n                $parnol = $par[0];\n                $par[0] = \'\';\n                $par[1] = $parnol;\n            }\n        }\n	$modx->runSnippet(\'RezImg\',array(\n   \'file_input\' => $serve.$newimg,\n	  \'file_output\' => $serve.$newimg,\n	  \'w_o\' => $par[0],\n	  \'h_o\' => $par[1]\n));\n      }\n      if($frc[0] == \'c\') {\n	list($w, $h) = getimagesize($serve.$newimg);\n    		$ym = $xm = 0;\n    		$ym = ($h - $par[1])/2;\n            $xm = ($w - $par[0])/2;\n	$modx->runSnippet(\'CropImg\',array(\n   \'file_input\' => $serve.$newimg,\n	  \'file_output\' => $serve.$newimg,\n	  \'crop\' => array($xm,$ym,$par[0]+$xm,$par[1]+$ym)\n));\n      }\n      if($frc[0] == \'g\') {	\n	$modx->runSnippet(\'GrayscaleImg\',array(\n   \'file_input\' => $serve.$newimg,\n	  \'file_output\' => $serve.$newimg\n));\n}\n      if ($frc[0] == \'min\') {\n        list($w, $h) = getimagesize($serve.$newimg);\n        if($w < $h){\n            $maxwo = $frc[1];\n            $maxho = \'\';\n        }else{\n            $maxwo = \'\';\n            $maxho = $frc[1];\n        }\n        $modx->runSnippet(\'RezImg\',array(\n   \'file_input\' => $serve.$newimg,\n	  \'file_output\' => $serve.$newimg,\n	  \'w_o\' => $maxwo,\n	  \'h_o\' => $maxho\n));\n      }\n      $x++;\n    }\n  }\n  $output = $dir_new.$m_name.\'_\'.$images_name;\n  return $output;\n}\nreturn $output;', '0', 'a:0:{}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('28', '0', '0', 'RezImg', '', '0', '10', '0', '/**\n * RezImgCrop\n * Copyright 2011 by Artdevue.com  <info@artdevue.com>\n * Arguings at a forum http://community.modx-cms.ru/\n * @package rezimgcrop\n */\n/**\n * RezImgCrop\n * A dynamic form processing Snippet for MODx Revolution 2.0.\n *\n * @package rezimgcrop\n */\n$percent = false;\nlist($w_i, $h_i, $type) = getimagesize($file_input);\n  if (!$w_i || !$h_i) {\n    return $file_input;\n    }\n    $types = array(\'\',\'gif\',\'jpeg\',\'png\');\n    $ext = $types[$type];\n    if ($ext) {\n      $func = \'imagecreatefrom\'.$ext;\n      $img = $func($file_input);\n    } else {\n    return $file_input;\n    }\n  if ($percent) {\n    $w_o *= $w_i / 100;\n    $h_o *= $h_i / 100;\n  }\n  if (!$h_o) $h_o = $w_o/($w_i/$h_i);\n  if (!$w_o) $w_o = $h_o/($h_i/$w_i);\n  $img_o = imagecreatetruecolor($w_o, $h_o);\n  if ($type == 3) {\n  imagesavealpha($img_o, true);\n  $trans_colour = imagecolorallocatealpha($img_o, 255, 255, 255, 127);\n  imagefill($img_o, 0, 0, $trans_colour);\n  }\n  imagecopyresampled($img_o, $img, 0, 0, 0, 0, $w_o, $h_o, $w_i, $h_i);\n  if ($type == 2) {\n    imagejpeg($img_o,$file_output,100);\n    imagedestroy($img_o);\n  } else {\n    $func = \'image\'.$ext;\n    return $func($img_o,$file_output);\n  }', '0', 'a:0:{}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('29', '0', '0', 'CropImg', '', '0', '10', '0', '/**\n * RezImgCrop\n * Copyright 2011 by Artdevue.com  <info@artdevue.com>\n * Arguings at a forum http://community.modx-cms.ru/\n * @package rezimgcrop\n */\n/**\n * RezImgCrop\n * A dynamic form processing Snippet for MODx Revolution 2.0.\n *\n * @package rezimgcrop\n */\n$percent = false;\nlist($w_i, $h_i, $type) = getimagesize($file_input);\n  if (!$w_i || !$h_i) {\n    return $file_input;\n    }\n    $types = array(\'\',\'gif\',\'jpeg\',\'png\');\n    $ext = $types[$type];\n    if ($ext) {\n      $func = \'imagecreatefrom\'.$ext;\n      $img = $func($file_input);\n    } else {\n      return $file_input;\n    }\n  if ($crop == \'square\') {\n    if ($w_i > $h_i) {\n      $x_o = ($w_i - $h_i) / 2;\n      $min = $h_i;\n    } else {\n      $y_o = ($h_i - $w_i) / 2;\n      $min = $w_i;\n    }\n    $w_o = $h_o = $min;\n  } else {\n    list($x_o, $y_o, $w_o, $h_o) = $crop;\n    if ($percent) {\n      $w_o *= $w_i / 100;\n      $h_o *= $h_i / 100;\n      $x_o *= $w_i / 100;\n      $y_o *= $h_i / 100;\n    }\n      if ($w_o < 0) $w_o += $w_i;\n      $w_o -= $x_o;\n       if ($h_o < 0) $h_o += $h_i;\n    $h_o -= $y_o;\n  }\n  $img_o = imagecreatetruecolor($w_o, $h_o);\n  imagecopy($img_o, $img, 0, 0, $x_o, $y_o, $w_o, $h_o);\n  if ($type == 2) {\n    imagejpeg($img_o,$file_output,100);\n    imagedestroy($img_o);\n  } else {\n    $func = \'image\'.$ext;\n    return $func($img_o,$file_output);\n  }', '0', 'a:0:{}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('30', '0', '0', 'GrayscaleImg', 'Let\'s transform color images to a shade of gray', '0', '10', '0', '//???????? ??????? ???????????\n  $img_size = GetImageSize($file_input);\n  $width = $img_size[0];\n  $height = $img_size[1];\n  //??????? ????? ??????????? ? ??????? ?? ?????????\n  $img = imageCreate($width,$height);\n  //?????? ?????? ??????????? ??????? \"??????? ??????\" (grayscale)\n  for ($c = 0; $c < 256; $c++) {\n    ImageColorAllocate($img, $c,$c,$c);\n  }\n  //?????? ??????????? ?? ????? Jpeg\n  $img2 = ImageCreateFromJpeg($file_input);\n  //?????????? ??? ???????????\n  ImageCopyMerge($img,$img2,0,0,0,0, $width, $height, 100);\n  //????????? ?????????? ???????????\n  imagejpeg($img, $file_output);\n //??????????? ??????, ??????? ????????????\n  imagedestroy($img);', '0', 'a:0:{}', '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('31', '1', '0', 'PropertyGallery', '', '0', '0', '0', '// First instantiate the Gallery package\n$modx->addPackage(\'gallery\',$modx->getOption(\'gallery.core_path\',$config,$modx->getOption(\'core_path\').\'components/gallery/\').\'model/\');\n \n$curItem = $modx->getOption(\'curItem\',$scriptProperties,1);\nif ($modx->getOption(\'checkForRequestVar\',$scriptProperties,true)) {\n    $getParam = $modx->getOption(\'getParam\',$scriptProperties,\'galItem\');\n    if (!empty($_REQUEST[$getParam])) { $curItem = (int)$_REQUEST[$getParam]; }\n}\nif (empty($curItem)) return \'\';\n \n$album = $modx->getOption(\'album\',$scriptProperties,1);\nif ($modx->getOption(\'checkForRequestAlbumVar\',$scriptProperties,true)) {\n    $albumRequestVar = $modx->getOption(\'albumRequestVar\',$scriptProperties,\'galAlbum\');\n    if (!empty($_REQUEST[$albumRequestVar])) $album = $_REQUEST[$albumRequestVar];\n}\n// We pass the album name/ID to an &album property and find the gallery object\nif (!is_int($album)) {\n    $gallery = $modx->getObject(\'galAlbum\',array(\'name\' => $album));\n    if ($gallery instanceof galAlbum)\n        $album = $gallery->get(\'id\');\n}\n \n$c = $modx->newQuery(\'galAlbumItem\');\n$c->innerJoin(\'galItem\',\'Item\');\n$c->where(\n    array(\n        \'album\' => $album,\n    )\n);\n$c->select(\n    array(\n        \'galAlbumItem.*\',\n        \'Item.*\',\n    )\n);\n \n$c->sortby(\'rank\',\'asc\');\n \n$collection = $modx->getCollection(\'galAlbumItem\',$c);\n \n$items = array();\nforeach ($collection as $i) {\n    $items[] = $i->toArray();\n}\n \n$continue = true;\n$i = 0; $prev = array(); $cur = array(); $next = array();\nwhile ($continue) {\n    $prev = $cur;\n    $cur = $items[$i];\n    if ($cur[\'id\'] == $curItem) {\n        $next = $items[$i+1];\n        $continue = false;\n    }\n    $i++;\n}\n$first = $items[0];\n$last = $items[count($items)-1];\n$phs[\'galitem.cur.\'] = $cur;\n$phs[\'galitem.prev.\'] = $prev;\n$phs[\'galitem.next.\'] = $next;\n$phs[\'galitem.first.\'] = $first;\n$phs[\'galitem.last.\'] = $last;\n \n$modx->setPlaceholders($phs);\n \nreturn \'\';', '0', 'a:0:{}', '', '1', 'assets/elements/snippets/property-gallery.php');
INSERT INTO `modx_site_snippets` VALUES ('32', '0', '0', 'UltimateParent', 'Return the \"ultimate\" parent of a resource.', '0', '0', '0', '/**\n * @name UltimateParent\n * @version 1.3\n * @author Susan Ottwell <sottwell@sottwell.com> March 2006\n * @author Al B <> May 18, 2007\n * @author S. Hamblett <shamblett@cwazy.co.uk>\n * @author Shaun McCormick <shaun@modx.com>\n * @author Jason Coward <modx@modx.com>\n *\n * @param &id The id of the document whose parent you want to find.\n * @param &top The top node for the search.\n * @param &topLevel The top level node for the search (root = level 1)\n *\n * @license Public Domain, use as you like.\n *\n * @example [[UltimateParent? &id=`45` &top=`6`]]\n * Will find the ultimate parent of document 45 if it is a child of document 6;\n * otherwise it will return 45.\n *\n * @example [[UltimateParent? &topLevel=`2`]]\n * Will find the ultimate parent of the current document at a depth of 2 levels\n * in the document hierarchy, with the root level being level 1.\n *\n * This snippet travels up the document tree from a specified document and\n * returns the \"ultimate\" parent.  Version 2.0 was rewritten to use the new\n * getParentIds function features available only in MODx 0.9.5 or later.\n *\n * Based on the original UltimateParent 1.x snippet by Susan Ottwell\n * <sottwell@sottwell.com>.  The topLevel parameter was introduced by staed and\n * adopted here.\n */\nif (!isset($modx)) return \'\';\n\n$top = isset($top) && intval($top) ? $top : 0;\n$id= isset($id) && intval($id) ? intval($id) : $modx->resource->get(\'id\');\n$topLevel= isset($topLevel) && intval($topLevel) ? intval($topLevel) : 0;\nif ($id && $id != $top) {\n    $pid = $id;\n    $pids = $modx->getParentIds($id);\n    if (!$topLevel || count($pids) >= $topLevel) {\n        while ($parentIds= $modx->getParentIds($id, 1)) {\n            $pid = array_pop($parentIds);\n            if ($pid == $top) {\n                break;\n            }\n            $id = $pid;\n            $parentIds = $modx->getParentIds($id);\n            if ($topLevel && count($parentIds) < $topLevel) {\n                break;\n            }\n        }\n    }\n}\nreturn $id;', '0', null, '', '0', '');
INSERT INTO `modx_site_snippets` VALUES ('37', '1', '0', 'lvpRegisterActions', '', '0', '0', '0', '$values = $hook->getValues();\n\n// User Email\n$message = $modx->getChunk($hook->getValue(\'register.user\')->isMember(\'LVPGuestPass\') ? \'email-userGuestPass\' : \'email-userNoGuestPass\', $values);\n$modx->getService(\'mail\', \'mail.modPHPMailer\');\n$modx->mail->set(modMail::MAIL_BODY, $message);\n$modx->mail->set(modMail::MAIL_FROM, \'info@luxusgroup.com\');\n$modx->mail->set(modMail::MAIL_FROM_NAME, \'Luxus Vacation Properties\');\n$modx->mail->set(modMail::MAIL_SENDER, \'Luxus Vacation Properties\');\n$modx->mail->set(modMail::MAIL_SUBJECT, \'Luxus Guest Pass\');\n$modx->mail->address(\'to\', $values[\'email\']);\n$modx->mail->setHTML(TRUE);\n\nif ( ! $modx->mail->send()) {\n	$modx->log(modX::LOG_LEVEL_ERROR, \'An error occurred while trying to send the user register email: \' . $err);\n}\n$modx->mail->reset();\n\n// Admin Email\n$message = $modx->getChunk(\'email-adminGuestPass\', $values);\n\n$modx->getService(\'mail\', \'mail.modPHPMailer\');\n$modx->mail->set(modMail::MAIL_BODY, $message);\n$modx->mail->set(modMail::MAIL_FROM, \'modx@marketing.luxusgroup.com\');\n$modx->mail->set(modMail::MAIL_FROM_NAME, \'Luxus MODX\');\n$modx->mail->set(modMail::MAIL_SENDER, \'Luxus MODX\');\n$modx->mail->set(modMail::MAIL_SUBJECT, \'New LVP User Registered\');\n$modx->mail->address(\'to\', \'info@luxusgroup.com\');\n$modx->mail->setHTML(TRUE);\n\nif ( ! $modx->mail->send()) {\n	$modx->log(modX::LOG_LEVEL_ERROR, \'An error occurred while trying to send the admin register email: \' . $err);\n}\n$modx->mail->reset();\n\n\n// All Done\nreturn TRUE;', '0', 'a:0:{}', '', '1', 'assets/elements/snippets/lvp-registerActions.php');
INSERT INTO `modx_site_snippets` VALUES ('39', '1', '0', 'Voyager', '', '0', '0', '0', 'if ( ! defined(\'VGR_PATH\'))\n{\n	$path = $modx->getOption(\'VGR_PATH\', NULL, $modx->getOption(\'assets_path\') . \'elements/snippets/Voyager/\');\n  	define(\'VGR_PATH\', $path);\n}\n\nrequire_once VGR_PATH . \'helpers.php\';\nrequire_once VGR_PATH . \'voyager.class.php\';\nreturn Voyager::getDataFromModxScriptProps($modx, $scriptProperties);', '0', 'a:0:{}', '', '1', 'assets/elements/snippets/Voyager/voyager.snippet.php');
INSERT INTO `modx_site_snippets` VALUES ('38', '1', '0', 'lvpPrepareGuestPass', '', '0', '0', '0', '$values = $hook->getValues();\n\n$hook->setValue(\'password\', $values[\'password\']);\n$hook->setValue(\'fullname\', trim($values[\'first_name\'] . \' \' . $values[\'last_name\']));\n\n// Add to lvp guest pass user group\n\n// Block the user if the correct fields are not selected as yes\nif ($values[\'canadian_resident\'] == \'Yes\') {\n	$hook->setValue(\'blocked\', 0);\n	$hook->controller->setProperty(\'usergroups\', \'LVPGuestPass\');\n	$hook->controller->setProperty(\'successMsg\', \'An email with your personal user name and password has been sent to the email address you provided. Please use your new login credentials to access our protected website at any time.\');\n}\nelse {\n	$hook->setValue(\'blocked\', 1);\n	$hook->controller->setProperty(\'successMsg\', \'A member of the Luxus Management Team will contact you within the next business day to provide you with access to the website and to answer any questions you might have at that time.\');\n}\n\nreturn TRUE;', '0', 'a:0:{}', '', '1', 'assets/elements/snippets/lvp-prepareGuestPass.php');
INSERT INTO `modx_site_snippets` VALUES ('40', '1', '0', 'getpost', '', '0', '0', '0', 'switch (strtolower(array_key_exists(\'src\', $scriptProperties) ? $scriptProperties[\'src\'] : \'either\')) {\n	case \'get\':     $source = $_GET; break;\n	case \'post\':    $source = $_POST; break;\n	case \'request\': $source = $_REQUEST; break;\n	default:        $source = array_merge($_GET, $_POST);\n}\n\nreturn array_key_exists($scriptProperties[\'param\'], $source) ? $source[$scriptProperties[\'param\']] : NULL;', '0', 'a:0:{}', '', '1', 'assets/elements/snippets/Util/getpost.php');
INSERT INTO `modx_site_snippets` VALUES ('41', '1', '0', 'VoyagerMapLanding', '', '0', '0', '0', 'if (!defined(\'VOYAGER_PATH\'))\n{\n    define(\n        \'VOYAGER_PATH\',\n        $modx->getOption(\'voyager_path\', NULL, $modx->getOption(\'assets_path\') . \'elements/snippets/Voyager/\')\n    );\n}\n\nrequire_once VOYAGER_PATH . \'helpers.php\';\nrequire_once VOYAGER_PATH . \'voyager.class.php\';\n\n$voyager = new Voyager($modx, array_merge($scriptProperties, array(\n	\'service\' => \'mapLanding\'\n)));\nreturn $voyager->run();', '0', 'a:0:{}', '', '1', 'assets/elements/snippets/Voyager/voyagerMapLanding.snippet.php');
INSERT INTO `modx_site_snippets` VALUES ('42', '1', '0', 'VoyagerProperty', '', '0', '0', '0', 'if (!defined(\'VOYAGER_PATH\'))\n{\n    define(\n        \'VOYAGER_PATH\',\n        $modx->getOption(\'voyager_path\', NULL, $modx->getOption(\'assets_path\') . \'elements/snippets/Voyager/\')\n    );\n}\nrequire_once VOYAGER_PATH . \'helpers.php\';\nrequire_once VOYAGER_PATH . \'voyager.class.php\';\n\n$voyager = new Voyager($modx, array_merge($scriptProperties, array(\n	\'service\' => \'property\'\n)));\nreturn $voyager->run();', '0', 'a:0:{}', '', '1', 'assets/elements/snippets/Voyager/voyagerProperty.snippet.php');
INSERT INTO `modx_site_snippets` VALUES ('43', '1', '0', 'local_time', '', '0', '0', '0', 'if ( empty($dtz) ) {\n		$dtz = \'America/Edmonton\';\n}\n\n$tz             = new DateTimeZone( $dtz );             // base time zone to start w/\n$date           = new DateTime();                       // current time based on /etc/localtime e.g. America/Edmonton\n$date->setTimeZone($tz);                                // calculates the current time\n$local_time     = $date->format(\'G:i\'); // l F j Y g:i:s A I\'\n\nreturn $local_time;', '0', 'a:0:{}', '', '1', 'assets/elements/snippets/local_time.php');
INSERT INTO `modx_site_snippets` VALUES ('44', '1', '0', 'VoyagerLifetimeExperiences', '', '0', '0', '0', 'define(\'VOYAGER_PATH\', $modx->getOption(\'voyager_path\', NULL, $modx->getOption(\'assets_path\') . \'elements/snippets/Voyager/\'));\n\nrequire_once VOYAGER_PATH . \'helpers.php\';\nrequire_once VOYAGER_PATH . \'voyager.class.php\';\n\n$voyager = new Voyager($modx, array_merge($scriptProperties, array(\n	\'service\' => \'lifetimeExperiences\'\n)));\nreturn $voyager->run();', '0', 'a:0:{}', '', '1', 'assets/elements/snippets/Voyager/voyagerLifetimeExperiences.snippet.php');

INSERT INTO `modx_site_snippets` VALUES ('46', '1', '0', 'VoyagerMegaMenu', '', '0', '0', '0', 'if (!defined(\'VOYAGER_PATH\'))\r\n{\r\n    define(\r\n        \'VOYAGER_PATH\',\r\n        $modx->getOption(\'voyager_path\', NULL, $modx->getOption(\'assets_path\') . \'elements/snippets/Voyager/\')\r\n    );\r\n}\r\n\r\nrequire_once VOYAGER_PATH . \'helpers.php\';\r\nrequire_once VOYAGER_PATH . \'voyager.class.php\';\r\n$voyager = new Voyager($modx, array_merge($scriptProperties, array(\r\n    \'service\' => \'megaMenu\'\r\n)));\r\nreturn $voyager->run();', '0', 'a:0:{}', '', '1', 'assets/elements/snippets/Voyager/voyagerMegaMenu.snippet.php');
INSERT INTO `modx_site_snippets` VALUES ('47', '0', '0', 'FormItSaveForm', 'Save any form and export them to csv.', '0', '7', '0', '/**\n * FormIt\n *\n * Copyright 2011-12 by SCHERP Ontwikkeling <info@scherpontwikkeling.nl>\n * Copyright 2015 by Wieger Sloot <modx@sterc.nl>\n *\n * FormIt is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the Free\n * Software Foundation; either version 2 of the License, or (at your option) any\n * later version.\n *\n * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with\n * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,\n * Suite 330, Boston, MA 02111-1307 USA\n *\n * @package formit\n */\n/**\n * A custom FormIt hook for saving filled-in forms. - Based on FormSave\n *\n * @var modX $modx\n * @var array $scriptProperties\n * @var FormIt $formit\n * @var fiHooks $hook\n * \n * @package formit\n */\n/* setup default properties */\n$values = $hook->getValues();\n$formName = $modx->getOption(\'formName\', $formit->config, \'form-\'.$modx->resource->get(\'id\'));\n$formEncrypt = $modx->getOption(\'formEncrypt\', $formit->config, false);\n$formFields = $modx->getOption(\'formFields\', $formit->config, false);\n$fieldNames = $modx->getOption(\'fieldNames\', $formit->config, false);\nif ($formFields) {\n    $formFields = explode(\',\', $formFields);\n    foreach($formFields as $k => $v) {\n        $formFields[$k] = trim($v);\n    }\n}\n// Build the data array\n$dataArray = array();\nif($formFields){\n    foreach($formFields as $field) {\n        $dataArray[$field] = (!isset($values[$field])) ? \'\' : $values[$field];\n    }\n}else{\n    $dataArray = $values;\n}\n//Change the fieldnames\nif($fieldNames){\n    $newDataArray = array();\n    $fieldLabels = array();\n    $formFieldNames = explode(\',\', $fieldNames);\n    foreach($formFieldNames as $formFieldName){\n        list($name, $label) = explode(\'==\', $formFieldName);\n        $fieldLabels[trim($name)] = trim($label);\n    }\n    foreach ($dataArray as $key => $value) {\n        if($fieldLabels[$key]){\n            $newDataArray[$fieldLabels[$key]] = $value;\n        }else{\n            $newDataArray[$key] = $value;\n        }\n    }\n    $dataArray = $newDataArray;\n}\n// Create obj\n$newForm = $modx->newObject(\'FormItForm\');\nif($formEncrypt){\n    $dataArray = $newForm->encrypt($modx->toJSON($dataArray));\n}else{\n    $dataArray = $modx->toJSON($dataArray);\n}\n$newForm->fromArray(array(\n    \'form\' => $formName,\n    \'date\' => time(),\n    \'values\' => $dataArray,\n    \'ip\' => $modx->getOption(\'REMOTE_ADDR\', $_SERVER, \'\'),\n    \'context_key\' => $modx->resource->get(\'context_key\'),\n    \'encrypted\' => $formEncrypt\n));\n\nif (!$newForm->save()) {\n    $modx->log(modX::LOG_LEVEL_ERROR, \'[FormItSaveForm] An error occurred while trying to save the submitted form: \' . print_r($newForm->toArray(), true));\n    return false;\n}\n$hook->setValue(\'savedForm\', $newForm->toArray());\nreturn true;', '0', null, '', '0', '');

-- ----------------------------
-- Table structure for modx_site_templates
-- ----------------------------
CREATE TABLE `modx_site_templates` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `source` int(10) unsigned NOT NULL DEFAULT '0',
  `property_preprocess` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `templatename` varchar(50) NOT NULL DEFAULT '',
  `description` varchar(255) NOT NULL DEFAULT 'Template',
  `editor_type` int(11) NOT NULL DEFAULT '0',
  `category` int(11) NOT NULL DEFAULT '0',
  `icon` varchar(255) NOT NULL DEFAULT '',
  `template_type` int(11) NOT NULL DEFAULT '0',
  `content` mediumtext NOT NULL,
  `locked` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `properties` text,
  `static` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `static_file` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `templatename` (`templatename`) USING BTREE,
  KEY `category` (`category`) USING BTREE,
  KEY `locked` (`locked`) USING BTREE,
  KEY `static` (`static`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=41 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of modx_site_templates
-- ----------------------------
INSERT INTO `modx_site_templates` VALUES ('1', '0', '0', 'BaseTemplate', 'Template', '0', '0', '', '0', '<html>\n<head>\n<title>[[++site_name]] - [[*pagetitle]]</title>\n<base href=\"[[++site_url]]\" />\n</head>\n<body>\n[[*content]]\n</body>\n</html>', '0', null, '0', '');
INSERT INTO `modx_site_templates` VALUES ('2', '1', '0', 'base', '', '0', '19', '', '0', '[[$pageTop]]\n\n<section class=\"pageWrapper\">\n    <figure class=\"heroImage\">\n        [[*hero-image]]\n\n        [[*hero-content:notempty=`\n            <figcaption>[[*hero-content]]</figcaption>\n        `]]\n\n    </figure>\n\n    <div class=\"pageContent\">\n        <header class=\"contentHeader\">\n            <hgroup>\n                <h2 class=\"contentTitle\">[[*pagetitle]]</h2>\n                [[*longtitle:notempty=`\n                    <h3 class=\"contentSubTitle\">[[*longtitle]]</h3>\n                `]]\n\n            </hgroup>\n            \n        </header>\n\n        <aside class=\"subContentA\">\n            <div class=\"well well-small\">\n                <header class=\"well-header\">\n                    <h4>[[*pagetitle]]</h4>\n                    \n                </header>\n                \n                [[Wayfinder?\n                    &startId=`[[*id]]`\n                    &level=`1`\n                    &outerClass=`nav nav-list`\n                ]]\n                \n\n            </div>\n\n        </aside>\n\n        <div class=\"subContentB\">\n            [[*introtext:notempty=`\n                <p class=\"lead\">[[*introtext]]</p>\n            `]]\n            \n            [[*content]]\n\n        </div>\n\n        <div class=\"ctaContent\">\n            [[*ctaContent]]\n\n        </div>\n\n    </div>\n\n    [[$pageFooter]]\n\n</section>\n\n[[$videoModal]]\n\n[[$pageBottom]]', '0', 'a:0:{}', '1', 'assets/elements/templates/EquityEstates/base.html');
INSERT INTO `modx_site_templates` VALUES ('3', '1', '0', 'ourTeam', '', '0', '19', '', '0', '[[$pageTop]]\n\n<section class=\"pageWrapper\">\n    <figure class=\"heroImage\">\n        [[*hero-image]]\n\n        <figcaption class=\"heroCaption\">About Us</figcaption>\n\n    </figure>\n\n    <div class=\"pageContent ourTeam\">\n        <header class=\"contentHeader\">\n            <hgroup>\n                <h2 class=\"contentTitle\">[[*pagetitle]]</h2>\n                [[*longtitle:notempty=`\n                    <h3 class=\"contentSubTitle\">[[*longtitle]]</h3>\n                `]]\n\n            </hgroup>\n            \n        </header>\n\n        [[-<nav class=\"subNav\">\n            <ul class=\"nav nav-pills\">\n                <li class=\"active\"><a href=\"#executives\" data-toggle=\"tab\">Executives</a></li>\n                <li><a href=\"#operations\" data-toggle=\"tab\">Operations</a></li>\n                <li><a href=\"#member-services\" data-toggle=\"tab\">Member Services</a></li>\n                <li><a href=\"#principals\" data-toggle=\"tab\">Principals</a></li>\n\n            </ul>\n\n        </nav>]]\n\n        <div class=\"mainContent\">\n            [[*introtext:notempty=`\n                <p class=\"lead\">[[*introtext]]</p>\n            `]]\n            \n            [[*content]]\n\n            <div class=\"teamLists tab-content\">\n                <div id=\"executives\" class=\"teamListWrapper tab-pane active\">\n                    <ul class=\"teamList\">\n                        [[getResources? &parents=`9` &limit=`0` &tpl=`list` &sortby=`{\"id\":\"ASC\"}` &includeTVs=`1`  &includeContent=`1`]]\n\n                    </ul>\n\n                </div>\n\n                <div id=\"operations\" class=\"teamListWrapper tab-pane\">\n                    <ul class=\"teamList\">\n                        [[getResources? &parents=`10` &limit=`0` &tpl=`list` &sortby=`{\"id\":\"ASC\"}` &includeTVs=`1`  &includeContent=`1`]]\n\n                    </ul>\n\n                </div>\n\n                <div id=\"member-services\" class=\"teamListWrapper tab-pane\">\n                    <ul class=\"teamList\">\n                        [[getResources? &parents=`11` &limit=`0` &tpl=`list` &sortby=`{\"id\":\"ASC\"}` &includeTVs=`1`  &includeContent=`1`]]\n\n                    </ul>\n\n                </div>\n\n                <div id=\"principals\" class=\"teamListWrapper tab-pane\">\n                    <ul class=\"teamList\">\n                        [[getResources? &parents=`8` &limit=`0` &tpl=`list` &sortby=`{\"id\":\"ASC\"}` &includeTVs=`1` &includeContent=`1`]]\n\n                    </ul>\n\n                </div>\n\n            </div>\n\n        </div>\n\n    </div>\n\n    [[$pageFooter]]\n\n</section>\n\n[[$pageBottom]]', '0', 'a:0:{}', '1', 'assets/elements/templates/EquityEstates/ourTeam.html');
INSERT INTO `modx_site_templates` VALUES ('4', '1', '0', 'teamMember', '', '0', '19', '', '0', '', '0', 'a:0:{}', '1', 'assets/elements/templates/teamMember.html');
INSERT INTO `modx_site_templates` VALUES ('6', '1', '0', 'home', '', '0', '19', '', '0', '[[$pageTop]]\r\n\r\n<section class=\"pageWrapper home\">\r\n    <div id=\"homeSlider\" class=\"royalSlider rsDefault\">\r\n        <div class=\"rsContent\">\r\n            <a class=\"rsImg\" href=\"assets/media/sliders/large/1-turks.jpg\"></a>\r\n            <div class=\"rsABlock blockCenterCenter\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h3>60 Luxury Homes</h3>\r\n                <h4><em>One Exceptional Investment</em></h4>\r\n            </div>\r\n\r\n            <div class=\"rsBBlock blockBottomLeft\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h4>Grace Bay <small>Turks &amp; Caicos</small></h4>\r\n            </div>\r\n            \r\n        </div>\r\n        \r\n        <div class=\"rsContent\">\r\n            <a class=\"rsImg\" href=\"assets/media/sliders/large/2-telluride.jpg\"></a>\r\n            <div class=\"rsABlock blockCenterCenter\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h3>Our Portfolio</h3>\r\n                <h4><em>Your Passport to the World</em></h4>\r\n            </div>\r\n\r\n            <div class=\"rsBBlock blockBottomLeft\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h4>Telluride <small>Colorado</small></h4>\r\n            </div>\r\n            \r\n        </div>\r\n        \r\n        <div class=\"rsContent\">\r\n            <a class=\"rsImg\" href=\"assets/media/sliders/large/3-nyc.jpg\"></a>\r\n            <div class=\"rsABlock blockTopLeft\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h3>Imagine</h3>\r\n                <h4>Wherever You Travel, <em>You\'re Home</em></h4>\r\n            </div>\r\n\r\n            <div class=\"rsBBlock blockBottomLeft\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h4>New York <small>New York</small></h4>\r\n            </div>\r\n            \r\n        </div>\r\n        \r\n        <div class=\"rsContent\">\r\n            <a class=\"rsImg\" href=\"assets/media/sliders/large/4-scottsdale.jpg\"></a>\r\n            <div class=\"rsABlock blockTopLeft\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h3>Whatever You Need</h3>\r\n                <h4>When You Need it <em>Just Ask</em></h4>\r\n            </div>\r\n\r\n            <div class=\"rsBBlock blockBottomLeft\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h4>Scottsdale <small>Arizona</small></h4>\r\n            </div>\r\n            \r\n        </div>\r\n        \r\n        <div class=\"rsContent\">\r\n            <a class=\"rsImg\" href=\"assets/media/sliders/large/5-hiltonhead.jpg\"></a>\r\n            <div class=\"rsABlock blockBottomLeft\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h3 class=\"inline\">Ownership</h3>\r\n                <h4 class=\"inline\">Has its <em>Privileges</em></h4>\r\n            </div>\r\n\r\n            <div class=\"rsBBlock blockTopRight\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h4>Hilton Head <small>South Carolina</small></h4>\r\n            </div>\r\n            \r\n        </div>\r\n        \r\n        <div class=\"rsContent\">\r\n            <a class=\"rsImg\" href=\"assets/media/sliders/large/6-costarica.jpg\"></a>\r\n            <div class=\"rsABlock blockTopRight\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h3>Far &amp; Away</h3>\r\n                <h4>An Excellent <em>Opportunity</em></h4>\r\n            </div>\r\n            <div class=\"rsBBlock blockBottomLeft\" data-fade-effect=\"\" data-move-offset=\"10\" data-move-effect=\"bottom\" data-speed=\"200\">\r\n                <h4>Tamarindo <small>Costa Rica</small></h4>\r\n            </div>\r\n            \r\n        </div>\r\n\r\n    </div>\r\n    \r\n    <div class=\"featuredPages\">\r\n        <div class=\"cta cta-lvp\">\r\n			<h3><a href=\"[[~43]]\">Our Services</a></h3>\r\n            <h4><a href=\"[[~43]]\">Hassle-Free Vacations in the <br> Privacy of Your Own Homes</a></h4>\r\n\r\n            <a class=\"cta-img\" href=\"[[~43]]\" title=\"Meet Our Team\">\r\n                <img src=\"[[++assets_url]]media/home-cta/3.jpg\" alt=\"\">\r\n            </a>\r\n\r\n        </div>\r\n\r\n        <div class=\"cta cta-llx\">\r\n            <h3><a href=\"[[~36]]\">Explore Our Portfolio</a></h3>\r\n            <h4><a href=\"[[~36]]\">60+ Luxury Residences await you<br> throughout 35 Destinations</a></h4>\r\n\r\n            <a class=\"cta-img\" href=\"[[~36]]\" title=\"Destinations and Residences\">\r\n                <img src=\"[[++assets_url]]media/home-cta/2.jpg\" alt=\"\">\r\n            </a>\r\n\r\n        </div>\r\n\r\n        <div class=\"cta cta-team last\">\r\n			<h3><a href=\"[[~262]]\">What is Equity Estates?</a></h3>\r\n            <h4><a href=\"[[~262]]\">Learn about an exciting<br> new investment opportunity</a></h4>\r\n\r\n            <a class=\"cta-img\" href=\"[[~262]]\" title=\"Luxury Residence Fund\">\r\n                <img src=\"[[++assets_url]]media/home-cta/1.jpg\" alt=\"\">\r\n            </a>\r\n\r\n\r\n        </div>\r\n\r\n    </div>\r\n\r\n    [[$pageFooter]]\r\n\r\n</section>\r\n\r\n[[$pageBottom]]', '0', 'a:0:{}', '0', '');
INSERT INTO `modx_site_templates` VALUES ('16', '1', '0', 'voyager-properties', '', '0', '13', '', '0', '[[$pageTop]]\n\n[[Voyager?\n    &propertyResource=`[[*voyager-propertyResource]]`\n    &maps=`7,8,6,2,4,9,10`\n    &service=`mapLanding`\n]]\n\n<section class=\"pageWrapper portfolio\">\n    [[-<div class=\"pageContent voyager residences\">\n        <figure class=\"heroImage\">\n            <div id=\"map_canvas\" class=\"mapsContainer\">\n                [[+voyager.mapsContainer]]\n\n            </div>\n\n        </figure>\n\n    </div>-]]\n\n    <figure class=\"heroImage\">\n        [[*hero-image]]\n\n        [[*hero-content:notempty=`\n            <figcaption>[[*hero-content]]</figcaption>\n        `]]\n\n    </figure>\n\n    <div class=\"pageContent\">\n        <header class=\"contentHeader\">\n            <hgroup>\n                <h2 class=\"contentTitle\">[[*pagetitle]]</h2>\n                [[*longtitle:notempty=`\n                    <h3 class=\"contentSubTitle\">[[*longtitle]]</h3>\n                `]]\n\n            </hgroup>\n            \n        </header>\n\n        <div class=\"mainContent\">\n            [[*introtext:notempty=`\n                <p class=\"lead\">[[*introtext]]</p>\n            `]]\n            \n            [[*content]]\n\n        </div><!-- /.mainContent -->\n\n    </div>\n\n    [[*ctaContent:notempty=`\n        <div class=\"ctaContentWrapper\">\n            <div class=\"ctaContent\">\n                [[*ctaContent]]\n            </div>\n\n        </div>\n    `]]\n\n    <div class=\"portfolio-wrapper\">\n        <div class=\"btn-toolbar\">\n            <a href=\"#\" class=\"btn btn-default search-filters\">\n                <i class=\"i-search\"></i> Search Filters\n            </a>\n\n            <div class=\"btn-group btn-group-justified reciprocity-filters\" data-toggle=\"buttons\">\n                <label class=\"btn btn-default\">\n                    <input type=\"radio\" name=\"residence_fund\" value=\"eef1\">\n                    Equity Estates Portfolio\n                </label>\n\n                <label class=\"btn btn-default\">\n                    <input type=\"radio\" name=\"residence_fund\" value=\"thc\">\n                    Reciprocity Residences\n                </label>\n                \n            </div><!-- /.btn-group.reciprocity-filters -->\n\n        </div><!-- /.btn-toolbar -->\n\n        <div class=\"residences-wrapper v-search-results\">\n            \n        </div><!-- /.residences-wrapper.v-search-results -->\n\n        <div class=\"map-wrapper\">\n            <div class=\"residence-lists\">\n                <div class=\"column-third\">\n                    <div class=\"residence-list-wrapper\" id=\"beach_list\">\n                        <h4 class=\"residence-list-header\">Beach Residences</h4>\n\n                        <ul class=\"residence-list\">\n                            [[+voyager.megaMenuList_beach]]\n\n                        </ul><!-- /.residence-list -->\n\n                    </div><!-- /#beach_list -->\n\n                </div><!-- /.column-third -->\n\n                <div class=\"column-third\">\n                    <div class=\"residence-list-wrapper\" id=\"city_list\">\n                        <h4 class=\"residence-list-header\">City Residences</h4>\n\n                        <ul class=\"residence-list\">\n                            [[+voyager.megaMenuList_city]]\n\n                        </ul><!-- /.residence-list -->\n\n                    </div><!-- /#city_list -->\n\n                </div><!-- /.column-third -->\n\n                <div class=\"column-third\">\n                    <div class=\"residence-list-wrapper\" id=\"leisure_list\">\n                        <h4 class=\"residence-list-header\">Leisure Residences</h4>\n\n                        <ul class=\"residence-list\">\n                            [[+voyager.megaMenuList_leisure]]\n\n                        </ul><!-- /.residence-list -->\n\n                    </div><!-- /#leisure_list -->\n\n                    <div class=\"residence-list-wrapper\" id=\"mtn_list\">\n                        <h4 class=\"residence-list-header\">Mountain Residences</h4>\n\n                        <ul class=\"residence-list\">\n                            [[+voyager.megaMenuList_mtn]]\n\n                        </ul><!-- /.residence-list -->\n\n                    </div><!-- /#mtn_list -->\n\n                </div><!-- /.column-third -->\n\n            </div><!-- /.residence-lists -->\n\n        </div><!-- /.map-wrapper -->\n\n    </div><!-- /.portfolio-wrapper -->\n\n    [[$pageFooter]]\n\n</section>\n\n<script type=\"text/html\" id=\"residence-details-tpl\">\n    <div class=\"v-residence-details\">\n        <div class=\"modal-header\">\n            <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>\n            <h3 class=\"modal-title\">{{title}} <small>{{destination_title}}</small></h3>\n\n        </div><!-- /.modal-header -->\n\n        <div class=\"modal-body\">\n            <div id=\"v-img-gallery\" class=\"carousel slide\" data-ride=\"carousel\">\n                <!-- Indicators -->\n                <ol class=\"carousel-indicators\">\n                    {{#medias}}\n                        <li data-target=\"#v-img-gallery\" data-slide-to=\"{{display_order}}\" class={{active}}></li>\n                    {{/medias}}\n                    {{^medias}}\n                    {{/medias}}\n                </ol>\n\n                <!-- Wrapper for slides -->\n                <div class=\"carousel-inner\" role=\"listbox\">\n                    {{#medias}}\n                        <div class=\"item {{active}}\">\n                            <img src=\"{{mktg_url}}\" alt=\"{{label}}\">\n                            <div class=\"carousel-caption\">{{label}}</div>\n                        </div>\n                    {{/medias}}\n                    {{^medias}}\n                    {{/medias}}\n\n                </div><!-- /.carousel-inner -->\n\n                <!-- Controls -->\n                <a class=\"left carousel-control\" href=\"#v-img-gallery\" role=\"button\" data-slide=\"prev\">\n                    <span class=\"glyphicon glyphicon-chevron-left\" aria-hidden=\"true\"></span>\n                    <span class=\"sr-only\">Previous</span>\n                </a>\n\n                <a class=\"right carousel-control\" href=\"#v-img-gallery\" role=\"button\" data-slide=\"next\">\n                    <span class=\"glyphicon glyphicon-chevron-right\" aria-hidden=\"true\"></span>\n                    <span class=\"sr-only\">Next</span>\n                </a>\n\n            </div>\n\n            <div class=\"v-toolbar\">\n                <ul class=\"v-stats\">\n                    <li class=\"v-stat hidden\">\n                        <i class=\"glyphicons glyphicons-ruler\" title=\"SQ FT\"></i>\n                        <span class=\"v-stat-quantity\">{{interior_sqft}}</span>\n                    </li>\n\n                    <li class=\"v-stat\">\n                        <i class=\"glyphicons glyphicons-family\" title=\"Occupancy\"></i>\n                        <span class=\"v-stat-quantity\">{{max_occupancy}}</span>\n                    </li>\n\n                    <li class=\"v-stat\">\n                        <i class=\"glyphicons glyphicons-bed\" title=\"Bedrooms\"></i>\n                        <span class=\"v-stat-quantity\">{{num_bedrooms}}</span>\n                    </li>\n\n                    <li class=\"v-stat\">\n                        <i class=\"glyphicons glyphicons-bath-shower\" title=\"Bathrooms\"></i>\n                        <span class=\"v-stat-quantity\">{{num_bathrooms}}</span>\n                    </li>\n\n                </ul>\n\n            </div><!-- /.v-toolbar -->\n\n            <div class=\"v-description\">\n                <nav class=\"v-nav\">\n                    <ul class=\"nav nav-tabs\">\n                        <li class=\"active\"><a href=\"#description\" data-toggle=\"tab\">Description</a></li>\n                        <li><a href=\"#bed-config\" data-toggle=\"tab\">Bed Configuration</a></li>\n                        <li><a href=\"#avail-calendar\" data-toggle=\"tab\">Availability Calendar</a></li>\n                    </ul>\n                </nav>\n\n                <div class=\"tab-content\">\n                    <div id=\"description\" class=\"tab-pane active\">\n                        <div class=\"row\">\n                            <div class=\"col-sm-8\">\n                                {{& description}}\n                            </div>\n                            <div class=\"col-sm-4\">\n                                {{#floor_plans}}\n                                    \n                                {{/floor_plans}}\n                                {{^floor_plans}}\n                                {{/floor_plans}}\n\n                            </div>\n\n                        </div>\n\n                    </div>\n\n                    <div id=\"bed-config\" class=\"tab-pane\">\n                        {{& bed-config}}\n                    </div>\n\n                    <div id=\"avail-calendar\" class=\"tab-pane\">\n                    </div>\n\n                </div><!-- /.tab-content -->\n\n            </div><!-- /.v-description -->\n\n        </div><!-- /.modal-body -->\n\n    </div>\n</script>\n\n<script type=\"text/html\" id=\"residence-search-result-tpl\">\n    <div class=\"v-search-result residence\" data-residence-id=\"{{id}}\" data-img-url=\"{{mainImg}}\" data-location-type=\"{{destination_location_type}}\">\n        <h3>{{title}}</h3>\n\n        <figure class=\"main-img\">\n            <div class=\"main-img-bg\"></div>\n        </figure>\n\n        <div class=\"v-toolbar\">\n            <ul class=\"v-stats\">\n                <li class=\"v-stat hidden\">\n                    <i class=\"glyphicons glyphicons-ruler\" title=\"SQ FT\"></i>\n                    <span class=\"v-stat-quantity\">{{interior_sqft}}</span>\n                </li>\n\n                <li class=\"v-stat\">\n                    <i class=\"glyphicons glyphicons-family\" title=\"Occupancy\"></i>\n                    <span class=\"v-stat-quantity\">{{max_occupancy}}</span>\n                </li>\n\n                <li class=\"v-stat\">\n                    <i class=\"glyphicons glyphicons-bed\" title=\"Bedrooms\"></i>\n                    <span class=\"v-stat-quantity\">{{num_bedrooms}}</span>\n                </li>\n\n                <li class=\"v-stat\">\n                    <i class=\"glyphicons glyphicons-bath-shower\" title=\"Bathrooms\"></i>\n                    <span class=\"v-stat-quantity\">{{num_bathrooms}}</span>\n                </li>\n            </ul>\n\n            <a href=\"#\" class=\"btn btn-primary btn-sm\" data-id=\"{{id}}\">View Details</a>\n\n        </div>\n\n    </div>\n</script>\n\n[[$pageBottom]]', '0', 'a:0:{}', '1', 'assets/elements/templates/Voyager/properties.html');
INSERT INTO `modx_site_templates` VALUES ('33', '1', '0', 'baseInterior', '', '0', '19', '', '0', '[[$pageTop]]\r\n\r\n<section class=\"pageWrapper base\">\r\n    <figure class=\"heroImage\">\r\n        [[*hero-image]]\r\n\r\n        [[*hero-content:notempty=`\r\n            <figcaption>[[*hero-content]]</figcaption>\r\n        `]]\r\n\r\n    </figure>\r\n\r\n    <div class=\"pageContent\">\r\n        <header class=\"contentHeader\">\r\n            <hgroup>\r\n                <h2 class=\"contentTitle\">[[*pagetitle]]</h2>\r\n                [[*longtitle:notempty=`\r\n                    <h3 class=\"contentSubTitle\">[[*longtitle]]</h3>\r\n                `]]\r\n\r\n            </hgroup>\r\n            \r\n        </header>\r\n\r\n        <nav class=\"contentNav\">\r\n            [[getResources?\r\n                &resources=`[[UltimateParent]]`\r\n                &tpl=`wellHeader`\r\n            ]]\r\n            \r\n            [[Wayfinder?\r\n                &startId=`[[UltimateParent]]`\r\n                &level=`1`\r\n                &outerClass=`nav nav-list`\r\n            ]]\r\n        </nav><!-- /.contentNav -->\r\n\r\n        <div class=\"mainContent\">\r\n            [[*introtext:notempty=`\r\n                <p class=\"lead\">[[*introtext]]</p>\r\n            `]]\r\n            \r\n            [[*content]]\r\n\r\n        </div><!-- /.mainContent -->\r\n\r\n    </div>\r\n\r\n    [[*ctaContent:notempty=`\r\n        <div class=\"ctaContentWrapper\">\r\n            <div class=\"ctaContent\">\r\n                [[*ctaContent]]\r\n            </div>\r\n\r\n        </div>\r\n    `]]\r\n\r\n    [[$pageFooter]]\r\n\r\n</section>\r\n\r\n[[$videoModal]]\r\n\r\n[[$pageBottom]]', '0', 'a:0:{}', '1', 'assets/elements/templates/EquityEstates/baseInterior.html');
INSERT INTO `modx_site_templates` VALUES ('17', '1', '0', 'newsItem', '', '0', '19', '', '0', '', '0', 'a:0:{}', '1', 'assets/elements/templates/LuxusGroup/newsItem.html');
INSERT INTO `modx_site_templates` VALUES ('19', '1', '0', 'newsLanding', '', '0', '19', '', '0', '[[$pageTop]]\n\n<section class=\"pageWrapper base news\">\n    <figure class=\"heroImage\">\n        [[*hero-image]]\n\n        [[*hero-content:notempty=`\n            <figcaption>[[*hero-content]]</figcaption>\n        `]]\n\n    </figure>\n\n    <div class=\"pageContent\">\n        <header class=\"contentHeader\">\n            <hgroup>\n                <h2 class=\"contentTitle\">[[*pagetitle]]</h2>\n                [[*longtitle:notempty=`\n                    <h3 class=\"contentSubTitle\">[[*longtitle]]</h3>\n                `]]\n\n            </hgroup>\n            \n        </header>\n\n        <div class=\"mainContent\">\n            [[*introtext:notempty=`\n                <p class=\"lead\">[[*introtext]]</p>\n            `]]\n            \n            [[*content:notempty=`\n                [[*content]]\n            `]]\n\n            <ul class=\"media-list newsItems pubs\">\n                [[getResources?\n                    &tpl=`newsItem`\n                    &includeContent=`1`\n                    &includeTVs=`1`\n                    &limit=`0`\n                ]]\n\n            </ul>\n\n        </div>\n\n    </div>\n    \n    [[$pageFooter]]\n\n</section>\n\n[[$pageBottom]]', '0', 'a:0:{}', '1', 'assets/elements/templates/EquityEstates/newsLanding.html');
INSERT INTO `modx_site_templates` VALUES ('21', '1', '0', 'voyager-property', '', '0', '13', '', '0', '[[$pageTop]]\n\n[[!Voyager?\n	&mapLandingResource=`[[*voyager-mapLandingResource]]`\n    &service=`property`\n]]\n\n<section class=\"pageWrapper voyager residence\">\n    <figure class=\"heroImage\">\n        <div class=\"slider-wrapper\">\n            <div id=\"residenceGallery\" class=\"royalSlider rsDefault\">\n                [[!+voyager.residence.images]]\n                \n            </div>\n\n        </div>\n\n    </figure>\n\n	<div class=\"pageContent\">\n        <header class=\" contentHeader residenceIntro\">\n            <hgroup>\n                <h2 class=\"contentTitle\">\n                    [[!+voyager.property.destination_title_rn:default=`[[!+voyager.property.title]]`]]\n                    <a class=\"backToMap\" href=\"[[~[[*voyager-mapLandingResource]]]]#[[+voyager.property.map_class]]\">\n                        Back to Map\n                    </a>\n\n                </h2>\n\n                <h3 class=\"contentSubTitle\">[[!+voyager.residence.intro_text]]</h3>\n\n            </hgroup>\n\n        </header>\n		\n        [[!+voyager.propertyDetails]]\n\n	</div><!-- /.pageContent -->\n\n    [[$pageFooter]]\n\n</section>\n\n[[$pageBottom]]', '0', 'a:0:{}', '1', 'assets/elements/templates/Voyager/property.html');
INSERT INTO `modx_site_templates` VALUES ('35', '0', '0', 'blogLanding', '', '0', '19', '', '0', '[[$pageTop]]\r\n\r\n<section class=\"pageWrapper\">\r\n    <figure class=\"heroImage\">\r\n        [[*hero-image]]\r\n\r\n        [[*hero-content:notempty=`\r\n            <figcaption>[[*hero-content]]</figcaption>\r\n        `]]\r\n\r\n    </figure>\r\n\r\n    <div class=\"pageContent\">\r\n        <header class=\"contentHeader\">\r\n            <hgroup>\r\n                <h2 class=\"contentTitle\">[[*pagetitle]]</h2>\r\n                [[*longtitle:notempty=`\r\n                    <h3 class=\"contentSubTitle\">[[*longtitle]]</h3>\r\n                `]]\r\n\r\n            </hgroup>\r\n            \r\n        </header>\r\n        \r\n        <div class=\"mainContent\">\r\n            <ul class=\"media-list\">\r\n                [[getResources?\r\n                    &tpl=`blogList`\r\n                    &includeContent=`1`\r\n                    &includeTVs=`1`\r\n                    &sortby=`{\"publishedon\":\"DESC\",\"createdon\":\"DESC\"}`\r\n                    &limit=`0`\r\n                ]]\r\n\r\n            </ul>\r\n            \r\n        </div>\r\n\r\n    </div>\r\n\r\n    [[$pageFooter]]\r\n\r\n</section>\r\n\r\n[[$videoModal]]\r\n\r\n[[$pageBottom]]', '0', 'a:0:{}', '1', 'assets/elements/templates/EquityEstates/blogLanding.html');
INSERT INTO `modx_site_templates` VALUES ('34', '1', '0', 'contact', '', '0', '19', '', '0', '[[$pageTop]]\n\n<section class=\"pageWrapper base\">\n    <figure class=\"heroImage\">\n        [[*hero-image]]\n\n        [[*hero-content:notempty=`\n            <figcaption>[[*hero-content]]</figcaption>\n        `]]\n\n    </figure>\n\n    <div class=\"pageContent\">\n        <header class=\"contentHeader\">\n            <hgroup>\n                <h2 class=\"contentTitle\">[[*pagetitle]]</h2>\n                [[*longtitle:notempty=`\n                    <h3 class=\"contentSubTitle\">[[*longtitle]]</h3>\n                `]]\n\n            </hgroup>\n\n        </header>\n\n        <div class=\"mainContent\">\n            [[*introtext:notempty=`\n                <p class=\"lead\">[[*introtext]]</p>\n            `]]\n            <form class=\"contactForm\" action=\"http://invest.equityestatestravel.com/l/26972/2014-10-31/26hrdm\" method=\"post\">\n                <fieldset class=\"form-horizontal\">\n                    <h3>Your Contact Information</h3>\n\n                    <div class=\"form-group\">\n                        <label for=\"first_name\" class=\"col-sm-2 control-label\">Name</label>\n                        <div class=\"col-sm-4\">\n                            <input class=\"form-control\" type=\"text\" name=\"first_name\" value=\"\" placeholder=\"First name\">\n                        </div>\n\n                        <div class=\"col-sm-4\">\n                            <input class=\"form-control\" type=\"text\" name=\"last_name\"  value=\"\" placeholder=\"Last name\">\n                        </div>\n\n                    </div>\n\n                    <div class=\"form-group\">\n                        <label class=\"col-sm-2 control-label\">Email</label>\n                        <div class=\"col-sm-8\">\n                            <input type=\"email\" class=\"form-control\" maxlength=\"80\" name=\"email\" value=\"\" placeholder=\"Your primary email address\">\n                        </div>\n\n                    </div>\n\n                    <div class=\"form-group\">\n                        <label class=\"col-sm-2 control-label\">Phone</label>\n                        <div class=\"col-sm-8 phoneNumber\">\n                            <input class=\"form-control\" type=\"text\" maxlength=\"40\" name=\"Primary_Phone\" value=\"\" placeholder=\"Your primary phone number\">\n\n                        </div>\n\n                    </div>\n\n                    <div class=\"form-group\">\n                        <label class=\"col-sm-2 control-label\">Street</label>\n                        <div class=\"col-sm-8\">\n                            <input class=\"form-control\" type=\"text\" name=\"home_street\" value=\"\">\n                            \n                        </div>\n\n                    </div>\n\n                    <div class=\"form-group\">\n                        <label class=\"col-sm-2 control-label\">City</label>\n                        <div class=\"col-sm-8\">\n                            <input class=\"form-control\" maxlength=\"40\" type=\"text\" name=\"home_city\" value=\"\">\n\n                        </div>\n\n                    </div>\n\n                    <div class=\"form-group\">\n                        <label class=\"col-sm-2 control-label\">State</label>\n                        <div class=\"col-sm-8\">\n                            <input class=\"form-control\" type=\"text\" name=\"home_state\" value=\"\">\n\n                        </div>\n\n                    </div>\n\n                    <div class=\"form-group\">\n                        <label class=\"col-sm-2 control-label\">ZIP</label>\n                        <div class=\"col-sm-8\">\n                            <input class=\"form-control\"  maxlength=\"20\" type=\"text\" name=\"home_zip\"  value=\"\">\n\n                        </div>\n\n                    </div>\n\n                    <div class=\"form-group\">\n                        <label class=\"col-sm-2 control-label\">Country</label>\n                        <div class=\"col-sm-8\">\n                           <input class=\"form-control\" type=\"text\" name=\"home_country\"  value=\"\">\n\n                        </div>\n\n                    </div>\n\n                </fieldset>\n\n                <fieldset class=\"additionalInfo\">\n                    <h3>Additional Information</h3>\n                    \n                    <div class=\"control-group leadSource\">\n                        <label class=\"control-label\">\n                            How did you hear about Equity Estates? <span class=\"help\">Please select an option below</span>\n                        </label>\n\n                        <div class=\"btn-toolbar\">\n                            <div class=\"btn-group\" data-toggle=\"buttons\">\n                                <label class=\"btn\">\n                                    <input type=\"radio\" name=\"Lead_Source\" value=\"Sponsored Event\"> Sponsored Event\n                                </label>\n\n                                <label class=\"btn\">\n                                    <input type=\"radio\" name=\"Lead_Source\" value=\"Article\"> Article\n                                </label>\n\n                                <label class=\"btn\">\n                                    <input type=\"radio\" name=\"Lead_Source\" value=\"Owner Member/Investor\"> Owner Member/Investor\n                                </label>\n\n                                <label class=\"btn\">\n                                    <input type=\"radio\" name=\"Lead_Source\" value=\"Robb Report\"> Robb Report\n                                </label>\n\n                                <label class=\"btn\">\n                                    <input type=\"radio\" name=\"Lead_Source\" value=\"Online Search\"> Online Search\n                                </label>\n\n                                <label class=\"btn\">\n                                    <input type=\"radio\" name=\"Lead_Source\" value=\"Ocean Home\"> Ocean Home Magazine\n                                </label>\n\n                                <label class=\"btn\">\n                                    <input type=\"radio\" name=\"Lead_Source\" value=\"Other\"> Other\n                                </label>\n\n                            </div>\n\n                        </div>\n                        \n                        <input class=\"form-control\" type=\"text\" name=\"Lead_Source_Other\" value=\"\" placeholder=\"\">\n\n                    </div>\n\n                    <div class=\"control-group accreditedStatus\">\n                        <label class=\"control-label\">\n                            Are you an accredited investor? <span class=\"help\">Please select an option below</span>\n                        </label>\n\n                        <div class=\"btn-toolbar\">\n                            <div class=\"btn-group\" data-toggle=\"buttons\">\n                                <label class=\"btn\">\n                                    <input type=\"radio\" name=\"accredited_investor\" value=\"Yes\"> Yes\n                                </label>\n\n                                <label class=\"btn\">\n                                    <input type=\"radio\" name=\"accredited_investor\" value=\"No\"> No\n                                </label>\n\n                                <label class=\"btn\">\n                                    <input type=\"radio\" name=\"accredited_investor\" value=\"I\'m not sure\"> I\'m not sure\n                                </label>\n\n                            </div>\n\n                            <button type=\"button\" class=\"btn accreditedInfo\">Accredited Investor Definition</button>\n\n                        </div>\n\n                        <div id=\"accreditedContent\" class=\"hide\">\n                            <h3 class=\"title\">Accredited Investors <button type=\"button\" class=\"close\">&times;</button></h3>\n                            <div class=\"content\">\n                                <p>Most Equity Estates investors qualify as an \"accredited investor\" under the <a href=\"http://www.sec.gov/answers/accred.htm\" target=\"_blank\">Securities and Exchange Commission</a> guidelines by meeting one of these defintions:</p>\n                                <ul>\n                                    <li>a natural person with income exceeding $200,000 in each of the two most recent years or joint income with a spouse exceeding $300,000 for those years and a reasonable expectation of the same income level in the current year; or</li>\n                                    <li>a natural person who has individual net worth, or joint net worth with the person’s spouse, that exceeds $1 million at the time of the purchase, excluding the value of the primary residence of such person; or</li>\n                                    <li>a trust with assets in excess of $5 million, not formed to acquire the securities offered, whose purchases a sophisticated person makes.</li>\n\n                                </ul>\n\n                            </div>\n                            \n                        </div>\n\n                    </div>\n\n                    <div class=\"control-group\">\n                        <label for=\"inquiry_notes\" class=\"control-label\">Comments</label>\n                        <textarea class=\"form-control\" name=\"inquiry_notes\"></textarea>\n\n                    </div>\n\n                </fieldset>\n\n                <div class=\"form-actions\">\n                    <input type=\"submit\" class=\"btn btn-info btn-block\" value=\"Submit Form\">\n                    \n                </div>\n\n            </form>\n\n            <div class=\"contactInfo\">\n                <!--<iframe class=\"contactMap\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=5+Concourse+Parkway+NE,+31st+Floor+++Atlanta,+Georgia+30329&amp;aq=&amp;sll=32.678125,-83.178297&amp;sspn=13.031002,9.700928&amp;t=m&amp;ie=UTF8&amp;hq=&amp;hnear=5+Concourse+Pkwy+NE,+Atlanta,+Fulton,+Georgia+30328&amp;z=14&amp;ll=33.917224,-84.35293&amp;output=embed\"></iframe>-->\n                \n                <address>\n                    <strong>Equity Estates Fund II, LLC</strong><br>\n                    5 Concourse Parkway NE, Ste 2950<br>\n                    Atlanta, Georgia 30328\n                </address>\n\n                <ul class=\"contactList\">\n                    <li><strong>Phone:</strong> 404.220.7554</li>\n                    <li><strong>Toll-free:</strong> 800.413.3340</li>\n                    <li><strong>Email:</strong> <a href=\"mailto:info@equityestatesfund.com\">info@equityestatesfund.com</a></li>\n                    \n                </ul>\n\n            </div>\n\n        </div>\n\n        <div class=\"subContent\">\n            [[$leanMore]]\n\n        </div>\n\n    </div>\n\n    [[$pageFooter]]\n\n</section>\n\n[[$accredited_investor_modal]]\n\n[[$pageBottom]]', '0', 'a:0:{}', '1', 'assets/elements/templates/EquityEstates/contact.html');
INSERT INTO `modx_site_templates` VALUES ('36', '1', '0', 'blogPost', '', '0', '19', '', '0', '[[$pageTop]]\n\n<section class=\"pageWrapper\">\n    <figure class=\"heroImage\">\n        [[*hero-image]]\n\n        [[*hero-content:notempty=`\n            <figcaption>[[*hero-content]]</figcaption>\n        `]]\n\n    </figure>\n\n    <div class=\"pageContent\">\n        <header class=\"contentHeader\">\n            <hgroup>\n                <h2 class=\"contentTitle\">\n					Travel Blog\n				</h2>\n            </hgroup>\n            \n        </header>\n        \n        <div class=\"mainContent\">\n            <aside class=\"socialShare\"></aside>\n\n            <article class=\"blogPost\">\n                <header class=\"blogHeader\">\n                    <hgroup>\n                        <h2 class=\"blogTitle\">[[*pagetitle]]</h2>\n                        <h3 class=\"blogLongTitle\">[[*longtitle]]</h3>\n                    </hgroup>\n\n                </header>\n                \n                <p class=\"lead\">\n                    [[*introtext]]\n                </p>\n\n                [[*content]]\n\n            </article>\n            \n        </div>\n\n    </div>\n\n    [[$pageFooter]]\n\n</section>\n\n[[$videoModal]]\n\n[[$pageBottom]]', '0', 'a:0:{}', '1', 'assets/elements/templates/EquityEstates/blogPost.html');
INSERT INTO `modx_site_templates` VALUES ('38', '1', '0', 'tmpl-rick', '', '0', '0', '', '0', '<!DOCTYPE html>\n<!--[if lt IE 7 ]><html class=\"ie ie6\" lang=\"en\"> <![endif]-->\n<!--[if IE 7 ]><html class=\"ie ie7\" lang=\"en\"> <![endif]-->\n<!--[if IE 8 ]><html class=\"ie ie8\" lang=\"en\"> <![endif]-->\n<!--[if (gte IE 9)|!(IE)]><!-->\n<html lang=\"en\">\n<!--<![endif]-->\n<head>\n\n<!-- ============================================\n        Basic Page Needs\n    ============================================= -->\n<meta charset=\"utf-8\">\n<title>Equity Estate</title>\n\n<!-- ============================================\n        Mobile Specific Metas\n    ============================================= -->\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\">\n\n<!-- ============================================\n        Stylesheet\n    ============================================= -->\n<link rel=\"stylesheet\" href=\"/assets/site/css/base.css\">\n<link rel=\"stylesheet\" href=\"/assets/site/css/slider.css\">\n<link href=\'http://fonts.googleapis.com/css?family=Oswald:300\' rel=\'stylesheet\' type=\'text/css\'>\n<link href=\'http://fonts.googleapis.com/css?family=Oswald:700\' rel=\'stylesheet\' type=\'text/css\'>\n\n<!-- ============================================\n        Javascript\n    ============================================= -->\n\n<script src=\"js/jquery-1.8.2.min.js\"></script>\n<script src=\"js/jquery.easing.1.3.js\"></script>\n<script src=\"js/camera.js\"></script>\n<!--[if (gt IE 9)|!(IE)]><!-->\n<script src=\"js/jquery.mobile.customized.min.js\"></script>\n<!--<![endif]-->\n<script>\n	jQuery(window).load(function() {\n		jQuery(\'#camera_wrap_1\').camera({\n			height: \'30%\',\n			playPause: false,\n			time: 5000,\n			transPeriod: 1000,\n			fx: \'random\',\n			loader: \'none\',\n			minHeight:\'150px\',\n			navigation: false,\n			pagination: false,\n		});\n	});\n</script>\n\n<!--[if lt IE 9]>\n<script src=\"js/html5.js\"></script>\n<![endif]-->\n\n</head>\n\n<body>\n\n<!-- ============================================\n            Header\n ============================================= -->\n<header>\n  <div class=\"main\">\n    <h1><a href=\"index.html\"><img src=\"images/logo.png\" alt=\"\" ></a></h1>\n    <nav id=\"nav\" role=\"navigation\"> <a href=\"#nav\" title=\"Show navigation\">Show navigation</a> <a href=\"#\" title=\"Hide navigation\">Hide navigation</a>\n      <ul class=\"clearfix\">\n        <li> <a href=\"#\" aria-haspopup=\"true\"><span>The Portfolio</span></a>\n          <ul >\n            <li><a href=\"#\">Portfolio 1</a></li>\n            <li><a href=\"#\">Portfolio 1</a></li>\n            <li><a href=\"#\">Portfolio 1</a></li>\n          </ul>\n        </li>\n        <li> <a href=\"#\" aria-haspopup=\"true\"><span>The Experience</span></a>\n          <ul >\n            <li><a href=\"#\">Portfolio 1</a></li>\n            <li><a href=\"#\">Portfolio 1</a></li>\n            <li><a href=\"#\">Portfolio 1</a></li>\n          </ul>\n        </li>\n        <li> <a href=\"#\" aria-haspopup=\"true\"><span>The Investment</span></a>\n          <ul >\n            <li><a href=\"#\">Portfolio 1</a></li>\n            <li><a href=\"#\">Portfolio 1</a></li>\n            <li><a href=\"#\">Portfolio 1</a></li>\n          </ul>\n        </li>\n        <li> <a href=\"#\" aria-haspopup=\"true\"><span>About Us</span></a>\n          <ul >\n            <li><a href=\"#\">Portfolio 1</a></li>\n            <li><a href=\"#\">Portfolio 1</a></li>\n            <li><a href=\"#\">Portfolio 1</a></li>\n          </ul>\n        </li>\n        <li><a href=\"#\">Contact Us</a></li>\n        <li><a href=\"#\">Member Login</a></li>\n      </ul>\n    </nav>\n  </div>\n</header>\n<!-- ============================================\n            Slider\n ============================================= -->\n<div class=\"slider\">\n  <div class=\"camera_wrap camera_azure_skin\" id=\"camera_wrap_1\">\n    <div data-src=\"images/banner-1.jpg\">\n      <div class=\"camera_caption \"> Not just <i>capital</i> returns. <span>Life returns.</span></div>\n    </div>\n    <div data-src=\"images/banner-2.jpg\">\n      <div class=\"camera_caption \">Not just <i>capital</i> returns. <span>Life returns.</span> </div>\n    </div>\n  </div>\n</div>\n<!-- ============================================\n            content\n ============================================= -->\n<div class=\"clear\"></div>\n<div id=\"container\">\n<div class=\"main\">\n	<div class=\"col-2\">\n    <div class=\"form-box\">\n      <h2>Request Our Executive Summary</h2>\n      <form name=\"f1\">\n        <input type=\"text\" placeholder=\"First\">\n        <input type=\"text\" placeholder=\"last\">\n        <input type=\"text\" placeholder=\"Zip Code\">\n        <input type=\"text\" placeholder=\"Phone Number\">\n        <input type=\"email\" placeholder=\"Email Address\">\n        <input type=\"submit\" value=\"Send Me Info!\" class=\"btn\">\n      </form>\n    </div>\n  </div>\n  <div class=\"col-1\">\n    <div class=\"video\"> <img src=\"images/video.jpg\" alt=\"\" class=\"scale-with-grid\"> </div>\n  </div>\n  \n  <div class=\"services\">\n    <ul>\n      <li> <img src=\"images/estate.png\" alt=\"\" />\n        <h2>What Is Equity Estates?</h2>\n        <p>Equity Estates\' Luxury Residence Fund™ is a <br>private fund for accredited investors to own and enjoy a portfolio of vacation residences.</p>\n      </li>\n      <li> <img src=\"images/why-invest.png\" alt=\"\" />\n        <h2>Why Should You Invest?</h2>\n        <p>Equity Estates offers you a smart alternative for your dream vacations, while presenting a sound financial investment, without all the worries of vacation home ownership.</p>\n      </li>\n      <li> <img src=\"images/take-care.png\" alt=\"\" />\n        <h2>We Take Care Of Everything.</h2>\n        <p>We not only take care of our properties, we take care of investor’s every need--from vacation itinerary planning, to housekeeping, to stocking of the fridge with your favorite groceries - no task is too small.</p>\n      </li>\n      <li> <img src=\"images/world.png\" alt=\"\" />\n        <h2>Where Can You Travel?</h2>\n        <p>Equity Estates is a globetrotter’s dream with more than 70 residences spanning 30 countries. Our mission is to create lasting memories for your family and friends.</p>\n      </li>\n      <li> <img src=\"images/chat-icon.png\" alt=\"\" />\n        <h2>People Are Talking About Us...</h2>\n        <p>“We truly created a memory for our family and I know they’ll treasure it as we do. Thanks so much for all that you did to make this trip one of our best ever.”</p>\n      </li>\n    </ul>\n  </div>\n  <div class=\"clear\"></div>\n  <div class=\"quoteSection\">\n    <p>“Success is measured by return on investment and return on living. We take pride in designing inspired experiences that create lifelong memories.” <span>- Founder and CEO, Philip Mekelburg</span> </p>\n    <a href=\"#\" class=\"requestInfo\">Request Information</a> </div>\n</div>\n<script src=\"js/doubletaptogo.js\"></script> \n<script>\n	jQuery( function()\n	{\n		jQuery( \'#nav li:has(ul)\' ).doubleTapToGo();\n	});\n</script>\n</body>\n</html>', '0', 'a:0:{}', '0', '');
INSERT INTO `modx_site_templates` VALUES ('40', '0', '0', 'requestInfo', '', '0', '19', '', '0', '[[$pageTop]]\r\n\r\n  <div class=\"landing-content\">\r\n  	<div class=\"header-content\">\r\n      <div class=\"page-header\">\r\n        <h2>What is Equity Estates?</h2>\r\n\r\n        <p class=\"lead\">Equity Estates\' Luxury Residence Fund&trade; is a private fund for accredited investors that allows them to own and enjoy a portfolio of exceptional residences in the most popular destinations around the world.</p>\r\n\r\n      </div><!-- /.page-header -->\r\n      \r\n      <div class=\"primary-content row\">\r\n        <div class=\"landing-video-wrapper responsive-wrapper\">\r\n          <div id=\"whatIsEquityEstatesWrapper\" class=\"jp-flat-video\">\r\n            <div id=\"whatIsEquityEstates\" data-video-uri=\"[[++site_url]]assets/media/video/\" class=\"jp-jplayer\"></div>\r\n            <div class=\"jp-gui\">\r\n              <div class=\"jp-play-control jp-control\">\r\n                <a class=\"jp-play jp-button\"></a>\r\n                <a class=\"jp-pause jp-button\"></a>\r\n              </div>\r\n              <div class=\"jp-bar\">\r\n                <div class=\"jp-seek-bar\">\r\n                  <div class=\"jp-play-bar\"></div>\r\n                  <div class=\"jp-details\"><span class=\"jp-title\"></span></div>\r\n                  <div class=\"jp-timing\"><span class=\"jp-duration\"></span></div>\r\n                </div>\r\n              </div>\r\n              <div class=\"jp-screen-control jp-control\">\r\n                <a class=\"jp-full-screen jp-button\"></a>\r\n                <a class=\"jp-restore-screen jp-button\"></a>\r\n              </div>\r\n            </div>\r\n            <div class=\"jp-no-solution\">\r\n              Media Player Error<br />\r\n              Update your browser or Flash plugin\r\n            </div>\r\n          </div>\r\n\r\n        </div><!-- /.landing-video-wrapper.responsive-wrapper.col-md-6 -->\r\n\r\n        <div class=\"landing-form-wrapper\">\r\n          <form role=\"form\" class=\"form\" name=\"f1\" action=\"https://go.pardot.com/l/26972/2014-05-16/78hcw\" method=\"post\" id=\"request_form\">\r\n            <h3>Request our Executive Summary</h3>\r\n            <div class=\"row\">\r\n              <div class=\"form-group col-sm-6\">\r\n                <label class=\"control-label\">First Name</label>\r\n                <input class=\"form-control\" type=\"text\" name=\"first_name\" value=\"\" placeholder=\"Required\">\r\n\r\n              </div>\r\n\r\n              <div class=\"form-group col-sm-6\">\r\n                <label class=\"control-label\">Last Name</label>\r\n                <input class=\"form-control\" type=\"text\" name=\"last_name\"  value=\"\" placeholder=\"Required\">\r\n\r\n              </div>\r\n\r\n            </div>\r\n\r\n            <div class=\"form-group\">\r\n              <label class=\"control-label\">Email</label>\r\n              <input class=\"form-control\" type=\"email\" placeholder=\"Required\" name=\"email\" value=\"\" />\r\n\r\n            </div>\r\n\r\n            <div class=\"form-group\">\r\n              <label class=\"control-label\">Phone</label>\r\n              <input class=\"form-control\" type=\"text\" placeholder=\"Primary Phone\" name=\"Primary_Phone\" value=\"\" />\r\n\r\n            </div>\r\n\r\n            <div class=\"form-actions\">\r\n              <button type=\"submit\" class=\"btn btn-block morph-button morph-primary\" name=\"request_form_submit\">\r\n                <span class=\"glyphicon glyphicon-file\"></span>\r\n                Submit Form\r\n              </button>\r\n            </div><!-- /.form-actions -->\r\n\r\n          </form><!-- /.form -->\r\n\r\n        </div><!-- /.landing-form-wrapper.col-md-5 -->\r\n\r\n      </div><!-- /.primary-content -->\r\n\r\n    </div><!-- /.header-content -->\r\n\r\n  </div><!-- /.landing-content -->\r\n\r\n  <div class=\"services row\">\r\n    <ul class=\"col-md-12\">\r\n      <li class=\"col-md-4\">\r\n      <img src=\"assets/site/img/why-invest.png\" alt=\"\" />\r\n        <h2>Why Should You Invest?</h2>\r\n        <p>Equity Estates offers a smart alternative for your dream vacations while presenting a sound financial investment in real estate. We deliver all of the benefits of vacation home ownership without any of the worries.</p>\r\n        <a href=\"[[~47]]\" class=\"btn btn-orange btn-block\">\r\n          Investing in a Luxury Residence Fund\r\n        </a>\r\n\r\n      </li>\r\n\r\n      <li class=\"col-md-4\">\r\n        <img src=\"assets/site/img/take-care.png\" alt=\"\" />\r\n        <h2>We Take Care Of Everything.</h2>\r\n        <p>We not only take care of our properties, but also we take care of our investor’s every need-- from vacation itinerary planning to pre-stocking your favorite groceries - no task is too big or too small.</p>\r\n        <a href=\"[[~43]]\" class=\"btn btn-orange btn-block\">\r\n          The details on our Five-Star Service\r\n        </a>\r\n\r\n      </li>\r\n\r\n      <li class=\"col-md-4\">\r\n        <img src=\"assets/site/img/world.png\" alt=\"\" />\r\n        <h2>Where Can You Travel?</h2>\r\n        <p>Equity Estates is a globetrotter’s dream with more than 70 residences spanning 30 countries. Our mission is to deliver measurable returns and create lasting memories for your friends and family.</p>\r\n        <a href=\"[[~35]]\" class=\"btn btn-orange btn-block\">\r\n          View all Destinations and Residences\r\n        </a>\r\n\r\n      </li>\r\n\r\n    </ul>\r\n\r\n  </div><!-- /.services -->\r\n\r\n  <div class=\"ceoQuote clearfix\">\r\n    <blockquote>Success is measured by return on investment and return on living. We take pride in designing inspired experiences that create lifelong memories.</blockquote>\r\n\r\n    <p>Philip Mekelburg, Equity Estates Founder and CEO</p>\r\n\r\n    <div class=\"btn-group\">\r\n      <a href=\"[[~4]]\" class=\"btn btn-lg btn-primary\">Request Information</a>\r\n      <a href=\"[[~44]]\" class=\"btn btn-lg btn-primary\">View Testimonials</a>\r\n\r\n    </div><!-- /.btn-group -->\r\n\r\n  </div><!-- /.ceoQuote -->\r\n\r\n[[$videoModal]]\r\n\r\n[[$pageBottom]]', '0', 'a:0:{}', '0', '');

-- ----------------------------
-- Table structure for modx_site_tmplvars
-- ----------------------------
CREATE TABLE `modx_site_tmplvars` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `source` int(10) unsigned NOT NULL DEFAULT '0',
  `property_preprocess` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `type` varchar(20) NOT NULL DEFAULT '',
  `name` varchar(50) NOT NULL DEFAULT '',
  `caption` varchar(80) NOT NULL DEFAULT '',
  `description` varchar(255) NOT NULL DEFAULT '',
  `editor_type` int(11) NOT NULL DEFAULT '0',
  `category` int(11) NOT NULL DEFAULT '0',
  `locked` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `elements` text,
  `rank` int(11) NOT NULL DEFAULT '0',
  `display` varchar(20) NOT NULL DEFAULT '',
  `default_text` mediumtext,
  `properties` text,
  `input_properties` text,
  `output_properties` text,
  `static` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `static_file` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`) USING BTREE,
  KEY `category` (`category`) USING BTREE,
  KEY `locked` (`locked`) USING BTREE,
  KEY `rank` (`rank`) USING BTREE,
  KEY `static` (`static`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=37 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of modx_site_tmplvars
-- ----------------------------
INSERT INTO `modx_site_tmplvars` VALUES ('1', '1', '0', 'image', 'hero-image', '', '', '0', '4', '0', '', '0', 'image', 'assets/media/heros/place_holder.jpg', 'a:0:{}', 'a:0:{}', 'a:10:{s:7:\"alttext\";s:0:\"\";s:6:\"hspace\";s:0:\"\";s:6:\"vspace\";s:0:\"\";s:7:\"borsize\";s:0:\"\";s:5:\"align\";s:4:\"none\";s:4:\"name\";s:0:\"\";s:5:\"class\";s:0:\"\";s:2:\"id\";s:0:\"\";s:5:\"style\";s:0:\"\";s:10:\"attributes\";s:0:\"\";}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('2', '1', '0', 'text', 'title', 'Job Title', '', '0', '2', '0', '', '0', 'default', '', 'a:0:{}', 'a:3:{s:10:\"allowBlank\";s:4:\"true\";s:9:\"maxLength\";s:0:\"\";s:9:\"minLength\";s:0:\"\";}', 'a:0:{}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('3', '1', '0', 'image', 'img-thumb', 'Thumbnail Image', '', '0', '2', '0', '', '0', 'image', '', 'a:0:{}', 'a:0:{}', 'a:10:{s:7:\"alttext\";s:0:\"\";s:6:\"hspace\";s:0:\"\";s:6:\"vspace\";s:0:\"\";s:7:\"borsize\";s:0:\"\";s:5:\"align\";s:4:\"none\";s:4:\"name\";s:0:\"\";s:5:\"class\";s:0:\"\";s:2:\"id\";s:0:\"\";s:5:\"style\";s:0:\"\";s:10:\"attributes\";s:0:\"\";}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('4', '0', '0', 'image', 'img-full', 'Full Image', '', '0', '2', '0', '', '0', 'image', '', 'a:0:{}', 'a:0:{}', 'a:10:{s:7:\"alttext\";s:0:\"\";s:6:\"hspace\";s:0:\"\";s:6:\"vspace\";s:0:\"\";s:7:\"borsize\";s:0:\"\";s:5:\"align\";s:4:\"none\";s:4:\"name\";s:0:\"\";s:5:\"class\";s:0:\"\";s:2:\"id\";s:0:\"\";s:5:\"style\";s:0:\"\";s:10:\"attributes\";s:0:\"\";}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('9', '1', '0', 'text', 'weather-id', 'Yahoo Weather ID', '', '0', '0', '0', '', '0', 'default', '', 'a:0:{}', 'a:3:{s:10:\"allowBlank\";s:4:\"true\";s:9:\"maxLength\";s:0:\"\";s:9:\"minLength\";s:0:\"\";}', 'a:0:{}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('15', '1', '0', 'text', 'hero-content', 'Hero Image Content', '', '0', '4', '0', '', '0', 'default', '', 'a:0:{}', 'a:3:{s:10:\"allowBlank\";s:4:\"true\";s:9:\"maxLength\";s:0:\"\";s:9:\"minLength\";s:0:\"\";}', 'a:0:{}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('18', '1', '0', 'text', 'pageclass', 'Page Class', '', '0', '4', '0', '', '0', 'default', '', 'a:0:{}', 'a:3:{s:10:\"allowBlank\";s:4:\"true\";s:9:\"maxLength\";s:0:\"\";s:9:\"minLength\";s:0:\"\";}', 'a:0:{}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('33', '0', '0', 'text', 'started_work', 'Started at Equity Estates', '', '0', '2', '0', '', '0', 'default', '2006', 'a:0:{}', 'a:3:{s:10:\"allowBlank\";s:4:\"true\";s:9:\"maxLength\";s:0:\"\";s:9:\"minLength\";s:0:\"\";}', 'a:0:{}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('34', '0', '0', 'text', 'fav_residence', 'Favorite Residence', '', '0', '2', '0', '', '0', 'default', 'Turks &amp; Caicos', 'a:0:{}', 'a:3:{s:10:\"allowBlank\";s:4:\"true\";s:9:\"maxLength\";s:0:\"\";s:9:\"minLength\";s:0:\"\";}', 'a:0:{}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('35', '0', '0', 'text', 'hobbies', 'Hobbies', '', '0', '2', '0', '', '0', 'default', 'Voyager, Travel, Member Services, etc.', 'a:0:{}', 'a:3:{s:10:\"allowBlank\";s:4:\"true\";s:9:\"maxLength\";s:0:\"\";s:9:\"minLength\";s:0:\"\";}', 'a:0:{}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('26', '1', '0', 'number', 'voyager-propertyResource', 'Property Resource ID', '', '0', '0', '0', '', '0', 'default', '', 'a:0:{}', 'a:7:{s:10:\"allowBlank\";s:4:\"true\";s:13:\"allowDecimals\";s:2:\"No\";s:13:\"allowNegative\";s:2:\"No\";s:16:\"decimalPrecision\";s:1:\"2\";s:16:\"decimalSeparator\";s:1:\".\";s:8:\"maxValue\";s:0:\"\";s:8:\"minValue\";s:0:\"\";}', 'a:0:{}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('27', '1', '0', 'number', 'voyager-mapLandingResource', 'Map Landing Resource ID', '', '0', '0', '0', '', '0', 'default', '', 'a:0:{}', 'a:7:{s:10:\"allowBlank\";s:4:\"true\";s:13:\"allowDecimals\";s:2:\"No\";s:13:\"allowNegative\";s:2:\"No\";s:16:\"decimalPrecision\";s:1:\"2\";s:16:\"decimalSeparator\";s:1:\".\";s:8:\"maxValue\";s:0:\"\";s:8:\"minValue\";s:0:\"\";}', 'a:0:{}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('29', '1', '0', 'file', 'newsImage', '', '', '0', '0', '0', '', '0', 'image', '', 'a:0:{}', 'a:0:{}', 'a:10:{s:7:\"alttext\";s:0:\"\";s:6:\"hspace\";s:0:\"\";s:6:\"vspace\";s:0:\"\";s:7:\"borsize\";s:0:\"\";s:5:\"align\";s:4:\"none\";s:4:\"name\";s:0:\"\";s:5:\"class\";s:0:\"\";s:2:\"id\";s:0:\"\";s:5:\"style\";s:0:\"\";s:10:\"attributes\";s:0:\"\";}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('30', '1', '0', 'file', 'articlePdf', 'Article PDF', '', '0', '0', '0', '', '0', 'default', '', 'a:0:{}', 'a:0:{}', 'a:0:{}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('32', '1', '0', 'text', 'articleLink', 'Article URL', '', '0', '0', '0', '', '0', 'default', '', 'a:0:{}', 'a:3:{s:10:\"allowBlank\";s:4:\"true\";s:9:\"maxLength\";s:0:\"\";s:9:\"minLength\";s:0:\"\";}', 'a:0:{}', '0', '');
INSERT INTO `modx_site_tmplvars` VALUES ('36', '1', '0', 'richtext', 'ctaContent', 'Call to Action', '', '0', '4', '0', '', '0', 'default', '', 'a:0:{}', 'a:0:{}', 'a:0:{}', '0', '');

-- ----------------------------
-- Table structure for modx_site_tmplvar_access
-- ----------------------------
CREATE TABLE `modx_site_tmplvar_access` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `tmplvarid` int(10) NOT NULL DEFAULT '0',
  `documentgroup` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of modx_site_tmplvar_access
-- ----------------------------

-- ----------------------------
-- Table structure for modx_site_tmplvar_contentvalues
-- ----------------------------
CREATE TABLE `modx_site_tmplvar_contentvalues` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `tmplvarid` int(10) NOT NULL DEFAULT '0',
  `contentid` int(10) NOT NULL DEFAULT '0',
  `value` mediumtext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `tmplvarid` (`tmplvarid`) USING BTREE,
  KEY `contentid` (`contentid`) USING BTREE,
  KEY `tv_cnt` (`tmplvarid`,`contentid`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=546 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of modx_site_tmplvar_contentvalues
-- ----------------------------
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('1', '1', '1', 'assets/media/turks-and-caicos.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('2', '2', '12', 'CEO and Founder, Equity Estates Fund II Manager, LLC <br >');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('3', '3', '12', 'assets/media/team/Philip-Mekelburg.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('4', '3', '13', 'assets/media/team/Tim-Trankina.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('6', '3', '15', 'assets/media/team/brandon-thumb.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('7', '3', '17', 'assets/media/team/Marie-McCarthy.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('9', '3', '19', 'assets/media/team/Kim-Harper.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('10', '3', '20', 'assets/media/team/Meghan-Donovan.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('12', '3', '22', 'assets/media/team/Monica-Jacobs.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('13', '3', '23', 'assets/media/team/Ben-Reser.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('14', '3', '24', 'assets/media/team/Daniela-Fagotti.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('15', '2', '13', 'Member, Equity Estates Fund I Manager, LLC');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('512', '30', '234', 'assets/media/news/Halogen-Guides-Jan-2009.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('18', '2', '16', 'Senior Vice President, Investor Relations');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('19', '2', '17', 'Vice President, Travel Experiences');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('20', '2', '15', 'Managing Director, Equity Estates Fund I, LLC');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('22', '2', '19', 'Senior Controller');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('23', '2', '20', 'Office Manager');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('25', '2', '22', 'Personal Travel Concierge');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('26', '2', '23', 'Personal Travel Concierge');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('27', '2', '24', 'Personal Travel Concierge');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('28', '1', '7', 'assets/media/heros/management.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('32', '3', '16', 'assets/media/team/Sarah-Cochran.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('33', '4', '12', 'assets/media/team/full-stephen.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('36', '1', '30', 'assets/media/heros/In_The_News.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('437', '1', '4', 'assets/media/heros/Contact_Us.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('432', '1', '201', 'assets/media/heros/Our_Residences.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('433', '1', '44', 'assets/media/heros/Testimonials.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('51', '1', '48', 'assets/media/heros/Fund_Offerings.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('52', '1', '49', 'assets/media/heros/Why_Invest.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('54', '1', '51', 'assets/media/heros/service.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('445', '2', '205', 'Personal Travel Concierge');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('348', '4', '17', 'assets/media/team/full-heather.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('350', '4', '19', 'assets/media/team/full-amanda.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('444', '3', '205', 'assets/media/team/Brad-Voss.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('353', '4', '22', 'assets/media/team/full-nicole.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('354', '4', '23', 'assets/media/team/full-shannon.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('355', '4', '20', 'assets/media/team/full-layel.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('511', '30', '233', 'assets/media/news/Pineapple-House.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('446', '4', '205', 'assets/media/team/full-nicole.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('369', '27', '109', '35');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('372', '26', '35', '109');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('434', '1', '47', 'assets/media/heros/Luxury_Residence_Fund.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('435', '1', '50', 'assets/media/heros/FAQ.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('436', '1', '6', 'assets/media/heros/Mission_And_Values.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('430', '1', '202', 'assets/media/heros/Travel_Blog.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('414', '1', '102', 'assets/media/heros/Privacy_Policy.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('415', '1', '101', 'assets/media/heros/Terms_of_Use.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('431', '1', '43', 'assets/media/heros/Five_Star_Service.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('447', '34', '15', 'Costa Rica, Telluride');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('448', '33', '15', '2009');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('449', '35', '15', 'golf, skiing, jogging (reluctantly), and anything that involves outdoors and sunshine');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('450', '34', '16', 'Los Cabos, Florence');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('451', '33', '16', '2010');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('452', '35', '16', 'skiing, tennis, golf, cooking, reading');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('453', '34', '17', 'Anguilla, Florence, Telluride');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('454', '33', '17', '2007');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('455', '35', '17', 'travel, hiking, biking, anything outdoors and active');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('456', '34', '22', 'Hilton Head Island');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('457', '33', '22', '2010');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('458', '35', '22', 'hanging with my daughters, travel, camping, exercise, reading, playing with my dogs, working in my yard, eating at trendy restaurants, drinking wine with friends');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('459', '34', '23', 'Telluride');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('460', '33', '23', '2011');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('461', '35', '23', 'skiing, biking, fly fishing, cooking');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('462', '34', '205', 'Kapalua, New York, Deer Valley, Hilton Head');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('463', '33', '205', '2010');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('464', '35', '205', 'movies, cooking, rock climbing/hiking, playing games with my kids, enjoying micro-brewed beers (but not with the kids)');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('465', '34', '20', 'Punta Cana');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('466', '33', '20', '2010');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('467', '35', '20', 'running, playing with my dog, anything outdoors, being with family and friends as much as I can');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('468', '34', '19', 'Hilton Head');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('469', '33', '19', '2009');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('470', '35', '19', 'reading, playing with my dog, listening to music, going out with friends, gardening');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('471', '34', '24', 'Florence');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('472', '33', '24', '2010');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('473', '35', '24', 'museums, jogging, great restaurants, spending time with family');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('474', '34', '12', 'I love and find beauty in all the properties');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('475', '35', '12', 'travel, wine, food, outdoor obstacle races, RC Helicopter flying, family fun');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('476', '2', '206', 'Co-Founder, Equity Estates');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('477', '3', '206', 'assets/media/team/Adam-Capes.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('479', '34', '206', 'Costa Rica, Los Cabos, Hawaii and Calistoga Ranch');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('480', '35', '206', 'Travel (naturally), reading, wellness, watching great films');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('481', '2', '207', 'Member, Equity Estates Fund I Manager, LLC');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('482', '3', '207', 'assets/media/team/Rob-Vaka.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('508', '33', '207', '2007');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('496', '36', '40', '<p>Ready to discuss the next steps? We invite you to speak to our investor relations team.</p>\r\n<p><a class=\"btn btn-block\" href=\"[[~4]]\">Set up an appointment</a></p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('487', '34', '13', 'Anguilla');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('490', '2', '208', 'Board Member, Equity Estates Fund II Manager, LLC');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('491', '3', '208', 'assets/media/team/rick-covert.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('497', '36', '201', '<p>Request a tour of our private investor-only online portal.</p>\r\n<p><a class=\"btn btn-info btn-block\" href=\"[[~4]]\">Schedule a Tour</a></p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('498', '36', '43', '<p>See what our investors have to say about their Equity Estates experience.</p>\r\n<p><a class=\"btn btn-info btn-block\" href=\"[[~44]]\">View Testimonials</a></p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('499', '36', '44', '<p>Watch this video to see what other investors have to say about Equity Estates.</p>\r\n<p><a href=\"#videoModal\" data-toggle=\"modal\"><img src=\"assets/media/video/poster.jpg\" alt=\"Play Video\" /></a></p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('500', '36', '47', '<p>See what our investors have to say about their investment in Equity Estates.</p>\r\n<p><a href=\"#videoModal\" data-toggle=\"modal\"><img src=\"assets/media/video/poster.jpg\" alt=\"Play Video\" /></a></p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('501', '36', '49', '<p>Accredited investors can request a Private Offering Memorandum from our investor relations team.</p>\r\n<p><a class=\"btn btn-block\" href=\"[[~4]]\">Contact Us</a></p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('502', '36', '48', '<p>Accredited investors can request a Private Offering Memorandum from investor relations.</p>\r\n<p><a class=\"btn btn-block\" href=\"[[~4]]\">Contact Us</a></p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('503', '36', '51', '<p>Request a free copy of our Vacation Investment Guide.  It’s a comprehensive resource that defines and explains the luxury second home alternative market in detail.</p>\r\n<p><a class=\"btn btn-block\" href=\"http://equityestatesfund.com/vacation-guide/signup/\" target=\"_blank\">Download Free<br /> Vacation Investment Guide</a></p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('505', '36', '50', '<p>Around the world in 35 destinations and 60+ luxury homes.</p>\r\n<p><a class=\"btn btn-block\" href=\"[[~4]]\">Schedule Virtual Tour</a></p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('504', '36', '46', '<p>Around the world in 30 destinations and 60+ luxury homes.</p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('506', '36', '2', '<p>See what our investors have to say about their investment in Equity Estates.</p>\r\n<p><a href=\"#videoModal\" data-toggle=\"modal\"><img src=\"assets/media/video/poster.jpg\" alt=\"Play Video\" /></a></p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('507', '36', '6', '<p>Imagine, Wherever You Travel, You’re Home.</p>');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('509', '34', '207', 'Telluride, Hilton Head and Los Cabos');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('510', '35', '207', 'Church, Coaching Football, Travel');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('513', '30', '235', 'assets/media/news/Sherpa-Report-Jan-2009.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('514', '30', '236', 'assets/media/news/Crittenden-Resort-Report-Feb-2009.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('515', '30', '237', 'assets/media/news/Best-Month-on-Record-Feb-2009.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('516', '30', '238', 'assets/media/news/Denver-Life.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('517', '30', '239', 'assets/media/news/Halogen-Guides-Feb-2009.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('518', '30', '240', 'assets/media/news/Real-Estate-Channel-March-2009.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('519', '30', '241', 'assets/media/news/Equity-Estates-adds-two-Trophy-Residences-April-2009.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('520', '30', '242', 'assets/media/news/International-Russian-Luxury-Magazine.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('521', '30', '243', 'assets/media/news/Equity-Estates-Sherpa-Report-June-2009.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('522', '30', '244', 'assets/media/news/Crittenden-Resort-Report-Aug-10.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('523', '30', '245', 'assets/media/news/Home-by-Design.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('524', '30', '246', 'assets/media/news/Unique-Perspectives.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('525', '30', '247', 'assets/media/news/Florence-Italy-Announcement.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('526', '30', '248', 'assets/media/news/Naples-Florida-Property-Announcement.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('527', '30', '249', 'assets/media/news/Robb-Report-December-09.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('528', '30', '250', 'assets/media/news/Equity_Estates-Hideaways-press-release.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('529', '30', '251', 'assets/media/news/EE_FOX_Biz_1.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('530', '30', '252', 'assets/media/news/Homes-Away-From-Home-Oct-2011.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('532', '32', '253', 'http://www.justluxe.com/lifestyle/real-estate/feature-1597537.php');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('535', '30', '255', 'assets/media/news/FinancialTimesHowToSpendItApril2013.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('534', '30', '254', 'assets/media/news/Equity_Estates_Launches_the_Lone_Star_Fund-SherpaReport.pdf');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('536', '32', '259', 'http://globallivingmagazine.com/equity-estates-launches-fund-ii/');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('537', '2', '260', 'Board Member, Equity Estates Fund II Manager, LLC');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('538', '3', '260', 'assets/media/team/chris-statham.jpg');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('539', '34', '260', 'Costa Rica, Los Cabos, Hawaii and Calistoga Ranch');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('540', '35', '260', 'Travel (naturally), reading, wellness, watching great films');
INSERT INTO `modx_site_tmplvar_contentvalues` VALUES ('545', '33', '260', '2013');

-- ----------------------------
-- Table structure for modx_site_tmplvar_templates
-- ----------------------------
CREATE TABLE `modx_site_tmplvar_templates` (
  `tmplvarid` int(10) NOT NULL DEFAULT '0',
  `templateid` int(11) NOT NULL DEFAULT '0',
  `rank` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`tmplvarid`,`templateid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of modx_site_tmplvar_templates
-- ----------------------------
INSERT INTO `modx_site_tmplvar_templates` VALUES ('1', '2', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('3', '4', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('4', '4', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('2', '4', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('1', '3', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('30', '17', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('18', '33', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('18', '2', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('18', '3', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('18', '4', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('18', '6', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('29', '17', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('1', '33', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('1', '19', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('26', '16', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('15', '33', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('15', '2', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('27', '21', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('1', '35', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('1', '36', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('34', '4', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('33', '4', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('35', '4', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('32', '17', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('36', '2', '0');
INSERT INTO `modx_site_tmplvar_templates` VALUES ('36', '33', '0');

-- ----------------------------
