Plugin Directory

Changeset 973504


Ignore:
Timestamp:
08/26/2014 06:31:21 PM (12 years ago)
Author:
vEnCa-X
Message:

version 0.2
add css clases

Location:
nastrikejcz/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • nastrikejcz/trunk/nastrikej.php

    r927811 r973504  
    55  Plugin URI: http://www.nastrikej.cz
    66  Description: Rozpis hasičských soutěží/výsledků z celé ČR
    7   Version: 0.1
     7  Version: 0.2
    88  Author: vEnCa-X
    99  Author URI: http://www.venca-x.cz
     
    9696                    {
    9797                        $table.="<tr>";
    98                             $table.="<td>" . $competition["date"] . "&nbsp;</td><td><a href='" . $competition["href"] . "'>" . $competition["village"] . "</a></td>";
     98                            $table.="<td class='competition'>" . $competition["date"] . "&nbsp;</td><td class='competition-village'><a href='" . $competition["href"] . "'>" . $competition["village"] . "</a></td>";
    9999                        $table.="</tr>";
    100100                       
     
    106106                                foreach( $result["youtubes"] as $youtube )
    107107                                {
    108                                     $video.= " <a href='" . $youtube . "' target='_blank'><img src='http://www.nastrikej.cz/pictures/video-icon.png' alt='video'></a> ";
     108                                    $video.= " <a href='" . $youtube . "' target='_blank' class='competition-video'><img src='http://www.nastrikej.cz/pictures/video-icon.png' alt='video'></a> ";
    109109                                }
    110110                               
    111111                                $table.="<tr>";
    112                                     $table.="<td colspan=\"2\"><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$result["position"]}. {$result["team"]}, čas: {$result["time"]}</small>".$video."</td>";
     112                                    $table.="<td colspan=\"2\" class='competition-result'><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$result["position"]}. {$result["team"]}, čas: {$result["time"]}</small>".$video."</td>";
    113113                                    //,{$result["position"]}.místo";
    114114                                $table.="</tr>";                           
     
    126126}
    127127
    128 //na tomhle to kasovi nejspis pada, pac ma stary PHP - http://codex.wordpress.org/Widgets_API
    129 /*
    130 add_action( 'widgets_init', function()
    131 {
    132     register_widget( 'nastrikej' );
    133 } );
    134 */
    135 
    136 //todo kvuli kasovi
    137128add_action('widgets_init', create_function('', 'return register_widget("nastrikej");'));
    138129
  • nastrikejcz/trunk/readme.txt

    r927811 r973504  
    21211. Place `<?php do_action('plugin_name_hook'); ?>` in your templates
    2222
     23
     24== Example formating CSS ==
     25/****************** start nastrikej ***************/
     26table#nastrikej, table#nastrikej td {
     27  border: 0px;
     28}
     29
     30table#nastrikej th {
     31  color: white;
     32  background-color: black;
     33  font-weight: bold;
     34  padding: 3px;
     35}
     36/****************** end nastrikej ***************/
     37
     38
    2339== Frequently asked questions ==
    2440
  • nastrikejcz/trunk/views/widget.php

    r927811 r973504  
    33    echo $before_title . $title . $after_title;
    44if ( !empty( $table ) )
    5     echo $table . ' ' . $suffix;
     5    echo $table;
Note: See TracChangeset for help on using the changeset viewer.