Commit dd724732 by Scott

Add new responsive Snow theme

parent e0ab5d19
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Copyright (C) 2014 by original authors @ fontello.com</metadata>
<defs>
<font id="fontello" horiz-adv-x="1000" >
<font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
<missing-glyph horiz-adv-x="1000" />
<glyph glyph-name="link" unicode="&#xe800;" d="m9 600q0 67 47 113l82 82q47 46 114 46 67 0 114-47l114-116q47-46 47-113 0-69-49-117l49-49q48 49 116 49 67 0 114-47l116-116q47-47 47-114t-48-113l-82-81q-46-47-113-47-68 0-114 48l-115 115q-46 47-46 114 0 68 49 116l-49 49q-48-49-116-49-67 0-114 47l-116 116q-47 47-47 114z m107 0q0-22 16-38l116-116q15-15 38-15 23 0 40 17-2 2-11 11t-12 12-8 10-7 14-2 16q0 22 15 38t38 15q9 0 16-2t14-7 10-8 12-12 11-11q18 17 18 41 0 22-15 38l-115 115q-16 16-38 16-22 0-38-15l-82-82q-16-15-16-37z m392-393q0-23 16-38l115-116q15-15 38-15 22 0 38 15l82 81q15 16 15 37 0 23-15 38l-116 116q-16 16-38 16-24 0-40-18 1-1 10-10t12-12 9-11 7-14 2-15q0-23-16-38t-38-16q-8 0-15 2t-14 7-11 9-12 12-10 10q-19-17-19-40z" horiz-adv-x="928.6" />
<glyph glyph-name="help" unicode="&#xe801;" d="m494 740q86-62 86-184 0-64-42-124-12-20-88-80l-46-30q-40-34-48-60-6-16-8-44 0-14-16-14l-128 0q-16 0-16 12 4 98 28 124 16 22 48 48t56 42l24 14q22 16 34 34 28 44 28 70 0 40-26 78-28 36-92 36-68 0-94-44-28-42-28-92l-166 0q6 162 114 232 70 42 166 42 130 0 214-60z m-216-636q44 0 73-30t27-74q-2-46-32-73t-74-25q-44 0-73 29t-27 75 32 73 74 25z" horiz-adv-x="580" />
<glyph glyph-name="comment" unicode="&#xe802;" d="m0 96l0 713 1000 0 0-713-473 0-320-205 0 205-207 0z" horiz-adv-x="1000" />
<glyph glyph-name="comment-alt" unicode="&#xe803;" d="m0 192l0 607 854 0 0-607-405 0-273-176 0 176-176 0z m348-112l119 77 129 0 9-6 170-112 0 118 149 0 0 433-31 0 0 76 107 0 0-586-148 0 0-179-59 37-221 142-224 0z" horiz-adv-x="1000" />
<glyph glyph-name="chart-line" unicode="&#xe804;" d="m34 284q-42 10-32 56 10 42 54 32l98-24-52-80z m890-12q14 12 33 11t31-15q32-32-2-64l-252-226q-12-12-30-12-14 0-28 10l-286 220-54 14 50 80 36-8q12-4 16-8l264-204z m-490 220l-350-550q-12-22-38-22-12 0-24 8-16 10-20 29t6 33l374 588q8 16 28 20 18 6 36-6l246-156 226 326q10 16 28 19t34-9q38-24 12-62l-252-362q-24-36-62-12z" horiz-adv-x="1003" />
<glyph glyph-name="coffee" unicode="&#xe805;" d="m0 64h1000q0-59-42-101t-101-42h-714q-59 0-101 42t-42 101z m143 197v410q0 15 11 26t25 10h642q89 0 152-63t63-151-63-152-152-62h-35v-18q0-52-37-88t-88-37h-393q-51 0-88 37t-37 88z m643 125h35q45 0 76 31t32 76-32 76-76 31h-35v-214z" horiz-adv-x="1071.4" />
<glyph glyph-name="tag" unicode="&#xe806;" d="m944 830q36-106-8-199t-128-157l18-24q16-28 6-54l-48-158q-12-30-36-46l-464-328q-42-30-64 4l-210 304q-12 18-9 39t21 33l464 328q26 18 54 18l158 0q30 0 48-26l28-40q168 130 114 286-10 28 18 40 32 8 38-20z m-216-468q40 32 34 80l-32-16q-8-4-12-4-18 0-28 18-12 30 16 40l24 14q-48 34-92 0-28-18-34-51t14-61q18-26 51-32t59 12z" horiz-adv-x="960" />
<glyph glyph-name="tags" unicode="&#xe807;" d="m0 475v232q0 29 21 50t50 22h233q29 0 65-15t57-36l399-399q20-21 20-50 0-30-20-51l-274-274q-22-21-51-21-30 0-50 21l-399 399q-21 21-36 57t-15 65z m107 125q0-30 21-50t51-21 50 21 21 50-21 51-50 20-51-20-21-51z m286 179h125q29 0 65-15t57-36l399-399q21-21 21-50 0-30-21-51l-274-274q-22-21-51-21-20 0-33 8t-29 25l262 262q21 21 21 51 0 29-21 50l-399 399q-21 21-57 36t-65 15z" horiz-adv-x="1071.4" />
<glyph glyph-name="spread" unicode="&#xe808;" d="m0 493q0 57 41 98t98 41q58 0 99-41t40-98q0-40-21-73l282-281q19 12 39 17v388q-46 12-76 49t-30 87q0 57 41 98t99 40q57 0 98-40t40-98q0-49-30-87t-76-49v-388q20-5 39-17l282 281q-21 34-21 73 0 58 41 98t98 41 98-41 41-98-41-99-98-41q-37 0-72 22l-282-282q21-33 21-72 0-58-40-99t-98-41q-59 0-99 41t-41 99q0 39 21 72l-282 282q-35-22-72-22-57 0-98 41t-41 99z" horiz-adv-x="1222.7" />
<glyph glyph-name="group" unicode="&#xe809;" d="m0 106l0 134q0 26 18 32l171 80q-66 39-68 131 0 56 35 103 37 41 90 43 31 0 63-19-49-125 23-237-12-11-25-19l-114-55q-48-23-52-84l0-143-114 0q-25 0-27 34z m193-59l0 168q0 27 22 37l152 70 57 28q-37 23-60 66t-22 94q0 76 46 130t110 54 109-54 45-130q0-106-78-158l61-30 146-70q24-10 24-37l0-168q-2-37-37-41l-541 0q-14 2-24 14t-10 27z m473 330q68 106 22 231 31 19 66 21 49 0 90-43 35-41 35-103 0-82-65-131l168-80q18-10 18-32l0-134q0-32-27-34l-118 0 0 143q0 57-50 84l-110 53q-15 8-29 25z" horiz-adv-x="1000" />
<glyph glyph-name="wrench" unicode="&#xe80a;" d="m951 461c14-13 14-35 0-50l-67-68c-14-14-35-14-50 0l-15 16c-11 10-16 29-10 37 11 8 7 30-14 50-30 32-69 33-84 17-6-5-26-27-26-27l-92 92 15 15s3 3 11 12c29 29-1 61-1 61-82 80-195 79-195 79l-2 29c229 59 315-41 347-73l66-66c16-16 0-62 24-89 11-11 26-16 37-16 13 11 33 8 43-4z m-406-168l220-198c31-31 30-81-1-114-33-31-83-31-114 2l-201 212-188-226c-17-19-48-19-67 0l-49 50c-19 17-19 49 0 67l215 200-104 100c-33 33-53 43-81 34-27-10-66-10-102 14-78 50-73 144-73 144l6 10s70-45 79-50c11-9 50-27 85 27 36 54 6 88-4 94-8 5-78 51-78 51l6 10s81 41 157-4c0-2 19-13 27-20 48-43 48-92 40-132-8-36 0-49 28-80l104-104 124 126 90-92z m191-284c17 15 17 44 0 60s-42 16-60 0c-15-16-15-44 0-59 18-16 44-19 60-1z" horiz-adv-x="951" />
<glyph glyph-name="article" unicode="&#xe80b;" d="m696 661l0-82-696 0 0 82 696 0z m-182-180l0-82-514 0 0 82 514 0z m182-180l0-82-696 0 0 82 696 0z m-182-180l0-82-514 0 0 82 514 0z" horiz-adv-x="696" />
<glyph glyph-name="docs" unicode="&#xe80c;" d="m970 480q38-10 30-46l-150-556q-4-16-18-23t-30-3l-406 110q-16 4-24 18t-4 28l24 92-180-48q-40-10-50 26l-160 602q-10 36 28 48l454 122q16 4 30-3t18-23l66-244z m-888 190l144-542 392 106-144 540z m702-742l132 492-298 82 76-282q10-34-28-46l-196-52-26-102z" horiz-adv-x="1001" />
<glyph glyph-name="infinity" unicode="&#xe80d;" d="m796 570q84 0 144-53t60-167q0-112-60-166t-144-54q-78 0-157 40t-139 106q-58-66-137-106t-157-40q-86 0-146 54t-60 166q0 114 60 167t146 53q78 0 157-39t137-105q58 66 138 105t158 39z m-590-352q60 0 127 37t113 95q-46 58-112 95t-128 37q-114 0-114-132t114-132z m590 0q114 0 114 132t-114 132q-62 0-129-37t-111-95q44-58 111-95t129-37z" horiz-adv-x="1000" />
<glyph glyph-name="user" unicode="&#xe80e;" d="m736 128q204-72 204-122l0-106-940 0 0 106q0 50 204 122 94 34 128 69t34 95q0 22-22 49t-32 73q-2 12-9 18t-14 8-14 17-9 43q0 16 5 26t9 12l4 4q-8 50-12 88-4 54 41 112t157 58 158-58 40-112l-12-88q18-8 18-42-2-28-9-43t-14-17-14-8-9-18q-8-48-31-74t-23-48q0-60 35-95t127-69z" horiz-adv-x="940" />
<glyph glyph-name="key" unicode="&#xe80f;" d="m774 612q20-116-28-215t-150-117q-66-12-130-2l-118-194-70-12-104-166q-14-28-46-32l-76-14q-12-4-22 4t-12 22l-16 98q-8 30 12 56l258 386q-24 50-38 120-18 106 53 187t185 101q106 20 195-45t107-177z m-126-76q30 44 21 97t-51 83q-42 32-92 22t-80-54q-8-12-12-23t-1-20 5-16 13-17 18-15 22-16 23-17q6-4 22-16t23-16 19-12 19-8 17 1 18 8 16 19z" horiz-adv-x="780" />
<glyph glyph-name="money" unicode="&#xe810;" d="m238 378c13 16 35 21 65 24l0-85c-50 5-75 9-75 39 0 7 2 15 10 22z m107-241l0 91c59-5 78-9 78-35 0-30-24-49-78-56z m70 244c30-17 36-24 36-38l8-4 45 90-6 5c-7-5-10-7-14-7s-8 0-13 4c-61 23-90 35-126 35l0 17c0 9 5 15 20 19l0 9-79 0 0-9c14-4 17-11 17-19l0-15c-97-4-153-50-153-122 0-74 40-100 153-110l0-97c-78 8-117 38-117 64l-7 4-41-94 6-4c6 4 9 5 12 5 2 0 7 0 9-2 48-24 94-38 138-40l0-19c0-10-3-16-17-20l0-9 79 0 0 9c-15 4-20 9-20 20l0 19c96 5 159 54 159 126 0 70-53 106-149 115l-10 0 0 88c23-2 46-8 70-20z m41 181c117-50 198-165 198-300 0-181-146-328-326-328-182 0-328 147-328 328 0 135 81 250 198 300l-82 179c0 17 12 25 28 25l366 0c16 0 28-7 28-25z" horiz-adv-x="654" />
<glyph glyph-name="wallet" unicode="&#xe811;" d="m0 22l0 625q0 70 51 121t121 51l640 0q40 0 67-28t27-66l0-281q94-71 94-188t-94-187l0-47q0-70-51-121t-121-51l-562 0q-70 0-121 51t-51 121z m63 0q0-45 32-77t77-33l562 0q45 0 78 33t32 77l0 47-281 0q-65 0-111 46t-46 110 46 110 111 46l281 0 0 63q0 13-9 22t-23 9l-640 0q-63 0-109 39l0-492z m0 625q0-45 31-76l0 123q0 13 9 22t22 9l656 0q14 0 23-9t9-22l0-156q15 0 31-6l0 193q0 14-9 22t-23 9l-640 0q-45 0-77-32t-32-77z m62-98q23-11 47-11l609 0 0 31-656 0 0-20z m0 51l656 0 0 31-656 0 0-31z m0 62l656 0 0 32-656 0 0-32z m344-437q0-39 27-66t67-28l320 0q54 51 54 125 0 59-35 104l0-2q-4-8-7-14-20-25-51-25l-281 0q-40 0-67-28t-27-66z m31 0q0 25 19 44t44 19 43-19 19-44-19-44-43-18-44 18-19 44z" horiz-adv-x="1000" />
<glyph glyph-name="arrows-cw" unicode="&#xe812;" d="m0-7v250q0 14 11 25t25 11h250q14 0 25-11t10-25-10-25l-77-77q40-37 90-57t105-20q74 0 139 37t104 99q6 10 29 66 5 13 17 13h107q8 0 13-6t5-12q0-3 0-4-36-150-150-243t-267-93q-81 0-157 31t-136 88l-72-72q-11-11-25-11t-25 11-11 25z m10 446v4q36 150 151 243t268 93q81 0 158-31t137-88l72 72q11 11 25 11t26-11 10-25v-250q0-14-10-25t-26-11h-250q-14 0-25 11t-10 25 10 25l77 77q-82 77-194 77-75 0-140-37t-104-99q-6-10-29-66-5-13-17-13h-111q-7 0-13 6t-5 12z" horiz-adv-x="857.1" />
<glyph glyph-name="power" unicode="&#xe813;" d="m339 75q95 0 164 69t70 166q0 97-69 166-15 15-15 36t15 36 37 15 37-15q100-100 100-238 0-140-100-240-99-99-239-99-141 0-240 99t-99 240q0 140 99 238 15 15 37 15t37-15 15-36-15-36q-69-69-69-166 0-97 69-166t166-69z m0 291q-21 0-37 15t-16 36l0 261q0 22 16 37t37 15 36-15 15-37l0-261q0-21-15-36t-36-15z" horiz-adv-x="678" />
<glyph glyph-name="th-list" unicode="&#xe814;" d="m0-150l0 250 250 0 0-250-250 0z m0 375l0 250 250 0 0-250-250 0z m0 375l0 250 250 0 0-250-250 0z m391-750l0 250 609 0 0-250-609 0z m0 375l0 250 609 0 0-250-609 0z m0 375l0 250 609 0 0-250-609 0z" horiz-adv-x="1000" />
<glyph glyph-name="left-open-big" unicode="&#xe815;" d="m452-20q26-26 0-48-26-26-48 0l-392 394q-24 24 0 50l392 394q22 26 48 0 26-22 0-48l-358-372z" horiz-adv-x="465" />
<glyph glyph-name="right-open-big" unicode="&#xe816;" d="m13-20l358 370-358 372q-26 26 0 48 26 26 48 0l392-394q24-26 0-50l-392-394q-22-26-48 0-26 22 0 48z" horiz-adv-x="465" />
<glyph glyph-name="down-open-big" unicode="&#xe817;" d="m63 570l370-356 372 356q22 26 48 0 26-22 0-48l-396-392q-22-22-48 0l-396 392q-26 26 0 48 24 24 50 0z" horiz-adv-x="866" />
<glyph glyph-name="up-open-big" unicode="&#xe818;" d="m804 130l-372 358-370-358q-26-22-50 0-24 24 0 50l396 390q26 26 48 0l396-390q24-26 0-50-26-22-48 0z" horiz-adv-x="864" />
<glyph glyph-name="down-open-mini" unicode="&#xe819;" d="m405 470q22 26 48 0 26-22 0-48l-196-192q-22-22-48 0l-196 192q-26 26 0 48 24 24 50 0l170-156z" horiz-adv-x="466" />
<glyph glyph-name="up-open-mini" unicode="&#xe81a;" d="m62 230q-26-22-50 0-24 24 0 50l196 190q26 26 48 0l196-190q24-26 0-50-24-22-50 0l-170 158z" horiz-adv-x="464" />
<glyph glyph-name="right-open-mini" unicode="&#xe81b;" d="m13 180l158 170-158 172q-26 26 0 48 26 26 48 0l192-194q24-26 0-50l-192-194q-22-26-48 0-26 22 0 48z" horiz-adv-x="265" />
<glyph glyph-name="left-open-mini" unicode="&#xe81c;" d="m252 180q26-26 0-48-26-26-48 0l-192 194q-24 24 0 50l192 194q22 26 48 0 26-22 0-48l-156-172z" horiz-adv-x="265" />
<glyph glyph-name="rss" unicode="&#xe81d;" d="m0 730q314 0 537-223t223-537l-118 0q0 266-188 453t-454 187l0 120z m0-238q218 0 371-153t153-369l-118 0q0 166-119 285t-287 119l0 118z m114-296q46 0 80-33t34-81q0-46-34-79t-80-33-80 33-34 79q0 48 34 81t80 33z" horiz-adv-x="760" />
<glyph glyph-name="facebook" unicode="&#xe81e;" d="m0-150l0 1000 1000 0 0-1000-1000 0z m471 469l92 0 0-352 132 0 0 352 129 0 6 127-135 0 0 94q0 31 12 43t41 13l80 0 2 117q-59 6-88 6l-23 0q-31 0-57-10-99-39-99-154l0-109-92 0 0-127z" horiz-adv-x="1000" />
<glyph glyph-name="twitter" unicode="&#xe81f;" d="m749-25c0-34-13-64-37-88-25-25-54-37-89-37l-248 0c-103 0-192 36-265 110-73 73-110 161-110 264l0 501c0 35 12 65 37 89 24 24 54 36 89 36 34 0 64-12 88-37 25-24 37-54 37-88l0-181 353 0c32 0 60-12 83-35 22-22 34-49 34-81 0-32-12-59-34-82-23-23-51-34-82-34l-354 0 0-88c0-34 12-64 36-88 24-24 54-36 88-36l248 0c35 0 64-12 89-37 24-24 37-54 37-88" horiz-adv-x="749" />
<glyph glyph-name="twitter-bird" unicode="&#xe820;" d="m1231 732q-51-77-126-131 1-14 1-32 0-102-30-203-29-102-90-195-61-92-145-164-84-72-201-114-118-43-253-43-210 0-387 113 31-3 60-3 176 0 314 108-82 2-147 51-64 49-89 125 24-5 48-5 34 0 66 9-87 17-145 87-57 69-57 160l0 4q53-30 114-32-52 34-82 90-30 55-30 120 0 68 34 127 95-117 230-186 135-70 290-78-6 28-6 58 0 104 74 178 74 74 178 74 110 0 185-80 85 17 160 62-29-91-111-140 76 9 145 39z" horiz-adv-x="1231" />
<glyph glyph-name="googleplus" unicode="&#xe821;" d="m0-150l0 125q51 59 143 76 82 12 105 12 18 0 35-2 14-12 63-45t72-55q55-47 55-95 0-10-2-16l-471 0z m0 207l0 254q90-66 203-51-27-68 2-115 14-21 29-43l-50 0q-131-4-184-45z m0 617l0 176 1000 0 0-271-184 0 0 185-80 0 0-185-185 0 0-77 185 0 0-187 80 0 0 187 184 0 0-652-443 0q19 72-6 131-26 57-84 107-28 24-102 82-39 28-39 63 2 31 41 72 57 43 82 82 35 53 35 125 0 67-31 119-19 32-56 67l87 0 82 66-306 0q-74-2-145-24t-115-66z m59-60q13 58 70 86 25 11 55 13 45 0 80-27 68-57 91-154 20-78 2-129-23-67-74-80-78-22-133 15-64 51-86 141-15 68-5 135z" horiz-adv-x="1000" />
<glyph glyph-name="linkedin" unicode="&#xe822;" d="m0-150l0 1000 1000 0 0-1000-1000 0z m164 729q2-34 25-54t53-23l2 0q35 2 59 24t23 53q-2 33-25 53t-55 21q-35 0-58-22t-24-52z m8-569l144 0 0 434-144 0 0-434z m225 0l144 0 0 242q0 24 4 36 27 52 74 52 72-2 72-97l0-233 145 0 0 248q-2 98-47 149-47 47-119 49-53-2-86-26-21-15-43-47l0 61-144 0q1-18 1-70 0-90-1-364z" horiz-adv-x="1000" />
<glyph glyph-name="youtube" unicode="&#xe823;" d="m0 123q0 54 6 162 4 53 38 87t87 36q100 5 301 5t301-5q53-3 87-36t38-87q5-90 5-162t-5-162q-4-53-38-87t-87-36q-100-5-301-5t-301 5q-53 3-87 36t-38 87q-6 108-6 162z m67 141l61 0 0-326 59 0 0 326 61 0 0 55-181 0 0-55z m65 603l60 0 38-152 4 0 36 152 60 0-46-148q-23-73-23-75l0-158-59 0 0 151q-2 14-5 26t-9 26-9 25z m116-885q0-48 36-48 32 0 61 35l0-31 52 0 0 281-52 0 0-214q-21-21-31-21-14 0-14 19l0 216-52 0 0-237z m79 575l0 146q0 34 22 53t56 18q33 0 54-20t20-53l0-145q0-36-20-56t-56-21q-35 0-55 22t-21 56z m54-7q0-23 22-23 23 0 23 25l0 153q0 9-7 15t-16 6-15-5-7-15l0-156z m67-612l53 0 0 21q20-25 50-25 47 0 47 62l0 156q0 71-51 71-25 0-46-27l0 123-53 0 0-381z m53 53l0 176q11 11 22 11 22 0 22-28l0-148q0-24-19-24-14 0-25 13z m23 539l0 237 52 0 0-215q0-19 14-19 13 0 31 21l0 213 52 0 0-281-52 0 0 31q-29-35-61-35-36 0-36 48z m114-513q0-38 19-63t57-24q78 0 78 87l0 21-54 0q0-2 1-13t-1-17-2-14-7-12-14-3q-23 0-23 40l0 53 100 0 0 72q0 38-18 60t-57 22q-36 0-57-23t-22-59l0-127z m54 99l0 30q0 31 23 31t23-31l0-30-46 0z" horiz-adv-x="863" />
<glyph glyph-name="vimeo" unicode="&#xe824;" d="m0-150l0 1000 1000 0 0-1000-1000 0z m133 600q2-4 8-12t7-10q12-12 38-4 25 10 41 9t29-26q27-74 74-252 31-102 76-121 26-6 52 0t46 17q119 76 213 239 2 3 26 50t33 69 23 60 12 68-18 47q-53 41-108 27t-101-58-62-94q48 0 58-4 29-15 25-64-11-51-37-100t-58-54q-14 0-30 17-19 24-27 50t-13 71-6 55q0 2-5 31t-8 42-11 35-19 36-28 18q-66 10-156-74-37-33-74-65l0-3z" horiz-adv-x="1000" />
<glyph glyph-name="pinterest" unicode="&#xe825;" d="m0 491q0 63 27 125t76 115 130 86 178 33q159 0 261-98t102-231q0-171-86-282t-224-112q-45 0-84 21t-56 51l-40-158q-5-19-13-38t-17-38-19-34-19-30-17-24-13-16l-6-8q-3-4-8-3t-6 6q0 1-1 14t-3 27-3 38-1 44 3 48 7 48q11 47 74 313-8 16-13 39t-5 36l-1 15q0 64 33 107t78 42q37 0 58-24t20-62q0-23-8-56t-23-77-20-71q-10-45 18-78t73-33q79 0 131 90t51 216q0 97-63 159t-176 61q-126 0-204-81t-79-194q0-67 38-113 13-15 8-32-2-5-6-23t-6-23q-2-11-10-14t-18 0q-59 24-88 83t-30 136z" horiz-adv-x="774" />
<glyph glyph-name="facebook-1" unicode="&#xe826;" d="m0 313l0 191 154 0 0 96q0 104 68 177t163 73l153 0 0-191-153 0q-15 0-27-16t-12-41l0-98 192 0 0-191-192 0 0-463-192 0 0 463-154 0z" horiz-adv-x="538" />
<glyph glyph-name="vimeo-1" unicode="&#xe827;" d="m0 578q55 65 110 116t96 78 72 43 48 21l17 4q12 2 24 2 19 0 35-6 26-10 43-34t29-55 21-72 15-78 14-79 14-71q32-125 52-177t41-53q24 0 67 56t93 151q26 48 26 91 0 13-2 23-9 52-51 65-11 4-24 4-35 0-83-26 22 130 134 209 85 60 174 60 12 0 24-1 102-8 139-90 18-38 18-88 0-29-6-61-18-102-69-208t-113-187-133-155-123-118-91-68q-42-24-78-24t-70 21-56 48-38 57q-18 38-97 299t-97 280q-1 2-4 4t-13 5-24 0-37-14-50-33z" horiz-adv-x="1146" />
<glyph glyph-name="linkedin-1" unicode="&#xe828;" d="m0 730q0 50 35 83t91 32q55 0 89-32 35-33 35-86 0-48-34-80-35-33-92-33l-1 0q-55 0-89 33t-34 83z m13-875l0 668 222 0 0-668-222 0z m345 0l222 0 0 373q0 35 8 54 14 34 43 58t71 23q112 0 112-151l0-357 222 0 0 383q0 148-70 225t-185 76q-129 0-201-111l0-2-1 0 1 2 0 95-222 0q2-32 2-199t-2-469z" horiz-adv-x="1036" />
<glyph glyph-name="gplus" unicode="&#xe829;" d="m0 32q0 87 89 155t215 68l54 0q-42 40-42 86 0 29 16 58-10-1-29-1-104 0-170 65t-66 160q0 91 82 159t187 68l310 0-69-50-98 0q47-18 74-68t26-111q0-93-88-162-37-29-48-46t-11-42q0-19 27-48t54-49q61-43 85-88t23-113q0-90-82-157t-222-66q-133 0-225 50t-92 132z m112 33q0-69 59-118t145-48q119 0 173 44t53 117q0 19-4 32-3 11-7 21t-12 19-14 16-19 16-21 15-25 18-26 17q-39 12-77 12-90 1-157-47t-68-114z m66 559q11-79 61-136t109-58q59-2 94 52t25 133-59 134-110 57-95-51-25-131z m555-24l0 50 200 0 0 200 50 0 0-200 201 0 0-50-201 0 0-201-50 0 0 201-200 0z" horiz-adv-x="1184" />
<glyph glyph-name="github" unicode="&#xe82a;" d="m0 3q0-63 62-108t150-45 151 45 62 108q0 64-62 109t-151 45q-1 0-3 0t-3-1q-24 22-24 48t24 53q71 4 120 55t49 121q0 28-7 50 28 5 44 14l0 115q-48-32-109-32l-7 0q-46 31-101 31-75 0-128-52t-53-126q0-47 24-87t64-64q-28-36-28-74 0-36 26-75-46-21-73-55t-27-75z m121 432q0 33 22 57t50 23q30 0 51-23t21-57-21-56-51-24q-29 0-50 24t-22 56z m3-432q0 27 26 46t62 18 63-18 26-46q0-26-26-45t-63-19-62 19-26 45z m331 766q0 34 24 58t57 23 58-23 24-58-24-58-58-24-57 24-24 58z m19-647l0 479 134 0 0-479-134 0z m181 377l55 0 0-285q4-30 20-51t34-32 38-16 30-7l20 0q27 0 48 8 23 8 30 16l7 9 2 99q-42-13-65-13-5 0-9 1-23 3-27 16l-4 13q0 3-1 4l0 238 91 0 0 102-91 0 0 93-123 0 0-93-55 0 0-102z" horiz-adv-x="939" />
<glyph glyph-name="wordpress" unicode="&#xe82b;" d="m0 350q4 209 151 354t349 146q207-4 353-151t147-349q-4-207-151-353t-349-147q-209 4-353 151t-147 349z m35 0q2-193 140-328t325-137q193 4 328 141t137 324q-4 193-141 328t-324 137q-193-4-329-141t-136-324z m41-30q-8 108 33 200l205-553q-109 55-173 155-57 89-65 198z m69 264q62 90 157 140t198 52q168-4 287-111-47 1-70-40-4-25-6-39t7-35 14-33 18-31l18-30q33-62 7-144l-62-219-154 459q43 4 46 4 12 4 15 14t-7 15q-6 6-11 6l-94-8-70 0q-4 0-27 4t-37 2-17-13q-3-16 14-20 33-4 47-6l68-179-93-278-157 459q43 4 49 4 18 2 16 20-4 15-20 15-70-10-136-8z m234-642l129 367 133-359q-131-45-262-8z m334 39q6 19 21 62l120 346q15 49 23 111 2 28-2 49 76-162 33-312-51-172-195-256z" horiz-adv-x="1000" />
<glyph glyph-name="ok" unicode="&#xe82c;" d="m68 332q0 22 15 38l76 76q16 16 38 16t38-16l164-165 366 367q16 16 38 16t38-16l76-76q15-16 15-38t-15-38l-404-404-76-76q-16-15-38-15t-38 15l-76 76-202 202q-15 16-15 38z" horiz-adv-x="1000" />
<glyph glyph-name="ok-circled" unicode="&#xe82d;" d="m0 350q0 117 58 215t155 156 216 58 215-58 156-156 57-215-57-215-156-156-215-58-216 58-155 156-58 215z m141-11q0-15 10-25l202-202q10-10 25-10 15 0 25 10l303 303q11 10 11 25 0 16-11 26l-50 50q-11 11-25 11t-26-11l-227-227-126 126q-11 11-25 11t-26-11l-50-50q-10-10-10-26z" horiz-adv-x="857.1" />
<glyph glyph-name="reply" unicode="&#xe82e;" d="m0 493q0 14 11 25l285 286q11 10 25 10t26-10 10-25v-143h125q398 0 488-225 30-75 30-186 0-93-71-252-2-4-6-13t-7-17-8-12q-6-10-15-10-9 0-13 6t-5 14q0 5 1 15t2 13q3 38 3 69 0 56-10 101t-27 77-45 56-59 39-74 24-86 12-98 3h-125v-143q0-14-10-25t-26-11-25 11l-285 286q-11 10-11 25z" horiz-adv-x="1000" />
</font>
</defs>
</svg>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<?php
/*
Snow Theme for Question2Answer Package
Copyright (C) 2014 Q2A Market <http://www.q2amarket.com>
File: inc/qam-snow-theme.php
Version: Snow 1.4
Description: Snow theme core class
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* Snow theme loader class
*
* This class loads all required data for the Snow theme. This is written more
* for future use and to keep untouched <code>qa_html_theme_base</code>
*
* @package Snow
* @subpackage Loader
* @category Theme
* @since Snow 1.4
* @version 1.0
* @author Q2A Market <http://www.q2amarket.com>
* @copyright (c) 2014, Q2A Market
* @license http://www.gnu.org/copyleft/gpl.html
*/
class qam_snow_theme
{
/**
* @var array Holds the data
*/
private $data;
/**
* Snow instance
*
* @access public
* @since Snow 1.4
* @version 1.0
*
* @static $instance
*
* @uses qam_snow_theme::setup_globals() Setup require globals
* @uses qam_snow_theme::includes() Include require files
* @uses qam_snow_theme::heads() Setup <code><head></code> elements
* @uses qam_snow_theme::set_options() Setup dynamic options for Snow
* @uses qam_snow_theme::headers() Setup header elements
* @uses qam_snow_theme::footers() Setup footer elements
*
* @see qam_snow_theme()
* @return mixed all qam_snow_theme
*
* @author Q2A Market <http://www.q2amarket.com>
* @copyright (c) 2014, Q2A Market
* @license http://www.gnu.org/copyleft/gpl.html
*/
public static function instance()
{
// Store the instance locally to avoid private static replication
static $instance = null;
// Only run these methods if they haven't been run previously
if (null === $instance) {
$instance = new qam_snow_theme;
$instance->setup_globals();
$instance->includes();
// $instance->heads();
$instance->get_options();
$instance->headers();
// $instance->footers();
}
// Always return the instance
return $instance;
}
/**
* Class construct
*/
private function __construct()
{ /* Do nothing here */
}
/**
*
* @param type $key
* @return type
*/
public function __isset($key)
{
return isset($this->data[$key]);
}
/**
*
* @param type $key
* @return type
*/
public function __get($key)
{
return isset($this->data[$key]) ? $this->data[$key] : null;
}
/**
*
* @param type $key
* @param type $value
*/
public function __set($key, $value)
{
$this->data[$key] = $value;
}
/**
*
* @param type $key
*/
public function __unset($key)
{
if (isset($this->data[$key])) {
unset($this->data[$key]);
}
}
/**
*
* @param type $name
* @param type $args
* @return null
*/
public function __call($name = '', $args = array())
{
unset($name, $args);
return null;
}
/**
* Snow theme globals
*
* @access private
* @since Snow 1.4
* @version 1.0
*
* @author Q2A Market <www.q2amarket.com>
* @copyright (c) 2014, Q2A Market
* @license http://www.gnu.org/copyleft/gpl.html
*/
private function setup_globals()
{
$this->theme = qa_opt('site_theme');
$this->author = $this->qam_opt('snow_author', 'Q2A Market');
$this->author_url = $this->qam_opt('snow_author_url', 'http://www.q2amarket.com');
$this->version = $this->qam_opt('snow_version', '1.4-beta');
$this->snow_version = strtolower($this->theme . '-' . $this->version);
$this->opt_prefix = 'qam_snow_';
$this->js_dir = 'js/';
$this->css_dir = 'css/';
$this->img_url = 'images/';
$this->icon_url = $this->img_url . 'icons/';
}
/**
* Incldue require files
*
* @access private
* @since Snow 1.4
* @version 1.0
*
* @author Q2A Market <www.q2amarket.com>
* @copyright (c) 2014, Q2A Market
* @license http://www.gnu.org/copyleft/gpl.html
*/
private function includes()
{ //do nothing now
}
/**
* Get theme options for customization.
*
* @access private
* @since Snow 1.4
* @version 1.0
* @return array|mixed theme options value
*
* @author Q2A Market <http://www.q2amarket.com>
* @copyright (c) 2014, Q2A Market
* @license http://www.gnu.org/copyleft/gpl.html
*/
private function get_options()
{
$this->data['ask_search_box_color'] = $this->qam_opt('ask_search_box_color');
$this->data['welcome_widget_color'] = $this->qam_opt('welcome_widget_color');
$this->data['fixed_topbar'] = (($this->qam_opt('fixed_topbar')) ? 'fixed' : NULL);
$this->data['header_custom_content'] = $this->qam_opt('header_custom_content');
$this->data['footer_custom_content'] = $this->qam_opt('above_footer_custom_content');
return $this->data;
}
/**
* Get header items
*
* @access private
* @since Snow 1.4
* @version 1.0
* @return array|mixed various header items (e.g. user account, scripts)
*
* @author Q2A Market <http://www.q2amarket.com>
* @copyright (c) 2014, Q2A Market
* @license http://www.gnu.org/copyleft/gpl.html
*/
private function headers()
{
$this->data['headers'] = array(
'user_account' => $this->user_account(),
'user_points' => $this->user_points(),
'ask_button' => $this->ask_button(),
// 'fb_like_box_init' => $this->fb_like_box_init(),
// 'twitter_widget_init' => $this->twitter_widget_init(),
);
return $this->data;
}
/**
* User account navigation item
*
* This will return based on login information.
*
* If user loggedIn, it will populate user avatar and account links.
* If user is guest, it will populate login form and registration link.
*
* @access private
* @since Snow 1.4
* @version 1.0
* @return string HTML output for user account or authentication form
*
* @author Q2A Market <http://www.q2amarket.com>
* @copyright (c) 2014, Q2A Market
* @license http://www.gnu.org/copyleft/gpl.html
*/
private function user_account()
{
$logged_in = qa_is_logged_in();
$handle = qa_get_logged_in_user_field('handle');
$avatarsize = 36;
// get loogedin user avatar
if ($logged_in) {
if (QA_FINAL_EXTERNAL_USERS) {
$tobar_avatar = qa_get_external_avatar_html( qa_get_logged_in_user_field('userid'), $avatarsize, true );
}
else {
$tobar_avatar = qa_get_user_avatar_html(
qa_get_logged_in_user_field('flags'),
qa_get_logged_in_user_field('email'),
$handle,
qa_get_logged_in_user_field('avatarblobid'),
qa_get_logged_in_user_field('avatarwidth'),
qa_get_logged_in_user_field('avatarheight'),
$avatarsize,
false
);
}
$auth_icon = strip_tags($tobar_avatar, '<img>');
}
else {
$auth_icon = '<i class="icon-key qam-auth-key"></i>';
}
// finally return avatar with div tag
$class = $logged_in ? 'qam-logged-in' : 'qam-logged-out';
$user_account = '<div id="qam-account-toggle" class="' . $class . '">' .
$auth_icon .
'<div class="qam-account-handle">' . qa_html($handle) . '</div>' .
'</div>';
return $user_account;
}
/**
* Get logged in user's points
*
* @access private
* @since Snow 1.4
* @version 1.0
* @return string|null LoggedIn user's total points, null for guest
*
* @author Q2A Market <http://www.q2amarket.com>
* @copyright (c) 2014, Q2A Market
* @license http://www.gnu.org/copyleft/gpl.html
*/
private function user_points()
{
if (qa_is_logged_in()) {
$userpoints = qa_get_logged_in_points();
$pointshtml = ($userpoints == 1) ? qa_lang_html_sub('main/1_point', '1', '1') : qa_html(number_format($userpoints));
$points = '<DIV CLASS="qam-logged-in-points">' . $pointshtml . '</DIV>';
return $points;
}
return NULL;
}
/**
* Custom ask button for medium and small screen
*
* @access private
* @since Snow 1.4
* @version 1.0
* @return string Ask button html markup
*
* @author Q2A Market <http://www.q2amarket.com>
* @copyright (c) 2014, Q2A Market
* @license http://www.gnu.org/copyleft/gpl.html
*/
private function ask_button()
{
$html = '<div class="qam-ask-search-box">';
$html .= '<div class="qam-ask-mobile"><a href="' . qa_path('ask', null, qa_path_to_root()) . '" class="' . $this->qam_opt('ask_search_box_color') . '">' . qa_lang_html('main/nav_ask') . '</a></div>';
$html .= '<div class="qam-search-mobile ' . $this->qam_opt('ask_search_box_color') . '" id="qam-search-mobile"></div>';
$html .= '</div>';
return $html;
}
}
/* ---------------------------------------------------------------------------- */
// create a function to instanciate the class
if (!function_exists('qam_snow_theme')) {
/**
* Return <code>qam_snow_theme</code> class instance
*
* @access public
* @since Snow 1.4
* @version 1.0
* @return array
*
* @author Q2A Market <http://www.q2amarket.com>
* @copyright (c) 2014, Q2A Market
* @license http://www.gnu.org/copyleft/gpl.html
*/
function qam_snow_theme()
{
return qam_snow_theme::instance();
}
}
// Declare global variable
if (class_exists('qam_snow_theme')) {
$GLOBALS['qam_snow'] = qam_snow_theme();
}
/*
* Q2A Market (c) Jatin Soni
* http://www.q2amarket.com/
* File:
* Version:
* Description:
* This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
More about this license: http://www.q2amarket.com/license.php
*/
$(document).ready(function () {
/**
* Account menu box toggle script
*/
$('#qam-account-toggle').click(function (e) {
e.stopPropagation();
$(this).toggleClass('account-active');
$('.qam-account-items').slideToggle(100);
});
$(document).click(function () {
$('#qam-account-toggle.account-active').removeClass('account-active');
$('.qam-account-items:visible').slideUp(100);
});
$('.qam-account-items').click(function (event) {
event.stopPropagation();
});
/**
* Main navigation toggle script
*/
$('.qam-menu-toggle').click(function () {
$('.qa-nav-main').slideToggle(100);
$(this).toggleClass('current');
});
/*
* Sidepannel Toggle Click Function
*/
$('#qam-sidepanel-toggle').click(function () {
$('#qam-sidepanel-mobile').toggleClass('open');
$(this).toggleClass('active');
$(this).find('i').toggleClass('icon-right-open-big');
});
/**
* Toggle search box for small screen
*/
$('#qam-search-mobile').click(function () {
$(this).toggleClass('active');
$('#the-top-search').slideToggle('fast');
});
/*
* Add wrapper to users point on users list
*/
$('.qa-top-users-score').wrapInner('<div class="qam-usre-score-icon"></div>');
/*
* add option lable in plugin option section
*/
$('.qa-part-form-plugin-options').prepend('<h2>Plugin Option</h2>');
/*
* add wrapper to the message sent note 'td'
*/
$('.qa-part-form-message .qa-form-tall-ok').wrapInner('<div class="qam-pm-message"></div>');
// fix the visible issue for main nav, top search-box
$(window).resize(function () {
if (window.matchMedia('(min-width: 980px)').matches) {
$(".qam-search.the-top .qa-search").hide();
$(".qa-nav-main").show();
} else {
$(".qam-search.the-top .qa-search").show();
}
});
});
\ No newline at end of file
/*
Snow Theme for Question2Answer
Copyright (C) 2014 Q2A Market <http://www.q2amarket.com>
File: qa-styles.css
Version: Snow 1.4
Description: Snow theme system stylesheet
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Theme Name: Snow
Theme URI:
Theme Version: 1.4
Theme Date: 2014-03-11
Theme Author: Q2A Market
Theme Author URI: http://www.q2amarket.com/
Theme License: GPLv2
*/
/*@import url("css/merger.css");*/
<?php
/*
Snow Theme for Question2Answer Package
Copyright (C) 2014 Q2A Market <http://www.q2amarket.com>
File: qa-theme.php
Version: Snow 1.4
Description: Q2A theme class
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* Snow theme extends
*
* Extends the core theme class <code>qa_html_theme_base</code>
*
* @package qa_html_theme_base
* @subpackage qa_html_theme
* @category Theme
* @since Snow 1.0
* @version 1.4
* @author Q2A Market <http://www.q2amarket.com>
* @copyright (c) 2014, Q2A Market
* @license http://www.gnu.org/copyleft/gpl.html
*/
class qa_html_theme extends qa_html_theme_base
{
/**
* @since Snow 1.4
* @param type $template
* @param type $content
* @param type $rooturl
* @param type $request
*/
public function __construct($template, $content, $rooturl, $request, $textdir='ltr')
{
parent::__construct($template, $content, $rooturl, $request, $textdir);
// theme subdirectories
$this->js_dir = 'js/';
$this->css_dir = 'css/';
$this->img_url = 'images/';
$this->icon_url = $this->img_url . 'icons/';
/**
* Below condition only loads the require class if Q2A set
* the Snow theme as site theme.
* If you change the theme name from `Snow` to anything, make sure to
* change in below condition
*/
if (qa_opt('site_theme') === 'Snow') {
require_once('inc/qam-snow-theme.php');
}
}
/**
* Adding aditional meta for responsive design
*
* @since Snow 1.4
* @global type $qam_snow
*/
public function head_metas()
{
$this->output('<meta name="viewport" content="width=device-width, initial-scale=1">');
qa_html_theme_base::head_metas();
}
/**
* Adding theme stylesheets
*
* @since Snow 1.4
*/
public function head_css()
{
// add Snow CSS file
$cssFile = $this->isRTL ? 'snow-core-rtl.css' : 'snow-core.css';
$cssUrl = $this->rooturl . $this->css_dir . $cssFile . '?' . QA_VERSION;
$this->content['css_src'][] = $cssUrl;
// add Ubuntu font CSS file
$this->content['css_src'][] = 'http://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic';
qa_html_theme_base::head_css();
// output some dynamic CSS inline
$this->output($this->head_inline_css());
}
/**
* Adding theme javascripts
*
* @since Snow 1.4
*/
public function head_script()
{
$jsUrl = $this->rooturl . $this->js_dir . 'snow-core.js?' . QA_VERSION;
$this->content['script'][] = '<script src="' . $jsUrl . '"></script>';
qa_html_theme_base::head_script();
}
/**
* Adding point count for logged in user
*
* @since Snow 1.4
* @global array $qam_snow
*/
public function logged_in()
{
global $qam_snow;
qa_html_theme_base::logged_in();
$this->output($qam_snow->headers['user_points']);
}
/**
* Adding sidebar for mobile device
*
* @since Snow 1.4
*/
public function body()
{
if (qa_is_mobile_probably()) {
$this->output('<div id="qam-sidepanel-toggle"><i class="icon-left-open-big"></i></div>');
$this->output('<div id="qam-sidepanel-mobile">');
qa_html_theme_base::sidepanel();
$this->output('</div>');
}
qa_html_theme_base::body();
}
/**
* Adding body class dynamically
*
* override to add class on admin/approve-users page
*
* @since Snow 1.4
* @return string body class
*/
public function body_tags()
{
global $qam_snow;
$class = 'qa-template-' . qa_html($this->template);
if (isset($this->content['categoryids'])) {
foreach ($this->content['categoryids'] as $categoryid)
{
$class .= ' qa-category-' . qa_html($categoryid);
}
}
// add class if admin/appovoe-users page
if (($this->template === 'admin') && (qa_request_part(1) === 'approve')) {
$class .= ' qam-approve-users';
}
$class .= ' ' . $qam_snow->fixed_topbar;
$this->output('class="' . $class . ' qa-body-js-off"');
}
/**
* login form
*
* @since Snow 1.4
* @global array $qam_snow
*/
public function nav_user_search()
{
// outputs login form if user not logged in
global $qam_snow;
$this->output('<div class="qam-account-items-wrapper">');
$this->output($qam_snow->headers['user_account']);
$this->output('<div class="qam-account-items clearfix">');
if (!qa_is_logged_in()) {
$login = @$this->content['navigation']['user']['login'];
if (isset($login) && !QA_FINAL_EXTERNAL_USERS) {
$this->output(
'<!--[Begin: login form]-->',
'<form id="qa-loginform" action="' . $login['url'] . '" method="post">',
'<input type="text" id="qa-userid" name="emailhandle" placeholder="' . trim(qa_lang_html('users/email_handle_label'), ':') . '" />',
'<input type="password" id="qa-password" name="password" placeholder="' . trim(qa_lang_html('users/password_label'), ':') . '" />',
'<div id="qa-rememberbox"><input type="checkbox" name="remember" id="qa-rememberme" value="1" />',
'<label for="qa-rememberme" id="qa-remember">' . qa_lang_html('users/remember') . '</label></div>',
'<input type="hidden" name="code" value="' . qa_html(qa_get_form_security_code('login')) . '" />',
'<input type="submit" value="' . $login['label'] . '" id="qa-login" name="dologin" />',
'</form>',
'<!--[End: login form]-->'
);
unset($this->content['navigation']['user']['login']); // removes regular navigation link to log in page
}
}
qa_html_theme_base::nav('user');
$this->output('</div> <!-- END qam-account-items -->');
$this->output('</div> <!-- END qam-account-items-wrapper -->');
}
/**
* modifying markup for topbar
*
* @since Snow 1.4
*/
public function nav_main_sub()
{
$this->output('<div class="qam-main-nav-wrapper clearfix">');
$this->output('<div class="sb-toggle-left qam-menu-toggle"><i class="icon-th-list"></i></div>');
$this->logo();
$this->nav('main');
$this->nav_user_search();
$this->output('</div> <!-- END qam-main-nav-wrapper -->');
$this->nav('sub');
}
/**
* The method has been overridden just to remove the '-' from the note
* for the category page (notes). I know it is not good idea to override
* this just for '-' it. But I did
* intentionally to avoid such issue during the updates.
*
* @since Snow 1.4
* @param type $navlink
* @param type $class
*/
public function nav_link($navlink, $class)
{
if (isset($navlink['url'])) {
$this->output(
'<a href="' . $navlink['url'] . '" class="qa-' . $class . '-link' .
(@$navlink['selected'] ? (' qa-' . $class . '-selected') : '') .
(@$navlink['favorited'] ? (' qa-' . $class . '-favorited') : '') .
'"' . (strlen(@$navlink['popup']) ? (' title="' . $navlink['popup'] . '"') : '') .
(isset($navlink['target']) ? (' target="' . $navlink['target'] . '"') : '') . '>' . $navlink['label'] .
'</a>'
);
} else {
$this->output(
'<span class="qa-' . $class . '-nolink' . (@$navlink['selected'] ? (' qa-' . $class . '-selected') : '') .
(@$navlink['favorited'] ? (' qa-' . $class . '-favorited') : '') . '"' .
(strlen(@$navlink['popup']) ? (' title="' . $navlink['popup'] . '"') : '') .
'>' . $navlink['label'] . '</span>'
);
}
if (strlen(@$navlink['note'])) {
$qam_note_class = '';
if (strpos($navlink['note'], '> -') !== false) {
$qam_note_class = !empty($navlink['note']) ? ' qam-cat-note' : NULL;
}
// search and replace within the string
$search = array(' - <', '> - ');
$replace = array(' <', '> ');
$output = $this->output('<span class="qa-' . $class . '-note ' . $qam_note_class . '">' . str_replace($search, $replace, $navlink['note']) . '</span>');
}
}
/**
* Rearranges the layout:
* - Swaps the <tt>main()</tt> and <tt>sidepanel()</tt> functions
* - Moves the header and footer functions outside qa-body-wrapper
* - Keeps top/high and low/bottom widgets separated
*
* @since Snow 1.4
*/
public function body_content()
{
$this->body_prefix();
$this->notices();
$this->widgets('full', 'top');
$this->header();
$this->output('<div class="qa-body-wrapper">', '');
$this->widgets('full', 'high');
$this->output('<div class="qa-main-wrapper">', '');
$this->main();
$this->sidepanel();
$this->output('</div> <!-- END main-wrapper -->');
$this->widgets('full', 'low');
$this->output('</div> <!-- END body-wrapper -->');
$this->footer();
$this->body_suffix();
}
/**
* Header in full width top bar
*
* @since Snow 1.4
*/
public function header()
{
global $qam_snow;
$this->output('<div id="qam-topbar" class="clearfix ' . $qam_snow->fixed_topbar . '">');
$this->nav_main_sub();
$this->output('</div><!-- END qam-topbar -->');
$this->output($qam_snow->headers['ask_button']);
$this->qam_search('the-top', 'the-top-search');
}
/**
* Footer in full width bottom bar
*
* @since Snow 1.4
*/
public function footer()
{
// to replace standard Q2A footer
global $qam_snow;
$this->output($qam_snow->footer_custom_content);
$this->output('<div class="qam-footer-box">');
// footer columns
// $this->output($qam_snow->footers['footer_columns']);
$this->output('<div class="qam-footer-row">');
$this->widgets('full', 'bottom');
// for ($i = 0; $i < 4; $i++)
// $this->output('<div class="qam-footer-col">' . $i . '</div>');
$this->output('</div> <!-- END qam-footer-row -->');
// key to icons in footer
$this->output($this->icons_info());
qa_html_theme_base::footer();
$this->output('</div> <!-- END qam-footer-box -->', '');
}
/**
* Overridden to customize layout and styling
*
* @since Snow 1.4
*/
public function sidepanel()
{
// removes sidebar for user profile pages
if (($this->template != 'user') && !qa_is_mobile_probably()) {
$this->output('<div class="qa-sidepanel">');
$this->qam_search();
$this->widgets('side', 'top');
$this->sidebar();
$this->widgets('side', 'high');
$this->nav('cat', 1);
$this->widgets('side', 'low');
$this->output_raw(@$this->content['sidepanel']);
$this->feed();
$this->widgets('side', 'bottom');
$this->output('</div>', '');
}
}
/**
* To provide various color option
*
* @since Snow 1.4
* @global array $qam_snow
*/
public function sidebar()
{
global $qam_snow;
$sidebar = @$this->content['sidebar'];
if (!empty($sidebar)) {
$this->output('<div class="qa-sidebar emerald ' . $qam_snow->welcome_widget_color . '">');
$this->output_raw($sidebar);
$this->output('</div>', '');
}
}
/**
* To add close icon
*
* @since Snow 1.4
* @param array $q_item
*/
public function q_item_title($q_item)
{
$this->output(
'<div class="qa-q-item-title">',
// add closed note in title
empty($q_item['closed']) ? '' : '<img src="' . $this->rooturl . $this->icon_url . '/closed-q-list.png" class="qam-q-list-close-icon" alt="question-closed" title="' . qa_lang('main/closed') . '" />', '<a href="' . $q_item['url'] . '">' . $q_item['title'] . '</a>', '</div>'
);
}
/**
* To add RSS feeds icon and closed icon for closed questions
*
* @since Snow 1.4
*/
public function title()
{
$q_view = @$this->content['q_view'];
// link title where appropriate
$url = isset($q_view['url']) ? $q_view['url'] : false;
// add closed image
$closed = (!empty($q_view['closed']) ?
'<img src="' . $this->rooturl . $this->icon_url . '/closed-q-view.png" class="qam-q-view-close-icon" alt="question-closed" width="24" height="24" title="' . qa_lang('main/closed') . '" />' : NULL );
if (isset($this->content['title'])) {
$this->output(
$closed, $url ? '<a href="' . $url . '">' : '', $this->content['title'], $url ? '</a>' : ''
);
}
$feed = @$this->content['feed'];
if (!empty($feed)) {
$this->output('<a href="' . $feed['url'] . '" title="' . @$feed['label'] . '"><i class="icon-rss qam-title-rss"></i></a>');
}
}
/**
* To add view counter
*
* @since Snow 1.4
* @param array $q_item
*/
public function q_item_stats($q_item)
{ // add view count to question list
$this->output('<div class="qa-q-item-stats">');
$this->voting($q_item);
$this->a_count($q_item);
qa_html_theme_base::view_count($q_item);
$this->output('</div>');
}
/**
* Prevent display view counter on usual place
*
* @since Snow 1.4
* @param type $q_item
*/
public function view_count($q_item)
{ // Prevent display view counter on usual place
}
/**
* To add view counter
*
* @since Snow 1.4
* @param type $q_view
*/
public function q_view_stats($q_view)
{
$this->output('<div class="qa-q-view-stats">');
$this->voting($q_view);
$this->a_count($q_view);
qa_html_theme_base::view_count($q_view);
$this->output('</div>');
}
/**
* To modify user whometa, move to top
*
* @since Snow 1.4
* @param type $q_view
*/
public function q_view_main($q_view)
{
$this->output('<div class="qa-q-view-main">');
if (isset($q_view['main_form_tags']))
$this->output('<form ' . $q_view['main_form_tags'] . '>'); // form for buttons on question
$this->post_avatar_meta($q_view, 'qa-q-view');
$this->q_view_content($q_view);
$this->q_view_extra($q_view);
$this->q_view_follows($q_view);
$this->q_view_closed($q_view);
$this->post_tags($q_view, 'qa-q-view');
$this->q_view_buttons($q_view);
$this->c_list(@$q_view['c_list'], 'qa-q-view');
if (isset($q_view['main_form_tags'])) {
$this->form_hidden_elements(@$q_view['buttons_form_hidden']);
$this->output('</form>');
}
$this->c_form(@$q_view['c_form']);
$this->output('</div> <!-- END qa-q-view-main -->');
}
/**
* To move user whometa to top in answer
*
* @since Snow 1.4
* @param type $a_item
*/
public function a_item_main($a_item)
{
$this->output('<div class="qa-a-item-main">');
$this->post_avatar_meta($a_item, 'qa-a-item');
if (isset($a_item['main_form_tags']))
$this->output('<form ' . $a_item['main_form_tags'] . '>'); // form for buttons on answer
if ($a_item['hidden'])
$this->output('<div class="qa-a-item-hidden">');
elseif ($a_item['selected'])
$this->output('<div class="qa-a-item-selected">');
$this->a_selection($a_item);
$this->error(@$a_item['error']);
$this->a_item_content($a_item);
if ($a_item['hidden'] || $a_item['selected'])
$this->output('</div>');
$this->a_item_buttons($a_item);
$this->c_list(@$a_item['c_list'], 'qa-a-item');
if (isset($a_item['main_form_tags'])) {
$this->form_hidden_elements(@$a_item['buttons_form_hidden']);
$this->output('</form>');
}
$this->c_form(@$a_item['c_form']);
$this->output('</div> <!-- END qa-a-item-main -->');
}
/**
* To move user whometa to top in comment
*
* @since Snow 1.4
* @param type $c_item
*/
public function c_item_main($c_item)
{
$this->post_avatar_meta($c_item, 'qa-c-item');
$this->error(@$c_item['error']);
if (isset($c_item['expand_tags']))
$this->c_item_expand($c_item);
elseif (isset($c_item['url']))
$this->c_item_link($c_item);
else
$this->c_item_content($c_item);
$this->output('<div class="qa-c-item-footer">');
$this->c_item_buttons($c_item);
$this->output('</div>');
}
/**
* Q2A Market attribution.
* I'd really appreciate you displaying this link on your Q2A site. Thank you - Jatin
*
* @since Snow 1.4
* @global array $qam_snow
*/
public function attribution()
{
// floated right
$this->output(
'<div class="qa-attribution">',
'Snow Theme by <a href="http://www.q2amarket.com">Q2A Market</a>',
'</div>'
);
qa_html_theme_base::attribution();
}
/**
* To add search-box wrapper with extra class for color scheme
*
* @since Snow 1.4
* @version 1.0
*/
public function qam_search($addon_class = FALSE, $ids = FALSE)
{
$default_color = 'emerald';
$id = (($ids) ? ' id="' . $ids . '"' : NULL);
$this->output('<div class="qam-search ' . $default_color . ' ' . $addon_class . '" ' . $id . ' >');
qa_html_theme_base::search();
$this->output('</div>');
}
/**
* Dynamic <code>CSS</code> based on options and other interaction with Q2A.
*
* @since Snow 1.4
* @version 1.0
* @return string The CSS code
*/
private function head_inline_css()
{
$css = '<style>';
$css .= ( (!qa_is_logged_in() ) ? '.qa-nav-user{margin:0 !important;}' : NULL );
if (qa_request_part(1) !== qa_get_logged_in_handle()) {
$css .= '@media (max-width: 979px){';
$css .= 'body.qa-template-user.fixed, body[class^="qa-template-user-"].fixed, body[class*="qa-template-user-"].fixed{';
$css .= 'padding-top: 118px !important;';
$css .= '}';
$css .= '}';
$css .= '@media (max-width: 979px){body.qa-template-users.fixed{
padding-top: 95px !important; }
}
@media (min-width: 980px){body.qa-template-users.fixed{
padding-top: 105px !important;}
}';
}
$css .= '</style>';
return $css;
}
/**
* Question2Answer system icons info bar
*
* @since Snow 1.4
* @return string Info icons HTML
*/
private function icons_info()
{
$icons = array(
'answer' => 'Answer',
'comment' => 'Comment',
'hide' => 'Hide',
'show' => 'Show',
'close' => 'Close',
'reopen' => 'Re-Open',
'flag' => 'Flag',
'unflag' => 'Un-Flag',
'edit' => 'Edit',
'delete' => 'Delete',
'approve' => 'Approve',
'reject' => 'Reject',
'reply' => 'Reply',
);
$icons_info = '<div class="qam-icons-info">';
foreach ($icons as $icon => $label)
{
$icons_info .= '<div class="qam-icon-item"><span class="' . $icon . '"></span> ' . $label . '</div>';
}
$icons_info .= '</div> <!-- END qam-icons-info -->';
return $icons_info;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment