Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

PHP goodies for kicker/footer?


  #1  
Old Oct 12, 2009, 11:36 AM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
I just noticed that, at least in ATA 3.4.4, you can add PHP in the Edit Post/Pages area. Yes! I've never done that, and I'm trying to figure out a cool way to use this. Any ideas, anybody?

For instance, I think you could use PHP to make a certain plugin run at the bottom of just a certain page, or category. I'm sure there are great uses for this. Care to brainstorm? How would you use this wonderful idea?
  #2  
Old Oct 13, 2009, 07:01 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Here is one idea, I didn't like the 'Add to Any' plugin icons at the top of my posts, I wanted them part of the post's footer

1) I took the 'Add to Any' plugin code:
HTML Code:
<?php echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); echo '</ul>'; ?>
2) I added a '<br> at the beginning.
3) I added it to the end of the FOOTER of the Posts (ATO->Edit POST/PAGE INFO ITEMS->FOOTER: Homepage - also did it for the 'FOOTER: Multi Post Pages' and 'FOOTER: Single Post Pages') so the FOOTERS look like this
HTML Code:
%date('F jS, Y')% | %tags-linked('Tags: ', ', ', ' | ')% Category: %categories-linked(', ')% | %comments('Leave a comment', 'One comment', '% comments', 'Comments are closed')% %edit(' | ', 'Edit this post', '')% 
<br><?php echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); echo '</ul>'; ?>
and now I have the icons as part of the post footer.

You can see how it looks at Call of the Muse
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Oct 13, 2009 at 03:19 PM.
  #3  
Old Oct 13, 2009, 09:37 AM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Looks good. I've done that too, just using the Share/save plugin's config info. You get to say where you want it to show up, so that's easy!

I guess you could use it to display an image, right?
  #4  
Old Oct 13, 2009, 01:31 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
sure, since you can put in any PHP in you could do a simple <image..> or if you only wanted it on the frontpage
'<?php if (is_front_page() { echo '<image...>';} ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Oct 13, 2009, 04:21 PM
BradBrown's Avatar
BradBrown
 
54 posts · Mar 2009
One of my ATA sites has a multi-author blog. I use the following snippet of code in the kicker to display the author's avatar:

PHP Code:
<?php echo get_avatarget_the_author_email(), $size '48'$default '' ); ?>
I have the CSS set up so the avatar displays to the left of the headline and byline, instead of above.
  #6  
Old Oct 14, 2009, 08:13 AM
joan
 
50 posts · Sep 2009
Brisbane, Qld, Aust
I have used this in the byline with :

<?php if ( in_category('490') ) { echo '<div id="divBod"><img src = "http://travelhorizonstyle.com.au/wp-content/uploads/5percent.png" /></div>';} ?>

With 'CSS Inserts' :
#divBod {float: right; width: 20%; z-index:1;}

However it in IE8 (not FireFox & Chrome) it truncates the excerpts box on the right side. This is really a css styling issue, but just in case anyone has any suggestions.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
php in footer.php - links to just show up on homepage chris Atahualpa 3 Wordpress theme 6 May 9, 2010 12:50 PM
Kicker Text newzgeek Post-Kicker, -Byline & -Footer 1 Sep 15, 2009 04:32 PM
Kicker Box Ddabrai Post-Kicker, -Byline & -Footer 1 Sep 15, 2009 05:42 AM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 02:16 PM
More customization in the kicker? tkcrosley Post-Kicker, -Byline & -Footer 2 Jan 30, 2009 01:46 PM


All times are GMT -6. The time now is 03:25 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.