6. Socials

PHOTO EMBED

Mon Aug 01 2022 10:33:04 GMT+0000 (Coordinated Universal Time)

Saved by @CK_Michael

%%[
/* Retrieve header type */
SET @HeaderTranslation_DE = 'Template_Header Data V3'

SET @headerContentRows = LookupRows(@contentDEName,'CommunicationCulture',@comCulture,'blockName','header')
IF ROWCOUNT(@headerContentRows) == 0 THEN
 raiseError("The header is not specified in this language", true)
ELSE
 SET @headerContentRow = Row(@headerContentRows,1)
 SET @headerType = Field(@headerContentRow, "Value")
ENDIF

SET @contentRows = LookupRows(@HeaderTranslation_DE ,'CommunicationCulture',@comCulture, 'Type',@headerType)
IF ROWCOUNT(@contentRows) == 0 THEN
 raiseError("No translation available for this header",true)
ELSE
 SET @contentRow   = Row(@contentRows,1)
 SET @LOGO_LINK    = Field(@contentRow, "LOGO_LINK")
 SET @PREHEADER_COPY  = TreatAsContent(Field(@contentRow, "PREHEADER_COPY"))
 SET @MENU1_COPY   = Field(@contentRow, "MENU1_COPY")
 SET @MENU1_LINK   = Field(@contentRow, "MENU1_LINK")
 SET @MENU2_COPY   = Field(@contentRow, "MENU2_COPY")
 SET @MENU2_LINK   = Field(@contentRow, "MENU2_LINK")
 SET @MENU3_COPY   = Field(@contentRow, "MENU3_COPY")
 SET @MENU3_LINK   = Field(@contentRow, "MENU3_LINK")
 SET @MENU4_COPY   = Field(@contentRow, "MENU4_COPY")
 SET @MENU4_LINK   = Field(@contentRow, "MENU4_LINK")
ENDIF

/*** Start MetaData tagging ***/

 SET @Link_Value = @LOGO_LINK
 SET @Link_FieldName = "LOGO_LINK"
 ContentBlockByID('66456')  /* CA Utilities\MetaData_Link_Tagging */
 SET @LOGO_LINK = @Link_Value
 
 SET @Link_Value = @MENU1_LINK
 SET @Link_FieldName = "MENU1_LINK"
 ContentBlockByID('66456')  /* CA Utilities\MetaData_Link_Tagging */
 SET @MENU1_LINK = @Link_Value
 
 SET @Link_Value = @MENU2_LINK
 SET @Link_FieldName = "MENU2_LINK"
 ContentBlockByID('66456')  /* CA Utilities\MetaData_Link_Tagging */
 SET @MENU2_LINK = @Link_Value
 
 SET @Link_Value = @MENU3_LINK
 SET @Link_FieldName = "MENU3_LINK"
 ContentBlockByID('66456')  /* CA Utilities\MetaData_Link_Tagging */
 SET @MENU3_LINK = @Link_Value
 
 SET @Link_Value = @MENU4_LINK
 SET @Link_FieldName = "MENU4_LINK"
 ContentBlockByID('66456')  /* CA Utilities\MetaData_Link_Tagging */
 SET @MENU4_LINK = @Link_Value
 
/*** End MetaData tagging ***/

/* Retrieve footer type without version */
SET @headerType = SUBSTRING(@headerType,8,SUBTRACT(LENGTH(@headerType),7))
SET @indexHeader = INDEXOF(@headerType,"_")
IF (@indexHeader != 0) THEN
 SET @headerType = SUBSTRING(@headerType,1,SUBTRACT(INDEXOF(@headerType,"_"),1))
ENDIF

SET @menu4color = "#000000"
IF (@headerType=="header_sale") THEN
 SET @menu4color = "#ff0000"
ENDIF

SET @menu3class = "nomobile"
IF (@headerType=="header_std_v1") THEN
 SET @menu3class = "font12"
ENDIF
 
]%% <!-- mobile menu 3/4 items --> 
                  
