Site5

Menu

Support Forums

Two footer.php files for one multisite install?

Home Forums SimpleCorp Two footer.php files for one multisite install?

Tagged: 

This topic contains 45 replies, has 8 voices, and was last updated by  leilei3915 5 months, 3 weeks ago.

Viewing 15 posts - 16 through 30 (of 46 total)
  • Author
  • #10891

    adcronkright
    Participant

    “it should be: & copy ; (without whitespaces)”

    Not sure what that means. Does it mean that I should change:

    <p>© <?php _e("All Rights Reserved", "site5framework"); ?> <?php bloginfo('name'); ?></p>

    To this:

    <p>& copy;<?php _e("All Rights Reserved", "site5framework"); ?> <?php bloginfo('name'); ?></p>

    ?

    Shipyard Theme eh? Rock an’ Roll! 😉

    #10893

    Guido
    Participant

    Yes indeed (without the whitespace between & and copy).

    I guess you should remove this line to the left box (looks better):
    Cooperative Web Hosting by Gaia Host Collective

    #10894

    adcronkright
    Participant

    Hey man. Replaced the custom copyright code with the default, and just adjusted the background colour and put in the border-top. It got ride of the massive amount of padding on the top, but I’m still not seeing things line up the way they were before (aka everything on the right hand side, all text together, etc.)

    #10898

    adcronkright
    Participant

    Ok, so I’ve added a .block-left style at the end of my main-css.css, to get it styled a bit more like it was before:

    .block-left {
    	position: absolute; 
    	bottom: 0px; 
    	right: 160px; 
    	text-align: right;
    }

    Am I going about that right?

    Also, I would prefer to reduce the spaces between the credits, and have the contexts of .block-left look exactly like this (with text-aligned to the right as I’ve already coded):

    © All Rights Reserved
    Democracy In Practice

    Created by Site5 WordPress Themes
    Graphic art by Julian Morales
    Cooperative Web Hosting by Gaia Host Collective

    Can I do that with breaks <br>? Seems like everything in there is quite conditional. How could I do this?

    We’re getting close Guido! 🙂
    .

    #10899

    Guido
    Participant

    Hi,

    The space between all lines is caused by the <p> I’ve added.
    You can remove all <p> and the </p> and add <br> (= pagebreak) after first and second line.

    So you don’t want a leftblock anymore?

    Guido

    #10900

    adcronkright
    Participant

    Sorry man, I must have miscommunicated something – I wanted it just the way it is right now. However, later-on, I might decide to put in our address and contact info on the far left side of the copyright area. If I wanted to do that, would I put the address in the leftblock and create a middleblock for the credits with Theme Options > Custom Css #footer .block-middle {float:none;}? Would I need to add anything else? Where did you create the div classes block-right and block-left? Cause I don’t find them in main-css.css

    #10902

    adcronkright
    Participant

    Alright – closing in on my final questions with all this! As far as the translationfile goes, I know nothing at all about this thing, but I looked it over, arbitrarily picked a spot between #: header.php and #: home.php and I think I’m suppose to put something like this (?):

    #: footer.php:Line#
    #@ site5framework
    msgid "All Rights Reserved"
    msgstr ""
    
    #: footer.php:Line#
    #@ site5framework
    msgid "Created by "
    msgstr ""
    
    #: footer.php:Line#
    #@ site5framework
    msgid "Graphic art by Julian Morales"
    msgstr ""
    
    #: footer.php:Line#
    #@ site5framework
    msgid "Cooperative Web Hosting by "
    msgstr ""

    My Ubuntu Text Editor doesn’t show the line numbers of my code in .php or .css files. I’m installing Vim, I take it I just plug-in the Line numbers as I see them in Vim?

    Does the rest look right? And I take it as I add in translations in localization the msgstr "" will change to include the translation (ex. msgstr "Arte Gráfico por Julian Morales")? Do I have a handle on this translationfile thing?

    Lastly, if I get Teamlab to send me a Spanish version of their icon, can I have that localized onto the spanish side of the site (e.g. one image link for the english side and a different image link for the spanish side)?

    Incredibly helpful Guido, as always. In the process of signing up to wordpress.org so we can get that Shipyard theme rated (already downloaded it)! 😉

    Adam

    #10904

    Guido
    Participant

    The 2 blocks are mine, (very little) styling is located in Theme options > Custom CSS.

    So should I give you the code to right align everyting like it is on your site? Or are you fine with it now?

    Translation: NO, do not edit the po files, you can manage everything with the plugin, so in your WP Dashboard.
    So with plugin CodeStyling Localization. In your Dashboard go to Extra > Localization and add the language, index the theme, edit (trsanslate) the text lines.

    Guido

    #10906

    adcronkright
    Participant

    So I guess that means that everything that I have now would be in block-right, and coded to look as it is now, and block-left would be available for me to put in our address and contact info later on? Yea thad be great to have that code!

    Ok, won’t touch the .po file. But if I’m not editing it, (seriously beginner question, I know), how do I re-index it?

    I’ma jump into the localization plugin and make sure I see how it works…

    Adam

    #10908

    Guido
    Participant

    You can also use 3 blocks: on rightside the image, the copyright info in centered block, on leftside an empty block.

    I don’t want to add too much code here, you know. That’s why I’m asking ;-).

    Guido

    #10909

    adcronkright
    Participant

    Yea, 3 blocks is what I’m looking for! Thanks for asking ;).

    #10910

    adcronkright
    Participant

    Figured out “re-index” just means “rescan” in the localization menu. Cool beans!

    #10913

    Guido
    Participant

    Yeah, I’m using plugin in my own language..

    Having serious issue with the 3 blocks in footer, the image in right block is aligned to bottom, in stead of to top.

    Guido

    #10914

    adcronkright
    Participant

    Hmmm… anything I can do to help? 😉

    While you are writing that code, can the Teamlab image be made <?php _e(" src="/www/wp-content/themes/simplecorp1/library/images/Teamlab2.png", "site5framework"); ?> so I can put in the link to a spanish version in the localization page? Is this possible? How could I have an english Teamlab icon on the English page and a Spanish one on the Spanish page?

    Once we get these… this footer should be pretty well set my friend!

    Adam

    #10917

    Guido
    Participant

    Hi,

    No, that’s not possible. Because it’s not a textline but an URL.

    This is how you add 3 boxes, found it after a while:

    				<!-- begin #copyright -->
    				<div id="copyrights">
    					<div class="container clearfix">
    
    						<div class="block-left">
    						ROOM FOR ADDRESS 
    						</div>
    
    						<div class="block-right">
    							<a href="http://teamlab.com?campaign=nonprofit" target="_blank" ><img alt="<?php _e("Coordinate Projects Around the World", "site5framework"); ?>" title="<?php _e("Coordinate Projects Around the World", "site5framework"); ?> " src="src="/www/wp-content/themes/simplecorp1/library/images/Teamlab2.png"/></a>
    						</div>
    
    						<div class="block-center">
    							&copy; <?php _e("All Rights Reserved", "site5framework"); ?> <?php bloginfo('name'); ?><br>
    							<?php _e("Created by ", "site5framework"); ?> <a href="http://www.s5themes.com/" target="_blank" title="Site5 WordPress Themes">Site5 WordPress Themes</a><br> 
    							<?php _e("Graphic art by Julian Morales", "site5framework"); ?><br>
    							<?php _e("Cooperative Web Hosting by ", "site5framework"); ?> <img src="/www/wp-content/themes/simplecorp1/library/images/gaiahost_shell_gray16x16.gif"/> <a href="http://www.gaiahost.coop" target="_blank"  title="Gaia Host Collective">Gaia Host Collective</a>
    						</div>
    
    					</div>
    				</div>
    				<!-- end #copyright -->

    Theme Options > Custom CSS:

    #footer .block-right {float:right; text-align:right;}
    #footer .block-center {margin:0 auto 0; width: 35%; text-align:right; display:block;}
    #footer .block-left {float:left;}

    Don’t forget to add proper coyright symbol again. And I added textline so you can see where to add future address.

    Guido

Viewing 15 posts - 16 through 30 (of 46 total)

You must be logged in to reply to this topic.