WordPress.org

Plugin Directory

Changeset 635854


Ignore:
Timestamp:
12/08/12 15:15:35 (4 years ago)
Author:
SriniG
Message:

Minor update to v1.5.7: +mk_MK, *fa_IR; code improvements; FAQ mods and adds

Location:
quotes-collection/trunk
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • quotes-collection/trunk/languages/quotes-collection-fa_IR.po

    r121004 r635854  
    1 # Quotes Collection plugin for WordPress: Localization template. 
    2 # Copyright (C) 2009 Srini G 
    3 # This file is distributed under the same license as the Quotes Collection package. 
    4 # Srini G <srinig.com@gmail.com>, 2009. 
    5 # 
    61msgid "" 
    72msgstr "" 
    8 "Project-Id-Version: Quotes Collection 1.3\n" 
    9 "Report-Msgid-Bugs-To: http://wordpress.org/tag/quotes-collection\n" 
    10 "POT-Creation-Date: 2009-05-25 10:15+0530\n" 
    11 "PO-Revision-Date: 2009-05-26 01:34+0330\n" 
    12 "Last-Translator: Ehsan Shahinfar <eshahinfar@gmail.com>\n" 
     3"MIME-Version: 1.0\n" 
     4"Content-Type: text/plain; charset=UTF-8\n" 
     5"Content-Transfer-Encoding: 8bit\n" 
     6"X-Generator: Poedit 1.5.4\n" 
     7"Project-Id-Version: quote\n" 
     8"Language: fa\n" 
     9"Plural-Forms: nplurals=2; plural=n != 1;\n" 
     10"POT-Creation-Date: \n" 
     11"PO-Revision-Date: \n" 
     12"Last-Translator:  <eshahinfar@gmail.com>\n" 
    1313"Language-Team: \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: Persian\n" 
    19 "X-Poedit-Basepath: C:\\Documents and Settings\\Ehsan\\Desktop\\quotes-collection\n" 
    20 "X-Poedit-SourceCharset: utf-8\n" 
    21 "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_c;__ngettext_noop:1,2\n" 
    22 "X-Poedit-SearchPath-0: C:\\Documents and Settings\\Ehsan\\Desktop\\quotes-collection\n" 
    23  
    24 #: quotes-collection.php:62 
    25 #: quotes-collection.php:175 
    26 #: quotes-collection.php:179 
     14 
     15#: quotes-collection-ajax.php:6 quotes-collection.php:215 
    2716msgid "Next quote" 
    2817msgstr "عبارت بعدی" 
    2918 
    30 #: quotes-collection.php:63 
     19#: quotes-collection-ajax.php:7 
    3120msgid "Loading..." 
    3221msgstr "در حال بارگذاری ..." 
    3322 
    34 #: quotes-collection.php:64 
     23#: quotes-collection-ajax.php:8 
    3524msgid "Error getting quote" 
    3625msgstr "اشکال در دیافت عبارت" 
    3726 
    38 #: quotes-collection.php:200 
    39 #: quotes-collection.php:221 
     27#: quotes-collection.php:163 
     28msgid "Go to the first page" 
     29msgstr "برو به صفحه اول" 
     30 
     31#: quotes-collection.php:165 
     32msgid "Go to the previous page" 
     33msgstr "برو به صفحه قبل" 
     34 
     35#: quotes-collection.php:169 
     36msgid "Go to the next page" 
     37msgstr "برو به صفحه بعد" 
     38 
     39#: quotes-collection.php:171 
     40msgid "Go to the last page" 
     41msgstr "برو به صفحه آخر" 
     42 
     43#: quotes-collection.php:175 
     44msgid "Goto page:" 
     45msgstr "برو به صفحه:" 
     46 
     47#: quotes-collection-admin.php:14 
     48msgid "Nothing added to the database." 
     49msgstr "چیزی به پایگاه داده اضافه نشد." 
     50 
     51#: quotes-collection-admin.php:18 quotes-collection-admin.php:55 
     52msgid "Database table not found" 
     53msgstr "جدول پایگاه داده یافت نشد." 
     54 
     55#: quotes-collection-admin.php:42 quotes-collection-admin.php:84 
     56#: quotes-collection-admin.php:98 
     57msgid "There was an error in the MySQL query" 
     58msgstr "اشکالی در MySQL query موجود است." 
     59 
     60#: quotes-collection-admin.php:44 
     61msgid "Quote added" 
     62msgstr "عبارت اضافه شد." 
     63 
     64#: quotes-collection-admin.php:50 
     65msgid "Quote not updated." 
     66msgstr "عبارت به روز رسانی نشد." 
     67 
     68#: quotes-collection-admin.php:86 
     69msgid "Changes saved" 
     70msgstr "تغییرات ذخیره شد." 
     71 
     72#: quotes-collection-admin.php:100 
     73msgid "Quote deleted" 
     74msgstr "عبارت پاک شد." 
     75 
     76#: quotes-collection-admin.php:102 
     77msgid "The quote cannot be deleted" 
     78msgstr "عبارت نمی‌تواند پاک شود." 
     79 
     80#: quotes-collection-admin.php:118 quotes-collection-admin.php:220 
     81msgid "Add Quote" 
     82msgstr "اضافه کن" 
     83 
     84#: quotes-collection-admin.php:135 quotes-collection-admin.php:224 
     85msgid "Save changes" 
     86msgstr "ذخیره تغییرات" 
     87 
     88#: quotes-collection-admin.php:136 
     89msgid "Back" 
     90msgstr "بازگشت" 
     91 
     92#: quotes-collection-admin.php:140 quotes-collection-admin.php:386 
     93msgid "The quote" 
     94msgstr "عبارت" 
     95 
     96#: quotes-collection-admin.php:141 quotes-collection-admin.php:368 
     97#: quotes-collection-admin.php:388 
     98msgid "Author" 
     99msgstr "نویسنده" 
     100 
     101#: quotes-collection-admin.php:142 quotes-collection-admin.php:369 
     102#: quotes-collection-admin.php:388 
     103msgid "Source" 
     104msgstr "منبع" 
     105 
     106#: quotes-collection-admin.php:143 quotes-collection-admin.php:390 
     107msgid "Tags" 
     108msgstr "برچسب" 
     109 
     110#: quotes-collection-admin.php:144 quotes-collection-admin.php:391 
     111msgid "Public?" 
     112msgstr "عمومی؟" 
     113 
     114#: quotes-collection-admin.php:145 
     115msgid "optional" 
     116msgstr "انتخابی" 
     117 
     118#: quotes-collection-admin.php:146 
     119msgid "comma separated" 
     120msgstr "توسط کاما جدا شود" 
     121 
     122#: quotes-collection-admin.php:183 quotes-collection-admin.php:199 
     123msgid "Nothing done!" 
     124msgstr "چیزی انجام نشد!" 
     125 
     126#: quotes-collection-admin.php:191 
     127msgid "Selected quotes made public" 
     128msgstr "عبارات انتخاب شده عمومی شدند." 
     129 
     130#: quotes-collection-admin.php:193 
     131msgid "Selected quotes made private" 
     132msgstr "عبارات انتخاب شده خصوصی شدند." 
     133 
     134#: quotes-collection-admin.php:204 
     135msgid "Quote(s) deleted" 
     136msgstr "عبارت(ها) پاک شد." 
     137 
     138#: quotes-collection-admin.php:231 
     139msgid "Edit quote" 
     140msgstr "ویرایش عبارت" 
     141 
     142#: quotes-collection-admin.php:258 quotes-collection-admin.php:267 
     143#: quotes-collection-admin.php:412 
     144msgid "Add new quote" 
     145msgstr "عبارت جدیدی اضافه نمایید." 
     146 
     147#: quotes-collection-admin.php:263 quotes-collection-admin.php:406 
     148msgid "No quotes in the database" 
     149msgstr "هیچ عبارتی در پایگاه داده موجود نیست." 
     150 
     151#: quotes-collection-admin.php:337 
     152msgid "Edit" 
     153msgstr "ویرایش" 
     154 
     155#: quotes-collection-admin.php:337 
     156msgid "Are you sure you want to delete this quote?" 
     157msgstr "آیا برای پاک کردن این عبارت مطمئن هستید؟" 
     158 
     159#: quotes-collection-admin.php:337 quotes-collection-admin.php:358 
     160msgid "Delete" 
     161msgstr "پاک کردن" 
     162 
     163#: quotes-collection-admin.php:344 
     164msgid "No" 
     165msgstr "خیر" 
     166 
     167#: quotes-collection-admin.php:345 
     168msgid "Yes" 
     169msgstr "بله" 
     170 
     171#: quotes-collection-admin.php:357 
     172msgid "Bulk Actions" 
     173msgstr "عملیات دسته‌جمعی" 
     174 
     175#: quotes-collection-admin.php:359 
     176msgid "Make public" 
     177msgstr "عمومی شود" 
     178 
     179#: quotes-collection-admin.php:360 
     180msgid "Keep private" 
     181msgstr "خصوصی بماند" 
     182 
     183#: quotes-collection-admin.php:362 
     184msgid "Apply" 
     185msgstr "انجام" 
     186 
     187#: quotes-collection-admin.php:364 
     188msgid "Sort by: " 
     189msgstr "مرتب کردن بر اساس:" 
     190 
     191#: quotes-collection-admin.php:366 quotes-collection-admin.php:367 
     192msgid "Quote" 
     193msgstr "عبارت" 
     194 
     195#: quotes-collection-admin.php:370 
     196msgid "Date added" 
     197msgstr "زمان اضافه شدن" 
     198 
     199#: quotes-collection-admin.php:371 
     200msgid "Date updated" 
     201msgstr "زمان به روز رسانی" 
     202 
     203#: quotes-collection-admin.php:372 
     204msgid "Visibility" 
     205msgstr "وضعیت نماش" 
     206 
     207#: quotes-collection-admin.php:375 
     208msgid "Go" 
     209msgstr "برو" 
     210 
     211#: quotes-collection-admin.php:377 quotes-collection-admin.php:397 
     212msgid "%d quote" 
     213msgid_plural "%d quotes" 
     214msgstr[0] "%d عبارت" 
     215msgstr[1] "%d عبارت" 
     216 
     217#: quotes-collection-widget.php:13 quotes-collection-widget.php:38 
    40218msgid "Random Quote" 
    41219msgstr "عبارت تصادفی" 
    42220 
    43 #: quotes-collection.php:242 
     221#: quotes-collection-widget.php:65 
    44222msgid "none" 
    45223msgstr "هیچکدام" 
    46224 
    47 #: quotes-collection.php:253 
     225#: quotes-collection-widget.php:84 
    48226msgid "Title" 
    49227msgstr "عنوان" 
    50228 
    51 #: quotes-collection.php:254 
     229#: quotes-collection-widget.php:85 
    52230msgid "Show author?" 
    53231msgstr "نام نویسنده نمایش داده شود؟" 
    54232 
    55 #: quotes-collection.php:255 
     233#: quotes-collection-widget.php:86 
    56234msgid "Show source?" 
    57235msgstr "نام منبع نمایش داده شود؟" 
    58236 
    59 #: quotes-collection.php:256 
     237#: quotes-collection-widget.php:87 
    60238msgid "Ajax refresh feature" 
    61239msgstr "امکان بارگذاری مجدد عبارت توسط آژاکس" 
    62240 
    63 #: quotes-collection.php:257 
     241#: quotes-collection-widget.php:88 
     242msgid "Advanced options" 
     243msgstr "گزینه‌های پیشرفته" 
     244 
     245#: quotes-collection-widget.php:90 
     246msgid "Random refresh" 
     247msgstr "به روز رسانی تصادفی" 
     248 
     249#: quotes-collection-widget.php:90 
     250msgid "Unchecking this will rotate quotes in the order added, latest first." 
     251msgstr "" 
     252"با عدم انتخاب این گزینه عبارات با ترتیب اضافه شدنشان چرخش خواهند کرد. (آخرین " 
     253"عبارت اضافه شده اول نمایش داده خواهد شد.)" 
     254 
     255#: quotes-collection-widget.php:91 
     256msgid "Auto refresh" 
     257msgstr "به روز رسانی خودکار" 
     258 
     259#: quotes-collection-widget.php:91 
     260msgid "every" 
     261msgstr "هر" 
     262 
     263#: quotes-collection-widget.php:91 
     264msgid "sec" 
     265msgstr "ثانیه" 
     266 
     267#: quotes-collection-widget.php:92 
    64268msgid "Tags filter" 
    65269msgstr "فیلتر برچسب‌ها" 
    66270 
    67 #: quotes-collection.php:257 
     271#: quotes-collection-widget.php:92 
    68272msgid "Comma separated" 
    69273msgstr "توسط کاما جدا شود" 
    70274 
    71 #: quotes-collection.php:258 
     275#: quotes-collection-widget.php:93 
    72276msgid "Character limit" 
    73277msgstr "محدودیت کاراکتر" 
    74  
    75 #: quotes-collection.php:260 
    76 msgid "Click here" 
    77 msgstr "اینجا را کلیک کن" 
    78  
    79 #: quotes-collection.php:260 
    80 msgid "to manage your collection of quotes" 
    81 msgstr "تا به بخش مدیریت عبارات منتقل شوی" 
    82  
    83 #: quotes-collection.php:277 
    84 msgid "Nothing added to the database." 
    85 msgstr "چیزی به پایگاه داده اضافه نشد." 
    86  
    87 #: quotes-collection.php:281 
    88 #: quotes-collection.php:319 
    89 msgid "Database table not found" 
    90 msgstr "جدول پایگاه داده یافت نشد." 
    91  
    92 #: quotes-collection.php:306 
    93 #: quotes-collection.php:349 
    94 #: quotes-collection.php:363 
    95 msgid "There was an error in the MySQL query" 
    96 msgstr "اشکالی در MySQL query موجود است." 
    97  
    98 #: quotes-collection.php:308 
    99 msgid "Quote added" 
    100 msgstr "عبارت اضافه شد." 
    101  
    102 #: quotes-collection.php:314 
    103 msgid "Quote not updated." 
    104 msgstr "عبارت به روز رسانی نشد." 
    105  
    106 #: quotes-collection.php:351 
    107 msgid "Changes saved" 
    108 msgstr "تغییرات ذخیره شد." 
    109  
    110 #: quotes-collection.php:365 
    111 msgid "Quote deleted" 
    112 msgstr "عبارت پاک شد." 
    113  
    114 #: quotes-collection.php:367 
    115 msgid "The quote cannot be deleted" 
    116 msgstr "عبارت نمی‌تواند پاک شود." 
    117  
    118 #: quotes-collection.php:383 
    119 #: quotes-collection.php:477 
    120 msgid "Add Quote" 
    121 msgstr "اضافه کن" 
    122  
    123 #: quotes-collection.php:399 
    124 #: quotes-collection.php:481 
    125 msgid "Save changes" 
    126 msgstr "ذخیره تغییرات" 
    127  
    128 #: quotes-collection.php:400 
    129 msgid "Back" 
    130 msgstr "بازگشت" 
    131  
    132 #: quotes-collection.php:404 
    133 #: quotes-collection.php:587 
    134 msgid "The quote" 
    135 msgstr "عبارت" 
    136  
    137 #: quotes-collection.php:405 
    138 #: quotes-collection.php:570 
    139 #: quotes-collection.php:589 
    140 msgid "Author" 
    141 msgstr "نویسنده" 
    142  
    143 #: quotes-collection.php:406 
    144 #: quotes-collection.php:571 
    145 #: quotes-collection.php:589 
    146 msgid "Source" 
    147 msgstr "منبع" 
    148  
    149 #: quotes-collection.php:407 
    150 #: quotes-collection.php:591 
    151 msgid "Tags" 
    152 msgstr "برچسب" 
    153  
    154 #: quotes-collection.php:408 
    155 #: quotes-collection.php:592 
    156 msgid "Visible?" 
    157 msgstr "نمایان" 
    158  
    159 #: quotes-collection.php:409 
    160 msgid "optional" 
    161 msgstr "انتخابی" 
    162  
    163 #: quotes-collection.php:410 
    164 msgid "comma separated" 
    165 msgstr "توسط کاما جدا شود" 
    166  
    167 #: quotes-collection.php:447 
    168 #: quotes-collection.php:460 
    169 msgid "Nothing done!" 
    170 msgstr "چیزی انجام نشد!" 
    171  
    172 #: quotes-collection.php:454 
    173 #, php-format 
    174 msgid "Visibility status of selected quotes set to '%s'" 
    175 msgstr "تغییر حالت نمایش عبارت انتخاب شده به '%s'" 
    176  
    177 #: quotes-collection.php:465 
    178 msgid "Quote(s) deleted" 
    179 msgstr "عبارت(ها) پاک شد." 
    180  
    181 #: quotes-collection.php:486 
    182 msgid "Edit quote" 
    183 msgstr "ویرایش عبارت" 
    184  
    185 #: quotes-collection.php:496 
    186 #: quotes-collection.php:547 
    187 #: quotes-collection.php:562 
    188 #: quotes-collection.php:601 
    189 msgid "Delete" 
    190 msgstr "پاک کردن" 
    191  
    192 #: quotes-collection.php:498 
    193 #: quotes-collection.php:563 
    194 #: quotes-collection.php:602 
    195 msgid "Make visible" 
    196 msgstr "قابل روئیت شود" 
    197  
    198 #: quotes-collection.php:501 
    199 #: quotes-collection.php:564 
    200 #: quotes-collection.php:603 
    201 msgid "Make invisible" 
    202 msgstr "پنهان  شود" 
    203  
    204 #: quotes-collection.php:546 
    205 msgid "Edit" 
    206 msgstr "ویرایش" 
    207  
    208 #: quotes-collection.php:547 
    209 msgid "Are you sure you want to delete this quote?" 
    210 msgstr "آیا برای پاک کردن این عبارت مطمئن هستید؟" 
    211  
    212 #: quotes-collection.php:554 
    213 #, php-format 
    214 msgid "Currently, you have %d quote." 
    215 msgid_plural "Currently, you have %d quotes." 
    216 msgstr[0] "تا کنون %d عبارت نوشته شده است." 
    217 msgstr[1] "تا کنون %d عبارت نوشته شده است." 
    218  
    219 #: quotes-collection.php:556 
    220 #: quotes-collection.php:618 
    221 msgid "Add new quote" 
    222 msgstr "عبارت جدیدی اضافه نمایید." 
    223  
    224 #: quotes-collection.php:566 
    225 msgid "Sort by: " 
    226 msgstr "مرتب کردن بر اساس:" 
    227  
    228 #: quotes-collection.php:568 
    229 #: quotes-collection.php:569 
    230 msgid "Quote" 
    231 msgstr "عبارت" 
    232  
    233 #: quotes-collection.php:572 
    234 msgid "Date added" 
    235 msgstr "زمان اضافه شدن" 
    236  
    237 #: quotes-collection.php:573 
    238 msgid "Date updated" 
    239 msgstr "زمان به روز رسانی" 
    240  
    241 #: quotes-collection.php:574 
    242 msgid "Visibility" 
    243 msgstr "وضعیت نماش" 
    244  
    245 #: quotes-collection.php:577 
    246 msgid "Go" 
    247 msgstr "برو" 
    248  
    249 #: quotes-collection.php:593 
    250 msgid "Action" 
    251 msgstr "فعالیت" 
    252  
    253 #: quotes-collection.php:612 
    254 msgid "No quotes in the database" 
    255 msgstr "هیچ عبارتی در پایگاه داده موجود نیست." 
    256  
  • quotes-collection/trunk/quotes-collection-ajax.php

    r402859 r635854  
    22function quotescollection_scripts() 
    33{ 
    4     global $quotescollection_auto_refresh_max, $quotescollection_next_quote; 
     4    global $quotescollection_auto_refresh_max, $quotescollection_next_quote, $quotescollection_version; 
    55 
    66    $nextquote =  $quotescollection_next_quote?$quotescollection_next_quote:__('Next quote', 'quotes-collection')."&nbsp;&raquo;"; 
     
    99    $auto_refresh_max = $quotescollection_auto_refresh_max; 
    1010 
    11     wp_enqueue_script( 'quotescollection', plugin_dir_url(__FILE__).'quotes-collection.js', array('jquery') ); 
     11    wp_enqueue_script( 'quotescollection', plugin_dir_url(__FILE__).'quotes-collection.js', array('jquery'), $quotescollection_version, true ); 
    1212    wp_localize_script( 'quotescollection', 'QCAjax', array( 
    1313        // URL to wp-admin/admin-ajax.php to process the request 
  • quotes-collection/trunk/quotes-collection-shortcodes.php

    r524245 r635854  
    11<?php 
    22 
    3 function quotescollection_output_format($quotes) 
     3function quotescollection_shortcode_output_format($quotes) 
    44{ 
    55    $display = ""; 
    66 
    77    foreach($quotes as $quote_data) { 
    8         $quote_data = quotescollection_txtfmt($quote_data); 
    9         $display .= "<blockquote class=\"quotescollection\" id=\"quote-".$quote_data['quote_id']."\"><p><q>".$quote_data['quote']."</q>"; 
    10         $cite = ""; 
    11         if($quote_data['author']) 
    12             $cite = $quote_data['author']; 
    13         if($quote_data['source']) { 
    14             if($cite) $cite .= ", "; 
    15             $cite .= $quote_data['source']; 
    16         } 
    17         if($cite) $cite = " <cite>&mdash;&nbsp;{$cite}</cite>";  
    18         $display .= $cite."</p></blockquote>\n"; 
     8        $display .= "<blockquote class=\"quotescollection\" id=\"quote-".$quote_data['quote_id']."\">"; 
     9        $display .= quotescollection_output_format( $quote_data ); 
     10        $display .= "</blockquote>\n"; 
    1911    } 
    20     return $display; 
     12    return apply_filters( 'quotescollection_shortcode_output_format', $display ); 
    2113} 
    2214 
     
    4436         
    4537        if ($quote = quotescollection_get_quotes($condition)) 
    46             return quotescollection_output_format($quote); 
     38            return quotescollection_shortcode_output_format($quote); 
    4739        else 
    4840            return ""; 
     
    10698         
    10799        if($quotes = quotescollection_get_quotes($condition)) 
    108             return $page_nav.quotescollection_output_format($quotes).$page_nav; 
     100            return $page_nav.quotescollection_shortcode_output_format($quotes).$page_nav; 
    109101        else 
    110102            return ""; 
     
    118110 
    119111    if($quotes = quotescollection_get_quotes($condition)) 
    120         return quotescollection_output_format($quotes); 
     112        return quotescollection_shortcode_output_format($quotes); 
    121113    else 
    122114        return ""; 
  • quotes-collection/trunk/quotes-collection.php

    r566394 r635854  
    44Plugin URI: http://srinig.com/wordpress/plugins/quotes-collection/ 
    55Description: Quotes Collection plugin with Ajax powered Random Quote sidebar widget helps you collect and display your favourite quotes on your WordPress blog. 
    6 Version: 1.5.6 
     6Version: 1.5.7 
    77Author: Srini G 
    88Author URI: http://srinig.com/wordpress/ 
     
    1010*/ 
    1111 
    12 /*  Copyright 2007-2011 Srini G (email : srinig.com@gmail.com) 
     12/*  Copyright 2007-2012 Srini G (email : srinig.com@gmail.com) 
    1313 
    1414    This program is free software; you can redistribute it and/or modify 
     
    4444$quotescollection_admin_userlevel = 'edit_posts';  
    4545 
    46  
     46$quotescollection_version = '1.5.7'; 
    4747$quotescollection_db_version = '1.4';  
    4848 
     
    212212} 
    213213 
     214function quotescollection_output_format( $quote_data, $options = array('show_author' => 1, 'show_source' => 1) ) 
     215{ 
     216    $display = ""; 
     217 
     218    $quote_data = quotescollection_txtfmt($quote_data); 
     219 
     220    $display .= "<p><q>".$quote_data['quote']."</q>"; 
     221     
     222    $cite = ""; 
     223 
     224    if($options['show_author'] && $quote_data['author']) 
     225        $cite = '<span class="quotescollection_author">'. $quote_data['author'] .'</span>'; 
     226 
     227    if($options['show_source'] && $quote_data['source']) { 
     228        if($cite) $cite .= ", "; 
     229        $cite .= '<span class="quotescollection_source">'. $quote_data['source'] .'</span>'; 
     230    } 
     231 
     232    if($cite) $cite = " <cite>&mdash;&nbsp;{$cite}</cite>"; 
     233    $display .= $cite."</p>"; 
     234 
     235    return apply_filters( 'quotescollection_output_format', $display ); 
     236} 
     237 
    214238 
    215239function quotescollection_display_randomquote($show_author = 1, $show_source = 1, $ajax_refresh = 1, $random_quote = array())  
     
    280304    $random_quote  = quotescollection_txtfmt($random_quote); 
    281305                 
    282     $display = "<p><q>". $random_quote['quote'] ."</q>"; 
    283     $cite = ""; 
    284     if($options['show_author'] && $random_quote['author']) 
    285         $cite = '<span class="quotescollection_author">'. $random_quote['author'] .'</span>'; 
    286  
    287     if($options['show_source'] && $random_quote['source']) { 
    288         if($cite) $cite .= ", "; 
    289             $cite .= '<span class="quotescollection_source">'. $random_quote['source'] .'</span>'; 
    290     } 
    291     if($cite) $cite = " <cite>&mdash;&nbsp;{$cite}</cite>"; 
    292     $display .= $cite."</p>"; 
     306    $display = quotescollection_output_format($random_quote, $options); 
    293307     
    294308    // We don't want to display the 'next quote' link if there is no more than 1 quote 
     
    374388 
    375389 
    376 function quotescollection_css_head()  
    377 { 
    378     ?> 
    379     <link rel="stylesheet" type="text/css" href="<?php echo plugins_url(); ?>/quotes-collection/quotes-collection.css" /> 
    380     <?php 
    381 } 
    382  
    383  
    384 add_action('wp_head', 'quotescollection_css_head' ); 
    385  
     390function quotescollection_css_head() 
     391{ 
     392    global $quotescollection_version; 
     393    if ( !is_admin() ) { 
     394        wp_register_style( 'quotescollection-style', plugins_url('quotes-collection.css', __FILE__), false, $quotescollection_version ); 
     395        wp_enqueue_style( 'quotescollection-style' ); 
     396    } 
     397} 
     398add_action( 'wp_enqueue_scripts', 'quotescollection_css_head' ); 
    386399 
    387400 
  • quotes-collection/trunk/readme.txt

    r566394 r635854  
    44Tags: quotes collection, quotes, quotations, random quote, sidebar, widget, ajax, shortcode 
    55Requires at least: 2.8 
    6 Tested up to: 3.4.1 
     6Tested up to: 3.5-RC5 
    77Stable tag: trunk 
    88 
     
    2626    * Show only quotes with certain tags 
    2727    * Specify a character limit and filter out bigger quotes 
    28 * **Shortcode**: Quotes can be displayed in a WordPress page by placing a `[quotcoll]`shortcode. Few examples are provided below. For more examples and the full list of arguments, please refer the [plugin homepage](http://srinig.com/wordpress/plugins/quotes-collection/) or 'other notes'. *(Note: as of version 1.5, the new `[quotcoll]` shortcode is introduced which uses the WordPress shortoced API. The older `[quote]` shortcode is deprecated, though it will still work as a measure of backwards compatibility.)*  
     28* **Shortcode**: Quotes can be displayed in a WordPress page by placing a `[quotcoll]`shortcode. Few examples are provided below. For more examples and the full list of arguments, please refer the [plugin homepage](http://srinig.com/wordpress/plugins/quotes-collection/) or 'other notes'. *(Note: The new `[quotcoll]` shortcode is introduced in version 1.5, that makes use of the WordPress shortcode API. The older `[quote]` shortcode is deprecated, though it will still work as a measure of backwards compatibility.)*  
    2929    * Placing `[quotcoll]` in the page displays all quotes. 
    3030    * `[quotcoll author="Somebody"]` displays quotes authored by Somebody. 
     
    5151= How to change the random quote text color? = 
    5252 
    53 Styling such as text color, font size, background color, etc., of the random quote can be customized by editing the quotes-collection.css file. 
     53Styling such as text color, font size, background color, etc., of the random quote can be customized by editing the quotes-collection.css file. Please also note that any updates to the plugin will overwrite your customized css file, so it's advisable to backup your customization before updating the plugin. 
    5454 
    5555= How to hide the 'Next quote »' link? =  
    5656 
    57 You can do this by turning off the 'Ajax Refresh feature' in widget options. 
     57You can do this by turning off the 'Ajax Refresh' feature in widget options. 
    5858 
    5959= How to change the link text from 'Next quote »' to something else? = 
     
    6363= The 'Next quote »' link is not working. Why? = 
    6464 
    65 Make sure your theme's header.php file has the code `<?php wp_head(); ?>` just before `</head>`. If you still experience the problem, [contact](http://srinig.com/wordpress/contact/) the plugin author. 
     65Make sure your theme's footer.php file has the code `<?php wp_footer(); ?>` just before `</body>`. If you still experience the problem, [contact](http://srinig.com/wordpress/contact/) the plugin author. 
     66 
     67= I have added a number of quotes, but some of the quotes never get displayed in the widget. Why? 
     68 
     69If you want all of the quotes to display, make sure all all the quotes fall within the 'Character limit'. There is an option named 'Character limit' for the widget (bottom most, under the 'advanced options') with a default value of '500'. The value can be changed, or simply removed and the field left blank so that none of the quotes get filtered out based on length. 
     70 
     71= Why multiple instances of the widget is not available? = 
     72 
     73There can be conflicts and undesirable behaviour when more than one instance of the random quote function call is used in the same page, especially with the ajax refresh turned on for all the instances. It is for this reason the multiple instances of the widget is currently unavailable. For the same reason, it is not advised to use the `quotescollection_quote()` function call more than once in the same page. And for the same reason, the ajax refresh option is not made available for the shortcodes. These limitations shall be overcome in a future version of the plugin. 
    6674 
    6775= How to change the admin access level setting for the quotes collection admin page? = 
     
    6977Change the value of the variable `$quotescollection_admin_userlevel` on line 44 of the quotes-collection.php file. Refer [WordPress documentation](http://codex.wordpress.org/Roles_and_Capabilities) for more information about user roles and capabilities. 
    7078 
    71 = I have a long list of quotes, and `[quotcoll]` puts all of the quotes in a single page. Is there a way to introduce pagination and break the long list of quotes into different pages? = 
     79= I have a long list of quotes, and the `[quotcoll]` shortcode puts all of the quotes in a single page. Is there a way to introduce pagination and break the long list of quotes into different pages? = 
    7280 
    7381Yes, pagination is supporterd in versions 1.5 and greater. `paging` and `limit_per_page` attributes can be used to achieve this. For example, `[quotcoll paging=true limit_per_page=30]` will introduce pagination with a maximum of 30 quotes per page. 
     
    113121* **order** *(string)*  
    114122    * The value can be either 'ASC' (default) or 'DESC', for ascending and descending order respectively. 
    115     * For example, `[quotcoll orderby="date_added" order="DESC"]` will display all the quotes in the order of date added, latest first and the earliest last. 
     123    * For example, `[quotcoll orderby="time_added" order="DESC"]` will display all the quotes in the order of date added, latest first and the earliest last. 
    116124     
    117125* **paging** *(boolean)* 
     
    212220* `lt_LT` / Lithuanian / Lulilo 
    213221* `lv_LV` / Latvian / [Maris Svirksts](http://www.moskjis.com/) 
     222* `mk_MK` / Macedonian / [Diana](http://wpcouponshop.com/) 
    214223* `nb_NO` / Norwegian (Bokmål) / [Christian K. Nordtømme](http://nextpage.no/) 
    215224* `nl_NL` / Dutch / [Kristof Vercruyssen](http://www.simplit.be/) 
     
    231240==Changelog== 
    232241 
     242* **2012-12-08: Version 1.5.7** 
     243    * Localization in Macedonian language added, Persian language updated. 
     244    * Code improvements 
     245    * Documentation changes (FAQ updated) 
     246 
    233247* **2012-07-02: Version 1.5.6** 
    234248    * Security fix (pointed out by Charlie Eriksen via Secunia SVCRP) 
     
    417431== Upgrade Notice == 
    418432 
    419 = 1.5.6 = 
    420 This version fixes a security vulnerability. Please upgrade. 
    421  
     433= 1.5.7 = 
     434Minor udate. Localization in Macedonian language added, Persian updated. Improvements to code. 
     435 
Note: See TracChangeset for help on using the changeset viewer.