<!--[if !mso]><!-->
<table role="presentation" width="640" border="0" cellspacing="0" cellpadding="0" class="content-wrapper" align="center" style="width:640px; margin:0 auto;" bgcolor="#ffffff">
  <tr class="black">
    <td align="center"><div class="show" style="font-size: 0px; max-height: 0px; overflow: hidden; display: none;">
        <table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
          <tr>
            <td align="center" class="button2"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
                <tr>
                  <td align="center" bgcolor="#ffffff" class="button2" style="height: 54px; border-top: 2px solid #f5f4f3; padding: 0px 5px;"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
                      <tr class="black"> 
                        <!--[if mso ]>
  <td width="30" bgcolor="#ffffff">&nbsp;</td>
  <![endif]-->
                        <td align="center" bgcolor="#ffffff" style="font-family: 'KleinCondensedMed', Arial, sans-serif; color: #000001; font-size: 14px; line-height: 15px; text-transform: uppercase; font-weight: 500;"><a href="%%=RedirectTo(@MENU1_LINK)=%%" style="color:#111111; text-decoration:none; padding:8px 25px;" alias="Menu1">%%=v(@MENU1_COPY)=%%</a></td>
                        <!--[if mso ]>
  <td width="30" bgcolor="#ffffff">&nbsp;</td>
  <![endif]--></tr>
                    </table></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td align="center" class="button2"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
                <tr>
                  <td align="center" bgcolor="#ffffff" class="button2" style="height: 54px; border-top: 2px solid #f5f4f3; padding: 0px 5px;"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
                      <tr class="black"> 
                        <!--[if mso ]>
  <td width="30" bgcolor="#ffffff">&nbsp;</td>
  <![endif]-->
                        <td align="center" bgcolor="#ffffff" style="font-family: 'KleinCondensedMed', Arial, sans-serif; color: #000001; font-size: 14px; line-height: 15px; text-transform: uppercase; font-weight: 500;"><a href="%%=RedirectTo(@MENU2_LINK)=%%" style="color:#111111; text-decoration:none; padding:8px 25px;" alias="Menu2">%%=v(@MENU2_COPY)=%%</a></td>
                        <!--[if mso ]>
  <td width="30" bgcolor="#ffffff">&nbsp;</td>
  <![endif]--></tr>
                    </table></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td align="center" class="button2"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
                <tr>
                  <td align="center" bgcolor="#ffffff" class="button2" style="height: 54px; border-top: 2px solid #f5f4f3; padding: 0px 5px;"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
                      <tr class="black"> 
                        <!--[if mso ]>
  <td width="30" bgcolor="#ffffff">&nbsp;</td>
  <![endif]-->
                        <td align="center" bgcolor="#ffffff" style="font-family: 'KleinCondensedMed', Arial, sans-serif; color: #000001; font-size: 14px; line-height: 15px; text-transform: uppercase; font-weight: 500;"><a href="%%=RedirectTo(@MENU3_LINK)=%%" style="color:#111111; text-decoration:none; padding:8px 25px;" alias="Menu3">%%=v(@MENU3_COPY)=%%</a></td>
                        <!--[if mso ]>
  <td width="30" bgcolor="#ffffff">&nbsp;</td>
  <![endif]--></tr>
                    </table></td>
                </tr>
              </table></td>
          </tr>
          %%[IF NOT EMPTY(@MENU4_COPY) AND NOT EMPTY(@MENU4_LINK) THEN]%%
          <tr>
            <td align="center" class="button2"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
                <tr>
                  <td align="center" bgcolor="#ffffff" class="button2" style="height: 54px; border-top: 2px solid #f5f4f3; padding: 0px 5px;"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
                      
                    </table></td>
                </tr>
              </table></td>
          </tr>
          %%[ENDIF]%%
        </table>
      </div></td>
  </tr>
</table>

<!--<![endif]--> 
<!-- /mobile menu 3/4 items --> 
content_copyCOPY