Browse Source

Added ids to div blocks on sequence list so users can theme using UL at top of page

Stephen Ficklin 11 năm trước cách đây
mục cha
commit
ec0b35f2f1

+ 3 - 3
tripal_feature/theme/templates/tripal_feature_sequence.tpl.php

@@ -52,7 +52,7 @@ if ($residues or count($featureloc_sequences) > 0) {
      
     // format the sequence to break every 50 residues
     $sequences_html .= '<a name="residues"></a>';
-    $sequences_html .= '<div class="tripal_feature-sequence-item">';
+    $sequences_html .= '<div id="residues" class="tripal_feature-sequence-item">';
     $sequences_html .= '<p><b>Current ' . $feature->type_id->name . ' sequence</b></p>';
     $sequences_html .= '<pre class="tripal_feature-sequence">';
     $sequences_html .= '>' . tripal_get_fasta_defline($feature) . "\n";
@@ -78,7 +78,7 @@ if ($residues or count($featureloc_sequences) > 0) {
           
           $list_items[] = '<a href="#residues">Protein sequence of ' . $protein->name . '</a>';
           $sequences_html .= '<a name="protein-' . $protein->feature_id . '"></a>';
-          $sequences_html .= '<div class="tripal_feature-sequence-item">';
+          $sequences_html .= '<div id="protein-' . $protein->feature_id . '" class="tripal_feature-sequence-item">';
           $sequences_html .= '<p><b>Protein sequence of ' . $protein->name . '</b></p>';
           $sequences_html .= '<pre class="tripal_feature-sequence">';
           $sequences_html .= '>' . tripal_get_fasta_defline($protein) . "\n";
@@ -104,7 +104,7 @@ if ($residues or count($featureloc_sequences) > 0) {
       //   * formatted_seq: the formatted sequences
       $list_items[] = '<a href="#' . $attrs['src'] . '">Alignment at  ' . $attrs['location'];
       $sequences_html .= '<a name="' . $attrs['src'] . '"></a>';
-      $sequences_html .= '<div class="tripal_feature-sequence-item">';
+      $sequences_html .= '<div id="' . $attrs['src'] . '" class="tripal_feature-sequence-item">';
       $sequences_html .= '<p><b>Alignment at  ' . $attrs['location'] .'</b></p>';
       $sequences_html .= $attrs['formatted_seq'];
       $sequences_html .= '<a href="#sequences-top">back to top</a>';

+ 1 - 1
tripal_organism/theme/templates/tripal_organism_base.tpl.php

@@ -1,7 +1,7 @@
 <?php
 
 $organism  = $variables['node']->organism;
-$organism = tripal_core_expand_chado_vars($organism,'field','organism.comment'); ?>
+$organism = chado_expand_var($organism,'field','organism.comment'); ?>
 
 <div class="tripal_organism-data-block-desc tripal-data-block-desc"></div><?php