Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #65 from epfl-idevelop/fix-update-wp-content-from-…
Browse files Browse the repository at this point in the history
…container-wp-volumes

Updated WP files from container-wp-volumes, and added HOWTO
  • Loading branch information
lvenries authored Nov 7, 2017
2 parents 6b40c01 + a42b914 commit 0ca41fa
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a:6:{s:11:"wp_postmeta";a:0:{}s:10:"wp_options";a:2:{i:0;a:4:{s:9:"option_id";s:3:"108";s:11:"option_name";s:21:"_transient_doing_cron";s:12:"option_value";s:33:"1499089485.9377639293670654296875";s:8:"autoload";s:3:"yes";}i:1;a:4:{s:9:"option_id";s:3:"139";s:11:"option_name";s:16:"addtoany_options";s:12:"option_value";s:1361:"a:32:{s:8:"position";s:3:"top";s:30:"display_in_posts_on_front_page";s:1:"1";s:33:"display_in_posts_on_archive_pages";s:1:"1";s:19:"display_in_excerpts";s:1:"1";s:16:"display_in_posts";s:1:"1";s:16:"display_in_pages";s:1:"1";s:22:"display_in_attachments";s:1:"1";s:15:"display_in_feed";s:1:"1";s:7:"onclick";s:2:"-1";s:9:"icon_size";s:2:"32";s:6:"button";s:4:"NONE";s:13:"button_custom";s:0:"";s:17:"button_show_count";s:2:"-1";s:6:"header";s:0:"";s:23:"additional_js_variables";s:0:"";s:14:"additional_css";s:0:"";s:12:"custom_icons";s:2:"-1";s:16:"custom_icons_url";s:1:"/";s:17:"custom_icons_type";s:3:"png";s:18:"custom_icons_width";s:0:"";s:19:"custom_icons_height";s:0:"";s:10:"inline_css";s:1:"1";s:5:"cache";s:2:"-1";s:11:"button_text";s:5:"Share";s:24:"special_facebook_options";a:1:{s:10:"show_count";s:2:"-1";}s:24:"special_linkedin_options";a:1:{s:10:"show_count";s:2:"-1";}s:15:"active_services";a:5:{i:0;s:8:"facebook";i:1;s:7:"twitter";i:2;s:8:"linkedin";i:3;s:11:"google_plus";i:4;s:5:"email";}s:29:"special_facebook_like_options";a:1:{s:4:"verb";s:4:"like";}s:29:"special_twitter_tweet_options";a:1:{s:10:"show_count";s:2:"-1";}s:30:"special_google_plusone_options";a:1:{s:10:"show_count";s:2:"-1";}s:33:"special_google_plus_share_options";a:1:{s:10:"show_count";s:2:"-1";}s:29:"special_pinterest_pin_options";a:1:{s:10:"show_count";s:2:"-1";}}";s:8:"autoload";s:3:"yes";}}s:8:"wp_terms";a:0:{}s:11:"wp_termmeta";a:0:{}s:16:"wp_term_taxonomy";a:0:{}s:21:"wp_term_relationships";a:0:{}}
a:6:{s:11:"wp_postmeta";a:0:{}s:10:"wp_options";a:2:{i:0;a:4:{s:9:"option_id";s:3:"111";s:11:"option_name";s:21:"_transient_doing_cron";s:12:"option_value";s:33:"1499764738.3464829921722412109375";s:8:"autoload";s:3:"yes";}i:1;a:4:{s:9:"option_id";s:3:"150";s:11:"option_name";s:16:"addtoany_options";s:12:"option_value";s:1371:"a:32:{s:8:"position";s:6:"bottom";s:30:"display_in_posts_on_front_page";s:2:"-1";s:33:"display_in_posts_on_archive_pages";s:2:"-1";s:19:"display_in_excerpts";s:2:"-1";s:16:"display_in_posts";s:2:"-1";s:16:"display_in_pages";s:2:"-1";s:22:"display_in_attachments";s:2:"-1";s:15:"display_in_feed";s:2:"-1";s:7:"onclick";s:2:"-1";s:9:"icon_size";s:2:"32";s:6:"button";s:4:"NONE";s:13:"button_custom";s:0:"";s:17:"button_show_count";s:2:"-1";s:6:"header";s:0:"";s:23:"additional_js_variables";s:0:"";s:14:"additional_css";s:0:"";s:12:"custom_icons";s:2:"-1";s:16:"custom_icons_url";s:1:"/";s:17:"custom_icons_type";s:3:"png";s:18:"custom_icons_width";s:0:"";s:19:"custom_icons_height";s:0:"";s:10:"inline_css";s:1:"1";s:5:"cache";s:2:"-1";s:11:"button_text";s:5:"Share";s:24:"special_facebook_options";a:1:{s:10:"show_count";s:2:"-1";}s:24:"special_linkedin_options";a:1:{s:10:"show_count";s:2:"-1";}s:15:"active_services";a:5:{i:0;s:8:"facebook";i:1;s:7:"twitter";i:2;s:8:"linkedin";i:3;s:11:"google_plus";i:4;s:5:"email";}s:29:"special_facebook_like_options";a:1:{s:4:"verb";s:4:"like";}s:29:"special_twitter_tweet_options";a:1:{s:10:"show_count";s:2:"-1";}s:30:"special_google_plusone_options";a:1:{s:10:"show_count";s:2:"-1";}s:33:"special_google_plus_share_options";a:1:{s:10:"show_count";s:2:"-1";}s:29:"special_pinterest_pin_options";a:1:{s:10:"show_count";s:2:"-1";}}";s:8:"autoload";s:3:"yes";}}s:8:"wp_terms";a:0:{}s:11:"wp_termmeta";a:0:{}s:16:"wp_term_taxonomy";a:0:{}s:21:"wp_term_relationships";a:0:{}}
2 changes: 1 addition & 1 deletion data/wp/wp-content/themes/epfl/assets/css/theme.min.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions data/wp/wp-content/themes/epfl/assets/js/modernizr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 37 additions & 18 deletions data/wp/wp-content/themes/epfl/assets/scss/epfl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
#header2013 #nav-menus a.main-link:after{
content:'\00A0'; height:6px; width:6px;
background:url(../img/sprites-arrow.png) no-repeat;
//background:url(../img/sprites-arrow.png) no-repeat;
position:absolute; bottom:0; right:2px;
}
#header2013 .navigation-panel {
Expand Down Expand Up @@ -74,7 +74,8 @@
border-color: #000;
border-top: 1px solid;
border-bottom: 1px solid;
background: #fff url(../img/sprites.png) no-repeat 0 0;
background: #fff;
//background: #fff url(../img/sprites.png) no-repeat 0 0;
padding-left: 0;
line-height: 23px;
font-size: 13px;
Expand All @@ -83,7 +84,7 @@
position: relative;
}
#header2013 .search-button{
background-image: url(../img/magnifier.png);
//background-image: url(../img/magnifier.png);
width: 25px; height: 25px;
cursor: pointer;
vertical-align: bottom;
Expand All @@ -94,11 +95,12 @@
#header2013 .selected-field {
display: block;
padding-left: 8px;
background: url(../img/sprites.png) no-repeat -261px 0;
//background: url(../img/sprites.png) no-repeat -261px 0;
}
#header2013 .selected-field:hover {
background: #000 url(../img/sprites.png) no-repeat -261px -25px;
color: #fff;
background: #000;
//background: #000 url(../img/sprites.png) no-repeat -261px -25px;
color: #fff;
}

