WordPress.org

Plugin Directory

Changeset 360717


Ignore:
Timestamp:
03/16/11 13:21:57 (3 years ago)
Author:
leogermani
Message:

[add] widget

Location:
post-highlights/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • post-highlights/trunk/languages/ph.po

    r261381 r360717  
    33"Project-Id-Version: ph\n" 
    44"Report-Msgid-Bugs-To: \n" 
    5 "POT-Creation-Date: 2010-07-08 10:38-0300\n" 
    6 "PO-Revision-Date: 2010-07-08 10:40-0300\n" 
     5"POT-Creation-Date: 2011-03-16 10:13-0300\n" 
     6"PO-Revision-Date: 2011-03-16 10:13-0300\n" 
    77"Last-Translator: Leo Germani <leogermani@gmail.com>\n" 
    88"Language-Team: \n" 
     
    1212"X-Poedit-KeywordsList: __;_e\n" 
    1313"X-Poedit-Basepath: .\n" 
    14 "X-Poedit-SearchPath-0: /home/leo/devel/post-highlights/trunk\n" 
    15  
    16 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:118 
     14"X-Poedit-SearchPath-0: /home/leo/devel/wp31/wp-content/plugins/post-highlights\n" 
     15 
     16#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:135 
    1717msgid "Loading" 
    1818msgstr "Carregando" 
    1919 
    20 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:137 
     20#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:154 
    2121msgid "Edit" 
    2222msgstr "Editar" 
    2323 
    24 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:138 
     24#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:155 
    2525msgid "Hide Settings" 
    2626msgstr "Ocultar Configurações" 
    2727 
    28 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:145 
     28#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:162 
    2929msgid "only highlighted" 
    3030msgstr "Somente Highlights" 
    3131 
    32 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:149 
     32#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:166 
    3333msgid "Highlight" 
    3434msgstr "Destaque" 
    3535 
    36 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:154 
    37 #, fuzzy 
     36#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:171 
    3837msgid "Post Highlight Settings" 
    3938msgstr "Opções do Post Highlights" 
    4039 
    41 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:154 
     40#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:171 
    4241msgid "Settings" 
    4342msgstr "Configurações" 
    4443 
    45 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:155 
     44#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:172 
    4645msgid "Post Highlight Options" 
    4746msgstr "Opções do Post Highlights" 
    4847 
    49 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:155 
     48#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:172 
    5049msgid "Post Highlights" 
    5150msgstr "Post Highlights" 
    5251 
    53 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:156 
     52#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:173 
    5453msgid "Post Highlight Permissions" 
    5554msgstr "Permissões do Post Highlights" 
    5655 
    57 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:156 
     56#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:173 
    5857msgid "Permissions" 
    5958msgstr "Permissões" 
    6059 
    61 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:167 
     60#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:184 
    6261msgid "Global Options" 
    6362msgstr "Opções Globais" 
    6463 
    65 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:168 
    66 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:189 
     64#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:185 
     65#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:206 
    6766msgid "Options" 
    6867msgstr "Opções" 
    6968 
    70 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:172 
     69#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:189 
    7170msgid "Delay: The time between each highlight in miliseconds (1 sec = 1000) - default = 8000" 
    7271msgstr "Delay: O tempo entre cada destaque em milisegundos (1 seg = 1000) - default = 8000" 
    7372 
    74 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:173 
     73#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:190 
    7574msgid "Number of posts: Maximum number of posts to display (0 or empty = unlimited) - default = unlimited" 
    7675msgstr "Número de posts: Número máximo de posts que ficarão em destaque (0 ou vazio = ilimitado) - padrão = ilimitado" 
    7776 
    78 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:188 
     77#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:205 
    7978msgid "Theme Options" 
    8079msgstr "Opções do Tema" 
    8180 
    82 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:204 
     81#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:221 
    8382msgid "These settings applies to all Post Highlight themes" 
    8483msgstr "Essas configurações se aplicam a todos os tema do Post Highlights" 
    8584 
    86 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:209 
     85#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:226 
    8786msgid "Current Theme" 
    8887msgstr "Tema Atual" 
    8988 
    90 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:231 
     89#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:248 
    9190msgid "Order:" 
    9291msgstr "Ordem:" 
    9392 
    94 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:233 
     93#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:250 
     94msgid "Order Value" 
     95msgstr "Ordem" 
     96 
     97#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:250 
    9598msgid "Newer to Older" 
    9699msgstr "Do mais novo para o mais velho" 
    97100 
    98 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:233 
     101#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:250 
    99102msgid "Older to Newer" 
    100103msgstr "Do mais velho para o mais novo" 
    101104 
    102 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:233 
    103 #, fuzzy 
    104 msgid "Order Value" 
    105 msgstr "Ordem" 
    106  
    107 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:248 
     105#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:265 
    108106msgid "\"Order Value\" refers to the Order field that appears in the Post highlights dialog box when you highlight a post" 
    109107msgstr "\"Ordem\" se refere ao campo Ordem que aparece na caixa de diálogo quando você clica para selecionar um post para o Post Highlights" 
    110108 
    111 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:255 
     109#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:272 
    112110msgid "I want Post Highlights to automatically create and use an image with these dimensions:" 
    113111msgstr "Eu quero que o Post Highlights crie e use um thumbnail automaticamente com este tamanho:" 
    114112 
    115 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:257 
     113#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:274 
    116114msgid "Width:" 
    117115msgstr "Largura:" 
    118116 
    119 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:260 
     117#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:277 
    120118msgid "Height:" 
    121119msgstr "Altura:" 
    122120 
    123 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:268 
     121#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:285 
    124122msgid "These settings applies only to the active theme" 
    125123msgstr "Essas configurações se aplicam apenas ao tema atual" 
    126124 
    127 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:293 
    128 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:333 
    129 #, fuzzy 
     125#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:310 
     126#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:350 
    130127msgid "Save Changes" 
    131 msgstr "Salvar Configurações" 
    132  
    133 #: /home/leo/devel/post-highlights/trunk/post-highlights.php:305 
     128msgstr "Salvar Modificações" 
     129 
     130#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/post-highlights.php:322 
    134131msgid "Who can Highlight Posts?" 
    135132msgstr "Quem pode selecionar Highlights?" 
    136133 
    137 #: /home/leo/devel/post-highlights/trunk/themes/default/settings.php:14 
    138 #: /home/leo/devel/post-highlights/trunk/themes/default-2/settings.php:18 
     134#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/widget.php:6 
     135msgid "Adds Post Highlights to the sidebar" 
     136msgstr "Adiciona o Post Highlights na barra lateral" 
     137 
     138#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/widget.php:36 
     139msgid "Title:" 
     140msgstr "Título:" 
     141 
     142#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/widget.php:41 
     143msgid "Theme:" 
     144msgstr "Tema:" 
     145 
     146#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/themes/default/settings.php:14 
     147#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/themes/default-2/settings.php:18 
    139148msgid "Width" 
    140149msgstr "Largura" 
    141150 
    142 #: /home/leo/devel/post-highlights/trunk/themes/default/settings.php:15 
    143 #: /home/leo/devel/post-highlights/trunk/themes/default-2/settings.php:19 
     151#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/themes/default/settings.php:15 
     152#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/themes/default-2/settings.php:19 
    144153msgid "Height" 
    145154msgstr "Altura" 
    146155 
    147 #: /home/leo/devel/post-highlights/trunk/themes/default/settings.php:16 
     156#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/themes/default/settings.php:16 
    148157msgid "Background color for the navigation arrows (e.g #FFCC00 or red)" 
    149158msgstr "Cor de fundo para as setas (ex: #FFCC00 ou red)" 
    150159 
    151 #: /home/leo/devel/post-highlights/trunk/themes/default-2/index.php:32 
     160#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/themes/default-2/index.php:32 
    152161msgid "Next" 
    153162msgstr "Próximo" 
    154163 
    155 #: /home/leo/devel/post-highlights/trunk/themes/default-2/index.php:33 
     164#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/themes/default-2/index.php:33 
    156165msgid "Previous" 
    157166msgstr "Anterior" 
    158167 
    159 #: /home/leo/devel/post-highlights/trunk/themes/default-2/settings.php:20 
     168#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/themes/default-2/settings.php:20 
    160169msgid "Background color for the content and navigation arrows (e.g #FFCC00 or red)" 
    161170msgstr "Cor de fundo para as setas e conteúdo (ex: #FFCC00 ou red)" 
    162171 
    163 #: /home/leo/devel/post-highlights/trunk/ajax/ph_settings.php:19 
     172#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/ajax/ph_settings.php:19 
    164173msgid "Settings Updated" 
    165174msgstr "Configurações Atualizadas" 
    166175 
    167 #: /home/leo/devel/post-highlights/trunk/ajax/ph_settings.php:24 
     176#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/ajax/ph_settings.php:24 
    168177msgid "Choose a picture from your post" 
    169178msgstr "Escolha uma das imagens do seu artigo" 
    170179 
    171 #: /home/leo/devel/post-highlights/trunk/ajax/ph_settings.php:46 
     180#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/ajax/ph_settings.php:46 
    172181msgid "Or enter URL for the picture" 
    173182msgstr "Ou entre a URL de uma imagem" 
    174183 
    175 #: /home/leo/devel/post-highlights/trunk/ajax/ph_settings.php:52 
     184#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/ajax/ph_settings.php:52 
    176185msgid "Enter a headline" 
    177186msgstr "Entre com um subtítulo" 
    178187 
    179 #: /home/leo/devel/post-highlights/trunk/ajax/ph_settings.php:54 
     188#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/ajax/ph_settings.php:54 
    180189msgid "This will be displayed under the post's title:" 
    181190msgstr "Este texto será exibido abaixo do título do artigo:" 
    182191 
    183 #: /home/leo/devel/post-highlights/trunk/ajax/ph_settings.php:60 
     192#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/ajax/ph_settings.php:60 
    184193msgid "Order" 
    185194msgstr "Ordem" 
    186195 
    187 #: /home/leo/devel/post-highlights/trunk/ajax/ph_settings.php:62 
     196#: /home/leo/devel/wp31/wp-content/plugins/post-highlights/ajax/ph_settings.php:62 
    188197msgid "Select the display order." 
    189198msgstr "Selecione a ordem de exibição" 
     
    199208#~ "posts." 
    200209#~ msgstr "Selecione a ordem de exibição." 
    201 #~ msgid "Post Highlights Options" 
    202 #~ msgstr "Opções do Post Highlight" 
    203210#~ msgid "Delay" 
    204211#~ msgstr "Intervalo" 
  • post-highlights/trunk/post-highlights.php

    r269414 r360717  
    55Description: Description: Adds a nice looking animated highlights box to your theme, and lets you highlight your posts 
    66Author: leogermani, andersonorui, pedger 
    7 Version: 2.2 
     7Version: 2.3 
    88 
    99 
     
    8686                delete_option('post_highlights'); 
    8787            } 
     88             
     89            /* 
     90            // Adding prefix for post_metas  
     91            // We are going to this at some point, but there should be done in a way not to break existing themes that look for the meta with the old name 
     92            if (!$this->get_option('post_meta_updated')) { 
     93             
     94                $this->update_option('post_meta_updated', 1); 
     95                 
     96                global $wpdb; 
     97                 
     98                $wpdb->update($wpdb->postmeta, array('meta_key' => '_ph_order'), array('meta_key' => 'ph_order')); 
     99                $wpdb->update($wpdb->postmeta, array('meta_key' => '_ph_picture_url'), array('meta_key' => 'ph_picture_url')); 
     100                $wpdb->update($wpdb->postmeta, array('meta_key' => '_ph_picture_id'), array('meta_key' => 'ph_picture_id')); 
     101                $wpdb->update($wpdb->postmeta, array('meta_key' => '_ph_headline'), array('meta_key' => 'ph_headline')); 
     102             
     103            } 
     104            */ 
    88105        } 
    89106         
     
    96113        } 
    97114         
    98         function loadTheme() { 
    99              
    100             $this->theme = $this->get_option("theme"); 
     115        function loadTheme($forcetheme = false) { 
     116             
     117            $this->theme = $forcetheme ? $forcetheme : $this->get_option("theme"); 
    101118            if (!$this->theme) { 
    102119                $this->theme = 'default'; 
     
    411428} 
    412429 
    413 add_action('init', 'post_highlights_init'); 
     430add_action('init', 'post_highlights_init', 5); 
    414431 
    415432register_activation_hook(__FILE__, 'ph_activate'); 
     
    427444} 
    428445 
    429  
     446require_once('widget.php'); 
    430447 
    431448?> 
  • post-highlights/trunk/readme.txt

    r261382 r360717  
    55Tags: post, highlight, home 
    66Requires at least: 2.6 
    7 Tested up to: 3.0 
     7Tested up to: 3.1 
    88Stable tag: 2.2 
    99 
     
    4040== Usage == 
    4141 
     42There are two ways to inser Post Highlights to your theme: 
     43 
     441. Using a Widget 
     45 
     46Simply drag and drop the post highlights widget to a sidebar (note that only one post highlights widget instance per sidebar is allowed) 
     47 
     482. Adding to your theme code 
     49 
    4250Place the following code where you want the highlights to appear on your theme: 
    4351 
Note: See TracChangeset for help on using the changeset viewer.