first import
This commit is contained in:
512
sites/default/default.settings.php
Normal file
512
sites/default/default.settings.php
Normal file
@@ -0,0 +1,512 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Drupal site-specific configuration file.
|
||||
*
|
||||
* IMPORTANT NOTE:
|
||||
* This file may have been set to read-only by the Drupal installation
|
||||
* program. If you make changes to this file, be sure to protect it again
|
||||
* after making your modifications. Failure to remove write permissions
|
||||
* to this file is a security risk.
|
||||
*
|
||||
* The configuration file to be loaded is based upon the rules below.
|
||||
*
|
||||
* The configuration directory will be discovered by stripping the
|
||||
* website's hostname from left to right and pathname from right to
|
||||
* left. The first configuration file found will be used and any
|
||||
* others will be ignored. If no other configuration file is found
|
||||
* then the default configuration file at 'sites/default' will be used.
|
||||
*
|
||||
* For example, for a fictitious site installed at
|
||||
* http://www.drupal.org/mysite/test/, the 'settings.php'
|
||||
* is searched in the following directories:
|
||||
*
|
||||
* - sites/www.drupal.org.mysite.test
|
||||
* - sites/drupal.org.mysite.test
|
||||
* - sites/org.mysite.test
|
||||
*
|
||||
* - sites/www.drupal.org.mysite
|
||||
* - sites/drupal.org.mysite
|
||||
* - sites/org.mysite
|
||||
*
|
||||
* - sites/www.drupal.org
|
||||
* - sites/drupal.org
|
||||
* - sites/org
|
||||
*
|
||||
* - sites/default
|
||||
*
|
||||
* If you are installing on a non-standard port number, prefix the
|
||||
* hostname with that number. For example,
|
||||
* http://www.drupal.org:8080/mysite/test/ could be loaded from
|
||||
* sites/8080.www.drupal.org.mysite.test/.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Database settings:
|
||||
*
|
||||
* The $databases array specifies the database connection or
|
||||
* connections that Drupal may use. Drupal is able to connect
|
||||
* to multiple databases, including multiple types of databases,
|
||||
* during the same request.
|
||||
*
|
||||
* Each database connection is specified as an array of settings,
|
||||
* similar to the following:
|
||||
* @code
|
||||
* array(
|
||||
* 'driver' => 'mysql',
|
||||
* 'database' => 'databasename',
|
||||
* 'username' => 'username',
|
||||
* 'password' => 'password',
|
||||
* 'host' => 'localhost',
|
||||
* 'port' => 3306,
|
||||
* 'prefix' => 'myprefix_',
|
||||
* 'collation' => 'utf8_general_ci',
|
||||
* );
|
||||
* @endcode
|
||||
*
|
||||
* The "driver" property indicates what Drupal database driver the
|
||||
* connection should use. This is usually the same as the name of the
|
||||
* database type, such as mysql or sqlite, but not always. The other
|
||||
* properties will vary depending on the driver. For SQLite, you must
|
||||
* specify a database file name in a directory that is writable by the
|
||||
* webserver. For most other drivers, you must specify a
|
||||
* username, password, host, and database name.
|
||||
*
|
||||
* Some database engines support transactions. In order to enable
|
||||
* transaction support for a given database, set the 'transactions' key
|
||||
* to TRUE. To disable it, set it to FALSE. Note that the default value
|
||||
* varies by driver. For MySQL, the default is FALSE since MyISAM tables
|
||||
* do not support transactions.
|
||||
*
|
||||
* For each database, you may optionally specify multiple "target" databases.
|
||||
* A target database allows Drupal to try to send certain queries to a
|
||||
* different database if it can but fall back to the default connection if not.
|
||||
* That is useful for master/slave replication, as Drupal may try to connect
|
||||
* to a slave server when appropriate and if one is not available will simply
|
||||
* fall back to the single master server.
|
||||
*
|
||||
* The general format for the $databases array is as follows:
|
||||
* @code
|
||||
* $databases['default']['default'] = $info_array;
|
||||
* $databases['default']['slave'][] = $info_array;
|
||||
* $databases['default']['slave'][] = $info_array;
|
||||
* $databases['extra']['default'] = $info_array;
|
||||
* @endcode
|
||||
*
|
||||
* In the above example, $info_array is an array of settings described above.
|
||||
* The first line sets a "default" database that has one master database
|
||||
* (the second level default). The second and third lines create an array
|
||||
* of potential slave databases. Drupal will select one at random for a given
|
||||
* request as needed. The fourth line creates a new database with a name of
|
||||
* "extra".
|
||||
*
|
||||
* For a single database configuration, the following is sufficient:
|
||||
* @code
|
||||
* $databases['default']['default'] = array(
|
||||
* 'driver' => 'mysql',
|
||||
* 'database' => 'databasename',
|
||||
* 'username' => 'username',
|
||||
* 'password' => 'password',
|
||||
* 'host' => 'localhost',
|
||||
* 'prefix' => 'main_',
|
||||
* 'collation' => 'utf8_general_ci',
|
||||
* );
|
||||
* @endcode
|
||||
*
|
||||
* You can optionally set prefixes for some or all database table names
|
||||
* by using the 'prefix' setting. If a prefix is specified, the table
|
||||
* name will be prepended with its value. Be sure to use valid database
|
||||
* characters only, usually alphanumeric and underscore. If no prefixes
|
||||
* are desired, leave it as an empty string ''.
|
||||
*
|
||||
* To have all database names prefixed, set 'prefix' as a string:
|
||||
* @code
|
||||
* 'prefix' => 'main_',
|
||||
* @endcode
|
||||
* To provide prefixes for specific tables, set 'prefix' as an array.
|
||||
* The array's keys are the table names and the values are the prefixes.
|
||||
* The 'default' element is mandatory and holds the prefix for any tables
|
||||
* not specified elsewhere in the array. Example:
|
||||
* @code
|
||||
* 'prefix' => array(
|
||||
* 'default' => 'main_',
|
||||
* 'users' => 'shared_',
|
||||
* 'sessions' => 'shared_',
|
||||
* 'role' => 'shared_',
|
||||
* 'authmap' => 'shared_',
|
||||
* ),
|
||||
* @endcode
|
||||
* You can also use a reference to a schema/database as a prefix. This maybe
|
||||
* useful if your Drupal installation exists in a schema that is not the default
|
||||
* or you want to access several databases from the same code base at the same
|
||||
* time.
|
||||
* Example:
|
||||
* @code
|
||||
* 'prefix' => array(
|
||||
* 'default' => 'main.',
|
||||
* 'users' => 'shared.',
|
||||
* 'sessions' => 'shared.',
|
||||
* 'role' => 'shared.',
|
||||
* 'authmap' => 'shared.',
|
||||
* );
|
||||
* @endcode
|
||||
* NOTE: MySQL and SQLite's definition of a schema is a database.
|
||||
*
|
||||
* Advanced users can add or override initial commands to execute when
|
||||
* connecting to the database server, as well as PDO connection settings. For
|
||||
* example, to enable MySQL SELECT queries to exceed the max_join_size system
|
||||
* variable, and to reduce the database connection timeout to 5 seconds:
|
||||
*
|
||||
* @code
|
||||
* $databases['default']['default'] = array(
|
||||
* 'init_commands' => array(
|
||||
* 'big_selects' => 'SET SQL_BIG_SELECTS=1',
|
||||
* ),
|
||||
* 'pdo' => array(
|
||||
* PDO::ATTR_TIMEOUT => 5,
|
||||
* ),
|
||||
* );
|
||||
* @endcode
|
||||
*
|
||||
* WARNING: These defaults are designed for database portability. Changing them
|
||||
* may cause unexpected behavior, including potential data loss.
|
||||
*
|
||||
* @see DatabaseConnection_mysql::__construct
|
||||
* @see DatabaseConnection_pgsql::__construct
|
||||
* @see DatabaseConnection_sqlite::__construct
|
||||
*
|
||||
* Database configuration format:
|
||||
* @code
|
||||
* $databases['default']['default'] = array(
|
||||
* 'driver' => 'mysql',
|
||||
* 'database' => 'databasename',
|
||||
* 'username' => 'username',
|
||||
* 'password' => 'password',
|
||||
* 'host' => 'localhost',
|
||||
* 'prefix' => '',
|
||||
* );
|
||||
* $databases['default']['default'] = array(
|
||||
* 'driver' => 'pgsql',
|
||||
* 'database' => 'databasename',
|
||||
* 'username' => 'username',
|
||||
* 'password' => 'password',
|
||||
* 'host' => 'localhost',
|
||||
* 'prefix' => '',
|
||||
* );
|
||||
* $databases['default']['default'] = array(
|
||||
* 'driver' => 'sqlite',
|
||||
* 'database' => '/path/to/databasefilename',
|
||||
* );
|
||||
* @endcode
|
||||
*/
|
||||
$databases = array();
|
||||
|
||||
/**
|
||||
* Access control for update.php script.
|
||||
*
|
||||
* If you are updating your Drupal installation using the update.php script but
|
||||
* are not logged in using either an account with the "Administer software
|
||||
* updates" permission or the site maintenance account (the account that was
|
||||
* created during installation), you will need to modify the access check
|
||||
* statement below. Change the FALSE to a TRUE to disable the access check.
|
||||
* After finishing the upgrade, be sure to open this file again and change the
|
||||
* TRUE back to a FALSE!
|
||||
*/
|
||||
$update_free_access = FALSE;
|
||||
|
||||
/**
|
||||
* Salt for one-time login links and cancel links, form tokens, etc.
|
||||
*
|
||||
* This variable will be set to a random value by the installer. All one-time
|
||||
* login links will be invalidated if the value is changed. Note that if your
|
||||
* site is deployed on a cluster of web servers, you must ensure that this
|
||||
* variable has the same value on each server. If this variable is empty, a hash
|
||||
* of the serialized database credentials will be used as a fallback salt.
|
||||
*
|
||||
* For enhanced security, you may set this variable to a value using the
|
||||
* contents of a file outside your docroot that is never saved together
|
||||
* with any backups of your Drupal files and database.
|
||||
*
|
||||
* Example:
|
||||
* $drupal_hash_salt = file_get_contents('/home/example/salt.txt');
|
||||
*
|
||||
*/
|
||||
$drupal_hash_salt = '';
|
||||
|
||||
/**
|
||||
* Base URL (optional).
|
||||
*
|
||||
* If Drupal is generating incorrect URLs on your site, which could
|
||||
* be in HTML headers (links to CSS and JS files) or visible links on pages
|
||||
* (such as in menus), uncomment the Base URL statement below (remove the
|
||||
* leading hash sign) and fill in the absolute URL to your Drupal installation.
|
||||
*
|
||||
* You might also want to force users to use a given domain.
|
||||
* See the .htaccess file for more information.
|
||||
*
|
||||
* Examples:
|
||||
* $base_url = 'http://www.example.com';
|
||||
* $base_url = 'http://www.example.com:8888';
|
||||
* $base_url = 'http://www.example.com/drupal';
|
||||
* $base_url = 'https://www.example.com:8888/drupal';
|
||||
*
|
||||
* It is not allowed to have a trailing slash; Drupal will add it
|
||||
* for you.
|
||||
*/
|
||||
# $base_url = 'http://www.example.com'; // NO trailing slash!
|
||||
|
||||
/**
|
||||
* PHP settings:
|
||||
*
|
||||
* To see what PHP settings are possible, including whether they can be set at
|
||||
* runtime (by using ini_set()), read the PHP documentation:
|
||||
* http://www.php.net/manual/en/ini.list.php
|
||||
* See drupal_environment_initialize() in includes/bootstrap.inc for required
|
||||
* runtime settings and the .htaccess file for non-runtime settings. Settings
|
||||
* defined there should not be duplicated here so as to avoid conflict issues.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Some distributions of Linux (most notably Debian) ship their PHP
|
||||
* installations with garbage collection (gc) disabled. Since Drupal depends on
|
||||
* PHP's garbage collection for clearing sessions, ensure that garbage
|
||||
* collection occurs by using the most common settings.
|
||||
*/
|
||||
ini_set('session.gc_probability', 1);
|
||||
ini_set('session.gc_divisor', 100);
|
||||
|
||||
/**
|
||||
* Set session lifetime (in seconds), i.e. the time from the user's last visit
|
||||
* to the active session may be deleted by the session garbage collector. When
|
||||
* a session is deleted, authenticated users are logged out, and the contents
|
||||
* of the user's $_SESSION variable is discarded.
|
||||
*/
|
||||
ini_set('session.gc_maxlifetime', 200000);
|
||||
|
||||
/**
|
||||
* Set session cookie lifetime (in seconds), i.e. the time from the session is
|
||||
* created to the cookie expires, i.e. when the browser is expected to discard
|
||||
* the cookie. The value 0 means "until the browser is closed".
|
||||
*/
|
||||
ini_set('session.cookie_lifetime', 2000000);
|
||||
|
||||
/**
|
||||
* If you encounter a situation where users post a large amount of text, and
|
||||
* the result is stripped out upon viewing but can still be edited, Drupal's
|
||||
* output filter may not have sufficient memory to process it. If you
|
||||
* experience this issue, you may wish to uncomment the following two lines
|
||||
* and increase the limits of these variables. For more information, see
|
||||
* http://php.net/manual/en/pcre.configuration.php.
|
||||
*/
|
||||
# ini_set('pcre.backtrack_limit', 200000);
|
||||
# ini_set('pcre.recursion_limit', 200000);
|
||||
|
||||
/**
|
||||
* Drupal automatically generates a unique session cookie name for each site
|
||||
* based on its full domain name. If you have multiple domains pointing at the
|
||||
* same Drupal site, you can either redirect them all to a single domain (see
|
||||
* comment in .htaccess), or uncomment the line below and specify their shared
|
||||
* base domain. Doing so assures that users remain logged in as they cross
|
||||
* between your various domains. Make sure to always start the $cookie_domain
|
||||
* with a leading dot, as per RFC 2109.
|
||||
*/
|
||||
# $cookie_domain = '.example.com';
|
||||
|
||||
/**
|
||||
* Variable overrides:
|
||||
*
|
||||
* To override specific entries in the 'variable' table for this site,
|
||||
* set them here. You usually don't need to use this feature. This is
|
||||
* useful in a configuration file for a vhost or directory, rather than
|
||||
* the default settings.php. Any configuration setting from the 'variable'
|
||||
* table can be given a new value. Note that any values you provide in
|
||||
* these variable overrides will not be modifiable from the Drupal
|
||||
* administration interface.
|
||||
*
|
||||
* The following overrides are examples:
|
||||
* - site_name: Defines the site's name.
|
||||
* - theme_default: Defines the default theme for this site.
|
||||
* - anonymous: Defines the human-readable name of anonymous users.
|
||||
* Remove the leading hash signs to enable.
|
||||
*/
|
||||
# $conf['site_name'] = 'My Drupal site';
|
||||
# $conf['theme_default'] = 'garland';
|
||||
# $conf['anonymous'] = 'Visitor';
|
||||
|
||||
/**
|
||||
* A custom theme can be set for the offline page. This applies when the site
|
||||
* is explicitly set to maintenance mode through the administration page or when
|
||||
* the database is inactive due to an error. It can be set through the
|
||||
* 'maintenance_theme' key. The template file should also be copied into the
|
||||
* theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
|
||||
* Note: This setting does not apply to installation and update pages.
|
||||
*/
|
||||
# $conf['maintenance_theme'] = 'bartik';
|
||||
|
||||
/**
|
||||
* Reverse Proxy Configuration:
|
||||
*
|
||||
* Reverse proxy servers are often used to enhance the performance
|
||||
* of heavily visited sites and may also provide other site caching,
|
||||
* security, or encryption benefits. In an environment where Drupal
|
||||
* is behind a reverse proxy, the real IP address of the client should
|
||||
* be determined such that the correct client IP address is available
|
||||
* to Drupal's logging, statistics, and access management systems. In
|
||||
* the most simple scenario, the proxy server will add an
|
||||
* X-Forwarded-For header to the request that contains the client IP
|
||||
* address. However, HTTP headers are vulnerable to spoofing, where a
|
||||
* malicious client could bypass restrictions by setting the
|
||||
* X-Forwarded-For header directly. Therefore, Drupal's proxy
|
||||
* configuration requires the IP addresses of all remote proxies to be
|
||||
* specified in $conf['reverse_proxy_addresses'] to work correctly.
|
||||
*
|
||||
* Enable this setting to get Drupal to determine the client IP from
|
||||
* the X-Forwarded-For header (or $conf['reverse_proxy_header'] if set).
|
||||
* If you are unsure about this setting, do not have a reverse proxy,
|
||||
* or Drupal operates in a shared hosting environment, this setting
|
||||
* should remain commented out.
|
||||
*
|
||||
* In order for this setting to be used you must specify every possible
|
||||
* reverse proxy IP address in $conf['reverse_proxy_addresses'].
|
||||
* If a complete list of reverse proxies is not available in your
|
||||
* environment (for example, if you use a CDN) you may set the
|
||||
* $_SERVER['REMOTE_ADDR'] variable directly in settings.php.
|
||||
* Be aware, however, that it is likely that this would allow IP
|
||||
* address spoofing unless more advanced precautions are taken.
|
||||
*/
|
||||
# $conf['reverse_proxy'] = TRUE;
|
||||
|
||||
/**
|
||||
* Specify every reverse proxy IP address in your environment.
|
||||
* This setting is required if $conf['reverse_proxy'] is TRUE.
|
||||
*/
|
||||
# $conf['reverse_proxy_addresses'] = array('a.b.c.d', ...);
|
||||
|
||||
/**
|
||||
* Set this value if your proxy server sends the client IP in a header
|
||||
* other than X-Forwarded-For.
|
||||
*/
|
||||
# $conf['reverse_proxy_header'] = 'HTTP_X_CLUSTER_CLIENT_IP';
|
||||
|
||||
/**
|
||||
* Page caching:
|
||||
*
|
||||
* By default, Drupal sends a "Vary: Cookie" HTTP header for anonymous page
|
||||
* views. This tells a HTTP proxy that it may return a page from its local
|
||||
* cache without contacting the web server, if the user sends the same Cookie
|
||||
* header as the user who originally requested the cached page. Without "Vary:
|
||||
* Cookie", authenticated users would also be served the anonymous page from
|
||||
* the cache. If the site has mostly anonymous users except a few known
|
||||
* editors/administrators, the Vary header can be omitted. This allows for
|
||||
* better caching in HTTP proxies (including reverse proxies), i.e. even if
|
||||
* clients send different cookies, they still get content served from the cache.
|
||||
* However, authenticated users should access the site directly (i.e. not use an
|
||||
* HTTP proxy, and bypass the reverse proxy if one is used) in order to avoid
|
||||
* getting cached pages from the proxy.
|
||||
*/
|
||||
# $conf['omit_vary_cookie'] = TRUE;
|
||||
|
||||
/**
|
||||
* CSS/JS aggregated file gzip compression:
|
||||
*
|
||||
* By default, when CSS or JS aggregation and clean URLs are enabled Drupal will
|
||||
* store a gzip compressed (.gz) copy of the aggregated files. If this file is
|
||||
* available then rewrite rules in the default .htaccess file will serve these
|
||||
* files to browsers that accept gzip encoded content. This allows pages to load
|
||||
* faster for these users and has minimal impact on server load. If you are
|
||||
* using a webserver other than Apache httpd, or a caching reverse proxy that is
|
||||
* configured to cache and compress these files itself you may want to uncomment
|
||||
* one or both of the below lines, which will prevent gzip files being stored.
|
||||
*/
|
||||
# $conf['css_gzip_compression'] = FALSE;
|
||||
# $conf['js_gzip_compression'] = FALSE;
|
||||
|
||||
/**
|
||||
* String overrides:
|
||||
*
|
||||
* To override specific strings on your site with or without enabling locale
|
||||
* module, add an entry to this list. This functionality allows you to change
|
||||
* a small number of your site's default English language interface strings.
|
||||
*
|
||||
* Remove the leading hash signs to enable.
|
||||
*/
|
||||
# $conf['locale_custom_strings_en'][''] = array(
|
||||
# 'forum' => 'Discussion board',
|
||||
# '@count min' => '@count minutes',
|
||||
# );
|
||||
|
||||
/**
|
||||
*
|
||||
* IP blocking:
|
||||
*
|
||||
* To bypass database queries for denied IP addresses, use this setting.
|
||||
* Drupal queries the {blocked_ips} table by default on every page request
|
||||
* for both authenticated and anonymous users. This allows the system to
|
||||
* block IP addresses from within the administrative interface and before any
|
||||
* modules are loaded. However on high traffic websites you may want to avoid
|
||||
* this query, allowing you to bypass database access altogether for anonymous
|
||||
* users under certain caching configurations.
|
||||
*
|
||||
* If using this setting, you will need to add back any IP addresses which
|
||||
* you may have blocked via the administrative interface. Each element of this
|
||||
* array represents a blocked IP address. Uncommenting the array and leaving it
|
||||
* empty will have the effect of disabling IP blocking on your site.
|
||||
*
|
||||
* Remove the leading hash signs to enable.
|
||||
*/
|
||||
# $conf['blocked_ips'] = array(
|
||||
# 'a.b.c.d',
|
||||
# );
|
||||
|
||||
/**
|
||||
* Fast 404 pages:
|
||||
*
|
||||
* Drupal can generate fully themed 404 pages. However, some of these responses
|
||||
* are for images or other resource files that are not displayed to the user.
|
||||
* This can waste bandwidth, and also generate server load.
|
||||
*
|
||||
* The options below return a simple, fast 404 page for URLs matching a
|
||||
* specific pattern:
|
||||
* - 404_fast_paths_exclude: A regular expression to match paths to exclude,
|
||||
* such as images generated by image styles, or dynamically-resized images.
|
||||
* If you need to add more paths, you can add '|path' to the expression.
|
||||
* - 404_fast_paths: A regular expression to match paths that should return a
|
||||
* simple 404 page, rather than the fully themed 404 page. If you don't have
|
||||
* any aliases ending in htm or html you can add '|s?html?' to the expression.
|
||||
* - 404_fast_html: The html to return for simple 404 pages.
|
||||
*
|
||||
* Add leading hash signs if you would like to disable this functionality.
|
||||
*/
|
||||
$conf['404_fast_paths_exclude'] = '/\/(?:styles)\//';
|
||||
$conf['404_fast_paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i';
|
||||
$conf['404_fast_html'] = '<html xmlns="http://www.w3.org/1999/xhtml"><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>';
|
||||
|
||||
/**
|
||||
* By default, fast 404s are returned as part of the normal page request
|
||||
* process, which will properly serve valid pages that happen to match and will
|
||||
* also log actual 404s to the Drupal log. Alternatively you can choose to
|
||||
* return a 404 now by uncommenting the following line. This will reduce server
|
||||
* load, but will cause even valid pages that happen to match the pattern to
|
||||
* return 404s, rather than the actual page. It will also prevent the Drupal
|
||||
* system log entry. Ensure you understand the effects of this before enabling.
|
||||
*
|
||||
* To enable this functionality, remove the leading hash sign below.
|
||||
*/
|
||||
# drupal_fast_404();
|
||||
|
||||
/**
|
||||
* Authorized file system operations:
|
||||
*
|
||||
* The Update manager module included with Drupal provides a mechanism for
|
||||
* site administrators to securely install missing updates for the site
|
||||
* directly through the web user interface by providing either SSH or FTP
|
||||
* credentials. This allows the site to update the new files as the user who
|
||||
* owns all the Drupal files, instead of as the user the webserver is running
|
||||
* as. However, some sites might wish to disable this functionality, and only
|
||||
* update the code directly via SSH or FTP themselves. This setting completely
|
||||
* disables all functionality related to these authorized file operations.
|
||||
*
|
||||
* Remove the leading hash signs to disable.
|
||||
*/
|
||||
# $conf['allow_authorize_operations'] = FALSE;
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_actualites.box.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_box().
|
||||
*/
|
||||
function popsu_actualites_default_box() {
|
||||
$export = array();
|
||||
|
||||
$box = new stdClass();
|
||||
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
|
||||
$box->api_version = 1;
|
||||
$box->delta = 'popsu_logo_popsuneutral';
|
||||
$box->plugin_key = 'simple';
|
||||
$box->title = '<none>';
|
||||
$box->description = 'POPSU Logo POPSU neutral (box)';
|
||||
$box->options = array(
|
||||
'body' => array(
|
||||
'value' => '<a title="Aller à l\'accueil du site POPSU" rel="home" class="logo" href="/">Aller à l\'accueil du site POPSU</a>',
|
||||
'format' => 'php_code',
|
||||
),
|
||||
'additional_classes' => '',
|
||||
);
|
||||
$export['popsu_logo_popsuneutral'] = $box;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_actualites.context.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_context_default_contexts().
|
||||
*/
|
||||
function popsu_actualites_context_default_contexts() {
|
||||
$export = array();
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-actualites-listing';
|
||||
$context->description = 'Contexte du listing des Actualités POPSU (feature)';
|
||||
$context->tag = 'actualites-feature';
|
||||
$context->conditions = array(
|
||||
'path' => array(
|
||||
'values' => array(
|
||||
'actualites' => 'actualites',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'boxes-popsu_logo_popsuneutral' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsuneutral',
|
||||
'region' => 'header',
|
||||
'weight' => '-32',
|
||||
),
|
||||
'boxes-popsu_logo_baseline' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_baseline',
|
||||
'region' => 'header',
|
||||
'weight' => '-31',
|
||||
),
|
||||
'boxes-popsu_logo_popsueurope' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsueurope',
|
||||
'region' => 'header',
|
||||
'weight' => '-30',
|
||||
),
|
||||
'boxes-popsu_logo_popsu2' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsu2',
|
||||
'region' => 'header',
|
||||
'weight' => '-29',
|
||||
),
|
||||
'boxes-popsu_logo_popsu1' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsu1',
|
||||
'region' => 'header',
|
||||
'weight' => '-28',
|
||||
),
|
||||
),
|
||||
),
|
||||
'theme_html' => array(
|
||||
'class' => 'popsu-neutral-section popsu-listing-actu',
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 1;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte du listing des Actualités POPSU (feature)');
|
||||
t('actualites-feature');
|
||||
$export['popsu-actualites-listing'] = $context;
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-actualites-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Actualités POPSU (feature)';
|
||||
$context->tag = 'actualites-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_actu' => 'popsu_actu',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'boxes-popsu_logo_popsuneutral' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsuneutral',
|
||||
'region' => 'header',
|
||||
'weight' => '-32',
|
||||
),
|
||||
'boxes-popsu_logo_baseline' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_baseline',
|
||||
'region' => 'header',
|
||||
'weight' => '-31',
|
||||
),
|
||||
'boxes-popsu_logo_popsueurope' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsueurope',
|
||||
'region' => 'header',
|
||||
'weight' => '-30',
|
||||
),
|
||||
'boxes-popsu_logo_popsu2' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsu2',
|
||||
'region' => 'header',
|
||||
'weight' => '-29',
|
||||
),
|
||||
'boxes-popsu_logo_popsu1' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsu1',
|
||||
'region' => 'header',
|
||||
'weight' => '-28',
|
||||
),
|
||||
'views-actualites-block_1' => array(
|
||||
'module' => 'views',
|
||||
'delta' => 'actualites-block_1',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '0',
|
||||
),
|
||||
'views-actualites-block_2' => array(
|
||||
'module' => 'views',
|
||||
'delta' => 'actualites-block_2',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
),
|
||||
'theme_html' => array(
|
||||
'class' => 'popsu-actu-section',
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 1;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Actualités POPSU (feature)');
|
||||
t('actualites-feature');
|
||||
$export['popsu-actualites-node'] = $context;
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-actualites-node-style2';
|
||||
$context->description = 'Contexte d\'un noeud de type Actualités POPSU (feature)';
|
||||
$context->tag = 'actualites-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_actu' => 'popsu_actu',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'boxes-popsu_logo_popsuneutral' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsuneutral',
|
||||
'region' => 'header',
|
||||
'weight' => '-32',
|
||||
),
|
||||
'boxes-popsu_logo_baseline' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_baseline',
|
||||
'region' => 'header',
|
||||
'weight' => '-31',
|
||||
),
|
||||
'boxes-popsu_logo_popsueurope' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsueurope',
|
||||
'region' => 'header',
|
||||
'weight' => '-30',
|
||||
),
|
||||
'boxes-popsu_logo_popsu2' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsu2',
|
||||
'region' => 'header',
|
||||
'weight' => '-29',
|
||||
),
|
||||
'boxes-popsu_logo_popsu1' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsu1',
|
||||
'region' => 'header',
|
||||
'weight' => '-28',
|
||||
),
|
||||
),
|
||||
),
|
||||
'theme_html' => array(
|
||||
'class' => 'popsu-neutral-section',
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 1;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Actualités POPSU (feature)');
|
||||
t('actualites-feature');
|
||||
$export['popsu-actualites-node-style2'] = $context;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,426 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_actualites.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_actualites_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_actu-field_popsu_actu_body'.
|
||||
$fields['node-popsu_actu-field_popsu_actu_body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_actu_body',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_with_summary',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_actu',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 1,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_actu_body',
|
||||
'label' => 'Texte de l\'actualité',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'display_summary' => 0,
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '20',
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => '12',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_actu-field_popsu_actu_date'.
|
||||
$fields['node-popsu_actu-field_popsu_actu_date'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_actu_date',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => '0',
|
||||
'module' => 'date',
|
||||
'settings' => array(
|
||||
'cache_count' => '4',
|
||||
'cache_enabled' => 0,
|
||||
'granularity' => array(
|
||||
'day' => 'day',
|
||||
'hour' => 0,
|
||||
'minute' => 0,
|
||||
'month' => 'month',
|
||||
'second' => 0,
|
||||
'year' => 'year',
|
||||
),
|
||||
'timezone_db' => '',
|
||||
'todate' => '',
|
||||
'tz_handling' => 'none',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'datetime',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_actu',
|
||||
'deleted' => '0',
|
||||
'description' => 'Si vous souhaitez retarder la publication de cette actualité, choisissez une date dans le futur.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'date',
|
||||
'settings' => array(
|
||||
'format_type' => 'long',
|
||||
'fromto' => 'both',
|
||||
'multiple_from' => '',
|
||||
'multiple_number' => '',
|
||||
'multiple_to' => '',
|
||||
),
|
||||
'type' => 'date_default',
|
||||
'weight' => 2,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_actu_date',
|
||||
'label' => 'Date de début de publication de l\'actualité sur la page d\'accueil',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'default_value' => 'now',
|
||||
'default_value2' => 'same',
|
||||
'default_value_code' => '',
|
||||
'default_value_code2' => '',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'date',
|
||||
'settings' => array(
|
||||
'increment' => '15',
|
||||
'input_format' => 'd/m/Y - H:i:s',
|
||||
'input_format_custom' => '',
|
||||
'label_position' => 'above',
|
||||
'text_parts' => array(),
|
||||
'year_range' => '-3:+3',
|
||||
),
|
||||
'type' => 'date_popup',
|
||||
'weight' => '8',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_actu-field_popsu_actu_date_fin'.
|
||||
$fields['node-popsu_actu-field_popsu_actu_date_fin'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_actu_date_fin',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => '0',
|
||||
'module' => 'date',
|
||||
'settings' => array(
|
||||
'cache_count' => '4',
|
||||
'cache_enabled' => 0,
|
||||
'granularity' => array(
|
||||
'day' => 'day',
|
||||
'hour' => 0,
|
||||
'minute' => 0,
|
||||
'month' => 'month',
|
||||
'second' => 0,
|
||||
'year' => 'year',
|
||||
),
|
||||
'timezone_db' => '',
|
||||
'todate' => '',
|
||||
'tz_handling' => 'none',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'datetime',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_actu',
|
||||
'deleted' => '0',
|
||||
'description' => 'Par défaut, les actualités restent 30 jours sur la page d\'accueil. Si vous souhaitez rallonger ce délai, modifier cette date.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'date',
|
||||
'settings' => array(
|
||||
'format_type' => 'long',
|
||||
'fromto' => 'both',
|
||||
'multiple_from' => '',
|
||||
'multiple_number' => '',
|
||||
'multiple_to' => '',
|
||||
),
|
||||
'type' => 'date_default',
|
||||
'weight' => 5,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_actu_date_fin',
|
||||
'label' => 'Date de fin de publication de l\'actualité sur la page d\'accueil',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'default_value' => 'strtotime',
|
||||
'default_value2' => 'same',
|
||||
'default_value_code' => '+ 30 days',
|
||||
'default_value_code2' => '',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'date',
|
||||
'settings' => array(
|
||||
'increment' => '15',
|
||||
'input_format' => 'd/m/Y - H:i:s',
|
||||
'input_format_custom' => '',
|
||||
'label_position' => 'above',
|
||||
'text_parts' => array(),
|
||||
'year_range' => '-3:+3',
|
||||
),
|
||||
'type' => 'date_popup',
|
||||
'weight' => '9',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_actu-field_popsu_actu_image'.
|
||||
$fields['node-popsu_actu-field_popsu_actu_image'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_actu_image',
|
||||
'foreign keys' => array(
|
||||
'fid' => array(
|
||||
'columns' => array(
|
||||
'fid' => 'fid',
|
||||
),
|
||||
'table' => 'file_managed',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'default_image' => 0,
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'image',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_actu',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => '',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => 3,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_actu_image',
|
||||
'label' => 'Image de l\'actualité',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'png gif jpg jpeg',
|
||||
'filefield_paths' => array(
|
||||
'active_updating' => 0,
|
||||
'file_name' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
|
||||
),
|
||||
'file_path' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => 'nodes/[node:content-type]/[node:nid]/image',
|
||||
),
|
||||
'retroactive_update' => 0,
|
||||
),
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => '4',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_actu-field_popsu_actu_soustitre'.
|
||||
$fields['node-popsu_actu-field_popsu_actu_soustitre'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_actu_soustitre',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'max_length' => '255',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'text',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_actu',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 4,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_actu_soustitre',
|
||||
'label' => 'Sous-titre de l\'actualité',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '0',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'size' => '60',
|
||||
),
|
||||
'type' => 'text_textfield',
|
||||
'weight' => '7',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Date de début de publication de l\'actualité sur la page d\'accueil');
|
||||
t('Date de fin de publication de l\'actualité sur la page d\'accueil');
|
||||
t('Image de l\'actualité');
|
||||
t('Par défaut, les actualités restent 30 jours sur la page d\'accueil. Si vous souhaitez rallonger ce délai, modifier cette date.');
|
||||
t('Si vous souhaitez retarder la publication de cette actualité, choisissez une date dans le futur.');
|
||||
t('Sous-titre de l\'actualité');
|
||||
t('Texte de l\'actualité');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_actualites.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_block_class_features_default_class().
|
||||
*/
|
||||
function popsu_actualites_block_class_features_default_class() {
|
||||
return array(
|
||||
'views:actualites-block_1' => array(
|
||||
'module' => 'views',
|
||||
'delta' => 'actualites-block_1',
|
||||
'css_classes' => 'left-nav-level-1',
|
||||
),
|
||||
'views:actualites-block_2' => array(
|
||||
'module' => 'views',
|
||||
'delta' => 'actualites-block_2',
|
||||
'css_classes' => 'left-nav-level-1',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_actualites_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "boxes" && $api == "box") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "context" && $api == "context") {
|
||||
return array("version" => "3");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "page_manager" && $api == "pages_default") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*/
|
||||
function popsu_actualites_views_api() {
|
||||
return array("version" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_image_default_styles().
|
||||
*/
|
||||
function popsu_actualites_image_default_styles() {
|
||||
$styles = array();
|
||||
|
||||
// Exported image style: popsu-actu-home.
|
||||
$styles['popsu-actu-home'] = array(
|
||||
'name' => 'popsu-actu-home',
|
||||
'effects' => array(
|
||||
15 => array(
|
||||
'label' => 'Mise à l’échelle et recadrage',
|
||||
'help' => 'La mise à l\'échelle et le recadrage maintiendront les proportions originales de l\'image puis recadreront la dimension la plus large. C\'est très utile pour créer des vignettes carrées sans étirer les images.',
|
||||
'effect callback' => 'image_scale_and_crop_effect',
|
||||
'dimensions callback' => 'image_resize_dimensions',
|
||||
'form callback' => 'image_resize_form',
|
||||
'summary theme' => 'image_resize_summary',
|
||||
'module' => 'image',
|
||||
'name' => 'image_scale_and_crop',
|
||||
'data' => array(
|
||||
'width' => '206',
|
||||
'height' => '156',
|
||||
),
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported image style: popsu-actu-listing.
|
||||
$styles['popsu-actu-listing'] = array(
|
||||
'name' => 'popsu-actu-listing',
|
||||
'effects' => array(
|
||||
16 => array(
|
||||
'label' => 'Mise à l’échelle et recadrage',
|
||||
'help' => 'La mise à l\'échelle et le recadrage maintiendront les proportions originales de l\'image puis recadreront la dimension la plus large. C\'est très utile pour créer des vignettes carrées sans étirer les images.',
|
||||
'effect callback' => 'image_scale_and_crop_effect',
|
||||
'dimensions callback' => 'image_resize_dimensions',
|
||||
'form callback' => 'image_resize_form',
|
||||
'summary theme' => 'image_resize_summary',
|
||||
'module' => 'image',
|
||||
'name' => 'image_scale_and_crop',
|
||||
'data' => array(
|
||||
'width' => '220',
|
||||
'height' => '168',
|
||||
),
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
return $styles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_actualites_node_info() {
|
||||
$items = array(
|
||||
'popsu_actu' => array(
|
||||
'name' => t('Actualités'),
|
||||
'base' => 'node_content',
|
||||
'description' => t('Ce type de contenu permet de créer des actualités sur la page d\'accueil du site.'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre de l\'actualité'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_actualites.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_actualites_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_actu_basic|node|popsu_actu|form';
|
||||
$field_group->group_name = 'group_popsu_actu_basic';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_actu';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Informations essentielles',
|
||||
'weight' => '0',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_actu_date',
|
||||
1 => 'field_popsu_actu_soustitre',
|
||||
2 => 'field_popsu_actu_date_fin',
|
||||
3 => 'title',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_actu_basic|node|popsu_actu|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_actu_image|node|popsu_actu|form';
|
||||
$field_group->group_name = 'group_popsu_actu_image';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_actu';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Image',
|
||||
'weight' => '2',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_actu_image',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_actu_image|node|popsu_actu|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_actu_texte|node|popsu_actu|form';
|
||||
$field_group->group_name = 'group_popsu_actu_texte';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_actu';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Texte',
|
||||
'weight' => '1',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_actu_body',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_actu_texte|node|popsu_actu|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
name = POPSU Actualités
|
||||
description = POPSU - Type de contenu Colloques
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
php = 5.2.4
|
||||
version = 7.x-1.0-beta10
|
||||
project = popsu_actualites
|
||||
dependencies[] = ctools
|
||||
dependencies[] = date
|
||||
dependencies[] = field_group
|
||||
dependencies[] = filefield_paths
|
||||
dependencies[] = image
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = popsu_structure
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = views
|
||||
dependencies[] = views_content
|
||||
features[block_class][] = views:actualites-block_1
|
||||
features[block_class][] = views:actualites-block_2
|
||||
features[box][] = popsu_logo_popsuneutral
|
||||
features[context][] = popsu-actualites-listing
|
||||
features[context][] = popsu-actualites-node
|
||||
features[context][] = popsu-actualites-node-style2
|
||||
features[ctools][] = boxes:box:1
|
||||
features[ctools][] = context:context:3
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = page_manager:pages_default:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:1
|
||||
features[field][] = node-popsu_actu-field_popsu_actu_body
|
||||
features[field][] = node-popsu_actu-field_popsu_actu_date
|
||||
features[field][] = node-popsu_actu-field_popsu_actu_date_fin
|
||||
features[field][] = node-popsu_actu-field_popsu_actu_image
|
||||
features[field][] = node-popsu_actu-field_popsu_actu_soustitre
|
||||
features[field_group][] = group_popsu_actu_basic|node|popsu_actu|form
|
||||
features[field_group][] = group_popsu_actu_image|node|popsu_actu|form
|
||||
features[field_group][] = group_popsu_actu_texte|node|popsu_actu|form
|
||||
features[image][] = popsu-actu-home
|
||||
features[image][] = popsu-actu-listing
|
||||
features[node][] = popsu_actu
|
||||
features[page_manager_handlers][] = node_view_panel_context_12
|
||||
features[page_manager_pages][] = popsu_actualites
|
||||
features[variable][] = additional_settings__active_tab_popsu_actu
|
||||
features[variable][] = diff_enable_revisions_page_node_popsu_actu
|
||||
features[variable][] = diff_show_preview_changes_node_popsu_actu
|
||||
features[variable][] = diff_view_mode_preview_node_popsu_actu
|
||||
features[variable][] = field_bundle_settings_node__popsu_actu
|
||||
features[variable][] = language_content_type_popsu_actu
|
||||
features[variable][] = menu_options_popsu_actu
|
||||
features[variable][] = menu_parent_popsu_actu
|
||||
features[variable][] = node_options_popsu_actu
|
||||
features[variable][] = node_preview_popsu_actu
|
||||
features[variable][] = node_submitted_popsu_actu
|
||||
features[variable][] = page_title_type_popsu_actu
|
||||
features[variable][] = page_title_type_popsu_actu_showfield
|
||||
features[variable][] = pathauto_node_popsu_actu_pattern
|
||||
features[variable][] = publishcontent_popsu_actu
|
||||
features[views_view][] = actualites
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Actualités feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_actualites.features.inc';
|
||||
@@ -0,0 +1,447 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_actualites.pages_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_page_manager_handlers().
|
||||
*/
|
||||
function popsu_actualites_default_page_manager_handlers() {
|
||||
$export = array();
|
||||
|
||||
$handler = new stdClass();
|
||||
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
||||
$handler->api_version = 1;
|
||||
$handler->name = 'node_view_panel_context_12';
|
||||
$handler->task = 'node_view';
|
||||
$handler->subtask = '';
|
||||
$handler->handler = 'panel_context';
|
||||
$handler->weight = 11;
|
||||
$handler->conf = array(
|
||||
'title' => 'Actualités',
|
||||
'no_blocks' => 0,
|
||||
'pipeline' => 'standard',
|
||||
'body_classes_to_remove' => '',
|
||||
'body_classes_to_add' => '',
|
||||
'css_id' => '',
|
||||
'css' => '',
|
||||
'contexts' => array(),
|
||||
'relationships' => array(),
|
||||
'access' => array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'node_type',
|
||||
'settings' => array(
|
||||
'type' => array(
|
||||
'popsu_actu' => 'popsu_actu',
|
||||
),
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
'logic' => 'and',
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'flexible:popsu_74_36_stacked';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'right' => NULL,
|
||||
'header' => NULL,
|
||||
'top' => NULL,
|
||||
'footer' => NULL,
|
||||
'picture' => NULL,
|
||||
'col_seventy' => NULL,
|
||||
'left' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = '';
|
||||
$display->content = array();
|
||||
$display->panels = array();
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-1';
|
||||
$pane->panel = 'footer';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_actu_soustitre';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-1'] = $pane;
|
||||
$display->panels['footer'][0] = 'new-1';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-2';
|
||||
$pane->panel = 'footer';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_actu_date';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'date_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(
|
||||
'format_type' => 'popsu_yyyy_mm_dd',
|
||||
'multiple_number' => '',
|
||||
'multiple_from' => '',
|
||||
'multiple_to' => '',
|
||||
'fromto' => 'both',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-2'] = $pane;
|
||||
$display->panels['footer'][1] = 'new-2';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-3';
|
||||
$pane->panel = 'footer';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_actu_body';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'layout-64p',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 2;
|
||||
$pane->locks = array();
|
||||
$display->content['new-3'] = $pane;
|
||||
$display->panels['footer'][2] = 'new-3';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-4';
|
||||
$pane->panel = 'footer';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'actualites-panel_pane_2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'nid' => '%node:nid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 3;
|
||||
$pane->locks = array();
|
||||
$display->content['new-4'] = $pane;
|
||||
$display->panels['footer'][3] = 'new-4';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-5';
|
||||
$pane->panel = 'footer';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'actualites-panel_pane_3';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'nid' => '%node:nid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 4;
|
||||
$pane->locks = array();
|
||||
$display->content['new-5'] = $pane;
|
||||
$display->panels['footer'][4] = 'new-5';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-6';
|
||||
$pane->panel = 'header';
|
||||
$pane->type = 'custom';
|
||||
$pane->subtype = 'custom';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'admin_title' => 'Actualités - Titre - A venir ou passées',
|
||||
'title' => '<none>',
|
||||
'body' => '<h1 id="page-title" class="title-actu title-a-venir">Actualites a venir</h1>
|
||||
<h1 id="page-title" class="title-actu title-passees">Actualites passees</h1>',
|
||||
'format' => 'php_code',
|
||||
'substitute' => 1,
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-6'] = $pane;
|
||||
$display->panels['header'][0] = 'new-6';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-7';
|
||||
$pane->panel = 'header';
|
||||
$pane->type = 'node_title';
|
||||
$pane->subtype = 'node_title';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'link' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'page-title-secondary-actu',
|
||||
'css_class' => 'page-title-secondary',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-7'] = $pane;
|
||||
$display->panels['header'][1] = 'new-7';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-8';
|
||||
$pane->panel = 'left';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_actu_image';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'image',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(
|
||||
'image_style' => '',
|
||||
'image_link' => '',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'panel-actu-grande-image',
|
||||
'css_class' => 'image-decallee',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-8'] = $pane;
|
||||
$display->panels['left'][0] = 'new-8';
|
||||
$display->hide_title = PANELS_TITLE_NONE;
|
||||
$display->title_pane = '0';
|
||||
$handler->conf['display'] = $display;
|
||||
$export['node_view_panel_context_12'] = $handler;
|
||||
|
||||
return $export;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_default_page_manager_pages().
|
||||
*/
|
||||
function popsu_actualites_default_page_manager_pages() {
|
||||
$page = new stdClass();
|
||||
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
|
||||
$page->api_version = 1;
|
||||
$page->name = 'popsu_actualites';
|
||||
$page->task = 'page';
|
||||
$page->admin_title = 'Actualités';
|
||||
$page->admin_description = '';
|
||||
$page->path = 'actualites';
|
||||
$page->access = array(
|
||||
'logic' => 'and',
|
||||
);
|
||||
$page->menu = array(
|
||||
'type' => 'none',
|
||||
'title' => '',
|
||||
'name' => 'navigation',
|
||||
'weight' => '0',
|
||||
'parent' => array(
|
||||
'type' => 'none',
|
||||
'title' => '',
|
||||
'name' => 'navigation',
|
||||
'weight' => '0',
|
||||
),
|
||||
);
|
||||
$page->arguments = array();
|
||||
$page->conf = array(
|
||||
'admin_paths' => FALSE,
|
||||
);
|
||||
$page->default_handlers = array();
|
||||
$handler = new stdClass();
|
||||
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
||||
$handler->api_version = 1;
|
||||
$handler->name = 'page_popsu_actualites_panel_context';
|
||||
$handler->task = 'page';
|
||||
$handler->subtask = 'popsu_actualites';
|
||||
$handler->handler = 'panel_context';
|
||||
$handler->weight = 0;
|
||||
$handler->conf = array(
|
||||
'title' => 'Panneau',
|
||||
'no_blocks' => 0,
|
||||
'pipeline' => 'standard',
|
||||
'body_classes_to_remove' => '',
|
||||
'body_classes_to_add' => '',
|
||||
'css_id' => '',
|
||||
'css' => '',
|
||||
'contexts' => array(),
|
||||
'relationships' => array(),
|
||||
'access' => array(
|
||||
'logic' => 'and',
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'flexible:popsu_74_36_stacked';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'left' => NULL,
|
||||
'right' => NULL,
|
||||
'header' => NULL,
|
||||
'top' => NULL,
|
||||
'footer' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = 'Actualités, appels d\'offre et consultations';
|
||||
$display->content = array();
|
||||
$display->panels = array();
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-1';
|
||||
$pane->panel = 'left';
|
||||
$pane->type = 'views';
|
||||
$pane->subtype = 'actualites';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'override_pager_settings' => 0,
|
||||
'use_pager' => 0,
|
||||
'nodes_per_page' => '0',
|
||||
'pager_id' => '0',
|
||||
'offset' => '0',
|
||||
'more_link' => 0,
|
||||
'feed_icons' => 0,
|
||||
'panel_args' => 0,
|
||||
'link_to_view' => 0,
|
||||
'args' => '',
|
||||
'url' => '',
|
||||
'display' => 'block_3',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => 'Actualites a venir',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'listing-actu listing-actu-avenir',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-1'] = $pane;
|
||||
$display->panels['left'][0] = 'new-1';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-2';
|
||||
$pane->panel = 'left';
|
||||
$pane->type = 'views';
|
||||
$pane->subtype = 'actualites';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'override_pager_settings' => 0,
|
||||
'use_pager' => 0,
|
||||
'nodes_per_page' => '0',
|
||||
'pager_id' => '0',
|
||||
'offset' => '0',
|
||||
'more_link' => 0,
|
||||
'feed_icons' => 0,
|
||||
'panel_args' => 0,
|
||||
'link_to_view' => 0,
|
||||
'args' => '',
|
||||
'url' => '',
|
||||
'display' => 'block_4',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => 'Actualites archivees',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'pane-actu-passees',
|
||||
'css_class' => 'layout-88p listing-actu listing-actu-passe',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-2'] = $pane;
|
||||
$display->panels['left'][1] = 'new-2';
|
||||
$display->hide_title = PANELS_TITLE_FIXED;
|
||||
$display->title_pane = '0';
|
||||
$handler->conf['display'] = $display;
|
||||
$page->default_handlers[$handler->name] = $handler;
|
||||
$pages['popsu_actualites'] = $page;
|
||||
|
||||
return $pages;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_actualites.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_actualites_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'additional_settings__active_tab_popsu_actu';
|
||||
$strongarm->value = 'edit-page-title';
|
||||
$export['additional_settings__active_tab_popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'diff_enable_revisions_page_node_popsu_actu';
|
||||
$strongarm->value = 0;
|
||||
$export['diff_enable_revisions_page_node_popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'diff_show_preview_changes_node_popsu_actu';
|
||||
$strongarm->value = 0;
|
||||
$export['diff_show_preview_changes_node_popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'diff_view_mode_preview_node_popsu_actu';
|
||||
$strongarm->value = 'full';
|
||||
$export['diff_view_mode_preview_node_popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__popsu_actu';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '6',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'language_content_type_popsu_actu';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_options_popsu_actu';
|
||||
$strongarm->value = array(
|
||||
0 => 'main-menu',
|
||||
);
|
||||
$export['menu_options_popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_parent_popsu_actu';
|
||||
$strongarm->value = 'main-menu:0';
|
||||
$export['menu_parent_popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_options_popsu_actu';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'promote',
|
||||
2 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_preview_popsu_actu';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_submitted_popsu_actu';
|
||||
$strongarm->value = 1;
|
||||
$export['node_submitted_popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'page_title_type_popsu_actu';
|
||||
$strongarm->value = '[node:title] - [node:field-popsu-actu-soustitre] | Actualités de la plate-forme POPSU';
|
||||
$export['page_title_type_popsu_actu'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'page_title_type_popsu_actu_showfield';
|
||||
$strongarm->value = 0;
|
||||
$export['page_title_type_popsu_actu_showfield'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'pathauto_node_popsu_actu_pattern';
|
||||
$strongarm->value = 'actualites/[node:field-popsu-actu-date:popsu_yyyy_mm_dd]/[node:title]';
|
||||
$export['pathauto_node_popsu_actu_pattern'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'publishcontent_popsu_actu';
|
||||
$strongarm->value = 1;
|
||||
$export['publishcontent_popsu_actu'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,822 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_actualites.views_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_views_default_views().
|
||||
*/
|
||||
function popsu_actualites_views_default_views() {
|
||||
$export = array();
|
||||
|
||||
$view = new view();
|
||||
$view->name = 'actualites';
|
||||
$view->description = 'Liste des actualités POPSU';
|
||||
$view->tag = 'POPSU';
|
||||
$view->base_table = 'node';
|
||||
$view->human_name = 'Actualités';
|
||||
$view->core = 7;
|
||||
$view->api_version = '3.0';
|
||||
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||||
|
||||
/* Display: Master */
|
||||
$handler = $view->new_display('default', 'Master', 'default');
|
||||
$handler->display->display_options['title'] = 'Actualités';
|
||||
$handler->display->display_options['use_more_always'] = TRUE;
|
||||
$handler->display->display_options['use_more_text'] = 'Voir toutes les actualités';
|
||||
$handler->display->display_options['access']['type'] = 'perm';
|
||||
$handler->display->display_options['cache']['type'] = 'none';
|
||||
$handler->display->display_options['query']['type'] = 'views_query';
|
||||
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||||
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
|
||||
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
|
||||
$handler->display->display_options['pager']['type'] = 'full';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Éléments par page';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Tout -';
|
||||
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Décalage';
|
||||
$handler->display->display_options['pager']['options']['tags']['first'] = '« premier';
|
||||
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ précédent';
|
||||
$handler->display->display_options['pager']['options']['tags']['next'] = 'suivant ›';
|
||||
$handler->display->display_options['pager']['options']['tags']['last'] = 'dernier »';
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
/* Champ: Contenu : Chemin */
|
||||
$handler->display->display_options['fields']['path']['id'] = 'path';
|
||||
$handler->display->display_options['fields']['path']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['path']['field'] = 'path';
|
||||
$handler->display->display_options['fields']['path']['label'] = '';
|
||||
$handler->display->display_options['fields']['path']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['path']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['path']['alter']['text'] = '/actualites';
|
||||
$handler->display->display_options['fields']['path']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['path']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['path']['absolute'] = TRUE;
|
||||
/* Champ: Contenu : Image de l'actualité */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['id'] = 'field_popsu_actu_image';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['table'] = 'field_data_field_popsu_actu_image';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['field'] = 'field_popsu_actu_image';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['alter']['make_link'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['alter']['path'] = '[path]';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['alter']['absolute'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['settings'] = array(
|
||||
'image_style' => 'popsu-actu-home',
|
||||
'image_link' => '',
|
||||
);
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '<a href="[path]">[title]</a>';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Sous-titre de l'actualité */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['id'] = 'field_popsu_actu_soustitre';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['table'] = 'field_data_field_popsu_actu_soustitre';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['field'] = 'field_popsu_actu_soustitre';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['alter']['text'] = '[field_popsu_actu_soustitre] - ';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['hide_empty'] = TRUE;
|
||||
/* Champ: Contenu : Date de début de publication de l'actualité sur la page d'accueil */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['id'] = 'field_popsu_actu_date';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['field'] = 'field_popsu_actu_date';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['alter']['text'] = '[field_popsu_actu_soustitre][field_popsu_actu_date]';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['settings'] = array(
|
||||
'format_type' => 'short',
|
||||
'fromto' => 'both',
|
||||
'multiple_number' => '',
|
||||
'multiple_from' => '',
|
||||
'multiple_to' => '',
|
||||
);
|
||||
/* Champ: Contenu : Texte de l'actualité */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['id'] = 'field_popsu_actu_body';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['table'] = 'field_data_field_popsu_actu_body';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['field'] = 'field_popsu_actu_body';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['alter']['text'] = '<a href="[path]">[field_popsu_actu_body]</a>';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['alter']['make_link'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['alter']['path'] = '[path]';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['alter']['absolute'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['alter']['max_length'] = '200';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['alter']['strip_tags'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['alter']['trim'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier cette actu';
|
||||
/* Champ: Contenu : Lien */
|
||||
$handler->display->display_options['fields']['view_node']['id'] = 'view_node';
|
||||
$handler->display->display_options['fields']['view_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['view_node']['field'] = 'view_node';
|
||||
$handler->display->display_options['fields']['view_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['view_node']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['view_node']['alter']['text'] = '<a href="[path]">voir toutes les actualités</a>';
|
||||
$handler->display->display_options['fields']['view_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['view_node']['text'] = 'voir toutes les actualités';
|
||||
/* Critère de tri: Contenu : Date de début de publication de l'actualité sur la page d'accueil (field_popsu_actu_date) */
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['id'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['field'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['order'] = 'DESC';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_actu' => 'popsu_actu',
|
||||
);
|
||||
|
||||
/* Display: Actualite Last for Home Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Actualite Last for Home Pane', 'panel_pane_1');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Actualite';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['use_more'] = FALSE;
|
||||
$handler->display->display_options['defaults']['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['defaults']['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['use_more_always'] = TRUE;
|
||||
$handler->display->display_options['defaults']['use_more_text'] = FALSE;
|
||||
$handler->display->display_options['use_more_text'] = 'Voir toutes les actualités';
|
||||
$handler->display->display_options['defaults']['pager'] = FALSE;
|
||||
$handler->display->display_options['pager']['type'] = 'some';
|
||||
$handler->display->display_options['pager']['options']['items_per_page'] = '1';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de début de publication de l'actualité sur la page d'accueil (field_popsu_actu_date) */
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['id'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['field'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_actu' => 'popsu_actu',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Date de début de publication de l'actualité sur la page d'accueil (field_popsu_actu_date) */
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['id'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['field'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['operator'] = '<=';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['default_date'] = 'now';
|
||||
/* Critère de filtrage: Contenu : Date de fin de publication de l'actualité sur la page d'accueil (field_popsu_actu_date_fin) */
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['id'] = 'field_popsu_actu_date_fin_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['table'] = 'field_data_field_popsu_actu_date_fin';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['field'] = 'field_popsu_actu_date_fin_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['operator'] = '>=';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['default_date'] = 'now';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['link_to_view'] = '0';
|
||||
|
||||
/* Display: Actualites Menu A venir */
|
||||
$handler = $view->new_display('block', 'Actualites Menu A venir', 'block_1');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Actualites a venir';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['pager'] = FALSE;
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'list';
|
||||
$handler->display->display_options['style_options']['class'] = 'menu';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '<span class="actu-link actu-link-[nid]">[title]</span>';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de début de publication de l'actualité sur la page d'accueil (field_popsu_actu_date) */
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['id'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['field'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_actu' => 'popsu_actu',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Date de fin de publication de l'actualité sur la page d'accueil (field_popsu_actu_date_fin) */
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['id'] = 'field_popsu_actu_date_fin_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['table'] = 'field_data_field_popsu_actu_date_fin';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['field'] = 'field_popsu_actu_date_fin_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['operator'] = '>';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['default_date'] = 'now';
|
||||
/* Critère de filtrage: Contenu : Date de début de publication de l'actualité sur la page d'accueil (field_popsu_actu_date) */
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['id'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['field'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['operator'] = '<=';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['default_date'] = 'now';
|
||||
$handler->display->display_options['block_description'] = 'POPSU - Actualites - Menu A venir';
|
||||
|
||||
/* Display: Actualites Menu Passees */
|
||||
$handler = $view->new_display('block', 'Actualites Menu Passees', 'block_2');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Actualites passees';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['pager'] = FALSE;
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'list';
|
||||
$handler->display->display_options['style_options']['class'] = 'menu';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '<span class="actu-link actu-link-[nid]">[title]</span>';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_actu' => 'popsu_actu',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Date de fin de publication de l'actualité sur la page d'accueil (field_popsu_actu_date_fin) */
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['id'] = 'field_popsu_actu_date_fin_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['table'] = 'field_data_field_popsu_actu_date_fin';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['field'] = 'field_popsu_actu_date_fin_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['operator'] = '<=';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['default_date'] = 'now';
|
||||
/* Critère de filtrage: Contenu : Date de début de publication de l'actualité sur la page d'accueil (field_popsu_actu_date) */
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['id'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['field'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['operator'] = '<=';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['default_date'] = 'now';
|
||||
$handler->display->display_options['block_description'] = 'POPSU - Actualites - Menu Passees';
|
||||
|
||||
/* Display: Actualites CSS menu active */
|
||||
$handler = $view->new_display('panel_pane', 'Actualites CSS menu active', 'panel_pane_2');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
|
||||
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
/* Champ: Global : PHP */
|
||||
$handler->display->display_options['fields']['php']['id'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['php']['field'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['label'] = '';
|
||||
$handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
|
||||
$handler->display->display_options['fields']['php']['php_value'] = '$row->nid';
|
||||
$handler->display->display_options['fields']['php']['php_output'] = '<style>
|
||||
#sidebar-first .left-nav-level-1 ul.menu li a span.actu-link-<?php echo $row->nid; ?> {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>';
|
||||
$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
|
||||
$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Nid */
|
||||
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['nid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Nid',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Actualites CSS titre switcher */
|
||||
$handler = $view->new_display('panel_pane', 'Actualites CSS titre switcher', 'panel_pane_3');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
|
||||
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
/* Champ: Global : PHP */
|
||||
$handler->display->display_options['fields']['php']['id'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['php']['field'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['label'] = '';
|
||||
$handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
|
||||
$handler->display->display_options['fields']['php']['php_value'] = '$row->nid';
|
||||
$handler->display->display_options['fields']['php']['php_output'] = '<style>
|
||||
.title-actu.title-a-venir {
|
||||
display: block;
|
||||
}
|
||||
.title-actu.title-passees {
|
||||
display: none;
|
||||
}
|
||||
</style>';
|
||||
$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
|
||||
$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Nid */
|
||||
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['nid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_actu' => 'popsu_actu',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Date de début de publication de l'actualité sur la page d'accueil (field_popsu_actu_date) */
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['id'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['field'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['operator'] = '>';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['default_date'] = 'now';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Nid',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Actualites A venir Block */
|
||||
$handler = $view->new_display('block', 'Actualites A venir Block', 'block_3');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Actualites a venir';
|
||||
$handler->display->display_options['defaults']['css_class'] = FALSE;
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['pager'] = FALSE;
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '<span class="actu-link actu-link-[nid]">[title]</span>';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Date de début de publication de l'actualité sur la page d'accueil */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['id'] = 'field_popsu_actu_date';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['field'] = 'field_popsu_actu_date';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['settings'] = array(
|
||||
'format_type' => 'popsu_yyyy_mm_dd',
|
||||
'fromto' => 'both',
|
||||
'multiple_number' => '',
|
||||
'multiple_from' => '',
|
||||
'multiple_to' => '',
|
||||
);
|
||||
/* Champ: Contenu : Date de fin de publication de l'actualité sur la page d'accueil */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['id'] = 'field_popsu_actu_date_fin';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['table'] = 'field_data_field_popsu_actu_date_fin';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['field'] = 'field_popsu_actu_date_fin';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['alter']['text'] = 'du [field_popsu_actu_date] au [field_popsu_actu_date_fin]';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['empty'] = '[field_popsu_actu_date]';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['empty_zero'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['settings'] = array(
|
||||
'format_type' => 'popsu_yyyy_mm_dd',
|
||||
'fromto' => 'both',
|
||||
'multiple_number' => '',
|
||||
'multiple_from' => '',
|
||||
'multiple_to' => '',
|
||||
);
|
||||
/* Champ: Contenu : Sous-titre de l'actualité */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['id'] = 'field_popsu_actu_soustitre';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['table'] = 'field_data_field_popsu_actu_soustitre';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['field'] = 'field_popsu_actu_soustitre';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['alter']['text'] = '[field_popsu_actu_soustitre] - [field_popsu_actu_date_fin]';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['empty'] = '[field_popsu_actu_date_fin]';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['empty_zero'] = TRUE;
|
||||
/* Champ: Contenu : Texte de l'actualité */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['id'] = 'field_popsu_actu_body';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['table'] = 'field_data_field_popsu_actu_body';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['field'] = 'field_popsu_actu_body';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Image de l'actualité */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['id'] = 'field_popsu_actu_image';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['table'] = 'field_data_field_popsu_actu_image';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['field'] = 'field_popsu_actu_image';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['alter']['text'] = '<div class="actu-col-img">[field_popsu_actu_image]</div>
|
||||
<div class="actu-col-body">[field_popsu_actu_body]</div>';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['empty'] = '[field_popsu_actu_body]';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['empty_zero'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['settings'] = array(
|
||||
'image_style' => 'popsu-actu-listing',
|
||||
'image_link' => '',
|
||||
);
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de début de publication de l'actualité sur la page d'accueil (field_popsu_actu_date) */
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['id'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['field'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_actu' => 'popsu_actu',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Date de fin de publication de l'actualité sur la page d'accueil (field_popsu_actu_date_fin) */
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['id'] = 'field_popsu_actu_date_fin_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['table'] = 'field_data_field_popsu_actu_date_fin';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['field'] = 'field_popsu_actu_date_fin_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['operator'] = '>';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['default_date'] = 'now';
|
||||
/* Critère de filtrage: Contenu : Date de début de publication de l'actualité sur la page d'accueil (field_popsu_actu_date) */
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['id'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['field'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['operator'] = '<=';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['default_date'] = 'now';
|
||||
$handler->display->display_options['block_description'] = 'POPSU - Actualites - Block A venir';
|
||||
|
||||
/* Display: Actualites Passees Block */
|
||||
$handler = $view->new_display('block', 'Actualites Passees Block', 'block_4');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Actualites a venir';
|
||||
$handler->display->display_options['defaults']['css_class'] = FALSE;
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['pager'] = FALSE;
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'panels_fields';
|
||||
$handler->display->display_options['row_options']['layout'] = 'flexible:popsu_70_30_accordion_pic';
|
||||
$handler->display->display_options['row_options']['regions'] = array(
|
||||
'nid' => 'title_',
|
||||
'title' => 'title_',
|
||||
'field_popsu_actu_date' => 'title_',
|
||||
'field_popsu_actu_date_fin' => 'title_',
|
||||
'field_popsu_actu_soustitre' => 'title_',
|
||||
'field_popsu_actu_body' => 'title',
|
||||
'field_popsu_actu_image' => 'title',
|
||||
);
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '<span class="actu-link actu-link-[nid]">[title]</span>';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Date de début de publication de l'actualité sur la page d'accueil */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['id'] = 'field_popsu_actu_date';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['field'] = 'field_popsu_actu_date';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date']['settings'] = array(
|
||||
'format_type' => 'popsu_yyyy_mm_dd',
|
||||
'fromto' => 'both',
|
||||
'multiple_number' => '',
|
||||
'multiple_from' => '',
|
||||
'multiple_to' => '',
|
||||
);
|
||||
/* Champ: Contenu : Date de fin de publication de l'actualité sur la page d'accueil */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['id'] = 'field_popsu_actu_date_fin';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['table'] = 'field_data_field_popsu_actu_date_fin';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['field'] = 'field_popsu_actu_date_fin';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['alter']['text'] = 'du [field_popsu_actu_date] au [field_popsu_actu_date_fin]';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['empty'] = '[field_popsu_actu_date]';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['empty_zero'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_date_fin']['settings'] = array(
|
||||
'format_type' => 'popsu_yyyy_mm_dd',
|
||||
'fromto' => 'both',
|
||||
'multiple_number' => '',
|
||||
'multiple_from' => '',
|
||||
'multiple_to' => '',
|
||||
);
|
||||
/* Champ: Contenu : Sous-titre de l'actualité */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['id'] = 'field_popsu_actu_soustitre';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['table'] = 'field_data_field_popsu_actu_soustitre';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['field'] = 'field_popsu_actu_soustitre';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['alter']['text'] = '<div class="actu-pseudo-title">[title]</div>
|
||||
<div class="actu-pseudo-subtitle">[field_popsu_actu_soustitre] - [field_popsu_actu_date_fin]</div>';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['empty'] = '<div class="actu-pseudo-title">[title]</div>
|
||||
<div class="actu-pseudo-subtitle">field_popsu_actu_date_fin]</div>';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_soustitre']['empty_zero'] = TRUE;
|
||||
/* Champ: Contenu : Texte de l'actualité */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['id'] = 'field_popsu_actu_body';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['table'] = 'field_data_field_popsu_actu_body';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['field'] = 'field_popsu_actu_body';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_body']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Image de l'actualité */
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['id'] = 'field_popsu_actu_image';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['table'] = 'field_data_field_popsu_actu_image';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['field'] = 'field_popsu_actu_image';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['alter']['text'] = '<div class="actu-col-img">[field_popsu_actu_image]</div>
|
||||
<div class="actu-col-body">[field_popsu_actu_body]</div>';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['empty'] = '[field_popsu_actu_body]';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['empty_zero'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_actu_image']['settings'] = array(
|
||||
'image_style' => 'popsu-actu-listing',
|
||||
'image_link' => '',
|
||||
);
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de début de publication de l'actualité sur la page d'accueil (field_popsu_actu_date) */
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['id'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['sorts']['field_popsu_actu_date_value']['field'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_actu' => 'popsu_actu',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Date de fin de publication de l'actualité sur la page d'accueil (field_popsu_actu_date_fin) */
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['id'] = 'field_popsu_actu_date_fin_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['table'] = 'field_data_field_popsu_actu_date_fin';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['field'] = 'field_popsu_actu_date_fin_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['operator'] = '<=';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_fin_value']['default_date'] = 'now';
|
||||
/* Critère de filtrage: Contenu : Date de début de publication de l'actualité sur la page d'accueil (field_popsu_actu_date) */
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['id'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['table'] = 'field_data_field_popsu_actu_date';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['field'] = 'field_popsu_actu_date_value';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['operator'] = '<=';
|
||||
$handler->display->display_options['filters']['field_popsu_actu_date_value']['default_date'] = 'now';
|
||||
$handler->display->display_options['block_description'] = 'POPSU - Actualites - Block Passees';
|
||||
$translatables['actualites'] = array(
|
||||
t('Master'),
|
||||
t('Actualités'),
|
||||
t('Voir toutes les actualités'),
|
||||
t('Appliquer'),
|
||||
t('Réinitialiser'),
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('Éléments par page'),
|
||||
t('- Tout -'),
|
||||
t('Décalage'),
|
||||
t('« premier'),
|
||||
t('‹ précédent'),
|
||||
t('suivant ›'),
|
||||
t('dernier »'),
|
||||
t('/actualites'),
|
||||
t('<a href="[path]">[title]</a>'),
|
||||
t('[field_popsu_actu_soustitre] - '),
|
||||
t('[field_popsu_actu_soustitre][field_popsu_actu_date]'),
|
||||
t('<a href="[path]">[field_popsu_actu_body]</a>'),
|
||||
t('Modifier cette actu'),
|
||||
t('<a href="[path]">voir toutes les actualités</a>'),
|
||||
t('voir toutes les actualités'),
|
||||
t('Actualite Last for Home Pane'),
|
||||
t('Actualite'),
|
||||
t('Volets de vue'),
|
||||
t('Actualites Menu A venir'),
|
||||
t('Actualites a venir'),
|
||||
t('plus'),
|
||||
t('<span class="actu-link actu-link-[nid]">[title]</span>'),
|
||||
t('POPSU - Actualites - Menu A venir'),
|
||||
t('Actualites Menu Passees'),
|
||||
t('Actualites passees'),
|
||||
t('POPSU - Actualites - Menu Passees'),
|
||||
t('Actualites CSS menu active'),
|
||||
t('Tout'),
|
||||
t('Actualites CSS titre switcher'),
|
||||
t('Actualites A venir Block'),
|
||||
t('du [field_popsu_actu_date] au [field_popsu_actu_date_fin]'),
|
||||
t('[field_popsu_actu_date]'),
|
||||
t('[field_popsu_actu_soustitre] - [field_popsu_actu_date_fin]'),
|
||||
t('[field_popsu_actu_date_fin]'),
|
||||
t('<div class="actu-col-img">[field_popsu_actu_image]</div>
|
||||
<div class="actu-col-body">[field_popsu_actu_body]</div>'),
|
||||
t('[field_popsu_actu_body]'),
|
||||
t('POPSU - Actualites - Block A venir'),
|
||||
t('Actualites Passees Block'),
|
||||
t('<div class="actu-pseudo-title">[title]</div>
|
||||
<div class="actu-pseudo-subtitle">[field_popsu_actu_soustitre] - [field_popsu_actu_date_fin]</div>'),
|
||||
t('<div class="actu-pseudo-title">[title]</div>
|
||||
<div class="actu-pseudo-subtitle">field_popsu_actu_date_fin]</div>'),
|
||||
t('POPSU - Actualites - Block Passees'),
|
||||
);
|
||||
$export['actualites'] = $view;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_colloques.context.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_context_default_contexts().
|
||||
*/
|
||||
function popsu_colloques_context_default_contexts() {
|
||||
$export = array();
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-colloque-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Colloque (feature)';
|
||||
$context->tag = 'colloques-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_colloque' => 'popsu_colloque',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'menu_block-1' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '1',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
'menu_block-5' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '5',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 0;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Colloque (feature)');
|
||||
t('colloques-feature');
|
||||
$export['popsu-colloque-node'] = $context;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,323 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_colloques.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_colloques_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_colloque-field_popsu_colloque_body'.
|
||||
$fields['node-popsu_colloque-field_popsu_colloque_body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_colloque_body',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_with_summary',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_colloque',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '1',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_colloque_body',
|
||||
'label' => 'Texte de présentation du colloque',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'display_summary' => 0,
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '40',
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => '2',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_colloque-field_popsu_colloque_imageintro'.
|
||||
$fields['node-popsu_colloque-field_popsu_colloque_imageintro'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_colloque_imageintro',
|
||||
'foreign keys' => array(
|
||||
'fid' => array(
|
||||
'columns' => array(
|
||||
'fid' => 'fid',
|
||||
),
|
||||
'table' => 'file_managed',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'default_image' => 0,
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'image',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_colloque',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => '',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => '2',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_colloque_imageintro',
|
||||
'label' => 'Image d\'introduction',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'png gif jpg jpeg',
|
||||
'filefield_paths' => array(
|
||||
'active_updating' => 0,
|
||||
'file_name' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
|
||||
),
|
||||
'file_path' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => 'nodes/[node:content-type]/[node:nid]/imageintro',
|
||||
),
|
||||
'retroactive_update' => 0,
|
||||
),
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_colloque-field_popsu_colloque_subtitle'.
|
||||
$fields['node-popsu_colloque-field_popsu_colloque_subtitle'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_colloque_subtitle',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'max_length' => '255',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'text',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_colloque',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '0',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_colloque_subtitle',
|
||||
'label' => 'Sous-titre',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '0',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'size' => '60',
|
||||
),
|
||||
'type' => 'text_textfield',
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_colloque-field_popsu_colloque_subtitle2'.
|
||||
$fields['node-popsu_colloque-field_popsu_colloque_subtitle2'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_colloque_subtitle2',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_long',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_colloque',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 5,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_colloque_subtitle2',
|
||||
'label' => 'Sous-titre',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '5',
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => '4',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Image d\'introduction');
|
||||
t('Sous-titre');
|
||||
t('Texte de présentation du colloque');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_colloques.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_colloques_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "context" && $api == "context") {
|
||||
return array("version" => "3");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "page_manager" && $api == "pages_default") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "panels_mini" && $api == "panels_default") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*/
|
||||
function popsu_colloques_views_api() {
|
||||
return array("version" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_colloques_node_info() {
|
||||
$items = array(
|
||||
'popsu_colloque' => array(
|
||||
'name' => t('Colloque'),
|
||||
'base' => 'node_content',
|
||||
'description' => t('Ce type de contenu permet de créer la page de synthèse d\'un colloque.'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre du colloque'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_colloques.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_colloques_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_colloque_basic|node|popsu_colloque|form';
|
||||
$field_group->group_name = 'group_popsu_colloque_basic';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_colloque';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Informations essentielles',
|
||||
'weight' => '2',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_colloque_subtitle',
|
||||
1 => 'field_popsu_colloque_subtitle2',
|
||||
2 => 'title',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_colloque_basic|node|popsu_colloque|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_colloque_images|node|popsu_colloque|form';
|
||||
$field_group->group_name = 'group_popsu_colloque_images';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_colloque';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Images',
|
||||
'weight' => '4',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_colloque_imageintro',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_colloque_images|node|popsu_colloque|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_colloque_intro|node|popsu_colloque|form';
|
||||
$field_group->group_name = 'group_popsu_colloque_intro';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_colloque';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Introduction',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_colloque_body',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_colloque_intro|node|popsu_colloque|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
name = POPSU Colloques
|
||||
description = POPSU - Type de contenu Colloques
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
php = 5.2.4
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_colloques
|
||||
dependencies[] = context
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = field_group
|
||||
dependencies[] = filefield_paths
|
||||
dependencies[] = image
|
||||
dependencies[] = menu_block
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = panels
|
||||
dependencies[] = panels_mini
|
||||
dependencies[] = popsu_taxonomies
|
||||
dependencies[] = search
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = views
|
||||
dependencies[] = views_content
|
||||
features[context][] = popsu-colloque-node
|
||||
features[ctools][] = context:context:3
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = page_manager:pages_default:1
|
||||
features[ctools][] = panels_mini:panels_default:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:1
|
||||
features[field][] = node-popsu_colloque-field_popsu_colloque_body
|
||||
features[field][] = node-popsu_colloque-field_popsu_colloque_imageintro
|
||||
features[field][] = node-popsu_colloque-field_popsu_colloque_subtitle
|
||||
features[field][] = node-popsu_colloque-field_popsu_colloque_subtitle2
|
||||
features[field_group][] = group_popsu_colloque_basic|node|popsu_colloque|form
|
||||
features[field_group][] = group_popsu_colloque_images|node|popsu_colloque|form
|
||||
features[field_group][] = group_popsu_colloque_intro|node|popsu_colloque|form
|
||||
features[node][] = popsu_colloque
|
||||
features[page_manager_handlers][] = node_view_panel_context_3
|
||||
features[panels_mini][] = popsu_mini_ville_colloque
|
||||
features[variable][] = field_bundle_settings_node__popsu_colloque
|
||||
features[variable][] = language_content_type_popsu_colloque
|
||||
features[variable][] = menu_options_popsu_colloque
|
||||
features[variable][] = menu_parent_popsu_colloque
|
||||
features[variable][] = node_options_popsu_colloque
|
||||
features[variable][] = node_preview_popsu_colloque
|
||||
features[variable][] = node_submitted_popsu_colloque
|
||||
features[views_view][] = colloques
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Colloques feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_colloques.features.inc';
|
||||
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_colloques.pages_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_page_manager_handlers().
|
||||
*/
|
||||
function popsu_colloques_default_page_manager_handlers() {
|
||||
$export = array();
|
||||
|
||||
$handler = new stdClass();
|
||||
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
||||
$handler->api_version = 1;
|
||||
$handler->name = 'node_view_panel_context_3';
|
||||
$handler->task = 'node_view';
|
||||
$handler->subtask = '';
|
||||
$handler->handler = 'panel_context';
|
||||
$handler->weight = 2;
|
||||
$handler->conf = array(
|
||||
'title' => 'Colloques (feature)',
|
||||
'no_blocks' => 0,
|
||||
'pipeline' => 'standard',
|
||||
'body_classes_to_remove' => '',
|
||||
'body_classes_to_add' => '',
|
||||
'css_id' => '',
|
||||
'css' => '',
|
||||
'contexts' => array(),
|
||||
'relationships' => array(),
|
||||
'access' => array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'node_type',
|
||||
'settings' => array(
|
||||
'type' => array(
|
||||
'popsu_colloque' => 'popsu_colloque',
|
||||
),
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
'logic' => 'and',
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'twocol_stacked';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'top' => NULL,
|
||||
'left' => NULL,
|
||||
'right' => NULL,
|
||||
'bottom' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = 'Colloque : %node:title';
|
||||
$display->content = array();
|
||||
$display->panels = array();
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-1';
|
||||
$pane->panel = 'bottom';
|
||||
$pane->type = 'node_content';
|
||||
$pane->subtype = 'node_content';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'links' => 0,
|
||||
'no_extras' => 0,
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
'identifier' => '',
|
||||
'link' => 0,
|
||||
'leave_node_title' => 0,
|
||||
'build_mode' => 'full',
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-1'] = $pane;
|
||||
$display->panels['bottom'][0] = 'new-1';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-2';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'node_title';
|
||||
$pane->subtype = 'node_title';
|
||||
$pane->shown = FALSE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'link' => 1,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 0,
|
||||
'override_title_text' => '',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-2'] = $pane;
|
||||
$display->panels['top'][0] = 'new-2';
|
||||
$display->hide_title = PANELS_TITLE_FIXED;
|
||||
$display->title_pane = '0';
|
||||
$handler->conf['display'] = $display;
|
||||
$export['node_view_panel_context_3'] = $handler;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,208 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_colloques.panels_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_panels_mini().
|
||||
*/
|
||||
function popsu_colloques_default_panels_mini() {
|
||||
$export = array();
|
||||
|
||||
$mini = new stdClass();
|
||||
$mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
|
||||
$mini->api_version = 1;
|
||||
$mini->name = 'popsu_mini_ville_colloque';
|
||||
$mini->category = 'POPSU Mini';
|
||||
$mini->admin_title = 'POPSU Mini - Ville - Colloque';
|
||||
$mini->admin_description = 'Mini panel pour afficher le colloque dans la page ville';
|
||||
$mini->requiredcontexts = array(
|
||||
0 => array(
|
||||
'identifier' => 'Nœud',
|
||||
'keyword' => 'node',
|
||||
'name' => 'entity:node',
|
||||
'entity_id' => '',
|
||||
'id' => 1,
|
||||
),
|
||||
);
|
||||
$mini->contexts = array();
|
||||
$mini->relationships = array(
|
||||
0 => array(
|
||||
'identifier' => 'Terme de taxonomie from Nœud (on Nœud: Ville [field_popsu_ville_ville])',
|
||||
'keyword' => 'taxonomy_term',
|
||||
'name' => 'entity_from_field:field_popsu_ville_ville-node-taxonomy_term',
|
||||
'delta' => 0,
|
||||
'context' => 'requiredcontext_entity:node_1',
|
||||
'id' => 1,
|
||||
),
|
||||
1 => array(
|
||||
'identifier' => 'Terme de taxonomie from Nœud (on Nœud: POPSU [field_popsu_ville_popsu])',
|
||||
'keyword' => 'taxonomy_term_2',
|
||||
'name' => 'entity_from_field:field_popsu_ville_popsu-node-taxonomy_term',
|
||||
'delta' => 0,
|
||||
'context' => 'requiredcontext_entity:node_1',
|
||||
'id' => 1,
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'twocol_70_30_stacked';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'header' => NULL,
|
||||
'top' => NULL,
|
||||
'left' => NULL,
|
||||
'right' => NULL,
|
||||
'footer' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = '';
|
||||
$display->content = array();
|
||||
$display->panels = array();
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-1';
|
||||
$pane->panel = 'left';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_colloque_body';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'requiredcontext_entity:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-1'] = $pane;
|
||||
$display->panels['left'][0] = 'new-1';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-2';
|
||||
$pane->panel = 'left';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'colloques-panel_pane_1';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_colloque_ville_tid' => '%taxonomy_term:tid',
|
||||
'field_popsu_colloque_popsu_tid' => '%taxonomy_term_2:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-2'] = $pane;
|
||||
$display->panels['left'][1] = 'new-2';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-3';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_colloque_subtitle';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'requiredcontext_entity:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-3'] = $pane;
|
||||
$display->panels['right'][0] = 'new-3';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-4';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_colloque_imageintro';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'image',
|
||||
'delta_limit' => '0',
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => 0,
|
||||
'formatter_settings' => array(
|
||||
'image_style' => 'thumbnail',
|
||||
'image_link' => '',
|
||||
),
|
||||
'context' => 'requiredcontext_entity:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-4'] = $pane;
|
||||
$display->panels['right'][1] = 'new-4';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-5';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'custom';
|
||||
$pane->subtype = 'custom';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'admin_title' => 'POPSU Fermeture de liste',
|
||||
'title' => '<none>',
|
||||
'body' => '<div></div>',
|
||||
'format' => 'php_code',
|
||||
'substitute' => 0,
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'border-last',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 2;
|
||||
$pane->locks = array();
|
||||
$display->content['new-5'] = $pane;
|
||||
$display->panels['right'][2] = 'new-5';
|
||||
$display->hide_title = PANELS_TITLE_NONE;
|
||||
$display->title_pane = 'new-1';
|
||||
$mini->display = $display;
|
||||
$export['popsu_mini_ville_colloque'] = $mini;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_colloques.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_colloques_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__popsu_colloque';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(
|
||||
'teaser' => array(
|
||||
'custom_settings' => TRUE,
|
||||
),
|
||||
'full' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'rss' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_index' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_result' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'token' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '1',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '5',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_colloque'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'language_content_type_popsu_colloque';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_colloque'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_options_popsu_colloque';
|
||||
$strongarm->value = array(
|
||||
0 => 'menu-popsu1-menu',
|
||||
1 => 'menu-popsu2-menu',
|
||||
);
|
||||
$export['menu_options_popsu_colloque'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_parent_popsu_colloque';
|
||||
$strongarm->value = 'menu-popsu1-menu:0';
|
||||
$export['menu_parent_popsu_colloque'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_options_popsu_colloque';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_colloque'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_preview_popsu_colloque';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_colloque'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_submitted_popsu_colloque';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_popsu_colloque'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,438 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_colloques.views_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_views_default_views().
|
||||
*/
|
||||
function popsu_colloques_views_default_views() {
|
||||
$export = array();
|
||||
|
||||
$view = new view();
|
||||
$view->name = 'colloques';
|
||||
$view->description = 'Liste des publications';
|
||||
$view->tag = 'POPSU';
|
||||
$view->base_table = 'node';
|
||||
$view->human_name = 'Colloques';
|
||||
$view->core = 7;
|
||||
$view->api_version = '3.0';
|
||||
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||||
|
||||
/* Display: Master */
|
||||
$handler = $view->new_display('default', 'Master', 'default');
|
||||
$handler->display->display_options['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['use_more_text'] = 'plus';
|
||||
$handler->display->display_options['access']['type'] = 'perm';
|
||||
$handler->display->display_options['cache']['type'] = 'none';
|
||||
$handler->display->display_options['query']['type'] = 'views_query';
|
||||
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||||
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
|
||||
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
|
||||
$handler->display->display_options['pager']['type'] = 'full';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Éléments par page';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Tout -';
|
||||
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Décalage';
|
||||
$handler->display->display_options['pager']['options']['tags']['first'] = '« premier';
|
||||
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ précédent';
|
||||
$handler->display->display_options['pager']['options']['tags']['next'] = 'suivant ›';
|
||||
$handler->display->display_options['pager']['options']['tags']['last'] = 'dernier »';
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
/* Relation: Contenu : Termes de taxonomie du nœud */
|
||||
$handler->display->display_options['relationships']['term_node_tid']['id'] = 'term_node_tid';
|
||||
$handler->display->display_options['relationships']['term_node_tid']['table'] = 'node';
|
||||
$handler->display->display_options['relationships']['term_node_tid']['field'] = 'term_node_tid';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
/* Critère de tri: Terme de taxonomie : Poids */
|
||||
$handler->display->display_options['sorts']['weight']['id'] = 'weight';
|
||||
$handler->display->display_options['sorts']['weight']['table'] = 'taxonomy_term_data';
|
||||
$handler->display->display_options['sorts']['weight']['field'] = 'weight';
|
||||
$handler->display->display_options['sorts']['weight']['relationship'] = 'term_node_tid';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_colloque' => 'popsu_colloque',
|
||||
);
|
||||
|
||||
/* Display: Tous les colloques */
|
||||
$handler = $view->new_display('page', 'Tous les colloques', 'page_1');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Tous les colloques';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['path'] = 'colloques';
|
||||
|
||||
/* Display: Colloques par ville Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Colloques par ville Pane', 'panel_pane_1');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'panels_fields';
|
||||
$handler->display->display_options['row_options']['layout'] = 'flexible:popsu_70_30_accordion';
|
||||
$handler->display->display_options['row_options']['regions'] = array(
|
||||
'nid' => 'title',
|
||||
'field_popsu_colloque_ville' => 'title',
|
||||
'edit_node' => 'left',
|
||||
'field_popsu_colloque_body' => 'left',
|
||||
'edit_node_1' => 'right',
|
||||
'view' => 'right',
|
||||
'view_1' => 'right',
|
||||
'view_2' => 'right',
|
||||
'php' => 'right',
|
||||
);
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['relationships'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Global : PHP */
|
||||
$handler->display->display_options['fields']['php_1']['id'] = 'php_1';
|
||||
$handler->display->display_options['fields']['php_1']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['php_1']['field'] = 'php';
|
||||
$handler->display->display_options['fields']['php_1']['label'] = '';
|
||||
$handler->display->display_options['fields']['php_1']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['php_1']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['php_1']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['php_1']['use_php_setup'] = 0;
|
||||
$handler->display->display_options['fields']['php_1']['php_output'] = '<?php echo drupal_get_path_alias(); ?>';
|
||||
$handler->display->display_options['fields']['php_1']['use_php_click_sortable'] = '0';
|
||||
$handler->display->display_options['fields']['php_1']['php_click_sortable'] = '';
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['nid']['element_default_classes'] = FALSE;
|
||||
/* Champ: Contenu : Sous-titre */
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['id'] = 'field_popsu_colloque_subtitle2';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['table'] = 'field_data_field_popsu_colloque_subtitle2';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['field'] = 'field_popsu_colloque_subtitle2';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Ville */
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['id'] = 'field_popsu_colloque_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['table'] = 'field_data_field_popsu_colloque_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['field'] = 'field_popsu_colloque_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['alter']['text'] = 'Colloque<br>
|
||||
<span class="colloque-subtitle">[field_popsu_colloque_subtitle2]</span>';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['type'] = 'taxonomy_term_reference_plain';
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier ce colloque';
|
||||
/* Champ: Contenu : Texte de présentation du colloque */
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['id'] = 'field_popsu_colloque_body';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['table'] = 'field_data_field_popsu_colloque_body';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['field'] = 'field_popsu_colloque_body';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['element_class'] = 'field-type-text';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node_1']['id'] = 'edit_node_1';
|
||||
$handler->display->display_options['fields']['edit_node_1']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['text'] = '<a href="/node/add/popsu-document/[nid]?destination=[php_1]">Ajouter un document</a>';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_class'] = 'admin-add-item admin-add-item-margin';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['hide_empty'] = TRUE;
|
||||
/* Champ: Global : Voir */
|
||||
$handler->display->display_options['fields']['view']['id'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['view']['field'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['label'] = 'Programme';
|
||||
$handler->display->display_options['fields']['view']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['view']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['view']['view'] = 'documents';
|
||||
$handler->display->display_options['fields']['view']['arguments'] = '[!nid],48';
|
||||
/* Champ: Global : Voir */
|
||||
$handler->display->display_options['fields']['view_1']['id'] = 'view_1';
|
||||
$handler->display->display_options['fields']['view_1']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['view_1']['field'] = 'view';
|
||||
$handler->display->display_options['fields']['view_1']['label'] = 'Retranscription';
|
||||
$handler->display->display_options['fields']['view_1']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['view_1']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['view_1']['view'] = 'documents';
|
||||
$handler->display->display_options['fields']['view_1']['arguments'] = '[!nid],49';
|
||||
/* Champ: Global : Voir */
|
||||
$handler->display->display_options['fields']['view_2']['id'] = 'view_2';
|
||||
$handler->display->display_options['fields']['view_2']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['view_2']['field'] = 'view';
|
||||
$handler->display->display_options['fields']['view_2']['label'] = 'Dossier Traits Urbains';
|
||||
$handler->display->display_options['fields']['view_2']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['view_2']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['view_2']['view'] = 'documents';
|
||||
$handler->display->display_options['fields']['view_2']['arguments'] = '[!nid],50';
|
||||
/* Champ: Global : PHP */
|
||||
$handler->display->display_options['fields']['php']['id'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['php']['field'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['label'] = '';
|
||||
$handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
|
||||
$handler->display->display_options['fields']['php']['php_output'] = '<div class="border-last"></div>';
|
||||
$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
|
||||
$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Ville (field_popsu_colloque_ville) */
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_ville_tid']['id'] = 'field_popsu_colloque_ville_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_ville_tid']['table'] = 'field_data_field_popsu_colloque_ville';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_ville_tid']['field'] = 'field_popsu_colloque_ville_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_ville_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_ville_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_ville_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_ville_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_ville_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_ville_tid']['summary_options']['items_per_page'] = '25';
|
||||
/* Filtre contextuel: Contenu : POPSU (field_popsu_colloque_popsu) */
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['id'] = 'field_popsu_colloque_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['table'] = 'field_data_field_popsu_colloque_popsu';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['field'] = 'field_popsu_colloque_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_colloque_ville_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Ville (field_popsu_colloque_ville)',
|
||||
),
|
||||
'field_popsu_colloque_popsu_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : POPSU (field_popsu_colloque_popsu)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Colloques par POPSU Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Colloques par POPSU Pane', 'panel_pane_2');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'panels_fields';
|
||||
$handler->display->display_options['row_options']['layout'] = 'flexible:popsu_70_30_accordion';
|
||||
$handler->display->display_options['row_options']['regions'] = array(
|
||||
'php_1' => 'title',
|
||||
'nid' => 'title',
|
||||
'field_popsu_colloque_ville' => 'title',
|
||||
'field_popsu_colloque_subtitle' => 'title',
|
||||
'edit_node' => 'left',
|
||||
'field_popsu_colloque_body' => 'left',
|
||||
'edit_node_1' => 'right',
|
||||
'view' => 'right',
|
||||
'view_1' => 'right',
|
||||
'view_2' => 'right',
|
||||
'php' => 'right',
|
||||
);
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['relationships'] = FALSE;
|
||||
/* Relation: Contenu : Ville (field_popsu_colloque_ville) */
|
||||
$handler->display->display_options['relationships']['field_popsu_colloque_ville_tid']['id'] = 'field_popsu_colloque_ville_tid';
|
||||
$handler->display->display_options['relationships']['field_popsu_colloque_ville_tid']['table'] = 'field_data_field_popsu_colloque_ville';
|
||||
$handler->display->display_options['relationships']['field_popsu_colloque_ville_tid']['field'] = 'field_popsu_colloque_ville_tid';
|
||||
$handler->display->display_options['relationships']['field_popsu_colloque_ville_tid']['required'] = TRUE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Global : PHP */
|
||||
$handler->display->display_options['fields']['php_1']['id'] = 'php_1';
|
||||
$handler->display->display_options['fields']['php_1']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['php_1']['field'] = 'php';
|
||||
$handler->display->display_options['fields']['php_1']['label'] = '';
|
||||
$handler->display->display_options['fields']['php_1']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['php_1']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['php_1']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['php_1']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['php_1']['empty_zero'] = TRUE;
|
||||
$handler->display->display_options['fields']['php_1']['use_php_setup'] = 0;
|
||||
$handler->display->display_options['fields']['php_1']['php_output'] = '<?php echo drupal_get_path_alias(); ?>';
|
||||
$handler->display->display_options['fields']['php_1']['use_php_click_sortable'] = '0';
|
||||
$handler->display->display_options['fields']['php_1']['php_click_sortable'] = '';
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['nid']['element_default_classes'] = FALSE;
|
||||
/* Champ: Contenu : Sous-titre */
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['id'] = 'field_popsu_colloque_subtitle2';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['table'] = 'field_data_field_popsu_colloque_subtitle2';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['field'] = 'field_popsu_colloque_subtitle2';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_subtitle2']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Ville */
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['id'] = 'field_popsu_colloque_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['table'] = 'field_data_field_popsu_colloque_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['field'] = 'field_popsu_colloque_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['alter']['text'] = '[field_popsu_colloque_ville]<br>
|
||||
<span class="colloque-subtitle">[field_popsu_colloque_subtitle2]</span>';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_ville']['type'] = 'taxonomy_term_reference_plain';
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier ce colloque';
|
||||
/* Champ: Contenu : Texte de présentation du colloque */
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['id'] = 'field_popsu_colloque_body';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['table'] = 'field_data_field_popsu_colloque_body';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['field'] = 'field_popsu_colloque_body';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['element_class'] = 'field-type-text';
|
||||
$handler->display->display_options['fields']['field_popsu_colloque_body']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node_1']['id'] = 'edit_node_1';
|
||||
$handler->display->display_options['fields']['edit_node_1']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['text'] = '<a href="/node/add/popsu-document/[nid]?destination=[php_1]">Ajouter un document</a>';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_class'] = 'admin-add-item admin-add-item-margin';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['hide_empty'] = TRUE;
|
||||
/* Champ: Global : Voir */
|
||||
$handler->display->display_options['fields']['view']['id'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['view']['field'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['label'] = 'Programme';
|
||||
$handler->display->display_options['fields']['view']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['view']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['view']['view'] = 'documents';
|
||||
$handler->display->display_options['fields']['view']['arguments'] = '[!nid],48';
|
||||
/* Champ: Global : Voir */
|
||||
$handler->display->display_options['fields']['view_1']['id'] = 'view_1';
|
||||
$handler->display->display_options['fields']['view_1']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['view_1']['field'] = 'view';
|
||||
$handler->display->display_options['fields']['view_1']['label'] = 'Retranscription';
|
||||
$handler->display->display_options['fields']['view_1']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['view_1']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['view_1']['view'] = 'documents';
|
||||
$handler->display->display_options['fields']['view_1']['arguments'] = '[!nid],49';
|
||||
/* Champ: Global : Voir */
|
||||
$handler->display->display_options['fields']['view_2']['id'] = 'view_2';
|
||||
$handler->display->display_options['fields']['view_2']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['view_2']['field'] = 'view';
|
||||
$handler->display->display_options['fields']['view_2']['label'] = 'Dossier Traits Urbains';
|
||||
$handler->display->display_options['fields']['view_2']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['view_2']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['view_2']['view'] = 'documents';
|
||||
$handler->display->display_options['fields']['view_2']['arguments'] = '[!nid],50';
|
||||
/* Champ: Global : PHP */
|
||||
$handler->display->display_options['fields']['php']['id'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['php']['field'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['label'] = '';
|
||||
$handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
|
||||
$handler->display->display_options['fields']['php']['php_output'] = '<div class="border-last"></div>';
|
||||
$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
|
||||
$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : POPSU (field_popsu_colloque_popsu) */
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['id'] = 'field_popsu_colloque_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['table'] = 'field_data_field_popsu_colloque_popsu';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['field'] = 'field_popsu_colloque_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_colloque_popsu_tid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_colloque_popsu_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : POPSU (field_popsu_colloque_popsu)',
|
||||
),
|
||||
);
|
||||
$translatables['colloques'] = array(
|
||||
t('Master'),
|
||||
t('plus'),
|
||||
t('Appliquer'),
|
||||
t('Réinitialiser'),
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('Éléments par page'),
|
||||
t('- Tout -'),
|
||||
t('Décalage'),
|
||||
t('« premier'),
|
||||
t('‹ précédent'),
|
||||
t('suivant ›'),
|
||||
t('dernier »'),
|
||||
t('terme'),
|
||||
t('Tous les colloques'),
|
||||
t('Colloques par ville Pane'),
|
||||
t('Colloque<br>
|
||||
<span class="colloque-subtitle">[field_popsu_colloque_subtitle2]</span>'),
|
||||
t('Modifier ce colloque'),
|
||||
t('<a href="/node/add/popsu-document/[nid]?destination=[php_1]">Ajouter un document</a>'),
|
||||
t('Programme'),
|
||||
t('Retranscription'),
|
||||
t('Dossier Traits Urbains'),
|
||||
t('Tout'),
|
||||
t('Volets de vue'),
|
||||
t('Colloques par POPSU Pane'),
|
||||
t('terme à partir de field_popsu_colloque_ville'),
|
||||
t('[field_popsu_colloque_ville]<br>
|
||||
<span class="colloque-subtitle">[field_popsu_colloque_subtitle2]</span>'),
|
||||
);
|
||||
$export['colloques'] = $view;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,423 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_documents.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_documents_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_document-field_popsu_doc_body'.
|
||||
$fields['node-popsu_document-field_popsu_doc_body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_doc_body',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_with_summary',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_document',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 1,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_doc_body',
|
||||
'label' => 'Résumé du document',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'display_summary' => 0,
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '20',
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => '6',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_document-field_popsu_doc_files'.
|
||||
$fields['node-popsu_document-field_popsu_doc_files'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_doc_files',
|
||||
'foreign keys' => array(
|
||||
'fid' => array(
|
||||
'columns' => array(
|
||||
'fid' => 'fid',
|
||||
),
|
||||
'table' => 'file_managed',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'file',
|
||||
'settings' => array(
|
||||
'display_default' => 0,
|
||||
'display_field' => 0,
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'file',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_document',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'file',
|
||||
'settings' => array(),
|
||||
'type' => 'file_default',
|
||||
'weight' => 4,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_doc_files',
|
||||
'label' => 'Fichier(s) joint(s) ',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'description_field' => 1,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'txt pdf zip rar xls doc xlsx docx ppt pptx',
|
||||
'filefield_paths' => array(
|
||||
'active_updating' => 0,
|
||||
'file_name' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
|
||||
),
|
||||
'file_path' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => 'nodes/[node:content-type]/[node:nid]/files',
|
||||
),
|
||||
'retroactive_update' => 0,
|
||||
),
|
||||
'max_filesize' => '',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'file',
|
||||
'settings' => array(
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'file_generic',
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_document-field_popsu_doc_parent'.
|
||||
$fields['node-popsu_document-field_popsu_doc_parent'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_doc_parent',
|
||||
'foreign keys' => array(
|
||||
'nid' => array(
|
||||
'columns' => array(
|
||||
'nid' => 'nid',
|
||||
),
|
||||
'table' => 'node',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'nid' => array(
|
||||
0 => 'nid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(
|
||||
'referenceable_types' => array(
|
||||
'article' => 0,
|
||||
'page' => 0,
|
||||
'popsu_actu' => 'popsu_actu',
|
||||
'popsu_colloque' => 'popsu_colloque',
|
||||
'popsu_document' => 0,
|
||||
'popsu_page' => 'popsu_page',
|
||||
'popsu_page_neutral' => 'popsu_page_neutral',
|
||||
'popsu_projet' => 'popsu_projet',
|
||||
'popsu_projet_europe' => 'popsu_projet_europe',
|
||||
'popsu_publication' => 'popsu_publication',
|
||||
'popsu_special' => 'popsu_special',
|
||||
'popsu_theme_europe' => 'popsu_theme_europe',
|
||||
'popsu_theme_local' => 'popsu_theme_local',
|
||||
'popsu_theme_trans' => 'popsu_theme_trans',
|
||||
'popsu_ville' => 'popsu_ville',
|
||||
'popsu_ville_europe' => 'popsu_ville_europe',
|
||||
),
|
||||
'view' => array(
|
||||
'args' => array(),
|
||||
'display_name' => '',
|
||||
'view_name' => '',
|
||||
),
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'node_reference',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_document',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(),
|
||||
'type' => 'node_reference_default',
|
||||
'weight' => 3,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_doc_parent',
|
||||
'label' => 'Page d\'attache du document',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'nodereference_url',
|
||||
'settings' => array(
|
||||
'autocomplete_match' => 'contains',
|
||||
'edit_fallback' => 1,
|
||||
'fallback' => 'autocomplete',
|
||||
'node_link' => array(
|
||||
'destination' => 'node',
|
||||
'full' => 1,
|
||||
'hover_title' => 'Ajouter un document attaché à cette page',
|
||||
'teaser' => 0,
|
||||
'title' => 'Ajouter un document',
|
||||
),
|
||||
),
|
||||
'type' => 'nodereference_url',
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_document-field_popsu_doc_source'.
|
||||
$fields['node-popsu_document-field_popsu_doc_source'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_doc_source',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'max_length' => '255',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'text',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_document',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => 'Ex: Article L.Monneraud (Volume 6, déc 2007)',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 5,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_doc_source',
|
||||
'label' => 'Origine/source de cette ressource',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '0',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'size' => '60',
|
||||
),
|
||||
'type' => 'text_textfield',
|
||||
'weight' => '5',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_document-field_popsu_doc_type'.
|
||||
$fields['node-popsu_document-field_popsu_doc_type'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_doc_type',
|
||||
'foreign keys' => array(
|
||||
'tid' => array(
|
||||
'columns' => array(
|
||||
'tid' => 'tid',
|
||||
),
|
||||
'table' => 'taxonomy_term_data',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'popsu_documents_type',
|
||||
'parent' => '0',
|
||||
),
|
||||
),
|
||||
'options_list_callback' => 'i18n_taxonomy_allowed_values',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'taxonomy_term_reference',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_document',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'i18n_taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'i18n_taxonomy_term_reference_link',
|
||||
'weight' => 2,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_doc_type',
|
||||
'label' => 'Type de document',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_select',
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Ex: Article L.Monneraud (Volume 6, déc 2007)');
|
||||
t('Fichier(s) joint(s) ');
|
||||
t('Origine/source de cette ressource');
|
||||
t('Page d\'attache du document');
|
||||
t('Résumé du document');
|
||||
t('Type de document');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_documents.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_documents_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*/
|
||||
function popsu_documents_views_api() {
|
||||
return array("version" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_documents_node_info() {
|
||||
$items = array(
|
||||
'popsu_document' => array(
|
||||
'name' => t('Document'),
|
||||
'base' => 'node_content',
|
||||
'description' => t('Ce type de contenu permet de créer un document lié à une autre page'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre du document'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_documents.features.taxonomy.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_taxonomy_default_vocabularies().
|
||||
*/
|
||||
function popsu_documents_taxonomy_default_vocabularies() {
|
||||
return array(
|
||||
'popsu_documents_type' => array(
|
||||
'name' => 'Type de document',
|
||||
'machine_name' => 'popsu_documents_type',
|
||||
'description' => 'Permet de préciser le type du document joint',
|
||||
'hierarchy' => '0',
|
||||
'module' => 'taxonomy',
|
||||
'weight' => '-7',
|
||||
'language' => 'und',
|
||||
'i18n_mode' => '0',
|
||||
'rdf_mapping' => array(
|
||||
'rdftype' => array(
|
||||
0 => 'skos:ConceptScheme',
|
||||
),
|
||||
'name' => array(
|
||||
'predicates' => array(
|
||||
0 => 'dc:title',
|
||||
),
|
||||
),
|
||||
'description' => array(
|
||||
'predicates' => array(
|
||||
0 => 'rdfs:comment',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_documents.features.uuid_term.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_uuid_features_default_terms().
|
||||
*/
|
||||
function popsu_documents_uuid_features_default_terms() {
|
||||
$terms = array();
|
||||
|
||||
$terms[] = array(
|
||||
'name' => 'Retranscription d\'un colloque',
|
||||
'description' => '',
|
||||
'format' => 'full_html',
|
||||
'weight' => '0',
|
||||
'uuid' => '1f244197-0c18-41d5-abc2-c116c409e999',
|
||||
'language' => 'und',
|
||||
'i18n_tsid' => '0',
|
||||
'vocabulary_machine_name' => 'popsu_documents_type',
|
||||
'url_alias' => array(
|
||||
0 => array(
|
||||
'alias' => 'type-de-document/retranscription-d-un-colloque',
|
||||
'language' => 'und',
|
||||
),
|
||||
),
|
||||
);
|
||||
$terms[] = array(
|
||||
'name' => 'Programme d\'un colloque',
|
||||
'description' => '',
|
||||
'format' => 'full_html',
|
||||
'weight' => '0',
|
||||
'uuid' => '4802699e-c349-4b57-ad66-a440db618456',
|
||||
'language' => 'und',
|
||||
'i18n_tsid' => '0',
|
||||
'vocabulary_machine_name' => 'popsu_documents_type',
|
||||
'url_alias' => array(
|
||||
0 => array(
|
||||
'alias' => 'type-de-document/programme-d-un-colloque',
|
||||
'language' => 'und',
|
||||
),
|
||||
),
|
||||
);
|
||||
$terms[] = array(
|
||||
'name' => 'Dossier Traits Urbains',
|
||||
'description' => '',
|
||||
'format' => 'full_html',
|
||||
'weight' => '0',
|
||||
'uuid' => 'd7c6449c-b829-46c1-ab34-db6de4a26ed2',
|
||||
'language' => 'und',
|
||||
'i18n_tsid' => '0',
|
||||
'vocabulary_machine_name' => 'popsu_documents_type',
|
||||
'url_alias' => array(
|
||||
0 => array(
|
||||
'alias' => 'type-de-document/dossier-traits-urbains',
|
||||
'language' => 'und',
|
||||
),
|
||||
),
|
||||
);
|
||||
return $terms;
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_documents.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_documents_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_doc_basic|node|popsu_document|form';
|
||||
$field_group->group_name = 'group_popsu_doc_basic';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_document';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Informations essentielles',
|
||||
'weight' => '0',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_doc_type',
|
||||
1 => 'field_popsu_doc_files',
|
||||
2 => 'title',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_doc_basic|node|popsu_document|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_doc_meta|node|popsu_document|form';
|
||||
$field_group->group_name = 'group_popsu_doc_meta';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_document';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Fiche descriptive',
|
||||
'weight' => '1',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_doc_body',
|
||||
1 => 'field_popsu_doc_source',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_doc_meta|node|popsu_document|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_doc_noderef|node|popsu_document|form';
|
||||
$field_group->group_name = 'group_popsu_doc_noderef';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_document';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Contenu réferrent',
|
||||
'weight' => '8',
|
||||
'children' => array(),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'collapsible',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_doc_noderef|node|popsu_document|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
name = POPSU Documents
|
||||
description = POPSU - Type de contenu Documents
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
php = 5.2.4
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_documents
|
||||
dependencies[] = field_group
|
||||
dependencies[] = file
|
||||
dependencies[] = filefield_paths
|
||||
dependencies[] = i18n_taxonomy
|
||||
dependencies[] = nodereference_url
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = uuid_features
|
||||
dependencies[] = views
|
||||
dependencies[] = views_content
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:1
|
||||
features[field][] = node-popsu_document-field_popsu_doc_body
|
||||
features[field][] = node-popsu_document-field_popsu_doc_files
|
||||
features[field][] = node-popsu_document-field_popsu_doc_parent
|
||||
features[field][] = node-popsu_document-field_popsu_doc_source
|
||||
features[field][] = node-popsu_document-field_popsu_doc_type
|
||||
features[field_group][] = group_popsu_doc_basic|node|popsu_document|form
|
||||
features[field_group][] = group_popsu_doc_meta|node|popsu_document|form
|
||||
features[field_group][] = group_popsu_doc_noderef|node|popsu_document|form
|
||||
features[node][] = popsu_document
|
||||
features[taxonomy][] = popsu_documents_type
|
||||
features[uuid_term][] = 1f244197-0c18-41d5-abc2-c116c409e999
|
||||
features[uuid_term][] = 4802699e-c349-4b57-ad66-a440db618456
|
||||
features[uuid_term][] = d7c6449c-b829-46c1-ab34-db6de4a26ed2
|
||||
features[variable][] = field_bundle_settings_node__popsu_document
|
||||
features[variable][] = language_content_type_popsu_document
|
||||
features[variable][] = menu_options_popsu_document
|
||||
features[variable][] = menu_parent_popsu_document
|
||||
features[variable][] = node_options_popsu_document
|
||||
features[variable][] = node_preview_popsu_document
|
||||
features[variable][] = node_submitted_popsu_document
|
||||
features[views_view][] = documents
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Documents feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_documents.features.inc';
|
||||
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_documents.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_documents_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__popsu_document';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '2',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '4',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_document'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'language_content_type_popsu_document';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_document'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_options_popsu_document';
|
||||
$strongarm->value = array();
|
||||
$export['menu_options_popsu_document'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_parent_popsu_document';
|
||||
$strongarm->value = 'main-menu:0';
|
||||
$export['menu_parent_popsu_document'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_options_popsu_document';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_document'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_preview_popsu_document';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_document'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_submitted_popsu_document';
|
||||
$strongarm->value = 1;
|
||||
$export['node_submitted_popsu_document'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,497 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_documents.views_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_views_default_views().
|
||||
*/
|
||||
function popsu_documents_views_default_views() {
|
||||
$export = array();
|
||||
|
||||
$view = new view();
|
||||
$view->name = 'documents';
|
||||
$view->description = 'Liste des documents';
|
||||
$view->tag = 'POPSU';
|
||||
$view->base_table = 'node';
|
||||
$view->human_name = 'Documents';
|
||||
$view->core = 7;
|
||||
$view->api_version = '3.0';
|
||||
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||||
|
||||
/* Display: Master */
|
||||
$handler = $view->new_display('default', 'Master', 'default');
|
||||
$handler->display->display_options['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['use_more_text'] = 'plus';
|
||||
$handler->display->display_options['access']['type'] = 'perm';
|
||||
$handler->display->display_options['cache']['type'] = 'none';
|
||||
$handler->display->display_options['query']['type'] = 'views_query';
|
||||
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||||
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
|
||||
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['style_plugin'] = 'list';
|
||||
$handler->display->display_options['style_options']['class'] = 'document-files';
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Fichier(s) joint(s) */
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['id'] = 'field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['table'] = 'field_data_field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['field'] = 'field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['alter']['text'] = '<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank">[title]</a>';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['type'] = 'file_url_plain';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['group_rows'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['delta_offset'] = '0';
|
||||
/* Champ: Contenu : Lien de publication */
|
||||
$handler->display->display_options['fields']['publishcontent']['id'] = 'publishcontent';
|
||||
$handler->display->display_options['fields']['publishcontent']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['publishcontent']['field'] = 'publishcontent';
|
||||
$handler->display->display_options['fields']['publishcontent']['label'] = '';
|
||||
$handler->display->display_options['fields']['publishcontent']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['publishcontent']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['publishcontent']['unpublish'] = 'Supprimer';
|
||||
$handler->display->display_options['fields']['publishcontent']['publish'] = 'Récupérer dans la corbeille';
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier';
|
||||
/* Critère de tri: Contenu : Titre */
|
||||
$handler->display->display_options['sorts']['title']['id'] = 'title';
|
||||
$handler->display->display_options['sorts']['title']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['title']['field'] = 'title';
|
||||
/* Filtre contextuel: Contenu : Page d'attache du document (field_popsu_doc_parent) */
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['id'] = 'field_popsu_doc_parent_nid';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['table'] = 'field_data_field_popsu_doc_parent';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['field'] = 'field_popsu_doc_parent_nid';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['summary_options']['items_per_page'] = '25';
|
||||
/* Filtre contextuel: Contenu : Type de document (field_popsu_doc_type) */
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_type_tid']['id'] = 'field_popsu_doc_type_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_type_tid']['table'] = 'field_data_field_popsu_doc_type';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_type_tid']['field'] = 'field_popsu_doc_type_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_type_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_type_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_type_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_type_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_type_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_doc_type_tid']['summary_options']['items_per_page'] = '25';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_document' => 'popsu_document',
|
||||
);
|
||||
|
||||
/* Display: Publication - Fiche */
|
||||
$handler = $view->new_display('panel_pane', 'Publication - Fiche', 'panel_pane_1');
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['style_options']['row_class'] = 'document-files';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Fichier(s) joint(s) */
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['id'] = 'field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['table'] = 'field_data_field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['field'] = 'field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['alter']['text'] = '<a href="[field_popsu_doc_files]" class="fiche-descriptive" target="_blank">Télécharger la fiche descriptive [PDF]</a>';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['type'] = 'file_url_plain';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['group_rows'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['delta_offset'] = '0';
|
||||
/* Champ: Contenu : Lien de publication */
|
||||
$handler->display->display_options['fields']['publishcontent']['id'] = 'publishcontent';
|
||||
$handler->display->display_options['fields']['publishcontent']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['publishcontent']['field'] = 'publishcontent';
|
||||
$handler->display->display_options['fields']['publishcontent']['label'] = '';
|
||||
$handler->display->display_options['fields']['publishcontent']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['publishcontent']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['publishcontent']['unpublish'] = 'Supprimer';
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_doc_parent_nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Page d'attache du document (field_popsu_doc_parent)',
|
||||
),
|
||||
'field_popsu_doc_type_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Type de document (field_popsu_doc_type)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Document attaché */
|
||||
$handler = $view->new_display('panel_pane', 'Document attaché', 'panel_pane_2');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Documents';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_doc_parent_nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Page d'attache du document (field_popsu_doc_parent)',
|
||||
),
|
||||
'field_popsu_doc_type_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Type de document (field_popsu_doc_type)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Ressource attachée */
|
||||
$handler = $view->new_display('panel_pane', 'Ressource attachée', 'panel_pane_3');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Ressources';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Origine/source de cette ressource */
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['id'] = 'field_popsu_doc_source';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['table'] = 'field_data_field_popsu_doc_source';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['field'] = 'field_popsu_doc_source';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['alter']['text'] = '[field_popsu_doc_source] : ';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['hide_empty'] = TRUE;
|
||||
/* Champ: Contenu : Fichier(s) joint(s) */
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['id'] = 'field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['table'] = 'field_data_field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['field'] = 'field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['alter']['text'] = '[field_popsu_doc_source]<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank">[title]</a>';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['type'] = 'file_url_plain';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['group_rows'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['delta_offset'] = '0';
|
||||
/* Champ: Contenu : Lien de publication */
|
||||
$handler->display->display_options['fields']['publishcontent']['id'] = 'publishcontent';
|
||||
$handler->display->display_options['fields']['publishcontent']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['publishcontent']['field'] = 'publishcontent';
|
||||
$handler->display->display_options['fields']['publishcontent']['label'] = '';
|
||||
$handler->display->display_options['fields']['publishcontent']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['publishcontent']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['publishcontent']['unpublish'] = 'Supprimer';
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_doc_parent_nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Page d'attache du document (field_popsu_doc_parent)',
|
||||
),
|
||||
'field_popsu_doc_type_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Type de document (field_popsu_doc_type)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Questionnaire attaché */
|
||||
$handler = $view->new_display('panel_pane', 'Questionnaire attaché', 'panel_pane_4');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Questionnaires';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Origine/source de cette ressource */
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['id'] = 'field_popsu_doc_source';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['table'] = 'field_data_field_popsu_doc_source';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['field'] = 'field_popsu_doc_source';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['alter']['text'] = '[field_popsu_doc_source] : ';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_source']['hide_empty'] = TRUE;
|
||||
/* Champ: Contenu : Fichier(s) joint(s) */
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['id'] = 'field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['table'] = 'field_data_field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['field'] = 'field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['alter']['text'] = '[field_popsu_doc_source]<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank">[title]</a>';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['type'] = 'file_url_plain';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['group_rows'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['delta_offset'] = '0';
|
||||
/* Champ: Contenu : Lien de publication */
|
||||
$handler->display->display_options['fields']['publishcontent']['id'] = 'publishcontent';
|
||||
$handler->display->display_options['fields']['publishcontent']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['publishcontent']['field'] = 'publishcontent';
|
||||
$handler->display->display_options['fields']['publishcontent']['label'] = '';
|
||||
$handler->display->display_options['fields']['publishcontent']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['publishcontent']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['publishcontent']['unpublish'] = 'Supprimer';
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_doc_parent_nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Page d'attache du document (field_popsu_doc_parent)',
|
||||
),
|
||||
'field_popsu_doc_type_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Type de document (field_popsu_doc_type)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Séminaires */
|
||||
$handler = $view->new_display('panel_pane', 'Séminaires', 'panel_pane_5');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Cycle de séminaire';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Résumé du document */
|
||||
$handler->display->display_options['fields']['field_popsu_doc_body']['id'] = 'field_popsu_doc_body';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_body']['table'] = 'field_data_field_popsu_doc_body';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_body']['field'] = 'field_popsu_doc_body';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_body']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_body']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Fichier(s) joint(s) */
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['id'] = 'field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['table'] = 'field_data_field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['field'] = 'field_popsu_doc_files';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['alter']['text'] = '<span class="file">
|
||||
<img class="file-icon" src="/modules/file/icons/application-pdf.png" title="application/pdf" alt="">
|
||||
<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank" type="application/pdf">Télécharger</a>
|
||||
</span>';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['type'] = 'file_url_plain';
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['group_rows'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_doc_files']['delta_offset'] = '0';
|
||||
/* Champ: Contenu : Lien de publication */
|
||||
$handler->display->display_options['fields']['publishcontent']['id'] = 'publishcontent';
|
||||
$handler->display->display_options['fields']['publishcontent']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['publishcontent']['field'] = 'publishcontent';
|
||||
$handler->display->display_options['fields']['publishcontent']['label'] = '';
|
||||
$handler->display->display_options['fields']['publishcontent']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['publishcontent']['unpublish'] = 'Supprimer';
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_doc_parent_nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Page d'attache du document (field_popsu_doc_parent)',
|
||||
),
|
||||
'field_popsu_doc_type_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Type de document (field_popsu_doc_type)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Bibliographie */
|
||||
$handler = $view->new_display('panel_pane', 'Bibliographie', 'panel_pane_6');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Bibliographie';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_doc_parent_nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Page d'attache du document (field_popsu_doc_parent)',
|
||||
),
|
||||
'field_popsu_doc_type_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Type de document (field_popsu_doc_type)',
|
||||
),
|
||||
);
|
||||
$translatables['documents'] = array(
|
||||
t('Master'),
|
||||
t('plus'),
|
||||
t('Appliquer'),
|
||||
t('Réinitialiser'),
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank">[title]</a>'),
|
||||
t('Supprimer'),
|
||||
t('Récupérer dans la corbeille'),
|
||||
t('Modifier'),
|
||||
t('Tout'),
|
||||
t('Publication - Fiche'),
|
||||
t('<a href="[field_popsu_doc_files]" class="fiche-descriptive" target="_blank">Télécharger la fiche descriptive [PDF]</a>'),
|
||||
t('Volets de vue'),
|
||||
t('Document attaché'),
|
||||
t('Documents'),
|
||||
t('Ressource attachée'),
|
||||
t('Ressources'),
|
||||
t('[field_popsu_doc_source] : '),
|
||||
t('[field_popsu_doc_source]<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank">[title]</a>'),
|
||||
t('Questionnaire attaché'),
|
||||
t('Questionnaires'),
|
||||
t('Séminaires'),
|
||||
t('Cycle de séminaire'),
|
||||
t('<span class="file">
|
||||
<img class="file-icon" src="/modules/file/icons/application-pdf.png" title="application/pdf" alt="">
|
||||
<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank" type="application/pdf">Télécharger</a>
|
||||
</span>'),
|
||||
t('Bibliographie'),
|
||||
);
|
||||
$export['documents'] = $view;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages.context.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_context_default_contexts().
|
||||
*/
|
||||
function popsu_pages_context_default_contexts() {
|
||||
$export = array();
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-page-europe-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Page pour POPSU Europe (feature)';
|
||||
$context->tag = 'pages-europe-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_page' => 'popsu_page',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
'node_taxonomy' => array(
|
||||
'values' => array(
|
||||
3 => 3,
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'menu_block-6' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '6',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 1;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Page pour POPSU Europe (feature)');
|
||||
t('pages-europe-feature');
|
||||
$export['popsu-page-europe-node'] = $context;
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-page-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Page POPSU (feature)';
|
||||
$context->tag = 'pages-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_page' => 'popsu_page',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'menu_block-3' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '3',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
'menu_block-4' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '4',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 0;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Page POPSU (feature)');
|
||||
t('pages-feature');
|
||||
$export['popsu-page-node'] = $context;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_pages_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_page-field_popsu_page_body'.
|
||||
$fields['node-popsu_page-field_popsu_page_body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_page_body',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_with_summary',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_page',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '0',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_page_body',
|
||||
'label' => 'Texte de la page',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'display_summary' => 0,
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '20',
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => '2',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Texte de la page');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_pages_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "context" && $api == "context") {
|
||||
return array("version" => "3");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_pages_node_info() {
|
||||
$items = array(
|
||||
'popsu_page' => array(
|
||||
'name' => t('POPSU / Page'),
|
||||
'base' => 'node_content',
|
||||
'description' => t('Ce type de contenu permet de créer une page de contenu texte au sein d\'un POPSU (page d\'introduction à un POPSU ou page partenaires par exemple).'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre de la page'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_pages_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_page_text|node|popsu_page|form';
|
||||
$field_group->group_name = 'group_popsu_page_text';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_page';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Contenu',
|
||||
'weight' => '1',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_page_body',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'label' => 'Contenu',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 1,
|
||||
'classes' => '',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'closed',
|
||||
),
|
||||
);
|
||||
$export['group_popsu_page_text|node|popsu_page|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
30
sites/default/modules/features/popsu_pages/popsu_pages.info
Normal file
30
sites/default/modules/features/popsu_pages/popsu_pages.info
Normal file
@@ -0,0 +1,30 @@
|
||||
name = POPSU Pages
|
||||
description = POPSU - Type de contenu Pages POPSU
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
php = 5.2.4
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_pages
|
||||
dependencies[] = context
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = field_group
|
||||
dependencies[] = menu_block
|
||||
dependencies[] = popsu_taxonomies
|
||||
dependencies[] = strongarm
|
||||
features[context][] = popsu-page-europe-node
|
||||
features[context][] = popsu-page-node
|
||||
features[ctools][] = context:context:3
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:1
|
||||
features[field][] = node-popsu_page-field_popsu_page_body
|
||||
features[field_group][] = group_popsu_page_text|node|popsu_page|form
|
||||
features[node][] = popsu_page
|
||||
features[variable][] = field_bundle_settings_node__popsu_page
|
||||
features[variable][] = language_content_type_popsu_page
|
||||
features[variable][] = menu_options_popsu_page
|
||||
features[variable][] = menu_parent_popsu_page
|
||||
features[variable][] = node_options_popsu_page
|
||||
features[variable][] = node_preview_popsu_page
|
||||
features[variable][] = node_submitted_popsu_page
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Pages feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_pages.features.inc';
|
||||
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_pages_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__popsu_page';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(
|
||||
'teaser' => array(
|
||||
'custom_settings' => TRUE,
|
||||
),
|
||||
'full' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'rss' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_index' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_result' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'token' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '2',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_page'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'language_content_type_popsu_page';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_page'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_options_popsu_page';
|
||||
$strongarm->value = array(
|
||||
0 => 'menu-popsu1-menu',
|
||||
1 => 'menu-popsu2-menu',
|
||||
2 => 'menu-popsu-menu-popsu-europe',
|
||||
3 => 'main-menu',
|
||||
);
|
||||
$export['menu_options_popsu_page'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_parent_popsu_page';
|
||||
$strongarm->value = 'menu-popsu1-menu:0';
|
||||
$export['menu_parent_popsu_page'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_options_popsu_page';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_page'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_preview_popsu_page';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_page'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_submitted_popsu_page';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_popsu_page'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.context.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_context_default_contexts().
|
||||
*/
|
||||
function popsu_pages_neutres_context_default_contexts() {
|
||||
$export = array();
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-pagesneutral-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Page Neutral POPSU (feature)';
|
||||
$context->tag = 'pagesneutral-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_page_neutral' => 'popsu_page_neutral',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'boxes-popsu_logo_popsuneutral' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsuneutral',
|
||||
'region' => 'header',
|
||||
'weight' => '-32',
|
||||
),
|
||||
'boxes-popsu_logo_baseline' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_baseline',
|
||||
'region' => 'header',
|
||||
'weight' => '-31',
|
||||
),
|
||||
'boxes-popsu_logo_popsueurope' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsueurope',
|
||||
'region' => 'header',
|
||||
'weight' => '-30',
|
||||
),
|
||||
'boxes-popsu_logo_popsu2' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsu2',
|
||||
'region' => 'header',
|
||||
'weight' => '-29',
|
||||
),
|
||||
'boxes-popsu_logo_popsu1' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsu1',
|
||||
'region' => 'header',
|
||||
'weight' => '-28',
|
||||
),
|
||||
),
|
||||
),
|
||||
'theme_html' => array(
|
||||
'class' => 'popsu-neutral-section',
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 1;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Page Neutral POPSU (feature)');
|
||||
t('pagesneutral-feature');
|
||||
$export['popsu-pagesneutral-node'] = $context;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,223 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_pages_neutres_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_page_neutral-field_popsu_pageneutral_body'.
|
||||
$fields['node-popsu_page_neutral-field_popsu_pageneutral_body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_pageneutral_body',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_with_summary',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_page_neutral',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 1,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_pageneutral_body',
|
||||
'label' => 'Texte de la page',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'display_summary' => 0,
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '20',
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => '5',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_page_neutral-field_popsu_pageneutral_col2'.
|
||||
$fields['node-popsu_page_neutral-field_popsu_pageneutral_col2'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_pageneutral_col2',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_long',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_page_neutral',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 2,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_pageneutral_col2',
|
||||
'label' => 'Texte de la 2ème colone',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '5',
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => '6',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_page_neutral-field_popsu_pageneutral_mepage'.
|
||||
$fields['node-popsu_page_neutral-field_popsu_pageneutral_mepage'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_pageneutral_mepage',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(
|
||||
'value' => array(
|
||||
0 => 'value',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'list',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => 'sur 1 colonne',
|
||||
1 => 'sur 2 colonnes',
|
||||
),
|
||||
'allowed_values_function' => '',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'list_boolean',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_page_neutral',
|
||||
'default_value' => array(
|
||||
0 => array(
|
||||
'value' => '0',
|
||||
),
|
||||
),
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'list',
|
||||
'settings' => array(),
|
||||
'type' => 'list_default',
|
||||
'weight' => 3,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_pageneutral_mepage',
|
||||
'label' => 'Mise en page',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_buttons',
|
||||
'weight' => '4',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Mise en page');
|
||||
t('Texte de la 2ème colone');
|
||||
t('Texte de la page');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_pages_neutres_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "context" && $api == "context") {
|
||||
return array("version" => "3");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "page_manager" && $api == "pages_default") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*/
|
||||
function popsu_pages_neutres_views_api() {
|
||||
return array("version" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_pages_neutres_node_info() {
|
||||
$items = array(
|
||||
'popsu_page_neutral' => array(
|
||||
'name' => t('Page neutre'),
|
||||
'base' => 'node_content',
|
||||
'description' => t('Les pages neutres n\'appartiennent à aucun POPSU. Exemple : la page "Mentions légales".'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre de la page'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_pages_neutres_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_pageneutral_basic|node|popsu_page_neutral|form';
|
||||
$field_group->group_name = 'group_popsu_pageneutral_basic';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_page_neutral';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Informations essentielles',
|
||||
'weight' => '0',
|
||||
'children' => array(
|
||||
0 => 'title',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_pageneutral_basic|node|popsu_page_neutral|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_pageneutral_body|node|popsu_page_neutral|form';
|
||||
$field_group->group_name = 'group_popsu_pageneutral_body';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_page_neutral';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Texte',
|
||||
'weight' => '1',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_pageneutral_body',
|
||||
1 => 'field_popsu_pageneutral_col2',
|
||||
2 => 'field_popsu_pageneutral_mepage',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_pageneutral_body|node|popsu_page_neutral|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
name = POPSU Pages neutres
|
||||
description = POPSU - Type de contenu Pages Neutres
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
php = 5.2.4
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_pages_neutres
|
||||
dependencies[] = boxes
|
||||
dependencies[] = context
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = field_group
|
||||
dependencies[] = list
|
||||
dependencies[] = options
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = popsu_actualites
|
||||
dependencies[] = popsu_structure
|
||||
dependencies[] = strongarm
|
||||
features[context][] = popsu-pagesneutral-node
|
||||
features[ctools][] = context:context:3
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = page_manager:pages_default:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:1
|
||||
features[field][] = node-popsu_page_neutral-field_popsu_pageneutral_body
|
||||
features[field][] = node-popsu_page_neutral-field_popsu_pageneutral_col2
|
||||
features[field][] = node-popsu_page_neutral-field_popsu_pageneutral_mepage
|
||||
features[field_group][] = group_popsu_pageneutral_basic|node|popsu_page_neutral|form
|
||||
features[field_group][] = group_popsu_pageneutral_body|node|popsu_page_neutral|form
|
||||
features[node][] = popsu_page_neutral
|
||||
features[page_manager_handlers][] = node_view_panel_context_11
|
||||
features[variable][] = field_bundle_settings_node__popsu_page_neutral
|
||||
features[variable][] = language_content_type_popsu_page_neutral
|
||||
features[variable][] = menu_options_popsu_page_neutral
|
||||
features[variable][] = menu_parent_popsu_page_neutral
|
||||
features[variable][] = node_options_popsu_page_neutral
|
||||
features[variable][] = node_preview_popsu_page_neutral
|
||||
features[variable][] = node_submitted_popsu_page_neutral
|
||||
features[views_view][] = pages_neutral
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Pages neutres feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_pages_neutres.features.inc';
|
||||
@@ -0,0 +1,256 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.pages_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_page_manager_handlers().
|
||||
*/
|
||||
function popsu_pages_neutres_default_page_manager_handlers() {
|
||||
$export = array();
|
||||
|
||||
$handler = new stdClass();
|
||||
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
||||
$handler->api_version = 1;
|
||||
$handler->name = 'node_view_panel_context_11';
|
||||
$handler->task = 'node_view';
|
||||
$handler->subtask = '';
|
||||
$handler->handler = 'panel_context';
|
||||
$handler->weight = 10;
|
||||
$handler->conf = array(
|
||||
'title' => 'Pages froides',
|
||||
'no_blocks' => 0,
|
||||
'pipeline' => 'standard',
|
||||
'body_classes_to_remove' => '',
|
||||
'body_classes_to_add' => '',
|
||||
'css_id' => '',
|
||||
'css' => '',
|
||||
'contexts' => array(),
|
||||
'relationships' => array(),
|
||||
'access' => array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'node_type',
|
||||
'settings' => array(
|
||||
'type' => array(
|
||||
'popsu_page_neutral' => 'popsu_page_neutral',
|
||||
),
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
'logic' => 'and',
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'twocol_stacked';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'left' => NULL,
|
||||
'right' => NULL,
|
||||
'header' => NULL,
|
||||
'top' => NULL,
|
||||
'footer' => NULL,
|
||||
'middle' => NULL,
|
||||
'bottom' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = '%node:title';
|
||||
$display->content = array();
|
||||
$display->panels = array();
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-1';
|
||||
$pane->panel = 'left';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_pageneutral_body';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'entity_field_value:node:popsu_page_neutral:field_popsu_pageneutral_mepage',
|
||||
'settings' => array(
|
||||
'field_popsu_pageneutral_mepage' => array(
|
||||
'und' => array(
|
||||
0 => array(
|
||||
'value' => '1',
|
||||
),
|
||||
),
|
||||
),
|
||||
'field_popsu_pageneutral_mepage_value' => '1',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-1'] = $pane;
|
||||
$display->panels['left'][0] = 'new-1';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-2';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_pageneutral_col2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'entity_field_value:node:popsu_page_neutral:field_popsu_pageneutral_mepage',
|
||||
'settings' => array(
|
||||
'field_popsu_pageneutral_mepage' => array(
|
||||
'und' => array(
|
||||
0 => array(
|
||||
'value' => '1',
|
||||
),
|
||||
),
|
||||
),
|
||||
'field_popsu_pageneutral_mepage_value' => '1',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-2'] = $pane;
|
||||
$display->panels['right'][0] = 'new-2';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-3';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_pageneutral_body';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'entity_field_value:node:popsu_page_neutral:field_popsu_pageneutral_mepage',
|
||||
'settings' => array(
|
||||
'field_popsu_pageneutral_mepage' => array(
|
||||
'und' => array(
|
||||
0 => array(
|
||||
'value' => '0',
|
||||
),
|
||||
),
|
||||
),
|
||||
'field_popsu_pageneutral_mepage_value' => '0',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-3'] = $pane;
|
||||
$display->panels['top'][0] = 'new-3';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-4';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_pageneutral_col2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'entity_field_value:node:popsu_page_neutral:field_popsu_pageneutral_mepage',
|
||||
'settings' => array(
|
||||
'field_popsu_pageneutral_mepage' => array(
|
||||
'und' => array(
|
||||
0 => array(
|
||||
'value' => '0',
|
||||
),
|
||||
),
|
||||
),
|
||||
'field_popsu_pageneutral_mepage_value' => '0',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-4'] = $pane;
|
||||
$display->panels['top'][1] = 'new-4';
|
||||
$display->hide_title = PANELS_TITLE_FIXED;
|
||||
$display->title_pane = 'new-3';
|
||||
$handler->conf['display'] = $display;
|
||||
$export['node_view_panel_context_11'] = $handler;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_pages_neutres_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__popsu_page_neutral';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '1',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '2',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'language_content_type_popsu_page_neutral';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_options_popsu_page_neutral';
|
||||
$strongarm->value = array(
|
||||
0 => 'menu-popsu-menu-pages-froides',
|
||||
1 => 'menu-popsu-menu-footer',
|
||||
2 => 'menu-popsu-footer-droite',
|
||||
3 => 'main-menu',
|
||||
);
|
||||
$export['menu_options_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_parent_popsu_page_neutral';
|
||||
$strongarm->value = 'main-menu:0';
|
||||
$export['menu_parent_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_options_popsu_page_neutral';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_preview_popsu_page_neutral';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_submitted_popsu_page_neutral';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.views_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_views_default_views().
|
||||
*/
|
||||
function popsu_pages_neutres_views_default_views() {
|
||||
$export = array();
|
||||
|
||||
$view = new view();
|
||||
$view->name = 'pages_neutral';
|
||||
$view->description = 'Liste des pages neutres (hors contexte POPSU)';
|
||||
$view->tag = 'POPSU';
|
||||
$view->base_table = 'node';
|
||||
$view->human_name = 'Pages neutral';
|
||||
$view->core = 7;
|
||||
$view->api_version = '3.0';
|
||||
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||||
|
||||
/* Display: Master */
|
||||
$handler = $view->new_display('default', 'Master', 'default');
|
||||
$handler->display->display_options['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['use_more_text'] = 'plus';
|
||||
$handler->display->display_options['access']['type'] = 'perm';
|
||||
$handler->display->display_options['cache']['type'] = 'none';
|
||||
$handler->display->display_options['query']['type'] = 'views_query';
|
||||
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||||
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
|
||||
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
|
||||
$handler->display->display_options['pager']['type'] = 'full';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Éléments par page';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Tout -';
|
||||
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Décalage';
|
||||
$handler->display->display_options['pager']['options']['tags']['first'] = '« premier';
|
||||
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ précédent';
|
||||
$handler->display->display_options['pager']['options']['tags']['next'] = 'suivant ›';
|
||||
$handler->display->display_options['pager']['options']['tags']['last'] = 'dernier »';
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de publication */
|
||||
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_page_neutral' => 'popsu_page_neutral',
|
||||
);
|
||||
|
||||
/* Display: Page neutral Node edit links */
|
||||
$handler = $view->new_display('panel_pane', 'Page neutral Node edit links', 'panel_pane_1');
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_class'] = 'btn-admin-edit';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['empty_zero'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier ce bloc de texte';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Nid */
|
||||
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['nid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Nid',
|
||||
),
|
||||
);
|
||||
$translatables['pages_neutral'] = array(
|
||||
t('Master'),
|
||||
t('plus'),
|
||||
t('Appliquer'),
|
||||
t('Réinitialiser'),
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('Éléments par page'),
|
||||
t('- Tout -'),
|
||||
t('Décalage'),
|
||||
t('« premier'),
|
||||
t('‹ précédent'),
|
||||
t('suivant ›'),
|
||||
t('dernier »'),
|
||||
t('Page neutral Node edit links'),
|
||||
t('Modifier ce bloc de texte'),
|
||||
t('Tout'),
|
||||
t('Volets de vue'),
|
||||
);
|
||||
$export['pages_neutral'] = $view;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_position_ville.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_position_ville_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_point_ville-field_popsu_positionville_x'.
|
||||
$fields['node-popsu_point_ville-field_popsu_positionville_x'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_positionville_x',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => '0',
|
||||
'module' => 'number',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'number_integer',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_point_ville',
|
||||
'default_value' => array(
|
||||
0 => array(
|
||||
'value' => '0',
|
||||
),
|
||||
),
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'number',
|
||||
'settings' => array(
|
||||
'decimal_separator' => '.',
|
||||
'prefix_suffix' => TRUE,
|
||||
'scale' => 0,
|
||||
'thousand_separator' => ' ',
|
||||
),
|
||||
'type' => 'number_integer',
|
||||
'weight' => 3,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_positionville_x',
|
||||
'label' => 'Position X',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'max' => '',
|
||||
'min' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'number',
|
||||
'settings' => array(),
|
||||
'type' => 'number',
|
||||
'weight' => '4',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_point_ville-field_popsu_positionville_y'.
|
||||
$fields['node-popsu_point_ville-field_popsu_positionville_y'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_positionville_y',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => '0',
|
||||
'module' => 'number',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'number_integer',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_point_ville',
|
||||
'default_value' => array(
|
||||
0 => array(
|
||||
'value' => '0',
|
||||
),
|
||||
),
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'number',
|
||||
'settings' => array(
|
||||
'decimal_separator' => '.',
|
||||
'prefix_suffix' => TRUE,
|
||||
'scale' => 0,
|
||||
'thousand_separator' => ' ',
|
||||
),
|
||||
'type' => 'number_integer',
|
||||
'weight' => 4,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_positionville_y',
|
||||
'label' => 'Position Y',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'max' => '',
|
||||
'min' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'number',
|
||||
'settings' => array(),
|
||||
'type' => 'number',
|
||||
'weight' => '5',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Position X');
|
||||
t('Position Y');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_position_ville.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_position_ville_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*/
|
||||
function popsu_position_ville_views_api() {
|
||||
return array("version" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_position_ville_node_info() {
|
||||
$items = array(
|
||||
'popsu_point_ville' => array(
|
||||
'name' => t('Position Ville'),
|
||||
'base' => 'node_content',
|
||||
'description' => t('Ce type de contenu permet de placer une ville sur la carte de la page d\'accueil'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Nom de la ville'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_position_ville.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_position_ville_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_positionville_basic|node|popsu_point_ville|form';
|
||||
$field_group->group_name = 'group_popsu_positionville_basic';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_point_ville';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Informations essentielles',
|
||||
'weight' => '0',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_positionville_ville',
|
||||
1 => 'field_popsu_positionville_popsu',
|
||||
2 => 'title',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_positionville_basic|node|popsu_point_ville|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_positionville_posi|node|popsu_point_ville|form';
|
||||
$field_group->group_name = 'group_popsu_positionville_posi';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_point_ville';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Position sur la carte',
|
||||
'weight' => '2',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_positionville_x',
|
||||
1 => 'field_popsu_positionville_y',
|
||||
2 => 'field_popsu_positionville_out',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_positionville_posi|node|popsu_point_ville|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
name = POPSU Position Ville
|
||||
description = POPSU - Type de contenu Position d'une ville sur la carte
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_position_ville
|
||||
dependencies[] = field_group
|
||||
dependencies[] = number
|
||||
dependencies[] = popsu_taxonomies
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = views
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:1
|
||||
features[field][] = node-popsu_point_ville-field_popsu_positionville_x
|
||||
features[field][] = node-popsu_point_ville-field_popsu_positionville_y
|
||||
features[field_group][] = group_popsu_positionville_basic|node|popsu_point_ville|form
|
||||
features[field_group][] = group_popsu_positionville_posi|node|popsu_point_ville|form
|
||||
features[node][] = popsu_point_ville
|
||||
features[variable][] = field_bundle_settings_node__popsu_point_ville
|
||||
features[variable][] = language_content_type_popsu_point_ville
|
||||
features[variable][] = menu_options_popsu_point_ville
|
||||
features[variable][] = menu_parent_popsu_point_ville
|
||||
features[variable][] = node_options_popsu_point_ville
|
||||
features[variable][] = node_preview_popsu_point_ville
|
||||
features[variable][] = node_submitted_popsu_point_ville
|
||||
features[views_view][] = points_villes
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Position Ville feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_position_ville.features.inc';
|
||||
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_position_ville.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_position_ville_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__popsu_point_ville';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '1',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_point_ville'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'language_content_type_popsu_point_ville';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_point_ville'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_options_popsu_point_ville';
|
||||
$strongarm->value = array();
|
||||
$export['menu_options_popsu_point_ville'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_parent_popsu_point_ville';
|
||||
$strongarm->value = 'main-menu:0';
|
||||
$export['menu_parent_popsu_point_ville'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_options_popsu_point_ville';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_point_ville'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_preview_popsu_point_ville';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_point_ville'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_submitted_popsu_point_ville';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_popsu_point_ville'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_position_ville.views_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_views_default_views().
|
||||
*/
|
||||
function popsu_position_ville_views_default_views() {
|
||||
$export = array();
|
||||
|
||||
$view = new view();
|
||||
$view->name = 'points_villes';
|
||||
$view->description = 'Liste des points à afficher sur la carte de la page d\'accueil';
|
||||
$view->tag = 'POPSU';
|
||||
$view->base_table = 'node';
|
||||
$view->human_name = 'Points Villes';
|
||||
$view->core = 7;
|
||||
$view->api_version = '3.0';
|
||||
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||||
|
||||
/* Display: Master */
|
||||
$handler = $view->new_display('default', 'Master', 'default');
|
||||
$handler->display->display_options['css_class'] = 'map-home';
|
||||
$handler->display->display_options['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['use_more_text'] = 'plus';
|
||||
$handler->display->display_options['access']['type'] = 'perm';
|
||||
$handler->display->display_options['cache']['type'] = 'none';
|
||||
$handler->display->display_options['query']['type'] = 'views_query';
|
||||
$handler->display->display_options['query']['options']['distinct'] = TRUE;
|
||||
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||||
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
|
||||
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['style_options']['row_class'] = 'point-carte';
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : POPSU */
|
||||
$handler->display->display_options['fields']['field_popsu_positionville_popsu']['id'] = 'field_popsu_positionville_popsu';
|
||||
$handler->display->display_options['fields']['field_popsu_positionville_popsu']['table'] = 'field_data_field_popsu_positionville_popsu';
|
||||
$handler->display->display_options['fields']['field_popsu_positionville_popsu']['field'] = 'field_popsu_positionville_popsu';
|
||||
$handler->display->display_options['fields']['field_popsu_positionville_popsu']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_positionville_popsu']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_positionville_popsu']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_positionville_popsu']['type'] = 'taxonomy_term_reference_plain';
|
||||
$handler->display->display_options['fields']['field_popsu_positionville_popsu']['delta_offset'] = '0';
|
||||
$handler->display->display_options['fields']['field_popsu_positionville_popsu']['separator'] = ' ';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '<div id="point-nid-[nid]" class="placement-carte [field_popsu_positionville_popsu]"><span class="map-title">[title]</span></div>';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Critère de tri: Contenu : Titre */
|
||||
$handler->display->display_options['sorts']['title']['id'] = 'title';
|
||||
$handler->display->display_options['sorts']['title']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['title']['field'] = 'title';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_point_ville' => 'popsu_point_ville',
|
||||
);
|
||||
|
||||
/* Display: POPSU Points villes pour la carte */
|
||||
$handler = $view->new_display('block', 'POPSU Points villes pour la carte', 'block_1');
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$translatables['points_villes'] = array(
|
||||
t('Master'),
|
||||
t('plus'),
|
||||
t('Appliquer'),
|
||||
t('Réinitialiser'),
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('<div id="point-nid-[nid]" class="placement-carte [field_popsu_positionville_popsu]"><span class="map-title">[title]</span></div>'),
|
||||
t('POPSU Points villes pour la carte'),
|
||||
);
|
||||
$export['points_villes'] = $view;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets.context.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_context_default_contexts().
|
||||
*/
|
||||
function popsu_projets_context_default_contexts() {
|
||||
$export = array();
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-projet-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Projet (feature)';
|
||||
$context->tag = 'projets-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_projet' => 'popsu_projet',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'menu_block-3' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '3',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-23',
|
||||
),
|
||||
'boxes-popsu_menu_trigger' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_menu_trigger',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-22',
|
||||
),
|
||||
'menu_block-1' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '1',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-21',
|
||||
),
|
||||
'menu_block-5' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '5',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-20',
|
||||
),
|
||||
),
|
||||
),
|
||||
'theme_html' => array(
|
||||
'class' => 'sidebar-double',
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 0;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Projet (feature)');
|
||||
t('projets-feature');
|
||||
$export['popsu-projet-node'] = $context;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,960 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_projets_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_acteurs'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_acteurs'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_acteurs',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_long',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '4',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_acteurs',
|
||||
'label' => 'Acteurs',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '5',
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => '15',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_adresse'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_adresse'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_adresse',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => '0',
|
||||
'module' => 'addressfield',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'addressfield',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'default_value' => array(
|
||||
0 => array(
|
||||
'element_key' => 'node|popsu_projet|field_popsu_projet_adresse|und|0',
|
||||
'thoroughfare' => '',
|
||||
'premise' => '',
|
||||
'postal_code' => '',
|
||||
'locality' => '',
|
||||
'country' => 'FR',
|
||||
),
|
||||
),
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'addressfield',
|
||||
'settings' => array(
|
||||
'format_handlers' => array(
|
||||
0 => 'address',
|
||||
),
|
||||
'use_widget_handlers' => 1,
|
||||
),
|
||||
'type' => 'addressfield_default',
|
||||
'weight' => '10',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_adresse',
|
||||
'label' => 'Emplacement du projet',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'addressfield',
|
||||
'settings' => array(
|
||||
'available_countries' => array(),
|
||||
'format_handlers' => array(
|
||||
'address' => 'address',
|
||||
'address-hide-country' => 0,
|
||||
'organisation' => 0,
|
||||
'name-full' => 0,
|
||||
'name-oneline' => 0,
|
||||
),
|
||||
),
|
||||
'type' => 'addressfield_standard',
|
||||
'weight' => '7',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_commune'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_commune'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_commune',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'max_length' => '255',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'text',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '0',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_commune',
|
||||
'label' => 'Commune concernée (si agglomération)',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '0',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'size' => '60',
|
||||
),
|
||||
'type' => 'text_textfield',
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_comparatif'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_comparatif'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_comparatif',
|
||||
'foreign keys' => array(
|
||||
'nid' => array(
|
||||
'columns' => array(
|
||||
'nid' => 'nid',
|
||||
),
|
||||
'table' => 'node',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'nid' => array(
|
||||
0 => 'nid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(
|
||||
'referenceable_types' => array(
|
||||
'article' => 0,
|
||||
'page' => 0,
|
||||
'popsu_colloque' => 0,
|
||||
'popsu_document' => 0,
|
||||
'popsu_page' => 0,
|
||||
'popsu_projet' => 0,
|
||||
'popsu_publication' => 0,
|
||||
'popsu_special' => 0,
|
||||
'popsu_theme_europe' => 0,
|
||||
'popsu_theme_local' => 0,
|
||||
'popsu_theme_trans' => 'popsu_theme_trans',
|
||||
'popsu_ville' => 0,
|
||||
'popsu_ville_europe' => 0,
|
||||
),
|
||||
'view' => array(
|
||||
'args' => array(),
|
||||
'display_name' => '',
|
||||
'view_name' => '',
|
||||
),
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'node_reference',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(),
|
||||
'type' => 'node_reference_default',
|
||||
'weight' => 12,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_comparatif',
|
||||
'label' => 'Comparatif',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(
|
||||
'autocomplete_match' => 'contains',
|
||||
'autocomplete_path' => 'node_reference/autocomplete',
|
||||
'size' => '60',
|
||||
),
|
||||
'type' => 'node_reference_autocomplete',
|
||||
'weight' => '9',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_demarche'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_demarche'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_demarche',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_long',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '2',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_demarche',
|
||||
'label' => 'Chronologie',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '5',
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_geoloc'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_geoloc'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_geoloc',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => '0',
|
||||
'module' => 'geofield',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'geofield',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'geofield',
|
||||
'settings' => array(
|
||||
'data' => 'full',
|
||||
'map_preset' => 'popsu_map_projets',
|
||||
),
|
||||
'type' => 'geofield_openlayers',
|
||||
'weight' => '11',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_geoloc',
|
||||
'label' => 'Geolocalisation',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'local_solr' => array(
|
||||
'enabled' => FALSE,
|
||||
'lat_field' => 'lat',
|
||||
'lng_field' => 'lng',
|
||||
),
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'geocoder',
|
||||
'settings' => array(
|
||||
'delta_handling' => 'default',
|
||||
'geocoder_field' => 'field_popsu_projet_adresse',
|
||||
'geocoder_handler' => 'google',
|
||||
'handler_settings' => array(
|
||||
'google' => array(
|
||||
'all_results' => 0,
|
||||
'geometry_type' => 'point',
|
||||
'reject_results' => array(
|
||||
'APPROXIMATE' => 'APPROXIMATE',
|
||||
'GEOMETRIC_CENTER' => 0,
|
||||
'RANGE_INTERPOLATED' => 0,
|
||||
'ROOFTOP' => 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'type' => 'geocoder',
|
||||
'weight' => '8',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_imageintro'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_imageintro'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_imageintro',
|
||||
'foreign keys' => array(
|
||||
'fid' => array(
|
||||
'columns' => array(
|
||||
'fid' => 'fid',
|
||||
),
|
||||
'table' => 'file_managed',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'default_image' => 0,
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'image',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => '',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => '5',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_imageintro',
|
||||
'label' => 'Image d\'introduction',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'png gif jpg jpeg',
|
||||
'filefield_paths' => array(
|
||||
'active_updating' => 0,
|
||||
'file_name' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
|
||||
),
|
||||
'file_path' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => 'nodes/[node:content-type]/[node:nid]/imageintro',
|
||||
),
|
||||
'retroactive_update' => 0,
|
||||
),
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => '6',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_imagelocalise'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_imagelocalise'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_imagelocalise',
|
||||
'foreign keys' => array(
|
||||
'fid' => array(
|
||||
'columns' => array(
|
||||
'fid' => 'fid',
|
||||
),
|
||||
'table' => 'file_managed',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'default_image' => 0,
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'image',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => '',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => '6',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_imagelocalise',
|
||||
'label' => 'Image de localisation',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'png gif jpg jpeg',
|
||||
'filefield_paths' => array(
|
||||
'active_updating' => 0,
|
||||
'file_name' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
|
||||
),
|
||||
'file_path' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => 'nodes/[node:content-type]/[node:nid]/imagelocalise',
|
||||
),
|
||||
'retroactive_update' => 0,
|
||||
),
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => '7',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_lies'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_lies'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_lies',
|
||||
'foreign keys' => array(
|
||||
'nid' => array(
|
||||
'columns' => array(
|
||||
'nid' => 'nid',
|
||||
),
|
||||
'table' => 'node',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'nid' => array(
|
||||
0 => 'nid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(
|
||||
'referenceable_types' => array(
|
||||
'article' => 0,
|
||||
'page' => 0,
|
||||
'popsu_colloque' => 0,
|
||||
'popsu_page' => 0,
|
||||
'popsu_projet' => 'popsu_projet',
|
||||
'popsu_publication' => 0,
|
||||
'popsu_special' => 0,
|
||||
'popsu_theme_europe' => 0,
|
||||
'popsu_theme_local' => 'popsu_theme_local',
|
||||
'popsu_theme_trans' => 0,
|
||||
'popsu_ville' => 0,
|
||||
'popsu_ville_europe' => 0,
|
||||
),
|
||||
'view' => array(
|
||||
'args' => array(),
|
||||
'display_name' => '',
|
||||
'view_name' => '',
|
||||
),
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'node_reference',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(),
|
||||
'type' => 'node_reference_default',
|
||||
'weight' => '9',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_lies',
|
||||
'label' => 'Projets & thèmes liés',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(
|
||||
'autocomplete_match' => 'contains',
|
||||
'autocomplete_path' => 'node_reference/autocomplete',
|
||||
'size' => '60',
|
||||
),
|
||||
'type' => 'node_reference_autocomplete',
|
||||
'weight' => '8',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_methodo'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_methodo'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_methodo',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_long',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 13,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_methodo',
|
||||
'label' => 'Démarche et méthodologie',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '5',
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => '10',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_presentation'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_presentation'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_presentation',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_with_summary',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '1',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_presentation',
|
||||
'label' => 'Texte de présentation',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'display_summary' => 0,
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '20',
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => '2',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet-field_popsu_projet_programme'.
|
||||
$fields['node-popsu_projet-field_popsu_projet_programme'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projet_programme',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_long',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '3',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projet_programme',
|
||||
'label' => 'Programme',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '5',
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => '5',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Acteurs');
|
||||
t('Chronologie');
|
||||
t('Commune concernée (si agglomération)');
|
||||
t('Comparatif');
|
||||
t('Démarche et méthodologie');
|
||||
t('Emplacement du projet');
|
||||
t('Geolocalisation');
|
||||
t('Image d\'introduction');
|
||||
t('Image de localisation');
|
||||
t('Programme');
|
||||
t('Projets & thèmes liés');
|
||||
t('Texte de présentation');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_projets_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "context" && $api == "context") {
|
||||
return array("version" => "3");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "feeds" && $api == "feeds_importer_default") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "page_manager" && $api == "pages_default") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*/
|
||||
function popsu_projets_views_api() {
|
||||
return array("version" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_image_default_styles().
|
||||
*/
|
||||
function popsu_projets_image_default_styles() {
|
||||
$styles = array();
|
||||
|
||||
// Exported image style: popsu-projets-grande-image.
|
||||
$styles['popsu-projets-grande-image'] = array(
|
||||
'name' => 'popsu-projets-grande-image',
|
||||
'effects' => array(
|
||||
8 => array(
|
||||
'label' => 'Adaptive',
|
||||
'help' => 'Adaptive image scale according to client resolution.',
|
||||
'effect callback' => 'image_scale_effect',
|
||||
'dimensions callback' => 'image_scale_dimensions',
|
||||
'form callback' => 'adaptive_image_scale_form',
|
||||
'summary theme' => 'adaptive_image_scale_summary',
|
||||
'module' => 'adaptive_image',
|
||||
'name' => 'adaptive_image',
|
||||
'data' => array(
|
||||
'resolutions' => '1382, 992, 768, 480',
|
||||
'mobile_first' => 1,
|
||||
'height' => '',
|
||||
'width' => '1382',
|
||||
'upscale' => '',
|
||||
),
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported image style: popsu-projets-listing-small.
|
||||
$styles['popsu-projets-listing-small'] = array(
|
||||
'name' => 'popsu-projets-listing-small',
|
||||
'effects' => array(
|
||||
10 => array(
|
||||
'label' => 'Mise à l’échelle et recadrage',
|
||||
'help' => 'La mise à l\'échelle et le recadrage maintiendront les proportions originales de l\'image puis recadreront la dimension la plus large. C\'est très utile pour créer des vignettes carrées sans étirer les images.',
|
||||
'effect callback' => 'image_scale_and_crop_effect',
|
||||
'dimensions callback' => 'image_resize_dimensions',
|
||||
'form callback' => 'image_resize_form',
|
||||
'summary theme' => 'image_resize_summary',
|
||||
'module' => 'image',
|
||||
'name' => 'image_scale_and_crop',
|
||||
'data' => array(
|
||||
'width' => '101',
|
||||
'height' => '87',
|
||||
),
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
return $styles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_projets_node_info() {
|
||||
$items = array(
|
||||
'popsu_projet' => array(
|
||||
'name' => t('Projet'),
|
||||
'base' => 'node_content',
|
||||
'description' => t('Ce type de contenu permet de créer une fiche projet.'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre du projet'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets.feeds_importer_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_feeds_importer_default().
|
||||
*/
|
||||
function popsu_projets_feeds_importer_default() {
|
||||
$export = array();
|
||||
|
||||
$feeds_importer = new stdClass();
|
||||
$feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */
|
||||
$feeds_importer->api_version = 1;
|
||||
$feeds_importer->id = 'popsu_popsu1_projets_from_xml';
|
||||
$feeds_importer->config = array(
|
||||
'name' => 'POPSU 1 - Projets from XML',
|
||||
'description' => 'Import de contenus Projets pour POPSU 1 depuis des fichiers XML',
|
||||
'fetcher' => array(
|
||||
'plugin_key' => 'FeedsFileFetcher',
|
||||
'config' => array(
|
||||
'allowed_extensions' => 'txt csv tsv xml opml json html htm',
|
||||
'direct' => 0,
|
||||
),
|
||||
),
|
||||
'parser' => array(
|
||||
'plugin_key' => 'FeedsXPathParserXML',
|
||||
'config' => array(
|
||||
'sources' => array(
|
||||
'xpathparser:0' => 'column[@name=\'titre\']',
|
||||
'xpathparser:2' => 'column[@name=\'descriptif\']',
|
||||
'xpathparser:1' => 'column[@name=\'chapo\']',
|
||||
'xpathparser:3' => 'column[@name=\'texte\']',
|
||||
'xpathparser:4' => 'column[@name=\'ps\']',
|
||||
'xpathparser:5' => 'column[@name=\'soustitre\']',
|
||||
'xpathparser:6' => 'column[@name=\'ville\']',
|
||||
),
|
||||
'rawXML' => array(
|
||||
'xpathparser:0' => 0,
|
||||
'xpathparser:2' => 0,
|
||||
'xpathparser:1' => 0,
|
||||
'xpathparser:3' => 0,
|
||||
'xpathparser:4' => 0,
|
||||
'xpathparser:5' => 0,
|
||||
'xpathparser:6' => 0,
|
||||
),
|
||||
'context' => '//table[@name=\'spip_articles\']',
|
||||
'exp' => array(
|
||||
'errors' => 1,
|
||||
'debug' => array(
|
||||
'context' => 0,
|
||||
'xpathparser:0' => 0,
|
||||
'xpathparser:2' => 0,
|
||||
'xpathparser:1' => 0,
|
||||
'xpathparser:3' => 0,
|
||||
'xpathparser:4' => 0,
|
||||
'xpathparser:5' => 0,
|
||||
'xpathparser:6' => 0,
|
||||
),
|
||||
),
|
||||
'allow_override' => 1,
|
||||
),
|
||||
),
|
||||
'processor' => array(
|
||||
'plugin_key' => 'FeedsNodeProcessor',
|
||||
'config' => array(
|
||||
'content_type' => 'popsu_projet',
|
||||
'expire' => '-1',
|
||||
'author' => '1',
|
||||
'authorize' => 0,
|
||||
'mappings' => array(
|
||||
0 => array(
|
||||
'source' => 'xpathparser:0',
|
||||
'target' => 'title',
|
||||
'unique' => FALSE,
|
||||
),
|
||||
1 => array(
|
||||
'source' => 'xpathparser:2',
|
||||
'target' => 'field_popsu_projet_presentation',
|
||||
'unique' => FALSE,
|
||||
),
|
||||
2 => array(
|
||||
'source' => 'xpathparser:1',
|
||||
'target' => 'field_popsu_projet_demarche',
|
||||
'unique' => FALSE,
|
||||
),
|
||||
3 => array(
|
||||
'source' => 'xpathparser:3',
|
||||
'target' => 'field_popsu_projet_programme',
|
||||
'unique' => FALSE,
|
||||
),
|
||||
4 => array(
|
||||
'source' => 'xpathparser:4',
|
||||
'target' => 'field_popsu_projet_acteurs',
|
||||
'unique' => FALSE,
|
||||
),
|
||||
5 => array(
|
||||
'source' => 'xpathparser:5',
|
||||
'target' => 'field_popsu_projet_commune',
|
||||
'unique' => FALSE,
|
||||
),
|
||||
6 => array(
|
||||
'source' => 'xpathparser:6',
|
||||
'target' => 'field_popsu_projet_ville',
|
||||
'unique' => FALSE,
|
||||
),
|
||||
),
|
||||
'update_existing' => '0',
|
||||
'input_format' => 'php_code',
|
||||
'skip_hash_check' => 0,
|
||||
),
|
||||
),
|
||||
'content_type' => '',
|
||||
'update' => 0,
|
||||
'import_period' => '-1',
|
||||
'expire_period' => 3600,
|
||||
'import_on_create' => 1,
|
||||
'process_in_background' => 0,
|
||||
);
|
||||
$export['popsu_popsu1_projets_from_xml'] = $feeds_importer;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,285 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_projets_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projet_acteurs|node|popsu_projet|form';
|
||||
$field_group->group_name = 'group_popsu_projet_acteurs';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Acteurs',
|
||||
'weight' => '8',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projet_acteurs',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projet_acteurs|node|popsu_projet|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projet_adresse|node|popsu_projet|form';
|
||||
$field_group->group_name = 'group_popsu_projet_adresse';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Localisation du projet',
|
||||
'weight' => '9',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projet_adresse',
|
||||
1 => 'field_popsu_projet_geoloc',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'label' => 'Localisation du projet',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 1,
|
||||
'classes' => '',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'closed',
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projet_adresse|node|popsu_projet|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projet_basic|node|popsu_projet|form';
|
||||
$field_group->group_name = 'group_popsu_projet_basic';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Informations essentielles',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projet_commune',
|
||||
1 => 'title',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projet_basic|node|popsu_projet|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projet_chronologie|node|popsu_projet|form';
|
||||
$field_group->group_name = 'group_popsu_projet_chronologie';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Chronologie',
|
||||
'weight' => '6',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projet_demarche',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projet_chronologie|node|popsu_projet|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projet_images|node|popsu_projet|form';
|
||||
$field_group->group_name = 'group_popsu_projet_images';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Images',
|
||||
'weight' => '10',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projet_imageintro',
|
||||
1 => 'field_popsu_projet_imagelocalise',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projet_images|node|popsu_projet|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projet_intro|node|popsu_projet|form';
|
||||
$field_group->group_name = 'group_popsu_projet_intro';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Introduction',
|
||||
'weight' => '4',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projet_presentation',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projet_intro|node|popsu_projet|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projet_lies|node|popsu_projet|form';
|
||||
$field_group->group_name = 'group_popsu_projet_lies';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Contenus liés',
|
||||
'weight' => '11',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projet_lies',
|
||||
1 => 'field_popsu_projet_comparatif',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projet_lies|node|popsu_projet|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projet_methodo|node|popsu_projet|form';
|
||||
$field_group->group_name = 'group_popsu_projet_methodo';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Démarche & méthodologie',
|
||||
'weight' => '5',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projet_methodo',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projet_methodo|node|popsu_projet|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projet_programme|node|popsu_projet|form';
|
||||
$field_group->group_name = 'group_popsu_projet_programme';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Programme',
|
||||
'weight' => '7',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projet_programme',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projet_programme|node|popsu_projet|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projet_title|node|popsu_projet|form';
|
||||
$field_group->group_name = 'group_popsu_projet_title';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Type de contenu "Projet"',
|
||||
'weight' => '2',
|
||||
'children' => array(),
|
||||
'format_type' => 'tabs',
|
||||
'format_settings' => array(
|
||||
'formatter' => '',
|
||||
'instance_settings' => array(
|
||||
'classes' => '',
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projet_title|node|popsu_projet|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
name = POPSU Projets
|
||||
description = POPSU - Type de contenu Projets
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
php = 5.2.4
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_projets
|
||||
dependencies[] = addressfield
|
||||
dependencies[] = context
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = feeds
|
||||
dependencies[] = field_group
|
||||
dependencies[] = filefield_paths
|
||||
dependencies[] = geocoder
|
||||
dependencies[] = geofield
|
||||
dependencies[] = image
|
||||
dependencies[] = menu_block
|
||||
dependencies[] = node_reference
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = popsu_structure
|
||||
dependencies[] = popsu_taxonomies
|
||||
dependencies[] = search
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = views
|
||||
dependencies[] = views_content
|
||||
features[context][] = popsu-projet-node
|
||||
features[ctools][] = context:context:3
|
||||
features[ctools][] = feeds:feeds_importer_default:1
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = page_manager:pages_default:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:1
|
||||
features[feeds_importer][] = popsu_popsu1_projets_from_xml
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_acteurs
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_adresse
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_commune
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_comparatif
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_demarche
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_geoloc
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_imageintro
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_imagelocalise
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_lies
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_methodo
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_presentation
|
||||
features[field][] = node-popsu_projet-field_popsu_projet_programme
|
||||
features[field_group][] = group_popsu_projet_acteurs|node|popsu_projet|form
|
||||
features[field_group][] = group_popsu_projet_adresse|node|popsu_projet|form
|
||||
features[field_group][] = group_popsu_projet_basic|node|popsu_projet|form
|
||||
features[field_group][] = group_popsu_projet_chronologie|node|popsu_projet|form
|
||||
features[field_group][] = group_popsu_projet_images|node|popsu_projet|form
|
||||
features[field_group][] = group_popsu_projet_intro|node|popsu_projet|form
|
||||
features[field_group][] = group_popsu_projet_lies|node|popsu_projet|form
|
||||
features[field_group][] = group_popsu_projet_methodo|node|popsu_projet|form
|
||||
features[field_group][] = group_popsu_projet_programme|node|popsu_projet|form
|
||||
features[field_group][] = group_popsu_projet_title|node|popsu_projet|form
|
||||
features[image][] = popsu-projets-grande-image
|
||||
features[image][] = popsu-projets-listing-small
|
||||
features[node][] = popsu_projet
|
||||
features[page_manager_handlers][] = node_view_panel_context_4
|
||||
features[variable][] = field_bundle_settings_node__popsu_projet
|
||||
features[variable][] = language_content_type_popsu_projet
|
||||
features[variable][] = menu_options_popsu_projet
|
||||
features[variable][] = menu_parent_popsu_projet
|
||||
features[variable][] = node_options_popsu_projet
|
||||
features[variable][] = node_preview_popsu_projet
|
||||
features[variable][] = node_submitted_popsu_projet
|
||||
features[views_view][] = projets
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Projets feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_projets.features.inc';
|
||||
@@ -0,0 +1,508 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets.pages_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_page_manager_handlers().
|
||||
*/
|
||||
function popsu_projets_default_page_manager_handlers() {
|
||||
$export = array();
|
||||
|
||||
$handler = new stdClass();
|
||||
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
||||
$handler->api_version = 1;
|
||||
$handler->name = 'node_view_panel_context_4';
|
||||
$handler->task = 'node_view';
|
||||
$handler->subtask = '';
|
||||
$handler->handler = 'panel_context';
|
||||
$handler->weight = 3;
|
||||
$handler->conf = array(
|
||||
'title' => 'Projets (feature)',
|
||||
'no_blocks' => 0,
|
||||
'pipeline' => 'standard',
|
||||
'body_classes_to_remove' => '',
|
||||
'body_classes_to_add' => '',
|
||||
'css_id' => '',
|
||||
'css' => '',
|
||||
'contexts' => array(),
|
||||
'relationships' => array(
|
||||
0 => array(
|
||||
'identifier' => 'Terme de taxonomie from Nœud (on Nœud: Ville [field_popsu_projet_ville])',
|
||||
'keyword' => 'taxonomy_term',
|
||||
'name' => 'entity_from_field:field_popsu_projet_ville-node-taxonomy_term',
|
||||
'delta' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'id' => 1,
|
||||
),
|
||||
),
|
||||
'access' => array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'node_type',
|
||||
'settings' => array(
|
||||
'type' => array(
|
||||
'popsu_projet' => 'popsu_projet',
|
||||
),
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
'logic' => 'and',
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'flexible:popsu_74_36_stacked';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'top' => NULL,
|
||||
'left' => NULL,
|
||||
'right' => NULL,
|
||||
'bottom' => NULL,
|
||||
'header' => NULL,
|
||||
'footer' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = '%taxonomy_term:name';
|
||||
$display->content = array();
|
||||
$display->panels = array();
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-1';
|
||||
$pane->panel = 'left';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_projet_imageintro';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'image',
|
||||
'delta_limit' => '0',
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => 0,
|
||||
'formatter_settings' => array(
|
||||
'image_style' => 'popsu-projets-grande-image',
|
||||
'image_link' => '',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'image-decallee',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-1'] = $pane;
|
||||
$display->panels['left'][0] = 'new-1';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-2';
|
||||
$pane->panel = 'left';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_projet_presentation';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => 'Présentation du site',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'layout-88p',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-2'] = $pane;
|
||||
$display->panels['left'][1] = 'new-2';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-3';
|
||||
$pane->panel = 'left';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_projet_methodo';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => 'Démarche et méthodologie',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'layout-88p',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 2;
|
||||
$pane->locks = array();
|
||||
$display->content['new-3'] = $pane;
|
||||
$display->panels['left'][2] = 'new-3';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-4';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_projet_geoloc';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'geofield_openlayers',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(
|
||||
'data' => 'full',
|
||||
'map_preset' => 'popsu_map_projets',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-4'] = $pane;
|
||||
$display->panels['right'][0] = 'new-4';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-5';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'node_links';
|
||||
$pane->subtype = 'node_links';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'role',
|
||||
'settings' => array(
|
||||
'rids' => array(
|
||||
0 => 3,
|
||||
1 => 4,
|
||||
2 => 5,
|
||||
),
|
||||
),
|
||||
'context' => 'logged-in-user',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'override_title' => 0,
|
||||
'override_title_text' => '',
|
||||
'build_mode' => 'full',
|
||||
'identifier' => '',
|
||||
'link' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'admin-add-item admin-add-item-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-5'] = $pane;
|
||||
$display->panels['right'][1] = 'new-5';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-6';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_projet_adresse';
|
||||
$pane->shown = FALSE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'addressfield_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(
|
||||
'use_widget_handlers' => 1,
|
||||
'format_handlers' => array(
|
||||
'address' => 'address',
|
||||
),
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 2;
|
||||
$pane->locks = array();
|
||||
$display->content['new-6'] = $pane;
|
||||
$display->panels['right'][2] = 'new-6';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-7';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_projet_demarche';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => 'Chronologie',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-chronologie',
|
||||
'css_class' => 'accordion-h2 accordion-h2-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 3;
|
||||
$pane->locks = array();
|
||||
$display->content['new-7'] = $pane;
|
||||
$display->panels['right'][3] = 'new-7';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-8';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_projet_programme';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 0,
|
||||
'override_title_text' => '',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-programme',
|
||||
'css_class' => 'accordion-h2 accordion-h2-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 4;
|
||||
$pane->locks = array();
|
||||
$display->content['new-8'] = $pane;
|
||||
$display->panels['right'][4] = 'new-8';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-9';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_projet_acteurs';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 0,
|
||||
'override_title_text' => '',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-acteurs',
|
||||
'css_class' => 'accordion-h2 accordion-h2-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 5;
|
||||
$pane->locks = array();
|
||||
$display->content['new-9'] = $pane;
|
||||
$display->panels['right'][5] = 'new-9';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-10';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'documents-panel_pane_2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_doc_parent_nid' => '%node:nid',
|
||||
'field_popsu_doc_type_tid' => '52',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-documents',
|
||||
'css_class' => 'accordion-h2 accordion-h2-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 6;
|
||||
$pane->locks = array();
|
||||
$display->content['new-10'] = $pane;
|
||||
$display->panels['right'][6] = 'new-10';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-11';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_projet_comparatif';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'node_reference_default',
|
||||
'delta_limit' => '0',
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => 0,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => 'Comparatifs',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-comparatif',
|
||||
'css_class' => 'accordion-h2 accordion-h2-panel pseudo-list',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 7;
|
||||
$pane->locks = array();
|
||||
$display->content['new-11'] = $pane;
|
||||
$display->panels['right'][7] = 'new-11';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-12';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'custom';
|
||||
$pane->subtype = 'custom';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'admin_title' => 'POPSU Fermeture de liste',
|
||||
'title' => '<none>',
|
||||
'body' => '<div></div>',
|
||||
'format' => 'php_code',
|
||||
'substitute' => 0,
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'border-last',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 8;
|
||||
$pane->locks = array();
|
||||
$display->content['new-12'] = $pane;
|
||||
$display->panels['right'][8] = 'new-12';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-13';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'node_title';
|
||||
$pane->subtype = 'node_title';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'link' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'page-title-secondary',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-13'] = $pane;
|
||||
$display->panels['top'][0] = 'new-13';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-14';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'projets-panel_pane_3';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'nid' => '%node:nid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-14'] = $pane;
|
||||
$display->panels['top'][1] = 'new-14';
|
||||
$display->hide_title = PANELS_TITLE_FIXED;
|
||||
$display->title_pane = '0';
|
||||
$handler->conf['display'] = $display;
|
||||
$export['node_view_panel_context_4'] = $handler;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_projets_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__popsu_projet';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(
|
||||
'teaser' => array(
|
||||
'custom_settings' => TRUE,
|
||||
),
|
||||
'full' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'rss' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_index' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_result' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'token' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'diff_standard' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '4',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '12',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_projet'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'language_content_type_popsu_projet';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_projet'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_options_popsu_projet';
|
||||
$strongarm->value = array(
|
||||
0 => 'menu-popsu1-menu',
|
||||
1 => 'menu-popsu2-menu',
|
||||
);
|
||||
$export['menu_options_popsu_projet'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_parent_popsu_projet';
|
||||
$strongarm->value = 'menu-popsu1-menu:1040';
|
||||
$export['menu_parent_popsu_projet'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_options_popsu_projet';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_projet'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_preview_popsu_projet';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_projet'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_submitted_popsu_projet';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_popsu_projet'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,462 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets.views_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_views_default_views().
|
||||
*/
|
||||
function popsu_projets_views_default_views() {
|
||||
$export = array();
|
||||
|
||||
$view = new view();
|
||||
$view->name = 'projets';
|
||||
$view->description = 'Liste des publications';
|
||||
$view->tag = 'POPSU';
|
||||
$view->base_table = 'node';
|
||||
$view->human_name = 'Projets';
|
||||
$view->core = 7;
|
||||
$view->api_version = '3.0';
|
||||
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||||
|
||||
/* Display: Master */
|
||||
$handler = $view->new_display('default', 'Master', 'default');
|
||||
$handler->display->display_options['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['use_more_text'] = 'plus';
|
||||
$handler->display->display_options['access']['type'] = 'perm';
|
||||
$handler->display->display_options['cache']['type'] = 'none';
|
||||
$handler->display->display_options['query']['type'] = 'views_query';
|
||||
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||||
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
|
||||
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
|
||||
$handler->display->display_options['pager']['type'] = 'full';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Éléments par page';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Tout -';
|
||||
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Décalage';
|
||||
$handler->display->display_options['pager']['options']['tags']['first'] = '« premier';
|
||||
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ précédent';
|
||||
$handler->display->display_options['pager']['options']['tags']['next'] = 'suivant ›';
|
||||
$handler->display->display_options['pager']['options']['tags']['last'] = 'dernier »';
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de publication */
|
||||
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_projet' => 'popsu_projet',
|
||||
);
|
||||
|
||||
/* Display: Page */
|
||||
$handler = $view->new_display('page', 'Page', 'page_1');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Projets';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['path'] = 'projets';
|
||||
|
||||
/* Display: Projets par ville Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Projets par ville Pane', 'panel_pane_1');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Les projets';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['pager'] = FALSE;
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Ville (field_popsu_projet_ville) */
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['id'] = 'field_popsu_projet_ville_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['table'] = 'field_data_field_popsu_projet_ville';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['field'] = 'field_popsu_projet_ville_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['summary_options']['items_per_page'] = '25';
|
||||
/* Filtre contextuel: Contenu : POPSU (field_popsu_projet_popsu) */
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['id'] = 'field_popsu_projet_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['table'] = 'field_data_field_popsu_projet_popsu';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['field'] = 'field_popsu_projet_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_projet_ville_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'node_edit_form.field_popsu_ville_ville',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Ville (field_popsu_projet_ville)',
|
||||
),
|
||||
'field_popsu_projet_popsu_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : POPSU (field_popsu_projet_popsu)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Projets par POPSU Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Projets par POPSU Pane', 'panel_pane_2');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['defaults']['css_class'] = FALSE;
|
||||
$handler->display->display_options['css_class'] = 'listing-grille listing-projets';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['pager'] = FALSE;
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'grid';
|
||||
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
|
||||
$handler->display->display_options['style_options']['columns'] = '2';
|
||||
$handler->display->display_options['style_options']['alignment'] = 'vertical';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['header'] = FALSE;
|
||||
/* Entête: Global : Résumé des résultats */
|
||||
$handler->display->display_options['header']['result']['id'] = 'result';
|
||||
$handler->display->display_options['header']['result']['table'] = 'views';
|
||||
$handler->display->display_options['header']['result']['field'] = 'result';
|
||||
$handler->display->display_options['header']['result']['empty'] = TRUE;
|
||||
$handler->display->display_options['header']['result']['content'] = '@total projets';
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Ville */
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['id'] = 'field_popsu_projet_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['table'] = 'field_data_field_popsu_projet_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['field'] = 'field_popsu_projet_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['alter']['text'] = '[title] <span class="listing-projet-ville">([field_popsu_projet_ville])</span>';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['type'] = 'taxonomy_term_reference_plain';
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Contenu : Titre */
|
||||
$handler->display->display_options['sorts']['title']['id'] = 'title';
|
||||
$handler->display->display_options['sorts']['title']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['title']['field'] = 'title';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : POPSU (field_popsu_projet_popsu) */
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['id'] = 'field_popsu_projet_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['table'] = 'field_data_field_popsu_projet_popsu';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['field'] = 'field_popsu_projet_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_projet_ville_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'node_edit_form.field_popsu_ville_ville',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Ville (field_popsu_projet_ville)',
|
||||
),
|
||||
'field_popsu_projet_popsu_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : POPSU (field_popsu_projet_popsu)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Contenus liés Projet NID */
|
||||
$handler = $view->new_display('panel_pane', 'Contenus liés Projet NID', 'panel_pane_3');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['defaults']['css_class'] = FALSE;
|
||||
$handler->display->display_options['css_class'] = 'listing-grille listing-projets';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['pager'] = FALSE;
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
|
||||
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['header'] = FALSE;
|
||||
$handler->display->display_options['defaults']['footer'] = FALSE;
|
||||
/* Pied de page: Global : PHP */
|
||||
$handler->display->display_options['footer']['php']['id'] = 'php';
|
||||
$handler->display->display_options['footer']['php']['table'] = 'views';
|
||||
$handler->display->display_options['footer']['php']['field'] = 'php';
|
||||
$handler->display->display_options['footer']['php']['php_output'] = '<style>
|
||||
#main-wrapper #block-menu_block-1 .menu-name-menu-popsu1-menu > ul.menu {
|
||||
background: url(/sites/default/themes/popsu/img/icons/voir-egalement-trans.png) no-repeat bottom right;
|
||||
padding-bottom: 15px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
</style>';
|
||||
$handler->display->display_options['defaults']['relationships'] = FALSE;
|
||||
/* Relation: Contenu : Projets & thèmes liés (field_popsu_projet_lies) */
|
||||
$handler->display->display_options['relationships']['field_popsu_projet_lies_nid']['id'] = 'field_popsu_projet_lies_nid';
|
||||
$handler->display->display_options['relationships']['field_popsu_projet_lies_nid']['table'] = 'field_data_field_popsu_projet_lies';
|
||||
$handler->display->display_options['relationships']['field_popsu_projet_lies_nid']['field'] = 'field_popsu_projet_lies_nid';
|
||||
$handler->display->display_options['relationships']['field_popsu_projet_lies_nid']['required'] = TRUE;
|
||||
$handler->display->display_options['relationships']['field_popsu_projet_lies_nid']['delta'] = '-1';
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['relationship'] = 'field_popsu_projet_lies_nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['nid']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['nid']['hide_empty'] = TRUE;
|
||||
/* Champ: Global : PHP */
|
||||
$handler->display->display_options['fields']['php']['id'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['php']['field'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['label'] = '';
|
||||
$handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['php']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['php']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
|
||||
$handler->display->display_options['fields']['php']['php_value'] = '$row->nid';
|
||||
$handler->display->display_options['fields']['php']['php_output'] = '<style>
|
||||
#sidebar-first ul.menu li.nid-<?php echo $row->nid; ?> {
|
||||
background: url(/sites/default/themes/popsu/img/icons/voir-egalement-left-trans.png) no-repeat top left;
|
||||
padding-left: 15px;
|
||||
}
|
||||
#sidebar-first .left-nav-level-2 ul.menu li ul li.nid-<?php echo $row->nid; ?> a {
|
||||
font-family: OpenSansBoldItalic, verdana,arial,helvetica,sans-serif;
|
||||
background: url(/sites/default/themes/popsu/img/icons/voir-egalement-right-trans.png) no-repeat top right;
|
||||
padding-right: 15px;
|
||||
display: inline;
|
||||
}
|
||||
</style>';
|
||||
$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
|
||||
$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Contenu : Titre */
|
||||
$handler->display->display_options['sorts']['title']['id'] = 'title';
|
||||
$handler->display->display_options['sorts']['title']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['title']['field'] = 'title';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Nid */
|
||||
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['nid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_projet' => 'popsu_projet',
|
||||
'popsu_theme_local' => 'popsu_theme_local',
|
||||
);
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Nid',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Projets par POPSU Pane Thumbs */
|
||||
$handler = $view->new_display('panel_pane', 'Projets par POPSU Pane Thumbs', 'panel_pane_4');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['defaults']['css_class'] = FALSE;
|
||||
$handler->display->display_options['css_class'] = 'listing-grille';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['pager'] = FALSE;
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'list';
|
||||
$handler->display->display_options['style_options']['row_class'] = 'span2';
|
||||
$handler->display->display_options['style_options']['wrapper_class'] = 'listing-thumb clearfix listing-projets';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['header'] = FALSE;
|
||||
/* Entête: Global : Résumé des résultats */
|
||||
$handler->display->display_options['header']['result']['id'] = 'result';
|
||||
$handler->display->display_options['header']['result']['table'] = 'views';
|
||||
$handler->display->display_options['header']['result']['field'] = 'result';
|
||||
$handler->display->display_options['header']['result']['empty'] = TRUE;
|
||||
$handler->display->display_options['header']['result']['content'] = '@total projets';
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Image d'introduction */
|
||||
$handler->display->display_options['fields']['field_popsu_projet_imageintro']['id'] = 'field_popsu_projet_imageintro';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_imageintro']['table'] = 'field_data_field_popsu_projet_imageintro';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_imageintro']['field'] = 'field_popsu_projet_imageintro';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_imageintro']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_imageintro']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projet_imageintro']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projet_imageintro']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_imageintro']['settings'] = array(
|
||||
'image_style' => 'popsu-projets-listing-small',
|
||||
'image_link' => '',
|
||||
);
|
||||
$handler->display->display_options['fields']['field_popsu_projet_imageintro']['delta_limit'] = '1';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_imageintro']['delta_offset'] = '0';
|
||||
/* Champ: Contenu : Chemin */
|
||||
$handler->display->display_options['fields']['path']['id'] = 'path';
|
||||
$handler->display->display_options['fields']['path']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['path']['field'] = 'path';
|
||||
$handler->display->display_options['fields']['path']['label'] = '';
|
||||
$handler->display->display_options['fields']['path']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['path']['alter']['text'] = '<a href="[path]" class="image-placeover">[field_popsu_projet_imageintro]</a>';
|
||||
$handler->display->display_options['fields']['path']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['path']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['path']['absolute'] = TRUE;
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['max_length'] = '35';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['trim'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Ville */
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['id'] = 'field_popsu_projet_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['table'] = 'field_data_field_popsu_projet_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['field'] = 'field_popsu_projet_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['alter']['text'] = '[title] <span class="listing-projet-ville">([field_popsu_projet_ville])</span>';
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projet_ville']['type'] = 'taxonomy_term_reference_plain';
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Contenu : Titre */
|
||||
$handler->display->display_options['sorts']['title']['id'] = 'title';
|
||||
$handler->display->display_options['sorts']['title']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['title']['field'] = 'title';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : POPSU (field_popsu_projet_popsu) */
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['id'] = 'field_popsu_projet_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['table'] = 'field_data_field_popsu_projet_popsu';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['field'] = 'field_popsu_projet_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_projet_ville_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'node_edit_form.field_popsu_ville_ville',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Ville (field_popsu_projet_ville)',
|
||||
),
|
||||
'field_popsu_projet_popsu_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : POPSU (field_popsu_projet_popsu)',
|
||||
),
|
||||
);
|
||||
$translatables['projets'] = array(
|
||||
t('Master'),
|
||||
t('plus'),
|
||||
t('Appliquer'),
|
||||
t('Réinitialiser'),
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('Éléments par page'),
|
||||
t('- Tout -'),
|
||||
t('Décalage'),
|
||||
t('« premier'),
|
||||
t('‹ précédent'),
|
||||
t('suivant ›'),
|
||||
t('dernier »'),
|
||||
t('Page'),
|
||||
t('Projets'),
|
||||
t('Projets par ville Pane'),
|
||||
t('Les projets'),
|
||||
t('Tout'),
|
||||
t('Volets de vue'),
|
||||
t('Projets par POPSU Pane'),
|
||||
t('@total projets'),
|
||||
t('[title] <span class="listing-projet-ville">([field_popsu_projet_ville])</span>'),
|
||||
t('Contenus liés Projet NID'),
|
||||
t('field_popsu_projet_lies'),
|
||||
t('Projets par POPSU Pane Thumbs'),
|
||||
t('<a href="[path]" class="image-placeover">[field_popsu_projet_imageintro]</a>'),
|
||||
);
|
||||
$export['projets'] = $view;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets_europe.context.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_context_default_contexts().
|
||||
*/
|
||||
function popsu_projets_europe_context_default_contexts() {
|
||||
$export = array();
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-projets-europe-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Projet POPSU Europe (feature)';
|
||||
$context->tag = 'projets-europe-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_projet_europe' => 'popsu_projet_europe',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'menu_block-6' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '6',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
),
|
||||
),
|
||||
'theme_html' => array(
|
||||
'class' => 'context-popsu-europe',
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 0;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Projet POPSU Europe (feature)');
|
||||
t('projets-europe-feature');
|
||||
$export['popsu-projets-europe-node'] = $context;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,374 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets_europe.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_projets_europe_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_projet_europe-field_popsu_projeteur_body'.
|
||||
$fields['node-popsu_projet_europe-field_popsu_projeteur_body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projeteur_body',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_with_summary',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet_europe',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 2,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projeteur_body',
|
||||
'label' => 'Texte d\'introduction',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'display_summary' => 0,
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '20',
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet_europe-field_popsu_projeteur_diapo'.
|
||||
$fields['node-popsu_projet_europe-field_popsu_projeteur_diapo'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projeteur_diapo',
|
||||
'foreign keys' => array(
|
||||
'fid' => array(
|
||||
'columns' => array(
|
||||
'fid' => 'fid',
|
||||
),
|
||||
'table' => 'file_managed',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'default_image' => 0,
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'image',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet_europe',
|
||||
'deleted' => '0',
|
||||
'description' => 'Ces images serviront à illustrer le thème auquel se rattache ce projet.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => '',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => 5,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projeteur_diapo',
|
||||
'label' => 'Images pour le diaporama thème',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'png gif jpg jpeg',
|
||||
'filefield_paths' => array(
|
||||
'active_updating' => 0,
|
||||
'file_name' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
|
||||
),
|
||||
'file_path' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => 'nodes/[node:content-type]/[node:nid]/diapo',
|
||||
),
|
||||
'retroactive_update' => 0,
|
||||
),
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => '9',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet_europe-field_popsu_projeteur_theme'.
|
||||
$fields['node-popsu_projet_europe-field_popsu_projeteur_theme'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projeteur_theme',
|
||||
'foreign keys' => array(
|
||||
'nid' => array(
|
||||
'columns' => array(
|
||||
'nid' => 'nid',
|
||||
),
|
||||
'table' => 'node',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'nid' => array(
|
||||
0 => 'nid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(
|
||||
'referenceable_types' => array(
|
||||
'article' => 0,
|
||||
'page' => 0,
|
||||
'popsu_colloque' => 0,
|
||||
'popsu_document' => 0,
|
||||
'popsu_page' => 0,
|
||||
'popsu_projet' => 0,
|
||||
'popsu_projet_europe' => 0,
|
||||
'popsu_publication' => 0,
|
||||
'popsu_special' => 0,
|
||||
'popsu_theme_europe' => 'popsu_theme_europe',
|
||||
'popsu_theme_local' => 0,
|
||||
'popsu_theme_trans' => 0,
|
||||
'popsu_ville' => 0,
|
||||
'popsu_ville_europe' => 0,
|
||||
),
|
||||
'view' => array(
|
||||
'args' => array(),
|
||||
'display_name' => '',
|
||||
'view_name' => '',
|
||||
),
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'node_reference',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet_europe',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(),
|
||||
'type' => 'node_reference_default',
|
||||
'weight' => 4,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projeteur_theme',
|
||||
'label' => 'Thème',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_select',
|
||||
'weight' => '6',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_projet_europe-field_popsu_projeteur_thumb'.
|
||||
$fields['node-popsu_projet_europe-field_popsu_projeteur_thumb'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_projeteur_thumb',
|
||||
'foreign keys' => array(
|
||||
'fid' => array(
|
||||
'columns' => array(
|
||||
'fid' => 'fid',
|
||||
),
|
||||
'table' => 'file_managed',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'default_image' => 0,
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'image',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_projet_europe',
|
||||
'deleted' => '0',
|
||||
'description' => 'Cette image servira à afficher ce projet dans la liste des projets d\'une ville POPSU Europe, si cette ville a plusieurs projets.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => '',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => 3,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_projeteur_thumb',
|
||||
'label' => 'Image du projet (miniature)',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'png gif jpg jpeg',
|
||||
'filefield_paths' => array(
|
||||
'active_updating' => 0,
|
||||
'file_name' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
|
||||
),
|
||||
'file_path' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => 'nodes/[node:content-type]/[node:nid]/thumb',
|
||||
),
|
||||
'retroactive_update' => 0,
|
||||
),
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => '4',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Ces images serviront à illustrer le thème auquel se rattache ce projet.');
|
||||
t('Cette image servira à afficher ce projet dans la liste des projets d\'une ville POPSU Europe, si cette ville a plusieurs projets.');
|
||||
t('Image du projet (miniature)');
|
||||
t('Images pour le diaporama thème');
|
||||
t('Texte d\'introduction');
|
||||
t('Thème');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets_europe.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_projets_europe_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "context" && $api == "context") {
|
||||
return array("version" => "3");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "page_manager" && $api == "pages_default") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*/
|
||||
function popsu_projets_europe_views_api() {
|
||||
return array("version" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_image_default_styles().
|
||||
*/
|
||||
function popsu_projets_europe_image_default_styles() {
|
||||
$styles = array();
|
||||
|
||||
// Exported image style: popsu-projetseurope-diapo.
|
||||
$styles['popsu-projetseurope-diapo'] = array(
|
||||
'name' => 'popsu-projetseurope-diapo',
|
||||
'effects' => array(
|
||||
14 => array(
|
||||
'label' => 'Mise à l’échelle et recadrage',
|
||||
'help' => 'La mise à l\'échelle et le recadrage maintiendront les proportions originales de l\'image puis recadreront la dimension la plus large. C\'est très utile pour créer des vignettes carrées sans étirer les images.',
|
||||
'effect callback' => 'image_scale_and_crop_effect',
|
||||
'dimensions callback' => 'image_resize_dimensions',
|
||||
'form callback' => 'image_resize_form',
|
||||
'summary theme' => 'image_resize_summary',
|
||||
'module' => 'image',
|
||||
'name' => 'image_scale_and_crop',
|
||||
'data' => array(
|
||||
'width' => '600',
|
||||
'height' => '300',
|
||||
),
|
||||
'weight' => '2',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
return $styles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_projets_europe_node_info() {
|
||||
$items = array(
|
||||
'popsu_projet_europe' => array(
|
||||
'name' => t('Projet POPSU Europe'),
|
||||
'base' => 'node_content',
|
||||
'description' => '',
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre (pour l\'administration uniquement)'),
|
||||
'help' => t('Le titre de la page ne sera utilisé que pour les pages d\'administration.
|
||||
Ex: Barcelone / Gare TGV'),
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets_europe.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_projets_europe_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projeteur_basic|node|popsu_projet_europe|form';
|
||||
$field_group->group_name = 'group_popsu_projeteur_basic';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet_europe';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Informations essentielles',
|
||||
'weight' => '1',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projeteur_theme',
|
||||
1 => 'title',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projeteur_basic|node|popsu_projet_europe|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projeteur_diapo|node|popsu_projet_europe|form';
|
||||
$field_group->group_name = 'group_popsu_projeteur_diapo';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet_europe';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Images / Diaporama',
|
||||
'weight' => '4',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projeteur_diapo',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projeteur_diapo|node|popsu_projet_europe|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projeteur_intro|node|popsu_projet_europe|form';
|
||||
$field_group->group_name = 'group_popsu_projeteur_intro';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet_europe';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Introduction',
|
||||
'weight' => '2',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projeteur_body',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projeteur_intro|node|popsu_projet_europe|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_projeteur_thumb|node|popsu_projet_europe|form';
|
||||
$field_group->group_name = 'group_popsu_projeteur_thumb';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_projet_europe';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Image / Miniature',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_projeteur_thumb',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_projeteur_thumb|node|popsu_projet_europe|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
name = POPSU Projets Europe
|
||||
description = POPSU - Type de contenu Projets Europe
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_projets_europe
|
||||
dependencies[] = ctools
|
||||
dependencies[] = field_group
|
||||
dependencies[] = filefield_paths
|
||||
dependencies[] = image
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = popsu_structure
|
||||
dependencies[] = popsu_taxonomies
|
||||
dependencies[] = views
|
||||
dependencies[] = views_content
|
||||
features[context][] = popsu-projets-europe-node
|
||||
features[ctools][] = context:context:3
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = page_manager:pages_default:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:1
|
||||
features[field][] = node-popsu_projet_europe-field_popsu_projeteur_body
|
||||
features[field][] = node-popsu_projet_europe-field_popsu_projeteur_diapo
|
||||
features[field][] = node-popsu_projet_europe-field_popsu_projeteur_theme
|
||||
features[field][] = node-popsu_projet_europe-field_popsu_projeteur_thumb
|
||||
features[field_group][] = group_popsu_projeteur_basic|node|popsu_projet_europe|form
|
||||
features[field_group][] = group_popsu_projeteur_diapo|node|popsu_projet_europe|form
|
||||
features[field_group][] = group_popsu_projeteur_intro|node|popsu_projet_europe|form
|
||||
features[field_group][] = group_popsu_projeteur_thumb|node|popsu_projet_europe|form
|
||||
features[image][] = popsu-projetseurope-diapo
|
||||
features[node][] = popsu_projet_europe
|
||||
features[page_manager_handlers][] = node_view_panel_context_10
|
||||
features[views_view][] = projets_europe
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Projets Europe feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_projets_europe.features.inc';
|
||||
@@ -0,0 +1,294 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets_europe.pages_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_page_manager_handlers().
|
||||
*/
|
||||
function popsu_projets_europe_default_page_manager_handlers() {
|
||||
$export = array();
|
||||
|
||||
$handler = new stdClass();
|
||||
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
||||
$handler->api_version = 1;
|
||||
$handler->name = 'node_view_panel_context_10';
|
||||
$handler->task = 'node_view';
|
||||
$handler->subtask = '';
|
||||
$handler->handler = 'panel_context';
|
||||
$handler->weight = 9;
|
||||
$handler->conf = array(
|
||||
'title' => 'Projet Europe (feature)',
|
||||
'no_blocks' => 0,
|
||||
'pipeline' => 'standard',
|
||||
'body_classes_to_remove' => '',
|
||||
'body_classes_to_add' => 'panel-ville-europe panel-projet-ville-europe',
|
||||
'css_id' => '',
|
||||
'css' => '',
|
||||
'contexts' => array(),
|
||||
'relationships' => array(
|
||||
0 => array(
|
||||
'identifier' => 'Nœud from Nœud (on Nœud: Thème [field_popsu_projeteur_theme])',
|
||||
'keyword' => 'node_2',
|
||||
'name' => 'entity_from_field:field_popsu_projeteur_theme-node-node',
|
||||
'delta' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'id' => 1,
|
||||
),
|
||||
1 => array(
|
||||
'identifier' => 'Terme de taxonomie from Nœud (on Nœud: Ville [field_popsu_projeteur_ville])',
|
||||
'keyword' => 'taxonomy_term',
|
||||
'name' => 'entity_from_field:field_popsu_projeteur_ville-node-taxonomy_term',
|
||||
'delta' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'id' => 1,
|
||||
),
|
||||
),
|
||||
'access' => array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'node_type',
|
||||
'settings' => array(
|
||||
'type' => array(
|
||||
'popsu_projet_europe' => 'popsu_projet_europe',
|
||||
),
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
'logic' => 'and',
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'flexible:popsu_74_36_stacked';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'top' => NULL,
|
||||
'left' => NULL,
|
||||
'right' => NULL,
|
||||
'bottom' => NULL,
|
||||
'header' => NULL,
|
||||
'footer' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = '%node:field_popsu_projeteur_ville';
|
||||
$display->content = array();
|
||||
$display->panels = array();
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-1';
|
||||
$pane->panel = 'footer';
|
||||
$pane->type = 'node_content';
|
||||
$pane->subtype = 'node_content';
|
||||
$pane->shown = FALSE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'links' => 0,
|
||||
'no_extras' => 0,
|
||||
'override_title' => 0,
|
||||
'override_title_text' => '',
|
||||
'identifier' => '',
|
||||
'link' => 0,
|
||||
'leave_node_title' => 0,
|
||||
'build_mode' => 'full',
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-1'] = $pane;
|
||||
$display->panels['footer'][0] = 'new-1';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-2';
|
||||
$pane->panel = 'left';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'projets_europe-panel_pane_4';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'nid' => '%node:nid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-2'] = $pane;
|
||||
$display->panels['left'][0] = 'new-2';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-3';
|
||||
$pane->panel = 'left';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_projeteur_body';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'layout-88p',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-3'] = $pane;
|
||||
$display->panels['left'][1] = 'new-3';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-4';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'node_links';
|
||||
$pane->subtype = 'node_links';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'role',
|
||||
'settings' => array(
|
||||
'rids' => array(
|
||||
0 => 3,
|
||||
1 => 4,
|
||||
2 => 5,
|
||||
),
|
||||
),
|
||||
'context' => 'logged-in-user',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
'build_mode' => 'full',
|
||||
'identifier' => '',
|
||||
'link' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'admin-add-item admin-add-item-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-4'] = $pane;
|
||||
$display->panels['right'][0] = 'new-4';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-5';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'documents-panel_pane_2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_doc_parent_nid' => '%node:nid',
|
||||
'field_popsu_doc_type_tid' => '52',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'accordion-h2 accordion-h2-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-5'] = $pane;
|
||||
$display->panels['right'][1] = 'new-5';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-6';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'projets_europe-panel_pane_2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_projeteur_ville_tid' => '%taxonomy_term:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'popsu-europe-liste-projets clearfix',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-6'] = $pane;
|
||||
$display->panels['top'][0] = 'new-6';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-7';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_projeteur_theme';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'node_reference_plain',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'page-title-secondary clearfix',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-7'] = $pane;
|
||||
$display->panels['top'][1] = 'new-7';
|
||||
$display->hide_title = PANELS_TITLE_FIXED;
|
||||
$display->title_pane = '0';
|
||||
$handler->conf['display'] = $display;
|
||||
$export['node_view_panel_context_10'] = $handler;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,449 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_projets_europe.views_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_views_default_views().
|
||||
*/
|
||||
function popsu_projets_europe_views_default_views() {
|
||||
$export = array();
|
||||
|
||||
$view = new view();
|
||||
$view->name = 'projets_europe';
|
||||
$view->description = 'Liste des projets POPSU Europe';
|
||||
$view->tag = 'POPSU';
|
||||
$view->base_table = 'node';
|
||||
$view->human_name = 'Projets POPSU Europe';
|
||||
$view->core = 7;
|
||||
$view->api_version = '3.0';
|
||||
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||||
|
||||
/* Display: Master */
|
||||
$handler = $view->new_display('default', 'Master', 'default');
|
||||
$handler->display->display_options['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['use_more_text'] = 'plus';
|
||||
$handler->display->display_options['access']['type'] = 'perm';
|
||||
$handler->display->display_options['cache']['type'] = 'none';
|
||||
$handler->display->display_options['query']['type'] = 'views_query';
|
||||
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||||
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
|
||||
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['style_plugin'] = 'list';
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
/* Champ: Contenu : Ville */
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['id'] = 'field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['table'] = 'field_data_field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['field'] = 'field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['type'] = 'taxonomy_term_reference_plain';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '[field_popsu_projeteur_ville]';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de publication */
|
||||
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_projet_europe' => 'popsu_projet_europe',
|
||||
);
|
||||
|
||||
/* Display: Projet Europe Par ThèmeEUR Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Projet Europe Par ThèmeEUR Pane', 'panel_pane_1');
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['header'] = FALSE;
|
||||
/* Entête: Global : Résumé des résultats */
|
||||
$handler->display->display_options['header']['result']['id'] = 'result';
|
||||
$handler->display->display_options['header']['result']['table'] = 'views';
|
||||
$handler->display->display_options['header']['result']['field'] = 'result';
|
||||
$handler->display->display_options['header']['result']['content'] = '@total villes etudiees';
|
||||
$handler->display->display_options['defaults']['relationships'] = FALSE;
|
||||
/* Relation: Contenu : Ville (field_popsu_projeteur_ville) */
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['id'] = 'field_popsu_projeteur_ville_tid';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['table'] = 'field_data_field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['field'] = 'field_popsu_projeteur_ville_tid';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['required'] = TRUE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Ville */
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['id'] = 'field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['table'] = 'field_data_field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['field'] = 'field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['type'] = 'taxonomy_term_reference_plain';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '[field_popsu_projeteur_ville]';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Terme de taxonomie : Nom */
|
||||
$handler->display->display_options['sorts']['name']['id'] = 'name';
|
||||
$handler->display->display_options['sorts']['name']['table'] = 'taxonomy_term_data';
|
||||
$handler->display->display_options['sorts']['name']['field'] = 'name';
|
||||
$handler->display->display_options['sorts']['name']['relationship'] = 'field_popsu_projeteur_ville_tid';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Thème (field_popsu_projeteur_theme) */
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['id'] = 'field_popsu_projeteur_theme_nid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['table'] = 'field_data_field_popsu_projeteur_theme';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['field'] = 'field_popsu_projeteur_theme_nid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_projeteur_theme_nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Thème (field_popsu_projeteur_theme)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Projet Europe Par VilleEUR Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Projet Europe Par VilleEUR Pane', 'panel_pane_2');
|
||||
$handler->display->display_options['defaults']['css_class'] = FALSE;
|
||||
$handler->display->display_options['css_class'] = 'listing-grille listing-projets';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['relationships'] = FALSE;
|
||||
/* Relation: Contenu : Thème (field_popsu_projeteur_theme) */
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_theme_nid']['id'] = 'field_popsu_projeteur_theme_nid';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_theme_nid']['table'] = 'field_data_field_popsu_projeteur_theme';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_theme_nid']['field'] = 'field_popsu_projeteur_theme_nid';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_theme_nid']['required'] = TRUE;
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_theme_nid']['delta'] = '-1';
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Chemin */
|
||||
$handler->display->display_options['fields']['path']['id'] = 'path';
|
||||
$handler->display->display_options['fields']['path']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['path']['field'] = 'path';
|
||||
$handler->display->display_options['fields']['path']['label'] = '';
|
||||
$handler->display->display_options['fields']['path']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['path']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['path']['absolute'] = TRUE;
|
||||
/* Champ: Contenu : Image du thème (miniature) */
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_thumb']['id'] = 'field_popsu_themeur_thumb';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_thumb']['table'] = 'field_data_field_popsu_themeur_thumb';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_thumb']['field'] = 'field_popsu_themeur_thumb';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_thumb']['relationship'] = 'field_popsu_projeteur_theme_nid';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_thumb']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_thumb']['alter']['make_link'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_thumb']['alter']['path'] = '[path]';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_thumb']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_thumb']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_thumb']['settings'] = array(
|
||||
'image_style' => 'popsu-themeseur-listing-small',
|
||||
'image_link' => '',
|
||||
);
|
||||
/* Champ: Contenu : Ville */
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['id'] = 'field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['table'] = 'field_data_field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['field'] = 'field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_ville']['type'] = 'taxonomy_term_reference_plain';
|
||||
/* Champ: Contenu : Version courte de l'intitulé */
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_titleshort']['id'] = 'field_popsu_themeur_titleshort';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_titleshort']['table'] = 'field_data_field_popsu_themeur_titleshort';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_titleshort']['field'] = 'field_popsu_themeur_titleshort';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_titleshort']['relationship'] = 'field_popsu_projeteur_theme_nid';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_titleshort']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_titleshort']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_titleshort']['alter']['text'] = '[field_popsu_projeteur_ville] / [field_popsu_themeur_titleshort]';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_titleshort']['alter']['make_link'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_titleshort']['alter']['path'] = '[path]';
|
||||
$handler->display->display_options['fields']['field_popsu_themeur_titleshort']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Contenu : Titre */
|
||||
$handler->display->display_options['sorts']['title']['id'] = 'title';
|
||||
$handler->display->display_options['sorts']['title']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['title']['field'] = 'title';
|
||||
$handler->display->display_options['sorts']['title']['relationship'] = 'field_popsu_projeteur_theme_nid';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Ville (field_popsu_projeteur_ville) */
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_ville_tid']['id'] = 'field_popsu_projeteur_ville_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_ville_tid']['table'] = 'field_data_field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_ville_tid']['field'] = 'field_popsu_projeteur_ville_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_ville_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_ville_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_ville_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_ville_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_ville_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_ville_tid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_projeteur_ville_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Ville (field_popsu_projeteur_ville)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Diapo Villes Europe par ThèmeEUR Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Diapo Villes Europe par ThèmeEUR Pane', 'panel_pane_3');
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'list';
|
||||
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
|
||||
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
|
||||
$handler->display->display_options['style_options']['class'] = 'slides';
|
||||
$handler->display->display_options['style_options']['wrapper_class'] = 'item-list flexslider';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['header'] = FALSE;
|
||||
$handler->display->display_options['defaults']['relationships'] = FALSE;
|
||||
/* Relation: Contenu : Ville (field_popsu_projeteur_ville) */
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['id'] = 'field_popsu_projeteur_ville_tid';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['table'] = 'field_data_field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['field'] = 'field_popsu_projeteur_ville_tid';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['required'] = TRUE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Terme de taxonomie : Nom */
|
||||
$handler->display->display_options['fields']['name']['id'] = 'name';
|
||||
$handler->display->display_options['fields']['name']['table'] = 'taxonomy_term_data';
|
||||
$handler->display->display_options['fields']['name']['field'] = 'name';
|
||||
$handler->display->display_options['fields']['name']['relationship'] = 'field_popsu_projeteur_ville_tid';
|
||||
$handler->display->display_options['fields']['name']['label'] = '';
|
||||
$handler->display->display_options['fields']['name']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['name']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Images pour le diaporama thème */
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['id'] = 'field_popsu_projeteur_diapo';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['table'] = 'field_data_field_popsu_projeteur_diapo';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['field'] = 'field_popsu_projeteur_diapo';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['alter']['text'] = '[field_popsu_projeteur_diapo]
|
||||
<p class="flex-caption"><span class="ville-title">[name]</span> - [field_popsu_projeteur_diapo-title]</p>';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['empty_zero'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['settings'] = array(
|
||||
'image_style' => 'popsu-projetseurope-diapo',
|
||||
'image_link' => '',
|
||||
);
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['group_rows'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['delta_offset'] = '0';
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Global : Au hasard */
|
||||
$handler->display->display_options['sorts']['random']['id'] = 'random';
|
||||
$handler->display->display_options['sorts']['random']['table'] = 'views';
|
||||
$handler->display->display_options['sorts']['random']['field'] = 'random';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Thème (field_popsu_projeteur_theme) */
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['id'] = 'field_popsu_projeteur_theme_nid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['table'] = 'field_data_field_popsu_projeteur_theme';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['field'] = 'field_popsu_projeteur_theme_nid';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_projeteur_theme_nid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_projet_europe' => 'popsu_projet_europe',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Images pour le diaporama thème (field_popsu_projeteur_diapo:fid) */
|
||||
$handler->display->display_options['filters']['field_popsu_projeteur_diapo_fid']['id'] = 'field_popsu_projeteur_diapo_fid';
|
||||
$handler->display->display_options['filters']['field_popsu_projeteur_diapo_fid']['table'] = 'field_data_field_popsu_projeteur_diapo';
|
||||
$handler->display->display_options['filters']['field_popsu_projeteur_diapo_fid']['field'] = 'field_popsu_projeteur_diapo_fid';
|
||||
$handler->display->display_options['filters']['field_popsu_projeteur_diapo_fid']['operator'] = 'not empty';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_projeteur_theme_nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Thème (field_popsu_projeteur_theme)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Diapo Villes Europe par ProjetEUR Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Diapo Villes Europe par ProjetEUR Pane', 'panel_pane_4');
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'list';
|
||||
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
|
||||
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
|
||||
$handler->display->display_options['style_options']['class'] = 'slides';
|
||||
$handler->display->display_options['style_options']['wrapper_class'] = 'item-list flexslider';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['header'] = FALSE;
|
||||
$handler->display->display_options['defaults']['relationships'] = FALSE;
|
||||
/* Relation: Contenu : Ville (field_popsu_projeteur_ville) */
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['id'] = 'field_popsu_projeteur_ville_tid';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['table'] = 'field_data_field_popsu_projeteur_ville';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['field'] = 'field_popsu_projeteur_ville_tid';
|
||||
$handler->display->display_options['relationships']['field_popsu_projeteur_ville_tid']['required'] = TRUE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Terme de taxonomie : Nom */
|
||||
$handler->display->display_options['fields']['name']['id'] = 'name';
|
||||
$handler->display->display_options['fields']['name']['table'] = 'taxonomy_term_data';
|
||||
$handler->display->display_options['fields']['name']['field'] = 'name';
|
||||
$handler->display->display_options['fields']['name']['relationship'] = 'field_popsu_projeteur_ville_tid';
|
||||
$handler->display->display_options['fields']['name']['label'] = '';
|
||||
$handler->display->display_options['fields']['name']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['name']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Images pour le diaporama thème */
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['id'] = 'field_popsu_projeteur_diapo';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['table'] = 'field_data_field_popsu_projeteur_diapo';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['field'] = 'field_popsu_projeteur_diapo';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['alter']['text'] = '[field_popsu_projeteur_diapo]
|
||||
<p class="flex-caption"><span class="ville-title">[name]</span> - [field_popsu_projeteur_diapo-title]</p>';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['empty_zero'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['settings'] = array(
|
||||
'image_style' => 'popsu-projetseurope-diapo',
|
||||
'image_link' => '',
|
||||
);
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['group_rows'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_projeteur_diapo']['delta_offset'] = '0';
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Global : Au hasard */
|
||||
$handler->display->display_options['sorts']['random']['id'] = 'random';
|
||||
$handler->display->display_options['sorts']['random']['table'] = 'views';
|
||||
$handler->display->display_options['sorts']['random']['field'] = 'random';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Nid */
|
||||
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['nid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_projet_europe' => 'popsu_projet_europe',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Images pour le diaporama thème (field_popsu_projeteur_diapo:fid) */
|
||||
$handler->display->display_options['filters']['field_popsu_projeteur_diapo_fid']['id'] = 'field_popsu_projeteur_diapo_fid';
|
||||
$handler->display->display_options['filters']['field_popsu_projeteur_diapo_fid']['table'] = 'field_data_field_popsu_projeteur_diapo';
|
||||
$handler->display->display_options['filters']['field_popsu_projeteur_diapo_fid']['field'] = 'field_popsu_projeteur_diapo_fid';
|
||||
$handler->display->display_options['filters']['field_popsu_projeteur_diapo_fid']['operator'] = 'not empty';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Nid',
|
||||
),
|
||||
);
|
||||
$translatables['projets_europe'] = array(
|
||||
t('Master'),
|
||||
t('plus'),
|
||||
t('Appliquer'),
|
||||
t('Réinitialiser'),
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('[field_popsu_projeteur_ville]'),
|
||||
t('Projet Europe Par ThèmeEUR Pane'),
|
||||
t('@total villes etudiees'),
|
||||
t('terme à partir de field_popsu_projeteur_ville'),
|
||||
t('Tout'),
|
||||
t('Volets de vue'),
|
||||
t('Projet Europe Par VilleEUR Pane'),
|
||||
t('field_popsu_projeteur_theme'),
|
||||
t('[field_popsu_projeteur_ville] / [field_popsu_themeur_titleshort]'),
|
||||
t('Diapo Villes Europe par ThèmeEUR Pane'),
|
||||
t('[field_popsu_projeteur_diapo]
|
||||
<p class="flex-caption"><span class="ville-title">[name]</span> - [field_popsu_projeteur_diapo-title]</p>'),
|
||||
t('Diapo Villes Europe par ProjetEUR Pane'),
|
||||
);
|
||||
$export['projets_europe'] = $view;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_publications.context.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_context_default_contexts().
|
||||
*/
|
||||
function popsu_publications_context_default_contexts() {
|
||||
$export = array();
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-publications-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Publication (feature)';
|
||||
$context->tag = 'publications-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_publication' => 'popsu_publication',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'menu_block-1' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '1',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
'menu_block-5' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '5',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 0;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Publication (feature)');
|
||||
t('publications-feature');
|
||||
$export['popsu-publications-node'] = $context;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,344 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_publications.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_publications_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_publication-field_popsu_publication_body'.
|
||||
$fields['node-popsu_publication-field_popsu_publication_body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_publication_body',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_with_summary',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_publication',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '2',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_publication_body',
|
||||
'label' => 'Résumé de la publication',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'display_summary' => 0,
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '20',
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_publication-field_popsu_publication_cover'.
|
||||
$fields['node-popsu_publication-field_popsu_publication_cover'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_publication_cover',
|
||||
'foreign keys' => array(
|
||||
'fid' => array(
|
||||
'columns' => array(
|
||||
'fid' => 'fid',
|
||||
),
|
||||
'table' => 'file_managed',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'default_image' => 0,
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'image',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_publication',
|
||||
'deleted' => '0',
|
||||
'description' => 'Vous pouvez charger une image représentant la couverture de cette publication.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => '',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => '1',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_publication_cover',
|
||||
'label' => 'Image de couverture',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'png gif jpg jpeg',
|
||||
'filefield_paths' => array(
|
||||
'active_updating' => 0,
|
||||
'file_name' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
|
||||
),
|
||||
'file_path' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => 'nodes/[node:content-type]/[node:nid]/imagecover',
|
||||
),
|
||||
'retroactive_update' => 0,
|
||||
),
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => '2',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_publication-field_popsu_publication_soustitr'.
|
||||
$fields['node-popsu_publication-field_popsu_publication_soustitr'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_publication_soustitr',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_long',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_publication',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '0',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_publication_soustitr',
|
||||
'label' => 'Sous titre de la publication',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '0',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '3',
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => '5',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_publication-field_popsu_publication_theme'.
|
||||
$fields['node-popsu_publication-field_popsu_publication_theme'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_publication_theme',
|
||||
'foreign keys' => array(
|
||||
'nid' => array(
|
||||
'columns' => array(
|
||||
'nid' => 'nid',
|
||||
),
|
||||
'table' => 'node',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'nid' => array(
|
||||
0 => 'nid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(
|
||||
'referenceable_types' => array(
|
||||
'article' => 0,
|
||||
'page' => 0,
|
||||
'popsu_actu' => 0,
|
||||
'popsu_colloque' => 0,
|
||||
'popsu_document' => 0,
|
||||
'popsu_page' => 0,
|
||||
'popsu_page_neutral' => 0,
|
||||
'popsu_projet' => 0,
|
||||
'popsu_projet_europe' => 0,
|
||||
'popsu_publication' => 0,
|
||||
'popsu_special' => 0,
|
||||
'popsu_theme_europe' => 'popsu_theme_europe',
|
||||
'popsu_theme_local' => 0,
|
||||
'popsu_theme_trans' => 0,
|
||||
'popsu_ville' => 0,
|
||||
'popsu_ville_europe' => 0,
|
||||
),
|
||||
'view' => array(
|
||||
'args' => array(),
|
||||
'display_name' => '',
|
||||
'view_name' => '',
|
||||
),
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'node_reference',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_publication',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'node_reference',
|
||||
'settings' => array(),
|
||||
'type' => 'node_reference_default',
|
||||
'weight' => 5,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_publication_theme',
|
||||
'label' => 'ou Thème (POPSU Europe)',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_select',
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Image de couverture');
|
||||
t('Résumé de la publication');
|
||||
t('Sous titre de la publication');
|
||||
t('Vous pouvez charger une image représentant la couverture de cette publication.');
|
||||
t('ou Thème (POPSU Europe)');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_publications.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_publications_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "context" && $api == "context") {
|
||||
return array("version" => "3");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "page_manager" && $api == "pages_default") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*/
|
||||
function popsu_publications_views_api() {
|
||||
return array("version" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_image_default_styles().
|
||||
*/
|
||||
function popsu_publications_image_default_styles() {
|
||||
$styles = array();
|
||||
|
||||
// Exported image style: popsu-publication-cover.
|
||||
$styles['popsu-publication-cover'] = array(
|
||||
'name' => 'popsu-publication-cover',
|
||||
'effects' => array(
|
||||
7 => array(
|
||||
'label' => 'Échelle',
|
||||
'help' => 'La mise à l\'échelle maintiendra les proportions originales de l\'image. Si une seule dimension est précisée, l\'autre dimension sera calculée automatiquement.',
|
||||
'effect callback' => 'image_scale_effect',
|
||||
'dimensions callback' => 'image_scale_dimensions',
|
||||
'form callback' => 'image_scale_form',
|
||||
'summary theme' => 'image_scale_summary',
|
||||
'module' => 'image',
|
||||
'name' => 'image_scale',
|
||||
'data' => array(
|
||||
'width' => '102',
|
||||
'height' => '',
|
||||
'upscale' => 1,
|
||||
),
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
return $styles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_publications_node_info() {
|
||||
$items = array(
|
||||
'popsu_publication' => array(
|
||||
'name' => t('Publication'),
|
||||
'base' => 'node_content',
|
||||
'description' => t('Ce type de contenu permet de créer une publication.'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre de la publication'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_publications.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_publications_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_publication_basic|node|popsu_publication|form';
|
||||
$field_group->group_name = 'group_popsu_publication_basic';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_publication';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Informations essentielles',
|
||||
'weight' => '2',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_publication_soustitr',
|
||||
1 => 'field_popsu_publication_theme',
|
||||
2 => 'title',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_publication_basic|node|popsu_publication|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_publication_cover|node|popsu_publication|form';
|
||||
$field_group->group_name = 'group_popsu_publication_cover';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_publication';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Image de couverture',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_publication_cover',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_publication_cover|node|popsu_publication|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_publication_text|node|popsu_publication|form';
|
||||
$field_group->group_name = 'group_popsu_publication_text';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_publication';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Résumé',
|
||||
'weight' => '4',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_publication_body',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_publication_text|node|popsu_publication|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
name = POPSU Publications
|
||||
description = POPSU - Type de contenu Publications
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
php = 5.2.4
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_publications
|
||||
dependencies[] = context
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = field_group
|
||||
dependencies[] = filefield_paths
|
||||
dependencies[] = image
|
||||
dependencies[] = menu_block
|
||||
dependencies[] = node_reference
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = panels
|
||||
dependencies[] = popsu_taxonomies
|
||||
dependencies[] = search
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = views
|
||||
dependencies[] = views_content
|
||||
features[context][] = popsu-publications-node
|
||||
features[ctools][] = context:context:3
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = page_manager:pages_default:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:1
|
||||
features[field][] = node-popsu_publication-field_popsu_publication_body
|
||||
features[field][] = node-popsu_publication-field_popsu_publication_cover
|
||||
features[field][] = node-popsu_publication-field_popsu_publication_soustitr
|
||||
features[field][] = node-popsu_publication-field_popsu_publication_theme
|
||||
features[field_group][] = group_popsu_publication_basic|node|popsu_publication|form
|
||||
features[field_group][] = group_popsu_publication_cover|node|popsu_publication|form
|
||||
features[field_group][] = group_popsu_publication_text|node|popsu_publication|form
|
||||
features[image][] = popsu-publication-cover
|
||||
features[node][] = popsu_publication
|
||||
features[page_manager_handlers][] = node_view_panel_context
|
||||
features[variable][] = field_bundle_settings_node__popsu_publication
|
||||
features[variable][] = language_content_type_popsu_publication
|
||||
features[variable][] = menu_options_popsu_publication
|
||||
features[variable][] = menu_parent_popsu_publication
|
||||
features[variable][] = node_options_popsu_publication
|
||||
features[variable][] = node_preview_popsu_publication
|
||||
features[variable][] = node_submitted_popsu_publication
|
||||
features[views_view][] = publications
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Publications feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_publications.features.inc';
|
||||
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_publications.pages_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_page_manager_handlers().
|
||||
*/
|
||||
function popsu_publications_default_page_manager_handlers() {
|
||||
$export = array();
|
||||
|
||||
$handler = new stdClass();
|
||||
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
||||
$handler->api_version = 1;
|
||||
$handler->name = 'node_view_panel_context';
|
||||
$handler->task = 'node_view';
|
||||
$handler->subtask = '';
|
||||
$handler->handler = 'panel_context';
|
||||
$handler->weight = 0;
|
||||
$handler->conf = array(
|
||||
'title' => 'Publications (feature)',
|
||||
'no_blocks' => 0,
|
||||
'pipeline' => 'standard',
|
||||
'body_classes_to_remove' => '',
|
||||
'body_classes_to_add' => '',
|
||||
'css_id' => '',
|
||||
'css' => '',
|
||||
'contexts' => array(),
|
||||
'relationships' => array(),
|
||||
'access' => array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'node_type',
|
||||
'settings' => array(
|
||||
'type' => array(
|
||||
'popsu_publication' => 'popsu_publication',
|
||||
),
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
'logic' => 'and',
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'twocol_stacked';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'top' => NULL,
|
||||
'left' => NULL,
|
||||
'right' => NULL,
|
||||
'bottom' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = 'Publication : %node:title';
|
||||
$display->content = array();
|
||||
$display->panels = array();
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-1';
|
||||
$pane->panel = 'bottom';
|
||||
$pane->type = 'node_content';
|
||||
$pane->subtype = 'node_content';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'links' => 0,
|
||||
'no_extras' => 0,
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
'identifier' => '',
|
||||
'link' => 0,
|
||||
'leave_node_title' => 0,
|
||||
'build_mode' => 'full',
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-1'] = $pane;
|
||||
$display->panels['bottom'][0] = 'new-1';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-2';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'node_title';
|
||||
$pane->subtype = 'node_title';
|
||||
$pane->shown = FALSE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'link' => 1,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 0,
|
||||
'override_title_text' => '',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-2'] = $pane;
|
||||
$display->panels['top'][0] = 'new-2';
|
||||
$display->hide_title = PANELS_TITLE_FIXED;
|
||||
$display->title_pane = '0';
|
||||
$handler->conf['display'] = $display;
|
||||
$export['node_view_panel_context'] = $handler;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_publications.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_publications_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__popsu_publication';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(
|
||||
'teaser' => array(
|
||||
'custom_settings' => TRUE,
|
||||
),
|
||||
'full' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'rss' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_index' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_result' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'token' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '4',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '5',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_publication'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'language_content_type_popsu_publication';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_publication'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_options_popsu_publication';
|
||||
$strongarm->value = array(
|
||||
0 => 'menu-popsu1-menu',
|
||||
1 => 'menu-popsu2-menu',
|
||||
);
|
||||
$export['menu_options_popsu_publication'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_parent_popsu_publication';
|
||||
$strongarm->value = 'menu-popsu1-menu:0';
|
||||
$export['menu_parent_popsu_publication'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_options_popsu_publication';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_publication'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_preview_popsu_publication';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_publication'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_submitted_popsu_publication';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_popsu_publication'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,771 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_publications.views_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_views_default_views().
|
||||
*/
|
||||
function popsu_publications_views_default_views() {
|
||||
$export = array();
|
||||
|
||||
$view = new view();
|
||||
$view->name = 'publications';
|
||||
$view->description = 'Liste des publications';
|
||||
$view->tag = 'POPSU';
|
||||
$view->base_table = 'node';
|
||||
$view->human_name = 'Publications';
|
||||
$view->core = 7;
|
||||
$view->api_version = '3.0';
|
||||
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||||
|
||||
/* Display: Master */
|
||||
$handler = $view->new_display('default', 'Master', 'default');
|
||||
$handler->display->display_options['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['use_more_text'] = 'plus';
|
||||
$handler->display->display_options['access']['type'] = 'perm';
|
||||
$handler->display->display_options['cache']['type'] = 'none';
|
||||
$handler->display->display_options['query']['type'] = 'views_query';
|
||||
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||||
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
|
||||
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
|
||||
$handler->display->display_options['pager']['type'] = 'full';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Éléments par page';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Tout -';
|
||||
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Décalage';
|
||||
$handler->display->display_options['pager']['options']['tags']['first'] = '« premier';
|
||||
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ précédent';
|
||||
$handler->display->display_options['pager']['options']['tags']['next'] = 'suivant ›';
|
||||
$handler->display->display_options['pager']['options']['tags']['last'] = 'dernier »';
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de publication */
|
||||
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_publication' => 'popsu_publication',
|
||||
);
|
||||
|
||||
/* Display: Toutes les publications */
|
||||
$handler = $view->new_display('page', 'Toutes les publications', 'page_1');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Toutes les publications';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['path'] = 'publications';
|
||||
|
||||
/* Display: Publications par ville Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Publications par ville Pane', 'panel_pane_1');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'panels_fields';
|
||||
$handler->display->display_options['row_options']['layout'] = 'flexible:popsu_70_30_accordion_pic';
|
||||
$handler->display->display_options['row_options']['regions'] = array(
|
||||
'nid' => 'title_',
|
||||
'field_popsu_publication_ville' => 'title_',
|
||||
'title' => 'title',
|
||||
'field_popsu_publication_soustitr' => 'title',
|
||||
'edit_node' => 'title',
|
||||
'field_popsu_publication_cover' => 'picture',
|
||||
'field_popsu_publication_body' => 'left',
|
||||
'edit_node_1' => 'left',
|
||||
'view' => 'left',
|
||||
);
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Global : PHP */
|
||||
$handler->display->display_options['fields']['php']['id'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['php']['field'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['label'] = '';
|
||||
$handler->display->display_options['fields']['php']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['php']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['php']['empty_zero'] = TRUE;
|
||||
$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
|
||||
$handler->display->display_options['fields']['php']['php_output'] = '<?php echo drupal_get_path_alias(); ?>';
|
||||
$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
|
||||
$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Ville (POPSU France) */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['id'] = 'field_popsu_publication_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['table'] = 'field_data_field_popsu_publication_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['field'] = 'field_popsu_publication_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['alter']['text'] = 'Publication';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['type'] = 'taxonomy_term_reference_plain';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '<h3>[title]</h3>';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Sous titre de la publication */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['id'] = 'field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['table'] = 'field_data_field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['field'] = 'field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier cette publication';
|
||||
/* Champ: Contenu : Image de couverture */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['id'] = 'field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['table'] = 'field_data_field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['field'] = 'field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['settings'] = array(
|
||||
'image_style' => 'popsu-publication-cover',
|
||||
'image_link' => '',
|
||||
);
|
||||
/* Champ: Contenu : Résumé de la publication */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['id'] = 'field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['table'] = 'field_data_field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['field'] = 'field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node_1']['id'] = 'edit_node_1';
|
||||
$handler->display->display_options['fields']['edit_node_1']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['text'] = '<a href="/node/add/popsu-document/[nid]?destination=[php]">Ajouter un document</a>';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_class'] = 'admin-add-item admin-add-item-margin';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['hide_empty'] = TRUE;
|
||||
/* Champ: Global : Voir */
|
||||
$handler->display->display_options['fields']['view']['id'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['view']['field'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['label'] = '';
|
||||
$handler->display->display_options['fields']['view']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['view']['view'] = 'documents';
|
||||
$handler->display->display_options['fields']['view']['display'] = 'panel_pane_1';
|
||||
$handler->display->display_options['fields']['view']['arguments'] = '[!nid],51';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Ville (POPSU France) (field_popsu_publication_ville) */
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_ville_tid']['id'] = 'field_popsu_publication_ville_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_ville_tid']['table'] = 'field_data_field_popsu_publication_ville';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_ville_tid']['field'] = 'field_popsu_publication_ville_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_ville_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_ville_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_ville_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_ville_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_ville_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_ville_tid']['summary_options']['items_per_page'] = '25';
|
||||
/* Filtre contextuel: Contenu : POPSU (field_popsu_publication_popsu) */
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['id'] = 'field_popsu_publication_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['table'] = 'field_data_field_popsu_publication_popsu';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['field'] = 'field_popsu_publication_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_publication_ville_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Ville (field_popsu_publication_ville)',
|
||||
),
|
||||
'field_popsu_publication_popsu_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : POPSU (field_popsu_publication_popsu)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Publications par POPSU Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Publications par POPSU Pane', 'panel_pane_2');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Les Publications par ville';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'panels_fields';
|
||||
$handler->display->display_options['row_options']['layout'] = 'flexible:popsu_70_30_accordion_pic';
|
||||
$handler->display->display_options['row_options']['regions'] = array(
|
||||
'nid' => 'title_',
|
||||
'field_popsu_publication_ville' => 'title',
|
||||
'title' => 'title_',
|
||||
'field_popsu_publication_soustitr' => 'title_',
|
||||
'edit_node' => 'title',
|
||||
'field_popsu_publication_cover' => 'picture',
|
||||
'field_popsu_publication_body' => 'left',
|
||||
'edit_node_1' => 'left',
|
||||
'view' => 'left',
|
||||
);
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['relationships'] = FALSE;
|
||||
/* Relation: Contenu : Ville (POPSU France) (field_popsu_publication_ville) */
|
||||
$handler->display->display_options['relationships']['field_popsu_publication_ville_tid']['id'] = 'field_popsu_publication_ville_tid';
|
||||
$handler->display->display_options['relationships']['field_popsu_publication_ville_tid']['table'] = 'field_data_field_popsu_publication_ville';
|
||||
$handler->display->display_options['relationships']['field_popsu_publication_ville_tid']['field'] = 'field_popsu_publication_ville_tid';
|
||||
$handler->display->display_options['relationships']['field_popsu_publication_ville_tid']['required'] = TRUE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Global : PHP */
|
||||
$handler->display->display_options['fields']['php']['id'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['php']['field'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['label'] = '';
|
||||
$handler->display->display_options['fields']['php']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['php']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
|
||||
$handler->display->display_options['fields']['php']['php_output'] = '<?php echo drupal_get_path_alias(); ?>';
|
||||
$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
|
||||
$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '<h3>[title]</h3>';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Sous titre de la publication */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['id'] = 'field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['table'] = 'field_data_field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['field'] = 'field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Ville (POPSU France) */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['id'] = 'field_popsu_publication_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['table'] = 'field_data_field_popsu_publication_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['field'] = 'field_popsu_publication_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['type'] = 'taxonomy_term_reference_plain';
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier cette publication';
|
||||
/* Champ: Contenu : Image de couverture */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['id'] = 'field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['table'] = 'field_data_field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['field'] = 'field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['settings'] = array(
|
||||
'image_style' => 'popsu-publication-cover',
|
||||
'image_link' => '',
|
||||
);
|
||||
/* Champ: Contenu : Résumé de la publication */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['id'] = 'field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['table'] = 'field_data_field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['field'] = 'field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node_1']['id'] = 'edit_node_1';
|
||||
$handler->display->display_options['fields']['edit_node_1']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['text'] = '<a href="/node/add/popsu-document/[nid]?destination=[php]">Ajouter un document</a>';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_class'] = 'admin-add-item';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['hide_empty'] = TRUE;
|
||||
/* Champ: Global : Voir */
|
||||
$handler->display->display_options['fields']['view']['id'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['view']['field'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['label'] = '';
|
||||
$handler->display->display_options['fields']['view']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['view']['view'] = 'documents';
|
||||
$handler->display->display_options['fields']['view']['display'] = 'panel_pane_1';
|
||||
$handler->display->display_options['fields']['view']['arguments'] = '[!nid],51';
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Terme de taxonomie : Poids */
|
||||
$handler->display->display_options['sorts']['weight']['id'] = 'weight';
|
||||
$handler->display->display_options['sorts']['weight']['table'] = 'taxonomy_term_data';
|
||||
$handler->display->display_options['sorts']['weight']['field'] = 'weight';
|
||||
$handler->display->display_options['sorts']['weight']['relationship'] = 'field_popsu_publication_ville_tid';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : POPSU (field_popsu_publication_popsu) */
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['id'] = 'field_popsu_publication_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['table'] = 'field_data_field_popsu_publication_popsu';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['field'] = 'field_popsu_publication_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_publication' => 'popsu_publication',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Ville (POPSU France) (field_popsu_publication_ville) */
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['id'] = 'field_popsu_publication_ville_tid';
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['table'] = 'field_data_field_popsu_publication_ville';
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['field'] = 'field_popsu_publication_ville_tid';
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['operator'] = 'not empty';
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['type'] = 'select';
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['vocabulary'] = 'popsu_villes';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_publication_ville_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Ville (field_popsu_publication_ville)',
|
||||
),
|
||||
'field_popsu_publication_popsu_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : POPSU (field_popsu_publication_popsu)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Publications par POPSU sans ville Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Publications par POPSU sans ville Pane', 'panel_pane_3');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'panels_fields';
|
||||
$handler->display->display_options['row_options']['layout'] = 'flexible:popsu_70_30_accordion_pic';
|
||||
$handler->display->display_options['row_options']['regions'] = array(
|
||||
'php' => 'left',
|
||||
'nid' => 'title_',
|
||||
'field_popsu_publication_ville' => 'title_',
|
||||
'title' => 'left',
|
||||
'field_popsu_publication_soustitr' => 'left',
|
||||
'edit_node' => 'left',
|
||||
'field_popsu_publication_cover' => 'picture',
|
||||
'field_popsu_publication_body' => 'left',
|
||||
'edit_node_1' => 'left',
|
||||
'view' => 'left',
|
||||
);
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['relationships'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Global : PHP */
|
||||
$handler->display->display_options['fields']['php']['id'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['php']['field'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['label'] = '';
|
||||
$handler->display->display_options['fields']['php']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
|
||||
$handler->display->display_options['fields']['php']['php_output'] = '<?php echo drupal_get_path_alias(); ?>';
|
||||
$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
|
||||
$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['nid']['element_default_classes'] = FALSE;
|
||||
$handler->display->display_options['fields']['nid']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['empty_zero'] = TRUE;
|
||||
/* Champ: Contenu : Ville (POPSU France) */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['id'] = 'field_popsu_publication_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['table'] = 'field_data_field_popsu_publication_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['field'] = 'field_popsu_publication_ville';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_ville']['type'] = 'taxonomy_term_reference_plain';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '<h3>[title]</h3>';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Sous titre de la publication */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['id'] = 'field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['table'] = 'field_data_field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['field'] = 'field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier cette publication';
|
||||
/* Champ: Contenu : Image de couverture */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['id'] = 'field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['table'] = 'field_data_field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['field'] = 'field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['settings'] = array(
|
||||
'image_style' => 'popsu-publication-cover',
|
||||
'image_link' => '',
|
||||
);
|
||||
/* Champ: Contenu : Résumé de la publication */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['id'] = 'field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['table'] = 'field_data_field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['field'] = 'field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node_1']['id'] = 'edit_node_1';
|
||||
$handler->display->display_options['fields']['edit_node_1']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['text'] = '<a href="/node/add/popsu-document/[nid]?destination=[php]">Ajouter un document</a>';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_class'] = 'admin-add-item';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['hide_empty'] = TRUE;
|
||||
/* Champ: Global : Voir */
|
||||
$handler->display->display_options['fields']['view']['id'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['view']['field'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['label'] = '';
|
||||
$handler->display->display_options['fields']['view']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['view']['view'] = 'documents';
|
||||
$handler->display->display_options['fields']['view']['display'] = 'panel_pane_1';
|
||||
$handler->display->display_options['fields']['view']['arguments'] = '[!nid],51';
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Contenu : Titre */
|
||||
$handler->display->display_options['sorts']['title']['id'] = 'title';
|
||||
$handler->display->display_options['sorts']['title']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['title']['field'] = 'title';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : POPSU (field_popsu_publication_popsu) */
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['id'] = 'field_popsu_publication_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['table'] = 'field_data_field_popsu_publication_popsu';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['field'] = 'field_popsu_publication_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_publication' => 'popsu_publication',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Ville (POPSU France) (field_popsu_publication_ville) */
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['id'] = 'field_popsu_publication_ville_tid';
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['table'] = 'field_data_field_popsu_publication_ville';
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['field'] = 'field_popsu_publication_ville_tid';
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['operator'] = 'empty';
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['type'] = 'select';
|
||||
$handler->display->display_options['filters']['field_popsu_publication_ville_tid']['vocabulary'] = 'popsu_villes';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_publication_ville_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Ville (field_popsu_publication_ville)',
|
||||
),
|
||||
'field_popsu_publication_popsu_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : POPSU (field_popsu_publication_popsu)',
|
||||
),
|
||||
);
|
||||
|
||||
/* Display: Publications par thème EUROPE Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Publications par thème EUROPE Pane', 'panel_pane_4');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'panels_fields';
|
||||
$handler->display->display_options['row_options']['layout'] = 'flexible:popsu_accordion_column';
|
||||
$handler->display->display_options['row_options']['regions'] = array(
|
||||
'php' => 'title',
|
||||
'nid' => 'title',
|
||||
'field_popsu_publication_theme' => 'title',
|
||||
'title' => 'left',
|
||||
'field_popsu_publication_soustitr' => 'left',
|
||||
'edit_node' => 'left',
|
||||
'field_popsu_publication_cover' => 'left',
|
||||
'field_popsu_publication_body' => 'left',
|
||||
'edit_node_1' => 'left',
|
||||
'view' => 'left',
|
||||
);
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Global : PHP */
|
||||
$handler->display->display_options['fields']['php']['id'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['php']['field'] = 'php';
|
||||
$handler->display->display_options['fields']['php']['label'] = '';
|
||||
$handler->display->display_options['fields']['php']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['php']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['php']['empty_zero'] = TRUE;
|
||||
$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
|
||||
$handler->display->display_options['fields']['php']['php_output'] = '<?php echo drupal_get_path_alias(); ?>';
|
||||
$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
|
||||
$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
|
||||
/* Champ: Contenu : Nid */
|
||||
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['fields']['nid']['label'] = '';
|
||||
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : ou Thème (POPSU Europe) */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_theme']['id'] = 'field_popsu_publication_theme';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_theme']['table'] = 'field_data_field_popsu_publication_theme';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_theme']['field'] = 'field_popsu_publication_theme';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_theme']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_theme']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_theme']['alter']['text'] = 'Publications';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_theme']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_theme']['type'] = 'node_reference_plain';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['title']['alter']['text'] = '<h3>[title]</h3>';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Champ: Contenu : Sous titre de la publication */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['id'] = 'field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['table'] = 'field_data_field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['field'] = 'field_popsu_publication_soustitr';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_soustitr']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier cette publication';
|
||||
/* Champ: Contenu : Image de couverture */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['id'] = 'field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['table'] = 'field_data_field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['field'] = 'field_popsu_publication_cover';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_cover']['settings'] = array(
|
||||
'image_style' => 'popsu-publication-cover',
|
||||
'image_link' => '',
|
||||
);
|
||||
/* Champ: Contenu : Résumé de la publication */
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['id'] = 'field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['table'] = 'field_data_field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['field'] = 'field_popsu_publication_body';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_publication_body']['element_label_colon'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node_1']['id'] = 'edit_node_1';
|
||||
$handler->display->display_options['fields']['edit_node_1']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node_1']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['alter']['text'] = '<a href="/node/add/popsu-document/[nid]?destination=[php]">Ajouter un document</a>';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_class'] = 'admin-add-item admin-add-item-margin';
|
||||
$handler->display->display_options['fields']['edit_node_1']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node_1']['hide_empty'] = TRUE;
|
||||
/* Champ: Global : Voir */
|
||||
$handler->display->display_options['fields']['view']['id'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['table'] = 'views';
|
||||
$handler->display->display_options['fields']['view']['field'] = 'view';
|
||||
$handler->display->display_options['fields']['view']['label'] = '';
|
||||
$handler->display->display_options['fields']['view']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['view']['view'] = 'documents';
|
||||
$handler->display->display_options['fields']['view']['display'] = 'panel_pane_1';
|
||||
$handler->display->display_options['fields']['view']['arguments'] = '[!nid],51';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : POPSU (field_popsu_publication_popsu) */
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['id'] = 'field_popsu_publication_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['table'] = 'field_data_field_popsu_publication_popsu';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['field'] = 'field_popsu_publication_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_popsu_tid']['summary_options']['items_per_page'] = '25';
|
||||
/* Filtre contextuel: Contenu : ou Thème (POPSU Europe) (field_popsu_publication_theme) */
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_theme_nid']['id'] = 'field_popsu_publication_theme_nid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_theme_nid']['table'] = 'field_data_field_popsu_publication_theme';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_theme_nid']['field'] = 'field_popsu_publication_theme_nid';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_theme_nid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_theme_nid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_theme_nid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_theme_nid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_theme_nid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_publication_theme_nid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_publication_popsu_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : POPSU (field_popsu_publication_popsu)',
|
||||
),
|
||||
'field_popsu_publication_theme_nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : ou Thème (POPSU Europe) (field_popsu_publication_theme)',
|
||||
),
|
||||
);
|
||||
$translatables['publications'] = array(
|
||||
t('Master'),
|
||||
t('plus'),
|
||||
t('Appliquer'),
|
||||
t('Réinitialiser'),
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('Éléments par page'),
|
||||
t('- Tout -'),
|
||||
t('Décalage'),
|
||||
t('« premier'),
|
||||
t('‹ précédent'),
|
||||
t('suivant ›'),
|
||||
t('dernier »'),
|
||||
t('Toutes les publications'),
|
||||
t('Publications par ville Pane'),
|
||||
t('Publication'),
|
||||
t('<h3>[title]</h3>'),
|
||||
t('Modifier cette publication'),
|
||||
t('<a href="/node/add/popsu-document/[nid]?destination=[php]">Ajouter un document</a>'),
|
||||
t('Tout'),
|
||||
t('Volets de vue'),
|
||||
t('Publications par POPSU Pane'),
|
||||
t('Les Publications par ville'),
|
||||
t('terme à partir de field_popsu_publication_ville'),
|
||||
t('Publications par POPSU sans ville Pane'),
|
||||
t('Publications par thème EUROPE Pane'),
|
||||
t('Publications'),
|
||||
);
|
||||
$export['publications'] = $view;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_special_pages.context.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_context_default_contexts().
|
||||
*/
|
||||
function popsu_special_pages_context_default_contexts() {
|
||||
$export = array();
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-special-europe-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Page Spéciale POPSU Europe (feature)';
|
||||
$context->tag = 'pages-europe-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_special' => 'popsu_special',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
'node_taxonomy' => array(
|
||||
'values' => array(
|
||||
3 => 3,
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'menu_block-6' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '6',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 1;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Page Spéciale POPSU Europe (feature)');
|
||||
t('pages-europe-feature');
|
||||
$export['popsu-special-europe-node'] = $context;
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-special-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Page Spéciale POPSU (feature)';
|
||||
$context->tag = 'pages-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_special' => 'popsu_special',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'menu_block-3' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '3',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
'menu_block-4' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '4',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 0;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Page Spéciale POPSU (feature)');
|
||||
t('pages-feature');
|
||||
$export['popsu-special-node'] = $context;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_special_pages.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_special_pages_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_special-field_popsu_special_body'.
|
||||
$fields['node-popsu_special-field_popsu_special_body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_special_body',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_with_summary',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_special',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '0',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_special_body',
|
||||
'label' => 'Texte d\'introduction',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'display_summary' => 0,
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '20',
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => '2',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_special-field_popsu_special_text'.
|
||||
$fields['node-popsu_special-field_popsu_special_text'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_special_text',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_long',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_special',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 3,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_special_text',
|
||||
'label' => 'Texte long',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '10',
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => '3',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_special-field_popsu_special_typetaxo'.
|
||||
$fields['node-popsu_special-field_popsu_special_typetaxo'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_special_typetaxo',
|
||||
'foreign keys' => array(
|
||||
'tid' => array(
|
||||
'columns' => array(
|
||||
'tid' => 'tid',
|
||||
),
|
||||
'table' => 'taxonomy_term_data',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'popsu_special_taxonomy',
|
||||
'parent' => '0',
|
||||
),
|
||||
),
|
||||
'options_list_callback' => 'i18n_taxonomy_allowed_values',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'taxonomy_term_reference',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_special',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => '2',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_special_typetaxo',
|
||||
'label' => 'Type de page spéciale',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_select',
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Texte d\'introduction');
|
||||
t('Texte long');
|
||||
t('Type de page spéciale');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_special_pages.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_special_pages_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "context" && $api == "context") {
|
||||
return array("version" => "3");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "page_manager" && $api == "pages_default") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "panels_mini" && $api == "panels_default") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_special_pages_node_info() {
|
||||
$items = array(
|
||||
'popsu_special' => array(
|
||||
'name' => t('POPSU / Page spéciale'),
|
||||
'base' => 'node_content',
|
||||
'description' => t('Ce type de contenu permet de créer des pages spéciales qui mélangent du contenu statique (texte) et des listings. Ex: page présentant les colloques de POPSU 1.'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre de la page'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_special_pages.features.taxonomy.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_taxonomy_default_vocabularies().
|
||||
*/
|
||||
function popsu_special_pages_taxonomy_default_vocabularies() {
|
||||
return array(
|
||||
'popsu_special_taxonomy' => array(
|
||||
'name' => 'Type de page spéciale',
|
||||
'machine_name' => 'popsu_special_taxonomy',
|
||||
'description' => 'Ce vocabulaire sert à catégoriser les pages spéciales POPSU',
|
||||
'hierarchy' => '0',
|
||||
'module' => 'taxonomy',
|
||||
'weight' => '-8',
|
||||
'language' => 'und',
|
||||
'i18n_mode' => '0',
|
||||
'rdf_mapping' => array(
|
||||
'rdftype' => array(
|
||||
0 => 'skos:ConceptScheme',
|
||||
),
|
||||
'name' => array(
|
||||
'predicates' => array(
|
||||
0 => 'dc:title',
|
||||
),
|
||||
),
|
||||
'description' => array(
|
||||
'predicates' => array(
|
||||
0 => 'rdfs:comment',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_special_pages.features.uuid_term.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_uuid_features_default_terms().
|
||||
*/
|
||||
function popsu_special_pages_uuid_features_default_terms() {
|
||||
$terms = array();
|
||||
|
||||
$terms[] = array(
|
||||
'name' => 'Publications',
|
||||
'description' => '',
|
||||
'format' => 'filtered_html',
|
||||
'weight' => '1',
|
||||
'uuid' => '2c5bb8f9-d4c3-4cc7-a3ec-0cd9d85cad2a',
|
||||
'language' => 'und',
|
||||
'i18n_tsid' => '0',
|
||||
'vocabulary_machine_name' => 'popsu_special_taxonomy',
|
||||
'url_alias' => array(
|
||||
0 => array(
|
||||
'alias' => 'type-de-page-speciale/publications',
|
||||
'language' => 'und',
|
||||
),
|
||||
),
|
||||
);
|
||||
$terms[] = array(
|
||||
'name' => 'Colloques',
|
||||
'description' => '',
|
||||
'format' => 'filtered_html',
|
||||
'weight' => '0',
|
||||
'uuid' => '697db5fa-8f16-4ab8-9f6a-95f7700c5016',
|
||||
'language' => 'und',
|
||||
'i18n_tsid' => '0',
|
||||
'vocabulary_machine_name' => 'popsu_special_taxonomy',
|
||||
'url_alias' => array(
|
||||
0 => array(
|
||||
'alias' => 'type-de-page-speciale/colloques',
|
||||
'language' => 'und',
|
||||
),
|
||||
),
|
||||
);
|
||||
$terms[] = array(
|
||||
'name' => 'Accueil',
|
||||
'description' => 'Page d\'accueil d\'un POPSU',
|
||||
'format' => 'filtered_html',
|
||||
'weight' => '0',
|
||||
'uuid' => 'a8d5afd0-056e-4c2d-9ff7-1ac1775de698',
|
||||
'language' => 'und',
|
||||
'i18n_tsid' => '0',
|
||||
'vocabulary_machine_name' => 'popsu_special_taxonomy',
|
||||
'url_alias' => array(
|
||||
0 => array(
|
||||
'alias' => 'type-de-page-speciale/accueil',
|
||||
'language' => 'und',
|
||||
),
|
||||
),
|
||||
);
|
||||
$terms[] = array(
|
||||
'name' => 'Partenaires',
|
||||
'description' => '',
|
||||
'format' => 'filtered_html',
|
||||
'weight' => '2',
|
||||
'uuid' => 'bc51e803-f075-487d-bad0-3d76e4c5e797',
|
||||
'language' => 'und',
|
||||
'i18n_tsid' => '0',
|
||||
'vocabulary_machine_name' => 'popsu_special_taxonomy',
|
||||
'url_alias' => array(
|
||||
0 => array(
|
||||
'alias' => 'type-de-page-speciale/partenaires',
|
||||
'language' => 'und',
|
||||
),
|
||||
),
|
||||
);
|
||||
return $terms;
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_special_pages.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_special_pages_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_special_basic|node|popsu_special|form';
|
||||
$field_group->group_name = 'group_popsu_special_basic';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_special';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Informations essentielles',
|
||||
'weight' => '2',
|
||||
'children' => array(
|
||||
0 => 'title',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_special_basic|node|popsu_special|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_special_content|node|popsu_special|form';
|
||||
$field_group->group_name = 'group_popsu_special_content';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_special';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Contenu',
|
||||
'weight' => '4',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_special_text',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_special_content|node|popsu_special|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_special_intro|node|popsu_special|form';
|
||||
$field_group->group_name = 'group_popsu_special_intro';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_special';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Introduction',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_special_body',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_special_intro|node|popsu_special|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
name = POPSU Special Pages
|
||||
description = POPSU - Type de contenu Special Pages POPSU
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
php = 5.2.4
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_special_pages
|
||||
dependencies[] = context
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = field_group
|
||||
dependencies[] = menu_block
|
||||
dependencies[] = options
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = panels_mini
|
||||
dependencies[] = popsu_taxonomies
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = taxonomy
|
||||
dependencies[] = uuid
|
||||
dependencies[] = uuid_features
|
||||
features[context][] = popsu-special-europe-node
|
||||
features[context][] = popsu-special-node
|
||||
features[ctools][] = context:context:3
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = page_manager:pages_default:1
|
||||
features[ctools][] = panels_mini:panels_default:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:1
|
||||
features[field][] = node-popsu_special-field_popsu_special_body
|
||||
features[field][] = node-popsu_special-field_popsu_special_text
|
||||
features[field][] = node-popsu_special-field_popsu_special_typetaxo
|
||||
features[field_group][] = group_popsu_special_basic|node|popsu_special|form
|
||||
features[field_group][] = group_popsu_special_content|node|popsu_special|form
|
||||
features[field_group][] = group_popsu_special_intro|node|popsu_special|form
|
||||
features[node][] = popsu_special
|
||||
features[page_manager_handlers][] = node_view_panel_context_7
|
||||
features[panels_mini][] = popsu_special_accueil_pps1
|
||||
features[taxonomy][] = popsu_special_taxonomy
|
||||
features[uuid_term][] = 2c5bb8f9-d4c3-4cc7-a3ec-0cd9d85cad2a
|
||||
features[uuid_term][] = 697db5fa-8f16-4ab8-9f6a-95f7700c5016
|
||||
features[uuid_term][] = a8d5afd0-056e-4c2d-9ff7-1ac1775de698
|
||||
features[uuid_term][] = bc51e803-f075-487d-bad0-3d76e4c5e797
|
||||
features[variable][] = field_bundle_settings_node__popsu_special
|
||||
features[variable][] = language_content_type_popsu_special
|
||||
features[variable][] = menu_options_popsu_special
|
||||
features[variable][] = menu_parent_popsu_special
|
||||
features[variable][] = node_options_popsu_special
|
||||
features[variable][] = node_preview_popsu_special
|
||||
features[variable][] = node_submitted_popsu_special
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Special Pages feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_special_pages.features.inc';
|
||||
@@ -0,0 +1,539 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_special_pages.pages_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_page_manager_handlers().
|
||||
*/
|
||||
function popsu_special_pages_default_page_manager_handlers() {
|
||||
$export = array();
|
||||
|
||||
$handler = new stdClass();
|
||||
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
||||
$handler->api_version = 1;
|
||||
$handler->name = 'node_view_panel_context_7';
|
||||
$handler->task = 'node_view';
|
||||
$handler->subtask = '';
|
||||
$handler->handler = 'panel_context';
|
||||
$handler->weight = 6;
|
||||
$handler->conf = array(
|
||||
'title' => 'Special (feature)',
|
||||
'no_blocks' => 0,
|
||||
'pipeline' => 'standard',
|
||||
'body_classes_to_remove' => '',
|
||||
'body_classes_to_add' => '',
|
||||
'css_id' => '',
|
||||
'css' => '',
|
||||
'contexts' => array(),
|
||||
'relationships' => array(
|
||||
0 => array(
|
||||
'identifier' => 'Terme de taxonomie from Nœud (on Nœud: POPSU [field_popsu_special_popsu])',
|
||||
'keyword' => 'taxonomy_term',
|
||||
'name' => 'entity_from_field:field_popsu_special_popsu-node-taxonomy_term',
|
||||
'delta' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'id' => 1,
|
||||
),
|
||||
1 => array(
|
||||
'identifier' => 'Terme de taxonomie from Nœud (on Nœud: Type de page spéciale [field_popsu_special_typetaxo])',
|
||||
'keyword' => 'taxonomy_term_2',
|
||||
'name' => 'entity_from_field:field_popsu_special_typetaxo-node-taxonomy_term',
|
||||
'delta' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'id' => 1,
|
||||
),
|
||||
),
|
||||
'access' => array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'node_type',
|
||||
'settings' => array(
|
||||
'type' => array(
|
||||
'popsu_special' => 'popsu_special',
|
||||
),
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
'logic' => 'and',
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'flexible:popsu_74_36_stacked';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'top' => NULL,
|
||||
'left' => NULL,
|
||||
'right' => NULL,
|
||||
'bottom' => NULL,
|
||||
'header' => NULL,
|
||||
'footer' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = '%node:title';
|
||||
$display->content = array();
|
||||
$display->panels = array();
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-1';
|
||||
$pane->panel = 'footer';
|
||||
$pane->type = 'node_title';
|
||||
$pane->subtype = 'node_title';
|
||||
$pane->shown = FALSE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'link' => 1,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 0,
|
||||
'override_title_text' => '',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-1'] = $pane;
|
||||
$display->panels['footer'][0] = 'new-1';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-2';
|
||||
$pane->panel = 'footer';
|
||||
$pane->type = 'node_content';
|
||||
$pane->subtype = 'node_content';
|
||||
$pane->shown = FALSE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'links' => 0,
|
||||
'no_extras' => 0,
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
'identifier' => '',
|
||||
'link' => 0,
|
||||
'leave_node_title' => 0,
|
||||
'build_mode' => 'full',
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-2'] = $pane;
|
||||
$display->panels['footer'][1] = 'new-2';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-3';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_special_body';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'term',
|
||||
'settings' => array(
|
||||
'vid' => '8',
|
||||
6 => array(),
|
||||
7 => array(),
|
||||
8 => array(
|
||||
31 => '31',
|
||||
),
|
||||
9 => array(),
|
||||
1 => array(),
|
||||
),
|
||||
'context' => 'relationship_entity_from_field:field_popsu_special_typetaxo-node-taxonomy_term_1',
|
||||
'not' => TRUE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'layout-64p',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-3'] = $pane;
|
||||
$display->panels['top'][0] = 'new-3';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-4';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'panels_mini';
|
||||
$pane->subtype = 'popsu_special_accueil_pps1';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'term',
|
||||
'settings' => array(
|
||||
'vid' => '6',
|
||||
6 => array(
|
||||
1 => '1',
|
||||
),
|
||||
7 => array(),
|
||||
8 => array(),
|
||||
9 => array(),
|
||||
1 => array(),
|
||||
),
|
||||
'context' => 'relationship_entity_from_field:field_popsu_special_popsu-node-taxonomy_term_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
1 => array(
|
||||
'name' => 'term',
|
||||
'settings' => array(
|
||||
'vid' => '8',
|
||||
6 => array(),
|
||||
7 => array(),
|
||||
8 => array(
|
||||
31 => '31',
|
||||
),
|
||||
9 => array(),
|
||||
1 => array(),
|
||||
),
|
||||
'context' => 'relationship_entity_from_field:field_popsu_special_typetaxo-node-taxonomy_term_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'context' => array(
|
||||
0 => 'argument_entity_id:node_1',
|
||||
),
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-4'] = $pane;
|
||||
$display->panels['top'][1] = 'new-4';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-5';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'panels_mini';
|
||||
$pane->subtype = 'popsu_special_accueil_pps2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'term',
|
||||
'settings' => array(
|
||||
'vid' => '6',
|
||||
6 => array(
|
||||
2 => '2',
|
||||
),
|
||||
7 => array(),
|
||||
8 => array(),
|
||||
9 => array(),
|
||||
10 => array(),
|
||||
1 => array(),
|
||||
),
|
||||
'context' => 'relationship_entity_from_field:field_popsu_special_popsu-node-taxonomy_term_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
1 => array(
|
||||
'name' => 'term',
|
||||
'settings' => array(
|
||||
'vid' => '8',
|
||||
6 => array(),
|
||||
7 => array(),
|
||||
8 => array(
|
||||
31 => '31',
|
||||
),
|
||||
9 => array(),
|
||||
10 => array(),
|
||||
1 => array(),
|
||||
),
|
||||
'context' => 'relationship_entity_from_field:field_popsu_special_typetaxo-node-taxonomy_term_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'context' => array(
|
||||
0 => 'argument_entity_id:node_1',
|
||||
),
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 2;
|
||||
$pane->locks = array();
|
||||
$display->content['new-5'] = $pane;
|
||||
$display->panels['top'][2] = 'new-5';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-6';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'panels_mini';
|
||||
$pane->subtype = 'popsu_special_accueil_ppse';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'term',
|
||||
'settings' => array(
|
||||
'vid' => '6',
|
||||
6 => array(
|
||||
3 => '3',
|
||||
),
|
||||
7 => array(),
|
||||
8 => array(),
|
||||
9 => array(),
|
||||
10 => array(),
|
||||
1 => array(),
|
||||
),
|
||||
'context' => 'relationship_entity_from_field:field_popsu_special_popsu-node-taxonomy_term_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
1 => array(
|
||||
'name' => 'term',
|
||||
'settings' => array(
|
||||
'vid' => '8',
|
||||
6 => array(),
|
||||
7 => array(),
|
||||
8 => array(
|
||||
31 => '31',
|
||||
),
|
||||
9 => array(),
|
||||
10 => array(),
|
||||
1 => array(),
|
||||
),
|
||||
'context' => 'relationship_entity_from_field:field_popsu_special_typetaxo-node-taxonomy_term_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'context' => array(
|
||||
0 => 'argument_entity_id:node_1',
|
||||
),
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 3;
|
||||
$pane->locks = array();
|
||||
$display->content['new-6'] = $pane;
|
||||
$display->panels['top'][3] = 'new-6';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-7';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'colloques-panel_pane_2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'term',
|
||||
'settings' => array(
|
||||
'vid' => '8',
|
||||
6 => array(),
|
||||
7 => array(),
|
||||
8 => array(
|
||||
28 => '28',
|
||||
),
|
||||
9 => array(),
|
||||
1 => array(),
|
||||
),
|
||||
'context' => 'relationship_entity_from_field:field_popsu_special_typetaxo-node-taxonomy_term_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_colloque_popsu_tid' => '%taxonomy_term:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => '',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 4;
|
||||
$pane->locks = array();
|
||||
$display->content['new-7'] = $pane;
|
||||
$display->panels['top'][4] = 'new-7';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-8';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'publications-panel_pane_3';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'term',
|
||||
'settings' => array(
|
||||
'vid' => '8',
|
||||
6 => array(),
|
||||
7 => array(),
|
||||
8 => array(
|
||||
29 => '29',
|
||||
),
|
||||
9 => array(),
|
||||
1 => array(),
|
||||
),
|
||||
'context' => 'relationship_entity_from_field:field_popsu_special_typetaxo-node-taxonomy_term_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_publication_popsu_tid' => '%taxonomy_term:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'pane-publication',
|
||||
'css_class' => 'layout-88p pane-publication-sans-ville',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 5;
|
||||
$pane->locks = array();
|
||||
$display->content['new-8'] = $pane;
|
||||
$display->panels['top'][5] = 'new-8';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-9';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'publications-panel_pane_2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'term',
|
||||
'settings' => array(
|
||||
'vid' => '8',
|
||||
6 => array(),
|
||||
7 => array(),
|
||||
8 => array(
|
||||
29 => '29',
|
||||
),
|
||||
9 => array(),
|
||||
1 => array(),
|
||||
),
|
||||
'context' => 'relationship_entity_from_field:field_popsu_special_typetaxo-node-taxonomy_term_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_publication_popsu_tid' => '%taxonomy_term:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'pane-publication',
|
||||
'css_class' => 'layout-88p pane-publication-popsu',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 6;
|
||||
$pane->locks = array();
|
||||
$display->content['new-9'] = $pane;
|
||||
$display->panels['top'][6] = 'new-9';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-10';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'custom';
|
||||
$pane->subtype = 'custom';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'term',
|
||||
'settings' => array(
|
||||
'vid' => '8',
|
||||
6 => array(),
|
||||
7 => array(),
|
||||
8 => array(
|
||||
28 => '28',
|
||||
29 => '29',
|
||||
),
|
||||
9 => array(),
|
||||
10 => array(),
|
||||
1 => array(),
|
||||
),
|
||||
'context' => 'relationship_entity_from_field:field_popsu_special_typetaxo-node-taxonomy_term_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'admin_title' => 'POPSU Fermeture de liste',
|
||||
'title' => '<none>',
|
||||
'body' => '<div></div>',
|
||||
'format' => 'php_code',
|
||||
'substitute' => 0,
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'border-last layout-64-5p',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 7;
|
||||
$pane->locks = array();
|
||||
$display->content['new-10'] = $pane;
|
||||
$display->panels['top'][7] = 'new-10';
|
||||
$display->hide_title = PANELS_TITLE_FIXED;
|
||||
$display->title_pane = '0';
|
||||
$handler->conf['display'] = $display;
|
||||
$export['node_view_panel_context_7'] = $handler;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,271 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_special_pages.panels_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_panels_mini().
|
||||
*/
|
||||
function popsu_special_pages_default_panels_mini() {
|
||||
$export = array();
|
||||
|
||||
$mini = new stdClass();
|
||||
$mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
|
||||
$mini->api_version = 1;
|
||||
$mini->name = 'popsu_special_accueil_pps1';
|
||||
$mini->category = 'POPSU Mini';
|
||||
$mini->admin_title = 'POPSU Mini - Special - Accueil - Popsu 1';
|
||||
$mini->admin_description = 'Mini-panel pour le contenu de la page d\'accueil de POPSU 1';
|
||||
$mini->requiredcontexts = array(
|
||||
0 => array(
|
||||
'identifier' => 'Nœud',
|
||||
'keyword' => 'node',
|
||||
'name' => 'entity:node',
|
||||
'entity_id' => '',
|
||||
'id' => 1,
|
||||
),
|
||||
);
|
||||
$mini->contexts = array();
|
||||
$mini->relationships = array(
|
||||
0 => array(
|
||||
'identifier' => 'Terme de taxonomie from Nœud (on Nœud: POPSU [field_popsu_special_popsu])',
|
||||
'keyword' => 'taxonomy_term',
|
||||
'name' => 'entity_from_field:field_popsu_special_popsu-node-taxonomy_term',
|
||||
'delta' => 0,
|
||||
'context' => 'requiredcontext_entity:node_1',
|
||||
'id' => 1,
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'onecol';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'middle' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = '';
|
||||
$display->content = array();
|
||||
$display->panels = array();
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-1';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_special_body';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'requiredcontext_entity:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'layout-72p text-intro',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-1'] = $pane;
|
||||
$display->panels['middle'][0] = 'new-1';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-2';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'villes-panel_pane_1';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_ville_popsu_tid' => '%taxonomy_term:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-liste-villes',
|
||||
'css_class' => 'layout-90p accordion-h2 accordion-h2-views',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-2'] = $pane;
|
||||
$display->panels['middle'][1] = 'new-2';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-3';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'projets-panel_pane_2';
|
||||
$pane->shown = FALSE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_projet_popsu_tid' => '%taxonomy_term:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-liste-projets',
|
||||
'css_class' => 'layout-90p accordion-h2 accordion-h2-views',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 2;
|
||||
$pane->locks = array();
|
||||
$display->content['new-3'] = $pane;
|
||||
$display->panels['middle'][2] = 'new-3';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-4';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'projets-panel_pane_4';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_projet_popsu_tid' => '%taxonomy_term:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-projects-thumb',
|
||||
'css_class' => 'layout-90p accordion-h2 accordion-h2-views',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 3;
|
||||
$pane->locks = array();
|
||||
$display->content['new-4'] = $pane;
|
||||
$display->panels['middle'][3] = 'new-4';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-5';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'themes_local-panel_pane_2';
|
||||
$pane->shown = FALSE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_themloc_popsu_tid' => '%taxonomy_term:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-liste-themes-loc',
|
||||
'css_class' => 'layout-90p accordion-h2 accordion-h2-views',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 4;
|
||||
$pane->locks = array();
|
||||
$display->content['new-5'] = $pane;
|
||||
$display->panels['middle'][4] = 'new-5';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-6';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'themes_local-panel_pane_4';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_themloc_popsu_tid' => '%taxonomy_term:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-themlocs-thumb',
|
||||
'css_class' => 'layout-90p accordion-h2 accordion-h2-views',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 5;
|
||||
$pane->locks = array();
|
||||
$display->content['new-6'] = $pane;
|
||||
$display->panels['middle'][5] = 'new-6';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-7';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'themes_trans-panel_pane_1';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_themtrans_popsu_tid' => '%taxonomy_term:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-liste-themes-trans',
|
||||
'css_class' => 'layout-90p accordion-h2 accordion-h2-views',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 6;
|
||||
$pane->locks = array();
|
||||
$display->content['new-7'] = $pane;
|
||||
$display->panels['middle'][6] = 'new-7';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-8';
|
||||
$pane->panel = 'middle';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_special_text';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'requiredcontext_entity:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'layout-72p double-spaced',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 7;
|
||||
$pane->locks = array();
|
||||
$display->content['new-8'] = $pane;
|
||||
$display->panels['middle'][7] = 'new-8';
|
||||
$display->hide_title = PANELS_TITLE_NONE;
|
||||
$display->title_pane = 'new-1';
|
||||
$mini->display = $display;
|
||||
$export['popsu_special_accueil_pps1'] = $mini;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_special_pages.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_special_pages_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__popsu_special';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(
|
||||
'teaser' => array(
|
||||
'custom_settings' => TRUE,
|
||||
),
|
||||
'full' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'rss' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_index' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_result' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'token' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '3',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '5',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_special'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'language_content_type_popsu_special';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_special'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_options_popsu_special';
|
||||
$strongarm->value = array(
|
||||
0 => 'menu-popsu1-menu',
|
||||
1 => 'menu-popsu2-menu',
|
||||
2 => 'menu-popsu-menu-popsu-europe',
|
||||
3 => 'main-menu',
|
||||
);
|
||||
$export['menu_options_popsu_special'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_parent_popsu_special';
|
||||
$strongarm->value = 'menu-popsu1-menu:0';
|
||||
$export['menu_parent_popsu_special'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_options_popsu_special';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_special'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_preview_popsu_special';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_special'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_submitted_popsu_special';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_popsu_special'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_structure.box.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_box().
|
||||
*/
|
||||
function popsu_structure_default_box() {
|
||||
$export = array();
|
||||
|
||||
$box = new stdClass();
|
||||
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
|
||||
$box->api_version = 1;
|
||||
$box->delta = 'popsu_google_analytics';
|
||||
$box->plugin_key = 'simple';
|
||||
$box->title = '<none>';
|
||||
$box->description = 'Google Analytics tracking code';
|
||||
$box->options = array(
|
||||
'body' => array(
|
||||
'value' => '<script type="text/javascript">
|
||||
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push([\'_setAccount\', \'UA-37066369-1\']);
|
||||
_gaq.push([\'_trackPageview\']);
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
|
||||
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
|
||||
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
|
||||
</script>',
|
||||
'format' => 'php_code',
|
||||
),
|
||||
);
|
||||
$export['popsu_google_analytics'] = $box;
|
||||
|
||||
$box = new stdClass();
|
||||
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
|
||||
$box->api_version = 1;
|
||||
$box->delta = 'popsu_logo_baseline';
|
||||
$box->plugin_key = 'simple';
|
||||
$box->title = '<none>';
|
||||
$box->description = 'POPSU Logo Baseline (box)';
|
||||
$box->options = array(
|
||||
'body' => array(
|
||||
'value' => 'PLATE-FORME<br>
|
||||
D’OBSERVATION<br>
|
||||
DES PROJETS<br>
|
||||
DE STRATÉGIES URBAINES',
|
||||
'format' => 'php_code',
|
||||
),
|
||||
);
|
||||
$export['popsu_logo_baseline'] = $box;
|
||||
|
||||
$box = new stdClass();
|
||||
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
|
||||
$box->api_version = 1;
|
||||
$box->delta = 'popsu_logo_popsu1';
|
||||
$box->plugin_key = 'simple';
|
||||
$box->title = '<none>';
|
||||
$box->description = 'POPSU Logo POPSU 1 (box)';
|
||||
$box->options = array(
|
||||
'body' => array(
|
||||
'value' => '<a title="Aller à l\'accueil de POPSU 1" rel="home" class="logo" href="/popsu1/accueil">Aller à l\'accueil de POPSU 1</a>',
|
||||
'format' => 'php_code',
|
||||
),
|
||||
'additional_classes' => 'clearfix',
|
||||
);
|
||||
$export['popsu_logo_popsu1'] = $box;
|
||||
|
||||
$box = new stdClass();
|
||||
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
|
||||
$box->api_version = 1;
|
||||
$box->delta = 'popsu_logo_popsu2';
|
||||
$box->plugin_key = 'simple';
|
||||
$box->title = '<none>';
|
||||
$box->description = 'POPSU Logo POPSU 2 (box)';
|
||||
$box->options = array(
|
||||
'body' => array(
|
||||
'value' => '<a title="Aller à l\'accueil de POPSU 2" rel="home" class="logo" href="/popsu2/accueil">Aller à l\'accueil de POPSU 2</a>',
|
||||
'format' => 'php_code',
|
||||
),
|
||||
'additional_classes' => 'clearfix',
|
||||
);
|
||||
$export['popsu_logo_popsu2'] = $box;
|
||||
|
||||
$box = new stdClass();
|
||||
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
|
||||
$box->api_version = 1;
|
||||
$box->delta = 'popsu_logo_popsueurope';
|
||||
$box->plugin_key = 'simple';
|
||||
$box->title = '<none>';
|
||||
$box->description = 'POPSU Logo POPSU Europe (box)';
|
||||
$box->options = array(
|
||||
'body' => array(
|
||||
'value' => '<a title="Aller à l\'accueil de POPSU Europe" rel="home" class="logo" href="/popsu-europe/accueil">Aller à l\'accueil de POPSU Europe</a>',
|
||||
'format' => 'php_code',
|
||||
),
|
||||
'additional_classes' => 'clearfix',
|
||||
);
|
||||
$export['popsu_logo_popsueurope'] = $box;
|
||||
|
||||
$box = new stdClass();
|
||||
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
|
||||
$box->api_version = 1;
|
||||
$box->delta = 'popsu_menu_trigger';
|
||||
$box->plugin_key = 'simple';
|
||||
$box->title = '<none>';
|
||||
$box->description = 'POPSU Trigger de menu niveau 1 (box)';
|
||||
$box->options = array(
|
||||
'body' => array(
|
||||
'value' => '<div id="menu-trigger-level1" class="menu-trigger-level1">Retour au menu</div>
|
||||
<div id="menu-trigger-level1-off" class="menu-trigger-level1">Masquer le menu</i></div>
|
||||
<div id="menu-trigger-level1-static" class="menu-trigger-level1"><a href="/popsu1/accueil">Retour au menu</a></div>',
|
||||
'format' => 'php_code',
|
||||
),
|
||||
'additional_classes' => 'clearfix',
|
||||
);
|
||||
$export['popsu_menu_trigger'] = $box;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_structure.context.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_context_default_contexts().
|
||||
*/
|
||||
function popsu_structure_context_default_contexts() {
|
||||
$export = array();
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-structure-global';
|
||||
$context->description = 'Contexte global de la structure du site (feature)';
|
||||
$context->tag = 'structure-feature';
|
||||
$context->conditions = array(
|
||||
'sitewide' => array(
|
||||
'values' => array(
|
||||
1 => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'boxes-popsu_google_analytics' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_google_analytics',
|
||||
'region' => 'content',
|
||||
'weight' => '-10',
|
||||
),
|
||||
'menu-menu-popsu-menu-footer' => array(
|
||||
'module' => 'menu',
|
||||
'delta' => 'menu-popsu-menu-footer',
|
||||
'region' => 'footer',
|
||||
'weight' => '-10',
|
||||
),
|
||||
'menu-menu-popsu-footer-droite' => array(
|
||||
'module' => 'menu',
|
||||
'delta' => 'menu-popsu-footer-droite',
|
||||
'region' => 'footer',
|
||||
'weight' => '-10',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 0;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte global de la structure du site (feature)');
|
||||
t('structure-feature');
|
||||
$export['popsu-structure-global'] = $context;
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-structure-homepage';
|
||||
$context->description = 'Contexte de la page d\'accueil du site (feature)';
|
||||
$context->tag = 'structure-feature';
|
||||
$context->conditions = array(
|
||||
'path' => array(
|
||||
'values' => array(
|
||||
'<front>' => '<front>',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array();
|
||||
$context->condition_mode = 0;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte de la page d\'accueil du site (feature)');
|
||||
t('structure-feature');
|
||||
$export['popsu-structure-homepage'] = $context;
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-structure-manager';
|
||||
$context->description = 'Contexte de structure pour le manager du site (feature)';
|
||||
$context->tag = 'structure-feature';
|
||||
$context->conditions = array(
|
||||
'user' => array(
|
||||
'values' => array(
|
||||
'editor' => 'editor',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'menu-menu-manager-menu' => array(
|
||||
'module' => 'menu',
|
||||
'delta' => 'menu-manager-menu',
|
||||
'region' => 'user_menu',
|
||||
'weight' => '-10',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 0;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte de structure pour le manager du site (feature)');
|
||||
t('structure-feature');
|
||||
$export['popsu-structure-manager'] = $context;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_structure.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_block_class_features_default_class().
|
||||
*/
|
||||
function popsu_structure_block_class_features_default_class() {
|
||||
return array(
|
||||
'menu:menu-popsu-menu-footer' => array(
|
||||
'module' => 'menu',
|
||||
'delta' => 'menu-popsu-menu-footer',
|
||||
'css_classes' => 'menu-footer menu-inline',
|
||||
),
|
||||
'menu:menu-popus-menu-header' => array(
|
||||
'module' => 'menu',
|
||||
'delta' => 'menu-popus-menu-header',
|
||||
'css_classes' => 'span1 menu-header',
|
||||
),
|
||||
'menu_block:1' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '1',
|
||||
'css_classes' => 'left-nav left-nav-level-2',
|
||||
),
|
||||
'menu_block:2' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '2',
|
||||
'css_classes' => 'left-nav left-nav-level-0',
|
||||
),
|
||||
'menu_block:3' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '3',
|
||||
'css_classes' => 'left-nav left-nav-level-1',
|
||||
),
|
||||
'menu_block:4' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '4',
|
||||
'css_classes' => 'left-nav left-nav-level-1',
|
||||
),
|
||||
'menu_block:5' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '5',
|
||||
'css_classes' => 'left-nav left-nav-level-2',
|
||||
),
|
||||
'menu_block:6' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '6',
|
||||
'css_classes' => 'left-nav left-nav-level-1',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_structure_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "boxes" && $api == "box") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "context" && $api == "context") {
|
||||
return array("version" => "3");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "panels" && $api == "layouts") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_structure.features.menu_custom.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_menu_default_menu_custom().
|
||||
*/
|
||||
function popsu_structure_menu_default_menu_custom() {
|
||||
$menus = array();
|
||||
|
||||
// Exported menu: main-menu.
|
||||
$menus['main-menu'] = array(
|
||||
'menu_name' => 'main-menu',
|
||||
'title' => 'Main menu',
|
||||
'description' => 'The <em>Main</em> menu is used on many sites to show the major sections of the site, often in a top navigation bar.',
|
||||
);
|
||||
// Exported menu: menu-manager-menu.
|
||||
$menus['menu-manager-menu'] = array(
|
||||
'menu_name' => 'menu-manager-menu',
|
||||
'title' => 'Menu de gestion du site',
|
||||
'description' => 'Ce menu permet aux éditeurs et managers du site de le gérer.',
|
||||
);
|
||||
// Exported menu: menu-popsu-footer-droite.
|
||||
$menus['menu-popsu-footer-droite'] = array(
|
||||
'menu_name' => 'menu-popsu-footer-droite',
|
||||
'title' => 'Menu footer droite',
|
||||
'description' => 'Menu de droite du pied de page.',
|
||||
);
|
||||
// Exported menu: menu-popsu-menu-footer.
|
||||
$menus['menu-popsu-menu-footer'] = array(
|
||||
'menu_name' => 'menu-popsu-menu-footer',
|
||||
'title' => 'Menu footer',
|
||||
'description' => 'Menu du pied de page POPSU.',
|
||||
);
|
||||
// Exported menu: menu-popsu1-menu.
|
||||
$menus['menu-popsu1-menu'] = array(
|
||||
'menu_name' => 'menu-popsu1-menu',
|
||||
'title' => 'Menu POPSU 1',
|
||||
'description' => 'Ceci est le menu principal de la partie POPSU 1.',
|
||||
);
|
||||
// Exported menu: menu-popsu2-menu.
|
||||
$menus['menu-popsu2-menu'] = array(
|
||||
'menu_name' => 'menu-popsu2-menu',
|
||||
'title' => 'Menu POPSU 2',
|
||||
'description' => 'Ceci est le menu principal de la partie POPSU 2.',
|
||||
);
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Ce menu permet aux éditeurs et managers du site de le gérer.');
|
||||
t('Ceci est le menu principal de la partie POPSU 1.');
|
||||
t('Ceci est le menu principal de la partie POPSU 2.');
|
||||
t('Main menu');
|
||||
t('Menu POPSU 1');
|
||||
t('Menu POPSU 2');
|
||||
t('Menu de droite du pied de page.');
|
||||
t('Menu de gestion du site');
|
||||
t('Menu du pied de page POPSU.');
|
||||
t('Menu footer');
|
||||
t('Menu footer droite');
|
||||
t('The <em>Main</em> menu is used on many sites to show the major sections of the site, often in a top navigation bar.');
|
||||
|
||||
|
||||
return $menus;
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_structure.features.uuid_menu_links.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_uuid_menu_default_menu_links().
|
||||
*/
|
||||
function popsu_structure_uuid_menu_default_menu_links() {
|
||||
$uuid_menu_links = array();
|
||||
|
||||
// Exported menu link: main-menu:<front>
|
||||
$uuid_menu_links['main-menu:<front>'] = array(
|
||||
'router_path' => '',
|
||||
'link_title' => 'Accueil',
|
||||
'options' => array(
|
||||
'attributes' => array(
|
||||
'title' => '',
|
||||
),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '0',
|
||||
'external' => '1',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-50',
|
||||
'uuid_link_path' => '<front>',
|
||||
'uuid_menu_name' => 'main-menu',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Exported menu link: main-menu:colloques
|
||||
$uuid_menu_links['main-menu:colloques'] = array(
|
||||
'router_path' => 'colloques',
|
||||
'link_title' => 'Colloques',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '1',
|
||||
'external' => '0',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-43',
|
||||
'uuid_link_path' => 'colloques',
|
||||
'uuid_menu_name' => 'main-menu',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Exported menu link: main-menu:node/a978e311-e9a8-415e-86fe-520a031ba6e2
|
||||
$uuid_menu_links['main-menu:node/a978e311-e9a8-415e-86fe-520a031ba6e2'] = array(
|
||||
'router_path' => 'node/%',
|
||||
'link_title' => 'POPSU 2',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '0',
|
||||
'external' => '0',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-48',
|
||||
'uuid_link_path' => 'node/a978e311-e9a8-415e-86fe-520a031ba6e2',
|
||||
'uuid_menu_name' => 'main-menu',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Exported menu link: main-menu:node/ecd15c32-153d-4f8b-bdb0-4fb5c4e21a5e
|
||||
$uuid_menu_links['main-menu:node/ecd15c32-153d-4f8b-bdb0-4fb5c4e21a5e'] = array(
|
||||
'router_path' => 'node/%',
|
||||
'link_title' => 'POPSU Europe',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '0',
|
||||
'external' => '0',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-47',
|
||||
'uuid_link_path' => 'node/ecd15c32-153d-4f8b-bdb0-4fb5c4e21a5e',
|
||||
'uuid_menu_name' => 'main-menu',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Exported menu link: main-menu:projets
|
||||
$uuid_menu_links['main-menu:projets'] = array(
|
||||
'router_path' => 'projets',
|
||||
'link_title' => 'Projets',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '1',
|
||||
'external' => '0',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-45',
|
||||
'uuid_link_path' => 'projets',
|
||||
'uuid_menu_name' => 'main-menu',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Exported menu link: main-menu:themes-locaux
|
||||
$uuid_menu_links['main-menu:themes-locaux'] = array(
|
||||
'router_path' => 'themes-locaux',
|
||||
'link_title' => 'Thèmes locaux',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '1',
|
||||
'external' => '0',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-44',
|
||||
'uuid_link_path' => 'themes-locaux',
|
||||
'uuid_menu_name' => 'main-menu',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Exported menu link: main-menu:themes-transversaux
|
||||
$uuid_menu_links['main-menu:themes-transversaux'] = array(
|
||||
'router_path' => 'themes-transversaux',
|
||||
'link_title' => 'Thèmes transversaux',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '1',
|
||||
'external' => '0',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-42',
|
||||
'uuid_link_path' => 'themes-transversaux',
|
||||
'uuid_menu_name' => 'main-menu',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Exported menu link: main-menu:villes
|
||||
$uuid_menu_links['main-menu:villes'] = array(
|
||||
'router_path' => 'villes',
|
||||
'link_title' => 'Villes',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '1',
|
||||
'external' => '0',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-46',
|
||||
'uuid_link_path' => 'villes',
|
||||
'uuid_menu_name' => 'main-menu',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Exported menu link: menu-manager-menu:<front>
|
||||
$uuid_menu_links['menu-manager-menu:<front>'] = array(
|
||||
'router_path' => '',
|
||||
'link_title' => 'Test',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '1',
|
||||
'external' => '1',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-50',
|
||||
'uuid_link_path' => '<front>',
|
||||
'uuid_menu_name' => 'menu-manager-menu',
|
||||
'uuid_parent_path' => 'publications',
|
||||
);
|
||||
// Exported menu link: menu-manager-menu:publications
|
||||
$uuid_menu_links['menu-manager-menu:publications'] = array(
|
||||
'router_path' => 'publications',
|
||||
'link_title' => 'Publications',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '1',
|
||||
'external' => '0',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-50',
|
||||
'uuid_link_path' => 'publications',
|
||||
'uuid_menu_name' => 'menu-manager-menu',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Exported menu link: menu-popsu-footer-droite:<front>
|
||||
$uuid_menu_links['menu-popsu-footer-droite:<front>'] = array(
|
||||
'router_path' => '',
|
||||
'link_title' => 'Rechercher',
|
||||
'options' => array(
|
||||
'attributes' => array(
|
||||
'id' => 'footer-recherche',
|
||||
),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '0',
|
||||
'external' => '1',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-44',
|
||||
'uuid_link_path' => '<front>',
|
||||
'uuid_menu_name' => 'menu-popsu-footer-droite',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Exported menu link: menu-popsu-menu-footer:<front>
|
||||
$uuid_menu_links['menu-popsu-menu-footer:<front>'] = array(
|
||||
'router_path' => '',
|
||||
'link_title' => 'Qu\'est-ce que POPSU ?',
|
||||
'options' => array(
|
||||
'attributes' => array(
|
||||
'id' => 'footer-popsu',
|
||||
),
|
||||
'fragment' => 'qu-est-ce-que-popsu',
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '0',
|
||||
'external' => '1',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '-48',
|
||||
'uuid_link_path' => '<front>',
|
||||
'uuid_menu_name' => 'menu-popsu-menu-footer',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Exported menu link: menu-popsu-menu-footer:user
|
||||
$uuid_menu_links['menu-popsu-menu-footer:user'] = array(
|
||||
'router_path' => 'user',
|
||||
'link_title' => 'Administration',
|
||||
'options' => array(
|
||||
'attributes' => array(
|
||||
'class' => array(
|
||||
0 => 'menu-user-login',
|
||||
),
|
||||
),
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => '0',
|
||||
'external' => '0',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '0',
|
||||
'uuid_link_path' => 'user',
|
||||
'uuid_menu_name' => 'menu-popsu-menu-footer',
|
||||
'uuid_parent_path' => NULL,
|
||||
);
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Accueil');
|
||||
t('Administration');
|
||||
t('Colloques');
|
||||
t('POPSU 2');
|
||||
t('POPSU Europe');
|
||||
t('Projets');
|
||||
t('Publications');
|
||||
t('Qu\'est-ce que POPSU ?');
|
||||
t('Rechercher');
|
||||
t('Test');
|
||||
t('Thèmes locaux');
|
||||
t('Thèmes transversaux');
|
||||
t('Villes');
|
||||
|
||||
|
||||
return $uuid_menu_links;
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
name = POPSU Structure du site
|
||||
description = POPSU - Structure du site
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
php = 5.2.4
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_structure
|
||||
dependencies[] = block
|
||||
dependencies[] = block_class
|
||||
dependencies[] = blockify
|
||||
dependencies[] = boxes
|
||||
dependencies[] = context
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = menu
|
||||
dependencies[] = menu_block
|
||||
dependencies[] = node_reference
|
||||
dependencies[] = panels
|
||||
dependencies[] = popsu_themes_europe
|
||||
dependencies[] = popsu_villes_europe
|
||||
dependencies[] = search
|
||||
dependencies[] = uuid
|
||||
dependencies[] = uuid_features
|
||||
dependencies[] = uuid_path
|
||||
features[block_class][] = menu:menu-popsu-menu-footer
|
||||
features[block_class][] = menu:menu-popus-menu-header
|
||||
features[block_class][] = menu_block:1
|
||||
features[block_class][] = menu_block:2
|
||||
features[block_class][] = menu_block:3
|
||||
features[block_class][] = menu_block:4
|
||||
features[block_class][] = menu_block:5
|
||||
features[block_class][] = menu_block:6
|
||||
features[box][] = popsu_google_analytics
|
||||
features[box][] = popsu_logo_baseline
|
||||
features[box][] = popsu_logo_popsu1
|
||||
features[box][] = popsu_logo_popsu2
|
||||
features[box][] = popsu_logo_popsueurope
|
||||
features[box][] = popsu_menu_trigger
|
||||
features[context][] = popsu-structure-global
|
||||
features[context][] = popsu-structure-homepage
|
||||
features[context][] = popsu-structure-manager
|
||||
features[ctools][] = boxes:box:1
|
||||
features[ctools][] = context:context:3
|
||||
features[ctools][] = panels:layouts:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:1
|
||||
features[panels_layout][] = popsu_70_30_accordion
|
||||
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_structure.layouts.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_panels_layout().
|
||||
*/
|
||||
function popsu_structure_default_panels_layout() {
|
||||
$export = array();
|
||||
|
||||
$layout = new stdClass();
|
||||
$layout->disabled = FALSE; /* Edit this to true to make a default layout disabled initially */
|
||||
$layout->api_version = 1;
|
||||
$layout->name = 'popsu_70_30_accordion';
|
||||
$layout->admin_title = 'POPSU 74/26 accordion';
|
||||
$layout->admin_description = 'Layout 74/26 avec accordéon';
|
||||
$layout->category = 'POPSU Layout';
|
||||
$layout->plugin = 'flexible';
|
||||
$layout->settings = array(
|
||||
'items' => array(
|
||||
'canvas' => array(
|
||||
'type' => 'row',
|
||||
'contains' => 'column',
|
||||
'children' => array(
|
||||
0 => 1,
|
||||
1 => 2,
|
||||
),
|
||||
'parent' => NULL,
|
||||
'class' => 'accordion-h2-layout',
|
||||
'column_class' => '',
|
||||
'row_class' => '',
|
||||
'region_class' => '',
|
||||
'no_scale' => FALSE,
|
||||
'fixed_width' => '',
|
||||
'column_separation' => '0',
|
||||
'region_separation' => '0',
|
||||
'row_separation' => '0',
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'column',
|
||||
'width' => '74.05175820679584',
|
||||
'width_type' => '%',
|
||||
'parent' => 'canvas',
|
||||
'children' => array(
|
||||
0 => 3,
|
||||
1 => 4,
|
||||
),
|
||||
'class' => '',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'column',
|
||||
'width' => '25.94824179320417',
|
||||
'width_type' => '%',
|
||||
'parent' => 'canvas',
|
||||
'children' => array(
|
||||
0 => 5,
|
||||
),
|
||||
'class' => 'accordion-content',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'row',
|
||||
'contains' => 'region',
|
||||
'children' => array(
|
||||
0 => 'title',
|
||||
),
|
||||
'parent' => '1',
|
||||
'class' => 'accordion-trigger layout-88p',
|
||||
),
|
||||
'title' => array(
|
||||
'type' => 'region',
|
||||
'title' => 'title',
|
||||
'width' => 100,
|
||||
'width_type' => '%',
|
||||
'parent' => '3',
|
||||
'class' => '',
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'row',
|
||||
'contains' => 'region',
|
||||
'children' => array(
|
||||
0 => 'left',
|
||||
),
|
||||
'parent' => '1',
|
||||
'class' => 'accordion-content layout-88p',
|
||||
),
|
||||
'left' => array(
|
||||
'type' => 'region',
|
||||
'title' => 'left',
|
||||
'width' => 100,
|
||||
'width_type' => '%',
|
||||
'parent' => '4',
|
||||
'class' => '',
|
||||
),
|
||||
5 => array(
|
||||
'type' => 'row',
|
||||
'contains' => 'region',
|
||||
'children' => array(
|
||||
0 => 'right',
|
||||
),
|
||||
'parent' => '2',
|
||||
'class' => '',
|
||||
),
|
||||
'right' => array(
|
||||
'type' => 'region',
|
||||
'title' => 'right',
|
||||
'width' => 100,
|
||||
'width_type' => '%',
|
||||
'parent' => '5',
|
||||
'class' => '',
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['popsu_70_30_accordion'] = $layout;
|
||||
|
||||
return $export;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Structure du site feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_structure.features.inc';
|
||||
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_structure.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_structure_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__popsu_projet_europe';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '8',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '4',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_projet_europe'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'language_content_type_popsu_projet_europe';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_projet_europe'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_options_popsu_projet_europe';
|
||||
$strongarm->value = array();
|
||||
$export['menu_options_popsu_projet_europe'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_parent_popsu_projet_europe';
|
||||
$strongarm->value = 'main-menu:0';
|
||||
$export['menu_parent_popsu_projet_europe'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_options_popsu_projet_europe';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_projet_europe'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_preview_popsu_projet_europe';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_projet_europe'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_submitted_popsu_projet_europe';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_popsu_projet_europe'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user