#header2013 .search-filter .menu {
Expand Down Expand Up @@ -133,10 +135,12 @@
}
#header2013 .ac-more{float:right;
font: italic bold 12px/16px Georgia,'Times New Roman',Times,serif;
background: url("../img/underline.gif") repeat-x 0 14px;
padding: 0; margin-right: 4px;
//background: url("../img/underline.gif") repeat-x 0 14px;
padding: 0; margin-right: 4px;
}
#header2013 .ac-more:hover {
//background-image: url("../img/underline-hover.png");
}
#header2013 .ac-more:hover { background-image: url("../img/underline-hover.png"); }

/**************************** Header definition *******************************/
#header{ margin-left: auto; margin-right: auto; width: 980px; padding: 0 8px; background-color: #fff;}
Expand All @@ -148,8 +152,14 @@
.short{ background-color: #474e52; /* darker gray */}

#nav-logo {
float: left; height: 73px; width: 160px; position: relative; margin: 0 4px 0 0;
background: url(../img/epfl.png) no-repeat 0 7px; border-bottom: 1px solid #474e52; /* darker gray */ }
float: left;
height: 73px;
width: 160px;
position: relative;
margin: 0 4px 0 0;
//background: url(../img/epfl.png) no-repeat 0 7px;
border-bottom: 1px solid #474e52; /* darker gray */
}
#nav-logo a{ display: block; width: 160px; height: 73px;}
#main-menus { list-style: none; padding: 0; margin: 0;}
#main-menus li.menu { float: left; height: 74px; width: 160px; position: relative; cursor: pointer; }
Expand All @@ -158,19 +168,27 @@
#nav-menus{ margin-right: 4px; padding: 0; float: left;}
#nav-menus li.menu:hover { background-color: #fff; color: #000;}
#nav-menus a.main-link {
color: #fff; background: url(../img/arrow-menu.gif) no-repeat bottom right;
color: #fff;
//background: url(../img/arrow-menu.gif) no-repeat bottom right;
position: absolute;
bottom: 8px; left: 8px; padding-right: 12px;
font-family: Impact, "Arial Black","DejaVu Sans", Arial, Helvetica , sans-serif;
font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase;
line-height:18px; font-weight:normal;}
#nav-menus a.main-link acronym { color: #fff; }
#nav-menus li.menu:hover a.main-link { background-image: url(../img/arrow-menu-on.gif); color: #000;}
#nav-menus li.menu:hover a.main-link {
//background-image: url(../img/arrow-menu-on.gif);
color: #000;
}
#nav-menus li.menu:hover a.main-link acronym{ color: #000;}

