Plugin Directory

Changeset 760675


Ignore:
Timestamp:
08/22/2013 01:28:01 PM (13 years ago)
Author:
kosh30
Message:

Prepare for V3

Location:
qr-code-widget/trunk
Files:
9 added
3 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • qr-code-widget/trunk/colorpicker/css/colorpicker.css

    r368042 r760675  
    11.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;
    99}
     10
    1011.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;
    1920}
     21
    2022.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);
    2729}
     30
    2831.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;
    3740}
     41
    3842.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;
    4549}
     50
    4651.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;
    5459}
     60
    5561.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;
    6268}
     69
    6370.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;
    7077}
     78
    7179.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;
    8492}
     93
    8594.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;
    92101}
     102
    93103.colorpicker_hex input {
    94     right: 6px;
     104    right: 6px;
    95105}
     106
    96107.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;
    101112}
     113
    102114.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;
    110122}
     123
    111124.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;
    115128}
     129
    116130.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;
    120134}
     135
    121136.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;
    125140}
     141
    126142.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;
    130146}
     147
    131148.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;
    135152}
     153
    136154.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;
    140158}
     159
    141160.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;
    149168}
     169
    150170.colorpicker_focus {
    151     background-position: center;
     171    background-position: center;
    152172}
     173
    153174.colorpicker_hex.colorpicker_focus {
    154     background-position: bottom;
     175    background-position: bottom;
    155176}
     177
    156178.colorpicker_submit.colorpicker_focus {
    157     background-position: bottom;
     179    background-position: bottom;
    158180}
     181
    159182.colorpicker_slider {
    160     background-position: bottom;
     183    background-position: bottom;
    161184}
  • 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 }
     1body, 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
    56table {
    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
     11fieldset, img {
     12    border: 0;
     13}
     14
     15address, caption, cite, code, dfn, em, strong, th, var {
     16    font-style: normal;
     17    font-weight: normal;
     18}
     19
     20ol, ul {
     21    list-style: none;
     22}
     23
     24caption, th {
     25    text-align: left;
     26}
     27
     28h1, h2, h3, h4, h5, h6 {
     29    font-size: 100%;
     30    font-weight: normal;
     31}
     32
     33q:before, q:after {
     34    content: '';
     35}
     36
     37abbr, acronym {
     38    border: 0;
     39}
     40
    3141html, 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
    3849body {
    39     text-align: center;
    40     overflow: auto;
    41 }
     50    text-align: center;
     51    overflow: auto;
     52}
     53
    4254.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
    4760h1 {
    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
    5367.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
    5873.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
    7693.navigationTabs li a:hover {
    77     background-color: #f0f0f0;
    78 }
     94    background-color: #f0f0f0;
     95}
     96
    7997.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
    84103.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
    90110.tab {
    91     padding: 16px;
    92     display: none;
    93 }
     111    padding: 16px;
     112    display: none;
     113}
     114
    94115.tab h2 {
    95     font-weight: bold;
    96     font-size: 16px;
    97 }
     116    font-weight: bold;
     117    font-size: 16px;
     118}
     119
    98120.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
    103126.tab p {
    104     margin-top: 16px;
    105     clear: both;
    106 }
     127    margin-top: 16px;
     128    clear: both;
     129}
     130
    107131.tab ul {
    108     margin-top: 16px;
    109     list-style: disc;
    110 }
     132    margin-top: 16px;
     133    list-style: disc;
     134}
     135
    111136.tab li {
    112     margin: 10px 0 0 35px;
    113 }
     137    margin: 10px 0 0 35px;
     138}
     139
    114140.tab a {
    115     color: #8FB0CF;
    116 }
     141    color: #8FB0CF;
     142}
     143
    117144.tab strong {
    118     font-weight: bold;
    119 }
     145    font-weight: bold;
     146}
     147
    120148.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
    127156.tab table {
    128     width: 100%;
    129 }
     157    width: 100%;
     158}
     159
    130160.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
    134165.tab dt {
    135     margin-top: 16px;
     166    margin-top: 16px;
    136167}
    137168
    138169#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
    144176#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
    152185#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
    160194#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
    168203#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
    176212#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
    182219#colorpickerHolder2 .colorpicker_hue div {
    183     background-image: url(../images/custom_indic.gif);
    184 }
     220    background-image: url(../images/custom_indic.gif);
     221}
     222
    185223#colorpickerHolder2 .colorpicker_hex {
    186     background-image: url(../images/custom_hex.png);
    187 }
     224    background-image: url(../images/custom_hex.png);
     225}
     226
    188227#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
    191231#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
    194235#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
    197239#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
    201244#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
    205249#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
    209254#colorpickerHolder2 .colorpicker_submit {
    210     background-image: url(../images/custom_submit.png);
    211 }
     255    background-image: url(../images/custom_submit.png);
     256}
     257
    212258#colorpickerHolder2 .colorpicker input {
    213     color: #778398;
    214 }
     259    color: #778398;
     260}
     261
    215262#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  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: QR Code Widget 2.0.0_a\n"
     5"Project-Id-Version: QR Code Widget 2.0.1\n"
    66"Report-Msgid-Bugs-To: http://wordpress.org/tag/qr-code-widget\n"
    7 "POT-Creation-Date: 2011-04-07 10:24:12+00:00\n"
     7"POT-Creation-Date: 2011-04-08 14:14:02+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    1414
    1515#: qrcode-admin.php:11
    16 msgid "QR code rtatus report"
     16msgid "QR code status report"
    1717msgstr ""
    1818
     
    2121msgstr ""
    2222
    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
     24msgid "You have %d images in cache"
     25msgstr ""
     26
     27#: qrcode-admin.php:24
     28msgid ""
     29"You are about to delete all images from Cache\\nThis action can not be "
     30"undone!\\n OK to continue, Cancel to stop."
     31msgstr ""
     32
     33#: qrcode-admin.php:24
    3134msgid "Clear Cache"
    3235msgstr ""
    3336
    34 #: qrcode-admin.php:39
     37#: qrcode-admin.php:28
     38msgid "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>"
     43msgstr ""
     44
     45#: qrcode-admin.php:31
     46msgid "Try to create Cache"
     47msgstr ""
     48
     49#: qrcode-admin.php:41
    3550msgid "<h2>QR code default settings for shortcodes</h2>"
    3651msgstr ""
    3752
    38 #: qrcode-admin.php:61 qrcode-admin.php:236
     53#: qrcode-admin.php:63 qrcode-admin.php:238
    3954msgid "QR code settings"
    4055msgstr ""
    4156
    42 #: qrcode-admin.php:63
     57#: qrcode-admin.php:65
    4358msgid ""
    4459"You can define default values for your parameters using the \"Shortcode "
     
    5469msgstr ""
    5570
    56 #: qrcode-admin.php:68 qrcode-admin.php:239 qr_code_suite.php:89
     71#: qrcode-admin.php:70 qrcode-admin.php:241 qr_code_suite.php:89
    5772msgid "QR code format"
    5873msgstr ""
    5974
    60 #: qrcode-admin.php:70 qrcode-admin.php:241 qr_code_suite.php:90
     75#: qrcode-admin.php:72 qrcode-admin.php:243 qr_code_suite.php:90
    6176msgid "PNG"
    6277msgstr ""
    6378
    64 #: qrcode-admin.php:71 qrcode-admin.php:242 qr_code_suite.php:91
     79#: qrcode-admin.php:73 qrcode-admin.php:244 qr_code_suite.php:91
    6580msgid "Jpeg"
    6681msgstr ""
    6782
    68 #: qrcode-admin.php:72
     83#: qrcode-admin.php:74
    6984msgid "Image format PNG or Jpeg."
    7085msgstr ""
    7186
    72 #: qrcode-admin.php:76 qrcode-admin.php:247 qr_code_suite.php:116
     87#: qrcode-admin.php:78 qrcode-admin.php:249 qr_code_suite.php:116
    7388msgid "QR code size"
    7489msgstr ""
    7590
    76 #: qrcode-admin.php:79 qrcode-admin.php:250 qr_code_suite.php:118
     91#: qrcode-admin.php:81 qrcode-admin.php:252 qr_code_suite.php:118
    7792msgid "Small"
    7893msgstr ""
    7994
    80 #: qrcode-admin.php:80 qrcode-admin.php:251 qr_code_suite.php:119
     95#: qrcode-admin.php:82 qrcode-admin.php:253 qr_code_suite.php:119
    8196msgid "Medium"
    8297msgstr ""
    8398
    84 #: qrcode-admin.php:81 qrcode-admin.php:252 qr_code_suite.php:120
     99#: qrcode-admin.php:83 qrcode-admin.php:254 qr_code_suite.php:120
    85100msgid "Large"
    86101msgstr ""
    87102
    88 #: qrcode-admin.php:82 qrcode-admin.php:253 qr_code_suite.php:121
     103#: qrcode-admin.php:84 qrcode-admin.php:255 qr_code_suite.php:121
    89104msgid "XXL"
    90105msgstr ""
    91106
    92 #: qrcode-admin.php:84
     107#: qrcode-admin.php:86
    93108msgid "Size of QR code image"
    94109msgstr ""
    95110
    96 #: qrcode-admin.php:88 qrcode-admin.php:259 qr_code_suite.php:107
     111#: qrcode-admin.php:90 qrcode-admin.php:261 qr_code_suite.php:107
    97112msgid "Level of error correction"
    98113msgstr ""
    99114
    100 #: qrcode-admin.php:97
     115#: qrcode-admin.php:99
    101116msgid ""
    102117"<br />There are 4 ECC Levels in QR code as follows:<br />Level L - 7% of "
     
    106121msgstr ""
    107122
    108 #: qrcode-admin.php:102 qrcode-admin.php:271 qr_code_suite.php:137
     123#: qrcode-admin.php:104 qrcode-admin.php:273 qr_code_suite.php:137
    109124msgid "Disable Cache"
    110125msgstr ""
    111126
    112 #: qrcode-admin.php:104 qrcode-admin.php:129 qrcode-admin.php:273
    113 #: qrcode-admin.php:299 qr_code_suite.php:95
     127#: qrcode-admin.php:106 qrcode-admin.php:131 qrcode-admin.php:275
     128#: qrcode-admin.php:301 qr_code_suite.php:95
    114129msgid "No"
    115130msgstr ""
    116131
    117 #: qrcode-admin.php:105 qrcode-admin.php:130 qrcode-admin.php:274
    118 #: qrcode-admin.php:300 qr_code_suite.php:96 qr_code_suite.php:139
     132#: 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
    119134msgid "Yes"
    120135msgstr ""
    121136
    122 #: qrcode-admin.php:106
     137#: qrcode-admin.php:108
    123138msgid ""
    124139"Don't cache image. Images are re-created every time and embedded in the HTML "
     
    126141msgstr ""
    127142
    128 #: qrcode-admin.php:110
     143#: qrcode-admin.php:112
    129144msgid "Color settings"
    130145msgstr ""
    131146
    132 #: qrcode-admin.php:113
     147#: qrcode-admin.php:115
    133148msgid "Code Color"
    134149msgstr ""
    135150
    136 #: qrcode-admin.php:116 qrcode-admin.php:285
     151#: qrcode-admin.php:118 qrcode-admin.php:287
    137152msgid "Set Color for QR code"
    138153msgstr ""
    139154
    140 #: qrcode-admin.php:120 qrcode-admin.php:289 qr_code_suite.php:99
     155#: qrcode-admin.php:122 qrcode-admin.php:291 qr_code_suite.php:99
    141156msgid "Background Color"
    142157msgstr ""
    143158
    144 #: qrcode-admin.php:123 qrcode-admin.php:292
     159#: qrcode-admin.php:125 qrcode-admin.php:294
    145160msgid "Set background Color for QR code"
    146161msgstr ""
    147162
    148 #: qrcode-admin.php:127 qr_code_suite.php:94
     163#: qrcode-admin.php:129 qr_code_suite.php:94
    149164msgid "Transparent background"
    150165msgstr ""
    151166
    152 #: qrcode-admin.php:131 qrcode-admin.php:301
     167#: qrcode-admin.php:133 qrcode-admin.php:303
    153168msgid "Set transparency for QR code background. <b>PNG Only</b>"
    154169msgstr ""
    155170
    156 #: qrcode-admin.php:135 qrcode-admin.php:305
     171#: qrcode-admin.php:137 qrcode-admin.php:307
    157172msgid "Save Changes"
    158173msgstr ""
    159174
    160 #: qrcode-admin.php:140
     175#: qrcode-admin.php:142
    161176msgid "Test Images"
    162177msgstr ""
    163178
    164 #: qrcode-admin.php:144
     179#: qrcode-admin.php:146
    165180msgid "Shortcode"
    166181msgstr ""
    167182
    168 #: qrcode-admin.php:145
     183#: qrcode-admin.php:147
    169184msgid "Image"
    170185msgstr ""
    171186
    172 #: qrcode-admin.php:146
     187#: qrcode-admin.php:148
    173188msgid "HTML Source"
    174189msgstr ""
    175190
    176 #: qrcode-admin.php:189
     191#: qrcode-admin.php:191
    177192msgid "<h2>QR code default settings for Widgets</h2>"
    178193msgstr ""
    179194
    180 #: qrcode-admin.php:190
     195#: qrcode-admin.php:192
    181196msgid ""
    182197"Default settings for <b>new</b> Widgets.<br /><b>Changes have no effect to "
     
    184199msgstr ""
    185200
    186 #: qrcode-admin.php:212
     201#: qrcode-admin.php:214
    187202msgid "QR code Widget settings"
    188203msgstr ""
    189204
    190 #: qrcode-admin.php:215 qrcode-admin.php:218
     205#: qrcode-admin.php:217 qrcode-admin.php:220
    191206msgid "Widget Title"
    192207msgstr ""
    193208
    194 #: qrcode-admin.php:222 qr_code_suite.php:125
     209#: qrcode-admin.php:224 qr_code_suite.php:125
    195210msgid "Code to display before Widget"
    196211msgstr ""
    197212
    198 #: qrcode-admin.php:225 qrcode-admin.php:232
     213#: qrcode-admin.php:227 qrcode-admin.php:234
    199214msgid "Can be HTML"
    200215msgstr ""
    201216
    202 #: qrcode-admin.php:229 qr_code_suite.php:129
     217#: qrcode-admin.php:231 qr_code_suite.php:129
    203218msgid "Code to display after Widget"
    204219msgstr ""
    205220
    206 #: qrcode-admin.php:243
     221#: qrcode-admin.php:245
    207222msgid "Image format PNG or Jpeg"
    208223msgstr ""
    209224
    210 #: qrcode-admin.php:255
     225#: qrcode-admin.php:257
    211226msgid "Size of QR code"
    212227msgstr ""
    213228
    214 #: qrcode-admin.php:267
     229#: qrcode-admin.php:269
    215230msgid ""
    216231"There are 4 ECC Levels in QR code as follows:<br />Level L - 7% of codewords "
     
    220235msgstr ""
    221236
    222 #: qrcode-admin.php:275
     237#: qrcode-admin.php:277
    223238msgid ""
    224239"Don't cache image. QR code will be created on the fly and embedet in to HTML"
    225240msgstr ""
    226241
    227 #: qrcode-admin.php:279
     242#: qrcode-admin.php:281
    228243msgid "Color Settings"
    229244msgstr ""
    230245
    231 #: qrcode-admin.php:282
     246#: qrcode-admin.php:284
    232247msgid "code Color"
    233248msgstr ""
    234249
    235 #: qrcode-admin.php:297
     250#: qrcode-admin.php:299
    236251msgid "Background transparency"
     252msgstr ""
     253
     254#: qrcode-admin.php:317
     255msgid "Chache cleared"
     256msgstr ""
     257
     258#: qrcode-admin.php:369
     259msgid "Cache created"
     260msgstr ""
     261
     262#: qrcode-admin.php:370
     263msgid "Can't create Cache"
    237264msgstr ""
    238265
  • qr-code-widget/trunk/qr-code-widget.php

    r370058 r760675  
    11<?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/**
     3QRCode Widget
     4PHP version 5
     5Plugin Name: QR Code Widget
     6Plugin URI: http://www.poluschin.info/qr-code-widget/
     7Description: QR Code generator for your blog with Widget support
     8Version: 3.1b1
     9Author: Wjatscheslaw Poluschin <wjatscheslaw@poluschin.info>
     10Author URI: http://www.poluschin.info
     11License: GPLv2+
     12Text Domain: qr-code-widget
     13Domain 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**/
    2220
    23 if ( is_admin() ){
    24     add_action('admin_init',"qr_admin_loader");
    25     add_action('admin_menu', 'qrcode_dashboard');
     21/* -- QCW Values -- */
     22define( 'QCW_VERSION', 321 );
     23define( 'QCW_DB_VERSION', 2 );
     24define( 'QR_IMAGE_CACHE', dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR );
     25
     26/* -- Pre-2.6 compatibility -- */
     27if ( !defined( 'WP_CONTENT_URL' ) ) define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
     28if ( !defined( 'WP_CONTENT_DIR' ) ) define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
     29
     30/* -- Load Files -- */
     31require 'includes/phpqrcode.php';
     32require_once 'includes/qr-code-suite.php';
     33
     34if ( is_admin() ) {
     35    include_once 'includes/qr-code-admin.php';
    2636}
    2737
    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 */
     39load_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
     47register_activation_hook( __FILE__, 'qr_code_activate' );
     48register_deactivation_hook( __FILE__, 'qr_code_deactivate' );
     49register_uninstall_hook( __FILE__, 'qr_code_uninstall' );
     50
     51if ( is_admin() ) {
     52    add_action( 'admin_init', 'qr_admin_loader' );
     53    add_action( 'admin_menu', 'qrcode_dashboard' );
    3254}
    3355
    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 */
     57add_action( 'widgets_init', 'widget_QrCodeWidget_init' );
     58add_shortcode( 'qr_code_display', 'qr_shortcode' );
    4259
    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
     61if ( isset( $_POST[ 'qrcode_action_submit' ] ) ) {
     62    add_action( 'init', 'qrcode_request_action' );
    6463}
    6564
    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    
     65if ( isset ( $_POST['qrcode_options_submit'] ) ) {
     66    add_action( 'init', 'qrcode_options_submit' );
    7467}
    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.