Introduce custom patch logic, starting with disabling front page avatars.

Sat, 27 Oct 2012 18:43:28 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 27 Oct 2012 18:43:28 +0200
changeset 751
3d13fc9b142b
parent 750
0e7016e69724
child 752
d9020e3c5cc1

Introduce custom patch logic, starting with disabling front page avatars.

drupal-theme-misc/drupal-theme-misc.patch.cust file | annotate | diff | comparison | revisions
drupal-theme-misc/drupal-theme-misc.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/drupal-theme-misc/drupal-theme-misc.patch.cust	Sat Oct 27 18:43:28 2012 +0200
     1.3 @@ -0,0 +1,17 @@
     1.4 +Index: deco/node.tpl.php
     1.5 +--- deco/node.tpl.php.orig	2012-03-25 21:58:37.000000000 +0200
     1.6 ++++ deco/node.tpl.php	2012-10-27 17:05:49.819273725 +0200
     1.7 +@@ -3,7 +3,12 @@
     1.8 +      <div class="node-top"><div class="top-right"><div class="top-middle"></div></div></div>
     1.9 +   <?php endif; ?>
    1.10 +   <div class="node-body">
    1.11 +-    <?php print $user_picture; ?>
    1.12 ++    <?php
    1.13 ++        if ($user_picture && !((arg(0) == 'node' && arg(1) == NULL)
    1.14 ++            || $is_front)) {
    1.15 ++            print $user_picture;
    1.16 ++        }
    1.17 ++    ?>
    1.18 +       <div class="node-title clear-block">
    1.19 +         <?php print render($title_prefix); ?>
    1.20 +         <?php if (!$page && $title): ?>
     2.1 --- a/drupal-theme-misc/drupal-theme-misc.spec	Sat Oct 27 18:34:49 2012 +0200
     2.2 +++ b/drupal-theme-misc/drupal-theme-misc.spec	Sat Oct 27 18:43:28 2012 +0200
     2.3 @@ -77,6 +77,9 @@
     2.4  Version:      %{V_drupal}
     2.5  Release:      20120800
     2.6  
     2.7 +#   package options
     2.8 +%option       with_custom  yes
     2.9 +
    2.10  #   list of sources
    2.11  Source0:      ftp://ftp.drupal.org/pub/drupal/files/projects/andromeda-%{V_theme_andromeda}.tar.gz
    2.12  Source1:      ftp://ftp.drupal.org/pub/drupal/files/projects/acquia_marina-%{V_theme_acquiamarina}.tar.gz
    2.13 @@ -116,6 +119,7 @@
    2.14  Source35:     ftp://ftp.drupal.org/pub/drupal/files/projects/skeletontheme-%{V_theme_skeleton}.tar.gz
    2.15  Source36:     ftp://ftp.drupal.org/pub/drupal/files/projects/journalcrunch-%{V_theme_journalcrunch}.tar.gz
    2.16  Source37:     ftp://ftp.drupal.org/pub/drupal/files/projects/magazeen_lite-%{V_theme_magazeenlite}.tar.gz
    2.17 +Patch0:       drupal-theme-misc.patch.cust
    2.18  
    2.19  #   build information
    2.20  BuildPreReq:  OpenPKG, openpkg >= 20100101
    2.21 @@ -123,6 +127,7 @@
    2.22  
    2.23  %description
    2.24      This is a collection of reusable themes for the Drupal CMS.
    2.25 +    Additionally, customized logic is provided for various behaviour.
    2.26  
    2.27  %track
    2.28      prog drupal-theme-misc:theme_acquiamarina = {
    2.29 @@ -357,6 +362,11 @@
    2.30      %{l_tar} xfz %{SOURCE36}
    2.31      %{l_tar} xfz %{SOURCE37}
    2.32  
    2.33 +    #   apply local patches
    2.34 +%if "%{with_cust}" == "yes"
    2.35 +    %patch -p0
    2.36 +%endif
    2.37 +
    2.38  %build
    2.39  
    2.40  %install

mercurial