Plugin Directory

Changeset 2163488


Ignore:
Timestamp:
09/26/2019 08:53:09 AM (7 years ago)
Author:
sebastiantiede
Message:

Release version 1.0.1

Location:
wp-open-votomat
Files:
1397 added
10 edited

Legend:

Unmodified
Added
Removed
  • wp-open-votomat/trunk/backend_assets/js/wpov-admin.js

    r2060854 r2163488  
    55        init: function() {
    66            this.actions.init();
     7            this.overrides_notes.init();
    78        },
    89        plugins: {
     
    1415            }
    1516        },
     17        overrides_notes: {
     18            init: function() {
     19                var $b = jQuery('body');
     20                try {
     21                    var wpov_type = wpov_settings.admin_settings.wpov_type
     22                } catch(e) {
     23                    var wpov_type = false
     24                }
     25
     26                console.log(wpov_type);
     27
     28                var hideSettings = {
     29                    pointerEvents: 'none',
     30                    opacity: .5
     31                };
     32               
     33                if(wpov_type == 'standalone') {
     34                    if($b.hasClass('options-permalink-php')) {
     35                        jQuery('#wpbody-content .form-table').css(hideSettings)
     36                    } else if($b.hasClass('options-reading-php')) {
     37                        jQuery('#front-static-pages').css(hideSettings)
     38                    }
     39                   
     40                }
     41            }
     42        },       
    1643        actions: {
    1744            init: function() {
  • wp-open-votomat/trunk/includes/admin/admin.php

    r2053270 r2163488  
    5050       
    5151        add_filter( 'admin_menu', array( $this, 'submenu_order' ) );
    52     }
     52       
     53        if(wpov_get_setting('admin_settings')['wpov_type'] == 'standalone') {
     54            add_action( 'admin_notices', array($this, 'show_override_notes') );
     55        }
     56
     57    }
     58   
     59    function show_override_notes() {
     60        $screen = get_current_screen();
     61        $message = false;
     62        switch($screen->base) {
     63            case 'options-reading':
     64                $message = __('Your homepage display settings will be overriden by the WP-Open-Votomat Settings!', WPOV__PLUGIN_NAME_SLUG);
     65                break;
     66            case 'options-permalink':
     67                $message = __('Your Permalink Settings will be overriden by the WP-Open-Votomat Settings!', WPOV__PLUGIN_NAME_SLUG);
     68                break;               
     69        }
     70       
     71        if($message) {
     72            printf( '<div class="%1$s"><p><strong>WP-Open-Votomat:</strong> <code>%2$s</code></p></div>', esc_attr( 'notice notice-warning' ), esc_html( $message ) );
     73        }
     74    }
    5375   
    5476    function submenu_order($menu_order) {
  • wp-open-votomat/trunk/includes/admin/options-dashboard.php

    r2070531 r2163488  
    5959        }
    6060       
    61         $total_voters = round($total_voters / count($votings_per_question));
     61        $total_voters = $total_voters ? round($total_voters / count($votings_per_question)) : 0;
    6262       
    6363        foreach($voting->parties() as $party) {
     
    8383       
    8484        foreach($party_scores as &$party_score) {
    85             $party_score = (($party_score/$total_party_scores)*100);
     85            $party_score = $total_party_scores ? (($party_score/$total_party_scores)*100) : 0;
    8686        }
    8787       
  • wp-open-votomat/trunk/includes/admin/options-settings.php

    r2066672 r2163488  
    3030            add_action('admin_init', array($this, 'migrate_symfony_sql_dump'));
    3131        }
     32       
     33       
     34        add_action( 'admin_print_scripts', array($this, 'admin_js_print_wpov_settings') );
     35
     36    }
     37   
     38    function admin_js_print_wpov_settings() {
     39        ?>
     40        <script type="text/javascript">
     41            var wpov_settings = <?php echo json_encode(wpov_get_settings()); ?>;
     42        </script>
     43        <?php
    3244    }
    3345   
  • wp-open-votomat/trunk/includes/api/wpov_voting.php

    r2067350 r2163488  
    7070   
    7171    function count_questions() {
    72         return count($this->_get_meta('_voting_questions'));
     72        $questions = $this->_get_meta('_voting_questions');
     73        return is_array($questions) ? count($questions) : 0;
    7374    }   
    7475   
    7576    function parties() {
    7677        $parties = $this->_get_meta('_voting_parties');
     78        $parties = is_array($parties) ? $parties : array();
    7779        foreach($parties as &$party) {
    7880            $party = wpov_get_party($party['party']);
     
    8385   
    8486    function count_parties() {
    85         return count($this->_get_meta('_voting_parties'));
     87        $parties = $this->_get_meta('_voting_parties');
     88        return is_array($parties) ? count($parties) : 0;
    8689    }
    8790   
  • wp-open-votomat/trunk/includes/frontend/frontend-standalone.php

    r2067712 r2163488  
    4747       
    4848        add_filter( 'wp_title', array( $this, 'wp_title' ), 10, 3 );
     49       
     50        add_filter( 'pre_option_show_on_front', array( $this, 'override_option_show_on_front' ), 10, 3 );
     51    }
     52   
     53    function override_option_show_on_front($pre_option, $option, $default) {
     54        return 'posts';
    4955    }
    5056   
  • wp-open-votomat/trunk/includes/helpers/helpers.php

    r2066672 r2163488  
    1919function wpov_get_setting( $key ) {
    2020    return wpov()->get_setting($key);
     21}
     22
     23function wpov_get_settings( ) {
     24    return wpov()->get_settings();
    2125}
    2226
  • wp-open-votomat/trunk/languages/wp-open-votomat-de_DE.po

    r2067712 r2163488  
    55"Project-Id-Version: Shortcake (Shortcode UI) 0.7.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/shortcode-ui\n"
    7 "POT-Creation-Date: 2019-04-12 10:26+0200\n"
    8 "PO-Revision-Date: 2019-04-12 10:26+0200\n"
     7"POT-Creation-Date: 2019-09-26 10:33+0200\n"
     8"PO-Revision-Date: 2019-09-26 10:33+0200\n"
    99"Last-Translator: \n"
    1010"Language-Team: \n"
     
    6262msgstr "Nur für Admins sichtbar!"
    6363
    64 #: wpov_template/twentynineteen/twig/page-voting-compare.twig:9
     64#: wpov_template/twentynineteen/twig/page-voting-compare.twig:10
    6565msgid "In direct comparison"
    6666msgstr "Im direkten Vergleich"
    6767
    68 #: wpov_template/twentynineteen/twig/page-voting-compare.twig:20
     68#: wpov_template/twentynineteen/twig/page-voting-compare.twig:22
    6969#: wpov_template/twentynineteen/twig/page-voting.twig:11
    70 #: includes/admin/options-dashboard.php:151
     70#: includes/admin/options-dashboard.php:158
    7171#: includes/admin/post_type-question.php:75
    7272#: includes/admin/post_type-question.php:85
    7373#: includes/admin/post_type-voting.php:52
    7474#: includes/admin/post_type-voting.php:258
    75 #: includes/frontend/frontend-standalone.php:65 wp-open-votomat.php:382
     75#: includes/frontend/frontend-standalone.php:71 wp-open-votomat.php:385
    7676msgid "Question"
    7777msgstr "Frage"
    7878
    79 #: wpov_template/twentynineteen/twig/page-voting-compare.twig:21
     79#: wpov_template/twentynineteen/twig/page-voting-compare.twig:23
    8080msgid "You"
    8181msgstr "Du"
    8282
    83 #: wpov_template/twentynineteen/twig/page-voting-compare.twig:82
     83#: wpov_template/twentynineteen/twig/page-voting-compare.twig:41
     84#: wpov_template/twentynineteen/twig/page-voting-result.twig:64
     85msgid "Open Website"
     86msgstr "Öffne Website"
     87
     88#: wpov_template/twentynineteen/twig/page-voting-compare.twig:88
     89#: includes/admin/post_type-party.php:141
     90msgid "Explanation"
     91msgstr "Erklärung"
     92
     93#: wpov_template/twentynineteen/twig/page-voting-compare.twig:109
    8494msgid "Back to overview"
    8595msgstr "Zurück zur Übersicht"
     
    95105#: wpov_template/twentynineteen/twig/page-voting-result.twig:17
    96106#: includes/admin/post_type-voting.php:56
    97 #: includes/admin/post_type-voting.php:209 wp-open-votomat.php:349
     107#: includes/admin/post_type-voting.php:209 wp-open-votomat.php:352
    98108msgid "Party"
    99109msgstr "Partei"
     
    107117msgstr "in %"
    108118
    109 #: wpov_template/twentynineteen/twig/page-voting-result.twig:73
     119#: wpov_template/twentynineteen/twig/page-voting-result.twig:86
    110120msgid "Your answers compared to those of the parties"
    111121msgstr "Deine Antworten im direkten Vergleich mit den Parteien"
    112122
    113 #: wpov_template/twentynineteen/twig/page-voting-result.twig:78
     123#: wpov_template/twentynineteen/twig/page-voting-result.twig:91
    114124msgid "By clicking on the logos you come to the websites of the parties."
    115125msgstr "Durch Klick auf die Logos kommst du auf die Webseiten der Parteien."
    116126
    117 #: wpov_template/twentynineteen/twig/page-voting-result.twig:82
     127#: wpov_template/twentynineteen/twig/page-voting-result.twig:95
    118128msgid "With the following link you can share your result with others:"
    119129msgstr "Mit dem folgenden Link kannst du dein Ergebnis mit anderen teilen:"
    120130
    121 #: includes/admin/admin.php:86
     131#: includes/admin/admin.php:64
     132msgid ""
     133"Your homepage display settings will be overriden by the WP-Open-Votomat "
     134"Settings!"
     135msgstr ""
     136"Die Startseiten-Anzeige-Einstellungen werden durch die WP-Open-Votomat-"
     137"Einstellungen überschrieben!"
     138
     139#: includes/admin/admin.php:67
     140msgid ""
     141"Your Permalink Settings will be overriden by the WP-Open-Votomat Settings!"
     142msgstr ""
     143"Die Permalink-Einstellungen werden durch die WP-Open-Votomat-Einstellungen "
     144"überschrieben!"
     145
     146#: includes/admin/admin.php:108
    122147msgid "All Votings"
    123148msgstr "Alle Wahlen"
    124149
    125 #: includes/admin/admin.php:158
     150#: includes/admin/admin.php:180
    126151msgid "Party Logo"
    127152msgstr "Partei-Logo"
    128153
    129 #: includes/admin/admin.php:258 includes/admin/admin.php:259
     154#: includes/admin/admin.php:280 includes/admin/admin.php:281
    130155msgid "Open Votomat"
    131156msgstr "Open Votomat"
    132157
    133 #: includes/admin/admin.php:276 includes/admin/options-dashboard.php:118
     158#: includes/admin/admin.php:298 includes/admin/options-dashboard.php:125
    134159msgid "Dashboard"
    135160msgstr "Dashboard"
    136161
    137 #: includes/admin/options-dashboard.php:128
     162#: includes/admin/options-dashboard.php:135
    138163msgid "Select"
    139164msgstr "Auswählen"
    140165
    141 #: includes/admin/options-dashboard.php:136
     166#: includes/admin/options-dashboard.php:143
    142167msgid "Opinion poll"
    143168msgstr "Sonntagsfrage"
    144169
    145 #: includes/admin/options-dashboard.php:137
     170#: includes/admin/options-dashboard.php:144
    146171#, php-format
    147172msgid ""
     
    151176"folgendes wählen …"
    152177
    153 #: includes/admin/options-dashboard.php:152
     178#: includes/admin/options-dashboard.php:159
    154179msgid "Poll"
    155180msgstr "Umfrage"
    156181
    157 #: includes/admin/options-dashboard.php:153
     182#: includes/admin/options-dashboard.php:160
    158183msgid "Participants"
    159184msgstr "Teilnehmer*innen"
    160185
    161 #: includes/admin/options-dashboard.php:179
     186#: includes/admin/options-dashboard.php:186
    162187msgid "Too few data recorded!"
    163188msgstr "Es wurden zu wenig Daten erfasst!"
    164189
    165 #: includes/admin/options-dashboard.php:180
     190#: includes/admin/options-dashboard.php:187
    166191msgid ""
    167192"Wait a few more days until enough data is collected for a meaningful survey."
     
    170195"Erhebung erfasst wurden."
    171196
    172 #: includes/admin/options-dashboard.php:185
     197#: includes/admin/options-dashboard.php:192
    173198msgid "You must first create elections, questions and parties."
    174199msgstr "Du musst zunächst Wahlen, Fragen und Parteien anlegen."
    175200
    176 #: includes/admin/options-dashboard.php:186
     201#: includes/admin/options-dashboard.php:193
    177202msgid "The following page types are available."
    178203msgstr "Folgende Seitentypen sind verfügbar."
     
    183208msgstr "Einstellungen"
    184209
    185 #: includes/admin/options-settings.php:406
     210#: includes/admin/options-settings.php:418
    186211msgid "Please choose"
    187212msgstr "Bitte wählen"
    188213
    189 #: includes/admin/options-settings.php:413
     214#: includes/admin/options-settings.php:425
    190215msgid "Theme"
    191216msgstr "Theme"
    192217
    193 #: includes/admin/options-settings.php:420
     218#: includes/admin/options-settings.php:432
    194219msgid "Role"
    195220msgstr "Rolle"
    196221
    197 #: includes/admin/options-settings.php:424
     222#: includes/admin/options-settings.php:436
    198223msgid "Standanlone"
    199224msgstr "Selbstständig"
    200225
    201 #: includes/admin/options-settings.php:447
     226#: includes/admin/options-settings.php:459
    202227msgid "App name"
    203228msgstr "App-Name"
    204229
    205 #: includes/admin/options-settings.php:512
     230#: includes/admin/options-settings.php:524
    206231msgid "Sponsor {#}"
    207232msgstr "Sponsor {#}"
    208233
    209 #: includes/admin/options-settings.php:513
     234#: includes/admin/options-settings.php:525
    210235msgid "Add Another Sponsor"
    211236msgstr "Weiteren Sponsor hinzufügen"
    212237
    213 #: includes/admin/options-settings.php:514
     238#: includes/admin/options-settings.php:526
    214239msgid "Remove Sponsor"
    215240msgstr "Sponsor entfernen"
    216241
    217 #: includes/admin/options-settings.php:520
     242#: includes/admin/options-settings.php:532
    218243msgid "Line break before this sponsor"
    219244msgstr "Umbruch vor diesem Sponsor"
    220245
    221 #: includes/admin/options-settings.php:526
     246#: includes/admin/options-settings.php:538
    222247msgid "Headline before this sponsor"
    223248msgstr "Überschrift vor diesem Sponsor"
    224249
    225 #: includes/admin/options-settings.php:569
     250#: includes/admin/options-settings.php:581
    226251msgid "1 column"
    227252msgstr "1 Spalte"
    228253
    229 #: includes/admin/options-settings.php:570
     254#: includes/admin/options-settings.php:582
    230255msgid "2 columns"
    231256msgstr "2 Spalten"
    232257
    233 #: includes/admin/options-settings.php:571
     258#: includes/admin/options-settings.php:583
    234259msgid "3 columns"
    235260msgstr "3 Spalten"
    236261
    237 #: includes/admin/options-settings.php:583
     262#: includes/admin/options-settings.php:595
    238263msgid "Custom style"
    239264msgstr "Benutzerdefinierte Gestaltung"
    240265
    241 #: includes/admin/options-settings.php:594
     266#: includes/admin/options-settings.php:606
    242267msgid "External CSS"
    243268msgstr "Externer CSS"
    244269
    245 #: includes/admin/options-settings.php:600
     270#: includes/admin/options-settings.php:612
    246271msgid "Custom CSS"
    247272msgstr "Benutzerdefinierter CSS"
    248273
    249 #: includes/admin/options-settings.php:620
     274#: includes/admin/options-settings.php:632
    250275msgid "Migration"
    251276msgstr "Migration"
     
    294319msgstr "Keine"
    295320
    296 #: includes/admin/post_type-party.php:141
    297 msgid "Explanation"
    298 msgstr "Erklärung"
    299 
    300321#: includes/admin/post_type-voting.php:29
    301322#, php-format
     
    305326#: includes/admin/post_type-voting.php:36
    306327#: includes/admin/post_type-voting.php:57
    307 #: includes/admin/post_type-voting.php:169 wp-open-votomat.php:348
     328#: includes/admin/post_type-voting.php:169 wp-open-votomat.php:351
    308329msgid "Parties"
    309330msgstr "Parteien"
     
    311332#: includes/admin/post_type-voting.php:37
    312333#: includes/admin/post_type-voting.php:53
    313 #: includes/admin/post_type-voting.php:220 wp-open-votomat.php:381
     334#: includes/admin/post_type-voting.php:220 wp-open-votomat.php:384
    314335msgid "Questions"
    315336msgstr "Fragen"
     
    437458"fließen nicht in die Statistik ein."
    438459
    439 #: includes/frontend/frontend-standalone.php:56
     460#: includes/frontend/frontend-standalone.php:62
    440461msgid "Compare"
    441462msgstr "Vergleiche"
    442463
    443 #: includes/frontend/frontend-standalone.php:58
     464#: includes/frontend/frontend-standalone.php:64
    444465msgid "Results"
    445466msgstr "Ergebnisse"
    446467
    447 #: includes/helpers/helpers.php:175
     468#: includes/helpers/helpers.php:179
    448469#, php-format
    449470msgid "%s ago"
    450471msgstr "seit %s"
    451472
    452 #: includes/helpers/helpers.php:176
     473#: includes/helpers/helpers.php:180
    453474msgid "year"
    454475msgid_plural "years"
     
    456477msgstr[1] "Jahre"
    457478
    458 #: includes/helpers/helpers.php:177
     479#: includes/helpers/helpers.php:181
    459480msgid "month"
    460481msgid_plural "months"
     
    462483msgstr[1] "Monate"
    463484
    464 #: includes/helpers/helpers.php:178
     485#: includes/helpers/helpers.php:182
    465486msgid "day"
    466487msgid_plural "days"
     
    468489msgstr[1] "Tage"
    469490
    470 #: includes/helpers/helpers.php:179
     491#: includes/helpers/helpers.php:183
    471492msgid "hour"
    472493msgid_plural "hours"
     
    474495msgstr[1] "Stunden"
    475496
    476 #: includes/helpers/helpers.php:180
     497#: includes/helpers/helpers.php:184
    477498msgid "minute"
    478499msgid_plural "minutes"
     
    480501msgstr[1] "Minuten"
    481502
    482 #: includes/helpers/helpers.php:181
     503#: includes/helpers/helpers.php:185
    483504msgid "second"
    484505msgid_plural "seconds"
     
    506527msgstr "WPOV Fußmenü"
    507528
    508 #: wp-open-votomat.php:350 wp-open-votomat.php:383 wp-open-votomat.php:414
     529#: wp-open-votomat.php:353 wp-open-votomat.php:386 wp-open-votomat.php:417
    509530msgid "Add New"
    510531msgstr "Neue hinzufügen"
    511532
    512 #: wp-open-votomat.php:351
     533#: wp-open-votomat.php:354
    513534msgid "Add New Party"
    514535msgstr "Neue Partei hinzufügen"
    515536
    516 #: wp-open-votomat.php:352
     537#: wp-open-votomat.php:355
    517538msgid "Edit Party"
    518539msgstr "Partei bearbeiten"
    519540
    520 #: wp-open-votomat.php:353
     541#: wp-open-votomat.php:356
    521542msgid "New Party"
    522543msgstr "Neue Partei"
    523544
    524 #: wp-open-votomat.php:354
     545#: wp-open-votomat.php:357
    525546msgid "View Party"
    526547msgstr "Partei ansehen"
    527548
    528 #: wp-open-votomat.php:355
     549#: wp-open-votomat.php:358
    529550msgid "Search Parties"
    530551msgstr "Nach Partei suchen"
    531552
    532 #: wp-open-votomat.php:356
     553#: wp-open-votomat.php:359
    533554msgid "No Parties found"
    534555msgstr "Keine Partei gefunden"
    535556
    536 #: wp-open-votomat.php:357
     557#: wp-open-votomat.php:360
    537558msgid "No Parties found in Trash"
    538559msgstr "Keine Partei im Papierkorb gefunden"
    539560
    540 #: wp-open-votomat.php:384
     561#: wp-open-votomat.php:387
    541562msgid "Add New Question"
    542563msgstr "Neue Frage hinzufügen"
    543564
    544 #: wp-open-votomat.php:385
     565#: wp-open-votomat.php:388
    545566msgid "Edit Question"
    546567msgstr "Frage bearbeiten"
    547568
    548 #: wp-open-votomat.php:386
     569#: wp-open-votomat.php:389
    549570msgid "New Question"
    550571msgstr "Neue Frage"
    551572
    552 #: wp-open-votomat.php:387
     573#: wp-open-votomat.php:390
    553574msgid "View Question"
    554575msgstr "Frage ansehen"
    555576
    556 #: wp-open-votomat.php:388
     577#: wp-open-votomat.php:391
    557578msgid "Search Questions"
    558579msgstr "Nach Fragen suchen"
    559580
    560 #: wp-open-votomat.php:389
     581#: wp-open-votomat.php:392
    561582msgid "No Questions found"
    562583msgstr "Keine Fragen gefunden"
    563584
    564 #: wp-open-votomat.php:390
     585#: wp-open-votomat.php:393
    565586msgid "No Questions found in Trash"
    566587msgstr "Keine Fragen im Papierkorb gefunden"
    567588
    568 #: wp-open-votomat.php:412
     589#: wp-open-votomat.php:415
    569590msgid "Votings"
    570591msgstr "Wahlen"
    571592
    572 #: wp-open-votomat.php:413
     593#: wp-open-votomat.php:416
    573594msgid "Voting"
    574595msgstr "Wahl"
    575596
    576 #: wp-open-votomat.php:415
     597#: wp-open-votomat.php:418
    577598msgid "Add New Voting"
    578599msgstr "Neue Wahl hinzufügen"
    579600
    580 #: wp-open-votomat.php:416
     601#: wp-open-votomat.php:419
    581602msgid "Edit Voting"
    582603msgstr "Wahl bearbeiten"
    583604
    584 #: wp-open-votomat.php:417
     605#: wp-open-votomat.php:420
    585606msgid "New Voting"
    586607msgstr "Neue Wahl"
    587608
    588 #: wp-open-votomat.php:418
     609#: wp-open-votomat.php:421
    589610msgid "View Voting"
    590611msgstr "Wahl ansehen"
    591612
    592 #: wp-open-votomat.php:419
     613#: wp-open-votomat.php:422
    593614msgid "Search Votings"
    594615msgstr "Wahlen suchen"
    595616
    596 #: wp-open-votomat.php:420
     617#: wp-open-votomat.php:423
    597618msgid "No Votings found"
    598619msgstr "Keine Wahlen gefunden"
    599620
    600 #: wp-open-votomat.php:421
     621#: wp-open-votomat.php:424
    601622msgid "No Votings found in Trash"
    602623msgstr "Keine Wahlen im Papierkorb gefunden"
    603624
    604 #: wp-open-votomat.php:468
     625#: wp-open-votomat.php:475
    605626msgid "WP Open Votomat Sidebar"
    606627msgstr "WP Open Votomat Seitenspalte"
    607628
    608 #: wp-open-votomat.php:516
     629#: wp-open-votomat.php:523
    609630#, php-format
    610631msgid "Class »%s« exists!"
  • wp-open-votomat/trunk/wp-open-votomat.php

    r2092477 r2163488  
    44 * Description: This plugin allows you to use your website as a voting advice application.
    55 * Author: magma design studio
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Author URI: https://magmadesignstudio.de
    88 * Text Domain: wpov
     
    2828define( 'WPOV__PLUGIN_NAME_SLUG', 'wp-open-votomat' );
    2929
    30 define( 'WPOV_VERSION', '1.0.0' );
     30define( 'WPOV_VERSION', '1.0.1' );
    3131define( 'WPOV__MINIMUM_WP_VERSION', '4.0' );
    3232define( 'WPOV__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
     
    271271                delete_option( 'wpov_detect_plugin_activation_process' );
    272272               
     273                flush_rewrite_rules();
    273274                //$this->register_voter_db_tables();
    274275            }
     
    299300            switch($this->get_setting('admin_settings')['wpov_type']) {
    300301                case 'standalone':
     302                    global $wp_rewrite;
     303                    $wp_rewrite->set_permalink_structure( '/%post_id%/' );
     304                   
    301305                    add_rewrite_rule('^voting/([^/]+)/question/([^/]+)/?', 'index.php?post_type=wpov-voting&pagename=$matches[1]&wpov-question=$matches[2]', 'top');
    302306                    add_rewrite_rule('^voting/([^/]+)/result/([^/]+)/?', 'index.php?post_type=wpov-voting&pagename=$matches[1]&wpov-result=true&wpov-voter-result=$matches[2]', 'top');
     
    462466        function set_setting($key, $value) {
    463467            $this->settings[$key] = $value;
    464         }       
     468        }       
     469       
     470        function get_settings() {
     471            return $this->settings;
     472        }
    465473       
    466474        function wpov_widget_home_sidebar() {
Note: See TracChangeset for help on using the changeset viewer.