Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Add these lines to your *.PO file.

    #: view/matches-gymnastics.php:28 view/matches-irish-gaelic-football.php:28
    #: view/matches.php:28
    msgid "Choose Team"
    msgstr ""
    
    #: view/matches-gymnastics.php:24 view/matches-irish-gaelic-football.php:24
    #: view/matches.php:24
    #, php-format
    msgid "%d. Match Day"
    msgstr "%d. "

    Save, open in POEdit and translate.

    Check the languages folder. There are many *.mo and *.po language files there. If you want to translate some phrases for your site open the appropriate file using POedit, translate and save.
    You can find more about it on google.

    So checking the “home only” box in the widget options doesn’t work for you? Because i don’t really see where your problem lies… If you set it to ‘next game’ and ‘home only’ you shouldn’t have to update the widget manually every time.

    Edit: Now i think i get it, and i think you’ll have to use the widget. I don’t have that problem because i don’t have a fixed calendar for the whole season and I update the next match day after the current one is finished. So for me the shortcodes with ‘time=next’ option display only one game for each team.

    I don’t know about the Leaguemanager widget but you probably can do it with a normal Text widget and shortcodes. Try this:

    [matches league_id=League_ID time=next team=Team_ID]

    I’m displaying all upcoming matches using shortcodes and Text widget, like this:

    [matches league_id=1 template=sidebar time=next]
    [matches league_id=2 template=sidebar time=next]
    [matches league_id=3 template=sidebar time=next]

    The template I’m using displays the league’s name instead of the word “Match”. To do that just change line 49 in templates/matches.php from

    <th class='match'><?php _e( 'Match', 'leaguemanager' ) ?></th>

    to

    <th class='match'><?php echo($league->title) ?></th>

    That’s the only code you need to modify:

    #container { margin: 40px auto; width: 960px; background: url("img/content_bg.png"); }
    #home #content { width: 348px; padding: 16px; _padding: 15px; }
    .sidebar { font-size: 1.2em; line-height: 1.2em; float: left; width: 228px; padding: 16px; position: relative; display: inline; }
    #sidebar2 { float: left; font-size: 1.2em; line-height: 1.2em; padding: 16px; _padding: 10px; width: 288px; display: inline; }

    Actually leave #container as it is. It’s only to show that the the width of this theme is 960px.
    Adding the widths of #home #content, .sidebar and #sidebar2 you will see that it’s 348+228+288=864px, but there’s another 96px from padding so alltogether it’s 960. What you’ll add to 348, you have to substract from the other two. That will only modify the homepage, to make changes to post/page part of the theme modify the #content (without the #home). Remember that on single page there is no .sidebar, only #content and #sidebar2. Keep in mind that the backgound images will need some modifying too. Hope that helps.

Viewing 6 replies - 1 through 6 (of 6 total)