Changeset 973504
- Timestamp:
- 08/26/2014 06:31:21 PM (12 years ago)
- Location:
- nastrikejcz/trunk
- Files:
-
- 3 edited
-
nastrikej.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
-
views/widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nastrikejcz/trunk/nastrikej.php
r927811 r973504 5 5 Plugin URI: http://www.nastrikej.cz 6 6 Description: Rozpis hasičských soutěží/výsledků z celé ČR 7 Version: 0. 17 Version: 0.2 8 8 Author: vEnCa-X 9 9 Author URI: http://www.venca-x.cz … … 96 96 { 97 97 $table.="<tr>"; 98 $table.="<td >" . $competition["date"] . " </td><td><a href='" . $competition["href"] . "'>" . $competition["village"] . "</a></td>";98 $table.="<td class='competition'>" . $competition["date"] . " </td><td class='competition-village'><a href='" . $competition["href"] . "'>" . $competition["village"] . "</a></td>"; 99 99 $table.="</tr>"; 100 100 … … 106 106 foreach( $result["youtubes"] as $youtube ) 107 107 { 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> "; 109 109 } 110 110 111 111 $table.="<tr>"; 112 $table.="<td colspan=\"2\" ><small> {$result["position"]}. {$result["team"]}, čas: {$result["time"]}</small>".$video."</td>";112 $table.="<td colspan=\"2\" class='competition-result'><small> {$result["position"]}. {$result["team"]}, čas: {$result["time"]}</small>".$video."</td>"; 113 113 //,{$result["position"]}.místo"; 114 114 $table.="</tr>"; … … 126 126 } 127 127 128 //na tomhle to kasovi nejspis pada, pac ma stary PHP - http://codex.wordpress.org/Widgets_API129 /*130 add_action( 'widgets_init', function()131 {132 register_widget( 'nastrikej' );133 } );134 */135 136 //todo kvuli kasovi137 128 add_action('widgets_init', create_function('', 'return register_widget("nastrikej");')); 138 129 -
nastrikejcz/trunk/readme.txt
r927811 r973504 21 21 1. Place `<?php do_action('plugin_name_hook'); ?>` in your templates 22 22 23 24 == Example formating CSS == 25 /****************** start nastrikej ***************/ 26 table#nastrikej, table#nastrikej td { 27 border: 0px; 28 } 29 30 table#nastrikej th { 31 color: white; 32 background-color: black; 33 font-weight: bold; 34 padding: 3px; 35 } 36 /****************** end nastrikej ***************/ 37 38 23 39 == Frequently asked questions == 24 40 -
nastrikejcz/trunk/views/widget.php
r927811 r973504 3 3 echo $before_title . $title . $after_title; 4 4 if ( !empty( $table ) ) 5 echo $table . ' ' . $suffix;5 echo $table;
Note: See TracChangeset
for help on using the changeset viewer.