Help

Adding news items

Generally for news items you should do the following:

  1. Create the image 235×140
  2. Go to posts and add new post
  3. Insert the text
  4. Select the categories  HpNews + Technion Reach or 1 the 2 other sub
  5. At the bottom right click on “Set featured image” and upload and select the image you edited before.
  6. Update and the news item will display in the news page.

If you want the news item to display on the home page:

  1. Do all the above
  2. Also select the category “HPnews1”
  3. In the news item text (in visual mode) select the place you want the text to be cut (in the home page) and click alt+shift+t
  4. Update
  5. Filter the posts for “HPnews1” only and remove the link for all news items to it except the 2 you want at home page

———————————————————————

Video on the right column

In order to add a video to the right column of a page like “Technion – At a Glance”:
1. go to youtube and copy the embed code
2. Go to edit the page, switch to “text” and add the code below to the bottom of it.
REMEBER – replace the ” (double quote) character that comes with the code with ‘ (single quote) inside the code like you see below. Note that the code also changes the title in the blue bar (Technion – At a Glance in this case).

<script type="text/javascript">// <![CDATA[
jQuery(document).ready(function(){
        jQuery('.video212Ttl').text('Technion - At a Glance');
        jQuery('.the-player').append("<iframe width='212' height='119' src='//www.youtube.com/embed/ApKFEfneNN8?list=PL5C181A8A6A1CB2B4' frameborder='0' allowfullscreen></iframe>");
    });
// ]]></script>

This code will insert a youtube video to each page that has the widget “aboutRight”

Note: in the pages that contain tabs, like http://int.technion.ac.il/academic-programs/undergraduate-3/bsc-in-civil-and-environmental-engineering/

you paste the code into the first tab text box and not into the main text box of the page content.

———————————————————————

Remove the blue bar of the video title in case you do not have a video.

<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('.video212Ttl').css('display','none');
});
</script>

Note: in the pages that contain tabs, like http://int.technion.ac.il/academic-programs/undergraduate-3/bsc-in-civil-and-environmental-engineering/

you paste the code into the first tab text box and not into the main text box of the page content.

———————————————————————

Academic programs

1. for tabs page use AcProgTabsPage template (4 tabs) OR AcProg_3TabsPage template (3 tabs)
2. insert Program Description, program Admissions, Orientation and Preparation and Courses and Syllabus in the custom fields below the main content text box
3. Insert tabs captions in the custom fields below (this is the text on the tab’s ear)
4. after update the first time and creatin the page direct the links in the following place to the new page:
a. For the list programs in the Academic Programs page (at right) Go to “Appearance” – “Widgets” and open “List of programs” widget at the right side of the admin page and change the link to the page
b. For the list programs at the bottom links (the fotter links) go to “Appearance” – “Menus” – “footerSemesterSummerPrograms” or “footerUndergraduate” and change the link of the relevant menu item
c For the main menu go to “PBK Mega Menu”, click on “Academic Programs” and change the link of the relevant menu item

To add a video to the right column in about pages put this code at the bottom of the text (in “text mode”)

Change only the code after the http://www.youtube.com/embed/

<script type="text/javascript">
    jQuery(document).ready(function() {
    <iframe width='212' height='119' src='http://www.youtube.com/embed/gQYiR1LhJs8' frameborder='0' allowfullscreen></iframe>
    });
</script>

To add content to the tabs in “Academic Programs” tabs http://tiramtest.co.cc/technion/?page_id=363

You have to write 4 posts for each program:
1. Program Description
2. Courses and Syllabus
3. Admissions And Costs
4. Orientation & Preparation

For each post write down the post ID
Send to Yehuda the list of ID’s with a note for each id to what program and what tab it belongs

Example:
“BSc in Civil and Environmental Engineering” program
id=407 Program Description
id=414 Courses and Syllabus
id=416 Admissions And Costs
id=421 Orientation & Preparation

In the file “Academic_ProgramsScripts.js” Yehuda will set the code

Code added to events page for login as editor http://tiramtest.co.cc/technion/?page_id=215

<?php         
$paged = $wp_query->get( 'page' );
if ( is_page( 215 )  ) 
{
    if ( !is_user_logged_in() ) { ?>
    <a href="<?php echo wp_login_url( get_admin_url().'admin.php?page=my-calendar' ); ?>">Log in to add events</a>
    <?php } else { ?>
    <a href="<?php echo get_admin_url().'admin.php?page=my-calendar'; ?>Add an event</a>
     <?php   }
} 
else 
{

}
?>