#nav-menus a.main-link span { display: block; margin-bottom: 4px; font-size: 18px; }
#nav-menus a.main-link:hover{ background-image: url(../img/arrow-menu-on.gif);}
#nav-menus a.main-link:active{ background-image: url(../img/arrow-menu-on.gif);}
#nav-menus a.main-link:hover {
//background-image: url(../img/arrow-menu-on.gif);
}
#nav-menus a.main-link:active {
//background-image: url(../img/arrow-menu-on.gif);
}
#public-menu-link { margin-right: 4px; font-weight: normal;}
#school-menu-link { margin-right: 4px; font-weight: normal;}
#brief-menu-link { font-weight: normal}
Expand All @@ -197,8 +215,9 @@
#searchform {margin: 0;}
#searchform label:hover {cursor: pointer;}
#searchform label.current{
font-weight:bold;
background:url(../img/wheretosearch.gif) no-repeat top left;}
font-weight:bold;
//background:url(../img/wheretosearch.gif) no-repeat top left;
}
#searchform input.search{
width: 277px;
height: 22px;
Expand All @@ -210,7 +229,7 @@
font-family: Arial, Helvetica, sans-serif;
}
#searchform button{
background: url(../img/search.png) no-repeat top left;
//background: url(../img/search.png) no-repeat top left;
width: 22px; height: 22px;
cursor: pointer;
border: none;
Expand Down
3 changes: 3 additions & 0 deletions data/wp/wp-content/themes/epfl/assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,15 @@ a.a2a_button_{
}

#header2013 {
background: #fff;
margin-left: -8px;
margin-right: -8px;
padding: 0 8px;
position: relative;
width: 100%;
z-index: 9999;

@include clearfix;
}

#header2013 #nav-logo a {
Expand Down
4 changes: 4 additions & 0 deletions data/wp/wp-content/themes/epfl/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">

<script type="text/javascript" src="//www.epfl.ch/js/jquery-epfl.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="//www.epfl.ch/js/globalnav.js"></script>

<?php readfile("http://www.epfl.ch/templates/fragments/header.sig.html")?>

<?php wp_head(); ?>
Expand Down
7 changes: 6 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,24 @@ Table of releases

<!-- /TOC -->


## [0.2.9] - 2017-11-07
**[PR #66](https://github.com/epfl-idevelop/jahia2wp/pull/66)**
**[PR #65](https://github.com/epfl-idevelop/jahia2wp/pull/65)**

**High level:**

1. Installation et configuration du plugin `MainWP-Child` avec clef "secrète"
1. Added procedure in HOWTOs to explain how to update WP php files from historical repository

**Low level:**

1. Extraction de la configuration du plugin `MainWP-Child` puis modification du nécessaire pour l'ajouter à la liste des plugins à installer.
1. La clef secrète est actuellement mise dans la configuration générique du plugin.
1. On ne créé plus d'instance de `WPSite` dans `jahia2wp.py`. C'est désormais fait dans `WPPluginConfigExtractor` (déjà demandé dans PR64 mais refait aussi ici pour que ça soit propre également).

1. Ajout des scripts js pour le bon fonctionnement du menu déroulant du header EPFL: epfl-idevelop/jahiap#126
1. Le fichier "modernizr.custom.js" est renommé "modernizr.js": epfl-idevelop/jahiap#279
1. J'ai enlevé l'appel de toutes les images de fond inutiles dans la feuille de style epfl.scss (les images sont remplacées par des pictos avec FontAwesome): epfl-idevelop/jahiap#279

## [0.2.8] - 2017-11-06
**[PR #55](https://github.com/epfl-idevelop/jahia2wp/pull/55)**
Expand Down
41 changes: 41 additions & 0 deletions docs/HOWTOs/UPDATE_THEME.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# HOWTO update the WP files from container-wp-volumes

The theme and our supported plugins are located in tow places:

1. historically, in [container-wp-volumes](https://github.com/epfl-idevelop/container-wp-volumes). This repository is used by [jahiap](https://github.com/epfl-idevelop/jahiap), the historical repository of the project. That is the place where Aline pushes her updates
2. in this repository/[data](https://github.com/epfl-idevelop/jahia2wp/tree/master/data). This is the source of the code for the current phase of the project

As for now, the current repository must be manually updated.

## Pre-requisites

You have cloned the two repositories with your favorite method, i.e SSH or HTTPS.

We will make the assumptions that you have your repos in the following paths:

container-wp-volumes $

jahia2wp $

## Procedure

1. Update your repos

container-wp-volumes $ git pull

jahia2wp $ git checkout fix-update-wp-content-from-container-wp-volumes
jahia2wp $ git pull

2. RSync

jahia2wp $ rsync -av ../container-wp-volumes/wp-content/ data/wp/wp-content/

3. Update changelog if necessary

4. Review, commit and push

jahia2wp $ git status
jahia2wp $ git commit -am "updated wp-content with content of last sprint"
jahia2wp $ git push

5. Create PR on [github](https://github.com/epfl-idevelop/jahia2wp/branches). You probably can use your CHANGELOG description as the description of your PR

0 comments on commit 0ca41fa

Please sign in to comment.