Version Description
- Added delete option to rating reports to allow you to reset ratings results for posts/pages/comments
- Tidied poll and rating reports tables to use WordPress standard tables
Download this release
Release Info
Developer | mdawaffe |
Plugin | Crowdsignal Dashboard – Polls, Surveys & more |
Version | 1.8.7 |
Comparing to | |
See all releases |
Code changes from version 1.8.6 to 1.8.7
- locale/polldaddy-pt_br.mo +0 -0
- locale/polldaddy-pt_br.po +1151 -0
- polldaddy-client.php +38 -6
- polldaddy.js +1 -1
- polldaddy.php +351 -290
- readme.txt +18 -5
locale/polldaddy-pt_br.mo
ADDED
Binary file
|
locale/polldaddy-pt_br.po
ADDED
@@ -0,0 +1,1151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin PollDaddy Polls 1.8.6 by Automattic, Inc..
|
2 |
+
# Copyright (C) 2010 Automattic, Inc.
|
3 |
+
# This file is distributed under the same license as the PollDaddy Polls package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: PollDaddy Polls 1.8.6\n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/polldaddy\n"
|
10 |
+
"POT-Creation-Date: 2010-04-12 14:25+0000\n"
|
11 |
+
"PO-Revision-Date: 2010-05-14 12:36-0300\n"
|
12 |
+
"Last-Translator: Cátia Kitahara <contato@wp-brasil.org>\n"
|
13 |
+
"Language-Team: Comunidade WordPress Brasil <contato@wp-brasil.org>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
18 |
+
"X-Poedit-Language: Portuguese\n"
|
19 |
+
"X-Poedit-Country: BRAZIL\n"
|
20 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
21 |
+
|
22 |
+
#: polldaddy-org.php:107
|
23 |
+
#: polldaddy.php:132
|
24 |
+
#: polldaddy.php:896
|
25 |
+
msgid "Email address required"
|
26 |
+
msgstr "Endereço de email obrigatório"
|
27 |
+
|
28 |
+
#: polldaddy-org.php:110
|
29 |
+
#: polldaddy.php:135
|
30 |
+
#: polldaddy.php:899
|
31 |
+
msgid "Password required"
|
32 |
+
msgstr "Senha obrigatória"
|
33 |
+
|
34 |
+
#: polldaddy-org.php:142
|
35 |
+
msgid "Could not connect to PollDaddy API Key service"
|
36 |
+
msgstr "Não foi possível se conectar ao serviço de Chave API do PollDaddy"
|
37 |
+
|
38 |
+
#: polldaddy-org.php:156
|
39 |
+
#: polldaddy.php:165
|
40 |
+
msgid "Can't connect to PollDaddy.com"
|
41 |
+
msgstr "Não é possível se conectar ao PollDaddy.com"
|
42 |
+
|
43 |
+
#: polldaddy-org.php:186
|
44 |
+
msgid "Login to PollDaddy failed. Double check your email address and password."
|
45 |
+
msgstr "O login no PollDaddy falhou. Verifique novamente seu email e senha."
|
46 |
+
|
47 |
+
#: polldaddy-org.php:188
|
48 |
+
msgid "If your email address and password are correct, your host may not support secure logins."
|
49 |
+
msgstr "Se o seu endereço de email e senha estiverem corretos, pode ser que a sua hospedagem não suporte logins seguros."
|
50 |
+
|
51 |
+
#: polldaddy-org.php:189
|
52 |
+
msgid "In that case, you may be able to log in to PollDaddy by unchecking the \"Use SSL to Log in\" checkbox."
|
53 |
+
msgstr "Neste caso, você pode fazer login no PollDaddy desmarcando a opção \"Usar SSL para fazer login\"."
|
54 |
+
|
55 |
+
#: polldaddy-org.php:200
|
56 |
+
#: polldaddy.php:202
|
57 |
+
msgid "Account could not be accessed. Are your email address and password correct?"
|
58 |
+
msgstr "a conta não pode ser acessada. O seu email e senha estão corretos?"
|
59 |
+
|
60 |
+
#: polldaddy-org.php:214
|
61 |
+
#: polldaddy.php:253
|
62 |
+
msgid "PollDaddy Account"
|
63 |
+
msgstr "Conta no PollDaddy"
|
64 |
+
|
65 |
+
#: polldaddy-org.php:216
|
66 |
+
#: polldaddy.php:255
|
67 |
+
#, php-format
|
68 |
+
msgid "Before you can use the PollDaddy plugin, you need to enter your <a href=\"%s\">PollDaddy.com</a> account details."
|
69 |
+
msgstr "Antes de poder usar o plugin PollDaddy, você precisa digitar os detalhes de sua conta no <a href=\"%s\">PollDaddy.com</a>."
|
70 |
+
|
71 |
+
#: polldaddy-org.php:223
|
72 |
+
#: polldaddy.php:262
|
73 |
+
#: polldaddy.php:4036
|
74 |
+
msgid "PollDaddy Email Address"
|
75 |
+
msgstr "Endereço de email do PollDaddy"
|
76 |
+
|
77 |
+
#: polldaddy-org.php:231
|
78 |
+
#: polldaddy.php:270
|
79 |
+
#: polldaddy.php:4046
|
80 |
+
msgid "PollDaddy Password"
|
81 |
+
msgstr "Senha do PollDaddy"
|
82 |
+
|
83 |
+
#: polldaddy-org.php:244
|
84 |
+
msgid "Use SSL to Log in"
|
85 |
+
msgstr "Usar SSL para fazer login"
|
86 |
+
|
87 |
+
#: polldaddy-org.php:248
|
88 |
+
msgid "This ensures a secure login to your PollDaddy account. Only uncheck if you are having problems logging in."
|
89 |
+
msgstr "Isto permite um login seguro a sua conta no PollDaddy. Desmarque somente se você estiver com problemas para fazer login."
|
90 |
+
|
91 |
+
#: polldaddy-org.php:258
|
92 |
+
#: polldaddy.php:282
|
93 |
+
msgid "Submit"
|
94 |
+
msgstr "Enviar"
|
95 |
+
|
96 |
+
#: polldaddy-org.php:274
|
97 |
+
msgid "Multiple PollDaddy Accounts"
|
98 |
+
msgstr "Múltiplas contas do PollDaddy"
|
99 |
+
|
100 |
+
#: polldaddy-org.php:280
|
101 |
+
msgid "This setting will allow each blog user to import a PollDaddy account."
|
102 |
+
msgstr "Esta opção permitirá que cada usuário do blog importe uma conta do PollDaddy."
|
103 |
+
|
104 |
+
#: polldaddy-org.php:287
|
105 |
+
msgid "Sync Ratings Account"
|
106 |
+
msgstr "Sincronizar conta de avaliações"
|
107 |
+
|
108 |
+
#: polldaddy-org.php:293
|
109 |
+
msgid "This will syncronize your ratings PollDaddy account."
|
110 |
+
msgstr "Esta opção sincronizará sua conta de avaliações no PollDaddy."
|
111 |
+
|
112 |
+
#: polldaddy-org.php:453
|
113 |
+
msgid "A list of your top rated posts, pages or comments."
|
114 |
+
msgstr "Uma lista dos seus posts, páginas ou comentários mais votados."
|
115 |
+
|
116 |
+
#: polldaddy-org.php:462
|
117 |
+
msgid "Top Rated"
|
118 |
+
msgstr "Mais votados"
|
119 |
+
|
120 |
+
#: polldaddy-org.php:498
|
121 |
+
#: polldaddy.php:3862
|
122 |
+
msgid "Title"
|
123 |
+
msgstr "Título"
|
124 |
+
|
125 |
+
#: polldaddy-org.php:507
|
126 |
+
msgid "Show for posts"
|
127 |
+
msgstr "Mostrar para posts"
|
128 |
+
|
129 |
+
#: polldaddy-org.php:518
|
130 |
+
msgid "Show for pages"
|
131 |
+
msgstr "Mostrar para páginas"
|
132 |
+
|
133 |
+
#: polldaddy-org.php:529
|
134 |
+
msgid "Show for comments"
|
135 |
+
msgstr "Mostrar para comentários"
|
136 |
+
|
137 |
+
#: polldaddy-org.php:533
|
138 |
+
msgid "How many items would you like to display?"
|
139 |
+
msgstr "Quantos itens você gostaria de exibir?"
|
140 |
+
|
141 |
+
#: polldaddy.php:72
|
142 |
+
#: polldaddy.php:74
|
143 |
+
#: polldaddy.php:90
|
144 |
+
#: polldaddy.php:92
|
145 |
+
msgid "Ratings"
|
146 |
+
msgstr "Avaliações"
|
147 |
+
|
148 |
+
#: polldaddy.php:79
|
149 |
+
#: polldaddy.php:81
|
150 |
+
#: polldaddy.php:97
|
151 |
+
#: polldaddy.php:99
|
152 |
+
#: polldaddy.php:111
|
153 |
+
#: polldaddy.php:1105
|
154 |
+
msgid "Polls"
|
155 |
+
msgstr "Enquetes"
|
156 |
+
|
157 |
+
#: polldaddy.php:104
|
158 |
+
msgid "Ratings – Settings"
|
159 |
+
msgstr "Avaliações – Configurações"
|
160 |
+
|
161 |
+
#: polldaddy.php:104
|
162 |
+
msgid "Settings"
|
163 |
+
msgstr "Configurações"
|
164 |
+
|
165 |
+
#: polldaddy.php:105
|
166 |
+
#: polldaddy.php:108
|
167 |
+
msgid "Ratings – Reports"
|
168 |
+
msgstr "Avaliações – Relatórios"
|
169 |
+
|
170 |
+
#: polldaddy.php:105
|
171 |
+
#: polldaddy.php:108
|
172 |
+
msgid "Reports"
|
173 |
+
msgstr "Relatórios"
|
174 |
+
|
175 |
+
#: polldaddy.php:111
|
176 |
+
#: polldaddy.php:1237
|
177 |
+
#: polldaddy.php:2016
|
178 |
+
msgid "Edit"
|
179 |
+
msgstr "Editar"
|
180 |
+
|
181 |
+
#: polldaddy.php:114
|
182 |
+
msgid "Add New Poll"
|
183 |
+
msgstr "Adicionar nova enquete"
|
184 |
+
|
185 |
+
#: polldaddy.php:114
|
186 |
+
msgid "Add New"
|
187 |
+
msgstr "Adicionar nova"
|
188 |
+
|
189 |
+
#: polldaddy.php:115
|
190 |
+
#: polldaddy.php:1070
|
191 |
+
#: polldaddy.php:1745
|
192 |
+
msgid "Custom Styles"
|
193 |
+
msgstr "Estilos personalizados"
|
194 |
+
|
195 |
+
#: polldaddy.php:116
|
196 |
+
#: polldaddy.php:4021
|
197 |
+
msgid "Options"
|
198 |
+
msgstr "Opções"
|
199 |
+
|
200 |
+
#: polldaddy.php:192
|
201 |
+
msgid "Invalid Account"
|
202 |
+
msgstr "Conta inválida"
|
203 |
+
|
204 |
+
#: polldaddy.php:214
|
205 |
+
#, php-format
|
206 |
+
msgid "Obsolete PollDaddy User API Key: <a href=\"%s\">Sign in again to re-authenticate</a>"
|
207 |
+
msgstr "Chave API de usuário do PollDaddy obsoleta: <a href=\"%s\">Conecte-se novamente para re-autenticar</a>"
|
208 |
+
|
209 |
+
#: polldaddy.php:291
|
210 |
+
msgid "Add Poll"
|
211 |
+
msgstr "Adicionar enquete"
|
212 |
+
|
213 |
+
#: polldaddy.php:362
|
214 |
+
msgid "Star Colors"
|
215 |
+
msgstr "Cores da estrela"
|
216 |
+
|
217 |
+
#: polldaddy.php:362
|
218 |
+
#: polldaddy.php:3346
|
219 |
+
msgid "Star Size"
|
220 |
+
msgstr "Tamanho da estrela"
|
221 |
+
|
222 |
+
#: polldaddy.php:363
|
223 |
+
msgid "Nero Type"
|
224 |
+
msgstr "Tipo de Nero"
|
225 |
+
|
226 |
+
#: polldaddy.php:363
|
227 |
+
msgid "Nero Size"
|
228 |
+
msgstr "Tamanho do Nero"
|
229 |
+
|
230 |
+
#: polldaddy.php:456
|
231 |
+
msgid "You are not allowed to delete this poll."
|
232 |
+
msgstr "Sempermissão para excluir esta enquete."
|
233 |
+
|
234 |
+
#: polldaddy.php:464
|
235 |
+
#: polldaddy.php:500
|
236 |
+
#: polldaddy.php:536
|
237 |
+
#: polldaddy.php:570
|
238 |
+
msgid "Invalid Poll Author"
|
239 |
+
msgstr "Autor de enquete inválido"
|
240 |
+
|
241 |
+
#: polldaddy.php:492
|
242 |
+
msgid "You are not allowed to open this poll."
|
243 |
+
msgstr "Sem permissão para abrir esta enquete."
|
244 |
+
|
245 |
+
#: polldaddy.php:528
|
246 |
+
msgid "You are not allowed to close this poll."
|
247 |
+
msgstr "Sem permissão para encerrar esta enquete."
|
248 |
+
|
249 |
+
#: polldaddy.php:561
|
250 |
+
#: polldaddy.php:1335
|
251 |
+
msgid "You are not allowed to edit this poll."
|
252 |
+
msgstr "Sem permissão para editar esta enquete."
|
253 |
+
|
254 |
+
#: polldaddy.php:577
|
255 |
+
msgid "Poll not found"
|
256 |
+
msgstr "Enquete não encontrada"
|
257 |
+
|
258 |
+
#: polldaddy.php:604
|
259 |
+
msgid "Invalid answers"
|
260 |
+
msgstr "Respostas inválidas"
|
261 |
+
|
262 |
+
#: polldaddy.php:620
|
263 |
+
msgid "You must include at least 2 answers"
|
264 |
+
msgstr "Você deve incluir pelo menos 12 respostas"
|
265 |
+
|
266 |
+
#: polldaddy.php:631
|
267 |
+
#: polldaddy.php:708
|
268 |
+
msgid "Please choose a poll style"
|
269 |
+
msgstr "Escolha um estilo de enquete"
|
270 |
+
|
271 |
+
#: polldaddy.php:653
|
272 |
+
msgid "Poll could not be updated"
|
273 |
+
msgstr "A enquete não pode ser atualizada"
|
274 |
+
|
275 |
+
#: polldaddy.php:727
|
276 |
+
msgid "Poll could not be created"
|
277 |
+
msgstr "A enquete não pode ser criada"
|
278 |
+
|
279 |
+
#: polldaddy.php:779
|
280 |
+
msgid "Style could not be updated"
|
281 |
+
msgstr "O estilo não pode ser atualizado"
|
282 |
+
|
283 |
+
#: polldaddy.php:809
|
284 |
+
msgid "Style could not be created"
|
285 |
+
msgstr "O estilo não pode ser criado"
|
286 |
+
|
287 |
+
#: polldaddy.php:908
|
288 |
+
msgid "Account could not be imported. Are your email address and password correct?"
|
289 |
+
msgstr "A conta não pode ser importada. Os seus email e senha estão corretos?"
|
290 |
+
|
291 |
+
#: polldaddy.php:926
|
292 |
+
msgid "Poll deleted."
|
293 |
+
msgstr "Enquete excluída."
|
294 |
+
|
295 |
+
#: polldaddy.php:928
|
296 |
+
#, php-format
|
297 |
+
msgid "%s Poll Deleted."
|
298 |
+
msgid_plural "%s Polls Deleted."
|
299 |
+
msgstr[0] "%s enquete excluída."
|
300 |
+
msgstr[1] "%s enquetes excluídas."
|
301 |
+
|
302 |
+
#: polldaddy.php:933
|
303 |
+
msgid "Poll opened."
|
304 |
+
msgstr "Enquete iniciada."
|
305 |
+
|
306 |
+
#: polldaddy.php:935
|
307 |
+
#, php-format
|
308 |
+
msgid "%s Poll Opened."
|
309 |
+
msgid_plural "%s Polls Opened."
|
310 |
+
msgstr[0] "%s enquete iniciada."
|
311 |
+
msgstr[1] "%s enquetes iniciadas."
|
312 |
+
|
313 |
+
#: polldaddy.php:940
|
314 |
+
msgid "Poll closed."
|
315 |
+
msgstr "Enquete encerrada."
|
316 |
+
|
317 |
+
#: polldaddy.php:942
|
318 |
+
#, php-format
|
319 |
+
msgid "%s Poll Closed."
|
320 |
+
msgid_plural "%s Polls Closed."
|
321 |
+
msgstr[0] "%s enquete encerrada."
|
322 |
+
msgstr[1] "%s enquetes encerradas."
|
323 |
+
|
324 |
+
#: polldaddy.php:945
|
325 |
+
msgid "Poll updated."
|
326 |
+
msgstr "Enquete atualizada."
|
327 |
+
|
328 |
+
#: polldaddy.php:948
|
329 |
+
msgid "Poll created."
|
330 |
+
msgstr "Enquete criada."
|
331 |
+
|
332 |
+
#: polldaddy.php:950
|
333 |
+
#: polldaddy.php:1368
|
334 |
+
msgid "Send to Editor"
|
335 |
+
msgstr "Inserir no post"
|
336 |
+
|
337 |
+
#: polldaddy.php:953
|
338 |
+
msgid "Custom Style updated."
|
339 |
+
msgstr "Estilo personalizado atualizado."
|
340 |
+
|
341 |
+
#: polldaddy.php:956
|
342 |
+
msgid "Custom Style created."
|
343 |
+
msgstr "Estilo personalizado criado."
|
344 |
+
|
345 |
+
#: polldaddy.php:961
|
346 |
+
msgid "Custom Style deleted."
|
347 |
+
msgstr "Estilo personalizado excluído."
|
348 |
+
|
349 |
+
#: polldaddy.php:963
|
350 |
+
#, php-format
|
351 |
+
msgid "%s Style Deleted."
|
352 |
+
msgid_plural "%s Custom Styles Deleted."
|
353 |
+
msgstr[0] "%s estilo excluído."
|
354 |
+
msgstr[1] "%s estilos personalizados excluídos."
|
355 |
+
|
356 |
+
#: polldaddy.php:966
|
357 |
+
msgid "Account Imported."
|
358 |
+
msgstr "Conta importada."
|
359 |
+
|
360 |
+
#: polldaddy.php:969
|
361 |
+
msgid "Options Updated."
|
362 |
+
msgstr "Opções atualizadas."
|
363 |
+
|
364 |
+
#: polldaddy.php:978
|
365 |
+
msgid "Error: An error has occurred; Poll not created."
|
366 |
+
msgstr "Erro: Ocorreu um erro, a enquete não foi criada."
|
367 |
+
|
368 |
+
#: polldaddy.php:981
|
369 |
+
msgid "Error: An error has occurred; Poll not updated."
|
370 |
+
msgstr "Erro: Ocorreu um erro, a enquete não foi atualizada."
|
371 |
+
|
372 |
+
#: polldaddy.php:985
|
373 |
+
msgid "Error: An error has occurred; Account could not be imported. Perhaps your email address or password is incorrect?"
|
374 |
+
msgstr "Erro: ocorreu um erro, a conta não pode ser importada. Talvez os seus email e senha estejam incorretos?"
|
375 |
+
|
376 |
+
#: polldaddy.php:987
|
377 |
+
msgid "Error: An error has occurred; Account could not be created."
|
378 |
+
msgstr "Erro: ocorreu um erro, a conta não pode ser criada."
|
379 |
+
|
380 |
+
#: polldaddy.php:1024
|
381 |
+
#, php-format
|
382 |
+
msgid "Poll Preview (<a href=\"%s\">Edit Poll</a>, <a href=\"%s\">List Polls</a>)"
|
383 |
+
msgstr "Visualização da enquete (<a href=\"%s\">Editar enquete</a>, <a href=\"%s\">Listar enquetes</a>) "
|
384 |
+
|
385 |
+
#: polldaddy.php:1028
|
386 |
+
#, php-format
|
387 |
+
msgid "Poll Preview (<a href=\"%s\">List Polls</a>)"
|
388 |
+
msgstr "Visualização da enquete (<a href=\"%s\">Listar enquetes</a>)"
|
389 |
+
|
390 |
+
#: polldaddy.php:1038
|
391 |
+
#, php-format
|
392 |
+
msgid "Poll Results (<a href=\"%s\">Edit Poll</a>)"
|
393 |
+
msgstr "Resultados da enquete (<a href=\"%s\">Editar enquete</a>)"
|
394 |
+
|
395 |
+
#: polldaddy.php:1040
|
396 |
+
#, php-format
|
397 |
+
msgid "Poll Results (<a href=\"%s\">List Polls</a>)"
|
398 |
+
msgstr "Resultados da enquete (<a href=\"%s\">Listar enquetes</a>)"
|
399 |
+
|
400 |
+
#: polldaddy.php:1049
|
401 |
+
#, php-format
|
402 |
+
msgid "Edit Poll (<a href=\"%s\">List Polls</a>)"
|
403 |
+
msgstr "Editar enquetes (<a href=\"%s\">Listar enquetes</a>)"
|
404 |
+
|
405 |
+
#: polldaddy.php:1058
|
406 |
+
#, php-format
|
407 |
+
msgid "Create Poll (<a href=\"%s\">List Polls</a>)"
|
408 |
+
msgstr "Criar enquete (<a href=\"%s\">Listar enquetes</a>) "
|
409 |
+
|
410 |
+
#: polldaddy.php:1068
|
411 |
+
#, php-format
|
412 |
+
msgid "Custom Styles (<a href=\"%s\">Add New</a>)"
|
413 |
+
msgstr "Estilos personalizados (<a href=\"%s\">Adicionar novo</a>)"
|
414 |
+
|
415 |
+
#: polldaddy.php:1078
|
416 |
+
#, php-format
|
417 |
+
msgid "Edit Style (<a href=\"%s\">List Styles</a>)"
|
418 |
+
msgstr "Editar estilo (<a href=\"%s\">Listar Estilos</a>)"
|
419 |
+
|
420 |
+
#: polldaddy.php:1087
|
421 |
+
#, php-format
|
422 |
+
msgid "Create Style (<a href=\"%s\">List Styles</a>)"
|
423 |
+
msgstr "Criar estilo (<a href=\"%s\">Listar Estilos</a>)"
|
424 |
+
|
425 |
+
#: polldaddy.php:1103
|
426 |
+
#, php-format
|
427 |
+
msgid "Polls (<a href=\"%s\">Add New</a>)"
|
428 |
+
msgstr "Enquetes (<a href=\"%s\">Adicionar nova</a>)"
|
429 |
+
|
430 |
+
#: polldaddy.php:1168
|
431 |
+
msgid "All Blog's Polls"
|
432 |
+
msgstr "Todas enquetes do site"
|
433 |
+
|
434 |
+
#: polldaddy.php:1169
|
435 |
+
msgid "All My Polls"
|
436 |
+
msgstr "Todas minhas enquetes"
|
437 |
+
|
438 |
+
#: polldaddy.php:1177
|
439 |
+
#: polldaddy.php:1979
|
440 |
+
msgid "Actions"
|
441 |
+
msgstr "Ações"
|
442 |
+
|
443 |
+
#: polldaddy.php:1178
|
444 |
+
#: polldaddy.php:1243
|
445 |
+
#: polldaddy.php:1980
|
446 |
+
#: polldaddy.php:2021
|
447 |
+
msgid "Delete"
|
448 |
+
msgstr "Excluir"
|
449 |
+
|
450 |
+
#: polldaddy.php:1179
|
451 |
+
#: polldaddy.php:1250
|
452 |
+
msgid "Close"
|
453 |
+
msgstr "Encerrar"
|
454 |
+
|
455 |
+
#: polldaddy.php:1180
|
456 |
+
#: polldaddy.php:1247
|
457 |
+
msgid "Open"
|
458 |
+
msgstr "Iniciar"
|
459 |
+
|
460 |
+
#: polldaddy.php:1182
|
461 |
+
#: polldaddy.php:1982
|
462 |
+
msgid "Apply"
|
463 |
+
msgstr "Aplicar"
|
464 |
+
|
465 |
+
#: polldaddy.php:1193
|
466 |
+
msgid "Poll"
|
467 |
+
msgstr "Enquete"
|
468 |
+
|
469 |
+
#: polldaddy.php:1194
|
470 |
+
#: polldaddy.php:1883
|
471 |
+
#: polldaddy.php:1928
|
472 |
+
#: polldaddy.php:3863
|
473 |
+
msgid "Votes"
|
474 |
+
msgstr "Votos"
|
475 |
+
|
476 |
+
#: polldaddy.php:1195
|
477 |
+
msgid "Created"
|
478 |
+
msgstr "Criadas"
|
479 |
+
|
480 |
+
#: polldaddy.php:1241
|
481 |
+
msgid "Results"
|
482 |
+
msgstr "Resultados"
|
483 |
+
|
484 |
+
#: polldaddy.php:1253
|
485 |
+
#: polldaddy.php:1259
|
486 |
+
#: polldaddy.php:3258
|
487 |
+
msgid "Preview"
|
488 |
+
msgstr "Visualizar"
|
489 |
+
|
490 |
+
#: polldaddy.php:1255
|
491 |
+
msgid "Send to editor"
|
492 |
+
msgstr "Inserir no post"
|
493 |
+
|
494 |
+
#: polldaddy.php:1261
|
495 |
+
msgid "Share-Embed"
|
496 |
+
msgstr "Compartilhar - Embed"
|
497 |
+
|
498 |
+
#: polldaddy.php:1265
|
499 |
+
#: polldaddy.php:2023
|
500 |
+
msgid "Y/m/d g:i:s A"
|
501 |
+
msgstr "d/m/Y G:i:s "
|
502 |
+
|
503 |
+
#: polldaddy.php:1265
|
504 |
+
#: polldaddy.php:2023
|
505 |
+
msgid "Y/m/d"
|
506 |
+
msgstr "d/m/Y"
|
507 |
+
|
508 |
+
#: polldaddy.php:1269
|
509 |
+
msgid "WordPress Shortcode"
|
510 |
+
msgstr "Shortcode do WordPress"
|
511 |
+
|
512 |
+
#: polldaddy.php:1271
|
513 |
+
msgid "JavaScript"
|
514 |
+
msgstr "JavaScript"
|
515 |
+
|
516 |
+
#: polldaddy.php:1278
|
517 |
+
msgid "Short URL (Good for Twitter etc.)"
|
518 |
+
msgstr "URL encurtada (bom para o Twitter, etc.)"
|
519 |
+
|
520 |
+
#: polldaddy.php:1280
|
521 |
+
msgid "Facebook URL"
|
522 |
+
msgstr "URL do Facebook"
|
523 |
+
|
524 |
+
#: polldaddy.php:1290
|
525 |
+
#, php-format
|
526 |
+
msgid "What are you doing here? <a href=\"%s\">Go back</a>."
|
527 |
+
msgstr "O que você está fazendo aqui? <a href=\"%s\">Volte</a>."
|
528 |
+
|
529 |
+
#: polldaddy.php:1300
|
530 |
+
#, php-format
|
531 |
+
msgid "No polls yet. <a href=\"%s\">Create one</a>"
|
532 |
+
msgstr "Nenhuma enquete ainda. <a href=\"%s\">Criar uma</a>"
|
533 |
+
|
534 |
+
#: polldaddy.php:1302
|
535 |
+
msgid "No polls yet."
|
536 |
+
msgstr "Nenhuma enquete ainda."
|
537 |
+
|
538 |
+
#: polldaddy.php:1357
|
539 |
+
msgid "Publish"
|
540 |
+
msgstr "Publicar"
|
541 |
+
|
542 |
+
#: polldaddy.php:1364
|
543 |
+
msgid "Save Poll"
|
544 |
+
msgstr "Salvar enquete"
|
545 |
+
|
546 |
+
#: polldaddy.php:1379
|
547 |
+
#: polldaddy.php:4104
|
548 |
+
msgid "Poll results"
|
549 |
+
msgstr "Resultados da enquete"
|
550 |
+
|
551 |
+
#: polldaddy.php:1384
|
552 |
+
msgid "Show results to voters"
|
553 |
+
msgstr "Mostrar resultados para usuários"
|
554 |
+
|
555 |
+
#: polldaddy.php:1384
|
556 |
+
msgid "Only show percentages"
|
557 |
+
msgstr "Mostrar somente porcentagens"
|
558 |
+
|
559 |
+
#: polldaddy.php:1384
|
560 |
+
msgid "Hide all results"
|
561 |
+
msgstr "Esconder todos resultados"
|
562 |
+
|
563 |
+
#: polldaddy.php:1402
|
564 |
+
#: polldaddy.php:4121
|
565 |
+
msgid "Block repeat voters"
|
566 |
+
msgstr "Bloquear quem já votou"
|
567 |
+
|
568 |
+
#: polldaddy.php:1407
|
569 |
+
msgid "Don't block repeat voters"
|
570 |
+
msgstr "Não bloquear quem já votou"
|
571 |
+
|
572 |
+
#: polldaddy.php:1407
|
573 |
+
msgid "Block by cookie (recommended)"
|
574 |
+
msgstr "Bloquear por cookie (recomendado)"
|
575 |
+
|
576 |
+
#: polldaddy.php:1407
|
577 |
+
msgid "Block by cookie and by IP address"
|
578 |
+
msgstr "Bloquear por cookie e endereço IP"
|
579 |
+
|
580 |
+
#: polldaddy.php:1422
|
581 |
+
msgid "Expires: "
|
582 |
+
msgstr "Expira:"
|
583 |
+
|
584 |
+
#: polldaddy.php:1424
|
585 |
+
#: polldaddy.php:4126
|
586 |
+
msgid "Never"
|
587 |
+
msgstr "Nunca"
|
588 |
+
|
589 |
+
#: polldaddy.php:1425
|
590 |
+
#: polldaddy.php:4127
|
591 |
+
#, php-format
|
592 |
+
msgid "%d hour"
|
593 |
+
msgstr "%d hora"
|
594 |
+
|
595 |
+
#: polldaddy.php:1426
|
596 |
+
#: polldaddy.php:1427
|
597 |
+
#: polldaddy.php:1428
|
598 |
+
#: polldaddy.php:4128
|
599 |
+
#: polldaddy.php:4129
|
600 |
+
#: polldaddy.php:4130
|
601 |
+
#, php-format
|
602 |
+
msgid "%d hours"
|
603 |
+
msgstr "%d horas"
|
604 |
+
|
605 |
+
#: polldaddy.php:1429
|
606 |
+
#: polldaddy.php:4131
|
607 |
+
#, php-format
|
608 |
+
msgid "%d day"
|
609 |
+
msgstr "%d dia"
|
610 |
+
|
611 |
+
#: polldaddy.php:1430
|
612 |
+
#: polldaddy.php:4132
|
613 |
+
#, php-format
|
614 |
+
msgid "%d week"
|
615 |
+
msgstr "%d semana"
|
616 |
+
|
617 |
+
#: polldaddy.php:1431
|
618 |
+
#: polldaddy.php:4133
|
619 |
+
#, php-format
|
620 |
+
msgid "%d month"
|
621 |
+
msgstr "%d mês"
|
622 |
+
|
623 |
+
#: polldaddy.php:1433
|
624 |
+
msgid "Note: Blocking by cookie and IP address can be problematic for some voters."
|
625 |
+
msgstr "Obs.: Bloquear por cookie e endereço IP pode ser problemático para algumas pessoas."
|
626 |
+
|
627 |
+
#: polldaddy.php:1448
|
628 |
+
msgid "Answers"
|
629 |
+
msgstr "Respostas"
|
630 |
+
|
631 |
+
#: polldaddy.php:1494
|
632 |
+
msgid "Add another"
|
633 |
+
msgstr "Adicionar outra"
|
634 |
+
|
635 |
+
#: polldaddy.php:1500
|
636 |
+
msgid "Multiple choice"
|
637 |
+
msgstr "Múltipla escolha"
|
638 |
+
|
639 |
+
#: polldaddy.php:1500
|
640 |
+
msgid "Randomize answer order"
|
641 |
+
msgstr "Respostas em ordem aleatória"
|
642 |
+
|
643 |
+
#: polldaddy.php:1500
|
644 |
+
msgid "Allow other answers"
|
645 |
+
msgstr "Permitir outras respostas"
|
646 |
+
|
647 |
+
#: polldaddy.php:1500
|
648 |
+
msgid "'Share This' link"
|
649 |
+
msgstr "Link 'Compartilhe'"
|
650 |
+
|
651 |
+
#: polldaddy.php:1629
|
652 |
+
msgid "Design"
|
653 |
+
msgstr "Design"
|
654 |
+
|
655 |
+
#: polldaddy.php:1710
|
656 |
+
#: polldaddy.php:1765
|
657 |
+
msgid "Custom Style"
|
658 |
+
msgstr "Estilo personalizado"
|
659 |
+
|
660 |
+
#: polldaddy.php:1723
|
661 |
+
#: polldaddy.php:1819
|
662 |
+
msgid "Please choose a custom style..."
|
663 |
+
msgstr "Escolha um estilo personalizado..."
|
664 |
+
|
665 |
+
#: polldaddy.php:1729
|
666 |
+
#: polldaddy.php:1825
|
667 |
+
msgid "Please choose a style."
|
668 |
+
msgstr "Escolha um estilo."
|
669 |
+
|
670 |
+
#: polldaddy.php:1734
|
671 |
+
#: polldaddy.php:1830
|
672 |
+
#, php-format
|
673 |
+
msgid "Did you know we have a new editor for building your own custom poll styles? Find out more <a href=\"%s\" target=\"_blank\">here</a>."
|
674 |
+
msgstr "Sabia que há um novo editor para montar seus próprios estilos personalizados? Saiba mais <a href=\"%s\" target=\"_blank\">aqui</a>."
|
675 |
+
|
676 |
+
#: polldaddy.php:1757
|
677 |
+
msgid "PollDaddy Style"
|
678 |
+
msgstr "Estilo do pollDaddy"
|
679 |
+
|
680 |
+
#: polldaddy.php:1882
|
681 |
+
msgid "Answer"
|
682 |
+
msgstr "Resposta"
|
683 |
+
|
684 |
+
#: polldaddy.php:1897
|
685 |
+
#, php-format
|
686 |
+
msgid "Other (<a href=\"%s\">see below</a>)"
|
687 |
+
msgstr "Outro (<a href=\"%s\">veja abaixo</a>)"
|
688 |
+
|
689 |
+
#: polldaddy.php:1927
|
690 |
+
#: polldaddy.php:4092
|
691 |
+
msgid "Other Answer"
|
692 |
+
msgstr "Outra resposta"
|
693 |
+
|
694 |
+
#: polldaddy.php:1992
|
695 |
+
msgid "Style"
|
696 |
+
msgstr "Estilo"
|
697 |
+
|
698 |
+
#: polldaddy.php:1993
|
699 |
+
msgid "Last Modified"
|
700 |
+
msgstr "Última modificação"
|
701 |
+
|
702 |
+
#: polldaddy.php:2033
|
703 |
+
#, php-format
|
704 |
+
msgid "No custom styles yet. <a href=\"%s\">Create one</a>"
|
705 |
+
msgstr "Nenhum estilo personalizado ainda. <a href=\"%s\">Criar um</a>"
|
706 |
+
|
707 |
+
#: polldaddy.php:2109
|
708 |
+
msgid "Style Name"
|
709 |
+
msgstr "Nome do estilo"
|
710 |
+
|
711 |
+
#: polldaddy.php:2124
|
712 |
+
msgid "Preload Basic Style"
|
713 |
+
msgstr "Pré-carregar um estilo base"
|
714 |
+
|
715 |
+
#: polldaddy.php:2138
|
716 |
+
msgid "Load Style"
|
717 |
+
msgstr "Carregar estilo"
|
718 |
+
|
719 |
+
#: polldaddy.php:2927
|
720 |
+
msgid "Save Style"
|
721 |
+
msgstr "Salvar estilo"
|
722 |
+
|
723 |
+
#: polldaddy.php:3071
|
724 |
+
#, php-format
|
725 |
+
msgid "Sorry! There was an error creating your rating widget. Please contact <a href=\"%1$s\" %2$s>PollDaddy support</a> to fix this."
|
726 |
+
msgstr "Ocorreu um erro ao criar seu widget de avaliação. Contate o <a href=\"%1$s\" %2$s>suporte do PollDaddy</a> para consertar isso."
|
727 |
+
|
728 |
+
#: polldaddy.php:3110
|
729 |
+
msgid "Rating Settings"
|
730 |
+
msgstr "Configurações de avaliação"
|
731 |
+
|
732 |
+
#: polldaddy.php:3112
|
733 |
+
msgid "Rating updated"
|
734 |
+
msgstr "Avaliação atualizada"
|
735 |
+
|
736 |
+
#: polldaddy.php:3124
|
737 |
+
#: polldaddy.php:3822
|
738 |
+
msgid "Posts"
|
739 |
+
msgstr "Posts"
|
740 |
+
|
741 |
+
#: polldaddy.php:3128
|
742 |
+
#: polldaddy.php:3822
|
743 |
+
msgid "Pages"
|
744 |
+
msgstr "Páginas"
|
745 |
+
|
746 |
+
#: polldaddy.php:3132
|
747 |
+
#: polldaddy.php:3822
|
748 |
+
msgid "Comments"
|
749 |
+
msgstr "Comentários"
|
750 |
+
|
751 |
+
#: polldaddy.php:3143
|
752 |
+
msgid "Enable for blog posts"
|
753 |
+
msgstr "Ativar para posts"
|
754 |
+
|
755 |
+
#: polldaddy.php:3147
|
756 |
+
#: polldaddy.php:3165
|
757 |
+
msgid "Above each blog post"
|
758 |
+
msgstr "Acima de cada post"
|
759 |
+
|
760 |
+
#: polldaddy.php:3147
|
761 |
+
#: polldaddy.php:3165
|
762 |
+
msgid "Below each blog post"
|
763 |
+
msgstr "Abaixo de cada post"
|
764 |
+
|
765 |
+
#: polldaddy.php:3161
|
766 |
+
msgid "Enable for front page"
|
767 |
+
msgstr "Ativar para a página principal"
|
768 |
+
|
769 |
+
#: polldaddy.php:3181
|
770 |
+
msgid "Enable for pages"
|
771 |
+
msgstr "Ativar para páginas"
|
772 |
+
|
773 |
+
#: polldaddy.php:3185
|
774 |
+
msgid "Above each page"
|
775 |
+
msgstr "Acima de cada página"
|
776 |
+
|
777 |
+
#: polldaddy.php:3185
|
778 |
+
msgid "Below each page"
|
779 |
+
msgstr "Abaixo de cada página"
|
780 |
+
|
781 |
+
#: polldaddy.php:3201
|
782 |
+
msgid "Enable for comments"
|
783 |
+
msgstr "Ativar para comentários"
|
784 |
+
|
785 |
+
#: polldaddy.php:3205
|
786 |
+
msgid "Above each comment"
|
787 |
+
msgstr "Acima de cada comentário"
|
788 |
+
|
789 |
+
#: polldaddy.php:3205
|
790 |
+
msgid "Below each comment"
|
791 |
+
msgstr "Abaixo de cada comentário"
|
792 |
+
|
793 |
+
#: polldaddy.php:3220
|
794 |
+
#: polldaddy.php:3251
|
795 |
+
msgid "Save Changes"
|
796 |
+
msgstr "Salvar alterações"
|
797 |
+
|
798 |
+
#: polldaddy.php:3231
|
799 |
+
msgid "Advanced Settings"
|
800 |
+
msgstr "Configurações avançadas"
|
801 |
+
|
802 |
+
#: polldaddy.php:3244
|
803 |
+
msgid "Save"
|
804 |
+
msgstr "Salvar"
|
805 |
+
|
806 |
+
#: polldaddy.php:3260
|
807 |
+
msgid "This is a demo of what your rating widget will look like"
|
808 |
+
msgstr "Esta é uma demonstração de como o seu widget de avaliação aparecerá"
|
809 |
+
|
810 |
+
#: polldaddy.php:3267
|
811 |
+
msgid "Customize Labels"
|
812 |
+
msgstr "Personalizar rótulos"
|
813 |
+
|
814 |
+
#: polldaddy.php:3271
|
815 |
+
msgid "votes"
|
816 |
+
msgstr "votos"
|
817 |
+
|
818 |
+
#: polldaddy.php:3275
|
819 |
+
msgid "rate this"
|
820 |
+
msgstr "avalie isto"
|
821 |
+
|
822 |
+
#: polldaddy.php:3279
|
823 |
+
#, php-format
|
824 |
+
msgid "%d star"
|
825 |
+
msgstr "%d estrela"
|
826 |
+
|
827 |
+
#: polldaddy.php:3283
|
828 |
+
#: polldaddy.php:3287
|
829 |
+
#: polldaddy.php:3291
|
830 |
+
#: polldaddy.php:3295
|
831 |
+
#, php-format
|
832 |
+
msgid "%d stars"
|
833 |
+
msgstr "%d estrelas"
|
834 |
+
|
835 |
+
#: polldaddy.php:3299
|
836 |
+
msgid "Thank You"
|
837 |
+
msgstr "Obrigado"
|
838 |
+
|
839 |
+
#: polldaddy.php:3303
|
840 |
+
msgid "Rate Up"
|
841 |
+
msgstr "Bom"
|
842 |
+
|
843 |
+
#: polldaddy.php:3307
|
844 |
+
msgid "Rate Down"
|
845 |
+
msgstr "Ruim"
|
846 |
+
|
847 |
+
#: polldaddy.php:3316
|
848 |
+
msgid "Rating Type"
|
849 |
+
msgstr "Tipo de avaliação"
|
850 |
+
|
851 |
+
#: polldaddy.php:3318
|
852 |
+
msgid "Here you can choose how you want your rating to display. The 5 star rating is the most commonly used. The Nero rating is useful for keeping it simple."
|
853 |
+
msgstr "Aqui você pode escolher quantas avaliações serão mostradas. A avaliação de 5 estrelas é mais usada normalmente. A avaliação Nero é útil para simplificar."
|
854 |
+
|
855 |
+
#: polldaddy.php:3326
|
856 |
+
#, php-format
|
857 |
+
msgid "%d Star Rating"
|
858 |
+
msgstr "%d Avaliação por estrelas"
|
859 |
+
|
860 |
+
#: polldaddy.php:3335
|
861 |
+
msgid "Nero Rating"
|
862 |
+
msgstr "Avaliação Nero"
|
863 |
+
|
864 |
+
#: polldaddy.php:3342
|
865 |
+
msgid "Rating Style"
|
866 |
+
msgstr "Estilo de avaliação"
|
867 |
+
|
868 |
+
#: polldaddy.php:3349
|
869 |
+
msgid "Small"
|
870 |
+
msgstr "Pequena"
|
871 |
+
|
872 |
+
#: polldaddy.php:3349
|
873 |
+
msgid "Medium"
|
874 |
+
msgstr "Média"
|
875 |
+
|
876 |
+
#: polldaddy.php:3349
|
877 |
+
msgid "Large"
|
878 |
+
msgstr "Grande"
|
879 |
+
|
880 |
+
#: polldaddy.php:3360
|
881 |
+
msgid "Star Color"
|
882 |
+
msgstr "Cor da estrela"
|
883 |
+
|
884 |
+
#: polldaddy.php:3363
|
885 |
+
msgid "Yellow"
|
886 |
+
msgstr "Amarela"
|
887 |
+
|
888 |
+
#: polldaddy.php:3363
|
889 |
+
msgid "Red"
|
890 |
+
msgstr "Vermelha"
|
891 |
+
|
892 |
+
#: polldaddy.php:3363
|
893 |
+
msgid "Blue"
|
894 |
+
msgstr "Azul"
|
895 |
+
|
896 |
+
#: polldaddy.php:3363
|
897 |
+
msgid "Green"
|
898 |
+
msgstr "Verde"
|
899 |
+
|
900 |
+
#: polldaddy.php:3363
|
901 |
+
msgid "Grey"
|
902 |
+
msgstr "Cinza"
|
903 |
+
|
904 |
+
#: polldaddy.php:3372
|
905 |
+
msgid "Hand"
|
906 |
+
msgstr "Mão"
|
907 |
+
|
908 |
+
#: polldaddy.php:3383
|
909 |
+
msgid "Custom Image"
|
910 |
+
msgstr "Imagem personalizada"
|
911 |
+
|
912 |
+
#: polldaddy.php:3390
|
913 |
+
msgid "Text Layout & Font"
|
914 |
+
msgstr "Layout e fonte do texto."
|
915 |
+
|
916 |
+
#: polldaddy.php:3394
|
917 |
+
msgid "Align"
|
918 |
+
msgstr "Alinhamento"
|
919 |
+
|
920 |
+
#: polldaddy.php:3397
|
921 |
+
msgid "Left"
|
922 |
+
msgstr "À esquerda"
|
923 |
+
|
924 |
+
#: polldaddy.php:3397
|
925 |
+
msgid "Center"
|
926 |
+
msgstr "Centralizado"
|
927 |
+
|
928 |
+
#: polldaddy.php:3397
|
929 |
+
#: polldaddy.php:3411
|
930 |
+
msgid "Right"
|
931 |
+
msgstr "À direita"
|
932 |
+
|
933 |
+
#: polldaddy.php:3408
|
934 |
+
msgid "Position"
|
935 |
+
msgstr "Posição"
|
936 |
+
|
937 |
+
#: polldaddy.php:3411
|
938 |
+
msgid "Top"
|
939 |
+
msgstr "Topo"
|
940 |
+
|
941 |
+
#: polldaddy.php:3411
|
942 |
+
msgid "Bottom"
|
943 |
+
msgstr "Embaixo"
|
944 |
+
|
945 |
+
#: polldaddy.php:3422
|
946 |
+
msgid "Font"
|
947 |
+
msgstr "Fonte"
|
948 |
+
|
949 |
+
#: polldaddy.php:3425
|
950 |
+
#: polldaddy.php:3444
|
951 |
+
#: polldaddy.php:3458
|
952 |
+
msgid "Inherit"
|
953 |
+
msgstr "Herdar"
|
954 |
+
|
955 |
+
#: polldaddy.php:3436
|
956 |
+
msgid "Color"
|
957 |
+
msgstr "Cor"
|
958 |
+
|
959 |
+
#: polldaddy.php:3441
|
960 |
+
msgid "Size"
|
961 |
+
msgstr "Tamanho"
|
962 |
+
|
963 |
+
#: polldaddy.php:3455
|
964 |
+
msgid "Line Height"
|
965 |
+
msgstr "Altura da linha"
|
966 |
+
|
967 |
+
#: polldaddy.php:3469
|
968 |
+
msgid "Bold"
|
969 |
+
msgstr "Negrito"
|
970 |
+
|
971 |
+
#: polldaddy.php:3478
|
972 |
+
msgid "Italic"
|
973 |
+
msgstr "Itálico"
|
974 |
+
|
975 |
+
#: polldaddy.php:3491
|
976 |
+
#: polldaddy.php:3522
|
977 |
+
#: polldaddy.php:3552
|
978 |
+
msgid "Extra Settings"
|
979 |
+
msgstr "Configurações extras"
|
980 |
+
|
981 |
+
#: polldaddy.php:3495
|
982 |
+
#: polldaddy.php:3526
|
983 |
+
#: polldaddy.php:3556
|
984 |
+
msgid "Rating ID"
|
985 |
+
msgstr "ID da avaliação"
|
986 |
+
|
987 |
+
#: polldaddy.php:3501
|
988 |
+
msgid "This is the rating ID used in posts"
|
989 |
+
msgstr "Este é o ID de avaliação usado em posts"
|
990 |
+
|
991 |
+
#: polldaddy.php:3506
|
992 |
+
msgid "Exclude Posts"
|
993 |
+
msgstr "Excluir posts"
|
994 |
+
|
995 |
+
#: polldaddy.php:3512
|
996 |
+
msgid "Enter the Post IDs where you want to exclude ratings from. Please use a comma-delimited list, eg. 1,2,3"
|
997 |
+
msgstr "Digite os IDs de post de onde você quer excluir as avaliações. Use vírgula para separar os itens, ex.: 1,2,3"
|
998 |
+
|
999 |
+
#: polldaddy.php:3532
|
1000 |
+
msgid "This is the rating ID used in pages"
|
1001 |
+
msgstr "Este é o ID de avaliação usado em páginas"
|
1002 |
+
|
1003 |
+
#: polldaddy.php:3537
|
1004 |
+
msgid "Exclude Pages"
|
1005 |
+
msgstr "Excluir páginas"
|
1006 |
+
|
1007 |
+
#: polldaddy.php:3543
|
1008 |
+
msgid "Enter the Page IDs where you want to exclude ratings from. Please use a comma-delimited list, eg. 1,2,3"
|
1009 |
+
msgstr "Digite os IDs de páginas de onde você quer excluir as avaliações. Use vírgula para separar os itens, ex.: 1,2,3"
|
1010 |
+
|
1011 |
+
#: polldaddy.php:3562
|
1012 |
+
msgid "This is the rating ID used in comments"
|
1013 |
+
msgstr "Este é o ID de avaliação usado em comentários"
|
1014 |
+
|
1015 |
+
#: polldaddy.php:3809
|
1016 |
+
msgid "«"
|
1017 |
+
msgstr "«"
|
1018 |
+
|
1019 |
+
#: polldaddy.php:3810
|
1020 |
+
msgid "»"
|
1021 |
+
msgstr "»"
|
1022 |
+
|
1023 |
+
#: polldaddy.php:3816
|
1024 |
+
msgid "Rating Reports"
|
1025 |
+
msgstr "Relatórios de avaliações"
|
1026 |
+
|
1027 |
+
#: polldaddy.php:3831
|
1028 |
+
msgid "View Report"
|
1029 |
+
msgstr "Ver relatório"
|
1030 |
+
|
1031 |
+
#: polldaddy.php:3833
|
1032 |
+
msgid "Last 24 hours"
|
1033 |
+
msgstr "Últimas 24 horas"
|
1034 |
+
|
1035 |
+
#: polldaddy.php:3833
|
1036 |
+
msgid "Last 7 days"
|
1037 |
+
msgstr "Últimos 7 dias"
|
1038 |
+
|
1039 |
+
#: polldaddy.php:3833
|
1040 |
+
msgid "Last 31 days"
|
1041 |
+
msgstr "Últimos 31 dias"
|
1042 |
+
|
1043 |
+
#: polldaddy.php:3833
|
1044 |
+
msgid "Last 3 months"
|
1045 |
+
msgstr "Últimos 3 meses"
|
1046 |
+
|
1047 |
+
#: polldaddy.php:3833
|
1048 |
+
msgid "Last 12 months"
|
1049 |
+
msgstr "Últimos 12 meses"
|
1050 |
+
|
1051 |
+
#: polldaddy.php:3833
|
1052 |
+
msgid "All time"
|
1053 |
+
msgstr "Todos"
|
1054 |
+
|
1055 |
+
#: polldaddy.php:3841
|
1056 |
+
msgid "Filter Report"
|
1057 |
+
msgstr "Filtrar relatórios"
|
1058 |
+
|
1059 |
+
#: polldaddy.php:3855
|
1060 |
+
#, php-format
|
1061 |
+
msgid "No ratings have been collected for your %s yet."
|
1062 |
+
msgstr "Nenhuma avaliação foi coletada para %s ainda."
|
1063 |
+
|
1064 |
+
#: polldaddy.php:3861
|
1065 |
+
msgid "Start Date"
|
1066 |
+
msgstr "Data de início"
|
1067 |
+
|
1068 |
+
#: polldaddy.php:3864
|
1069 |
+
msgid "Average Rating"
|
1070 |
+
msgstr "Avaliação média"
|
1071 |
+
|
1072 |
+
#: polldaddy.php:4025
|
1073 |
+
msgid "PollDaddy Account Info"
|
1074 |
+
msgstr "Informações da conta no PollDaddy"
|
1075 |
+
|
1076 |
+
#: polldaddy.php:4028
|
1077 |
+
msgid "This is the PollDadddy account you currently have imported into your WordPress account"
|
1078 |
+
msgstr "Esta é a conta no PollDaddy importada atualmente para a conta do WordPress"
|
1079 |
+
|
1080 |
+
#: polldaddy.php:4059
|
1081 |
+
msgid "Import Account"
|
1082 |
+
msgstr "Importar conta"
|
1083 |
+
|
1084 |
+
#: polldaddy.php:4065
|
1085 |
+
msgid "General Settings"
|
1086 |
+
msgstr "Configurações gerais"
|
1087 |
+
|
1088 |
+
#: polldaddy.php:4073
|
1089 |
+
msgid "Default poll settings"
|
1090 |
+
msgstr "Configurações padrão"
|
1091 |
+
|
1092 |
+
#: polldaddy.php:4082
|
1093 |
+
msgid "Multiple Choice"
|
1094 |
+
msgstr "Múltipla escolha"
|
1095 |
+
|
1096 |
+
#: polldaddy.php:4087
|
1097 |
+
msgid "Randomise Answers"
|
1098 |
+
msgstr "Respostas em ordem aleatória"
|
1099 |
+
|
1100 |
+
#: polldaddy.php:4097
|
1101 |
+
msgid "Sharing"
|
1102 |
+
msgstr "Compartilhamento"
|
1103 |
+
|
1104 |
+
#: polldaddy.php:4101
|
1105 |
+
msgid "Show"
|
1106 |
+
msgstr "Exibir"
|
1107 |
+
|
1108 |
+
#: polldaddy.php:4102
|
1109 |
+
msgid "Hide"
|
1110 |
+
msgstr "Esconder"
|
1111 |
+
|
1112 |
+
#: polldaddy.php:4103
|
1113 |
+
msgid "Percentages"
|
1114 |
+
msgstr "Porcentagens"
|
1115 |
+
|
1116 |
+
#: polldaddy.php:4113
|
1117 |
+
msgid "Poll style"
|
1118 |
+
msgstr "Estilo da enquete"
|
1119 |
+
|
1120 |
+
#: polldaddy.php:4118
|
1121 |
+
msgid "Off"
|
1122 |
+
msgstr "Desligado"
|
1123 |
+
|
1124 |
+
#: polldaddy.php:4119
|
1125 |
+
msgid "Cookie"
|
1126 |
+
msgstr "Cookie"
|
1127 |
+
|
1128 |
+
#: polldaddy.php:4120
|
1129 |
+
msgid "Cookie & IP address"
|
1130 |
+
msgstr "Cookie e endereço IP"
|
1131 |
+
|
1132 |
+
#: polldaddy.php:4134
|
1133 |
+
msgid "Block expiration limit"
|
1134 |
+
msgstr "Bloquear limite de expiração"
|
1135 |
+
|
1136 |
+
#: polldaddy.php:4146
|
1137 |
+
msgid "Save Options"
|
1138 |
+
msgstr "Salvar opções"
|
1139 |
+
|
1140 |
+
#. Plugin Name of the plugin/theme
|
1141 |
+
msgid "PollDaddy Polls"
|
1142 |
+
msgstr "Enquetes do PollDaddy"
|
1143 |
+
|
1144 |
+
#. Description of the plugin/theme
|
1145 |
+
msgid "Create and manage PollDaddy polls and ratings in WordPress"
|
1146 |
+
msgstr "Crie e gerencie enquetes e avaliações do PollDaddy no WordPress"
|
1147 |
+
|
1148 |
+
#. Author of the plugin/theme
|
1149 |
+
msgid "Automattic, Inc."
|
1150 |
+
msgstr "Automattic, Inc."
|
1151 |
+
|
polldaddy-client.php
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
|
3 |
require_once dirname( __FILE__ ) . '/polldaddy-xml.php';
|
4 |
|
5 |
-
// TODO: polls->poll should always be an array and similar bad typing
|
6 |
class api_client {
|
7 |
var $polldaddy_url = 'http://api.polldaddy.com/';
|
8 |
var $partnerGUID;
|
@@ -189,7 +188,7 @@ class api_client {
|
|
189 |
// Not Implemented
|
190 |
function remove_usercode() {
|
191 |
return false;
|
192 |
-
}
|
193 |
|
194 |
/**
|
195 |
* @see polldaddy_account()
|
@@ -214,6 +213,21 @@ class api_client {
|
|
214 |
return false;
|
215 |
}
|
216 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
/* pdRequest: Request API Objects */
|
218 |
|
219 |
/* Accounts */
|
@@ -228,7 +242,7 @@ class api_client {
|
|
228 |
if ( isset( $r->account ) && !is_null( $r->account->email ) )
|
229 |
return $r->account;
|
230 |
return false;
|
231 |
-
}
|
232 |
|
233 |
/**
|
234 |
* @see polldaddy_account()
|
@@ -245,7 +259,7 @@ class api_client {
|
|
245 |
if ( isset( $this->response->userCode ) )
|
246 |
return $this->response->userCode;
|
247 |
return false;
|
248 |
-
}
|
249 |
|
250 |
/* Polls */
|
251 |
/**
|
@@ -378,7 +392,7 @@ class api_client {
|
|
378 |
|
379 |
return empty( $this->errors );
|
380 |
}
|
381 |
-
|
382 |
/**
|
383 |
* @param int $id PollDaddy Poll ID
|
384 |
* @return bool success
|
@@ -862,8 +876,26 @@ class api_client {
|
|
862 |
return false;
|
863 |
}
|
864 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
865 |
function get_xml(){
|
866 |
-
return 'REQUEST
|
867 |
}
|
868 |
}
|
869 |
|
2 |
|
3 |
require_once dirname( __FILE__ ) . '/polldaddy-xml.php';
|
4 |
|
|
|
5 |
class api_client {
|
6 |
var $polldaddy_url = 'http://api.polldaddy.com/';
|
7 |
var $partnerGUID;
|
188 |
// Not Implemented
|
189 |
function remove_usercode() {
|
190 |
return false;
|
191 |
+
}
|
192 |
|
193 |
/**
|
194 |
* @see polldaddy_account()
|
213 |
return false;
|
214 |
}
|
215 |
|
216 |
+
function sync_rating( ){
|
217 |
+
$pos = $this->add_request( 'syncrating', new PollDaddy_Rating( null , null ) );
|
218 |
+
|
219 |
+
$this->send_request();
|
220 |
+
|
221 |
+
$demand = $this->response_part( $pos );
|
222 |
+
|
223 |
+
if ( is_a( $demand, 'Ghetto_XML_Object' ) && isset( $demand->rating ) ){
|
224 |
+
return $demand->rating;
|
225 |
+
}
|
226 |
+
|
227 |
+
return false;
|
228 |
+
|
229 |
+
}
|
230 |
+
|
231 |
/* pdRequest: Request API Objects */
|
232 |
|
233 |
/* Accounts */
|
242 |
if ( isset( $r->account ) && !is_null( $r->account->email ) )
|
243 |
return $r->account;
|
244 |
return false;
|
245 |
+
}
|
246 |
|
247 |
/**
|
248 |
* @see polldaddy_account()
|
259 |
if ( isset( $this->response->userCode ) )
|
260 |
return $this->response->userCode;
|
261 |
return false;
|
262 |
+
}
|
263 |
|
264 |
/* Polls */
|
265 |
/**
|
392 |
|
393 |
return empty( $this->errors );
|
394 |
}
|
395 |
+
|
396 |
/**
|
397 |
* @param int $id PollDaddy Poll ID
|
398 |
* @return bool success
|
876 |
return false;
|
877 |
}
|
878 |
|
879 |
+
function delete_rating_result( $id, $uid = '' ){
|
880 |
+
if ( !$id = (int) $id )
|
881 |
+
return false;
|
882 |
+
|
883 |
+
$pos = $this->add_request( 'deleteratingresult', new PollDaddy_Rating( compact( 'uid' ) , compact( 'id' ) ) );
|
884 |
+
|
885 |
+
$this->send_request();
|
886 |
+
|
887 |
+
$demand = $this->response_part( $pos );
|
888 |
+
|
889 |
+
if ( is_a( $demand, 'Ghetto_XML_Object' ) && isset( $demand->rating ) ){
|
890 |
+
return $demand->rating;
|
891 |
+
}
|
892 |
+
|
893 |
+
return false;
|
894 |
+
|
895 |
+
}
|
896 |
+
|
897 |
function get_xml(){
|
898 |
+
return array( 'REQUEST' => $this->request_xml, 'RESPONSE' => $this->response_xml );
|
899 |
}
|
900 |
}
|
901 |
|
polldaddy.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function($){ if ( typeof(window.$) == 'undefined' ){window.$ = jQuery;} $('.hide-if-js').hide(); $('.empty-if-js').empty(); $('.hide-if-no-js').removeClass( 'hide-if-no-js' ); $( '.polldaddy-shortcode-row pre' ).click( function(){var refNode = $( this )[0];if ( $.browser.msie ){var range = document.body.createTextRange();range.moveToElementText( refNode );range.select();} else if ( $.browser.mozilla || $.browser.opera ){var selection = window.getSelection();var range = document.createRange();range.selectNodeContents( refNode );selection.removeAllRanges();selection.addRange( range );} else if ( $.browser.safari ){var selection = window.getSelection();selection.setBaseAndExtent( refNode, 0, refNode, 1 );}}); $('a.delete-
|
1 |
+
jQuery(function($){ if ( typeof(window.$) == 'undefined' ){window.$ = jQuery;} $('.hide-if-js').hide(); $('.empty-if-js').empty(); $('.hide-if-no-js').removeClass( 'hide-if-no-js' ); $( '.polldaddy-shortcode-row pre' ).click( function(){var refNode = $( this )[0];if ( $.browser.msie ){var range = document.body.createTextRange();range.moveToElementText( refNode );range.select();} else if ( $.browser.mozilla || $.browser.opera ){var selection = window.getSelection();var range = document.createRange();range.selectNodeContents( refNode );selection.removeAllRanges();selection.addRange( range );} else if ( $.browser.safari ){var selection = window.getSelection();selection.setBaseAndExtent( refNode, 0, refNode, 1 );}}); $('a.delete-rating').click( function() { return confirm( 'Are you sure you want to delete the rating for "' + $(this).parents( 'td' ).find( 'strong' ).text() + '"?' ); } ); $('a.delete-poll').click( function() { return confirm( 'Are you sure you want to delete "' + $(this).parents( 'td' ).find( 'strong' ).text() + '"?' ); } );$('span.view a.thickbox').attr( 'href', function() { return $(this).attr( 'href' ) + '&iframe&TB_iframe=true'; } ); var delAnswerPrep = function( context ) { $('a.delete-answer', context || null ).click( function() { if ( confirm( 'Are you sure you want to delete this answer?' ) ) { $(this).parents( 'li' ).remove(); $('#choices option:last-child').remove(); } return false; } ); }; delAnswerPrep(); $('#answers').sortable( { axis: 'y', containment: 'parent', handle: '.handle', tolerance: 'pointer' } ); $('#add-answer-holder').show().find( 'button').click( function() { var aa = ( 1 + $('#answers li').size() ).toString();delAnswerPrep( $('#answers').append( '<li><span class="handle">↕</span><div><input type="text" name="answer[new' + aa + ']" size="30" tabindex="2" value="" autocomplete="off" /></div><a title="delete this answer" class="delete-answer delete" href="#">×</a></li>' ).find( 'li:last' ) ); $('#choices').append('<option value="'+aa+'">'+aa+'</option>'); return false; } ); var win = window.dialogArguments || opener || parent || top; $('.polldaddy-send-to-editor').click( function() { var pollID = $(this).siblings('.polldaddy-poll-id').val(); if ( !pollID ) pollID = $('.polldaddy-poll-id:first').val(); win.send_to_editor( '[polldaddy poll=' + parseInt( pollID ).toString() + ']' ); } ); $('.polldaddy-show-shortcode').toggle( function() { $(this).parents('tr:first').next('tr').fadeIn(); $(this).parents('tr:first').next('tr').show(); return false; }, function() { $(this).parents('tr:first').next('tr').fadeOut(); $(this).parents('tr:first').next('tr').hide(); return false; } );var hiddenStyleID = $(':input[name=styleID]'); var customStyle = $(':input[name=customSelect]'); var customStyleVal = parseInt( customStyle.val() ); customStyle.change(function() { var customStyleVal = parseInt( customStyle.val() ); hiddenStyleID.val( customStyleVal.toString() ); }); if ( customStyleVal > 0 ) { $('#design_standard').hide(); $('#design_custom').show(); $('.polldaddy-show-design-options').html('Standard Styles'); hiddenStyleID.val( customStyleVal.toString() ); $('.polldaddy-show-design-options').toggle( function() { $('#design_custom').hide(); $('#design_standard').fadeIn(); $('.polldaddy-show-design-options').html('Custom Styles'); hiddenStyleID.val( 'x' ); return false; }, function() { $('#design_standard').hide(); $('#design_custom').fadeIn(); $('.polldaddy-show-design-options').html('Standard Styles'); var customStyle = $(':input[name=customSelect]'); var customStyleVal = parseInt( customStyle.val() ); if ( customStyleVal > 0 ){ hiddenStyleID.val( customStyleVal.toString() ); } else{hiddenStyleID.val( 'x' ); } return false; } ); } else{ $('#design_custom').hide(); $('#design_standard').show(); $('.polldaddy-show-design-options').toggle( function() { $('#design_standard').hide(); $('#design_custom').fadeIn(); $('.polldaddy-show-design-options').html('Standard Styles'); var customStyle = $(':input[name=customSelect]'); var customStyleVal = parseInt( customStyle.val() ); if ( customStyleVal > 0 ){ hiddenStyleID.val( customStyleVal.toString() ); } else{ hiddenStyleID.val( 'x' ); } return false; }, function() { $('#design_custom').hide(); $('#design_standard').fadeIn(); $('.polldaddy-show-design-options').html('Custom Styles'); hiddenStyleID.val( 'x' ); return false; } ); } $("#multipleChoice").click(function(){ if ($("#multipleChoice").is(":checked")) { $("#numberChoices").show("fast"); } else { $("#numberChoices").hide("fast"); } });$( '.block-repeat' ).click( function(){var repeat = jQuery( this ).val();if( repeat == 'off' ){$( '#cookieip_expiration_label' ).hide();$( '#cookieip_expiration' ).hide();}else{$( '#cookieip_expiration_label' ).show();$( '#cookieip_expiration' ).show();} } ); });
|
polldaddy.php
CHANGED
@@ -5,7 +5,7 @@ Plugin Name: PollDaddy Polls
|
|
5 |
Description: Create and manage PollDaddy polls and ratings in WordPress
|
6 |
Author: Automattic, Inc.
|
7 |
Author URL: http://automattic.com/
|
8 |
-
Version: 1.8.
|
9 |
*/
|
10 |
|
11 |
// You can hardcode your PollDaddy PartnerGUID (API Key) here
|
@@ -26,24 +26,24 @@ class WP_PollDaddy {
|
|
26 |
var $rating_user_code;
|
27 |
|
28 |
function WP_PollDaddy(){
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
$this->is_admin = (bool) current_user_can('manage_options');
|
41 |
$this->is_author = true;
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
function &get_client( $api_key, $userCode = null ) {
|
48 |
if ( isset( $this->polldaddy_clients[$api_key] ) ) {
|
49 |
if ( !is_null( $userCode ) )
|
@@ -302,8 +302,8 @@ class WP_PollDaddy {
|
|
302 |
}
|
303 |
|
304 |
function management_page_load() {
|
305 |
-
wp_reset_vars( array( 'page', 'action', 'poll', 'style', 'rating' ) );
|
306 |
-
global $plugin_page, $page, $action, $poll, $style, $rating, $wp_locale;
|
307 |
|
308 |
$this->set_api_user_code();
|
309 |
|
@@ -336,6 +336,7 @@ class WP_PollDaddy {
|
|
336 |
wp_enqueue_script( 'polls-style', "http://i.polldaddy.com/js/style-editor.js", array(), $this->version );
|
337 |
wp_enqueue_script( 'polls-style-color', "http://i.polldaddy.com/js/jquery/jscolor.js", array(), $this->version );
|
338 |
wp_enqueue_style( 'polls', "{$this->base_url}style-editor.css", array(), $this->version );
|
|
|
339 |
break;
|
340 |
case 'list-styles' :
|
341 |
$plugin_page = 'polls&action=list-styles';
|
@@ -347,11 +348,11 @@ class WP_PollDaddy {
|
|
347 |
break;
|
348 |
endswitch;
|
349 |
} elseif( $page == 'ratings' ) {
|
350 |
-
if ( !$this->is_admin && !in_array( $action, array( '
|
351 |
$action = 'reports';
|
352 |
}
|
353 |
switch ( $action ) :
|
354 |
-
case '
|
355 |
case 'reports' :
|
356 |
$plugin_page = 'ratings&action=reports';
|
357 |
break;
|
@@ -869,7 +870,39 @@ class WP_PollDaddy {
|
|
869 |
return;
|
870 |
endswitch;
|
871 |
} elseif( $page == 'ratings' ) {
|
872 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
873 |
}
|
874 |
|
875 |
wp_redirect( add_query_arg( $query_args, wp_get_referer() ) );
|
@@ -968,6 +1001,13 @@ class WP_PollDaddy {
|
|
968 |
case 'updated-options' :
|
969 |
$message = __( 'Options Updated.', 'polldaddy' );
|
970 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
971 |
endswitch;
|
972 |
|
973 |
$is_POST = 'post' == strtolower( $_SERVER['REQUEST_METHOD'] );
|
@@ -1108,12 +1148,12 @@ class WP_PollDaddy {
|
|
1108 |
$this->polls_table( isset( $_GET['view'] ) && 'user' == $_GET['view'] ? 'user' : 'blog' );
|
1109 |
endswitch;
|
1110 |
} elseif( $page == 'ratings' ) {
|
1111 |
-
if ( !$this->is_admin && !in_array( $action, array( '
|
1112 |
$action = 'reports';
|
1113 |
}
|
1114 |
|
1115 |
switch ( $action ) :
|
1116 |
-
case '
|
1117 |
case 'reports' :
|
1118 |
$this->rating_reports();
|
1119 |
break;
|
@@ -1191,7 +1231,7 @@ class WP_PollDaddy {
|
|
1191 |
<tr>
|
1192 |
<th id="cb" class="manage-column column-cb check-column" scope="col" /><?php if( $this->is_author ){ ?><input type="checkbox" /><?php } ?></th>
|
1193 |
<th id="title" class="manage-column column-title" scope="col"><?php _e( 'Poll', 'polldaddy' ); ?></th>
|
1194 |
-
<th id="votes" class="manage-column column-vote" scope="col"><?php _e( 'Votes', 'polldaddy' ); ?></th>
|
1195 |
<th id="date" class="manage-column column-date" scope="col"><?php _e( 'Created', 'polldaddy' ); ?></th>
|
1196 |
</tr>
|
1197 |
</thead>
|
@@ -1228,15 +1268,16 @@ class WP_PollDaddy {
|
|
1228 |
list($poll_time) = explode( '.', $poll->_created );
|
1229 |
$poll_time = strtotime( $poll_time );
|
1230 |
?>
|
1231 |
-
|
1232 |
<tr<?php echo $class; ?>>
|
1233 |
<th class="check-column" scope="row"><?php if( $this->is_author and $this->can_edit( $poll ) ){ ?><input type="checkbox" value="<?php echo (int) $poll_id; ?>" name="poll[]" /><?php } ?></th>
|
1234 |
<td class="post-title column-title">
|
1235 |
<?php if ( $edit_link ) { ?>
|
1236 |
<strong><a class="row-title" href="<?php echo $edit_link; ?>"><?php echo wp_specialchars( $poll->___content ); ?></a></strong>
|
|
|
1237 |
<span class="edit"><a href="<?php echo $edit_link; ?>"><?php _e( 'Edit', 'polldaddy' ); ?></a> | </span>
|
1238 |
<?php } else { ?>
|
1239 |
<strong><?php echo wp_specialchars( $poll->___content ); ?></strong>
|
|
|
1240 |
<?php } ?>
|
1241 |
<span class="results"><a href="<?php echo $results_link; ?>"><?php _e( 'Results', 'polldaddy' ); ?></a> | </span>
|
1242 |
<?php if ( $delete_link ) { ?>
|
@@ -1258,29 +1299,32 @@ class WP_PollDaddy {
|
|
1258 |
<?php } else { ?>
|
1259 |
<span class="view"><a class="thickbox" href="<?php echo $preview_link; ?>"><?php _e( 'Preview', 'polldaddy' ); ?></a> | </span>
|
1260 |
<?php } ?>
|
1261 |
-
|
1262 |
<?php $this->poll_table_add_option( $poll_id ); ?>
|
|
|
1263 |
</td>
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
|
|
1273 |
src="http://static.polldaddy.com/p/<?php echo (int) $poll_id; ?>.js"></script>
|
1274 |
<noscript>
|
1275 |
-
<a href="http://
|
1276 |
<span style="font:9px;">(<a href="http://www.polldaddy.com">polls</a>)</span>
|
1277 |
</noscript></pre>
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
|
|
1284 |
<?php
|
1285 |
endforeach;
|
1286 |
elseif ( $total_polls ) : // $polls
|
@@ -2945,167 +2989,174 @@ class WP_PollDaddy {
|
|
2945 |
$show_posts = $show_posts_index = $show_pages = $show_comments = $pos_posts = $pos_posts_index = $pos_pages = $pos_comments = 0;
|
2946 |
$show_settings = $rating_updated = ( $action == 'update-rating' ? true : false );
|
2947 |
$error = false;
|
2948 |
-
|
2949 |
$settings_style = 'display: none;';
|
2950 |
if( $show_settings )
|
2951 |
-
|
2952 |
-
|
2953 |
-
|
2954 |
-
|
2955 |
-
|
2956 |
-
case 'posts' :
|
2957 |
-
if ( isset( $_POST[ 'pd_show_posts' ] ) && (int) $_POST[ 'pd_show_posts' ] == 1 )
|
2958 |
-
$show_posts = get_option( 'pd-rating-posts-id' );
|
2959 |
-
|
2960 |
-
update_option( 'pd-rating-posts', $show_posts );
|
2961 |
-
|
2962 |
-
if ( isset( $_POST[ 'pd_show_posts_index' ] ) && (int) $_POST[ 'pd_show_posts_index' ] == 1 )
|
2963 |
-
$show_posts_index = get_option( 'pd-rating-posts-id' );
|
2964 |
-
|
2965 |
-
update_option( 'pd-rating-posts-index', $show_posts_index );
|
2966 |
-
|
2967 |
-
if ( isset( $_POST[ 'posts_pos' ] ) && (int) $_POST[ 'posts_pos' ] == 1 )
|
2968 |
-
$pos_posts = 1;
|
2969 |
-
|
2970 |
-
update_option( 'pd-rating-posts-pos', $pos_posts );
|
2971 |
-
|
2972 |
-
if ( isset( $_POST[ 'posts_index_pos' ] ) && (int) $_POST[ 'posts_index_pos' ] == 1 )
|
2973 |
-
$pos_posts_index = 1;
|
2974 |
-
|
2975 |
-
update_option( 'pd-rating-posts-index-pos', $pos_posts_index );
|
2976 |
-
$rating_updated = true;
|
2977 |
-
break;
|
2978 |
-
|
2979 |
-
case 'pages';
|
2980 |
-
if ( isset( $_POST[ 'pd_show_pages' ] ) && (int) $_POST[ 'pd_show_pages' ] == 1 )
|
2981 |
-
$show_pages = get_option( 'pd-rating-pages-id' );
|
2982 |
-
|
2983 |
-
update_option( 'pd-rating-pages', $show_pages );
|
2984 |
-
|
2985 |
-
if ( isset( $_POST[ 'pages_pos' ] ) && (int) $_POST[ 'pages_pos' ] == 1 )
|
2986 |
-
$pos_pages = 1;
|
2987 |
-
|
2988 |
-
update_option( 'pd-rating-pages-pos', $pos_pages );
|
2989 |
-
$rating_updated = true;
|
2990 |
-
break;
|
2991 |
-
|
2992 |
-
case 'comments':
|
2993 |
-
if ( isset( $_POST[ 'pd_show_comments' ] ) && (int) $_POST[ 'pd_show_comments' ] == 1 )
|
2994 |
-
$show_comments = get_option( 'pd-rating-comments-id' );
|
2995 |
-
|
2996 |
-
update_option( 'pd-rating-comments', $show_comments );
|
2997 |
-
if ( isset( $_POST[ 'comments_pos' ] ) && (int) $_POST[ 'comments_pos' ] == 1 )
|
2998 |
-
$pos_comments = 1;
|
2999 |
-
|
3000 |
-
update_option( 'pd-rating-comments-pos', $pos_comments );
|
3001 |
-
|
3002 |
-
$rating_updated = true;
|
3003 |
-
break;
|
3004 |
-
endswitch;
|
3005 |
-
}
|
3006 |
-
|
3007 |
-
$show_posts = (int) get_option( 'pd-rating-posts' );
|
3008 |
-
$show_pages = (int) get_option( 'pd-rating-pages' );
|
3009 |
-
$show_comments = (int) get_option( 'pd-rating-comments' );
|
3010 |
-
$show_posts_index = (int) get_option( 'pd-rating-posts-index' );
|
3011 |
-
|
3012 |
-
$pos_posts = (int) get_option( 'pd-rating-posts-pos' );
|
3013 |
-
$pos_pages = (int) get_option( 'pd-rating-pages-pos' );
|
3014 |
-
$pos_comments = (int) get_option( 'pd-rating-comments-pos' );
|
3015 |
-
$pos_posts_index = (int) get_option( 'pd-rating-posts-index-pos' );
|
3016 |
-
|
3017 |
-
$rating_id = get_option( 'pd-rating-posts-id' );
|
3018 |
-
$report_type = 'posts';
|
3019 |
-
$updated = false;
|
3020 |
-
|
3021 |
-
if ( isset( $rating ) ) {
|
3022 |
-
switch ( $rating ) :
|
3023 |
-
case 'pages':
|
3024 |
-
$report_type = 'pages';
|
3025 |
-
$rating_id = get_option( 'pd-rating-pages-id' );
|
3026 |
-
break;
|
3027 |
-
|
3028 |
-
case 'comments':
|
3029 |
-
$report_type = 'comments';
|
3030 |
-
$rating_id = get_option( 'pd-rating-comments-id' );
|
3031 |
-
break;
|
3032 |
-
|
3033 |
-
case 'posts':
|
3034 |
-
$report_type = 'posts';
|
3035 |
-
$rating_id = get_option( 'pd-rating-posts-id' );
|
3036 |
-
break;
|
3037 |
-
endswitch;
|
3038 |
-
}
|
3039 |
-
|
3040 |
-
$polldaddy = $this->get_client( WP_POLLDADDY__PARTNERGUID, $this->rating_user_code );
|
3041 |
-
$polldaddy->reset();
|
3042 |
-
$response = $polldaddy->get_rating( $rating_id );
|
3043 |
-
|
3044 |
-
if ( empty( $response ) || (int) $response->_id == 0 ) {
|
3045 |
-
$polldaddy->reset();
|
3046 |
-
$new_type = 0;
|
3047 |
-
if ( $report_type == 'comments' )
|
3048 |
-
$new_type = 1;
|
3049 |
-
|
3050 |
-
$blog_name = get_option( 'blogname' );
|
3051 |
-
|
3052 |
-
if ( empty( $blog_name ) )
|
3053 |
-
$blog_name = 'WordPress Blog';
|
3054 |
-
|
3055 |
-
$blog_name .= ' - ' . $report_type;
|
3056 |
-
|
3057 |
-
$response = $polldaddy->create_rating( $blog_name , $new_type );
|
3058 |
|
3059 |
-
|
3060 |
-
|
3061 |
-
|
3062 |
-
|
3063 |
-
|
3064 |
-
|
3065 |
-
|
3066 |
-
|
3067 |
-
|
3068 |
-
|
3069 |
-
|
3070 |
-
|
3071 |
-
|
3072 |
-
|
3073 |
-
|
3074 |
-
|
3075 |
-
update_option ( 'pd-rating-' . $report_type . '-id', $rating_id );
|
3076 |
-
update_option ( 'pd-rating-' . $report_type, 0 );
|
3077 |
|
3078 |
-
|
3079 |
-
|
3080 |
-
|
3081 |
-
|
3082 |
-
|
3083 |
-
|
3084 |
-
|
3085 |
-
|
3086 |
-
|
3087 |
-
|
3088 |
-
|
3089 |
-
|
3090 |
-
|
3091 |
-
|
3092 |
-
|
3093 |
-
|
3094 |
-
|
|
|
|
|
|
|
|
|
|
|
3095 |
|
3096 |
-
|
3097 |
-
|
3098 |
-
|
3099 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3100 |
|
3101 |
-
|
3102 |
-
|
3103 |
-
|
3104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3105 |
|
3106 |
-
|
3107 |
-
|
3108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3109 |
<div class="wrap">
|
3110 |
<h2><?php _e('Rating Settings', 'polldaddy'); ?></h2><?php
|
3111 |
if ( $rating_updated )
|
@@ -3113,8 +3164,8 @@ class WP_PollDaddy {
|
|
3113 |
|
3114 |
if ( !$error ) { ?>
|
3115 |
<div id="side-sortables">
|
3116 |
-
<div id="categorydiv">
|
3117 |
-
<ul id="category-tabs"><?php
|
3118 |
$this_class = '';
|
3119 |
$posts_link = clean_url( add_query_arg( array( 'rating' => 'posts', 'message' => false ) ) );
|
3120 |
$pages_link = clean_url( add_query_arg( array( 'rating' => 'pages', 'message' => false ) ) );
|
@@ -3658,7 +3709,7 @@ class WP_PollDaddy {
|
|
3658 |
|
3659 |
$polldaddy = $this->get_client( WP_POLLDADDY__PARTNERGUID, $this->rating_user_code );
|
3660 |
$polldaddy->reset();
|
3661 |
-
$
|
3662 |
}
|
3663 |
else if( $this->is_admin && $new_rating_id > 0 ){
|
3664 |
switch( $type ){
|
@@ -3729,8 +3780,8 @@ class WP_PollDaddy {
|
|
3729 |
$period = '7';
|
3730 |
$show_rating = 0;
|
3731 |
|
3732 |
-
if ( isset( $_REQUEST['
|
3733 |
-
switch ( $_REQUEST['
|
3734 |
case 'pages':
|
3735 |
$report_type = 'pages';
|
3736 |
$rating_id = (int) get_option( 'pd-rating-pages-id' );
|
@@ -3802,9 +3853,9 @@ class WP_PollDaddy {
|
|
3802 |
$total = (int) $response->_total;
|
3803 |
$total_pages = ceil( $total / $page_size );
|
3804 |
}
|
3805 |
-
|
3806 |
$page_links = paginate_links( array(
|
3807 |
-
'base' => add_query_arg( array ('paged' => '%#%', '
|
3808 |
'format' => '',
|
3809 |
'prev_text' => __('«', 'polldaddy'),
|
3810 |
'next_text' => __('»', 'polldaddy'),
|
@@ -3815,30 +3866,35 @@ class WP_PollDaddy {
|
|
3815 |
<div class="wrap">
|
3816 |
<h2><?php _e('Rating Reports', 'polldaddy');?> <span style="font-size: 16px;">(<?php echo ( $report_type ); ?>)</span></h2>
|
3817 |
<div class="clear"></div>
|
3818 |
-
<form method="post" action="">
|
3819 |
<div class="tablenav">
|
3820 |
-
<div class="alignleft">
|
3821 |
-
<select name="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3822 |
$select = array( __('Posts', 'polldaddy') => "posts", __('Pages', 'polldaddy') => "pages", __('Comments', 'polldaddy') => "comments" );
|
3823 |
foreach ( $select as $option => $value ) :
|
3824 |
$selected = '';
|
3825 |
if ( $value == $report_type )
|
3826 |
-
$selected = ' selected="selected"'
|
3827 |
-
|
3828 |
-
endforeach; ?>
|
3829 |
</select>
|
3830 |
-
|
3831 |
-
<input class="button-secondary action" type="submit" value="<?php esc_attr_e('View Report', 'polldaddy');?>" />
|
3832 |
-
<select name="filter"><?php
|
3833 |
$select = array( __('Last 24 hours', 'polldaddy') => "1", __('Last 7 days', 'polldaddy') => "7", __('Last 31 days', 'polldaddy') => "31", __('Last 3 months', 'polldaddy') => "90", __('Last 12 months', 'polldaddy') => "365", __('All time', 'polldaddy') => "all" );
|
3834 |
foreach ( $select as $option => $value ) :
|
3835 |
$selected = '';
|
3836 |
if ( $value == $period )
|
3837 |
-
$selected = ' selected="selected"'
|
3838 |
-
|
3839 |
-
|
3840 |
-
|
3841 |
-
|
3842 |
</div>
|
3843 |
<div class="alignright">
|
3844 |
<div class="tablenav-pages">
|
@@ -3846,86 +3902,91 @@ class WP_PollDaddy {
|
|
3846 |
</div>
|
3847 |
</div>
|
3848 |
</div>
|
3849 |
-
</form>
|
3850 |
|
3851 |
<table class="widefat"><?php
|
3852 |
-
|
3853 |
-
|
3854 |
-
|
3855 |
-
|
3856 |
-
|
3857 |
-
|
3858 |
-
|
3859 |
-
|
3860 |
-
|
3861 |
-
|
3862 |
-
|
3863 |
-
|
3864 |
-
|
3865 |
-
|
3866 |
-
|
3867 |
-
|
3868 |
-
|
3869 |
-
|
3870 |
-
|
3871 |
-
|
3872 |
-
|
3873 |
-
|
3874 |
-
|
3875 |
-
|
3876 |
-
|
3877 |
-
|
3878 |
-
<
|
3879 |
-
<
|
3880 |
-
|
3881 |
-
|
3882 |
-
|
3883 |
-
|
3884 |
-
|
3885 |
-
|
3886 |
-
|
3887 |
-
|
3888 |
-
|
3889 |
-
|
3890 |
-
|
3891 |
-
|
3892 |
-
|
3893 |
-
|
3894 |
-
$
|
3895 |
-
|
3896 |
-
|
3897 |
-
|
3898 |
-
|
3899 |
-
|
3900 |
-
|
3901 |
-
|
3902 |
-
|
3903 |
-
|
3904 |
-
|
3905 |
-
|
3906 |
-
|
3907 |
-
|
3908 |
-
|
3909 |
-
|
3910 |
-
|
3911 |
-
|
3912 |
-
|
3913 |
-
|
3914 |
-
|
3915 |
-
|
3916 |
-
|
3917 |
-
|
3918 |
-
|
3919 |
-
|
3920 |
-
|
|
|
|
|
|
|
|
|
|
|
3921 |
</table>
|
3922 |
<div class="tablenav">
|
3923 |
<div class="alignright">
|
3924 |
<div class="tablenav-pages">
|
3925 |
-
<?php echo
|
3926 |
</div>
|
3927 |
</div>
|
3928 |
</div>
|
|
|
3929 |
</div>
|
3930 |
<p></p><?php
|
3931 |
}
|
@@ -4173,4 +4234,4 @@ class WP_PollDaddy {
|
|
4173 |
}
|
4174 |
|
4175 |
require 'rating.php';
|
4176 |
-
require 'polldaddy-org.php';
|
5 |
Description: Create and manage PollDaddy polls and ratings in WordPress
|
6 |
Author: Automattic, Inc.
|
7 |
Author URL: http://automattic.com/
|
8 |
+
Version: 1.8.7
|
9 |
*/
|
10 |
|
11 |
// You can hardcode your PollDaddy PartnerGUID (API Key) here
|
26 |
var $rating_user_code;
|
27 |
|
28 |
function WP_PollDaddy(){
|
29 |
+
$this ->__construct();
|
30 |
+
}
|
31 |
+
|
32 |
+
function __construct() {
|
33 |
+
global $current_user;
|
34 |
+
$this->errors = new WP_Error;
|
35 |
+
$this->scheme = 'https';
|
36 |
+
$this->version = '1.8.7';
|
37 |
+
$this->multiple_accounts = true;
|
38 |
+
$this->polldaddy_client_class = 'api_client';
|
39 |
+
$this->polldaddy_clients = array();
|
40 |
$this->is_admin = (bool) current_user_can('manage_options');
|
41 |
$this->is_author = true;
|
42 |
+
$this->id = (int) $current_user->ID;
|
43 |
+
$this->user_code = null;
|
44 |
+
$this->rating_user_code = null;
|
45 |
+
}
|
46 |
+
|
47 |
function &get_client( $api_key, $userCode = null ) {
|
48 |
if ( isset( $this->polldaddy_clients[$api_key] ) ) {
|
49 |
if ( !is_null( $userCode ) )
|
302 |
}
|
303 |
|
304 |
function management_page_load() {
|
305 |
+
wp_reset_vars( array( 'page', 'action', 'poll', 'style', 'rating', 'id' ) );
|
306 |
+
global $plugin_page, $page, $action, $poll, $style, $rating, $id, $wp_locale;
|
307 |
|
308 |
$this->set_api_user_code();
|
309 |
|
336 |
wp_enqueue_script( 'polls-style', "http://i.polldaddy.com/js/style-editor.js", array(), $this->version );
|
337 |
wp_enqueue_script( 'polls-style-color', "http://i.polldaddy.com/js/jquery/jscolor.js", array(), $this->version );
|
338 |
wp_enqueue_style( 'polls', "{$this->base_url}style-editor.css", array(), $this->version );
|
339 |
+
$plugin_page = 'polls&action=list-styles';
|
340 |
break;
|
341 |
case 'list-styles' :
|
342 |
$plugin_page = 'polls&action=list-styles';
|
348 |
break;
|
349 |
endswitch;
|
350 |
} elseif( $page == 'ratings' ) {
|
351 |
+
if ( !$this->is_admin && !in_array( $action, array( 'reports', 'delete' ) ) ) {//check user privileges has access to action
|
352 |
$action = 'reports';
|
353 |
}
|
354 |
switch ( $action ) :
|
355 |
+
case 'delete' :
|
356 |
case 'reports' :
|
357 |
$plugin_page = 'ratings&action=reports';
|
358 |
break;
|
870 |
return;
|
871 |
endswitch;
|
872 |
} elseif( $page == 'ratings' ) {
|
873 |
+
|
874 |
+
switch ( $action ) :
|
875 |
+
case 'delete' :
|
876 |
+
if ( empty( $id ) )
|
877 |
+
return;
|
878 |
+
if ( empty( $rating ) )
|
879 |
+
return;
|
880 |
+
|
881 |
+
$polldaddy = $this->get_client( WP_POLLDADDY__PARTNERGUID, $this->rating_user_code );
|
882 |
+
|
883 |
+
if ( is_array( $rating ) ) {
|
884 |
+
check_admin_referer( 'action-rating_bulk' );
|
885 |
+
|
886 |
+
foreach( $rating as $key => $value ){
|
887 |
+
$polldaddy->reset();
|
888 |
+
$polldaddy->delete_rating_result( $id, $value );
|
889 |
+
}
|
890 |
+
} else {
|
891 |
+
check_admin_referer( "delete-rating_$rating" );
|
892 |
+
|
893 |
+
$polldaddy->delete_rating_result( $id, $rating );
|
894 |
+
}
|
895 |
+
|
896 |
+
if ( isset( $_REQUEST['filter'] ) )
|
897 |
+
$query_args['filter'] = $_REQUEST['filter'];
|
898 |
+
if ( isset( $_REQUEST['change-report-to'] ) )
|
899 |
+
$query_args['change-report-to'] = $_REQUEST['change-report-to'];
|
900 |
+
$query_args['message'] = 'deleted-rating';
|
901 |
+
$query_args['deleted'] = count( (array) $rating );
|
902 |
+
break;
|
903 |
+
default :
|
904 |
+
return;
|
905 |
+
endswitch;
|
906 |
}
|
907 |
|
908 |
wp_redirect( add_query_arg( $query_args, wp_get_referer() ) );
|
1001 |
case 'updated-options' :
|
1002 |
$message = __( 'Options Updated.', 'polldaddy' );
|
1003 |
break;
|
1004 |
+
case 'deleted-rating' :
|
1005 |
+
$deleted = (int) $_GET['deleted'];
|
1006 |
+
if ( 1 == $deleted )
|
1007 |
+
$message = __( 'Rating deleted.', 'polldaddy' );
|
1008 |
+
else
|
1009 |
+
$message = sprintf( __ngettext( '%s Rating Deleted.', '%s Ratings Deleted.', $deleted ), number_format_i18n( $deleted ) );
|
1010 |
+
break;
|
1011 |
endswitch;
|
1012 |
|
1013 |
$is_POST = 'post' == strtolower( $_SERVER['REQUEST_METHOD'] );
|
1148 |
$this->polls_table( isset( $_GET['view'] ) && 'user' == $_GET['view'] ? 'user' : 'blog' );
|
1149 |
endswitch;
|
1150 |
} elseif( $page == 'ratings' ) {
|
1151 |
+
if ( !$this->is_admin && !in_array( $action, array( 'delete', 'reports' ) ) ) {//check user privileges has access to action
|
1152 |
$action = 'reports';
|
1153 |
}
|
1154 |
|
1155 |
switch ( $action ) :
|
1156 |
+
case 'delete' :
|
1157 |
case 'reports' :
|
1158 |
$this->rating_reports();
|
1159 |
break;
|
1231 |
<tr>
|
1232 |
<th id="cb" class="manage-column column-cb check-column" scope="col" /><?php if( $this->is_author ){ ?><input type="checkbox" /><?php } ?></th>
|
1233 |
<th id="title" class="manage-column column-title" scope="col"><?php _e( 'Poll', 'polldaddy' ); ?></th>
|
1234 |
+
<th id="votes" class="manage-column column-vote num" scope="col"><?php _e( 'Votes', 'polldaddy' ); ?></th>
|
1235 |
<th id="date" class="manage-column column-date" scope="col"><?php _e( 'Created', 'polldaddy' ); ?></th>
|
1236 |
</tr>
|
1237 |
</thead>
|
1268 |
list($poll_time) = explode( '.', $poll->_created );
|
1269 |
$poll_time = strtotime( $poll_time );
|
1270 |
?>
|
|
|
1271 |
<tr<?php echo $class; ?>>
|
1272 |
<th class="check-column" scope="row"><?php if( $this->is_author and $this->can_edit( $poll ) ){ ?><input type="checkbox" value="<?php echo (int) $poll_id; ?>" name="poll[]" /><?php } ?></th>
|
1273 |
<td class="post-title column-title">
|
1274 |
<?php if ( $edit_link ) { ?>
|
1275 |
<strong><a class="row-title" href="<?php echo $edit_link; ?>"><?php echo wp_specialchars( $poll->___content ); ?></a></strong>
|
1276 |
+
<div class="row-actions">
|
1277 |
<span class="edit"><a href="<?php echo $edit_link; ?>"><?php _e( 'Edit', 'polldaddy' ); ?></a> | </span>
|
1278 |
<?php } else { ?>
|
1279 |
<strong><?php echo wp_specialchars( $poll->___content ); ?></strong>
|
1280 |
+
<div class="row-actions">
|
1281 |
<?php } ?>
|
1282 |
<span class="results"><a href="<?php echo $results_link; ?>"><?php _e( 'Results', 'polldaddy' ); ?></a> | </span>
|
1283 |
<?php if ( $delete_link ) { ?>
|
1299 |
<?php } else { ?>
|
1300 |
<span class="view"><a class="thickbox" href="<?php echo $preview_link; ?>"><?php _e( 'Preview', 'polldaddy' ); ?></a> | </span>
|
1301 |
<?php } ?>
|
1302 |
+
<span class="shortcode"><a href="#" class="polldaddy-show-shortcode"><?php _e( 'Share-Embed', 'polldaddy' ); ?></a></span>
|
1303 |
<?php $this->poll_table_add_option( $poll_id ); ?>
|
1304 |
+
</div>
|
1305 |
</td>
|
1306 |
+
<td class="poll-votes column-vote num"><?php echo number_format_i18n( $poll->_responses ); ?></td>
|
1307 |
+
<td class="date column-date"><abbr title="<?php echo date( __('Y/m/d g:i:s A', 'polldaddy'), $poll_time ); ?>"><?php echo date( __('Y/m/d', 'polldaddy'), $poll_time ); ?></abbr></td>
|
1308 |
+
</tr>
|
1309 |
+
<tr class="polldaddy-shortcode-row" style="display: none;">
|
1310 |
+
<td colspan="4">
|
1311 |
+
<h4><?php _e( 'WordPress Shortcode', 'polldaddy' ); ?></h4>
|
1312 |
+
<pre style="width:175px;">[polldaddy poll=<?php echo (int) $poll_id; ?>]</pre>
|
1313 |
+
|
1314 |
+
<h4><?php _e( 'JavaScript', 'polldaddy' ); ?></h4>
|
1315 |
+
<pre><script type="text/javascript" language="javascript"
|
1316 |
src="http://static.polldaddy.com/p/<?php echo (int) $poll_id; ?>.js"></script>
|
1317 |
<noscript>
|
1318 |
+
<a href="http://polldaddy.com/poll/<?php echo (int) $poll_id; ?>/"><?php echo trim( strip_tags( $poll->___content ) ); ?></a><br/>
|
1319 |
<span style="font:9px;">(<a href="http://www.polldaddy.com">polls</a>)</span>
|
1320 |
</noscript></pre>
|
1321 |
+
<h4><?php _e( 'Short URL (Good for Twitter etc.)', 'polldaddy' ); ?></h4>
|
1322 |
+
<pre style="width:175px;">http://poll.fm/<?php echo base_convert( $poll_id, 10, 36 ); ?></pre>
|
1323 |
+
<h4><?php _e( 'Facebook URL', 'polldaddy' ); ?></h4>
|
1324 |
+
<pre style="width:175px;">http://poll.fm/f/<?php echo base_convert( $poll_id, 10, 36 ); ?></pre>
|
1325 |
+
</td>
|
1326 |
+
</tr>
|
1327 |
+
|
1328 |
<?php
|
1329 |
endforeach;
|
1330 |
elseif ( $total_polls ) : // $polls
|
2989 |
$show_posts = $show_posts_index = $show_pages = $show_comments = $pos_posts = $pos_posts_index = $pos_pages = $pos_comments = 0;
|
2990 |
$show_settings = $rating_updated = ( $action == 'update-rating' ? true : false );
|
2991 |
$error = false;
|
2992 |
+
|
2993 |
$settings_style = 'display: none;';
|
2994 |
if( $show_settings )
|
2995 |
+
$settings_style = 'display: block;';
|
2996 |
+
|
2997 |
+
$rating_id = get_option( 'pd-rating-posts-id' );
|
2998 |
+
$report_type = 'posts';
|
2999 |
+
$updated = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3000 |
|
3001 |
+
if ( isset( $rating ) ) {
|
3002 |
+
switch ( $rating ) :
|
3003 |
+
case 'pages':
|
3004 |
+
$report_type = 'pages';
|
3005 |
+
$rating_id = (int) get_option( 'pd-rating-pages-id' );
|
3006 |
+
break;
|
3007 |
+
case 'comments':
|
3008 |
+
$report_type = 'comments';
|
3009 |
+
$rating_id = (int) get_option( 'pd-rating-comments-id' );
|
3010 |
+
break;
|
3011 |
+
case 'posts':
|
3012 |
+
$report_type = 'posts';
|
3013 |
+
$rating_id = (int) get_option( 'pd-rating-posts-id' );
|
3014 |
+
break;
|
3015 |
+
endswitch;
|
3016 |
+
}
|
|
|
|
|
3017 |
|
3018 |
+
$new_type = 0;
|
3019 |
+
if ( $report_type == 'comments' )
|
3020 |
+
$new_type = 1;
|
3021 |
+
|
3022 |
+
$blog_name = get_option( 'blogname' );
|
3023 |
+
|
3024 |
+
if ( empty( $blog_name ) )
|
3025 |
+
$blog_name = 'WordPress Blog';
|
3026 |
+
$blog_name .= ' - ' . $report_type;
|
3027 |
+
|
3028 |
+
$polldaddy = $this->get_client( WP_POLLDADDY__PARTNERGUID, $this->rating_user_code );
|
3029 |
+
$polldaddy->reset();
|
3030 |
+
|
3031 |
+
if ( empty( $rating_id ) ) {
|
3032 |
+
$pd_rating = $polldaddy->create_rating( $blog_name , $new_type );
|
3033 |
+
if ( !empty( $pd_rating ) ) {
|
3034 |
+
$rating_id = (int) $pd_rating->_id;
|
3035 |
+
update_option ( 'pd-rating-' . $report_type . '-id', $rating_id );
|
3036 |
+
update_option ( 'pd-rating-' . $report_type, 0 );
|
3037 |
+
}
|
3038 |
+
} else
|
3039 |
+
$pd_rating = $polldaddy->get_rating( $rating_id );
|
3040 |
|
3041 |
+
if ( empty( $pd_rating ) || (int) $pd_rating->_id == 0 ) {
|
3042 |
+
|
3043 |
+
if ( $polldaddy->errors ) {
|
3044 |
+
if( array_key_exists( 4, $polldaddy->errors ) ) { //Obsolete key
|
3045 |
+
$this->rating_user_code = '';
|
3046 |
+
update_option( 'pd-rating-usercode', '' );
|
3047 |
+
$this->set_api_user_code(); // get latest key
|
3048 |
+
|
3049 |
+
$polldaddy = $this->get_client( WP_POLLDADDY__PARTNERGUID, $this->rating_user_code );
|
3050 |
+
$polldaddy->reset();
|
3051 |
+
$pd_rating = $polldaddy->get_rating( $rating_id ); //see it exists
|
3052 |
+
|
3053 |
+
if ( empty( $pd_rating ) || (int) $pd_rating->_id == 0 ) { //if not then create a rating for blog
|
3054 |
+
$polldaddy->reset();
|
3055 |
+
$pd_rating = $polldaddy->create_rating( $blog_name , $new_type );
|
3056 |
+
}
|
3057 |
+
}
|
3058 |
+
}
|
3059 |
+
|
3060 |
+
if( empty( $pd_rating ) ) { //something's up!
|
3061 |
+
echo '<div class="error"><p>'.sprintf(__('Sorry! There was an error creating your rating widget. Please contact <a href="%1$s" %2$s>PollDaddy support</a> to fix this.', 'polldaddy'), 'http://polldaddy.com/feedback/', 'target="_blank"') . '</p></div>';
|
3062 |
+
$error = true;
|
3063 |
+
} else {
|
3064 |
+
$rating_id = (int) $pd_rating->_id;
|
3065 |
+
update_option ( 'pd-rating-' . $report_type . '-id', $rating_id );
|
3066 |
+
update_option ( 'pd-rating-' . $report_type, 0 );
|
3067 |
+
|
3068 |
+
switch ( $report_type ) :
|
3069 |
+
case 'posts':
|
3070 |
+
$show_posts = 0;
|
3071 |
+
break;
|
3072 |
+
case 'pages':
|
3073 |
+
$show_pages = 0;
|
3074 |
+
break;
|
3075 |
+
case 'comments':
|
3076 |
+
$show_comments = 0;
|
3077 |
+
break;
|
3078 |
+
endswitch;
|
3079 |
+
}
|
3080 |
+
}
|
3081 |
|
3082 |
+
if ( isset( $_POST[ 'pd_rating_action_type' ] ) ) {
|
3083 |
+
|
3084 |
+
switch ( $_POST[ 'pd_rating_action_type' ] ) :
|
3085 |
+
case 'posts' :
|
3086 |
+
if ( isset( $_POST[ 'pd_show_posts' ] ) && (int) $_POST[ 'pd_show_posts' ] == 1 )
|
3087 |
+
$show_posts = get_option( 'pd-rating-posts-id' );
|
3088 |
+
|
3089 |
+
update_option( 'pd-rating-posts', $show_posts );
|
3090 |
+
|
3091 |
+
if ( isset( $_POST[ 'pd_show_posts_index' ] ) && (int) $_POST[ 'pd_show_posts_index' ] == 1 )
|
3092 |
+
$show_posts_index = get_option( 'pd-rating-posts-id' );
|
3093 |
+
|
3094 |
+
update_option( 'pd-rating-posts-index', $show_posts_index );
|
3095 |
+
|
3096 |
+
if ( isset( $_POST[ 'posts_pos' ] ) && (int) $_POST[ 'posts_pos' ] == 1 )
|
3097 |
+
$pos_posts = 1;
|
3098 |
+
|
3099 |
+
update_option( 'pd-rating-posts-pos', $pos_posts );
|
3100 |
+
|
3101 |
+
if ( isset( $_POST[ 'posts_index_pos' ] ) && (int) $_POST[ 'posts_index_pos' ] == 1 )
|
3102 |
+
$pos_posts_index = 1;
|
3103 |
+
|
3104 |
+
update_option( 'pd-rating-posts-index-pos', $pos_posts_index );
|
3105 |
+
$rating_updated = true;
|
3106 |
+
break;
|
3107 |
+
|
3108 |
+
case 'pages';
|
3109 |
+
if ( isset( $_POST[ 'pd_show_pages' ] ) && (int) $_POST[ 'pd_show_pages' ] == 1 )
|
3110 |
+
$show_pages = get_option( 'pd-rating-pages-id' );
|
3111 |
+
|
3112 |
+
update_option( 'pd-rating-pages', $show_pages );
|
3113 |
+
|
3114 |
+
if ( isset( $_POST[ 'pages_pos' ] ) && (int) $_POST[ 'pages_pos' ] == 1 )
|
3115 |
+
$pos_pages = 1;
|
3116 |
+
|
3117 |
+
update_option( 'pd-rating-pages-pos', $pos_pages );
|
3118 |
+
$rating_updated = true;
|
3119 |
+
break;
|
3120 |
+
|
3121 |
+
case 'comments':
|
3122 |
+
if ( isset( $_POST[ 'pd_show_comments' ] ) && (int) $_POST[ 'pd_show_comments' ] == 1 )
|
3123 |
+
$show_comments = get_option( 'pd-rating-comments-id' );
|
3124 |
+
|
3125 |
+
update_option( 'pd-rating-comments', $show_comments );
|
3126 |
+
|
3127 |
+
if ( isset( $_POST[ 'comments_pos' ] ) && (int) $_POST[ 'comments_pos' ] == 1 )
|
3128 |
+
$pos_comments = 1;
|
3129 |
+
|
3130 |
+
update_option( 'pd-rating-comments-pos', $pos_comments );
|
3131 |
+
|
3132 |
+
$rating_updated = true;
|
3133 |
+
break;
|
3134 |
+
endswitch;
|
3135 |
+
}
|
3136 |
|
3137 |
+
$show_posts = (int) get_option( 'pd-rating-posts' );
|
3138 |
+
$show_pages = (int) get_option( 'pd-rating-pages' );
|
3139 |
+
$show_comments = (int) get_option( 'pd-rating-comments' );
|
3140 |
+
$show_posts_index = (int) get_option( 'pd-rating-posts-index' );
|
3141 |
+
|
3142 |
+
$pos_posts = (int) get_option( 'pd-rating-posts-pos' );
|
3143 |
+
$pos_pages = (int) get_option( 'pd-rating-pages-pos' );
|
3144 |
+
$pos_comments = (int) get_option( 'pd-rating-comments-pos' );
|
3145 |
+
$pos_posts_index = (int) get_option( 'pd-rating-posts-index-pos' );
|
3146 |
+
|
3147 |
+
if ( !empty( $pd_rating ) ) {
|
3148 |
+
$settings_text = $pd_rating->settings;
|
3149 |
+
$settings = json_decode( $settings_text );
|
3150 |
+
$rating_type = 0;
|
3151 |
+
|
3152 |
+
if( $settings->type == 'stars' )
|
3153 |
+
$rating_type = 0;
|
3154 |
+
else
|
3155 |
+
$rating_type = 1;
|
3156 |
+
|
3157 |
+
if( empty( $settings->font_color ) )
|
3158 |
+
$settings->font_color = '#000000';
|
3159 |
+
}?>
|
3160 |
<div class="wrap">
|
3161 |
<h2><?php _e('Rating Settings', 'polldaddy'); ?></h2><?php
|
3162 |
if ( $rating_updated )
|
3164 |
|
3165 |
if ( !$error ) { ?>
|
3166 |
<div id="side-sortables">
|
3167 |
+
<div id="categorydiv" class="categorydiv">
|
3168 |
+
<ul id="category-tabs" class="category-tabs"><?php
|
3169 |
$this_class = '';
|
3170 |
$posts_link = clean_url( add_query_arg( array( 'rating' => 'posts', 'message' => false ) ) );
|
3171 |
$pages_link = clean_url( add_query_arg( array( 'rating' => 'pages', 'message' => false ) ) );
|
3709 |
|
3710 |
$polldaddy = $this->get_client( WP_POLLDADDY__PARTNERGUID, $this->rating_user_code );
|
3711 |
$polldaddy->reset();
|
3712 |
+
$rating = $polldaddy->update_rating( $rating_id, $settings_text, $rating_type );
|
3713 |
}
|
3714 |
else if( $this->is_admin && $new_rating_id > 0 ){
|
3715 |
switch( $type ){
|
3780 |
$period = '7';
|
3781 |
$show_rating = 0;
|
3782 |
|
3783 |
+
if ( isset( $_REQUEST['change-report-to'] ) ){
|
3784 |
+
switch ( $_REQUEST['change-report-to'] ) :
|
3785 |
case 'pages':
|
3786 |
$report_type = 'pages';
|
3787 |
$rating_id = (int) get_option( 'pd-rating-pages-id' );
|
3853 |
$total = (int) $response->_total;
|
3854 |
$total_pages = ceil( $total / $page_size );
|
3855 |
}
|
3856 |
+
|
3857 |
$page_links = paginate_links( array(
|
3858 |
+
'base' => add_query_arg( array ('paged' => '%#%', 'change-report-to' => $report_type, 'filter' => $period ) ),
|
3859 |
'format' => '',
|
3860 |
'prev_text' => __('«', 'polldaddy'),
|
3861 |
'next_text' => __('»', 'polldaddy'),
|
3866 |
<div class="wrap">
|
3867 |
<h2><?php _e('Rating Reports', 'polldaddy');?> <span style="font-size: 16px;">(<?php echo ( $report_type ); ?>)</span></h2>
|
3868 |
<div class="clear"></div>
|
3869 |
+
<form method="post" action="admin.php?page=ratings&action=reports">
|
3870 |
<div class="tablenav">
|
3871 |
+
<div class="alignleft actions">
|
3872 |
+
<select name="action">
|
3873 |
+
<option selected="selected" value=""><?php _e( 'Actions', 'polldaddy' ); ?></option>
|
3874 |
+
<option value="delete"><?php _e( 'Delete', 'polldaddy' ); ?></option>
|
3875 |
+
</select>
|
3876 |
+
<input type="hidden" name="id" id="id" value="<?php echo (int) $rating_id; ?>" />
|
3877 |
+
<input class="button-secondary action" type="submit" name="doaction" value="<?php _e( 'Apply', 'polldaddy' ); ?>" />
|
3878 |
+
<?php wp_nonce_field( 'action-rating_bulk' ); ?>
|
3879 |
+
<select name="change-report-to"><?php
|
3880 |
$select = array( __('Posts', 'polldaddy') => "posts", __('Pages', 'polldaddy') => "pages", __('Comments', 'polldaddy') => "comments" );
|
3881 |
foreach ( $select as $option => $value ) :
|
3882 |
$selected = '';
|
3883 |
if ( $value == $report_type )
|
3884 |
+
$selected = ' selected="selected"';?>
|
3885 |
+
<option value="<?php echo $value; ?>" <?php echo $selected; ?>><?php echo $option; ?></option>
|
3886 |
+
<?php endforeach; ?>
|
3887 |
</select>
|
3888 |
+
<select name="filter"><?php
|
|
|
|
|
3889 |
$select = array( __('Last 24 hours', 'polldaddy') => "1", __('Last 7 days', 'polldaddy') => "7", __('Last 31 days', 'polldaddy') => "31", __('Last 3 months', 'polldaddy') => "90", __('Last 12 months', 'polldaddy') => "365", __('All time', 'polldaddy') => "all" );
|
3890 |
foreach ( $select as $option => $value ) :
|
3891 |
$selected = '';
|
3892 |
if ( $value == $period )
|
3893 |
+
$selected = ' selected="selected"';?>
|
3894 |
+
<option value="<?php echo $value; ?>" <?php echo $selected; ?>><?php echo $option; ?></option>
|
3895 |
+
<?php endforeach; ?>
|
3896 |
+
</select>
|
3897 |
+
<input class="button-secondary action" type="submit" value="<?php _e('Filter', 'polldaddy');?>" />
|
3898 |
</div>
|
3899 |
<div class="alignright">
|
3900 |
<div class="tablenav-pages">
|
3902 |
</div>
|
3903 |
</div>
|
3904 |
</div>
|
|
|
3905 |
|
3906 |
<table class="widefat"><?php
|
3907 |
+
if ( empty( $ratings ) ) { ?>
|
3908 |
+
<tbody>
|
3909 |
+
<tr>
|
3910 |
+
<td colspan="4"><?php printf(__('No ratings have been collected for your %s yet.', 'polldaddy'), $report_type); ?></td>
|
3911 |
+
</tr>
|
3912 |
+
</tbody><?php
|
3913 |
+
} else { ?>
|
3914 |
+
<thead>
|
3915 |
+
<tr>
|
3916 |
+
<th scope="col" class="manage-column column-cb check-column" id="cb"><input type="checkbox"></th>
|
3917 |
+
<th scope="col" class="manage-column column-title" id="title"><?php _e('Title', 'polldaddy');?></th>
|
3918 |
+
<th scope="col" class="manage-column column-id" id="id"><?php _e('Unique ID', 'polldaddy');?></th>
|
3919 |
+
<th scope="col" class="manage-column column-date" id="date"><?php _e('Start Date', 'polldaddy');?></th>
|
3920 |
+
<th scope="col" class="manage-column column-vote num" id="votes"><?php _e('Votes', 'polldaddy');?></th>
|
3921 |
+
<th scope="col" class="manage-column column-rating num" id="rating"><?php _e('Average Rating', 'polldaddy');?></th>
|
3922 |
+
</tr>
|
3923 |
+
</thead>
|
3924 |
+
<tbody><?php
|
3925 |
+
$alt_counter = 0;
|
3926 |
+
$alt = '';
|
3927 |
+
|
3928 |
+
foreach ( $ratings as $rating ) :
|
3929 |
+
$delete_link = clean_url( wp_nonce_url( add_query_arg( array( 'action' => 'delete', 'id' => $rating_id, 'rating' => $rating->uid, 'change-report-to' => $report_type, 'message' => false ) ), "delete-rating_$rating->uid" ) );
|
3930 |
+
$alt_counter++;?>
|
3931 |
+
<tr <?php echo ( $alt_counter & 1 ) ? ' class="alternate"' : ''; ?>>
|
3932 |
+
<th class="check-column" scope="row"><input type="checkbox" value="<?php echo wp_specialchars( $rating->uid ); ?>" name="rating[]" /></th>
|
3933 |
+
<td class="post-title column-title">
|
3934 |
+
<strong><a href="<?php echo clean_url( $rating->permalink ); ?>"><?php echo strlen( wp_specialchars( $rating->title ) ) > 75 ? substr( wp_specialchars( $rating->title ), 0, 72 ) . '&hellip' : wp_specialchars( $rating->title ); ?></a></strong>
|
3935 |
+
<div class="row-actions">
|
3936 |
+
<?php if ( $delete_link ) { ?>
|
3937 |
+
<span class="delete"><a class="delete-rating delete" href="<?php echo $delete_link; ?>"><?php _e( 'Delete', 'polldaddy' ); ?></a></span>
|
3938 |
+
<?php } ?>
|
3939 |
+
</div>
|
3940 |
+
</td>
|
3941 |
+
<td class="column-id">
|
3942 |
+
<?php echo wp_specialchars( $rating->uid ); ?>
|
3943 |
+
</td>
|
3944 |
+
<td class="date column-date">
|
3945 |
+
<abbr title="<?php echo date( __('Y/m/d g:i:s A', 'polldaddy'), $rating->date ); ?>"><?php echo str_replace( '-', '/', substr( wp_specialchars( $rating->date ), 0, 10 ) ); ?></abbr>
|
3946 |
+
</td>
|
3947 |
+
<td class="column-vote num"><?php echo number_format( $rating->_votes ); ?></td>
|
3948 |
+
<td class="column-rating num"><table width="100%"><tr align="center"><td style="border:none;"><?php
|
3949 |
+
if ( $rating->_type == 0 ) {
|
3950 |
+
$avg_rating = $this->round( $rating->average_rating, 0.5 );?>
|
3951 |
+
<div style="width:100px"><?php
|
3952 |
+
$image_pos = '';
|
3953 |
+
|
3954 |
+
for ( $c = 1; $c <= 5; $c++ ) :
|
3955 |
+
if ( $avg_rating > 0 ) {
|
3956 |
+
if ( $avg_rating < $c )
|
3957 |
+
$image_pos = 'bottom left';
|
3958 |
+
if ( $avg_rating == ( $c - 1 + 0.5 ) )
|
3959 |
+
$image_pos = 'center left';
|
3960 |
+
} ?>
|
3961 |
+
<div style="width: 20px; height: 20px; background: url(http://i.polldaddy.com/ratings/images/star-yellow-med.png) <?php echo $image_pos; ?>; float: left;"></div><?php
|
3962 |
+
endfor; ?>
|
3963 |
+
<br class="clear" />
|
3964 |
+
</div><?php
|
3965 |
+
} else { ?>
|
3966 |
+
<div>
|
3967 |
+
<div style="margin: 0px 0px 0px 20px; background: transparent url(http://i.polldaddy.com/images/rate-graph-up.png); width: 20px; height: 20px; float: left;"></div>
|
3968 |
+
<div style="float:left; line-height: 20px; padding: 0px 10px 0px 5px;"><?php echo number_format ( $rating->total1 );?></div>
|
3969 |
+
<div style="margin: 0px; background: transparent url(http://i.polldaddy.com/images/rate-graph-dn.png); width: 20px; height: 20px; float: left;"></div>
|
3970 |
+
<div style="float:left; line-height: 20px; padding: 0px 10px 0px 5px;"><?php echo number_format( $rating->total2 );?></div>
|
3971 |
+
<br class="clear" />
|
3972 |
+
</div><?php
|
3973 |
+
} ?>
|
3974 |
+
</td></tr></table>
|
3975 |
+
</td>
|
3976 |
+
</tr><?php
|
3977 |
+
endforeach;
|
3978 |
+
?>
|
3979 |
+
</tbody><?php
|
3980 |
+
} ?>
|
3981 |
</table>
|
3982 |
<div class="tablenav">
|
3983 |
<div class="alignright">
|
3984 |
<div class="tablenav-pages">
|
3985 |
+
<?php echo $page_links; ?>
|
3986 |
</div>
|
3987 |
</div>
|
3988 |
</div>
|
3989 |
+
</form>
|
3990 |
</div>
|
3991 |
<p></p><?php
|
3992 |
}
|
4234 |
}
|
4235 |
|
4236 |
require 'rating.php';
|
4237 |
+
require 'polldaddy-org.php';
|
readme.txt
CHANGED
@@ -1,15 +1,24 @@
|
|
1 |
=== PollDaddy Polls & Ratings ===
|
2 |
-
Contributors: mdawaffe, eoigal
|
3 |
-
Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys, rate, rating, ratings
|
4 |
Requires at least: 2.6
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.8.
|
7 |
|
8 |
Create and manage PollDaddy polls and ratings from within WordPress.
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
The PollDaddy Polls and Ratings plugin allows you to create and manage polls and ratings from within your WordPress dashboard.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
PollDaddy Polls is localizable and currently available in:
|
15 |
|
@@ -64,6 +73,10 @@ More info here - http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks
|
|
64 |
You need to select the synchronize ratings account in the Options menu to make sure the ratings API key is valid.
|
65 |
|
66 |
== Change Log ==
|
|
|
|
|
|
|
|
|
67 |
= 1.8.6 =
|
68 |
* Added new Embed options, added short URL to community site and Facebook directory
|
69 |
|
1 |
=== PollDaddy Polls & Ratings ===
|
2 |
+
Contributors: mdawaffe, eoigal, automattic
|
3 |
+
Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys, rate, rating, ratings, WordPress.com
|
4 |
Requires at least: 2.6
|
5 |
+
Tested up to: 3.0
|
6 |
+
Stable tag: 1.8.7
|
7 |
|
8 |
Create and manage PollDaddy polls and ratings from within WordPress.
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
+
The PollDaddy Polls and Ratings plugin allows you to create and manage polls and ratings from within your WordPress dashboard.
|
13 |
+
You can create polls, choose from 20 different styles for your polls, and view all results for your polls as they come in.
|
14 |
+
|
15 |
+
All PollDaddy polls are fully customizable, you can set a close date for your poll, create multiple choice polls, choose whether
|
16 |
+
to display the results or keep them private. You can also create your own custom style for your poll. You can even embed the polls
|
17 |
+
you create on other websites. You can collect unlimited votes and create unlimited polls.
|
18 |
+
|
19 |
+
The new ratings menu allows you to embed ratings into your posts, pages or comments. The rating editor allows you to fully
|
20 |
+
customize you rating. You can also avail of the the 'Top Rated' widget that will allow you to place the widget in your
|
21 |
+
sidebar. This widget will show you the top rated posts, pages and comments today, this week and this month.
|
22 |
|
23 |
PollDaddy Polls is localizable and currently available in:
|
24 |
|
73 |
You need to select the synchronize ratings account in the Options menu to make sure the ratings API key is valid.
|
74 |
|
75 |
== Change Log ==
|
76 |
+
= 1.8.7 =
|
77 |
+
* Added delete option to rating reports to allow you to reset ratings results for posts/pages/comments
|
78 |
+
* Tidied poll and rating reports tables to use WordPress standard tables
|
79 |
+
|
80 |
= 1.8.6 =
|
81 |
* Added new Embed options, added short URL to community site and Facebook directory
|
82 |
|