-- Table structure for table `mentorwftrafficrates`
--

CREATE TABLE `mentorwftrafficrates` (
  `eMin` int(10) UNSIGNED NOT NULL,
  `IP` binary(16) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0',
  `hitType` enum('hit','404') NOT NULL DEFAULT 'hit',
  `hits` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mentorwftrafficrates`
--

INSERT INTO `mentorwftrafficrates` (`eMin`, `IP`, `hitType`, `hits`) VALUES
(28557010, 0x00000000000000000000ffff7aa45261, 'hit', 7),
(28557013, 0x00000000000000000000ffff7aa45261, 'hit', 3),
(28557014, 0x00000000000000000000ffff7aa45261, 'hit', 4),
(28557015, 0x00000000000000000000ffff7aa45261, 'hit', 1),
(28557016, 0x00000000000000000000ffff7aa45261, 'hit', 6),
(28557017, 0x00000000000000000000ffff7aa45261, 'hit', 5);

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

--
-- Table structure for table `mentorwfwaffailures`
--

CREATE TABLE `mentorwfwaffailures` (
  `id` int(10) UNSIGNED NOT NULL,
  `throwable` text NOT NULL,
  `rule_id` int(10) UNSIGNED DEFAULT NULL,
  `timestamp` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mentorwoocommerce_api_keys`
--

CREATE TABLE `mentorwoocommerce_api_keys` (
  `key_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `description` varchar(200) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `permissions` varchar(10) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `consumer_key` char(64) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `consumer_secret` char(43) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `nonces` longtext COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `truncated_key` char(7) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `last_access` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

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

--
-- Table structure for table `mentorwoocommerce_attribute_taxonomies`
--

CREATE TABLE `mentorwoocommerce_attribute_taxonomies` (
  `attribute_id` bigint(20) UNSIGNED NOT NULL,
  `attribute_name` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `attribute_label` varchar(200) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `attribute_type` varchar(20) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `attribute_orderby` varchar(20) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `attribute_public` int(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

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

--
-- Table structure for table `mentorwoocommerce_downloadable_product_permissions`
--

CREATE TABLE `mentorwoocommerce_downloadable_product_permissions` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `download_id` varchar(36) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `order_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `order_key` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `user_email` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `downloads_remaining` varchar(9) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `access_granted` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `access_expires` datetime DEFAULT NULL,
  `download_count` bigint(20) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

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

--
-- Table structure for table `mentorwoocommerce_log`
--

CREATE TABLE `mentorwoocommerce_log` (
  `log_id` bigint(20) UNSIGNED NOT NULL,
  `timestamp` datetime NOT NULL,
  `level` smallint(4) NOT NULL,
  `source` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `message` longtext COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `context` longtext COLLATE utf8mb4_unicode_520_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

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

--
-- Table structure for table `mentorwoocommerce_order_itemmeta`
--

CREATE TABLE `mentorwoocommerce_order_itemmeta` (
  `meta_id` bigint(20) UNSIGNED NOT NULL,
  `order_item_id` bigint(20) UNSIGNED NOT NULL,
  `meta_key` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `meta_value` longtext COLLATE utf8mb4_unicode_520_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

--
-- Dumping data for table `mentorwoocommerce_order_itemmeta`
--

INSERT INTO `mentorwoocommerce_order_itemmeta` (`meta_id`, `order_item_id`, `meta_key`, `meta_value`) VALUES
(49, 8, '_product_id', '2225'),
(50, 8, '_variation_id', '0'),
(51, 8, '_qty', '1'),
(52, 8, '_tax_class', ''),
(53, 8, '_line_subtotal', '9.99'),
(54, 8, '_line_subtotal_tax', '0'),
(55, 8, '_line_total', '9.99'),
(56, 8, '_line_tax', '0'),
(57, 8, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(58, 9, '_product_id', '2223'),
(59, 9, '_variation_id', '0'),
(60, 9, '_qty', '2'),
(61, 9, '_tax_class', ''),
(62, 9, '_line_subtotal', '18'),
(63, 9, '_line_subtotal_tax', '0'),
(64, 9, '_line_total', '18'),
(65, 9, '_line_tax', '0'),
(66, 9, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(157, 25, 'method_id', 'free_shipping'),
(158, 25, 'instance_id', '1'),
(159, 25, 'cost', '0.00'),
(160, 25, 'total_tax', '0'),
(161, 25, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(162, 25, 'Items', 'Test Product 2 &times; 1, Test Product 1 &times; 2'),
(163, 26, '_product_id', '2225'),
(164, 26, '_variation_id', '0'),
(165, 26, '_qty', '2'),
(166, 26, '_tax_class', ''),
(167, 26, '_line_subtotal', '19.98'),
(168, 26, '_line_subtotal_tax', '0'),
(169, 26, '_line_total', '19.98'),
(170, 26, '_line_tax', '0'),
(171, 26, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(172, 27, '_product_id', '2223'),
(173, 27, '_variation_id', '0'),
(174, 27, '_qty', '1'),
(175, 27, '_tax_class', ''),
(176, 27, '_line_subtotal', '9'),
(177, 27, '_line_subtotal_tax', '0'),
(178, 27, '_line_total', '9'),
(179, 27, '_line_tax', '0'),
(180, 27, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(187, 29, '_product_id', '2223'),
(188, 29, '_variation_id', '0'),
(189, 29, '_qty', '1'),
(190, 29, '_tax_class', ''),
(191, 29, '_line_subtotal', '9'),
(192, 29, '_line_subtotal_tax', '0'),
(193, 29, '_line_total', '9'),
(194, 29, '_line_tax', '0'),
(195, 29, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(214, 33, 'method_id', 'free_shipping'),
(215, 33, 'instance_id', '1'),
(216, 33, 'cost', '0.00'),
(217, 33, 'total_tax', '0'),
(218, 33, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(219, 33, 'Items', 'Test Product 1 &times; 1'),
(220, 34, '_product_id', '2225'),
(221, 34, '_variation_id', '0'),
(222, 34, '_qty', '1'),
(223, 34, '_tax_class', ''),
(224, 34, '_line_subtotal', '9.99'),
(225, 34, '_line_subtotal_tax', '0'),
(226, 34, '_line_total', '9.99'),
(227, 34, '_line_tax', '0'),
(228, 34, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(241, 37, 'method_id', 'free_shipping'),
(242, 37, 'instance_id', '1'),
(243, 37, 'cost', '0.00'),
(244, 37, 'total_tax', '0'),
(245, 37, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(246, 37, 'Items', 'Test Product 2 &times; 1'),
(265, 41, 'method_id', 'free_shipping'),
(266, 41, 'instance_id', '1'),
(267, 41, 'cost', '0.00'),
(268, 41, 'total_tax', '0'),
(269, 41, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(270, 41, 'Items', 'Test Product 2 &times; 2, Test Product 1 &times; 1'),
(346, 52, '_product_id', '2223'),
(347, 52, '_variation_id', '0'),
(348, 52, '_qty', '2'),
(349, 52, '_tax_class', ''),
(350, 52, '_line_subtotal', '18'),
(351, 52, '_line_subtotal_tax', '0'),
(352, 52, '_line_total', '18'),
(353, 52, '_line_tax', '0'),
(354, 52, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(355, 53, '_product_id', '2225'),
(356, 53, '_variation_id', '0'),
(357, 53, '_qty', '1'),
(358, 53, '_tax_class', ''),
(359, 53, '_line_subtotal', '9.99'),
(360, 53, '_line_subtotal_tax', '0'),
(361, 53, '_line_total', '9.99'),
(362, 53, '_line_tax', '0'),
(363, 53, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(388, 58, 'method_id', 'free_shipping'),
(389, 58, 'instance_id', '1'),
(390, 58, 'cost', '0.00'),
(391, 58, 'total_tax', '0'),
(392, 58, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(393, 58, 'Items', 'Test Product 1 &times; 2, Test Product 2 &times; 1'),
(394, 59, '_product_id', '2225'),
(395, 59, '_variation_id', '0'),
(396, 59, '_qty', '1'),
(397, 59, '_tax_class', ''),
(398, 59, '_line_subtotal', '9.99'),
(399, 59, '_line_subtotal_tax', '0'),
(400, 59, '_line_total', '9.99'),
(401, 59, '_line_tax', '0'),
(402, 59, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(451, 68, 'method_id', 'free_shipping'),
(452, 68, 'instance_id', '1'),
(453, 68, 'cost', '0.00'),
(454, 68, 'total_tax', '0'),
(455, 68, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(456, 68, 'Items', 'Test Product 2 &times; 1'),
(487, 73, '_product_id', '2240'),
(488, 73, '_variation_id', '0'),
(489, 73, '_qty', '1'),
(490, 73, '_tax_class', ''),
(491, 73, '_line_subtotal', '8'),
(492, 73, '_line_subtotal_tax', '0'),
(493, 73, '_line_total', '8'),
(494, 73, '_line_tax', '0'),
(495, 73, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(532, 80, 'method_id', 'free_shipping'),
(533, 80, 'instance_id', '1'),
(534, 80, 'cost', '0.00'),
(535, 80, 'total_tax', '0'),
(536, 80, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(537, 80, 'Items', 'Test Product 3 &times; 1'),
(538, 81, '_product_id', '2225'),
(539, 81, '_variation_id', '0'),
(540, 81, '_qty', '1'),
(541, 81, '_tax_class', ''),
(542, 81, '_line_subtotal', '9.99'),
(543, 81, '_line_subtotal_tax', '0'),
(544, 81, '_line_total', '9.99'),
(545, 81, '_line_tax', '0'),
(546, 81, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(547, 82, '_product_id', '2240'),
(548, 82, '_variation_id', '0'),
(549, 82, '_qty', '1'),
(550, 82, '_tax_class', ''),
(551, 82, '_line_subtotal', '8'),
(552, 82, '_line_subtotal_tax', '0'),
(553, 82, '_line_total', '8'),
(554, 82, '_line_tax', '0'),
(555, 82, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(568, 85, 'method_id', 'free_shipping'),
(569, 85, 'instance_id', '1'),
(570, 85, 'cost', '0.00'),
(571, 85, 'total_tax', '0'),
(572, 85, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(573, 85, 'Items', 'Test Product 2 &times; 1, Test Product 3 &times; 1'),
(574, 86, '_product_id', '2225'),
(575, 86, '_variation_id', '0'),
(576, 86, '_qty', '1'),
(577, 86, '_tax_class', ''),
(578, 86, '_line_subtotal', '9.99'),
(579, 86, '_line_subtotal_tax', '0'),
(580, 86, '_line_total', '9.99'),
(581, 86, '_line_tax', '0'),
(582, 86, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(589, 88, '_product_id', '2225'),
(590, 88, '_variation_id', '0'),
(591, 88, '_qty', '1'),
(592, 88, '_tax_class', ''),
(593, 88, '_line_subtotal', '9.99'),
(594, 88, '_line_subtotal_tax', '0'),
(595, 88, '_line_total', '9.99'),
(596, 88, '_line_tax', '0'),
(597, 88, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(598, 89, 'method_id', 'free_shipping'),
(599, 89, 'instance_id', '1'),
(600, 89, 'cost', '0.00'),
(601, 89, 'total_tax', '0'),
(602, 89, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(603, 89, 'Items', 'Test Product 2 &times; 1'),
(604, 90, 'method_id', 'free_shipping'),
(605, 90, 'instance_id', ''),
(606, 90, 'cost', ''),
(607, 90, 'total_tax', '0'),
(608, 90, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(609, 90, 'Items', 'Test Product 2 &times; 1'),
(610, 91, 'method_id', 'free_shipping'),
(611, 91, 'instance_id', '1'),
(612, 91, 'cost', '0.00'),
(613, 91, 'total_tax', '0'),
(614, 91, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(615, 91, 'Items', 'Test Product 2 &times; 1'),
(616, 92, '_product_id', '2225'),
(617, 92, '_variation_id', '0'),
(618, 92, '_qty', '1'),
(619, 92, '_tax_class', ''),
(620, 92, '_line_subtotal', '9.99'),
(621, 92, '_line_subtotal_tax', '0'),
(622, 92, '_line_total', '9.99'),
(623, 92, '_line_tax', '0'),
(624, 92, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(643, 96, 'method_id', 'free_shipping'),
(644, 96, 'instance_id', '1'),
(645, 96, 'cost', '0.00'),
(646, 96, 'total_tax', '0'),
(647, 96, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(648, 96, 'Items', 'Test Product 2 &times; 1'),
(649, 97, '_product_id', '2252'),
(650, 97, '_variation_id', '0'),
(651, 97, '_qty', '2'),
(652, 97, '_tax_class', ''),
(653, 97, '_line_subtotal', '18'),
(654, 97, '_line_subtotal_tax', '0'),
(655, 97, '_line_total', '18'),
(656, 97, '_line_tax', '0'),
(657, 97, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(670, 100, 'method_id', 'free_shipping'),
(671, 100, 'instance_id', '1'),
(672, 100, 'cost', '0.00'),
(673, 100, 'total_tax', '0'),
(674, 100, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(675, 100, 'Items', 'iMentor Personal Behavioural Profile &times; 2'),
(691, 103, '_product_id', '2252'),
(692, 103, '_variation_id', '0'),
(693, 103, '_qty', '1'),
(694, 103, '_tax_class', ''),
(695, 103, '_line_subtotal', '9'),
(696, 103, '_line_subtotal_tax', '0'),
(697, 103, '_line_total', '9'),
(698, 103, '_line_tax', '0'),
(699, 103, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(736, 110, 'method_id', 'free_shipping'),
(737, 110, 'instance_id', '1'),
(738, 110, 'cost', '0.00'),
(739, 110, 'total_tax', '0'),
(740, 110, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(741, 110, 'Items', 'iMentor Personal Behavioural Profile &times; 1'),
(772, 115, '_product_id', '2252'),
(773, 115, '_variation_id', '0'),
(774, 115, '_qty', '1'),
(775, 115, '_tax_class', ''),
(776, 115, '_line_subtotal', '9'),
(777, 115, '_line_subtotal_tax', '0'),
(778, 115, '_line_total', '9'),
(779, 115, '_line_tax', '0'),
(780, 115, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(823, 123, 'method_id', 'free_shipping'),
(824, 123, 'instance_id', '1'),
(825, 123, 'cost', '0.00'),
(826, 123, 'total_tax', '0'),
(827, 123, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(828, 123, 'Items', 'iMentor Personal Behavioural Profile &times; 1'),
(829, 124, '_product_id', '2252'),
(830, 124, '_variation_id', '0'),
(831, 124, '_qty', '1'),
(832, 124, '_tax_class', ''),
(833, 124, '_line_subtotal', '9'),
(834, 124, '_line_subtotal_tax', '0'),
(835, 124, '_line_total', '9'),
(836, 124, '_line_tax', '0'),
(837, 124, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(856, 128, 'method_id', 'free_shipping'),
(857, 128, 'instance_id', '1'),
(858, 128, 'cost', '0.00'),
(859, 128, 'total_tax', '0'),
(860, 128, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(861, 128, 'Items', 'iMentor Personal Behavioural Profile &times; 1'),
(862, 129, '_product_id', '2264'),
(863, 129, '_variation_id', '0'),
(864, 129, '_qty', '2'),
(865, 129, '_tax_class', ''),
(866, 129, '_line_subtotal', '18'),
(867, 129, '_line_subtotal_tax', '0'),
(868, 129, '_line_total', '18'),
(869, 129, '_line_tax', '0'),
(870, 129, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(901, 135, 'method_id', 'free_shipping'),
(902, 135, 'instance_id', '1'),
(903, 135, 'cost', '0.00'),
(904, 135, 'total_tax', '0'),
(905, 135, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(906, 135, 'Items', 'iMentor™ Personal Leadership Profile &times; 2'),
(907, 136, '_product_id', '2264'),
(908, 136, '_variation_id', '0'),
(909, 136, '_qty', '2'),
(910, 136, '_tax_class', ''),
(911, 136, '_line_subtotal', '18'),
(912, 136, '_line_subtotal_tax', '0'),
(913, 136, '_line_total', '18'),
(914, 136, '_line_tax', '0'),
(915, 136, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(916, 137, '_product_id', '2252'),
(917, 137, '_variation_id', '0'),
(918, 137, '_qty', '1'),
(919, 137, '_tax_class', ''),
(920, 137, '_line_subtotal', '9'),
(921, 137, '_line_subtotal_tax', '0'),
(922, 137, '_line_total', '9'),
(923, 137, '_line_tax', '0'),
(924, 137, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(949, 142, 'method_id', 'free_shipping'),
(950, 142, 'instance_id', '1'),
(951, 142, 'cost', '0.00'),
(952, 142, 'total_tax', '0'),
(953, 142, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(954, 142, 'Items', 'iMentor™ Personal Leadership Profile &times; 2, iMentor Personal Behavioural Profile &times; 1'),
(955, 143, '_product_id', '2252'),
(956, 143, '_variation_id', '0'),
(957, 143, '_qty', '1'),
(958, 143, '_tax_class', ''),
(959, 143, '_line_subtotal', '9'),
(960, 143, '_line_subtotal_tax', '0'),
(961, 143, '_line_total', '9'),
(962, 143, '_line_tax', '0'),
(963, 143, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1006, 151, 'method_id', 'free_shipping'),
(1007, 151, 'instance_id', '1'),
(1008, 151, 'cost', '0.00'),
(1009, 151, 'total_tax', '0'),
(1010, 151, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(1011, 151, 'Items', 'iMentor Personal Behavioural Profile &times; 1'),
(1012, 152, '_product_id', '2264'),
(1013, 152, '_variation_id', '0'),
(1014, 152, '_qty', '1'),
(1015, 152, '_tax_class', ''),
(1016, 152, '_line_subtotal', '9'),
(1017, 152, '_line_subtotal_tax', '0'),
(1018, 152, '_line_total', '9'),
(1019, 152, '_line_tax', '0'),
(1020, 152, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1039, 156, 'method_id', 'free_shipping'),
(1040, 156, 'instance_id', '1'),
(1041, 156, 'cost', '0.00'),
(1042, 156, 'total_tax', '0'),
(1043, 156, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(1044, 156, 'Items', 'iMentor™ Personal Leadership Profile &times; 1'),
(1075, 161, '_product_id', '2252'),
(1076, 161, '_variation_id', '0'),
(1077, 161, '_qty', '1'),
(1078, 161, '_tax_class', ''),
(1079, 161, '_line_subtotal', '9'),
(1080, 161, '_line_subtotal_tax', '0'),
(1081, 161, '_line_total', '9'),
(1082, 161, '_line_tax', '0'),
(1083, 161, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1156, 174, 'method_id', 'free_shipping'),
(1157, 174, 'instance_id', '1'),
(1158, 174, 'cost', '0.00'),
(1159, 174, 'total_tax', '0'),
(1160, 174, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(1161, 174, 'Items', 'iMentor Personal Behavioural Profile &times; 1'),
(1201, 180, '_product_id', '2252'),
(1202, 180, '_variation_id', '0'),
(1203, 180, '_qty', '1'),
(1204, 180, '_tax_class', ''),
(1205, 180, '_line_subtotal', '9'),
(1206, 180, '_line_subtotal_tax', '0'),
(1207, 180, '_line_total', '9'),
(1208, 180, '_line_tax', '0'),
(1209, 180, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1222, 183, 'method_id', 'free_shipping'),
(1223, 183, 'instance_id', '1'),
(1224, 183, 'cost', '0.00'),
(1225, 183, 'total_tax', '0'),
(1226, 183, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(1227, 183, 'Items', 'iMentor Personal Behavioural Profile &times; 1'),
(1522, 223, '_product_id', '2252'),
(1523, 223, '_variation_id', '0'),
(1524, 223, '_qty', '1'),
(1525, 223, '_tax_class', ''),
(1526, 223, '_line_subtotal', '9'),
(1527, 223, '_line_subtotal_tax', '0'),
(1528, 223, '_line_total', '9'),
(1529, 223, '_line_tax', '0'),
(1530, 223, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1531, 224, '_product_id', '2264'),
(1532, 224, '_variation_id', '0'),
(1533, 224, '_qty', '1'),
(1534, 224, '_tax_class', ''),
(1535, 224, '_line_subtotal', '9'),
(1536, 224, '_line_subtotal_tax', '0'),
(1537, 224, '_line_total', '9'),
(1538, 224, '_line_tax', '0'),
(1539, 224, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1570, 230, 'method_id', 'free_shipping'),
(1571, 230, 'instance_id', '1'),
(1572, 230, 'cost', '0.00'),
(1573, 230, 'total_tax', '0'),
(1574, 230, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(1575, 230, 'Items', 'iMentor Personal Behavioural Profile &times; 1, iMentor™ Personal Leadership Profile &times; 1'),
(1576, 231, '_product_id', '2264'),
(1577, 231, '_variation_id', '0'),
(1578, 231, '_qty', '1'),
(1579, 231, '_tax_class', ''),
(1580, 231, '_line_subtotal', '9'),
(1581, 231, '_line_subtotal_tax', '0'),
(1582, 231, '_line_total', '9'),
(1583, 231, '_line_tax', '0'),
(1584, 231, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1603, 235, 'method_id', 'free_shipping'),
(1604, 235, 'instance_id', '1'),
(1605, 235, 'cost', '0.00'),
(1606, 235, 'total_tax', '0'),
(1607, 235, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(1608, 235, 'Items', 'iMentor™ Personal Leadership Profile &times; 1'),
(1609, 236, '_product_id', '2252'),
(1610, 236, '_variation_id', '0'),
(1611, 236, '_qty', '1'),
(1612, 236, '_tax_class', ''),
(1613, 236, '_line_subtotal', '9'),
(1614, 236, '_line_subtotal_tax', '0'),
(1615, 236, '_line_total', '9'),
(1616, 236, '_line_tax', '0'),
(1617, 236, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1630, 239, 'method_id', 'free_shipping'),
(1631, 239, 'instance_id', '1'),
(1632, 239, 'cost', '0.00'),
(1633, 239, 'total_tax', '0'),
(1634, 239, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(1635, 239, 'Items', 'iMentor Personal Behavioural Profile &times; 1'),
(1636, 240, '_product_id', '2264'),
(1637, 240, '_variation_id', '0'),
(1638, 240, '_qty', '1'),
(1639, 240, '_tax_class', ''),
(1640, 240, '_line_subtotal', '9'),
(1641, 240, '_line_subtotal_tax', '0'),
(1642, 240, '_line_total', '9'),
(1643, 240, '_line_tax', '0'),
(1644, 240, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1657, 243, 'method_id', 'free_shipping'),
(1658, 243, 'instance_id', '1'),
(1659, 243, 'cost', '0.00'),
(1660, 243, 'total_tax', '0'),
(1661, 243, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(1662, 243, 'Items', 'iMentor™ Personal Leadership Profile &times; 1'),
(1663, 244, '_product_id', '2264'),
(1664, 244, '_variation_id', '0'),
(1665, 244, '_qty', '1'),
(1666, 244, '_tax_class', ''),
(1667, 244, '_line_subtotal', '9'),
(1668, 244, '_line_subtotal_tax', '0'),
(1669, 244, '_line_total', '9'),
(1670, 244, '_line_tax', '0'),
(1671, 244, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1684, 247, 'method_id', 'free_shipping'),
(1685, 247, 'instance_id', '1'),
(1686, 247, 'cost', '0.00'),
(1687, 247, 'total_tax', '0'),
(1688, 247, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(1689, 247, 'Items', 'iMentor™ Personal Leadership Profile &times; 1'),
(1690, 248, '_product_id', '2252'),
(1691, 248, '_variation_id', '0'),
(1692, 248, '_qty', '1'),
(1693, 248, '_tax_class', ''),
(1694, 248, '_line_subtotal', '9'),
(1695, 248, '_line_subtotal_tax', '0'),
(1696, 248, '_line_total', '9'),
(1697, 248, '_line_tax', '0'),
(1698, 248, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1699, 249, '_product_id', '2264'),
(1700, 249, '_variation_id', '0'),
(1701, 249, '_qty', '1'),
(1702, 249, '_tax_class', ''),
(1703, 249, '_line_subtotal', '9'),
(1704, 249, '_line_subtotal_tax', '0'),
(1705, 249, '_line_total', '9'),
(1706, 249, '_line_tax', '0'),
(1707, 249, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1714, 251, 'method_id', 'free_shipping'),
(1715, 251, 'instance_id', '1'),
(1716, 251, 'cost', '0.00'),
(1717, 251, 'total_tax', '0'),
(1718, 251, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(1719, 251, 'Items', 'iMentor Personal Behavioural Profile &times; 1, iMentor™ Personal Leadership Profile &times; 1'),
(1720, 252, '_product_id', '2252'),
(1721, 252, '_variation_id', '0'),
(1722, 252, '_qty', '1'),
(1723, 252, '_tax_class', ''),
(1724, 252, '_line_subtotal', '9'),
(1725, 252, '_line_subtotal_tax', '0'),
(1726, 252, '_line_total', '9'),
(1727, 252, '_line_tax', '0'),
(1728, 252, '_line_tax_data', 'a:2:{s:5:\"total\";a:0:{}s:8:\"subtotal\";a:0:{}}'),
(1765, 259, 'method_id', 'free_shipping'),
(1766, 259, 'instance_id', '1'),
(1767, 259, 'cost', '0.00'),
(1768, 259, 'total_tax', '0'),
(1769, 259, 'taxes', 'a:1:{s:5:\"total\";a:0:{}}'),
(1770, 259, 'Items', 'iMentor Personal Behavioural Profile &times; 1');

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

--
-- Table structure for table `mentorwoocommerce_order_items`
--

CREATE TABLE `mentorwoocommerce_order_items` (
  `order_item_id` bigint(20) UNSIGNED NOT NULL,
  `order_item_name` text COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `order_item_type` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `order_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

--
-- Dumping data for table `mentorwoocommerce_order_items`
--

INSERT INTO `mentorwoocommerce_order_items` (`order_item_id`, `order_item_name`, `order_item_type`, `order_id`) VALUES
(8, 'Test Product 2', 'line_item', 2229),
(9, 'Test Product 1', 'line_item', 2229),
(25, 'Free shipping', 'shipping', 2229),
(26, 'Test Product 2', 'line_item', 2233),
(27, 'Test Product 1', 'line_item', 2233),
(29, 'Test Product 1', 'line_item', 2234),
(33, 'Free shipping', 'shipping', 2234),
(34, 'Test Product 2', 'line_item', 2235),
(37, 'Free shipping', 'shipping', 2235),
(41, 'Free shipping', 'shipping', 2233),
(52, 'Test Product 1', 'line_item', 2239),
(53, 'Test Product 2', 'line_item', 2239),
(58, 'Free shipping', 'shipping', 2239),
(59, 'Test Product 2', 'line_item', 2241),
(68, 'Free shipping', 'shipping', 2241),
(73, 'Test Product 3', 'line_item', 2244),
(80, 'Free shipping', 'shipping', 2244),
(81, 'Test Product 2', 'line_item', 2246),
(82, 'Test Product 3', 'line_item', 2246),
(85, 'Free shipping', 'shipping', 2246),
(86, 'Test Product 2', 'line_item', 2247),
(88, 'Test Product 2', 'line_item', 2248),
(89, 'Free shipping', 'shipping', 2248),
(90, 'Free shipping', 'shipping', 2247),
(91, 'Free shipping', 'shipping', 2247),
(92, 'Test Product 2', 'line_item', 2249),
(96, 'Free shipping', 'shipping', 2249),
(97, 'iMentor Personal Behavioural Profile', 'line_item', 2255),
(100, 'Free shipping', 'shipping', 2255),
(103, 'iMentor Personal Behavioural Profile', 'line_item', 2257),
(110, 'Free shipping', 'shipping', 2257),
(115, 'iMentor Personal Behavioural Profile', 'line_item', 2266),
(123, 'Free shipping', 'shipping', 2266),
(124, 'iMentor Personal Behavioural Profile', 'line_item', 2267),
(128, 'Free shipping', 'shipping', 2267),
(129, 'iMentor™ Personal Leadership Profile', 'line_item', 2268),
(135, 'Free shipping', 'shipping', 2268),
(136, 'iMentor™ Personal Leadership Profile', 'line_item', 2269),
(137, 'iMentor Personal Behavioural Profile', 'line_item', 2269),
(142, 'Free shipping', 'shipping', 2269),
(143, 'iMentor Personal Behavioural Profile', 'line_item', 2270),
(151, 'Free shipping', 'shipping', 2270),
(152, 'iMentor™ Personal Leadership Profile', 'line_item', 2271),
(156, 'Free shipping', 'shipping', 2271),
(161, 'iMentor Personal Behavioural Profile', 'line_item', 2274),
(174, 'Free shipping', 'shipping', 2274),
(180, 'iMentor Personal Behavioural Profile', 'line_item', 2278),
(183, 'Free shipping', 'shipping', 2278),
(223, 'iMentor Personal Behavioural Profile', 'line_item', 2284),
(224, 'iMentor™ Personal Leadership Profile', 'line_item', 2284),
(230, 'Free shipping', 'shipping', 2284),
(231, 'iMentor™ Personal Leadership Profile', 'line_item', 2286),
(235, 'Free shipping', 'shipping', 2286),
(236, 'iMentor Personal Behavioural Profile', 'line_item', 2288),
(239, 'Free shipping', 'shipping', 2288),
(240, 'iMentor™ Personal Leadership Profile', 'line_item', 2289),
(243, 'Free shipping', 'shipping', 2289),
(244, 'iMentor™ Personal Leadership Profile', 'line_item', 2290),
(247, 'Free shipping', 'shipping', 2290),
(248, 'iMentor Personal Behavioural Profile', 'line_item', 2291),
(249, 'iMentor™ Personal Leadership Profile', 'line_item', 2291),
(251, 'Free shipping', 'shipping', 2291),
(252, 'iMentor Personal Behavioural Profile', 'line_item', 2292),
(259, 'Free shipping', 'shipping', 2292);

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

--
-- Table structure for table `mentorwoocommerce_payment_tokenmeta`
--

CREATE TABLE `mentorwoocommerce_payment_tokenmeta` (
  `meta_id` bigint(20) UNSIGNED NOT NULL,
  `payment_token_id` bigint(20) UNSIGNED NOT NULL,
  `meta_key` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `meta_value` longtext COLLATE utf8mb4_unicode_520_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

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

--
-- Table structure for table `mentorwoocommerce_payment_tokens`
--

CREATE TABLE `mentorwoocommerce_payment_tokens` (
  `token_id` bigint(20) UNSIGNED NOT NULL,
  `gateway_id` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `token` text COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `type` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

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

--
-- Table structure for table `mentorwoocommerce_sessions`
--

CREATE TABLE `mentorwoocommerce_sessions` (
  `session_id` bigint(20) UNSIGNED NOT NULL,
  `session_key` char(32) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `session_value` longtext COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `session_expiry` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

--
-- Dumping data for table `mentorwoocommerce_sessions`
--

INSERT INTO `mentorwoocommerce_sessions` (`session_id`, `session_key`, `session_value`, `session_expiry`) VALUES
(939, 't_fb11b61d4b8e960a0b43aaa8526c89', 'a:1:{s:8:\"customer\";s:971:\"a:27:{s:2:\"id\";s:1:\"1\";s:13:\"date_modified\";s:25:\"2024-04-17T17:02:25+00:00\";s:8:\"postcode\";s:6:\"628215\";s:4:\"city\";s:11:\"Tiruchendur\";s:9:\"address_1\";s:27:\"180 Veeraragavapuram Streat\";s:7:\"address\";s:27:\"180 Veeraragavapuram Streat\";s:9:\"address_2\";s:0:\"\";s:5:\"state\";s:2:\"TN\";s:7:\"country\";s:2:\"IN\";s:17:\"shipping_postcode\";s:6:\"628215\";s:13:\"shipping_city\";s:11:\"Tiruchendur\";s:18:\"shipping_address_1\";s:27:\"180 Veeraragavapuram Streat\";s:16:\"shipping_address\";s:27:\"180 Veeraragavapuram Streat\";s:18:\"shipping_address_2\";s:0:\"\";s:14:\"shipping_state\";s:2:\"TN\";s:16:\"shipping_country\";s:2:\"IN\";s:13:\"is_vat_exempt\";s:0:\"\";s:19:\"calculated_shipping\";s:0:\"\";s:10:\"first_name\";s:10:\"JosephAsir\";s:9:\"last_name\";s:4:\"Raja\";s:7:\"company\";s:0:\"\";s:5:\"phone\";s:11:\"08148770155\";s:5:\"email\";s:22:\"kbgiriprasad@gmail.com\";s:19:\"shipping_first_name\";s:10:\"JosephAsir\";s:18:\"shipping_last_name\";s:4:\"Raja\";s:16:\"shipping_company\";s:0:\"\";s:14:\"shipping_phone\";s:11:\"08148770155\";}\";}', 1713590229),
(943, 't_b42c13f207a74e8b28f7d1f84d15c4', 'a:1:{s:8:\"customer\";s:970:\"a:27:{s:2:\"id\";s:1:\"1\";s:13:\"date_modified\";s:25:\"2024-04-17T17:02:25+00:00\";s:8:\"postcode\";s:6:\"628215\";s:4:\"city\";s:11:\"Tiruchendur\";s:9:\"address_1\";s:27:\"180 Veeraragavapuram Streat\";s:7:\"address\";s:27:\"180 Veeraragavapuram Streat\";s:9:\"address_2\";s:0:\"\";s:5:\"state\";s:2:\"TN\";s:7:\"country\";s:2:\"IN\";s:17:\"shipping_postcode\";s:6:\"628215\";s:13:\"shipping_city\";s:11:\"Tiruchendur\";s:18:\"shipping_address_1\";s:27:\"180 Veeraragavapuram Streat\";s:16:\"shipping_address\";s:27:\"180 Veeraragavapuram Streat\";s:18:\"shipping_address_2\";s:0:\"\";s:14:\"shipping_state\";s:2:\"TN\";s:16:\"shipping_country\";s:2:\"IN\";s:13:\"is_vat_exempt\";s:0:\"\";s:19:\"calculated_shipping\";s:0:\"\";s:10:\"first_name\";s:10:\"JosephAsir\";s:9:\"last_name\";s:4:\"Raja\";s:7:\"company\";s:0:\"\";s:5:\"phone\";s:11:\"08148770155\";s:5:\"email\";s:21:\"josephs@atomlines.com\";s:19:\"shipping_first_name\";s:10:\"JosephAsir\";s:18:\"shipping_last_name\";s:4:\"Raja\";s:16:\"shipping_company\";s:0:\"\";s:14:\"shipping_phone\";s:11:\"08148770155\";}\";}', 1713593504),
(969, 't_ab505939136c489771d34229ff87d7', 'a:1:{s:8:\"customer\";s:832:\"a:27:{s:2:\"id\";s:2:\"19\";s:13:\"date_modified\";s:25:\"2024-04-18T06:16:10+00:00\";s:8:\"postcode\";s:6:\"600099\";s:4:\"city\";s:7:\"Chennai\";s:9:\"address_1\";s:2:\"22\";s:7:\"address\";s:2:\"22\";s:9:\"address_2\";s:8:\"Kolathur\";s:5:\"state\";s:2:\"TN\";s:7:\"country\";s:2:\"IN\";s:17:\"shipping_postcode\";s:6:\"600099\";s:13:\"shipping_city\";s:7:\"Chennai\";s:18:\"shipping_address_1\";s:2:\"22\";s:16:\"shipping_address\";s:2:\"22\";s:18:\"shipping_address_2\";s:8:\"Kolathur\";s:14:\"shipping_state\";s:2:\"TN\";s:16:\"shipping_country\";s:2:\"IN\";s:13:\"is_vat_exempt\";s:0:\"\";s:19:\"calculated_shipping\";s:0:\"\";s:10:\"first_name\";s:4:\"Giri\";s:9:\"last_name\";s:2:\"KB\";s:7:\"company\";s:0:\"\";s:5:\"phone\";s:0:\"\";s:5:\"email\";s:22:\"kbgiriprasad@gmail.com\";s:19:\"shipping_first_name\";s:4:\"Giri\";s:18:\"shipping_last_name\";s:2:\"KB\";s:16:\"shipping_company\";s:0:\"\";s:14:\"shipping_phone\";s:0:\"\";}\";}', 1713593676);

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

--
-- Table structure for table `mentorwoocommerce_shipping_zones`
--

CREATE TABLE `mentorwoocommerce_shipping_zones` (
  `zone_id` bigint(20) UNSIGNED NOT NULL,
  `zone_name` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `zone_order` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

--
-- Dumping data for table `mentorwoocommerce_shipping_zones`
--

INSERT INTO `mentorwoocommerce_shipping_zones` (`zone_id`, `zone_name`, `zone_order`) VALUES
(1, 'India', 0);

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

--
-- Table structure for table `mentorwoocommerce_shipping_zone_locations`
--

CREATE TABLE `mentorwoocommerce_shipping_zone_locations` (
  `location_id` bigint(20) UNSIGNED NOT NULL,
  `zone_id` bigint(20) UNSIGNED NOT NULL,
  `location_code` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `location_type` varchar(40) COLLATE utf8mb4_unicode_520_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

--
-- Dumping data for table `mentorwoocommerce_shipping_zone_locations`
--

INSERT INTO `mentorwoocommerce_shipping_zone_locations` (`location_id`, `zone_id`, `location_code`, `location_type`) VALUES
(1, 1, 'IN', 'country');

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

--
-- Table structure for table `mentorwoocommerce_shipping_zone_methods`
--

CREATE TABLE `mentorwoocommerce_shipping_zone_methods` (
  `zone_id` bigint(20) UNSIGNED NOT NULL,
  `instance_id` bigint(20) UNSIGNED NOT NULL,
  `method_id` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `method_order` bigint(20) UNSIGNED NOT NULL,
  `is_enabled` tinyint(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

--
-- Dumping data for table `mentorwoocommerce_shipping_zone_methods`
--

INSERT INTO `mentorwoocommerce_shipping_zone_methods` (`zone_id`, `instance_id`, `method_id`, `method_order`, `is_enabled`) VALUES
(1, 1, 'free_shipping', 1, 1);

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

--
-- Table structure for table `mentorwoocommerce_tax_rates`
--

CREATE TABLE `mentorwoocommerce_tax_rates` (
  `tax_rate_id` bigint(20) UNSIGNED NOT NULL,
  `tax_rate_country` varchar(2) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `tax_rate_state` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `tax_rate` varchar(8) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `tax_rate_name` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `tax_rate_priority` bigint(20) UNSIGNED NOT NULL,
  `tax_rate_compound` int(1) NOT NULL DEFAULT 0,
  `tax_rate_shipping` int(1) NOT NULL DEFAULT 1,
  `tax_rate_order` bigint(20) UNSIGNED NOT NULL,
  `tax_rate_class` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

--
-- Dumping data for table `mentorwoocommerce_tax_rates`
--

INSERT INTO `mentorwoocommerce_tax_rates` (`tax_rate_id`, `tax_rate_country`, `tax_rate_state`, `tax_rate`, `tax_rate_name`, `tax_rate_priority`, `tax_rate_compound`, `tax_rate_shipping`, `tax_rate_order`, `tax_rate_class`) VALUES
(1, 'IN', 'TN', '18.0000', 'Tax', 1, 0, 1, 0, '');

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

--
-- Table structure for table `mentorwoocommerce_tax_rate_locations`
--

CREATE TABLE `mentorwoocommerce_tax_rate_locations` (
  `location_id` bigint(20) UNSIGNED NOT NULL,
  `location_code` varchar(200) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `tax_rate_id` bigint(20) UNSIGNED NOT NULL,
  `location_type` varchar(40) COLLATE utf8mb4_unicode_520_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

--
-- Dumping data for table `mentorwoocommerce_tax_rate_locations`
--

INSERT INTO `mentorwoocommerce_tax_rate_locations` (`location_id`, `location_code`, `tax_rate_id`, `location_type`) VALUES
(1, '628216', 1, 'postcode');

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

--
-- Table structure for table `mentorwpfm_backup`
--

CREATE TABLE `mentorwpfm_backup` (
  `id` int(11) NOT NULL,
  `backup_name` text COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `backup_date` text COLLATE utf8mb4_unicode_520_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

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

--
-- Table structure for table `mentorwpforms_logs`
--

CREATE TABLE `mentorwpforms_logs` (
  `id` bigint(20) NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `message` longtext COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `types` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `create_at` datetime NOT NULL,
  `form_id` bigint(20) DEFAULT NULL,
  `entry_id` bigint(20) DEFAULT NULL,
  `user_id` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

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

--
-- Table structure for table `mentorwpforms_payments`
--

CREATE TABLE `mentorwpforms_payments` (
  `id` bigint(20) NOT NULL,
  `form_id` bigint(20) NOT NULL,
  `status` varchar(10) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `subtotal_amount` decimal(26,8) NOT NULL DEFAULT 0.00000000,
  `discount_amount` decimal(26,8) NOT NULL DEFAULT 0.00000000,
  `total_amount` decimal(26,8) NOT NULL DEFAULT 0.00000000,
  `currency` varchar(3) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `entry_id` bigint(20) NOT NULL DEFAULT 0,
  `gateway` varchar(20) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `type` varchar(12) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `mode` varchar(4) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `transaction_id` varchar(40) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `customer_id` varchar(40) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `subscription_id` varchar(40) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `subscription_status` varchar(10) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `title` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '',
  `date_created_gmt` datetime NOT NULL,
  `date_updated_gmt` datetime NOT NULL,
  `is_published` tinyint(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

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

--
-- Table structure for table `mentorwpforms_payment_meta`
--

CREATE TABLE `mentorwpforms_payment_meta` (
  `id` bigint(20) NOT NULL,
  `payment_id` bigint(20) NOT NULL,
  `meta_key` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `meta_value` longtext COLLATE utf8mb4_unicode_520_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

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

--
-- Table structure for table `mentorwpforms_tasks_meta`
--

CREATE TABLE `mentorwpforms_tasks_meta` (
  `id` bigint(20) NOT NULL,
  `action` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `data` longtext COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

--
-- Dumping data for table `mentorwpforms_tasks_meta`
--

INSERT INTO `mentorwpforms_tasks_meta` (`id`, `action`, `data`, `date`) VALUES
(1, 'wpforms_process_forms_locator_scan', 'W10=', '2024-03-12 06:43:24');

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

--
-- Table structure for table `mentorwpmailsmtp_debug_events`
--

CREATE TABLE `mentorwpmailsmtp_debug_events` (
  `id` int(10) UNSIGNED NOT NULL,
  `content` text COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `initiator` text COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `event_type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

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

--
-- Table structure for table `mentorwpmailsmtp_tasks_meta`
--

CREATE TABLE `mentorwpmailsmtp_tasks_meta` (
  `id` bigint(20) NOT NULL,
  `action` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `data` longtext COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

--
-- Dumping data for table `mentorwpmailsmtp_tasks_meta`
--

INSERT INTO `mentorwpmailsmtp_tasks_meta` (`id`, `action`, `data`, `date`) VALUES
(1, 'wp_mail_smtp_admin_notifications_update', 'W10=', '2024-03-12 06:44:00');

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

--
-- Table structure for table `mentoryop2_pollmeta`
--

CREATE TABLE `mentoryop2_pollmeta` (
  `meta_id` int(11) NOT NULL,
  `yop_poll_id` int(11) NOT NULL,
  `meta_key` varchar(255) NOT NULL,
  `meta_value` longtext NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mentoryop2_pollmeta`
--

INSERT INTO `mentoryop2_pollmeta` (`meta_id`, `yop_poll_id`, `meta_key`, `meta_value`) VALUES
(5, 5, 'options', 'a:73:{s:15:\"poll_start_date\";s:19:\"2015-08-20 08:13:42\";s:13:\"poll_end_date\";s:19:\"01-01-2038 23:59:59\";s:12:\"view_results\";a:1:{i:0;s:5:\"after\";}s:23:\"view_results_start_date\";s:19:\"1970-01-01 00:00:00\";s:24:\"view_results_permissions\";a:2:{i:0;s:5:\"guest\";i:1;s:10:\"registered\";}s:17:\"view_results_type\";s:11:\"percentages\";s:19:\"answer_result_label\";s:65:\"%POLL-ANSWER-RESULT-PERCENTAGES% - ( %POLL-ANSWER-RESULT-VOTES% )\";s:14:\"template_width\";s:5:\"500px\";s:21:\"widget_template_width\";s:5:\"500px\";s:17:\"view_results_link\";s:2:\"no\";s:22:\"view_back_to_vote_link\";s:2:\"no\";s:16:\"view_total_votes\";s:2:\"no\";s:18:\"view_total_answers\";s:3:\"yes\";s:15:\"vote_permisions\";a:2:{i:0;s:5:\"guest\";i:1;s:10:\"registered\";}s:24:\"vote_permisions_facebook\";s:2:\"no\";s:22:\"vote_permisions_google\";s:2:\"no\";s:25:\"vote_permisions_wordpress\";s:3:\"yes\";s:25:\"vote_permisions_anonymous\";s:3:\"yes\";s:15:\"blocking_voters\";a:1:{i:0;s:10:\"dont-block\";}s:30:\"blocking_voters_interval_value\";s:2:\"24\";s:29:\"blocking_voters_interval_unit\";s:5:\"hours\";s:30:\"limit_number_of_votes_per_user\";s:3:\"yes\";s:24:\"number_of_votes_per_user\";s:1:\"1\";s:25:\"use_default_loading_image\";s:3:\"yes\";s:19:\"redirect_after_vote\";s:2:\"no\";s:22:\"view_poll_archive_link\";s:2:\"no\";s:23:\"auto_generate_poll_page\";s:2:\"no\";s:27:\"has_auto_generate_poll_page\";s:2:\"no\";s:13:\"poll_page_url\";b:0;s:11:\"use_captcha\";s:2:\"no\";s:24:\"send_email_notifications\";s:2:\"no\";s:19:\"allow_other_answers\";s:2:\"no\";s:19:\"other_answers_label\";s:5:\"Other\";s:36:\"add_other_answers_to_default_answers\";s:2:\"no\";s:28:\"display_other_answers_values\";s:2:\"no\";s:22:\"allow_multiple_answers\";s:2:\"no\";s:29:\"allow_multiple_answers_number\";i:3;s:33:\"allow_multiple_answers_min_number\";i:1;s:15:\"display_answers\";s:8:\"vertical\";s:30:\"display_answers_tabulated_cols\";i:2;s:15:\"sorting_results\";s:10:\"as_defined\";s:25:\"sorting_results_direction\";s:3:\"asc\";s:15:\"display_results\";s:8:\"vertical\";s:30:\"display_results_tabulated_cols\";i:2;s:14:\"bar_background\";s:6:\"113146\";s:10:\"bar_height\";s:2:\"10\";s:16:\"bar_border_color\";s:6:\"EDB918\";s:15:\"show_results_in\";s:3:\"bar\";s:16:\"bar_border_width\";s:1:\"2\";s:16:\"bar_border_style\";s:5:\"solid\";s:21:\"sorting_archive_polls\";s:5:\"votes\";s:26:\"sorting_archive_polls_rule\";s:3:\"asc\";s:20:\"show_poll_in_archive\";s:3:\"yes\";s:18:\"poll_archive_order\";i:1;s:41:\"singular_answer_result_votes_number_label\";s:4:\"vote\";s:39:\"plural_answer_result_votes_number_label\";s:5:\"votes\";s:25:\"schedule_reset_poll_stats\";s:2:\"no\";s:24:\"schedule_reset_poll_date\";s:19:\"2015-08-20 08:13:42\";s:35:\"schedule_reset_poll_recurring_value\";s:2:\"30\";s:34:\"schedule_reset_poll_recurring_unit\";s:3:\"day\";s:32:\"use_the_same_template_for_widget\";s:3:\"yes\";s:8:\"template\";s:2:\"15\";s:15:\"widget_template\";s:2:\"15\";s:17:\"vote_button_label\";s:4:\"vote\";s:25:\"vote_facebook_integration\";s:2:\"on\";s:31:\"vote_permisions_wordpress_label\";s:22:\"Vote as Wordpress User\";s:31:\"vote_permisions_anonymous_label\";s:22:\"Vote as Anonymous User\";s:23:\"redirect_after_vote_url\";s:0:\"\";s:29:\"email_notifications_from_name\";s:8:\"Yop Poll\";s:30:\"email_notifications_from_email\";s:20:\"yop-poll@afterdot.in\";s:30:\"email_notifications_recipients\";s:0:\"\";s:27:\"email_notifications_subject\";s:17:\"New Yop Poll Vote\";s:24:\"email_notifications_body\";s:1311:\"<p>A new vote was registered on %VOTE_DATE% for %POLL_NAME%</p>\r\n\r\n                                                            <p>Vote Details:</p>\r\n\r\n                                                            [QUESTION]\r\n\r\n                                                            <p><b>Question:</b> %QUESTION_TEXT%</p>\r\n\r\n                                                            <p><b>Answers:</b> <br />\r\n\r\n                                                            [ANSWERS]\r\n\r\n                                                            %ANSWER_VALUE%\r\n\r\n                                                            [/ANSWERS]\r\n\r\n                                                            </p>\r\n\r\n                                                            <p><b>Custom Fields:</b> <br />\r\n\r\n                                                            [CUSTOM_FIELDS]\r\n\r\n                                                            %CUSTOM_FIELD_NAME% - %CUSTOM_FIELD_VALUE%\r\n\r\n                                                            [/CUSTOM_FIELDS]\r\n\r\n                                                            </p>\r\n\r\n                                                            [/QUESTION]\r\n\r\n                                                            <p><b>Vote ID:</b> <br />%VOTE_ID%</p>\";}');

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

--
-- Table structure for table `mentoryop2_polls`
--

CREATE TABLE `mentoryop2_polls` (
  `ID` int(11) NOT NULL,
  `poll_title` text NOT NULL,
  `poll_name` varchar(255) NOT NULL,
  `poll_author` bigint(20) NOT NULL DEFAULT 0,
  `poll_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `poll_status` varchar(20) NOT NULL,
  `poll_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `poll_type` varchar(20) NOT NULL,
  `poll_start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `poll_end_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `poll_total_votes` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mentoryop2_polls`
--

INSERT INTO `mentoryop2_polls` (`ID`, `poll_title`, `poll_name`, `poll_author`, `poll_date`, `poll_status`, `poll_modified`, `poll_type`, `poll_start_date`, `poll_end_date`, `poll_total_votes`) VALUES
(5, '', '', 1, '2015-08-20 08:37:43', 'active', '2015-08-20 11:31:20', 'poll', '2015-08-20 08:13:42', '2038-01-01 23:59:59', 3);

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

--
-- Table structure for table `mentoryop2_poll_answermeta`
--

CREATE TABLE `mentoryop2_poll_answermeta` (
  `meta_id` int(11) NOT NULL,
  `yop_poll_answer_id` int(11) NOT NULL,
  `meta_key` varchar(255) NOT NULL,
  `meta_value` longtext NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mentoryop2_poll_answermeta`
--

INSERT INTO `mentoryop2_poll_answermeta` (`meta_id`, `yop_poll_answer_id`, `meta_key`, `meta_value`) VALUES
(10, 10, 'options', 'a:93:{s:19:\"user_interface_type\";s:8:\"beginner\";s:17:\"is_default_answer\";s:2:\"no\";s:15:\"poll_start_date\";s:19:\"2015-08-20 08:13:42\";s:13:\"poll_end_date\";s:19:\"01-01-2038 23:59:59\";s:12:\"view_results\";a:1:{i:0;s:5:\"after\";}s:23:\"view_results_start_date\";s:0:\"\";s:24:\"view_results_permissions\";a:2:{i:0;s:5:\"guest\";i:1;s:10:\"registered\";}s:17:\"view_results_type\";s:28:\"votes-number-and-percentages\";s:19:\"answer_result_label\";s:65:\"%POLL-ANSWER-RESULT-PERCENTAGES% - ( %POLL-ANSWER-RESULT-VOTES% )\";s:17:\"vote_button_label\";s:4:\"vote\";s:14:\"template_width\";s:5:\"200px\";s:21:\"widget_template_width\";s:5:\"200px\";s:17:\"view_results_link\";s:2:\"no\";s:23:\"view_results_link_label\";s:12:\"View Results\";s:22:\"view_back_to_vote_link\";s:2:\"no\";s:28:\"view_back_to_vote_link_label\";s:12:\"Back to vote\";s:16:\"view_total_votes\";s:2:\"no\";s:22:\"view_total_votes_label\";s:36:\"Poll total votes: %POLL-TOTAL-VOTES%\";s:18:\"view_total_answers\";s:2:\"no\";s:24:\"view_total_answers_label\";s:40:\"Poll total answers: %POLL-TOTAL-ANSWERS%\";s:18:\"message_after_vote\";s:21:\"Thank you for voting!\";s:15:\"vote_permisions\";a:2:{i:0;s:5:\"guest\";i:1;s:10:\"registered\";}s:25:\"vote_permisions_wordpress\";s:3:\"yes\";s:31:\"vote_permisions_wordpress_label\";s:22:\"Vote as Wordpress User\";s:25:\"vote_permisions_anonymous\";s:3:\"yes\";s:31:\"vote_permisions_anonymous_label\";s:22:\"Vote as Anonymous User\";s:24:\"vote_permisions_facebook\";s:2:\"no\";s:30:\"vote_permisions_facebook_label\";s:21:\"Vote as Facebook User\";s:25:\"facebook_share_after_vote\";s:2:\"no\";s:26:\"facebook_share_description\";s:38:\"Just casted an YOP Poll vote on mentor\";s:29:\"facebook_show_comments_widget\";s:2:\"no\";s:22:\"vote_permisions_google\";s:2:\"no\";s:28:\"vote_permisions_google_label\";s:15:\"Vote as G+ User\";s:24:\"show_google_share_button\";s:2:\"no\";s:15:\"blocking_voters\";a:1:{i:0;s:10:\"dont-block\";}s:30:\"blocking_voters_interval_value\";i:24;s:29:\"blocking_voters_interval_unit\";s:5:\"hours\";s:30:\"limit_number_of_votes_per_user\";s:3:\"yes\";s:24:\"number_of_votes_per_user\";i:3;s:20:\"percentages_decimals\";i:2;s:25:\"use_default_loading_image\";s:3:\"yes\";s:17:\"loading_image_url\";s:0:\"\";s:19:\"redirect_after_vote\";s:2:\"no\";s:23:\"redirect_after_vote_url\";s:0:\"\";s:11:\"date_format\";s:2:\"UE\";s:22:\"view_poll_archive_link\";s:2:\"no\";s:23:\"auto_generate_poll_page\";s:2:\"no\";s:27:\"has_auto_generate_poll_page\";s:2:\"no\";s:11:\"use_captcha\";s:2:\"no\";s:24:\"send_email_notifications\";s:3:\"yes\";s:19:\"allow_other_answers\";s:2:\"no\";s:19:\"other_answers_label\";s:5:\"Other\";s:23:\"is_default_other_answer\";s:2:\"no\";s:36:\"add_other_answers_to_default_answers\";s:2:\"no\";s:28:\"display_other_answers_values\";s:2:\"no\";s:22:\"allow_multiple_answers\";s:2:\"no\";s:29:\"allow_multiple_answers_number\";i:3;s:33:\"allow_multiple_answers_min_number\";i:1;s:15:\"display_answers\";s:8:\"vertical\";s:30:\"display_answers_tabulated_cols\";i:2;s:15:\"sorting_results\";s:10:\"as_defined\";s:25:\"sorting_results_direction\";s:3:\"asc\";s:41:\"singular_answer_result_votes_number_label\";s:4:\"vote\";s:39:\"plural_answer_result_votes_number_label\";s:5:\"votes\";s:15:\"display_results\";s:8:\"vertical\";s:30:\"display_results_tabulated_cols\";i:2;s:14:\"bar_background\";s:6:\"FBD55E\";s:10:\"bar_height\";i:10;s:16:\"bar_border_color\";s:6:\"EDB918\";s:15:\"show_results_in\";s:3:\"bar\";s:16:\"bar_border_width\";i:2;s:16:\"bar_border_style\";s:5:\"solid\";s:21:\"sorting_archive_polls\";s:5:\"votes\";s:26:\"sorting_archive_polls_rule\";s:3:\"asc\";s:11:\"archive_url\";s:48:\"http://www.mentor.in/index.php/yop-poll-archive/\";s:18:\"archive_link_label\";s:7:\"Archive\";s:20:\"show_poll_in_archive\";s:3:\"yes\";s:18:\"poll_archive_order\";i:1;s:22:\"archive_polls_per_page\";i:5;s:29:\"email_notifications_from_name\";s:8:\"Yop Poll\";s:30:\"email_notifications_from_email\";s:20:\"yop-poll@afterdot.in\";s:30:\"email_notifications_recipients\";s:0:\"\";s:27:\"email_notifications_subject\";s:17:\"New Yop Poll Vote\";s:24:\"email_notifications_body\";s:1311:\"<p>A new vote was registered on %VOTE_DATE% for %POLL_NAME%</p>\r\n\r\n                                                            <p>Vote Details:</p>\r\n\r\n                                                            [QUESTION]\r\n\r\n                                                            <p><b>Question:</b> %QUESTION_TEXT%</p>\r\n\r\n                                                            <p><b>Answers:</b> <br />\r\n\r\n                                                            [ANSWERS]\r\n\r\n                                                            %ANSWER_VALUE%\r\n\r\n                                                            [/ANSWERS]\r\n\r\n                                                            </p>\r\n\r\n                                                            <p><b>Custom Fields:</b> <br />\r\n\r\n                                                            [CUSTOM_FIELDS]\r\n\r\n                                                            %CUSTOM_FIELD_NAME% - %CUSTOM_FIELD_VALUE%\r\n\r\n                                                            [/CUSTOM_FIELDS]\r\n\r\n                                                            </p>\r\n\r\n                                                            [/QUESTION]\r\n\r\n                                                            <p><b>Vote ID:</b> <br />%VOTE_ID%</p>\";s:25:\"schedule_reset_poll_stats\";s:2:\"no\";s:24:\"schedule_reset_poll_date\";s:19:\"2015-08-20 08:13:42\";s:35:\"schedule_reset_poll_recurring_value\";s:2:\"30\";s:34:\"schedule_reset_poll_recurring_unit\";s:3:\"day\";s:15:\"start_scheduler\";s:3:\"yes\";s:32:\"use_the_same_template_for_widget\";s:3:\"yes\";s:18:\"google_integration\";s:2:\"no\";s:20:\"facebook_integration\";s:2:\"no\";s:24:\"yop_poll_archive_page_id\";i:101;}'),
(9, 9, 'options', 'a:93:{s:19:\"user_interface_type\";s:8:\"beginner\";s:17:\"is_default_answer\";s:2:\"no\";s:15:\"poll_start_date\";s:19:\"2015-08-20 08:13:42\";s:13:\"poll_end_date\";s:19:\"01-01-2038 23:59:59\";s:12:\"view_results\";a:1:{i:0;s:5:\"after\";}s:23:\"view_results_start_date\";s:0:\"\";s:24:\"view_results_permissions\";a:2:{i:0;s:5:\"guest\";i:1;s:10:\"registered\";}s:17:\"view_results_type\";s:28:\"votes-number-and-percentages\";s:19:\"answer_result_label\";s:65:\"%POLL-ANSWER-RESULT-PERCENTAGES% - ( %POLL-ANSWER-RESULT-VOTES% )\";s:17:\"vote_button_label\";s:4:\"vote\";s:14:\"template_width\";s:5:\"200px\";s:21:\"widget_template_width\";s:5:\"200px\";s:17:\"view_results_link\";s:2:\"no\";s:23:\"view_results_link_label\";s:12:\"View Results\";s:22:\"view_back_to_vote_link\";s:2:\"no\";s:28:\"view_back_to_vote_link_label\";s:12:\"Back to vote\";s:16:\"view_total_votes\";s:2:\"no\";s:22:\"view_total_votes_label\";s:36:\"Poll total votes: %POLL-TOTAL-VOTES%\";s:18:\"view_total_answers\";s:2:\"no\";s:24:\"view_total_answers_label\";s:40:\"Poll total answers: %POLL-TOTAL-ANSWERS%\";s:18:\"message_after_vote\";s:21:\"Thank you for voting!\";s:15:\"vote_permisions\";a:2:{i:0;s:5:\"guest\";i:1;s:10:\"registered\";}s:25:\"vote_permisions_wordpress\";s:3:\"yes\";s:31:\"vote_permisions_wordpress_label\";s:22:\"Vote as Wordpress User\";s:25:\"vote_permisions_anonymous\";s:3:\"yes\";s:31:\"vote_permisions_anonymous_label\";s:22:\"Vote as Anonymous User\";s:24:\"vote_permisions_facebook\";s:2:\"no\";s:30:\"vote_permisions_facebook_label\";s:21:\"Vote as Facebook User\";s:25:\"facebook_share_after_vote\";s:2:\"no\";s:26:\"facebook_share_description\";s:38:\"Just casted an YOP Poll vote on mentor\";s:29:\"facebook_show_comments_widget\";s:2:\"no\";s:22:\"vote_permisions_google\";s:2:\"no\";s:28:\"vote_permisions_google_label\";s:15:\"Vote as G+ User\";s:24:\"show_google_share_button\";s:2:\"no\";s:15:\"blocking_voters\";a:1:{i:0;s:10:\"dont-block\";}s:30:\"blocking_voters_interval_value\";i:24;s:29:\"blocking_voters_interval_unit\";s:5:\"hours\";s:30:\"limit_number_of_votes_per_user\";s:3:\"yes\";s:24:\"number_of_votes_per_user\";i:3;s:20:\"percentages_decimals\";i:2;s:25:\"use_default_loading_image\";s:3:\"yes\";s:17:\"loading_image_url\";s:0:\"\";s:19:\"redirect_after_vote\";s:2:\"no\";s:23:\"redirect_after_vote_url\";s:0:\"\";s:11:\"date_format\";s:2:\"UE\";s:22:\"view_poll_archive_link\";s:2:\"no\";s:23:\"auto_generate_poll_page\";s:2:\"no\";s:27:\"has_auto_generate_poll_page\";s:2:\"no\";s:11:\"use_captcha\";s:2:\"no\";s:24:\"send_email_notifications\";s:3:\"yes\";s:19:\"allow_other_answers\";s:2:\"no\";s:19:\"other_answers_label\";s:5:\"Other\";s:23:\"is_default_other_answer\";s:2:\"no\";s:36:\"add_other_answers_to_default_answers\";s:2:\"no\";s:28:\"display_other_answers_values\";s:2:\"no\";s:22:\"allow_multiple_answers\";s:2:\"no\";s:29:\"allow_multiple_answers_number\";i:3;s:33:\"allow_multiple_answers_min_number\";i:1;s:15:\"display_answers\";s:8:\"vertical\";s:30:\"display_answers_tabulated_cols\";i:2;s:15:\"sorting_results\";s:10:\"as_defined\";s:25:\"sorting_results_direction\";s:3:\"asc\";s:41:\"singular_answer_result_votes_number_label\";s:4:\"vote\";s:39:\"plural_answer_result_votes_number_label\";s:5:\"votes\";s:15:\"display_results\";s:8:\"vertical\";s:30:\"display_results_tabulated_cols\";i:2;s:14:\"bar_background\";s:6:\"FBD55E\";s:10:\"bar_height\";i:10;s:16:\"bar_border_color\";s:6:\"EDB918\";s:15:\"show_results_in\";s:3:\"bar\";s:16:\"bar_border_width\";i:2;s:16:\"bar_border_style\";s:5:\"solid\";s:21:\"sorting_archive_polls\";s:5:\"votes\";s:26:\"sorting_archive_polls_rule\";s:3:\"asc\";s:11:\"archive_url\";s:48:\"http://www.mentor.in/index.php/yop-poll-archive/\";s:18:\"archive_link_label\";s:7:\"Archive\";s:20:\"show_poll_in_archive\";s:3:\"yes\";s:18:\"poll_archive_order\";i:1;s:22:\"archive_polls_per_page\";i:5;s:29:\"email_notifications_from_name\";s:8:\"Yop Poll\";s:30:\"email_notifications_from_email\";s:20:\"yop-poll@afterdot.in\";s:30:\"email_notifications_recipients\";s:0:\"\";s:27:\"email_notifications_subject\";s:17:\"New Yop Poll Vote\";s:24:\"email_notifications_body\";s:1311:\"<p>A new vote was registered on %VOTE_DATE% for %POLL_NAME%</p>\r\n\r\n                                                            <p>Vote Details:</p>\r\n\r\n                                                            [QUESTION]\r\n\r\n                                                            <p><b>Question:</b> %QUESTION_TEXT%</p>\r\n\r\n                                                            <p><b>Answers:</b> <br />\r\n\r\n                                                            [ANSWERS]\r\n\r\n                                                            %ANSWER_VALUE%\r\n\r\n                                                            [/ANSWERS]\r\n\r\n                                                            </p>\r\n\r\n                                                            <p><b>Custom Fields:</b> <br />\r\n\r\n                                                            [CUSTOM_FIELDS]\r\n\r\n                                                            %CUSTOM_FIELD_NAME% - %CUSTOM_FIELD_VALUE%\r\n\r\n                                                            [/CUSTOM_FIELDS]\r\n\r\n                                                            </p>\r\n\r\n                                                            [/QUESTION]\r\n\r\n                                                            <p><b>Vote ID:</b> <br />%VOTE_ID%</p>\";s:25:\"schedule_reset_poll_stats\";s:2:\"no\";s:24:\"schedule_reset_poll_date\";s:19:\"2015-08-20 08:13:42\";s:35:\"schedule_reset_poll_recurring_value\";s:2:\"30\";s:34:\"schedule_reset_poll_recurring_unit\";s:3:\"day\";s:15:\"start_scheduler\";s:3:\"yes\";s:32:\"use_the_same_template_for_widget\";s:3:\"yes\";s:18:\"google_integration\";s:2:\"no\";s:20:\"facebook_integration\";s:2:\"no\";s:24:\"yop_poll_archive_page_id\";i:101;}');

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

--
-- Table structure for table `mentoryop2_poll_answers`
--

CREATE TABLE `mentoryop2_poll_answers` (
  `ID` int(11) NOT NULL,
  `poll_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `answer` text NOT NULL,
  `description` varchar(255) DEFAULT '',
  `type` varchar(255) NOT NULL DEFAULT 'default',
  `answer_author` bigint(20) NOT NULL DEFAULT 0,
  `answer_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `answer_status` varchar(20) NOT NULL,
  `answer_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `question_order` int(11) NOT NULL DEFAULT 0,
  `votes` int(4) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mentoryop2_poll_answers`
--

INSERT INTO `mentoryop2_poll_answers` (`ID`, `poll_id`, `question_id`, `answer`, `description`, `type`, `answer_author`, `answer_date`, `answer_status`, `answer_modified`, `question_order`, `votes`) VALUES
(10, 5, 5, 'No', '', 'text', 1, '2015-08-20 08:37:43', 'active', '2015-08-20 11:31:20', 2, 2),
(9, 5, 5, 'Yes', '', 'text', 1, '2015-08-20 08:37:43', 'active', '2015-08-20 11:31:20', 1, 1);

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

--
-- Table structure for table `mentoryop2_poll_bans`
--

CREATE TABLE `mentoryop2_poll_bans` (
  `id` int(11) NOT NULL,
  `poll_id` int(11) NOT NULL,
  `type` varchar(255) NOT NULL,
  `value` varchar(255) NOT NULL,
  `period` int(11) NOT NULL,
  `unit` enum('hours','days','weeks','months') DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mentoryop2_poll_custom_fields`
--

CREATE TABLE `mentoryop2_poll_custom_fields` (
  `ID` int(11) NOT NULL,
  `poll_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `custom_field` varchar(255) NOT NULL,
  `required` enum('yes','no') NOT NULL DEFAULT 'no',
  `status` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mentoryop2_poll_logs`
--

CREATE TABLE `mentoryop2_poll_logs` (
  `ID` int(11) NOT NULL,
  `poll_id` int(11) NOT NULL,
  `vote_id` varchar(255) NOT NULL,
  `ip` varchar(100) NOT NULL,
  `user_id` varchar(25) DEFAULT NULL,
  `user_type` enum('facebook','wordpress','anonymous','google','default') NOT NULL DEFAULT 'default',
  `tr_id` varchar(255) DEFAULT NULL,
  `vote_details` longtext DEFAULT NULL,
  `user_details` longtext DEFAULT NULL,
  `vote_date` datetime NOT NULL,
  `message` text DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mentoryop2_poll_logs`
--

INSERT INTO `mentoryop2_poll_logs` (`ID`, `poll_id`, `vote_id`, `ip`, `user_id`, `user_type`, `tr_id`, `vote_details`, `user_details`, `vote_date`, `message`) VALUES
(1, 5, 'vote_id_55d59232cc414', '182.74.207.18', '0', 'anonymous', '', '{\"q-5\":{\"question\":\"Was the website useful?\",\"id\":5,\"a\":[10],\"answers\":[\"No\"],\"cf\":[]}}', '\"\"', '2015-08-20 08:39:16', 'Success'),
(2, 5, 'vote_id_55d59250c9854', '182.74.207.18', '0', 'anonymous', '', '', '\"\"', '2015-08-20 08:39:44', 'Run out of votes'),
(3, 5, 'vote_id_55d5afa2a6ea0', '182.74.207.18', '0', 'anonymous', '', '', '\"\"', '2015-08-20 10:44:50', 'Run out of votes'),
(4, 5, 'vote_id_55d5afd141972', '182.74.207.18', '0', 'anonymous', '', '{\"q-5\":{\"question\":\"Was the website useful?\",\"id\":5,\"a\":[9],\"answers\":[\"Yes\"],\"cf\":[]}}', '\"\"', '2015-08-20 10:45:38', 'Success'),
(5, 5, 'vote_id_55d5b041d6dfb', '182.74.207.18', '0', 'anonymous', '', '{\"q-5\":{\"question\":\"Was the website useful?\",\"id\":5,\"a\":[10],\"answers\":[\"No\"],\"cf\":[]}}', '\"\"', '2015-08-20 10:47:30', 'Success'),
(6, 5, 'vote_id_55d5b5081e207', '182.74.207.18', '0', 'anonymous', '', '', '\"\"', '2015-08-20 11:07:52', 'Run out of votes'),
(7, 5, 'vote_id_55d5b50f704fc', '182.74.207.18', '0', 'anonymous', '', '', '\"\"', '2015-08-20 11:07:59', 'Run out of votes');

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

--
-- Table structure for table `mentoryop2_poll_questionmeta`
--

CREATE TABLE `mentoryop2_poll_questionmeta` (
  `meta_id` int(11) NOT NULL,
  `yop_poll_question_id` int(11) NOT NULL,
  `meta_key` varchar(255) NOT NULL,
  `meta_value` longtext NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mentoryop2_poll_questionmeta`
--

INSERT INTO `mentoryop2_poll_questionmeta` (`meta_id`, `yop_poll_question_id`, `meta_key`, `meta_value`) VALUES
(5, 5, 'options', 'a:94:{s:19:\"user_interface_type\";s:8:\"beginner\";s:17:\"is_default_answer\";s:2:\"no\";s:15:\"poll_start_date\";s:19:\"2015-08-20 08:13:42\";s:13:\"poll_end_date\";s:19:\"01-01-2038 23:59:59\";s:12:\"view_results\";a:1:{i:0;s:5:\"after\";}s:23:\"view_results_start_date\";s:0:\"\";s:24:\"view_results_permissions\";a:2:{i:0;s:5:\"guest\";i:1;s:10:\"registered\";}s:17:\"view_results_type\";s:28:\"votes-number-and-percentages\";s:19:\"answer_result_label\";s:65:\"%POLL-ANSWER-RESULT-PERCENTAGES% - ( %POLL-ANSWER-RESULT-VOTES% )\";s:17:\"vote_button_label\";s:4:\"vote\";s:14:\"template_width\";s:5:\"200px\";s:21:\"widget_template_width\";s:5:\"200px\";s:17:\"view_results_link\";s:2:\"no\";s:23:\"view_results_link_label\";s:12:\"View Results\";s:22:\"view_back_to_vote_link\";s:2:\"no\";s:28:\"view_back_to_vote_link_label\";s:12:\"Back to vote\";s:16:\"view_total_votes\";s:2:\"no\";s:22:\"view_total_votes_label\";s:36:\"Poll total votes: %POLL-TOTAL-VOTES%\";s:18:\"view_total_answers\";s:2:\"no\";s:24:\"view_total_answers_label\";s:40:\"Poll total answers: %POLL-TOTAL-ANSWERS%\";s:18:\"message_after_vote\";s:21:\"Thank you for voting!\";s:15:\"vote_permisions\";a:2:{i:0;s:5:\"guest\";i:1;s:10:\"registered\";}s:25:\"vote_permisions_wordpress\";s:3:\"yes\";s:31:\"vote_permisions_wordpress_label\";s:22:\"Vote as Wordpress User\";s:25:\"vote_permisions_anonymous\";s:3:\"yes\";s:31:\"vote_permisions_anonymous_label\";s:22:\"Vote as Anonymous User\";s:24:\"vote_permisions_facebook\";s:2:\"no\";s:30:\"vote_permisions_facebook_label\";s:21:\"Vote as Facebook User\";s:25:\"facebook_share_after_vote\";s:2:\"no\";s:26:\"facebook_share_description\";s:38:\"Just casted an YOP Poll vote on mentor\";s:29:\"facebook_show_comments_widget\";s:2:\"no\";s:22:\"vote_permisions_google\";s:2:\"no\";s:28:\"vote_permisions_google_label\";s:15:\"Vote as G+ User\";s:24:\"show_google_share_button\";s:2:\"no\";s:15:\"blocking_voters\";a:1:{i:0;s:10:\"dont-block\";}s:30:\"blocking_voters_interval_value\";i:24;s:29:\"blocking_voters_interval_unit\";s:5:\"hours\";s:30:\"limit_number_of_votes_per_user\";s:3:\"yes\";s:24:\"number_of_votes_per_user\";i:3;s:20:\"percentages_decimals\";i:2;s:25:\"use_default_loading_image\";s:3:\"yes\";s:17:\"loading_image_url\";s:0:\"\";s:19:\"redirect_after_vote\";s:2:\"no\";s:23:\"redirect_after_vote_url\";s:0:\"\";s:11:\"date_format\";s:2:\"UE\";s:22:\"view_poll_archive_link\";s:2:\"no\";s:23:\"auto_generate_poll_page\";s:2:\"no\";s:27:\"has_auto_generate_poll_page\";s:2:\"no\";s:11:\"use_captcha\";s:2:\"no\";s:24:\"send_email_notifications\";s:3:\"yes\";s:19:\"allow_other_answers\";s:2:\"no\";s:19:\"other_answers_label\";s:5:\"Other\";s:23:\"is_default_other_answer\";s:2:\"no\";s:36:\"add_other_answers_to_default_answers\";s:2:\"no\";s:28:\"display_other_answers_values\";s:2:\"no\";s:22:\"allow_multiple_answers\";s:2:\"no\";s:29:\"allow_multiple_answers_number\";s:1:\"3\";s:33:\"allow_multiple_answers_min_number\";s:1:\"1\";s:15:\"display_answers\";s:8:\"vertical\";s:30:\"display_answers_tabulated_cols\";s:1:\"2\";s:15:\"sorting_results\";s:10:\"as_defined\";s:25:\"sorting_results_direction\";s:3:\"asc\";s:41:\"singular_answer_result_votes_number_label\";s:4:\"vote\";s:39:\"plural_answer_result_votes_number_label\";s:5:\"votes\";s:15:\"display_results\";s:8:\"vertical\";s:30:\"display_results_tabulated_cols\";s:1:\"2\";s:14:\"bar_background\";s:6:\"FBD55E\";s:10:\"bar_height\";i:10;s:16:\"bar_border_color\";s:6:\"EDB918\";s:15:\"show_results_in\";s:3:\"bar\";s:16:\"bar_border_width\";i:2;s:16:\"bar_border_style\";s:5:\"solid\";s:21:\"sorting_archive_polls\";s:5:\"votes\";s:26:\"sorting_archive_polls_rule\";s:3:\"asc\";s:11:\"archive_url\";s:48:\"http://www.mentor.in/index.php/yop-poll-archive/\";s:18:\"archive_link_label\";s:7:\"Archive\";s:20:\"show_poll_in_archive\";s:3:\"yes\";s:18:\"poll_archive_order\";i:1;s:22:\"archive_polls_per_page\";i:5;s:29:\"email_notifications_from_name\";s:8:\"Yop Poll\";s:30:\"email_notifications_from_email\";s:20:\"yop-poll@afterdot.in\";s:30:\"email_notifications_recipients\";s:0:\"\";s:27:\"email_notifications_subject\";s:17:\"New Yop Poll Vote\";s:24:\"email_notifications_body\";s:1311:\"<p>A new vote was registered on %VOTE_DATE% for %POLL_NAME%</p>\r\n\r\n                                                            <p>Vote Details:</p>\r\n\r\n                                                            [QUESTION]\r\n\r\n                                                            <p><b>Question:</b> %QUESTION_TEXT%</p>\r\n\r\n                                                            <p><b>Answers:</b> <br />\r\n\r\n                                                            [ANSWERS]\r\n\r\n                                                            %ANSWER_VALUE%\r\n\r\n                                                            [/ANSWERS]\r\n\r\n                                                            </p>\r\n\r\n                                                            <p><b>Custom Fields:</b> <br />\r\n\r\n                                                            [CUSTOM_FIELDS]\r\n\r\n                                                            %CUSTOM_FIELD_NAME% - %CUSTOM_FIELD_VALUE%\r\n\r\n                                                            [/CUSTOM_FIELDS]\r\n\r\n                                                            </p>\r\n\r\n                                                            [/QUESTION]\r\n\r\n                                                            <p><b>Vote ID:</b> <br />%VOTE_ID%</p>\";s:25:\"schedule_reset_poll_stats\";s:2:\"no\";s:24:\"schedule_reset_poll_date\";s:19:\"2015-08-20 08:13:42\";s:35:\"schedule_reset_poll_recurring_value\";s:2:\"30\";s:34:\"schedule_reset_poll_recurring_unit\";s:3:\"day\";s:15:\"start_scheduler\";s:3:\"yes\";s:32:\"use_the_same_template_for_widget\";s:3:\"yes\";s:18:\"google_integration\";s:2:\"no\";s:20:\"facebook_integration\";s:2:\"no\";s:24:\"yop_poll_archive_page_id\";i:101;s:16:\"other_answers_id\";s:0:\"\";}');

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

--
-- Table structure for table `mentoryop2_poll_questions`
--

CREATE TABLE `mentoryop2_poll_questions` (
  `ID` int(11) NOT NULL,
  `poll_id` int(11) NOT NULL,
  `question` text NOT NULL,
  `type` text NOT NULL,
  `question_author` bigint(20) NOT NULL DEFAULT 0,
  `question_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `question_status` varchar(20) NOT NULL,
  `question_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `poll_order` int(11) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mentoryop2_poll_questions`
--

INSERT INTO `mentoryop2_poll_questions` (`ID`, `poll_id`, `question`, `type`, `question_author`, `question_date`, `question_status`, `question_modified`, `poll_order`) VALUES
(5, 5, 'Was the website useful?', 'text', 1, '2015-08-20 08:37:43', 'active', '2015-08-20 11:31:20', 1);

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

--
-- Table structure for table `mentoryop2_poll_results`
--

CREATE TABLE `mentoryop2_poll_results` (
  `ID` int(11) NOT NULL,
  `poll_id` int(11) NOT NULL,
  `vote_id` varchar(256) NOT NULL,
  `ip` varchar(100) NOT NULL,
  `country` varchar(100) NOT NULL,
  `user_id` varchar(25) DEFAULT NULL,
  `user_type` enum('facebook','google','admin','wordpress','anonymous','default') NOT NULL DEFAULT 'default',
  `tr_id` varchar(256) DEFAULT NULL,
  `result_details` longtext DEFAULT NULL,
  `user_details` longtext DEFAULT NULL,
  `vote_date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mentoryop2_poll_results`
--

INSERT INTO `mentoryop2_poll_results` (`ID`, `poll_id`, `vote_id`, `ip`, `country`, `user_id`, `user_type`, `tr_id`, `result_details`, `user_details`, `vote_date`) VALUES
(1, 5, 'vote_id_55d59232cc414', '182.74.207.18', 'India', '0', 'anonymous', '', '{\"q-5\":{\"question\":\"Was the website useful?\",\"id\":5,\"a\":[10],\"answers\":[\"No\"],\"cf\":[]}}', '\"\"', '2015-08-20 08:39:16'),
(2, 5, 'vote_id_55d5afd141972', '182.74.207.18', 'India', '0', 'anonymous', '', '{\"q-5\":{\"question\":\"Was the website useful?\",\"id\":5,\"a\":[9],\"answers\":[\"Yes\"],\"cf\":[]}}', '\"\"', '2015-08-20 10:45:39'),
(3, 5, 'vote_id_55d5b041d6dfb', '182.74.207.18', 'India', '0', 'anonymous', '', '{\"q-5\":{\"question\":\"Was the website useful?\",\"id\":5,\"a\":[10],\"answers\":[\"No\"],\"cf\":[]}}', '\"\"', '2015-08-20 10:47:30');

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

--
-- Table structure for table `mentoryop2_poll_templates`
--

CREATE TABLE `mentoryop2_poll_templates` (
  `id` int(11) NOT NULL,
  `template_author` bigint(20) NOT NULL DEFAULT 0,
  `name` varchar(255) NOT NULL,
  `before_vote_template` text NOT NULL,
  `after_vote_template` text NOT NULL,
  `after_vote_template_chart` text NOT NULL,
  `before_start_date_template` text NOT NULL,
  `after_end_date_template` text NOT NULL,
  `css` text NOT NULL,
  `js` text NOT NULL,
  `status` varchar(255) NOT NULL,
  `last_modified` datetime NOT NULL,
  `date_added` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mentoryop2_poll_templates`
--

INSERT INTO `mentoryop2_poll_templates` (`id`, `template_author`, `name`, `before_vote_template`, `after_vote_template`, `after_vote_template_chart`, `before_start_date_template`, `after_end_date_template`, `css`, `js`, `status`, `last_modified`, `date_added`) VALUES
(1, 1, 'White', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    border:1px solid #000000;\r\n    color:#000000;\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\nborder:1px solid #000000;\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#fff;\r\n  box-sizing: border-box;\r\n  color: #555;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42'),
(2, 1, 'Grey', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    border:1px solid #000000;\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\nborder:1px solid #000000;\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#eee;\r\n  box-sizing: border-box;\r\n  color: #fff;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:#000;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }\r\n\r\n\r\n\r\n\r\n\r\n\r\n#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42');
INSERT INTO `mentoryop2_poll_templates` (`id`, `template_author`, `name`, `before_vote_template`, `after_vote_template`, `after_vote_template_chart`, `before_start_date_template`, `after_end_date_template`, `css`, `js`, `status`, `last_modified`, `date_added`) VALUES
(3, 1, 'Dark', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#555;\r\n  box-sizing: border-box;\r\n  color: #fff;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42'),
(4, 1, 'Blue v1', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#327BD6;\r\n  box-sizing: border-box;\r\n  color: #fff;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42');
INSERT INTO `mentoryop2_poll_templates` (`id`, `template_author`, `name`, `before_vote_template`, `after_vote_template`, `after_vote_template_chart`, `before_start_date_template`, `after_end_date_template`, `css`, `js`, `status`, `last_modified`, `date_added`) VALUES
(5, 1, 'Blue v2', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#fff;\r\n  box-sizing: border-box;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:#555;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  background:#327BD6;\r\n  color:#fff;\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42'),
(6, 1, 'Blue v3', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    border:1px solid #000000;\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\nborder:1px solid #000000;\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#fff;\r\n  box-sizing: border-box;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:#555;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n  border: 5px solid #327BD6;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42');
INSERT INTO `mentoryop2_poll_templates` (`id`, `template_author`, `name`, `before_vote_template`, `after_vote_template`, `after_vote_template_chart`, `before_start_date_template`, `after_end_date_template`, `css`, `js`, `status`, `last_modified`, `date_added`) VALUES
(7, 1, 'Red v1', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#B70004;\r\n  box-sizing: border-box;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:white;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42'),
(8, 1, 'Red v2', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    border:1px solid #000000;\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\nborder:1px solid #000000;\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#fff;\r\n  box-sizing: border-box;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:#555;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  background:#B70004;\r\n  color:#fff;\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42');
INSERT INTO `mentoryop2_poll_templates` (`id`, `template_author`, `name`, `before_vote_template`, `after_vote_template`, `after_vote_template_chart`, `before_start_date_template`, `after_end_date_template`, `css`, `js`, `status`, `last_modified`, `date_added`) VALUES
(9, 1, 'Red v3', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    border:1px solid #000000;\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\nborder:1px solid #000000;\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#fff;\r\n  box-sizing: border-box;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:#555;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n  border:5px solid #B70004;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42'),
(10, 1, 'Green v1', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#3F8B43;\r\n  box-sizing: border-box;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:white;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42');
INSERT INTO `mentoryop2_poll_templates` (`id`, `template_author`, `name`, `before_vote_template`, `after_vote_template`, `after_vote_template_chart`, `before_start_date_template`, `after_end_date_template`, `css`, `js`, `status`, `last_modified`, `date_added`) VALUES
(11, 1, 'Green v2', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    border:1px solid #000000;\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\nborder:1px solid #000000;\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#fff;\r\n  box-sizing: border-box;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:#555;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  background:#3F8B43;\r\n  color:#fff;\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }\r\n#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42'),
(12, 1, 'Green v3', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    border:1px solid #000000;\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\nborder:1px solid #000000;\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#fff;\r\n  box-sizing: border-box;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:#555;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n  border:5px solid #3F8B43;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42');
INSERT INTO `mentoryop2_poll_templates` (`id`, `template_author`, `name`, `before_vote_template`, `after_vote_template`, `after_vote_template_chart`, `before_start_date_template`, `after_end_date_template`, `css`, `js`, `status`, `last_modified`, `date_added`) VALUES
(13, 1, 'Orange v1', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#FB6911;\r\n  box-sizing: border-box;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:white;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }\r\n#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42'),
(14, 1, 'Orange v2', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    border:1px solid #000000;\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\nborder:1px solid #000000;\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#fff;\r\n  box-sizing: border-box;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:#555;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  background:#FB6911;\r\n  color:#fff;\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42');
INSERT INTO `mentoryop2_poll_templates` (`id`, `template_author`, `name`, `before_vote_template`, `after_vote_template`, `after_vote_template_chart`, `before_start_date_template`, `after_end_date_template`, `css`, `js`, `status`, `last_modified`, `date_added`) VALUES
(15, 1, 'Orange v3', '<div id = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-ANSWER-CHECK-INPUT% %POLL-ANSWER-LABEL%\r\n                    [ANSWER_DESCRIPTION_CONTAINER]\r\n                    <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                    [/ANSWER_DESCRIPTION_CONTAINER]\r\n\r\n                    [ANSWER_RESULT_CONTAINER]\r\n					<span class = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n					%POLL-ANSWER-RESULT-BAR%\r\n                    [/ANSWER_RESULT_CONTAINER]\r\n				</li>\r\n				[/ANSWER_CONTAINER]\r\n				[OTHER_ANSWER_CONTAINER]\r\n				<li id = \"yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-answer-%POLL-ID%\">\r\n					%POLL-OTHER-ANSWER-CHECK-INPUT%\r\n					%POLL-OTHER-ANSWER-LABEL%\r\n					<span id = \"yop-poll-results-text-%POLL-ID%-%QUESTION-ID%\"\r\n                          class = \"yop-poll-results-text-%POLL-ID%\">%POLL-ANSWER-RESULT-LABEL%</span>\r\n\r\n					%POLL-OTHER-ANSWER-TEXT-INPUT%\r\n					%POLL-ANSWER-RESULT-BAR%\r\n				</li>\r\n				[/OTHER_ANSWER_CONTAINER]\r\n			</ul>\r\n		</div>\r\n		<div id = \"yop-poll-customs-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-customs-%POLL-ID%\">\r\n			<ul>\r\n				[CUSTOM_FIELD_CONTAINER]\r\n				<li id = \"yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-custom-%POLL-ID%\">\r\n					%POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%\r\n				</li>\r\n				[/CUSTOM_FIELD_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n[CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-captcha-%POLL-ID%\">\r\n	<div class = \"yop-poll-captcha-image-div\" id = \"yop-poll-captcha-image-div-%POLL-ID%\">\r\n		%CAPTCHA-IMAGE%\r\n		<div class = \"yop-poll-captcha-helpers-div\" id = \"yop-poll-captcha-helpers-div-%POLL-ID%\">\r\n			%RELOAD-CAPTCHA-IMAGE%\r\n		</div>\r\n		<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	</div>\r\n	%CAPTCHA-LABEL%\r\n	<div class = \"yop-poll-captcha-input-div\" id = \"yop-poll-captcha-input-div-%POLL-ID%\">%CAPTCHA-INPUT%</div>\r\n</div>\r\n[/CAPTCHA_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-VOTE-BUTTON%</div>\r\n	<div id = \"yop-poll-results-%POLL-ID%\">%POLL-VIEW-RESULT-LINK%</div>\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>   <div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n</div>', '<div id = \"yop-poll-questions-container-%POLL-ID%\" class = \"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', '[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n                       <div id = \"yop-poll-answers-chart-canvas-%POLL-ID%-%QUESTION-ID%\" style=\"text-align:center;\" class=\"yop-poll-answers-container-chart-%POLL-ID% yop-poll-center-chart\">\r\n			<canvas id=\"yop-poll-answers-chart-%POLL-ID%-%QUESTION-ID%\" class=\"yop-poll-answers-chart\"></canvas>\r\n                       </div>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n<div id = \"yop-poll-vote-%POLL-ID%\" class = \"yop-poll-footer\">\r\n	<div>%POLL-TOTAL-ANSWERS-LABEL%</div>\r\n	<div>%POLL-TOTAL-VOTES-LABEL%</div>\r\n	<div id = \"yop-poll-back-%POLL-ID%\">%POLL-BACK-TO-VOTE-LINK%</div>\r\n	<div id = \"yop-poll-archive-%POLL-ID%\">%POLL-VIEW-ARCHIVE-LINK%</div>\r\n	%SHARE-BUTTON%\r\n</div>', 'This poll is about to<br>\r\n start on %POLL-START-DATE%<br>\r\nand will end on %POLL-END-DATE%<br>', 'This poll is closed!\r\nPoll activity: <br>\r\nStart date %POLL-START-DATE%<br>\r\nEnd date %POLL-END-DATE%<br>\r\n\r\nPoll Results:\r\n<div id=\"yop-poll-questions-container-%POLL-ID%\" class=\"yop-poll-questions-container-%POLL-ID%\">\r\n	[QUESTION_CONTAINER]\r\n	<div id = \"yop-poll-question-container-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-question-container-%POLL-ID%\">\r\n		<div id = \"yop-poll-question-%POLL-ID%-%QUESTION-ID%\"\r\n             class = \"yop-poll-question-%POLL-ID%\">%POLL-QUESTION%</div>\r\n		<div id = \"yop-poll-answers-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-answers-%POLL-ID%\">\r\n			<ul>\r\n				[ANSWER_RESULT_CONTAINER]\r\n				<li id = \"yop-poll-li-result-%POLL-ID%-%QUESTION-ID%\" class = \"yop-poll-li-result-%POLL-ID%\">\r\n					<label id = \"pds-feedback-label-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-label-%POLL-ID%\">\r\n                        [ANSWER_DESCRIPTION_CONTAINER]\r\n                        <span class = \"yop-poll-description-%POLL-ID%\">%ANSWER-DESCRIPTION%</span>\r\n                        [/ANSWER_DESCRIPTION_CONTAINER]\r\n						<span id = \"pds-answer-text-%POLL-ID%-%QUESTION-ID%\" class = \"pds-answer-text-%POLL-ID%\">\r\n							%POLL-ANSWER-LABEL%\r\n						</span>\r\n						<span id = \"pds-feedback-result-%POLL-ID%-%QUESTION-ID%\"\r\n                              class = \"pds-feedback-result-%POLL-ID%\">\r\n							<span id = \"pds-feedback-per-%POLL-ID%-%QUESTION-ID%\" class = \"pds-feedback-per-%POLL-ID%\">\r\n								%POLL-ANSWER-RESULT-LABEL%\r\n							</span>\r\n						</span>\r\n					</label>\r\n                    <div>\r\n                        %POLL-ANSWER-RESULT-BAR%\r\n                    </div>\r\n				</li>\r\n				[/ANSWER_RESULT_CONTAINER]\r\n			</ul>\r\n		</div>\r\n	</div>\r\n	<div class = \"yop-poll-clear-%POLL-ID%\"></div>\r\n	[/QUESTION_CONTAINER]\r\n</div>', '/*\r\n  Main Container\r\n  ---------------------------------------------------------------------------\r\n*/\r\n#yop-poll-other-answer-%POLL-ID%-other {\r\n    border:1px solid #000000;\r\n    color:#000000;\r\n\r\n}\r\n.yop-poll-customfield-%POLL-ID% {\r\nborder:1px solid #000000;\r\n    color:#000000;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% {\r\n  background:#fff;\r\n  box-sizing: border-box;\r\n  display: inline-block;\r\n  font-size: 14px;\r\n  color:#555;\r\n  padding: 10px;\r\n  width: %POLL-WIDTH%;\r\n  zoom: 1;\r\n  border:5px solid #FB6911;\r\n}\r\n/* A nice little reset */\r\ndiv.yop-poll-container * {\r\n\r\n}\r\n\r\nform#yop-poll-form-%POLL-ID% {\r\n\r\n}\r\n/*\r\n  Error message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-error-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:red;\r\n  text-transform:lowercase;\r\n  text-align:center;\r\n}\r\n/*\r\n  Success message\r\n  ..................................\r\n*/\r\ndiv#yop-poll-container-success-%POLL-ID% {\r\n  font-size:.8em;\r\n  font-style:italic;\r\n  color:green;\r\n  text-align:center;\r\n}\r\n/*\r\n  Poll Question\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv#yop-poll-questions-container-%POLL-ID% { margin:.5em; }\r\ndiv.yop-poll-question-container-%POLL-ID% { margin: 0; }\r\ndiv.yop-poll-question-%POLL-ID% {\r\n  border: 0 none;\r\n  margin: 0 0 2em;\r\n  padding: .25em;\r\n  text-align: center;\r\n  font-size: 14px;\r\n}\r\n/*\r\n  Poll Options / Answers\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID% {}\r\ndiv.yop-poll-answers-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-answer-%POLL-ID%,\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  font-size: 14px;\r\n  line-height: 2em;\r\n\r\n}\r\ndiv.yop-poll-answers-%POLL-ID% ul li.yop-poll-li-result-%POLL-ID% {padding-bottom: 1em;}\r\n/*\r\n  Label\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label {\r\n  margin:0px;\r\n  font-style:normal;\r\n  font-weight:normal;\r\n  font-size:14px;\r\n  float:none;\r\n  display:inline-block;\r\n}\r\n/* Actual text label of the answer */\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(2) {\r\n}\r\n/*\r\n  Custom answer / Other\r\n  ..................................\r\n*/\r\ndiv.yop-poll-answers-%POLL-ID%  ul li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) {\r\n  width: 100%;\r\n  overflow: hidden;\r\n}\r\ndiv#yop-poll-container-%POLL-ID%  li.yop-poll-li-answer-%POLL-ID% label:nth-of-type(3) input[type=\"text\"] {\r\n  width: 94%;\r\n  overflow: hidden;\r\n}\r\n/*\r\n  Custom checkbox and radio button style\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\n\r\n/*\r\n  Custom fields\r\n  ---------------------------------------------------------------------------\r\n*/\r\ndiv.yop-poll-customs-%POLL-ID% {\r\n  clear: both;\r\n\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul {\r\n  list-style: none;\r\n  margin: 0;\r\n  padding: 0;\r\n  overflow: hidden;\r\n  width: 100%;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% {\r\n  display: block;\r\n  font-size:14px;\r\n  list-style: none;\r\n}\r\ndiv.yop-poll-customs-%POLL-ID% ul li.yop-poll-li-custom-%POLL-ID% label {\r\n  display: block;\r\n}\r\ndiv#yop-poll-container-%POLL-ID% li.yop-poll-li-custom-%POLL-ID% input[type=\"text\"] {\r\n  width: 94%;\r\n}\r\n/*\r\n  Vote Button\r\n  ---------------------------------------------------------------------------\r\n*/\r\n.yop-poll-footer { /*height: 4em;*/ }\r\n\r\n.yop-poll-vote-centered-%POLL-ID% { text-align:center; }\r\n\r\n#yop-poll-vote-%POLL-ID% div button {\r\n\r\n  cursor:pointer;\r\n  display: block;\r\n  font-size:14px;\r\n  margin: 0 auto;\r\n  }\r\n\r\n\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_vote_button {}\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_wordpress_vote_button { margin: 1em auto 0; }\r\n#yop-poll-vote-%POLL-ID% div button.yop_poll_anonymous_vote_button { margin: 1em auto 0; }\r\n\r\n/*\r\n  Results\r\n  ---------------------------------------------------------------------------\r\n*/\r\n\r\nli.yop-poll-results-%POLL-ID% {\r\n  font-size: 12px;\r\n  font-style: italic;\r\n  font-weight: normal;\r\n  margin-left: 15px;\r\n  color: #38595E;\r\n}\r\n/*\r\n  Style for results that are displayed on columns\r\n  ..................................\r\n*/\r\nli.yop-poll-li-answer-%POLL-ID% {\r\n  float: left;\r\n  display: inline-block;\r\n  width: 100%;\r\n  padding: 1%;\r\n  margin: 1%;\r\n}\r\n\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {\r\n  float: right;\r\n  width: auto;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-back-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div#yop-poll-archive-%POLL-ID% a {\r\n  color:#000;\r\n  text-decoration:underline;\r\n  font-size:12px;\r\n}\r\n#yop-poll-vote-%POLL-ID% div {\r\n  float:left;\r\n  width:100%;\r\n}\r\n/*\r\n  Result Bar\r\n  ..................................\r\n*/\r\n\r\n.yop-poll-results-bar-%POLL-ID% div { background:#555; width:90%;}\r\n\r\n\r\n/*\r\n  ---------------------------------------------------------------------------\r\n  EXTRAS\r\n  ---------------------------------------------------------------------------\r\n*/\r\n/*\r\n  CAPTCHA\r\n  ..................................\r\n*/\r\n#yop-poll-captcha-input-div-%POLL-ID% { margin-top:5px; }\r\n#yop-poll-captcha-helpers-div-%POLL-ID% {\r\n  width:30px;\r\n  float:left;\r\n  margin-left:5px;\r\n  height:0px;\r\n}\r\n#yop-poll-captcha-helpers-div-%POLL-ID% img { margin-bottom:2px; }\r\n#yop-poll-captcha-image-div-%POLL-ID% { margin-bottom:5px; }\r\n#yop_poll_captcha_image_%POLL-ID% { float:left; }\r\n\r\n.yop-poll-clear-%POLL-ID% { clear:both; }\r\n\r\n.yop-poll-name-%POLL-ID% { color:#38595E; font-size: 18px; }\r\n\r\n\r\n.yop-poll-li-answer-%POLL-ID% label  img     { max-width: 98%; }\r\n.yop-poll-li-result-%POLL-ID% label span img { max-width: 98%; }\r\n\r\n.content { position :unset !important; }\r\n\r\ndiv.yop-poll-container br,\r\ndiv#yop-poll-container-%POLL-ID% br { display: none; }\r\n\r\ndiv#yop_poll_vote_options_div-%POLL-ID% div:nth-last-of-type(1) { display: none; }\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#yop-poll-container-%POLL-ID% img {\r\n    max-width: %POLL-WIDTH%;\r\n}', 'function stripBorder_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		if( parseInt(jQuery(this).width() ) > 0) {\r\n			jQuery(this).width(\r\n				parseInt(\r\n					jQuery(this).width() ) -\r\n					parseInt(jQuery(this).css(\"border-left-width\")) -\r\n					parseInt(jQuery(this).css(\"border-right-width\"))\r\n			);\r\n			}\r\n		else {\r\n		jQuery(this).css(\"border-left-width\", \"0px\");\r\n		jQuery(this).css(\"border-right-width\", \"0px\");\r\n		}\r\n	});\r\n}\r\nfunction stripPadding_%POLL-ID%(object) {\r\n	object.each(function() {\r\n		jQuery(this).width(\r\n		parseInt( jQuery(this).width() ) -\r\n		parseInt(jQuery(this).css(\"padding-left\")) -\r\n		parseInt(jQuery(this).css(\"padding-left\"))\r\n		);\r\n	});\r\n}\r\n\r\nfunction strip_results_%POLL-ID%() {\r\n	stripPadding_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%\") );\r\n	stripBorder_%POLL-ID%(  jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%\") );\r\n}\r\n\r\njQuery(document).ready(function(e) {\r\n   jQuery(\'.yop-poll-forms\').removeClass(\'yop-poll-forms-display\');\r\n	if(typeof window.strip_results_%POLL-ID% == \"function\")\r\n		strip_results_%POLL-ID%();\r\n	if(typeof window.tabulate_answers_%POLL-ID% == \"function\")\r\n		tabulate_answers_%POLL-ID%();\r\n	if(typeof window.tabulate_results_%POLL-ID% == \"function\")\r\n		tabulate_results_%POLL-ID%();\r\n\r\n\r\n\r\n});\r\n\r\nfunction equalWidth_%POLL-ID%(obj, cols, findWidest ) {\r\n\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n             if(cols[quest][0]==1)\r\n                        jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"width\",\"100%\");\r\n             else\r\n                         jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][0]);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-answer-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\n\r\nfunction equalWidth2_%POLL-ID%(obj, cols, findWidest ) {\r\n    findWidest  = typeof findWidest  !== \"undefined\" ? findWidest  : false;\r\n    var quest=0;\r\n\r\n    if ( findWidest ) {\r\n        obj.each(function() {\r\n            var thisWidth = jQuery(this).width();\r\n            width = parseInt(thisWidth / cols);\r\n            jQuery(this).width(width);\r\n            jQuery(this).css(\"float\", \"left\");\r\n        });\r\n    }\r\n    else {\r\n        var widest = 0;\r\n        var count  = 0;\r\n        var poz_each_question=0;\r\n\r\n        obj.each(function() {\r\n            count++;\r\n            cols[quest][2]=(jQuery(\'#yop-poll-answers-%POLL-ID%-\'+ cols[quest][3] +\' li\').length);\r\n            var thisWidth = jQuery(this).width();\r\n            if(thisWidth > widest) {\r\n                widest = thisWidth;\r\n            }\r\n            if(count<cols[quest][2])\r\n            { width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n             jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n            }\r\n            else\r\n            {\r\n                count=0;\r\n\r\n\r\n                width = parseInt( %POLL-WIDTH% / cols[quest][1]);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).width(width-20);\r\n                jQuery(\".yop-poll-li-result-%POLL-ID%-\"+cols[quest][3]).css(\"float\", \"left\");\r\n                quest++;\r\n            }\r\n\r\n        });\r\n}\r\n}\r\nfunction tabulate_answers_%POLL-ID%() {\r\n\r\n	equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%\"), %ANSWERS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %ANSWERS-TABULATED-COLS%, true );\r\n}\r\n\r\nfunction tabulate_results_%POLL-ID%() {\r\n	equalWidth2_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%\"), %RESULTS-TABULATED-COLS% );\r\n	//equalWidth_%POLL-ID%( jQuery(\"#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div \"), %RESULTS-TABULATED-COLS%, true );\r\n	}\r\n\r\njQuery(document).ready(function(){\r\n	runOnPollStateChange_%POLL-ID%();\r\n});\r\n\r\nfunction runOnPollStateChange_%POLL-ID%() {\r\n\r\n};', 'default', '2015-08-20 08:13:42', '2015-08-20 08:13:42');

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

--
-- Table structure for table `mentoryop2_poll_votes_custom_fields`
--

CREATE TABLE `mentoryop2_poll_votes_custom_fields` (
  `ID` int(11) NOT NULL,
  `poll_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `vote_id` varchar(255) NOT NULL,
  `custom_field_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `user_type` enum('facebook','wordpress','anonymous','default') NOT NULL DEFAULT 'default',
  `custom_field_value` text NOT NULL,
  `tr_id` varchar(255) NOT NULL,
  `vote_date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `mentoractionscheduler_actions`
--
ALTER TABLE `mentoractionscheduler_actions`
  ADD PRIMARY KEY (`action_id`),
  ADD KEY `hook_status_scheduled_date_gmt` (`hook`(163),`status`,`scheduled_date_gmt`),
  ADD KEY `status_scheduled_date_gmt` (`status`,`scheduled_date_gmt`),
  ADD KEY `scheduled_date_gmt` (`scheduled_date_gmt`),
  ADD KEY `args` (`args`),
  ADD KEY `group_id` (`group_id`),
  ADD KEY `last_attempt_gmt` (`last_attempt_gmt`),
  ADD KEY `claim_id_status_scheduled_date_gmt` (`claim_id`,`status`,`scheduled_date_gmt`);

--
-- Indexes for table `mentoractionscheduler_claims`
--
ALTER TABLE `mentoractionscheduler_claims`
  ADD PRIMARY KEY (`claim_id`),
  ADD KEY `date_created_gmt` (`date_created_gmt`);

--
-- Indexes for table `mentoractionscheduler_groups`
--
ALTER TABLE `mentoractionscheduler_groups`
  ADD PRIMARY KEY (`group_id`),
  ADD KEY `slug` (`slug`(191));

--
-- Indexes for table `mentoractionscheduler_logs`
--
ALTER TABLE `mentoractionscheduler_logs`
  ADD PRIMARY KEY (`log_id`),
  ADD KEY `action_id` (`action_id`),
  ADD KEY `log_date_gmt` (`log_date_gmt`);

--
-- Indexes for table `mentorcommentmeta`
--
ALTER TABLE `mentorcommentmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `comment_id` (`comment_id`),
  ADD KEY `meta_key` (`meta_key`(191));

--
-- Indexes for table `mentorcomments`
--
ALTER TABLE `mentorcomments`
  ADD PRIMARY KEY (`comment_ID`),
  ADD KEY `comment_post_ID` (`comment_post_ID`),
  ADD KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`),
  ADD KEY `comment_date_gmt` (`comment_date_gmt`),
  ADD KEY `comment_parent` (`comment_parent`),
  ADD KEY `comment_author_email` (`comment_author_email`(10)),
  ADD KEY `woo_idx_comment_type` (`comment_type`);

--
-- Indexes for table `mentorgla_attribute_mapping_rules`
--
ALTER TABLE `mentorgla_attribute_mapping_rules`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentorgla_budget_recommendations`
--
ALTER TABLE `mentorgla_budget_recommendations`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `country_currency` (`country`,`currency`);

--
-- Indexes for table `mentorgla_merchant_issues`
--
ALTER TABLE `mentorgla_merchant_issues`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentorgla_shipping_rates`
--
ALTER TABLE `mentorgla_shipping_rates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `country` (`country`),
  ADD KEY `currency` (`currency`);

--
-- Indexes for table `mentorgla_shipping_times`
--
ALTER TABLE `mentorgla_shipping_times`
  ADD PRIMARY KEY (`id`),
  ADD KEY `country` (`country`);

--
-- Indexes for table `mentorjetpack_sync_queue`
--
ALTER TABLE `mentorjetpack_sync_queue`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `event_id` (`event_id`),
  ADD KEY `queue_id` (`queue_id`),
  ADD KEY `queue_id_event_id` (`queue_id`,`event_id`),
  ADD KEY `timestamp` (`timestamp`);

--
-- Indexes for table `mentorlinks`
--
ALTER TABLE `mentorlinks`
  ADD PRIMARY KEY (`link_id`),
  ADD KEY `link_visible` (`link_visible`);

--
-- Indexes for table `mentormailpoet_automations`
--
ALTER TABLE `mentormailpoet_automations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentormailpoet_automation_runs`
--
ALTER TABLE `mentormailpoet_automation_runs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `automation_id` (`automation_id`,`status`),
  ADD KEY `created_at` (`created_at`),
  ADD KEY `version_id` (`version_id`),
  ADD KEY `status` (`status`),
  ADD KEY `next_step_id` (`next_step_id`);

--
-- Indexes for table `mentormailpoet_automation_run_logs`
--
ALTER TABLE `mentormailpoet_automation_run_logs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `automation_run_id_step_id` (`automation_run_id`,`step_id`),
  ADD KEY `status` (`status`),
  ADD KEY `step_id` (`step_id`);

--
-- Indexes for table `mentormailpoet_automation_run_subjects`
--
ALTER TABLE `mentormailpoet_automation_run_subjects`
  ADD PRIMARY KEY (`id`),
  ADD KEY `automation_run_id` (`automation_run_id`),
  ADD KEY `hash` (`hash`);

--
-- Indexes for table `mentormailpoet_automation_triggers`
--
ALTER TABLE `mentormailpoet_automation_triggers`
  ADD PRIMARY KEY (`automation_id`,`trigger_key`);

--
-- Indexes for table `mentormailpoet_automation_versions`
--
ALTER TABLE `mentormailpoet_automation_versions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `automation_id` (`automation_id`);

--
-- Indexes for table `mentormailpoet_custom_fields`
--
ALTER TABLE `mentormailpoet_custom_fields`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Indexes for table `mentormailpoet_dynamic_segment_filters`
--
ALTER TABLE `mentormailpoet_dynamic_segment_filters`
  ADD PRIMARY KEY (`id`),
  ADD KEY `segment_id` (`segment_id`);

--
-- Indexes for table `mentormailpoet_feature_flags`
--
ALTER TABLE `mentormailpoet_feature_flags`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Indexes for table `mentormailpoet_forms`
--
ALTER TABLE `mentormailpoet_forms`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentormailpoet_log`
--
ALTER TABLE `mentormailpoet_log`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentormailpoet_migrations`
--
ALTER TABLE `mentormailpoet_migrations`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Indexes for table `mentormailpoet_newsletters`
--
ALTER TABLE `mentormailpoet_newsletters`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unsubscribe_token` (`unsubscribe_token`),
  ADD KEY `type_status` (`type`,`status`),
  ADD KEY `wp_post_id` (`wp_post_id`);

--
-- Indexes for table `mentormailpoet_newsletter_links`
--
ALTER TABLE `mentormailpoet_newsletter_links`
  ADD PRIMARY KEY (`id`),
  ADD KEY `newsletter_id` (`newsletter_id`),
  ADD KEY `queue_id` (`queue_id`),
  ADD KEY `url` (`url`(100));

--
-- Indexes for table `mentormailpoet_newsletter_option`
--
ALTER TABLE `mentormailpoet_newsletter_option`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `newsletter_id_option_field_id` (`newsletter_id`,`option_field_id`);

--
-- Indexes for table `mentormailpoet_newsletter_option_fields`
--
ALTER TABLE `mentormailpoet_newsletter_option_fields`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name_newsletter_type` (`newsletter_type`,`name`);

--
-- Indexes for table `mentormailpoet_newsletter_posts`
--
ALTER TABLE `mentormailpoet_newsletter_posts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `newsletter_id` (`newsletter_id`);

--
-- Indexes for table `mentormailpoet_newsletter_segment`
--
ALTER TABLE `mentormailpoet_newsletter_segment`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `newsletter_segment` (`newsletter_id`,`segment_id`);

--
-- Indexes for table `mentormailpoet_newsletter_templates`
--
ALTER TABLE `mentormailpoet_newsletter_templates`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentormailpoet_scheduled_tasks`
--
ALTER TABLE `mentormailpoet_scheduled_tasks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `type` (`type`),
  ADD KEY `status` (`status`);

--
-- Indexes for table `mentormailpoet_scheduled_task_subscribers`
--
ALTER TABLE `mentormailpoet_scheduled_task_subscribers`
  ADD PRIMARY KEY (`task_id`,`subscriber_id`),
  ADD KEY `subscriber_id` (`subscriber_id`);

--
-- Indexes for table `mentormailpoet_segments`
--
ALTER TABLE `mentormailpoet_segments`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name` (`name`),
  ADD KEY `average_engagement_score_updated_at` (`average_engagement_score_updated_at`);

--
-- Indexes for table `mentormailpoet_sending_queues`
--
ALTER TABLE `mentormailpoet_sending_queues`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_id` (`task_id`),
  ADD KEY `newsletter_id` (`newsletter_id`);

--
-- Indexes for table `mentormailpoet_settings`
--
ALTER TABLE `mentormailpoet_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Indexes for table `mentormailpoet_statistics_bounces`
--
ALTER TABLE `mentormailpoet_statistics_bounces`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentormailpoet_statistics_clicks`
--
ALTER TABLE `mentormailpoet_statistics_clicks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `newsletter_id_subscriber_id_user_agent_type` (`newsletter_id`,`subscriber_id`,`user_agent_type`),
  ADD KEY `queue_id` (`queue_id`),
  ADD KEY `subscriber_id` (`subscriber_id`);

--
-- Indexes for table `mentormailpoet_statistics_forms`
--
ALTER TABLE `mentormailpoet_statistics_forms`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `form_subscriber` (`form_id`,`subscriber_id`);

--
-- Indexes for table `mentormailpoet_statistics_newsletters`
--
ALTER TABLE `mentormailpoet_statistics_newsletters`
  ADD PRIMARY KEY (`id`),
  ADD KEY `newsletter_id` (`newsletter_id`),
  ADD KEY `subscriber_id` (`subscriber_id`);

--
-- Indexes for table `mentormailpoet_statistics_opens`
--
ALTER TABLE `mentormailpoet_statistics_opens`
  ADD PRIMARY KEY (`id`),
  ADD KEY `newsletter_id_subscriber_id_user_agent_type` (`newsletter_id`,`subscriber_id`,`user_agent_type`),
  ADD KEY `queue_id` (`queue_id`),
  ADD KEY `subscriber_id` (`subscriber_id`),
  ADD KEY `created_at` (`created_at`),
  ADD KEY `subscriber_id_created_at` (`subscriber_id`,`created_at`);

--
-- Indexes for table `mentormailpoet_statistics_unsubscribes`
--
ALTER TABLE `mentormailpoet_statistics_unsubscribes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `newsletter_id_subscriber_id` (`newsletter_id`,`subscriber_id`),
  ADD KEY `queue_id` (`queue_id`),
  ADD KEY `subscriber_id` (`subscriber_id`);

--
-- Indexes for table `mentormailpoet_statistics_woocommerce_purchases`
--
ALTER TABLE `mentormailpoet_statistics_woocommerce_purchases`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `click_id_order_id` (`click_id`,`order_id`),
  ADD KEY `newsletter_id` (`newsletter_id`),
  ADD KEY `queue_id` (`queue_id`),
  ADD KEY `subscriber_id` (`subscriber_id`),
  ADD KEY `status` (`status`);

--
-- Indexes for table `mentormailpoet_stats_notifications`
--
ALTER TABLE `mentormailpoet_stats_notifications`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `newsletter_id_task_id` (`newsletter_id`,`task_id`),
  ADD KEY `task_id` (`task_id`);

--
-- Indexes for table `mentormailpoet_subscribers`
--
ALTER TABLE `mentormailpoet_subscribers`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `email` (`email`),
  ADD UNIQUE KEY `unsubscribe_token` (`unsubscribe_token`),
  ADD KEY `wp_user_id` (`wp_user_id`),
  ADD KEY `updated_at` (`updated_at`),
  ADD KEY `status_deleted_at` (`status`,`deleted_at`),
  ADD KEY `last_subscribed_at` (`last_subscribed_at`),
  ADD KEY `engagement_score_updated_at` (`engagement_score_updated_at`),
  ADD KEY `link_token` (`link_token`),
  ADD KEY `first_name` (`first_name`(10)),
  ADD KEY `last_name` (`last_name`(10)),
  ADD KEY `last_sending_at` (`last_sending_at`),
  ADD KEY `last_open_at` (`last_open_at`),
  ADD KEY `last_click_at` (`last_click_at`),
  ADD KEY `last_purchase_at` (`last_purchase_at`),
  ADD KEY `last_page_view_at` (`last_page_view_at`);

--
-- Indexes for table `mentormailpoet_subscriber_custom_field`
--
ALTER TABLE `mentormailpoet_subscriber_custom_field`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscriber_id_custom_field_id` (`subscriber_id`,`custom_field_id`);

--
-- Indexes for table `mentormailpoet_subscriber_ips`
--
ALTER TABLE `mentormailpoet_subscriber_ips`
  ADD PRIMARY KEY (`created_at`,`ip`),
  ADD KEY `ip` (`ip`);

--
-- Indexes for table `mentormailpoet_subscriber_segment`
--
ALTER TABLE `mentormailpoet_subscriber_segment`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscriber_segment` (`subscriber_id`,`segment_id`),
  ADD KEY `segment_id` (`segment_id`);

--
-- Indexes for table `mentormailpoet_subscriber_tag`
--
ALTER TABLE `mentormailpoet_subscriber_tag`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscriber_tag` (`subscriber_id`,`tag_id`),
  ADD KEY `tag_id` (`tag_id`);

--
-- Indexes for table `mentormailpoet_tags`
--
ALTER TABLE `mentormailpoet_tags`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Indexes for table `mentormailpoet_user_agents`
--
ALTER TABLE `mentormailpoet_user_agents`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `hash` (`hash`);

--
-- Indexes for table `mentormailpoet_user_flags`
--
ALTER TABLE `mentormailpoet_user_flags`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_id_name` (`user_id`,`name`);

--
-- Indexes for table `mentoroptions`
--
ALTER TABLE `mentoroptions`
  ADD PRIMARY KEY (`option_id`),
  ADD UNIQUE KEY `option_name` (`option_name`),
  ADD KEY `autoload` (`autoload`);

--
-- Indexes for table `mentorpollsa`
--
ALTER TABLE `mentorpollsa`
  ADD PRIMARY KEY (`polla_aid`);

--
-- Indexes for table `mentorpollsip`
--
ALTER TABLE `mentorpollsip`
  ADD PRIMARY KEY (`pollip_id`),
  ADD KEY `pollip_ip` (`pollip_ip`),
  ADD KEY `pollip_qid` (`pollip_qid`),
  ADD KEY `pollip_ip_qid_aid` (`pollip_ip`,`pollip_qid`,`pollip_aid`);

--
-- Indexes for table `mentorpollsq`
--
ALTER TABLE `mentorpollsq`
  ADD PRIMARY KEY (`pollq_id`);

--
-- Indexes for table `mentorpostmeta`
--
ALTER TABLE `mentorpostmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `post_id` (`post_id`),
  ADD KEY `meta_key` (`meta_key`(191));

--
-- Indexes for table `mentorposts`
--
ALTER TABLE `mentorposts`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `post_name` (`post_name`(191)),
  ADD KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`),
  ADD KEY `post_parent` (`post_parent`),
  ADD KEY `post_author` (`post_author`);

--
-- Indexes for table `mentortermmeta`
--
ALTER TABLE `mentortermmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `term_id` (`term_id`),
  ADD KEY `meta_key` (`meta_key`(191));

--
-- Indexes for table `mentorterms`
--
ALTER TABLE `mentorterms`
  ADD PRIMARY KEY (`term_id`),
  ADD KEY `slug` (`slug`(191)),
  ADD KEY `name` (`name`(191));

--
-- Indexes for table `mentorterm_relationships`
--
ALTER TABLE `mentorterm_relationships`
  ADD PRIMARY KEY (`object_id`,`term_taxonomy_id`),
  ADD KEY `term_taxonomy_id` (`term_taxonomy_id`);

--
-- Indexes for table `mentorterm_taxonomy`
--
ALTER TABLE `mentorterm_taxonomy`
  ADD PRIMARY KEY (`term_taxonomy_id`),
  ADD UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`),
  ADD KEY `taxonomy` (`taxonomy`);

--
-- Indexes for table `mentorusermeta`
--
ALTER TABLE `mentorusermeta`
  ADD PRIMARY KEY (`umeta_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `meta_key` (`meta_key`(191));

--
-- Indexes for table `mentorusers`
--
ALTER TABLE `mentorusers`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `user_login_key` (`user_login`),
  ADD KEY `user_nicename` (`user_nicename`),
  ADD KEY `user_email` (`user_email`);

--
-- Indexes for table `mentorwc_admin_notes`
--
ALTER TABLE `mentorwc_admin_notes`
  ADD PRIMARY KEY (`note_id`);

--
-- Indexes for table `mentorwc_admin_note_actions`
--
ALTER TABLE `mentorwc_admin_note_actions`
  ADD PRIMARY KEY (`action_id`),
  ADD KEY `note_id` (`note_id`);

--
-- Indexes for table `mentorwc_category_lookup`
--
ALTER TABLE `mentorwc_category_lookup`
  ADD PRIMARY KEY (`category_tree_id`,`category_id`);

--
-- Indexes for table `mentorwc_customer_lookup`
--
ALTER TABLE `mentorwc_customer_lookup`
  ADD PRIMARY KEY (`customer_id`),
  ADD UNIQUE KEY `user_id` (`user_id`),
  ADD KEY `email` (`email`);

--
-- Indexes for table `mentorwc_download_log`
--
ALTER TABLE `mentorwc_download_log`
  ADD PRIMARY KEY (`download_log_id`),
  ADD KEY `permission_id` (`permission_id`),
  ADD KEY `timestamp` (`timestamp`);

--
-- Indexes for table `mentorwc_orders`
--
ALTER TABLE `mentorwc_orders`
  ADD PRIMARY KEY (`id`),
  ADD KEY `status` (`status`),
  ADD KEY `date_created` (`date_created_gmt`),
  ADD KEY `customer_id_billing_email` (`customer_id`,`billing_email`(171)),
  ADD KEY `billing_email` (`billing_email`(191)),
  ADD KEY `type_status_date` (`type`,`status`,`date_created_gmt`),
  ADD KEY `parent_order_id` (`parent_order_id`),
  ADD KEY `date_updated` (`date_updated_gmt`);

--
-- Indexes for table `mentorwc_orders_meta`
--
ALTER TABLE `mentorwc_orders_meta`
  ADD PRIMARY KEY (`id`),
  ADD KEY `meta_key_value` (`meta_key`(100),`meta_value`(82)),
  ADD KEY `order_id_meta_key_meta_value` (`order_id`,`meta_key`(100),`meta_value`(82));

--
-- Indexes for table `mentorwc_order_addresses`
--
ALTER TABLE `mentorwc_order_addresses`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `address_type_order_id` (`address_type`,`order_id`),
  ADD KEY `order_id` (`order_id`),
  ADD KEY `email` (`email`(191)),
  ADD KEY `phone` (`phone`);

--
-- Indexes for table `mentorwc_order_coupon_lookup`
--
ALTER TABLE `mentorwc_order_coupon_lookup`
  ADD PRIMARY KEY (`order_id`,`coupon_id`),
  ADD KEY `coupon_id` (`coupon_id`),
  ADD KEY `date_created` (`date_created`);

--
-- Indexes for table `mentorwc_order_operational_data`
--
ALTER TABLE `mentorwc_order_operational_data`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `order_id` (`order_id`),
  ADD KEY `order_key` (`order_key`);

--
-- Indexes for table `mentorwc_order_product_lookup`
--
ALTER TABLE `mentorwc_order_product_lookup`
  ADD PRIMARY KEY (`order_item_id`),
  ADD KEY `order_id` (`order_id`),
  ADD KEY `product_id` (`product_id`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `date_created` (`date_created`);

--
-- Indexes for table `mentorwc_order_stats`
--
ALTER TABLE `mentorwc_order_stats`
  ADD PRIMARY KEY (`order_id`),
  ADD KEY `date_created` (`date_created`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `status` (`status`(191));

--
-- Indexes for table `mentorwc_order_tax_lookup`
--
ALTER TABLE `mentorwc_order_tax_lookup`
  ADD PRIMARY KEY (`order_id`,`tax_rate_id`),
  ADD KEY `tax_rate_id` (`tax_rate_id`),
  ADD KEY `date_created` (`date_created`);

--
-- Indexes for table `mentorwc_product_attributes_lookup`
--
ALTER TABLE `mentorwc_product_attributes_lookup`
  ADD PRIMARY KEY (`product_or_parent_id`,`term_id`,`product_id`,`taxonomy`),
  ADD KEY `is_variation_attribute_term_id` (`is_variation_attribute`,`term_id`);

--
-- Indexes for table `mentorwc_product_download_directories`
--
ALTER TABLE `mentorwc_product_download_directories`
  ADD PRIMARY KEY (`url_id`),
  ADD KEY `url` (`url`(191));

--
-- Indexes for table `mentorwc_product_meta_lookup`
--
ALTER TABLE `mentorwc_product_meta_lookup`
  ADD PRIMARY KEY (`product_id`),
  ADD KEY `virtual` (`virtual`),
  ADD KEY `downloadable` (`downloadable`),
  ADD KEY `stock_status` (`stock_status`),
  ADD KEY `stock_quantity` (`stock_quantity`),
  ADD KEY `onsale` (`onsale`),
  ADD KEY `min_max_price` (`min_price`,`max_price`);

--
-- Indexes for table `mentorwc_rate_limits`
--
ALTER TABLE `mentorwc_rate_limits`
  ADD PRIMARY KEY (`rate_limit_id`),
  ADD UNIQUE KEY `rate_limit_key` (`rate_limit_key`(191));

--
-- Indexes for table `mentorwc_reserved_stock`
--
ALTER TABLE `mentorwc_reserved_stock`
  ADD PRIMARY KEY (`order_id`,`product_id`);

--
-- Indexes for table `mentorwc_tax_rate_classes`
--
ALTER TABLE `mentorwc_tax_rate_classes`
  ADD PRIMARY KEY (`tax_rate_class_id`),
  ADD UNIQUE KEY `slug` (`slug`(191));

--
-- Indexes for table `mentorwc_webhooks`
--
ALTER TABLE `mentorwc_webhooks`
  ADD PRIMARY KEY (`webhook_id`),
  ADD KEY `user_id` (`user_id`);

--
-- Indexes for table `mentorwfblockediplog`
--
ALTER TABLE `mentorwfblockediplog`
  ADD PRIMARY KEY (`IP`,`unixday`,`blockType`);

--
-- Indexes for table `mentorwfblocks7`
--
ALTER TABLE `mentorwfblocks7`
  ADD PRIMARY KEY (`id`),
  ADD KEY `type` (`type`),
  ADD KEY `IP` (`IP`),
  ADD KEY `expiration` (`expiration`);

--
-- Indexes for table `mentorwfconfig`
--
ALTER TABLE `mentorwfconfig`
  ADD PRIMARY KEY (`name`);

--
-- Indexes for table `mentorwfcrawlers`
--
ALTER TABLE `mentorwfcrawlers`
  ADD PRIMARY KEY (`IP`,`patternSig`);

--
-- Indexes for table `mentorwffilechanges`
--
ALTER TABLE `mentorwffilechanges`
  ADD PRIMARY KEY (`filenameHash`);

--
-- Indexes for table `mentorwffilemods`
--
ALTER TABLE `mentorwffilemods`
  ADD PRIMARY KEY (`filenameMD5`);

--
-- Indexes for table `mentorwfhits`
--
ALTER TABLE `mentorwfhits`
  ADD PRIMARY KEY (`id`),
  ADD KEY `k1` (`ctime`),
  ADD KEY `k2` (`IP`,`ctime`),
  ADD KEY `attackLogTime` (`attackLogTime`);

--
-- Indexes for table `mentorwfhoover`
--
ALTER TABLE `mentorwfhoover`
  ADD PRIMARY KEY (`id`),
  ADD KEY `k2` (`hostKey`);

--
-- Indexes for table `mentorwfissues`
--
ALTER TABLE `mentorwfissues`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lastUpdated` (`lastUpdated`),
  ADD KEY `status` (`status`),
  ADD KEY `ignoreP` (`ignoreP`),
  ADD KEY `ignoreC` (`ignoreC`);

--
-- Indexes for table `mentorwfknownfilelist`
--
ALTER TABLE `mentorwfknownfilelist`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentorwflivetraffichuman`
--
ALTER TABLE `mentorwflivetraffichuman`
  ADD PRIMARY KEY (`IP`,`identifier`),
  ADD KEY `expiration` (`expiration`);

--
-- Indexes for table `mentorwflocs`
--
ALTER TABLE `mentorwflocs`
  ADD PRIMARY KEY (`IP`);

--
-- Indexes for table `mentorwflogins`
--
ALTER TABLE `mentorwflogins`
  ADD PRIMARY KEY (`id`),
  ADD KEY `k1` (`IP`,`fail`),
  ADD KEY `hitID` (`hitID`);

--
-- Indexes for table `mentorwfls_2fa_secrets`
--
ALTER TABLE `mentorwfls_2fa_secrets`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_id` (`user_id`);

--
-- Indexes for table `mentorwfls_role_counts`
--
ALTER TABLE `mentorwfls_role_counts`
  ADD PRIMARY KEY (`serialized_roles`,`two_factor_inactive`);

--
-- Indexes for table `mentorwfls_settings`
--
ALTER TABLE `mentorwfls_settings`
  ADD PRIMARY KEY (`name`);

--
-- Indexes for table `mentorwfnotifications`
--
ALTER TABLE `mentorwfnotifications`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentorwfpendingissues`
--
ALTER TABLE `mentorwfpendingissues`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lastUpdated` (`lastUpdated`),
  ADD KEY `status` (`status`),
  ADD KEY `ignoreP` (`ignoreP`),
  ADD KEY `ignoreC` (`ignoreC`);

--
-- Indexes for table `mentorwfreversecache`
--
ALTER TABLE `mentorwfreversecache`
  ADD PRIMARY KEY (`IP`);

--
-- Indexes for table `mentorwfsecurityevents`
--
ALTER TABLE `mentorwfsecurityevents`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentorwfsnipcache`
--
ALTER TABLE `mentorwfsnipcache`
  ADD PRIMARY KEY (`id`),
  ADD KEY `expiration` (`expiration`),
  ADD KEY `IP` (`IP`),
  ADD KEY `type` (`type`);

--
-- Indexes for table `mentorwfstatus`
--
ALTER TABLE `mentorwfstatus`
  ADD PRIMARY KEY (`id`),
  ADD KEY `k1` (`ctime`),
  ADD KEY `k2` (`type`);

--
-- Indexes for table `mentorwftrafficrates`
--
ALTER TABLE `mentorwftrafficrates`
  ADD PRIMARY KEY (`eMin`,`IP`,`hitType`);

--
-- Indexes for table `mentorwfwaffailures`
--
ALTER TABLE `mentorwfwaffailures`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentorwoocommerce_api_keys`
--
ALTER TABLE `mentorwoocommerce_api_keys`
  ADD PRIMARY KEY (`key_id`),
  ADD KEY `consumer_key` (`consumer_key`),
  ADD KEY `consumer_secret` (`consumer_secret`);

--
-- Indexes for table `mentorwoocommerce_attribute_taxonomies`
--
ALTER TABLE `mentorwoocommerce_attribute_taxonomies`
  ADD PRIMARY KEY (`attribute_id`),
  ADD KEY `attribute_name` (`attribute_name`(20));

--
-- Indexes for table `mentorwoocommerce_downloadable_product_permissions`
--
ALTER TABLE `mentorwoocommerce_downloadable_product_permissions`
  ADD PRIMARY KEY (`permission_id`),
  ADD KEY `download_order_key_product` (`product_id`,`order_id`,`order_key`(16),`download_id`),
  ADD KEY `download_order_product` (`download_id`,`order_id`,`product_id`),
  ADD KEY `order_id` (`order_id`),
  ADD KEY `user_order_remaining_expires` (`user_id`,`order_id`,`downloads_remaining`,`access_expires`);

--
-- Indexes for table `mentorwoocommerce_log`
--
ALTER TABLE `mentorwoocommerce_log`
  ADD PRIMARY KEY (`log_id`),
  ADD KEY `level` (`level`);

--
-- Indexes for table `mentorwoocommerce_order_itemmeta`
--
ALTER TABLE `mentorwoocommerce_order_itemmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `order_item_id` (`order_item_id`),
  ADD KEY `meta_key` (`meta_key`(32));

--
-- Indexes for table `mentorwoocommerce_order_items`
--
ALTER TABLE `mentorwoocommerce_order_items`
  ADD PRIMARY KEY (`order_item_id`),
  ADD KEY `order_id` (`order_id`);

--
-- Indexes for table `mentorwoocommerce_payment_tokenmeta`
--
ALTER TABLE `mentorwoocommerce_payment_tokenmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `payment_token_id` (`payment_token_id`),
  ADD KEY `meta_key` (`meta_key`(32));

--
-- Indexes for table `mentorwoocommerce_payment_tokens`
--
ALTER TABLE `mentorwoocommerce_payment_tokens`
  ADD PRIMARY KEY (`token_id`),
  ADD KEY `user_id` (`user_id`);

--
-- Indexes for table `mentorwoocommerce_sessions`
--
ALTER TABLE `mentorwoocommerce_sessions`
  ADD PRIMARY KEY (`session_id`),
  ADD UNIQUE KEY `session_key` (`session_key`);

--
-- Indexes for table `mentorwoocommerce_shipping_zones`
--
ALTER TABLE `mentorwoocommerce_shipping_zones`
  ADD PRIMARY KEY (`zone_id`);

--
-- Indexes for table `mentorwoocommerce_shipping_zone_locations`
--
ALTER TABLE `mentorwoocommerce_shipping_zone_locations`
  ADD PRIMARY KEY (`location_id`),
  ADD KEY `location_id` (`location_id`),
  ADD KEY `location_type_code` (`location_type`(10),`location_code`(20));

--
-- Indexes for table `mentorwoocommerce_shipping_zone_methods`
--
ALTER TABLE `mentorwoocommerce_shipping_zone_methods`
  ADD PRIMARY KEY (`instance_id`);

--
-- Indexes for table `mentorwoocommerce_tax_rates`
--
ALTER TABLE `mentorwoocommerce_tax_rates`
  ADD PRIMARY KEY (`tax_rate_id`),
  ADD KEY `tax_rate_country` (`tax_rate_country`),
  ADD KEY `tax_rate_state` (`tax_rate_state`(2)),
  ADD KEY `tax_rate_class` (`tax_rate_class`(10)),
  ADD KEY `tax_rate_priority` (`tax_rate_priority`);

--
-- Indexes for table `mentorwoocommerce_tax_rate_locations`
--
ALTER TABLE `mentorwoocommerce_tax_rate_locations`
  ADD PRIMARY KEY (`location_id`),
  ADD KEY `tax_rate_id` (`tax_rate_id`),
  ADD KEY `location_type_code` (`location_type`(10),`location_code`(20));

--
-- Indexes for table `mentorwpfm_backup`
--
ALTER TABLE `mentorwpfm_backup`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentorwpforms_logs`
--
ALTER TABLE `mentorwpforms_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentorwpforms_payments`
--
ALTER TABLE `mentorwpforms_payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `form_id` (`form_id`),
  ADD KEY `status` (`status`(8)),
  ADD KEY `total_amount` (`total_amount`),
  ADD KEY `type` (`type`(8)),
  ADD KEY `transaction_id` (`transaction_id`(32)),
  ADD KEY `customer_id` (`customer_id`(32)),
  ADD KEY `subscription_id` (`subscription_id`(32)),
  ADD KEY `subscription_status` (`subscription_status`(8)),
  ADD KEY `title` (`title`(64));

--
-- Indexes for table `mentorwpforms_payment_meta`
--
ALTER TABLE `mentorwpforms_payment_meta`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_id` (`payment_id`),
  ADD KEY `meta_key` (`meta_key`(191)),
  ADD KEY `meta_value` (`meta_value`(191));

--
-- Indexes for table `mentorwpforms_tasks_meta`
--
ALTER TABLE `mentorwpforms_tasks_meta`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentorwpmailsmtp_debug_events`
--
ALTER TABLE `mentorwpmailsmtp_debug_events`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentorwpmailsmtp_tasks_meta`
--
ALTER TABLE `mentorwpmailsmtp_tasks_meta`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentoryop2_pollmeta`
--
ALTER TABLE `mentoryop2_pollmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `yop_poll_id` (`yop_poll_id`);

--
-- Indexes for table `mentoryop2_polls`
--
ALTER TABLE `mentoryop2_polls`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `mentoryop2_poll_answermeta`
--
ALTER TABLE `mentoryop2_poll_answermeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `yop_poll_answer_id` (`yop_poll_answer_id`);

--
-- Indexes for table `mentoryop2_poll_answers`
--
ALTER TABLE `mentoryop2_poll_answers`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `poll_id` (`poll_id`),
  ADD KEY `question_id` (`question_id`);

--
-- Indexes for table `mentoryop2_poll_bans`
--
ALTER TABLE `mentoryop2_poll_bans`
  ADD PRIMARY KEY (`id`),
  ADD KEY `poll_id` (`poll_id`);

--
-- Indexes for table `mentoryop2_poll_custom_fields`
--
ALTER TABLE `mentoryop2_poll_custom_fields`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `poll_id` (`poll_id`);

--
-- Indexes for table `mentoryop2_poll_logs`
--
ALTER TABLE `mentoryop2_poll_logs`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `poll_id` (`poll_id`);

--
-- Indexes for table `mentoryop2_poll_questionmeta`
--
ALTER TABLE `mentoryop2_poll_questionmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `yop_poll_question_id` (`yop_poll_question_id`);

--
-- Indexes for table `mentoryop2_poll_questions`
--
ALTER TABLE `mentoryop2_poll_questions`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `poll_id` (`poll_id`);

--
-- Indexes for table `mentoryop2_poll_results`
--
ALTER TABLE `mentoryop2_poll_results`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `poll_id` (`poll_id`);

--
-- Indexes for table `mentoryop2_poll_templates`
--
ALTER TABLE `mentoryop2_poll_templates`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mentoryop2_poll_votes_custom_fields`
--
ALTER TABLE `mentoryop2_poll_votes_custom_fields`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `poll_id` (`poll_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `mentoractionscheduler_actions`
--
ALTER TABLE `mentoractionscheduler_actions`
  MODIFY `action_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4001;

--
-- AUTO_INCREMENT for table `mentoractionscheduler_claims`
--
ALTER TABLE `mentoractionscheduler_claims`
  MODIFY `claim_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3827;

--
-- AUTO_INCREMENT for table `mentoractionscheduler_groups`
--
ALTER TABLE `mentoractionscheduler_groups`
  MODIFY `group_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `mentoractionscheduler_logs`
--
ALTER TABLE `mentoractionscheduler_logs`
  MODIFY `log_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5366;

--
-- AUTO_INCREMENT for table `mentorcommentmeta`
--
ALTER TABLE `mentorcommentmeta`
  MODIFY `meta_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1481;

--
-- AUTO_INCREMENT for table `mentorcomments`
--
ALTER TABLE `mentorcomments`
  MODIFY `comment_ID` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2100;

--
-- AUTO_INCREMENT for table `mentorgla_attribute_mapping_rules`
--
ALTER TABLE `mentorgla_attribute_mapping_rules`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorgla_budget_recommendations`
--
ALTER TABLE `mentorgla_budget_recommendations`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4231;

--
-- AUTO_INCREMENT for table `mentorgla_merchant_issues`
--
ALTER TABLE `mentorgla_merchant_issues`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorgla_shipping_rates`
--
ALTER TABLE `mentorgla_shipping_rates`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorgla_shipping_times`
--
ALTER TABLE `mentorgla_shipping_times`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorjetpack_sync_queue`
--
ALTER TABLE `mentorjetpack_sync_queue`
  MODIFY `ID` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5839;

--
-- AUTO_INCREMENT for table `mentorlinks`
--
ALTER TABLE `mentorlinks`
  MODIFY `link_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_automations`
--
ALTER TABLE `mentormailpoet_automations`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_automation_runs`
--
ALTER TABLE `mentormailpoet_automation_runs`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_automation_run_logs`
--
ALTER TABLE `mentormailpoet_automation_run_logs`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_automation_run_subjects`
--
ALTER TABLE `mentormailpoet_automation_run_subjects`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_automation_versions`
--
ALTER TABLE `mentormailpoet_automation_versions`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_custom_fields`
--
ALTER TABLE `mentormailpoet_custom_fields`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_dynamic_segment_filters`
--
ALTER TABLE `mentormailpoet_dynamic_segment_filters`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_feature_flags`
--
ALTER TABLE `mentormailpoet_feature_flags`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_forms`
--
ALTER TABLE `mentormailpoet_forms`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_log`
--
ALTER TABLE `mentormailpoet_log`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_migrations`
--
ALTER TABLE `mentormailpoet_migrations`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT for table `mentormailpoet_newsletters`
--
ALTER TABLE `mentormailpoet_newsletters`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_newsletter_links`
--
ALTER TABLE `mentormailpoet_newsletter_links`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_newsletter_option`
--
ALTER TABLE `mentormailpoet_newsletter_option`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_newsletter_option_fields`
--
ALTER TABLE `mentormailpoet_newsletter_option_fields`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;

--
-- AUTO_INCREMENT for table `mentormailpoet_newsletter_posts`
--
ALTER TABLE `mentormailpoet_newsletter_posts`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_newsletter_segment`
--
ALTER TABLE `mentormailpoet_newsletter_segment`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_newsletter_templates`
--
ALTER TABLE `mentormailpoet_newsletter_templates`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=77;

--
-- AUTO_INCREMENT for table `mentormailpoet_scheduled_tasks`
--
ALTER TABLE `mentormailpoet_scheduled_tasks`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;

--
-- AUTO_INCREMENT for table `mentormailpoet_segments`
--
ALTER TABLE `mentormailpoet_segments`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `mentormailpoet_sending_queues`
--
ALTER TABLE `mentormailpoet_sending_queues`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_settings`
--
ALTER TABLE `mentormailpoet_settings`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=524;

--
-- AUTO_INCREMENT for table `mentormailpoet_statistics_bounces`
--
ALTER TABLE `mentormailpoet_statistics_bounces`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_statistics_clicks`
--
ALTER TABLE `mentormailpoet_statistics_clicks`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_statistics_forms`
--
ALTER TABLE `mentormailpoet_statistics_forms`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_statistics_newsletters`
--
ALTER TABLE `mentormailpoet_statistics_newsletters`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_statistics_opens`
--
ALTER TABLE `mentormailpoet_statistics_opens`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_statistics_unsubscribes`
--
ALTER TABLE `mentormailpoet_statistics_unsubscribes`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_statistics_woocommerce_purchases`
--
ALTER TABLE `mentormailpoet_statistics_woocommerce_purchases`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_stats_notifications`
--
ALTER TABLE `mentormailpoet_stats_notifications`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_subscribers`
--
ALTER TABLE `mentormailpoet_subscribers`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `mentormailpoet_subscriber_custom_field`
--
ALTER TABLE `mentormailpoet_subscriber_custom_field`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_subscriber_segment`
--
ALTER TABLE `mentormailpoet_subscriber_segment`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `mentormailpoet_subscriber_tag`
--
ALTER TABLE `mentormailpoet_subscriber_tag`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_tags`
--
ALTER TABLE `mentormailpoet_tags`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_user_agents`
--
ALTER TABLE `mentormailpoet_user_agents`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentormailpoet_user_flags`
--
ALTER TABLE `mentormailpoet_user_flags`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentoroptions`
--
ALTER TABLE `mentoroptions`
  MODIFY `option_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=571191;

--
-- AUTO_INCREMENT for table `mentorpollsa`
--
ALTER TABLE `mentorpollsa`
  MODIFY `polla_aid` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `mentorpollsip`
--
ALTER TABLE `mentorpollsip`
  MODIFY `pollip_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mentorpollsq`
--
ALTER TABLE `mentorpollsq`
  MODIFY `pollq_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `mentorpostmeta`
--
ALTER TABLE `mentorpostmeta`
  MODIFY `meta_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5779;

--
-- AUTO_INCREMENT for table `mentorposts`
--
ALTER TABLE `mentorposts`
  MODIFY `ID` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2293;

--
-- AUTO_INCREMENT for table `mentortermmeta`
--
ALTER TABLE `mentortermmeta`
  MODIFY `meta_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `mentorterms`
--
ALTER TABLE `mentorterms`
  MODIFY `term_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT for table `mentorterm_taxonomy`
--
ALTER TABLE `mentorterm_taxonomy`
  MODIFY `term_taxonomy_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT for table `mentorusermeta`
--
ALTER TABLE `mentorusermeta`
  MODIFY `umeta_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=754;

--
-- AUTO_INCREMENT for table `mentorusers`
--
ALTER TABLE `mentorusers`
  MODIFY `ID` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `mentorwc_admin_notes`
--
ALTER TABLE `mentorwc_admin_notes`
  MODIFY `note_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=78;

--
-- AUTO_INCREMENT for table `mentorwc_admin_note_actions`
--
ALTER TABLE `mentorwc_admin_note_actions`
  MODIFY `action_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5827;

--
-- AUTO_INCREMENT for table `mentorwc_customer_lookup`
--
ALTER TABLE `mentorwc_customer_lookup`
  MODIFY `customer_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;

--
-- AUTO_INCREMENT for table `mentorwc_download_log`
--
ALTER TABLE `mentorwc_download_log`
  MODIFY `download_log_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwc_orders_meta`
--
ALTER TABLE `mentorwc_orders_meta`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=550;

--
-- AUTO_INCREMENT for table `mentorwc_order_addresses`
--
ALTER TABLE `mentorwc_order_addresses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=200;

--
-- AUTO_INCREMENT for table `mentorwc_order_operational_data`
--
ALTER TABLE `mentorwc_order_operational_data`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=260;

--
-- AUTO_INCREMENT for table `mentorwc_product_download_directories`
--
ALTER TABLE `mentorwc_product_download_directories`
  MODIFY `url_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `mentorwc_rate_limits`
--
ALTER TABLE `mentorwc_rate_limits`
  MODIFY `rate_limit_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwc_tax_rate_classes`
--
ALTER TABLE `mentorwc_tax_rate_classes`
  MODIFY `tax_rate_class_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `mentorwc_webhooks`
--
ALTER TABLE `mentorwc_webhooks`
  MODIFY `webhook_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwfblocks7`
--
ALTER TABLE `mentorwfblocks7`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=99294;

--
-- AUTO_INCREMENT for table `mentorwfhits`
--
ALTER TABLE `mentorwfhits`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=200065;

--
-- AUTO_INCREMENT for table `mentorwfhoover`
--
ALTER TABLE `mentorwfhoover`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwfissues`
--
ALTER TABLE `mentorwfissues`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=52499;

--
-- AUTO_INCREMENT for table `mentorwfknownfilelist`
--
ALTER TABLE `mentorwfknownfilelist`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28478;

--
-- AUTO_INCREMENT for table `mentorwflogins`
--
ALTER TABLE `mentorwflogins`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=64224;

--
-- AUTO_INCREMENT for table `mentorwfls_2fa_secrets`
--
ALTER TABLE `mentorwfls_2fa_secrets`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwfpendingissues`
--
ALTER TABLE `mentorwfpendingissues`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwfsecurityevents`
--
ALTER TABLE `mentorwfsecurityevents`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwfsnipcache`
--
ALTER TABLE `mentorwfsnipcache`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=134011;

--
-- AUTO_INCREMENT for table `mentorwfstatus`
--
ALTER TABLE `mentorwfstatus`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=136643;

--
-- AUTO_INCREMENT for table `mentorwfwaffailures`
--
ALTER TABLE `mentorwfwaffailures`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_api_keys`
--
ALTER TABLE `mentorwoocommerce_api_keys`
  MODIFY `key_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_attribute_taxonomies`
--
ALTER TABLE `mentorwoocommerce_attribute_taxonomies`
  MODIFY `attribute_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_downloadable_product_permissions`
--
ALTER TABLE `mentorwoocommerce_downloadable_product_permissions`
  MODIFY `permission_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_log`
--
ALTER TABLE `mentorwoocommerce_log`
  MODIFY `log_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_order_itemmeta`
--
ALTER TABLE `mentorwoocommerce_order_itemmeta`
  MODIFY `meta_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1771;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_order_items`
--
ALTER TABLE `mentorwoocommerce_order_items`
  MODIFY `order_item_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=260;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_payment_tokenmeta`
--
ALTER TABLE `mentorwoocommerce_payment_tokenmeta`
  MODIFY `meta_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_payment_tokens`
--
ALTER TABLE `mentorwoocommerce_payment_tokens`
  MODIFY `token_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_sessions`
--
ALTER TABLE `mentorwoocommerce_sessions`
  MODIFY `session_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=970;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_shipping_zones`
--
ALTER TABLE `mentorwoocommerce_shipping_zones`
  MODIFY `zone_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_shipping_zone_locations`
--
ALTER TABLE `mentorwoocommerce_shipping_zone_locations`
  MODIFY `location_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_shipping_zone_methods`
--
ALTER TABLE `mentorwoocommerce_shipping_zone_methods`
  MODIFY `instance_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_tax_rates`
--
ALTER TABLE `mentorwoocommerce_tax_rates`
  MODIFY `tax_rate_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mentorwoocommerce_tax_rate_locations`
--
ALTER TABLE `mentorwoocommerce_tax_rate_locations`
  MODIFY `location_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mentorwpfm_backup`
--
ALTER TABLE `mentorwpfm_backup`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwpforms_logs`
--
ALTER TABLE `mentorwpforms_logs`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwpforms_payments`
--
ALTER TABLE `mentorwpforms_payments`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwpforms_payment_meta`
--
ALTER TABLE `mentorwpforms_payment_meta`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwpforms_tasks_meta`
--
ALTER TABLE `mentorwpforms_tasks_meta`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `mentorwpmailsmtp_debug_events`
--
ALTER TABLE `mentorwpmailsmtp_debug_events`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentorwpmailsmtp_tasks_meta`
--
ALTER TABLE `mentorwpmailsmtp_tasks_meta`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `mentoryop2_pollmeta`
--
ALTER TABLE `mentoryop2_pollmeta`
  MODIFY `meta_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `mentoryop2_polls`
--
ALTER TABLE `mentoryop2_polls`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `mentoryop2_poll_answermeta`
--
ALTER TABLE `mentoryop2_poll_answermeta`
  MODIFY `meta_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `mentoryop2_poll_answers`
--
ALTER TABLE `mentoryop2_poll_answers`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `mentoryop2_poll_bans`
--
ALTER TABLE `mentoryop2_poll_bans`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentoryop2_poll_custom_fields`
--
ALTER TABLE `mentoryop2_poll_custom_fields`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mentoryop2_poll_logs`
--
ALTER TABLE `mentoryop2_poll_logs`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `mentoryop2_poll_questionmeta`
--
ALTER TABLE `mentoryop2_poll_questionmeta`
  MODIFY `meta_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `mentoryop2_poll_questions`
--
ALTER TABLE `mentoryop2_poll_questions`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `mentoryop2_poll_results`
--
ALTER TABLE `mentoryop2_poll_results`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `mentoryop2_poll_templates`
--
ALTER TABLE `mentoryop2_poll_templates`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `mentoryop2_poll_votes_custom_fields`
--
ALTER TABLE `mentoryop2_poll_votes_custom_fields`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;

