Changeset 760675
- Timestamp:
- 08/22/2013 01:28:01 PM (13 years ago)
- Location:
- qr-code-widget/trunk
- Files:
-
- 9 added
- 3 deleted
- 4 edited
-
colorpicker/css/colorpicker.css (modified) (1 diff)
-
colorpicker/css/layout.css (modified) (1 diff)
-
includes (added)
-
includes/phpqrcode.php (added)
-
includes/qr-code-admin.php (added)
-
includes/qr-code-suite.php (added)
-
languages/qr-code-widget-de_DE.mo (added)
-
languages/qr-code-widget-de_DE.po (added)
-
languages/qr-code-widget.pot (modified) (8 diffs)
-
phpqrcode.php (deleted)
-
qr-code-widget.php (modified) (1 diff)
-
qr_code_suite.php (deleted)
-
qrcode-admin.php (deleted)
-
screenshot-1.png (added)
-
screenshot-2.png (added)
-
screenshot-3.png (added)
Legend:
- Unmodified
- Added
- Removed
-
qr-code-widget/trunk/colorpicker/css/colorpicker.css
r368042 r760675 1 1 .colorpicker { 2 width: 356px;3 height: 176px;4 overflow: hidden;5 position: absolute;6 background: url(../images/colorpicker_background.png);7 font-family: Arial, Helvetica, sans-serif;8 display: none;2 width: 356px; 3 height: 176px; 4 overflow: hidden; 5 position: absolute; 6 background: url(../images/colorpicker_background.png); 7 font-family: Arial, Helvetica, sans-serif; 8 display: none; 9 9 } 10 10 11 .colorpicker_color { 11 width: 150px;12 height: 150px;13 left: 14px;14 top: 13px;15 position: absolute;16 background: #f00;17 overflow: hidden;18 cursor: crosshair;12 width: 150px; 13 height: 150px; 14 left: 14px; 15 top: 13px; 16 position: absolute; 17 background: #f00; 18 overflow: hidden; 19 cursor: crosshair; 19 20 } 21 20 22 .colorpicker_color div { 21 position: absolute;22 top: 0;23 left: 0;24 width: 150px;25 height: 150px;26 background: url(../images/colorpicker_overlay.png);23 position: absolute; 24 top: 0; 25 left: 0; 26 width: 150px; 27 height: 150px; 28 background: url(../images/colorpicker_overlay.png); 27 29 } 30 28 31 .colorpicker_color div div { 29 position: absolute;30 top: 0;31 left: 0;32 width: 11px;33 height: 11px;34 overflow: hidden;35 background: url(../images/colorpicker_select.gif);36 margin: -5px 0 0 -5px;32 position: absolute; 33 top: 0; 34 left: 0; 35 width: 11px; 36 height: 11px; 37 overflow: hidden; 38 background: url(../images/colorpicker_select.gif); 39 margin: -5px 0 0 -5px; 37 40 } 41 38 42 .colorpicker_hue { 39 position: absolute;40 top: 13px;41 left: 171px;42 width: 35px;43 height: 150px;44 cursor: n-resize;43 position: absolute; 44 top: 13px; 45 left: 171px; 46 width: 35px; 47 height: 150px; 48 cursor: n-resize; 45 49 } 50 46 51 .colorpicker_hue div { 47 position: absolute;48 width: 35px;49 height: 9px;50 overflow: hidden;51 background: url(../images/colorpicker_indic.gif) left top;52 margin: -4px 0 0 0;53 left: 0px;52 position: absolute; 53 width: 35px; 54 height: 9px; 55 overflow: hidden; 56 background: url(../images/colorpicker_indic.gif) left top; 57 margin: -4px 0 0 0; 58 left: 0px; 54 59 } 60 55 61 .colorpicker_new_color { 56 position: absolute;57 width: 60px;58 height: 30px;59 left: 213px;60 top: 13px;61 background: #f00;62 position: absolute; 63 width: 60px; 64 height: 30px; 65 left: 213px; 66 top: 13px; 67 background: #f00; 62 68 } 69 63 70 .colorpicker_current_color { 64 position: absolute;65 width: 60px;66 height: 30px;67 left: 283px;68 top: 13px;69 background: #f00;71 position: absolute; 72 width: 60px; 73 height: 30px; 74 left: 283px; 75 top: 13px; 76 background: #f00; 70 77 } 78 71 79 .colorpicker input { 72 background-color: transparent;73 border: 1px solid transparent;74 position: absolute;75 font-size: 10px;76 font-family: Arial, Helvetica, sans-serif;77 color: #898989;78 top: 4px;79 right: 11px;80 text-align: right;81 margin: 0;82 padding: 0;83 height: 11px;80 background-color: transparent; 81 border: 1px solid transparent; 82 position: absolute; 83 font-size: 10px; 84 font-family: Arial, Helvetica, sans-serif; 85 color: #898989; 86 top: 4px; 87 right: 11px; 88 text-align: right; 89 margin: 0; 90 padding: 0; 91 height: 11px; 84 92 } 93 85 94 .colorpicker_hex { 86 position: absolute;87 width: 72px;88 height: 22px;89 background: url(../images/colorpicker_hex.png) top;90 left: 212px;91 top: 142px;95 position: absolute; 96 width: 72px; 97 height: 22px; 98 background: url(../images/colorpicker_hex.png) top; 99 left: 212px; 100 top: 142px; 92 101 } 102 93 103 .colorpicker_hex input { 94 right: 6px;104 right: 6px; 95 105 } 106 96 107 .colorpicker_field { 97 height: 22px;98 width: 62px;99 background-position: top;100 position: absolute;108 height: 22px; 109 width: 62px; 110 background-position: top; 111 position: absolute; 101 112 } 113 102 114 .colorpicker_field span { 103 position: absolute;104 width: 12px;105 height: 22px;106 overflow: hidden;107 top: 0;108 right: 0;109 cursor: n-resize;115 position: absolute; 116 width: 12px; 117 height: 22px; 118 overflow: hidden; 119 top: 0; 120 right: 0; 121 cursor: n-resize; 110 122 } 123 111 124 .colorpicker_rgb_r { 112 background-image: url(../images/colorpicker_rgb_r.png);113 top: 52px;114 left: 212px;125 background-image: url(../images/colorpicker_rgb_r.png); 126 top: 52px; 127 left: 212px; 115 128 } 129 116 130 .colorpicker_rgb_g { 117 background-image: url(../images/colorpicker_rgb_g.png);118 top: 82px;119 left: 212px;131 background-image: url(../images/colorpicker_rgb_g.png); 132 top: 82px; 133 left: 212px; 120 134 } 135 121 136 .colorpicker_rgb_b { 122 background-image: url(../images/colorpicker_rgb_b.png);123 top: 112px;124 left: 212px;137 background-image: url(../images/colorpicker_rgb_b.png); 138 top: 112px; 139 left: 212px; 125 140 } 141 126 142 .colorpicker_hsb_h { 127 background-image: url(../images/colorpicker_hsb_h.png);128 top: 52px;129 left: 282px;143 background-image: url(../images/colorpicker_hsb_h.png); 144 top: 52px; 145 left: 282px; 130 146 } 147 131 148 .colorpicker_hsb_s { 132 background-image: url(../images/colorpicker_hsb_s.png);133 top: 82px;134 left: 282px;149 background-image: url(../images/colorpicker_hsb_s.png); 150 top: 82px; 151 left: 282px; 135 152 } 153 136 154 .colorpicker_hsb_b { 137 background-image: url(../images/colorpicker_hsb_b.png);138 top: 112px;139 left: 282px;155 background-image: url(../images/colorpicker_hsb_b.png); 156 top: 112px; 157 left: 282px; 140 158 } 159 141 160 .colorpicker_submit { 142 position: absolute;143 width: 22px;144 height: 22px;145 background: url(../images/colorpicker_submit.png) top;146 left: 322px;147 top: 142px;148 overflow: hidden;161 position: absolute; 162 width: 22px; 163 height: 22px; 164 background: url(../images/colorpicker_submit.png) top; 165 left: 322px; 166 top: 142px; 167 overflow: hidden; 149 168 } 169 150 170 .colorpicker_focus { 151 background-position: center;171 background-position: center; 152 172 } 173 153 174 .colorpicker_hex.colorpicker_focus { 154 background-position: bottom;175 background-position: bottom; 155 176 } 177 156 178 .colorpicker_submit.colorpicker_focus { 157 background-position: bottom;179 background-position: bottom; 158 180 } 181 159 182 .colorpicker_slider { 160 background-position: bottom;183 background-position: bottom; 161 184 } -
qr-code-widget/trunk/colorpicker/css/layout.css
r368042 r760675 1 body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { 2 margin:0; 3 padding:0; 4 } 1 body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td { 2 margin: 0; 3 padding: 0; 4 } 5 5 6 table { 6 border-collapse:collapse; 7 border-spacing:0; 8 } 9 fieldset,img { 10 border:0; 11 } 12 address,caption,cite,code,dfn,em,strong,th,var { 13 font-style:normal; 14 font-weight:normal; 15 } 16 ol,ul { 17 list-style:none; 18 } 19 caption,th { 20 text-align:left; 21 } 22 h1,h2,h3,h4,h5,h6 { 23 font-size:100%; 24 font-weight:normal; 25 } 26 q:before,q:after { 27 content:''; 28 } 29 abbr,acronym { border:0; 30 } 7 border-collapse: collapse; 8 border-spacing: 0; 9 } 10 11 fieldset, img { 12 border: 0; 13 } 14 15 address, caption, cite, code, dfn, em, strong, th, var { 16 font-style: normal; 17 font-weight: normal; 18 } 19 20 ol, ul { 21 list-style: none; 22 } 23 24 caption, th { 25 text-align: left; 26 } 27 28 h1, h2, h3, h4, h5, h6 { 29 font-size: 100%; 30 font-weight: normal; 31 } 32 33 q:before, q:after { 34 content: ''; 35 } 36 37 abbr, acronym { 38 border: 0; 39 } 40 31 41 html, body { 32 background-color: #fff; 33 font-family: Arial, Helvetica, sans-serif; 34 font-size: 12px; 35 line-height: 18px; 36 color: #52697E; 37 } 42 background-color: #fff; 43 font-family: Arial, Helvetica, sans-serif; 44 font-size: 12px; 45 line-height: 18px; 46 color: #52697E; 47 } 48 38 49 body { 39 text-align: center; 40 overflow: auto; 41 } 50 text-align: center; 51 overflow: auto; 52 } 53 42 54 .wrapper { 43 width: 700px; 44 margin: 0 auto; 45 text-align: left; 46 } 55 width: 700px; 56 margin: 0 auto; 57 text-align: left; 58 } 59 47 60 h1 { 48 font-size: 21px; 49 height: 47px; 50 line-height: 47px; 51 text-transform: uppercase; 52 } 61 font-size: 21px; 62 height: 47px; 63 line-height: 47px; 64 text-transform: uppercase; 65 } 66 53 67 .navigationTabs { 54 height: 23px; 55 line-height: 23px; 56 border-bottom: 1px solid #ccc; 57 } 68 height: 23px; 69 line-height: 23px; 70 border-bottom: 1px solid #ccc; 71 } 72 58 73 .navigationTabs li { 59 float: left; 60 height: 23px; 61 line-height: 23px; 62 padding-right: 3px; 63 } 64 .navigationTabs li a{ 65 float: left; 66 dispaly: block; 67 height: 23px; 68 line-height: 23px; 69 padding: 0 10px; 70 overflow: hidden; 71 color: #52697E; 72 background-color: #eee; 73 position: relative; 74 text-decoration: none; 75 } 74 float: left; 75 height: 23px; 76 line-height: 23px; 77 padding-right: 3px; 78 } 79 80 .navigationTabs li a { 81 float: left; 82 dispaly: block; 83 height: 23px; 84 line-height: 23px; 85 padding: 0 10px; 86 overflow: hidden; 87 color: #52697E; 88 background-color: #eee; 89 position: relative; 90 text-decoration: none; 91 } 92 76 93 .navigationTabs li a:hover { 77 background-color: #f0f0f0; 78 } 94 background-color: #f0f0f0; 95 } 96 79 97 .navigationTabs li a.active { 80 background-color: #fff; 81 border: 1px solid #ccc; 82 border-bottom: 0px solid; 83 } 98 background-color: #fff; 99 border: 1px solid #ccc; 100 border-bottom: 0px solid; 101 } 102 84 103 .tabsContent { 85 border: 1px solid #ccc; 86 border-top: 0px solid; 87 width: 698px; 88 overflow: hidden; 89 } 104 border: 1px solid #ccc; 105 border-top: 0px solid; 106 width: 698px; 107 overflow: hidden; 108 } 109 90 110 .tab { 91 padding: 16px; 92 display: none; 93 } 111 padding: 16px; 112 display: none; 113 } 114 94 115 .tab h2 { 95 font-weight: bold; 96 font-size: 16px; 97 } 116 font-weight: bold; 117 font-size: 16px; 118 } 119 98 120 .tab h3 { 99 font-weight: bold; 100 font-size: 14px; 101 margin-top: 20px; 102 } 121 font-weight: bold; 122 font-size: 14px; 123 margin-top: 20px; 124 } 125 103 126 .tab p { 104 margin-top: 16px; 105 clear: both; 106 } 127 margin-top: 16px; 128 clear: both; 129 } 130 107 131 .tab ul { 108 margin-top: 16px; 109 list-style: disc; 110 } 132 margin-top: 16px; 133 list-style: disc; 134 } 135 111 136 .tab li { 112 margin: 10px 0 0 35px; 113 } 137 margin: 10px 0 0 35px; 138 } 139 114 140 .tab a { 115 color: #8FB0CF; 116 } 141 color: #8FB0CF; 142 } 143 117 144 .tab strong { 118 font-weight: bold; 119 } 145 font-weight: bold; 146 } 147 120 148 .tab pre { 121 font-size: 11px; 122 margin-top: 20px; 123 width: 668px; 124 overflow: auto; 125 clear: both; 126 } 149 font-size: 11px; 150 margin-top: 20px; 151 width: 668px; 152 overflow: auto; 153 clear: both; 154 } 155 127 156 .tab table { 128 width: 100%; 129 } 157 width: 100%; 158 } 159 130 160 .tab table td { 131 padding: 6px 10px 6px 0; 132 vertical-align: top; 133 } 161 padding: 6px 10px 6px 0; 162 vertical-align: top; 163 } 164 134 165 .tab dt { 135 margin-top: 16px;166 margin-top: 16px; 136 167 } 137 168 138 169 #colorSelector { 139 position: relative; 140 width: 36px; 141 height: 36px; 142 background: url(../images/select.png); 143 } 170 position: relative; 171 width: 36px; 172 height: 36px; 173 background: url(../images/select.png); 174 } 175 144 176 #colorSelector div { 145 position: absolute; 146 top: 3px; 147 left: 3px; 148 width: 30px; 149 height: 30px; 150 background: url(../images/select.png) center; 151 } 177 position: absolute; 178 top: 3px; 179 left: 3px; 180 width: 30px; 181 height: 30px; 182 background: url(../images/select.png) center; 183 } 184 152 185 #colorSelector2 { 153 position: absolute; 154 top: 0; 155 left: 0; 156 width: 36px; 157 height: 36px; 158 background: url(../images/select2.png); 159 } 186 position: absolute; 187 top: 0; 188 left: 0; 189 width: 36px; 190 height: 36px; 191 background: url(../images/select2.png); 192 } 193 160 194 #colorSelector2 div { 161 position: absolute; 162 top: 4px; 163 left: 4px; 164 width: 28px; 165 height: 28px; 166 background: url(../images/select2.png) center; 167 } 195 position: absolute; 196 top: 4px; 197 left: 4px; 198 width: 28px; 199 height: 28px; 200 background: url(../images/select2.png) center; 201 } 202 168 203 #colorpickerHolder2 { 169 top: 32px; 170 left: 0; 171 width: 356px; 172 height: 0; 173 overflow: hidden; 174 position: absolute; 175 } 204 top: 32px; 205 left: 0; 206 width: 356px; 207 height: 0; 208 overflow: hidden; 209 position: absolute; 210 } 211 176 212 #colorpickerHolder2 .colorpicker { 177 background-image: url(../images/custom_background.png); 178 position: absolute; 179 bottom: 0; 180 left: 0; 181 } 213 background-image: url(../images/custom_background.png); 214 position: absolute; 215 bottom: 0; 216 left: 0; 217 } 218 182 219 #colorpickerHolder2 .colorpicker_hue div { 183 background-image: url(../images/custom_indic.gif); 184 } 220 background-image: url(../images/custom_indic.gif); 221 } 222 185 223 #colorpickerHolder2 .colorpicker_hex { 186 background-image: url(../images/custom_hex.png); 187 } 224 background-image: url(../images/custom_hex.png); 225 } 226 188 227 #colorpickerHolder2 .colorpicker_rgb_r { 189 background-image: url(../images/custom_rgb_r.png); 190 } 228 background-image: url(../images/custom_rgb_r.png); 229 } 230 191 231 #colorpickerHolder2 .colorpicker_rgb_g { 192 background-image: url(../images/custom_rgb_g.png); 193 } 232 background-image: url(../images/custom_rgb_g.png); 233 } 234 194 235 #colorpickerHolder2 .colorpicker_rgb_b { 195 background-image: url(../images/custom_rgb_b.png); 196 } 236 background-image: url(../images/custom_rgb_b.png); 237 } 238 197 239 #colorpickerHolder2 .colorpicker_hsb_s { 198 background-image: url(../images/custom_hsb_s.png); 199 display: none; 200 } 240 background-image: url(../images/custom_hsb_s.png); 241 display: none; 242 } 243 201 244 #colorpickerHolder2 .colorpicker_hsb_h { 202 background-image: url(../images/custom_hsb_h.png); 203 display: none; 204 } 245 background-image: url(../images/custom_hsb_h.png); 246 display: none; 247 } 248 205 249 #colorpickerHolder2 .colorpicker_hsb_b { 206 background-image: url(../images/custom_hsb_b.png); 207 display: none; 208 } 250 background-image: url(../images/custom_hsb_b.png); 251 display: none; 252 } 253 209 254 #colorpickerHolder2 .colorpicker_submit { 210 background-image: url(../images/custom_submit.png); 211 } 255 background-image: url(../images/custom_submit.png); 256 } 257 212 258 #colorpickerHolder2 .colorpicker input { 213 color: #778398; 214 } 259 color: #778398; 260 } 261 215 262 #customWidget { 216 position: relative;217 height: 36px;218 } 263 position: relative; 264 height: 36px; 265 } -
qr-code-widget/trunk/languages/qr-code-widget.pot
r370057 r760675 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: QR Code Widget 2.0. 0_a\n"5 "Project-Id-Version: QR Code Widget 2.0.1\n" 6 6 "Report-Msgid-Bugs-To: http://wordpress.org/tag/qr-code-widget\n" 7 "POT-Creation-Date: 2011-04-0 7 10:24:12+00:00\n"7 "POT-Creation-Date: 2011-04-08 14:14:02+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" … … 14 14 15 15 #: qrcode-admin.php:11 16 msgid "QR code rtatus report"16 msgid "QR code status report" 17 17 msgstr "" 18 18 … … 21 21 msgstr "" 22 22 23 #: qrcode-admin.php:29 24 msgid "" 25 "You are about to delete all images from Cache\n" 26 "This action can not be undone!\n" 27 "\\'OK\\' to continue, \\'Cancel\\' to stop.'" 28 msgstr "" 29 30 #: qrcode-admin.php:29 23 #: qrcode-admin.php:21 24 msgid "You have %d images in cache" 25 msgstr "" 26 27 #: qrcode-admin.php:24 28 msgid "" 29 "You are about to delete all images from Cache\\nThis action can not be " 30 "undone!\\n OK to continue, Cancel to stop." 31 msgstr "" 32 33 #: qrcode-admin.php:24 31 34 msgid "Clear Cache" 32 35 msgstr "" 33 36 34 #: qrcode-admin.php:39 37 #: qrcode-admin.php:28 38 msgid "m221" 39 "<p>The intermediate storage of images is disabled. Images are re-created " 40 "every time and embedded in the HTML code. (CPU-heavy!)<br /> In order to " 41 "save the CPU resources create the cache folder %s and make sure that the " 42 "webserver can write to it.</p>" 43 msgstr "" 44 45 #: qrcode-admin.php:31 46 msgid "Try to create Cache" 47 msgstr "" 48 49 #: qrcode-admin.php:41 35 50 msgid "<h2>QR code default settings for shortcodes</h2>" 36 51 msgstr "" 37 52 38 #: qrcode-admin.php:6 1 qrcode-admin.php:23653 #: qrcode-admin.php:63 qrcode-admin.php:238 39 54 msgid "QR code settings" 40 55 msgstr "" 41 56 42 #: qrcode-admin.php:6 357 #: qrcode-admin.php:65 43 58 msgid "" 44 59 "You can define default values for your parameters using the \"Shortcode " … … 54 69 msgstr "" 55 70 56 #: qrcode-admin.php: 68 qrcode-admin.php:239qr_code_suite.php:8971 #: qrcode-admin.php:70 qrcode-admin.php:241 qr_code_suite.php:89 57 72 msgid "QR code format" 58 73 msgstr "" 59 74 60 #: qrcode-admin.php:7 0 qrcode-admin.php:241qr_code_suite.php:9075 #: qrcode-admin.php:72 qrcode-admin.php:243 qr_code_suite.php:90 61 76 msgid "PNG" 62 77 msgstr "" 63 78 64 #: qrcode-admin.php:7 1 qrcode-admin.php:242qr_code_suite.php:9179 #: qrcode-admin.php:73 qrcode-admin.php:244 qr_code_suite.php:91 65 80 msgid "Jpeg" 66 81 msgstr "" 67 82 68 #: qrcode-admin.php:7 283 #: qrcode-admin.php:74 69 84 msgid "Image format PNG or Jpeg." 70 85 msgstr "" 71 86 72 #: qrcode-admin.php:7 6 qrcode-admin.php:247qr_code_suite.php:11687 #: qrcode-admin.php:78 qrcode-admin.php:249 qr_code_suite.php:116 73 88 msgid "QR code size" 74 89 msgstr "" 75 90 76 #: qrcode-admin.php: 79 qrcode-admin.php:250qr_code_suite.php:11891 #: qrcode-admin.php:81 qrcode-admin.php:252 qr_code_suite.php:118 77 92 msgid "Small" 78 93 msgstr "" 79 94 80 #: qrcode-admin.php:8 0 qrcode-admin.php:251qr_code_suite.php:11995 #: qrcode-admin.php:82 qrcode-admin.php:253 qr_code_suite.php:119 81 96 msgid "Medium" 82 97 msgstr "" 83 98 84 #: qrcode-admin.php:8 1 qrcode-admin.php:252qr_code_suite.php:12099 #: qrcode-admin.php:83 qrcode-admin.php:254 qr_code_suite.php:120 85 100 msgid "Large" 86 101 msgstr "" 87 102 88 #: qrcode-admin.php:8 2 qrcode-admin.php:253qr_code_suite.php:121103 #: qrcode-admin.php:84 qrcode-admin.php:255 qr_code_suite.php:121 89 104 msgid "XXL" 90 105 msgstr "" 91 106 92 #: qrcode-admin.php:8 4107 #: qrcode-admin.php:86 93 108 msgid "Size of QR code image" 94 109 msgstr "" 95 110 96 #: qrcode-admin.php: 88 qrcode-admin.php:259qr_code_suite.php:107111 #: qrcode-admin.php:90 qrcode-admin.php:261 qr_code_suite.php:107 97 112 msgid "Level of error correction" 98 113 msgstr "" 99 114 100 #: qrcode-admin.php:9 7115 #: qrcode-admin.php:99 101 116 msgid "" 102 117 "<br />There are 4 ECC Levels in QR code as follows:<br />Level L - 7% of " … … 106 121 msgstr "" 107 122 108 #: qrcode-admin.php:10 2 qrcode-admin.php:271qr_code_suite.php:137123 #: qrcode-admin.php:104 qrcode-admin.php:273 qr_code_suite.php:137 109 124 msgid "Disable Cache" 110 125 msgstr "" 111 126 112 #: qrcode-admin.php:10 4 qrcode-admin.php:129 qrcode-admin.php:273113 #: qrcode-admin.php: 299qr_code_suite.php:95127 #: qrcode-admin.php:106 qrcode-admin.php:131 qrcode-admin.php:275 128 #: qrcode-admin.php:301 qr_code_suite.php:95 114 129 msgid "No" 115 130 msgstr "" 116 131 117 #: qrcode-admin.php:10 5 qrcode-admin.php:130 qrcode-admin.php:274118 #: qrcode-admin.php:30 0qr_code_suite.php:96 qr_code_suite.php:139132 #: qrcode-admin.php:107 qrcode-admin.php:132 qrcode-admin.php:276 133 #: qrcode-admin.php:302 qr_code_suite.php:96 qr_code_suite.php:139 119 134 msgid "Yes" 120 135 msgstr "" 121 136 122 #: qrcode-admin.php:10 6137 #: qrcode-admin.php:108 123 138 msgid "" 124 139 "Don't cache image. Images are re-created every time and embedded in the HTML " … … 126 141 msgstr "" 127 142 128 #: qrcode-admin.php:11 0143 #: qrcode-admin.php:112 129 144 msgid "Color settings" 130 145 msgstr "" 131 146 132 #: qrcode-admin.php:11 3147 #: qrcode-admin.php:115 133 148 msgid "Code Color" 134 149 msgstr "" 135 150 136 #: qrcode-admin.php:11 6 qrcode-admin.php:285151 #: qrcode-admin.php:118 qrcode-admin.php:287 137 152 msgid "Set Color for QR code" 138 153 msgstr "" 139 154 140 #: qrcode-admin.php:12 0 qrcode-admin.php:289qr_code_suite.php:99155 #: qrcode-admin.php:122 qrcode-admin.php:291 qr_code_suite.php:99 141 156 msgid "Background Color" 142 157 msgstr "" 143 158 144 #: qrcode-admin.php:12 3 qrcode-admin.php:292159 #: qrcode-admin.php:125 qrcode-admin.php:294 145 160 msgid "Set background Color for QR code" 146 161 msgstr "" 147 162 148 #: qrcode-admin.php:12 7qr_code_suite.php:94163 #: qrcode-admin.php:129 qr_code_suite.php:94 149 164 msgid "Transparent background" 150 165 msgstr "" 151 166 152 #: qrcode-admin.php:13 1 qrcode-admin.php:301167 #: qrcode-admin.php:133 qrcode-admin.php:303 153 168 msgid "Set transparency for QR code background. <b>PNG Only</b>" 154 169 msgstr "" 155 170 156 #: qrcode-admin.php:13 5 qrcode-admin.php:305171 #: qrcode-admin.php:137 qrcode-admin.php:307 157 172 msgid "Save Changes" 158 173 msgstr "" 159 174 160 #: qrcode-admin.php:14 0175 #: qrcode-admin.php:142 161 176 msgid "Test Images" 162 177 msgstr "" 163 178 164 #: qrcode-admin.php:14 4179 #: qrcode-admin.php:146 165 180 msgid "Shortcode" 166 181 msgstr "" 167 182 168 #: qrcode-admin.php:14 5183 #: qrcode-admin.php:147 169 184 msgid "Image" 170 185 msgstr "" 171 186 172 #: qrcode-admin.php:14 6187 #: qrcode-admin.php:148 173 188 msgid "HTML Source" 174 189 msgstr "" 175 190 176 #: qrcode-admin.php:1 89191 #: qrcode-admin.php:191 177 192 msgid "<h2>QR code default settings for Widgets</h2>" 178 193 msgstr "" 179 194 180 #: qrcode-admin.php:19 0195 #: qrcode-admin.php:192 181 196 msgid "" 182 197 "Default settings for <b>new</b> Widgets.<br /><b>Changes have no effect to " … … 184 199 msgstr "" 185 200 186 #: qrcode-admin.php:21 2201 #: qrcode-admin.php:214 187 202 msgid "QR code Widget settings" 188 203 msgstr "" 189 204 190 #: qrcode-admin.php:21 5 qrcode-admin.php:218205 #: qrcode-admin.php:217 qrcode-admin.php:220 191 206 msgid "Widget Title" 192 207 msgstr "" 193 208 194 #: qrcode-admin.php:22 2qr_code_suite.php:125209 #: qrcode-admin.php:224 qr_code_suite.php:125 195 210 msgid "Code to display before Widget" 196 211 msgstr "" 197 212 198 #: qrcode-admin.php:22 5 qrcode-admin.php:232213 #: qrcode-admin.php:227 qrcode-admin.php:234 199 214 msgid "Can be HTML" 200 215 msgstr "" 201 216 202 #: qrcode-admin.php:2 29qr_code_suite.php:129217 #: qrcode-admin.php:231 qr_code_suite.php:129 203 218 msgid "Code to display after Widget" 204 219 msgstr "" 205 220 206 #: qrcode-admin.php:24 3221 #: qrcode-admin.php:245 207 222 msgid "Image format PNG or Jpeg" 208 223 msgstr "" 209 224 210 #: qrcode-admin.php:25 5225 #: qrcode-admin.php:257 211 226 msgid "Size of QR code" 212 227 msgstr "" 213 228 214 #: qrcode-admin.php:26 7229 #: qrcode-admin.php:269 215 230 msgid "" 216 231 "There are 4 ECC Levels in QR code as follows:<br />Level L - 7% of codewords " … … 220 235 msgstr "" 221 236 222 #: qrcode-admin.php:27 5237 #: qrcode-admin.php:277 223 238 msgid "" 224 239 "Don't cache image. QR code will be created on the fly and embedet in to HTML" 225 240 msgstr "" 226 241 227 #: qrcode-admin.php:2 79242 #: qrcode-admin.php:281 228 243 msgid "Color Settings" 229 244 msgstr "" 230 245 231 #: qrcode-admin.php:28 2246 #: qrcode-admin.php:284 232 247 msgid "code Color" 233 248 msgstr "" 234 249 235 #: qrcode-admin.php:29 7250 #: qrcode-admin.php:299 236 251 msgid "Background transparency" 252 msgstr "" 253 254 #: qrcode-admin.php:317 255 msgid "Chache cleared" 256 msgstr "" 257 258 #: qrcode-admin.php:369 259 msgid "Cache created" 260 msgstr "" 261 262 #: qrcode-admin.php:370 263 msgid "Can't create Cache" 237 264 msgstr "" 238 265 -
qr-code-widget/trunk/qr-code-widget.php
r370058 r760675 1 1 <?php 2 /* 3 Plugin Name:QR Code Widget 4 Plugin URI: http://www.poluschin.info/qr-code-widget/ 5 Description: QR Code generator for your blog with Widget support 6 Version: 2.0.1 7 Author: Wjatscheslaw Poluschin <wjatscheslaw@poluschin.info> 8 Author URI: http://www.poluschin.info 9 */ 10 11 define ('QR_IMAGE_CACHE',dirname(__FILE__).DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR); 12 define ('QR_CODE_SUITE_VERSION',3213); 13 require_once 'qr_code_suite.php'; 14 include 'qrcode-admin.php'; 15 add_action('widgets_init','widget_QrCodeWidget_init'); 16 add_shortcode('qr_code_display','qr_shortcode'); // [qr_code_display format="png|jpg" size="1-10" ecc="0-3" transparent="0|1" bg_color="ffffff" fg_color="000000" qr_text="string" no_cache="0|1"] 17 if(isset($_POST['qrcode_action_submit'])) add_action('init', 'qrcode_request_action'); 18 if(isset($_POST['qrcode_options_submit'])) add_action('init', 'qrcode_options_submit'); 19 register_activation_hook( __FILE__, 'qr_code_activate'); 20 register_deactivation_hook(__FILE__, 'qr_code_deactivate'); 21 register_uninstall_hook(__FILE__, 'qr_code_uninstall'); 2 /** 3 QRCode Widget 4 PHP version 5 5 Plugin Name: QR Code Widget 6 Plugin URI: http://www.poluschin.info/qr-code-widget/ 7 Description: QR Code generator for your blog with Widget support 8 Version: 3.1b1 9 Author: Wjatscheslaw Poluschin <wjatscheslaw@poluschin.info> 10 Author URI: http://www.poluschin.info 11 License: GPLv2+ 12 Text Domain: qr-code-widget 13 Domain Path: /languages/ 14 @category WP_Plugin 15 @package QrCodeWidget 16 @author Wjatscheslaw Poluschin <wjatscheslaw@poluschin.info> 17 @license http://www.gnu.org/licenses/gpl-3.0 GNU General Public License (GPL) 3.0 18 @link http://www.poluschin.info 19 **/ 22 20 23 if ( is_admin() ){ 24 add_action('admin_init',"qr_admin_loader"); 25 add_action('admin_menu', 'qrcode_dashboard'); 21 /* -- QCW Values -- */ 22 define( 'QCW_VERSION', 321 ); 23 define( 'QCW_DB_VERSION', 2 ); 24 define( 'QR_IMAGE_CACHE', dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR ); 25 26 /* -- Pre-2.6 compatibility -- */ 27 if ( !defined( 'WP_CONTENT_URL' ) ) define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' ); 28 if ( !defined( 'WP_CONTENT_DIR' ) ) define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); 29 30 /* -- Load Files -- */ 31 require 'includes/phpqrcode.php'; 32 require_once 'includes/qr-code-suite.php'; 33 34 if ( is_admin() ) { 35 include_once 'includes/qr-code-admin.php'; 26 36 } 27 37 28 function qr_admin_loader(){ 29 wp_enqueue_style('color-picker', plugin_dir_url( __FILE__ ) . 'colorpicker/css/colorpicker.css'); 30 wp_enqueue_script('color-picker-qr', plugin_dir_url( __FILE__ ) .'colorpicker/js/colorpicker.js',array('jquery')); 31 38 /* Load config */ 39 load_plugin_textdomain( 'qr-code-widget', WP_PLUGIN_URL . 'qr-code-widget/languages/', 'qr-code-widget/languages' ); 40 $qr_code_widget = get_option( 'qr_code_widget' ); 41 $qr_code_sc = get_option( 'qr_code_sc' ); 42 $qr_code_wg = get_option( 'qr_code_wg' ); 43 $widget_qrcode_widget = get_option( 'widget_qrcode_widget' ); 44 45 /* Core */ 46 47 register_activation_hook( __FILE__, 'qr_code_activate' ); 48 register_deactivation_hook( __FILE__, 'qr_code_deactivate' ); 49 register_uninstall_hook( __FILE__, 'qr_code_uninstall' ); 50 51 if ( is_admin() ) { 52 add_action( 'admin_init', 'qr_admin_loader' ); 53 add_action( 'admin_menu', 'qrcode_dashboard' ); 32 54 } 33 55 34 function qr_code_activate(){ 35 $defaults_wg=array( 'title' => "QR Code", 'qr_code_bg' => "ffffff", 36 'qr_code_fg' => "000000", 'qr_code_trans_bg' => "0", 37 'qr_code_format' => "png", 'qr_code_ecc'=>"1", 38 'qr_code_size' => "2", 'pre_code' => "<div>", 'no_cache'=>"0", 39 'post_code' => "<p style='padding:0;margin:0;font-size:.8em;'>QR code created by <a href='http://www.poluschin.info/'>QR code Widget</a></p></div>",'version'=> QR_CODE_SUITE_VERSION); 40 41 $defaults_sc=array('qr_code_bg' => "ffffff", 'qr_code_fg' => "000000", 'qr_code_trans_bg' => "0", 'qr_code_format' => "png", 'qr_code_ecc'=>"1", 'qr_code_size' => "2",'no_cache'=>"0", 'version'=> QR_CODE_SUITE_VERSION); 56 /* Frontend */ 57 add_action( 'widgets_init', 'widget_QrCodeWidget_init' ); 58 add_shortcode( 'qr_code_display', 'qr_shortcode' ); 42 59 43 if ( ($old_params=get_option('qr_code_widget')) ){ 44 $size=$old_params["size"]; 45 $format=($old_params["format"] == 'J' ? 'jpg' :'png'); 46 47 $defaults_sc=array( 'qr_code_bg' => "ffffff", 'qr_code_fg' => "000000", 48 'qr_code_trans_bg' => "0", 'qr_code_format' => $format, 49 'qr_code_ecc'=>"1", 'qr_code_size' => $size, 50 'no_cache'=>"0", 'version'=> QR_CODE_SUITE_VERSION); 51 52 $defaults_wg=array( 'title' => "QR Code", 'qr_code_bg' => "ffffff", 53 'qr_code_fg' => "000000", 'qr_code_trans_bg' => "0", 54 'qr_code_format' => $format, 'qr_code_ecc'=>"1", 55 'qr_code_size' => $size, 'pre_code' => "<div>", 'no_cache'=>"0", 56 'post_code' => "</div><p style='padding:0;margin:0;font-size:.8em;'>QR code created by <a href='http://www.poluschin.info/'>QR code Widget</a></p>", 'version'=> QR_CODE_SUITE_VERSION); 57 } 58 delete_option('qr_code_widget'); 59 add_option('qr_code_sc',$defaults_sc); 60 add_option('qr_code_wg',$defaults_wg); 61 if (!is_dir(QR_IMAGE_CACHE)){ 62 mkdir(QR_IMAGE_CACHE); 63 } 60 61 if ( isset( $_POST[ 'qrcode_action_submit' ] ) ) { 62 add_action( 'init', 'qrcode_request_action' ); 64 63 } 65 64 66 function qr_code_deactivate(){ 67 // 68 delete_option('qr_code_widget'); 69 delete_option('qr_code_sc'); 70 delete_option('qr_code_wg'); 71 delete_option('widget_qrcode_widget'); 72 73 65 if ( isset ( $_POST['qrcode_options_submit'] ) ) { 66 add_action( 'init', 'qrcode_options_submit' ); 74 67 } 75 76 function qr_code_uninstall(){77 //78 delete_option('qr_code_widget');79 delete_option('qr_code_sc');80 delete_option('qr_code_wg');81 delete_option('widget_qrcode_widget');82 83 }84 85 86 87 ?>
Note: See TracChangeset
for help on using the changeset viewer.