Changeset - bdeb2a71cf4c
[Not reviewed]
default
0 2 0
Ethan Zonca - 15 years ago 2011-03-18 01:02:52
ez@ethanzonca.com
Added facebook sharing
2 files changed with 8 insertions and 1 deletions:
0 comments (0 inline, 0 general)
inc/class.schedule.php
Show inline comments
 
@@ -295,7 +295,7 @@ class Schedule
 
      echo '  });
 
            </script>';
 

	
 
      echo '<div id="sharedialog" title="Share Schedule"><p>You can share your schedule with the URL below:</p><p>' . htmlentities($outputPage->gen_share_url($this->id_get())) . '</p></div>' . "\n";
 
      echo '<div id="sharedialog" title="Share Schedule"><p class="indent"><img class="noborder" src="http://facebook.com/favicon.ico" /> <a target="_blank" href="http://www.facebook.com/sharer.php?u=' . urlencode(htmlentities($outputPage->gen_share_url($this->id_get()))) .'&amp;t=My%20Schedule">Share on Facebook</a></p><p class="indent">You can also share your schedule with the URL below:<br /><em class="centeredtext smallurl">' . htmlentities($outputPage->gen_share_url($this->id_get())) . '</em></p></div>' . "\n";
 
      echo '<p><a href="input.php?s='.$this->id.'" class="button">Edit</a> <span id="printItems"><a href="#" class="button">Print</a></span> <span id="share"><a href="#" class="button">Share</a></span>  <a class="button" href="input.php">Home</a></p>'. "\n";
 
      echo '<p class="centeredtext">Having problems? <a href="feedback.php">Let us know</a>.</p>' . "\n";
 
      echo '<p class="centeredtext graytext"><em>Keyboard Shortcut: Left and right arrow keys switch between schedules</em></p>' . "\n";
styles/general.css
Show inline comments
 
@@ -370,3 +370,10 @@ a:hover {
 
.button.large { font-size: 125%; padding: 7px 12px; }
 
.button.large:hover { background-position: 0 -35px; }
 
.button.large:active { padding: 8px 12px 6px; background-position: 0 top; }
 

	
 
.smallurl {
 
  font-size: .9em;
 
}
 
.indent {
 
  margin-left: 1em;
 
}
0 comments (0 inline, 0 general)